/* Playvite brand shell: the public site (home, themes, editor, help pages).
   A calm, festive stage; each theme's own world shows inside its frame.
   Type: Bricolage Grotesque (display; Hebrew falls back to Rubik), Rubik (text), Press Start 2P (tiny signature labels). */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/fonts/rubik-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/fonts/rubik-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/fonts/rubik-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/fonts/rubik-hebrew-400.woff2') format('woff2'); font-weight: 400; unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/fonts/rubik-hebrew-700.woff2') format('woff2'); font-weight: 500 800; unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: 'Press Start 2P'; src: url('/fonts/press-start-2p.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/fonts/cormorant-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --paper: #fbfaff;          /* party white */
  --paper-2: #f3effd;        /* tinted band */
  --card: #ffffff;
  --ink: #1d1633;            /* plum ink */
  --ink-2: #5b5378;          /* secondary text */
  --line: #e4def4;
  --play: #ff3d7f;           /* Play pink: the accent */
  --play-ink: #ffffff;
  --play-deep: #d81b60;
  --ticket: #ffc83d;         /* Ticket yellow */
  --signal: #2bd9ff;         /* Arcade cyan, rare */
  --ok: #138a52;
  --ok-bg: #e2f7ec;
  --shadow: 0 18px 40px rgba(29, 22, 51, .14);
  --frame: #1d1633;
  --display: 'Bricolage Grotesque', 'Rubik', system-ui, sans-serif;
  --body: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pixel: 'Press Start 2P', ui-monospace, monospace;
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #120e22; --paper-2: #1a1530; --card: #1d1736; --ink: #f4f0ff; --ink-2: #b9b0d9; --line: #30285a;
    --ok: #3ddc84; --ok-bg: rgba(61, 220, 132, .14); --shadow: 0 18px 40px rgba(0, 0, 0, .45); --frame: #0a0716; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #120e22; --paper-2: #1a1530; --card: #1d1736; --ink: #f4f0ff; --ink-2: #b9b0d9; --line: #30285a;
  --ok: #3ddc84; --ok-bg: rgba(61, 220, 132, .14); --shadow: 0 18px 40px rgba(0, 0, 0, .45); --frame: #0a0716; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.brand { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
.brand img, .brand video, .brand svg { max-width: 100%; display: block; }
.brand h1, .brand h2, .brand h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.brand h1 { font-size: clamp(40px, 7.2vw, 76px); }
.brand h2 { font-size: clamp(30px, 4.6vw, 48px); }
.brand h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.brand p { margin: 0; }
.brand a { color: inherit; }
.brand :focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--ink-2); }
.eyebrow { font: 9px/1.6 var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--play); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header / footer ---------- */
.site-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.mark { display: inline-flex; align-items: center; gap: 9px; font: 800 23px/1 var(--display); letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.mark::before { content: ""; width: 0; height: 0; border-left: 15px solid var(--play); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.site-nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } }
.site-foot { border-top: 1px solid var(--line); padding-block: 34px 48px; color: var(--ink-2); font-size: 15px; }
.site-foot__in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot .coin { font: 8px/1.6 var(--pixel); letter-spacing: .06em; }

/* ---------- buttons, pills, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 17px/1.1 var(--display); letter-spacing: -.005em; text-decoration: none; background: var(--play); color: var(--play-ink); box-shadow: 0 8px 20px rgba(255, 61, 127, .28); transition: transform .12s, box-shadow .15s, background .15s; }
.btn:hover { background: var(--play-deep); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--quiet { background: var(--paper-2); color: var(--ink); box-shadow: none; }
.btn--quiet:hover { background: var(--line); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn .tri { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); font: 500 14px/1.2 var(--body); color: var(--ink); }
.pill--beta { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.pill--soon { background: color-mix(in srgb, var(--ticket) 30%, transparent); color: var(--ink); font-weight: 700; }
.pill--live { background: color-mix(in srgb, var(--play) 14%, transparent); color: var(--play-deep); font-weight: 700; }
:root[data-theme="dark"] .pill--live { color: #ff8db5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill--live { color: #ff8db5; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 15px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 500; cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin: 0 0 16px; }
.field > label, .field legend { font-weight: 700; font-size: 15px; }
.field .optional { font-weight: 400; color: var(--ink-2); font-size: 14px; margin-left: 6px; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=date], .field input[type=time], .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 500 17px/1.3 var(--body); }
.input:focus, .field input:focus, .field select:focus { outline: none; border-color: var(--play); box-shadow: 0 0 0 4px color-mix(in srgb, var(--play) 18%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--play-deep); }
.hint { font-size: 14px; color: var(--ink-2); }
.error { font-size: 14px; color: var(--play-deep); font-weight: 500; min-height: 0; }
:root[data-theme="dark"] .error { color: #ff8db5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .error { color: #ff8db5; } }
.error:empty { display: none; }

/* ---------- frames: phones and theme art ---------- */
.device { position: relative; aspect-ratio: 9 / 15; border-radius: 34px; padding: 9px; background: var(--frame); box-shadow: var(--shadow); }
.device > .screen { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #070b24; }
.device video, .device img, .device svg, .device iframe { width: 100%; height: 100%; object-fit: cover; object-position: top; border: 0; }
.device--wide { aspect-ratio: auto; border-radius: 22px; padding: 8px; }
.device--wide > .screen { border-radius: 15px; }
.tag-name { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: 88%; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #1d1633; font: 600 14px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }

/* theme art motion */
@media (prefers-reduced-motion: no-preference) {
  .art--gold .gh-draw path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: gh-draw 2.6s ease-out forwards; }
  .art--gold .gh-draw circle { stroke-dasharray: 760; stroke-dashoffset: 760; animation: gh-draw 3s ease-out forwards; }
  .art--gold .gh-petal { animation: gh-fall linear infinite; }
  .art--space .bo-star { animation: bo-twinkle 2.6s ease-in-out infinite; }
  .art--space .bo-rocket { animation: bo-bob 3.2s ease-in-out infinite; }
  .art--space .bo-flame { animation: bo-flame .25s ease-in-out infinite alternate; transform-origin: 0 70px; transform-box: view-box; }
  .art--space .bo-collect { animation: bo-pop 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
.art--gold .gh-petal { transform: translateY(-40px); }
@keyframes gh-draw { to { stroke-dashoffset: 0; } }
@keyframes gh-fall { from { transform: translate(0, -40px) rotate(0); } to { transform: translate(-30px, 660px) rotate(240deg); } }
@keyframes bo-twinkle { 50% { opacity: .25; } }
@keyframes bo-bob { 50% { transform: translateY(-10px); } }
@keyframes bo-flame { to { transform: scaleY(1.25); } }
@keyframes bo-pop { 0%, 60%, 100% { opacity: 1; transform: scale(1); } 75% { opacity: .35; transform: scale(.6); } }

/* ---------- confetti made of our shapes: ▶ ● ■ ---------- */
.shapes-deco { position: absolute; pointer-events: none; inset: 0; overflow: hidden; }
.shapes-deco i { position: absolute; display: block; }
.shapes-deco .tri { width: 0; height: 0; border-left: 18px solid var(--play); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.shapes-deco .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ticket); }
.shapes-deco .sq { width: 16px; height: 16px; border-radius: 4px; background: var(--signal); }

/* ---------- modal (Notify me) ---------- */
.modal { border: 0; border-radius: 22px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(18, 14, 34, .55); backdrop-filter: blur(2px); }
.modal form { display: grid; gap: 14px; padding: 24px; }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
