/* © 2026 WiredType. Proprietary and confidential. Not licensed for copying or reuse. Terms: https://wiredtype.com/terms */
/* The "Is this you?" pages (IS-THIS-YOU-1124): /is-this-you/ and /is-this-you/<character id>/. Markup from
   scripts/public/build_is_this_you.mjs; behavior in site/js/is-this-you.js. Quadrants sit D top left, I top right, C bottom left,
   S bottom right. */
.itsy-page { max-width: 1180px; margin: 0 auto; padding: var(--space-2xl, 40px) var(--space-lg, 20px) var(--space-4xl, 72px); }
.itsy-hero { max-width: 44rem; margin: 0 auto var(--space-2xl, 36px); text-align: center; }
.itsy-hero__eyebrow { font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin: 0 0 var(--space-sm, 8px); }
.itsy-hero h1, .itsy-focus h1 { font-family: var(--font-heading, 'Outfit', sans-serif); font-size: clamp(2.5rem, 7vw, 4.25rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 var(--space-md, 16px); }
.itsy-hero__lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.55; color: var(--text-secondary); margin: 0 auto var(--space-lg, 24px); max-width: 38rem; }
.itsy-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.itsy-actions .btn { min-height: 48px; }

/* The share page's character card. */
.itsy-focus { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 52rem; margin: 0 auto var(--space-3xl, 48px); }
.itsy-focus__portrait { width: clamp(132px, 22vw, 200px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; padding: 6px; background: var(--ring); }
.itsy-focus__who { font-size: 1.15rem; margin: 0 0 6px; }
.itsy-focus__lede { color: var(--text-secondary); margin: 0 0 var(--space-lg, 20px); line-height: 1.5; }
.itsy-focus .itsy-actions { justify-content: flex-start; }
.itsy-focus__more { margin: var(--space-md, 16px) 0 0; }
.itsy-focus__more a, .itsy-more a, .itsy-list__link, .itsy-after__type { color: var(--accent-text); font-weight: 600; }
.itsy-map-title { font-family: var(--font-heading, 'Outfit', sans-serif); font-size: clamp(1.4rem, 3vw, 1.9rem); text-align: center; margin: 0 0 var(--space-lg, 20px); scroll-margin-top: 90px; }
@media (max-width: 600px) {
  .itsy-focus { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .itsy-focus .itsy-actions { justify-content: center; }
}

/* Map and player side by side on a laptop; the player is a sheet from the bottom on a phone. */
.itsy-stage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.itsy-stage:has(.itsy-player[hidden]) { grid-template-columns: minmax(0, 1fr); }
.itsy-map-wrap { max-width: 720px; width: 100%; margin: 0 auto; padding: 0 28px; scroll-margin-top: 80px; }
.itsy-axis { margin: 0; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); text-align: center; }
.itsy-axis--top { margin-bottom: 8px; }
.itsy-axis--bottom { margin-top: 8px; }
.itsy-map { position: relative; aspect-ratio: 1; width: 100%; }
.itsy-axis--left, .itsy-axis--right { position: absolute; top: 50%; white-space: nowrap; z-index: 1; }
.itsy-axis--left { left: 0; transform: translate(-50%, -50%) rotate(-90deg) translateY(-14px); }
.itsy-axis--right { right: 0; transform: translate(50%, -50%) rotate(90deg) translateY(-14px); }
.itsy-quads { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; border-radius: 20px; overflow: hidden; }
.itsy-quads span { display: flex; padding: 14px 18px; font-family: var(--font-heading, 'Outfit', sans-serif); font-weight: 700; font-size: clamp(2rem, 7vw, 4.5rem); line-height: 1; opacity: 0.9; }
.itsy-quads .q-d { background: var(--disc-d-bg); color: rgba(var(--disc-d-rgb), 0.35); }
.itsy-quads .q-i { background: var(--disc-i-bg); color: rgba(var(--disc-i-rgb), 0.38); justify-content: flex-end; }
.itsy-quads .q-c { background: var(--disc-c-bg); color: rgba(var(--disc-c-rgb), 0.38); align-items: flex-end; }
.itsy-quads .q-s { background: var(--disc-s-bg); color: rgba(var(--disc-s-rgb), 0.38); align-items: flex-end; justify-content: flex-end; }
.itsy-faces { list-style: none; margin: 0; padding: 0; position: absolute; inset: 2.5%; }
.itsy-face { position: absolute; transform: translate(-50%, -50%); z-index: 2; }
.itsy-face__btn { --size: clamp(38px, 8.6vw, 60px); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; background: none; border: 0; border-radius: 14px; color: var(--text); cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; min-width: 44px; min-height: 44px; }
.itsy-face--small .itsy-face__btn { --size: clamp(34px, 7.4vw, 52px); }
.itsy-face__ring { display: block; width: var(--size); height: var(--size); padding: 3px; border-radius: 50%; transition: transform 160ms ease, box-shadow 160ms ease; }
.itsy-face__ring img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bg-2); border: 2px solid var(--bg-0); }
.itsy-face__name { font-size: clamp(0.68rem, 1.7vw, 0.85rem); font-weight: 600; line-height: 1.1; }
.itsy-face__code { font-size: clamp(0.62rem, 1.5vw, 0.75rem); color: var(--text-2); line-height: 1; }
.itsy-face__btn:hover .itsy-face__ring, .itsy-face__btn:focus-visible .itsy-face__ring { transform: scale(1.08); }
.itsy-face__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.itsy-face.is-active { z-index: 3; }
.itsy-face.is-active .itsy-face__ring { transform: scale(1.14); box-shadow: 0 0 0 3px var(--bg-0), 0 0 0 6px var(--text); }
.itsy-face.is-active .itsy-face__name { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.itsy-player { position: sticky; top: 88px; background: var(--bg-1); border: 1px solid var(--border-hover); border-radius: 20px; padding: 20px; box-shadow: 0 18px 48px rgba(0,0,0,0.28); max-height: calc(100vh - 110px); overflow-y: auto; }
.itsy-player[hidden] { display: none; }
.itsy-player__head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.itsy-player__ring { display: block; width: 72px; height: 72px; padding: 3px; border-radius: 50%; }
.itsy-player__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-1); display: block; }
.itsy-player__name { font-family: var(--font-heading, 'Outfit', sans-serif); font-size: 1.3rem; font-weight: 700; margin: 0; line-height: 1.15; }
.itsy-player__type { margin: 2px 0 0; color: var(--text-secondary); font-size: 0.95rem; }
.itsy-player__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-hover); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.itsy-player__caption { min-height: 4.2em; margin: 18px 0 14px; font-family: var(--font-heading, 'Outfit', sans-serif); font-size: clamp(1.15rem, 2.4vw, 1.35rem); line-height: 1.38; font-weight: 600; }
.itsy-player__controls { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.itsy-player__play { min-width: 104px; min-height: 48px; }
.itsy-player__play.is-busy { opacity: 0.85; }
.itsy-player__range { width: 100%; accent-color: var(--accent); min-height: 44px; }
.itsy-player__time { font-variant-numeric: tabular-nums; font-size: 0.85rem; color: var(--text-2); white-space: nowrap; }
.itsy-player__error { color: var(--disc-d-light); margin: 10px 0 0; }
.itsy-player__h { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); margin: 20px 0 6px; }
.itsy-player__lines { list-style: none; margin: 0; padding: 0; }
.itsy-player__line { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 8px 10px; color: var(--text-secondary); font: inherit; line-height: 1.45; cursor: pointer; min-height: 44px; }
.itsy-player__line:hover { background: var(--bg-card-hover); }
.itsy-player__line.is-now { color: var(--text); background: var(--bg-card-hover); }
.itsy-player__disclosure { font-size: 0.8rem; color: var(--text-2); margin: 14px 0 0; }

.itsy-after { margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); }
.itsy-after.is-done { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }
.itsy-after__title { font-family: var(--font-heading, 'Outfit', sans-serif); font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; }
.itsy-after__body { margin: 0 0 12px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }
.itsy-after__actions { display: grid; gap: 10px; }
.itsy-after__actions .btn { width: 100%; justify-content: center; min-height: 48px; white-space: normal; text-align: center; }
.itsy-after__more { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; align-items: center; margin: 12px 0 0; }
.itsy-after__next { background: none; border: 0; padding: 10px 0; color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
.itsy-after__type { padding: 10px 0; }
.itsy-share__menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.itsy-share__menu[hidden] { display: none; }
.itsy-share__item { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border-hover); background: transparent; color: var(--text); font: inherit; font-size: 0.92rem; text-decoration: none; cursor: pointer; text-align: center; }
.itsy-share__item:hover { background: var(--bg-card-hover); }
.itsy-share__note { margin: 8px 0 0; font-size: 0.9rem; color: var(--text-secondary); }
.itsy-share__note:empty { display: none; }

.itsy-disclosure { text-align: center; color: var(--text-2); font-size: 0.85rem; margin: var(--space-lg, 24px) auto 0; }
.itsy-list { max-width: 60rem; margin: var(--space-3xl, 56px) auto 0; }
.itsy-list h2 { font-family: var(--font-heading, 'Outfit', sans-serif); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 6px; }
.itsy-list > p { color: var(--text-secondary); margin: 0 0 var(--space-lg, 20px); }
.itsy-list__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.itsy-list__item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; scroll-margin-top: 90px; }
.itsy-list__btn { display: flex; gap: 12px; align-items: center; width: 100%; background: none; border: 0; padding: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.itsy-list__ring { flex: none; width: 44px; height: 44px; padding: 2px; border-radius: 50%; }
.itsy-list__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-1); display: block; }
.itsy-list__who strong { display: block; }
.itsy-list__who span { color: var(--text-secondary); font-size: 0.9rem; }
.itsy-list__btn[aria-current="true"] .itsy-list__who strong { text-decoration: underline; text-underline-offset: 3px; }
.itsy-list__lines { margin: 10px 0 8px; padding-left: 1.1em; color: var(--text-secondary); font-size: 0.93rem; line-height: 1.45; }
.itsy-list__lines li + li { margin-top: 4px; }
.itsy-list__link { font-size: 0.92rem; }
.itsy-more { text-align: center; margin: var(--space-2xl, 40px) 0 0; }

@media (max-width: 959px) {
  .itsy-stage, .itsy-stage:has(.itsy-player[hidden]) { grid-template-columns: minmax(0, 1fr); }
  .itsy-map-wrap { padding: 0 18px; }
  .itsy-player { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; border-radius: 22px 22px 0 0; max-height: 72vh; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform 140ms ease-out; }
  body.itsy-open .itsy-player { transform: none; }
  body.itsy-open .itsy-page { padding-bottom: 60vh; }
  .itsy-player__ring { width: 56px; height: 56px; }
  .itsy-player__caption { min-height: 2.9em; margin: 12px 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .itsy-face__ring, .itsy-player { transition: none; }
}
[data-theme="light"] .itsy-player { box-shadow: 0 18px 48px rgba(0,0,0,0.12); }
/* A phone map is about 320 px wide, where a ring with its name needs more room than the seats leave: the faces show only their rings
   (the player and the list below name each one), and the map is a little taller than wide so rows have room. */
@media (max-width: 599px) {
  .itsy-map-wrap { padding: 0 20px; }
  .itsy-map { aspect-ratio: 4 / 5; }
  .itsy-face__name, .itsy-face__code { display: none; }
  .itsy-face__btn, .itsy-face--small .itsy-face__btn { --size: 36px; padding: 2px; min-width: 40px; min-height: 40px; justify-content: center; }
  .itsy-axis--left, .itsy-axis--right { font-size: 0.68rem; }
  .itsy-axis--left { transform: translate(-50%, -50%) rotate(-90deg) translateY(-10px); }
  .itsy-axis--right { transform: translate(50%, -50%) rotate(90deg) translateY(-10px); }
}
/* The phone sheet sits over the site's bottom menu bar while it is open (below the menu overlay, 10030), and it stays short while
   a clip plays: the "Does this sound like you?" lines appear when the clip ends; the two buttons are there from the start. */
@media (max-width: 959px) {
  .itsy-player { z-index: 10010; }
  .itsy-after:not(.is-done) .itsy-after__title, .itsy-after:not(.is-done) .itsy-after__body { display: none; }
  .itsy-after:not(.is-done) { padding: 0; background: none; border: 0; }
  .itsy-after__actions { grid-template-columns: 1fr; }
}
.itsy-player__name, .itsy-player__caption, .itsy-after__title, .itsy-focus__who strong, .itsy-list__who strong { color: var(--text); }
/* SURFACE-SWEEP 1124: on a laptop the player grows with its content (no inner scroll box that cuts lines off); the closed phone
   sheet is hidden from the page and from screen readers until a face is chosen. */
@media (min-width: 960px) {
  .itsy-player { max-height: none; overflow: visible; position: relative; top: auto; }
}
@media (max-width: 959px) {
  body:not(.itsy-open) .itsy-player { visibility: hidden; }
}
