@font-face { font-family: "Compact Disco Solid"; src: url('/assets/charaselect/fonts/compact-disco-solid.ttf') format('truetype'); font-display: block; }
:root { --studio-red: #ff3644; --studio-red-dark: #9f2630; --studio-cream: #fff0d2; --studio-ink: #542f2b; --studio-yellow: #ffcf5a; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { height: 100svh; overflow: hidden; background: var(--studio-cream); color: var(--studio-ink); font-family: Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
a { color: inherit; }
.studio-pattern { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; color: rgba(255,54,68,.075); font-family: "Compact Disco Solid", sans-serif; font-size: clamp(3.6rem, 11vw, 8rem); line-height: .76; letter-spacing: -.025em; user-select: none; }
.studio-pattern span { position: absolute; top: 7%; left: -5%; width: 115%; transform: rotate(-10deg); word-spacing: .18em; }
.studio-pattern::after { content: "CHOOSE • DRAW • REPEAT • CHOOSE • DRAW • REPEAT"; position: absolute; right: -7%; bottom: 7%; width: 122%; transform: rotate(-10deg); text-align: right; }
.studio-shell { width: min(100% - 32px, 1040px); height: 100svh; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 0 max(22px, env(safe-area-inset-bottom)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; gap: 18px; }
.studio-topbar, .studio-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.studio-home { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--studio-red); border-radius: 50%; color: var(--studio-red); background: var(--studio-cream); box-shadow: 3px 4px 0 rgba(255,54,68,.18); }
.studio-home svg { width: 20px; height: 20px; }
.studio-kicker, .studio-footer { margin: 0; color: var(--studio-ink); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
body:not(.studio-is-dev) .studio-tune-launcher { display: none; }
.studio-tune-launcher { padding: 9px 12px; border: 0; border-radius: 999px; color: var(--studio-cream); background: var(--studio-ink); font-size: .67rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.studio-card { display: grid; grid-template-columns: minmax(360px, .95fr) minmax(380px, 1.05fr); height: 100%; min-height: 0; overflow: hidden; border: 3px solid var(--studio-red); background: var(--studio-cream); box-shadow: 12px 15px 0 rgba(255,54,68,.25); }
.studio-art { --portrait-x: 0%; --portrait-y: 0%; position: relative; min-height: 0; overflow: hidden; isolation: isolate; color: var(--studio-cream); background: var(--studio-red); }
.studio-art::before { content: ""; position: absolute; z-index: -2; inset: 23% -35% -33% 22%; border: 2px solid rgba(255,240,210,.48); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,240,210,.1), 0 0 0 84px rgba(255,240,210,.06); }
.studio-brand { position: relative; z-index: 4; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 24px 0; }
.studio-brand img { width: min(52%, 190px); height: 72px; object-fit: contain; object-position: left top; }
.studio-brand span { max-width: 92px; padding-top: 4px; font-size: .6rem; font-weight: 900; line-height: 1.25; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.studio-edition { position: absolute; z-index: 4; top: 118px; left: 26px; margin: 0; font-size: .67rem; font-weight: 900; letter-spacing: .12em; }
.studio-art-disc { position: absolute; z-index: -1; bottom: 11%; left: 13%; width: min(70%, 315px); aspect-ratio: 1; border-radius: 50%; background: var(--studio-yellow); box-shadow: 16px 18px 0 rgba(84,47,43,.2); }
.studio-art-copy { position: absolute; z-index: -1; right: 9px; bottom: 33px; color: rgba(255,240,210,.94); font-family: "Compact Disco Solid", sans-serif; font-size: clamp(4rem, 9vw, 7.8rem); line-height: .72; letter-spacing: -.035em; text-align: right; }
.studio-portrait-window { position: absolute; z-index: 2; inset: 96px 0 36px; overflow: hidden; }
.studio-portrait-window::after { content: ""; position: absolute; z-index: 3; inset: auto 0 0; height: 16%; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--studio-red)); }
.studio-portrait-window img { position: absolute; left: 50%; bottom: 0; width: auto; max-width: none; height: var(--portrait-height, 98%); max-height: none; transform: translateX(calc(-50% + var(--portrait-x))) translateY(var(--portrait-y)); transform-origin: center bottom; filter: drop-shadow(10px 9px 0 rgba(84,47,43,.15)); }
.studio-art-footer { position: absolute; z-index: 4; right: 24px; bottom: 16px; left: 24px; display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(255,240,210,.54); font-size: .6rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.studio-details { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; padding: clamp(29px, 5vw, 54px); background: var(--studio-cream); }
.studio-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--studio-red); font-size: .7rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.studio-eyebrow::before { width: 28px; height: 3px; background: currentColor; content: ""; }
#studio-character-name { margin: 0; color: var(--studio-red); font-family: "Compact Disco Solid", Arial, sans-serif; font-size: calc(clamp(4.3rem, 9vw, 7.4rem) * var(--name-size, 1)); font-weight: 400; line-height: .7; letter-spacing: -.035em; text-transform: uppercase; }
.studio-handle { display: inline-block; margin-top: 18px; font-size: .79rem; font-weight: 800; text-decoration: none; }
.studio-handle a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.studio-facts { display: grid; gap: 0; margin: 28px 0; border-top: 2px solid rgba(84,47,43,.17); }
.studio-facts div { display: grid; grid-template-columns: 68px 1fr; gap: 12px; padding: 13px 0; border-bottom: 2px solid rgba(84,47,43,.17); }
.studio-facts dt { color: var(--studio-red); font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.studio-facts dd { margin: 0; font-size: clamp(.92rem, 1.6vw, 1.06rem); font-weight: 900; line-height: 1.16; }
.studio-facts dd span { font-size: .84em; white-space: nowrap; }
.studio-facts a { text-decoration: none; }
.studio-facts a:hover, .studio-facts a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.studio-actions { display: grid; gap: 10px; }
.studio-ticket, .studio-instagram { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 17px; border-radius: 4px; font-size: .88rem; font-weight: 900; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.studio-ticket { color: var(--studio-cream); background: var(--studio-red); box-shadow: 4px 5px 0 var(--studio-red-dark); }
.studio-ticket strong { font-size: 1.1rem; }
.studio-instagram { border: 2px solid var(--studio-red); color: var(--studio-red); }
.studio-ticket:hover, .studio-ticket:focus-visible, .studio-instagram:hover, .studio-instagram:focus-visible { transform: translate(-2px,-2px); box-shadow: 6px 7px 0 var(--studio-red-dark); }
.studio-instagram:hover, .studio-instagram:focus-visible { box-shadow: 4px 5px 0 rgba(255,54,68,.25); }
.studio-note { max-width: 330px; margin: 20px 0 0; font-size: .68rem; font-weight: 700; line-height: 1.35; opacity: .75; }
.studio-footer { color: rgba(84,47,43,.7); font-size: .56rem; }
.studio-tune { position: fixed; z-index: 20; top: 16px; right: 16px; width: min(calc(100% - 32px), 360px); max-height: calc(100dvh - 32px); overflow: auto; padding: 18px; border: 2px solid var(--studio-cream); outline: 3px solid var(--studio-red); border-radius: 14px; color: var(--studio-cream); background: rgba(84,47,43,.98); box-shadow: 8px 10px 0 rgba(255,54,68,.3); }
.studio-tune__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }.studio-tune__header p { margin: 0 0 3px; font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }.studio-tune h2 { margin: 0; font-family: "Compact Disco Solid", sans-serif; font-size: 1.5rem; font-weight: 400; }.studio-tune__header button { width: 28px; height: 28px; border: 0; border-radius: 50%; color: var(--studio-cream); background: rgba(255,240,210,.15); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.studio-tune fieldset { display: grid; gap: 10px; min-width: 0; margin: 14px 0; padding: 12px; border: 1px solid rgba(255,240,210,.32); border-radius: 8px; }.studio-tune legend { padding: 0 5px; font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.studio-character-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }.studio-character-choice button, .studio-reset { min-height: 34px; border: 1px solid rgba(255,240,210,.45); border-radius: 6px; color: var(--studio-cream); background: transparent; font-size: .64rem; font-weight: 800; cursor: pointer; }.studio-character-choice button[aria-pressed="true"] { border-color: var(--studio-red); background: var(--studio-red); }.studio-control { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; font-size: .72rem; font-weight: 800; }.studio-control output { color: var(--studio-yellow); font-variant-numeric: tabular-nums; }.studio-control input { grid-column: 1 / -1; width: 100%; accent-color: var(--studio-red); }.studio-reset { width: 100%; background: rgba(255,240,210,.12); }
/* Keep the complete event card inside the common phone viewport. The layout
   remains Side-led on mobile; only genuinely tiny screens may scroll. */
@media (max-width: 760px) {
  .studio-shell {
    width: min(100% - 20px, 540px);
    padding: max(10px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom));
    gap: 10px;
  }
  .studio-topbar { min-height: 38px; gap: 8px; }
  .studio-home { width: 38px; height: 38px; box-shadow: 2px 3px 0 rgba(255,54,68,.18); }
  .studio-kicker { flex: 1; font-size: .56rem; letter-spacing: .08em; text-align: center; }
  .studio-tune-launcher { padding: 8px 10px; font-size: .56rem; }
  .studio-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(250px, .46fr) minmax(310px, .54fr);
    border-width: 2px;
    box-shadow: 6px 7px 0 rgba(255,54,68,.25);
  }
  .studio-art { min-height: 0; }
  .studio-brand { padding: 12px 14px 0; gap: 8px; }
  .studio-brand img { width: min(42%, 120px); height: 44px; }
  .studio-brand span { max-width: 74px; padding-top: 2px; font-size: .47rem; }
  .studio-edition { top: 59px; left: 15px; font-size: .5rem; }
  .studio-art-disc { bottom: -13%; left: 16%; width: 66%; box-shadow: 8px 9px 0 rgba(84,47,43,.2); }
  .studio-art-copy { right: 5px; bottom: 25px; font-size: clamp(2.8rem, 14vw, 4rem); }
  .studio-portrait-window { inset: 52px 0 28px; }
  body[data-character] .studio-portrait-window img { top: 2%; bottom: auto; }
  .studio-portrait-window::after { height: 12%; }
  .studio-art-footer { right: 10px; bottom: 9px; left: 10px; padding-top: 7px; font-size: .43rem; letter-spacing: .06em; }
  .studio-details { min-height: 0; padding: 16px 18px 14px; overflow: hidden; }
  .studio-eyebrow { margin-bottom: 8px; font-size: .54rem; letter-spacing: .08em; }
  .studio-eyebrow::before { width: 18px; height: 2px; }
  #studio-character-name { font-size: calc(clamp(2.15rem, 11vw, 3.1rem) * var(--name-size, 1)); line-height: .72; }
  .studio-handle { margin-top: 10px; font-size: .61rem; line-height: 1.25; }
  .studio-facts { gap: 0; margin: 10px 0; border-top-width: 1px; }
  .studio-facts div { grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom-width: 1px; }
  .studio-facts dt { font-size: .48rem; letter-spacing: .06em; }
  .studio-facts dd { font-size: clamp(.72rem, 3vw, .86rem); line-height: 1.13; }
  .studio-actions { gap: 7px; margin-top: auto; }
  .studio-ticket, .studio-instagram { min-height: 38px; padding: 9px 10px; font-size: .67rem; }
  .studio-ticket strong { font-size: .9rem; }
  .studio-note, .studio-footer { display: none; }
}
@media (max-width: 340px), (max-height: 560px) {
  body { height: auto; min-height: 100svh; overflow-y: auto; }
  .studio-shell { height: auto; min-height: 100svh; grid-template-rows: auto minmax(520px, 1fr); }
  .studio-brand span, .studio-edition { display: none; }
  .studio-portrait-window { top: 58px; }
  .studio-details { padding: 14px 9px 11px; }
  .studio-facts { margin: 9px 0; }
  .studio-facts div { padding: 7px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
