@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://musiccup.app/fonts/anton-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("https://musiccup.app/fonts/space-grotesk.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #08080d;
  --panel: rgb(255 255 255 / .045);
  --panel-strong: rgb(255 255 255 / .08);
  --line: rgb(255 255 255 / .1);
  --line-soft: rgb(255 255 255 / .06);
  --text: #f4f4f8;
  --muted: rgb(235 235 245 / .58);
  --quiet: rgb(235 235 245 / .34);
  --purple: hsl(258 84% 64%);
  --pink: hsl(304 78% 66%);
  --gradient: linear-gradient(135deg, var(--purple), var(--pink));
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 18px 50px -18px rgb(0 0 0 / .65);
  --topbar: 58px;
  --font-cn: -apple-system, "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-en: "Space Grotesk", "SF Pro Display", -apple-system, sans-serif;
  --font-display: "Anton", "Space Grotesk", "Arial Narrow", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; background: var(--bg); }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font-family: var(--font-cn); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.en { font-family: var(--font-en); }
button, input { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
svg { display: block; width: 1em; height: 1em; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.ambient { position: fixed; z-index: -2; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 72vmax; height: 72vmax; border-radius: 50%; filter: blur(70px); opacity: .52; }
.blob-one { top: -32vmax; left: -18vmax; background: radial-gradient(circle at 35% 35%, hsl(258 84% 64% / .34), transparent 62%); animation: drift-one 26s ease-in-out infinite alternate; }
.blob-two { right: -20vmax; bottom: -36vmax; background: radial-gradient(circle at 60% 60%, hsl(304 84% 64% / .26), transparent 62%); animation: drift-two 32s ease-in-out infinite alternate; }
.grain { position: fixed; z-index: 90; inset: 0; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
@keyframes drift-one { to { transform: translate(9vmax, 7vmax) rotate(24deg); } }
@keyframes drift-two { to { transform: translate(-8vmax, -6vmax) rotate(-18deg); } }

#app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.seo-fallback { width: min(100%, 680px); margin: 0 auto; padding: 56px 20px; }
.seo-fallback h1 { font-family: var(--font-display); font-size: 60px; line-height: 1; }
.seo-fallback h2 { margin-top: 48px; font-size: 27px; }
.seo-fallback p, .seo-fallback li, .seo-fallback summary { margin-top: 12px; color: var(--muted); line-height: 1.7; }
.seo-fallback ol { padding-left: 24px; }
.seo-fallback img { width: 100%; max-height: 640px; margin-top: 20px; object-fit: contain; }
.seo-fallback details { padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.seo-fallback summary { color: var(--text); cursor: pointer; font-weight: 700; }
.screen { display: flex; flex: 1; flex-direction: column; width: 100%; max-width: 520px; margin: 0 auto; padding: 20px 20px calc(40px + env(safe-area-inset-bottom)); animation: screen-fade .4s ease both; }
.game-screen { padding-top: calc(var(--topbar) + env(safe-area-inset-top) + 18px); }
.has-cta { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
@keyframes screen-fade { from { opacity: 0; } }

.language-trigger { position: fixed; z-index: 50; top: calc(env(safe-area-inset-top) + 14px); left: max(16px, calc(50% - 280px)); display: inline-flex; align-items: center; gap: 6px; padding: 0; color: var(--quiet); background: transparent; font-size: 12px; font-weight: 700; letter-spacing: .04em; transition: color .2s, transform .15s; }
.language-trigger svg { width: 15px; height: 15px; }
.language-trigger:active { transform: scale(.92); }
[dir="rtl"] .language-trigger { right: max(16px, calc(50% - 280px)); left: auto; }
.discord-trigger { position: fixed; z-index: 50; top: calc(env(safe-area-inset-top) + 10px); right: max(16px, calc(50% - 500px)); display: inline-flex; align-items: center; gap: 8px; min-height: 34px; max-width: min(236px, calc(100vw - 132px)); padding: 0 12px; border: 1px solid hsl(238 84% 72% / .44); border-radius: 999px; background: rgb(88 101 242 / .13); box-shadow: 0 8px 26px -18px #5865f2; color: rgb(230 233 255); font-size: 12px; font-weight: 750; letter-spacing: .01em; line-height: 1; text-decoration: none; transition: border-color .2s, background .2s, transform .15s; }
.discord-trigger:hover { border-color: #7289da; background: rgb(88 101 242 / .23); }
.discord-trigger:active { transform: scale(.95); }
.discord-trigger > span { display: grid; flex: none; width: 16px; height: 16px; place-items: center; }
.discord-trigger svg { width: 16px; height: 16px; }
.discord-trigger b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="rtl"] .discord-trigger { right: auto; left: max(16px, calc(50% - 500px)); }

.home-screen { display: flex; flex-direction: column; gap: 24px; padding-top: clamp(132px, 18vh, 218px); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.hero { margin-top: 0; padding-top: 10px; text-align: center; }
.slogan { margin-top: 24px; padding-left: .22em; font-size: clamp(20px, 5.6vw, 24px); font-weight: 900; letter-spacing: .22em; }
html[lang="en"] .slogan, html[lang="es"] .slogan, html[lang="fr"] .slogan, html[lang="pt-BR"] .slogan, html[lang="ru"] .slogan, html[lang="id"] .slogan, html[lang="de"] .slogan, html[lang="hi"] .slogan { padding-left: .03em; letter-spacing: .03em; }
html[lang="ar"] .slogan, html[lang="th"] .slogan { padding-left: 0; letter-spacing: 0; }
.tagline { margin-top: 8px; color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.logo-lockup { position: relative; display: inline-block; margin: 0 auto; transform: skewX(-6deg); color: var(--text); direction: ltr; filter: drop-shadow(0 28px 70px hsl(258 84% 64% / .34)); font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.logo-music { display: flex; justify-content: space-between; padding: 0 .12em; margin-bottom: 5px; font-size: clamp(23px, 6.4vw, 30px); }
.logo-music i { font-style: normal; }
.logo-cup { display: block; padding-right: .05em; background: var(--gradient); color: transparent; font-size: clamp(94px, 25vw, 122px); letter-spacing: .015em; line-height: .9; -webkit-background-clip: text; background-clip: text; }
.logo-badge { position: absolute; top: 8px; right: -38px; transform: skewX(6deg) rotate(18deg); font-size: 48px; font-style: normal; line-height: 1; filter: drop-shadow(0 12px 26px rgb(0 0 0 / .55)); animation: badge-float 5s ease-in-out infinite; }
@keyframes badge-float { 0%,100% { transform: skewX(6deg) rotate(18deg); } 50% { transform: skewX(6deg) rotate(10deg) translateY(-6px); } }

.searchbox { position: relative; }
.search-field { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel-strong); transition: border-color .25s, box-shadow .25s; }
.searchbox.is-open .search-field, .search-field:focus-within { border-color: hsl(258 84% 64% / .55); box-shadow: 0 0 0 4px hsl(258 84% 64% / .12), 0 14px 40px -18px hsl(258 84% 64% / .34); }
.search-field svg { flex: none; width: 21px; height: 21px; color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; }
.search-field input::placeholder, .lineup-search input::placeholder { color: var(--quiet); }
.suggestions { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; left: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgb(21 21 31 / .97); box-shadow: var(--shadow); backdrop-filter: blur(24px) saturate(1.4); animation: pop-in .22s cubic-bezier(.2,.8,.2,1) both; }
.suggestions:empty { display: none; }
.suggestion { display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px 18px; background: transparent; text-align: left; transition: background .15s; }
.suggestion + .suggestion { border-top: 1px solid var(--line-soft); }
.suggestion:hover, .suggestion:active { background: var(--panel-strong); }
.suggestion-meta { min-width: 0; text-align: left; }
.suggestion-name { display: block; overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-genre { display: block; color: var(--muted); font-size: 12px; }
.suggestion-empty { margin: 0; padding: 18px; color: var(--muted); text-align: center; font-size: 14px; }

.mode-pick { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: -12px; }
.mode-button { padding: 3px 2px; color: var(--quiet); background: transparent; font-size: 12px; transition: color .18s; }
.mode-button.is-active { color: var(--text); }
.mode-button.is-active::before { margin-inline-end: 4px; color: var(--purple); content: '✓'; font-size: 10px; }
.chips-wrap { text-align: center; }
.chips-wrap > p { margin: 0 0 12px; color: var(--quiet); font-size: 11px; letter-spacing: .16em; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 12px; font-weight: 500; transition: transform .16s, background .2s, border-color .2s; }
.chip:hover { border-color: hsl(258 84% 64% / .5); background: var(--panel-strong); }
.chip:active { transform: scale(.94); }
.home-foot { margin: 0; color: var(--quiet); text-align: center; font-size: 12px; line-height: 1.45; }
.friends { width: 100%; }
.friends-label { margin: 0; color: var(--quiet); font-family: var(--font-en); font-size: 10px; letter-spacing: .22em; opacity: .75; }
.friends-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.friend { display: flex; align-items: center; justify-content: flex-start; gap: 9px; width: 100%; min-width: 0; padding: 7px 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; }
.friend img { flex: none; width: 30px; height: 30px; border-radius: 8px; object-fit: cover; opacity: .88; }
.f-meta { min-width: 0; }
.f-meta b { display: block; overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.f-meta i { display: -webkit-box; margin-top: 1px; overflow: hidden; color: var(--quiet); font-size: 10px; font-style: normal; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.landing-content { width: min(100%, 1040px); margin: 54px auto 0; padding: 0 20px calc(54px + env(safe-area-inset-bottom)); }
.landing-section { padding: 54px 0; border-top: 1px solid var(--line-soft); }
.landing-heading { max-width: 620px; }
.landing-heading h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.landing-heading p { margin: 13px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.mode-rail, .journey-list { display: grid; gap: 0; margin: 30px 0 0; list-style: none; }
.mode-rail li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.mode-rail li:last-child { border-bottom: 1px solid var(--line-soft); }
.mode-rail-index { color: var(--purple); font-family: var(--font-display); font-size: 23px; font-style: italic; line-height: 1; }
.mode-rail h3, .journey-list h3, .result-copy h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.mode-rail p, .journey-list p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.journey-list { counter-reset: journey; }
.journey-list li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
.journey-list li:not(:last-child)::after { position: absolute; top: 47px; bottom: -3px; left: 17px; width: 1px; background: linear-gradient(var(--purple), transparent); content: ''; }
.journey-list li > span { display: grid; z-index: 1; width: 35px; height: 35px; place-items: center; border: 1px solid hsl(258 84% 64% / .45); border-radius: 50%; background: var(--bg); color: var(--text); font-family: var(--font-en); font-size: 13px; font-weight: 700; }
.result-board { display: grid; gap: 26px; margin-top: 30px; }
.result-visual { min-height: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgb(3 3 8 / .66); box-shadow: 0 28px 72px -40px rgb(0 0 0 / .9); }
.result-visual img { display: block; width: 100%; height: auto; max-width: none; max-height: none; object-fit: contain; }
.result-copy { align-self: center; max-width: 520px; }
.result-copy > p:first-child { margin: 0 0 8px; color: var(--pink); font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.result-copy h3 { font-size: clamp(29px, 5vw, 48px); letter-spacing: -.045em; }
.result-copy strong { display: block; margin-top: 8px; color: var(--text); font-size: 16px; }
.result-copy > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.result-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.result-switcher button { min-width: 0; padding: 14px 10px; border-right: 1px solid var(--line-soft); background: transparent; color: var(--quiet); text-align: left; transition: background .2s, color .2s; }
.result-switcher button:last-child { border-right: 0; }
.result-switcher button:hover, .result-switcher button[aria-pressed="true"] { background: rgb(255 255 255 / .055); color: var(--text); }
.result-switcher span, .result-switcher b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-switcher span { font-size: 10px; letter-spacing: .04em; }
.result-switcher b { margin-top: 3px; font-size: 12px; }
.faq-list { margin-top: 26px; border-top: 1px solid var(--line-soft); }
.faq-list details { border-bottom: 1px solid var(--line-soft); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; cursor: pointer; font-size: 16px; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { flex: none; color: var(--purple); content: '+'; font-family: var(--font-en); font-size: 22px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { max-width: 740px; margin: -4px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.72; }

.site-footer { width: 100%; margin-top: 0; border-top: 1px solid var(--line-soft); }
.footer-inner { width: min(100%, 1040px); margin: 0 auto; padding: 46px 20px calc(28px + env(safe-area-inset-bottom)); }
.footer-main { display: grid; gap: 34px; }
.footer-brand { max-width: 520px; }
.footer-wordmark { display: inline-flex; align-items: baseline; gap: 8px; padding: .14em .18em .2em; margin: -.14em -.18em -.2em; overflow: visible; direction: ltr; font-family: var(--font-display); font-size: clamp(30px, 6vw, 46px); font-style: italic; letter-spacing: .01em; line-height: 1.1; }
.footer-wordmark span { color: var(--text); }
.footer-wordmark b { display: inline-block; padding-inline-end: .22em; margin-inline-end: -.22em; overflow: visible; background: var(--gradient); color: transparent; -webkit-background-clip: text; background-clip: text; font-weight: 400; }
.footer-brand > p:last-child { max-width: 390px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.footer-nav { display: grid; align-content: start; gap: 11px; }
.footer-nav a { width: fit-content; color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.4; text-decoration: none; transition: color .2s, transform .2s; }
.footer-nav a:hover { color: var(--text); transform: translateX(3px); }
.footer-creators { display: grid; gap: 13px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-soft); color: var(--quiet); font-family: var(--font-en); font-size: 11px; letter-spacing: .03em; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.footer-legal a { color: var(--quiet); font-family: var(--font-en); font-size: 11px; letter-spacing: .03em; text-decoration: none; }
.footer-legal a:hover { color: var(--text); }

.topbar { position: fixed; z-index: 40; top: 0; right: 0; left: 0; display: flex; align-items: center; gap: 4px; height: calc(var(--topbar) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 10px 0; border-bottom: 1px solid var(--line-soft); background: rgb(10 10 16 / .68); backdrop-filter: blur(20px) saturate(1.4); }
.topbar-button { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: transparent; color: var(--muted); transition: background .2s, color .2s, transform .15s; }
.topbar-button svg { width: 21px; height: 21px; }
.topbar-button:active { transform: scale(.9); background: var(--panel-strong); color: var(--text); }
.topbar-button.is-disabled { opacity: .25; }
.topbar-title { flex: 1; min-width: 0; text-align: center; line-height: 1.25; }
.topbar-title b, .topbar-title span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar-title b { font-size: 14px; }
.topbar-title span { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.topbar-progress { position: absolute; right: 0; bottom: -2px; left: 0; height: 2px; background: rgb(255 255 255 / .06); }
.topbar-progress i { display: block; height: 100%; border-radius: 2px; background: var(--gradient); box-shadow: 0 0 12px hsl(258 84% 64% / .34); transition: width .5s cubic-bezier(.2,.8,.2,1); }

.loading-screen { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.loading-screen > .spinner { margin-top: auto; }
.loading-screen > div:last-child { margin-bottom: auto; }
.loading-artist { font-size: 22px; font-weight: 900; }
.loading-tip { min-height: 22px; margin: 6px 0 0; color: var(--muted); font-size: 14px; transition: opacity .3s; }
.spinner { position: relative; width: 86px; height: 86px; }
.spinner::before, .spinner::after { position: absolute; inset: 0; border: 3px solid transparent; border-radius: 50%; content: ''; }
.spinner::before { border-top-color: var(--purple); border-right-color: var(--pink); animation: spin 1s linear infinite; }
.spinner::after { inset: 12px; border-bottom-color: var(--pink); opacity: .55; animation: spin 1.6s linear infinite reverse; }
.spinner i { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); }
.spinner svg { width: 30px; height: 30px; }
.spinner.small { width: 52px; height: 52px; }
.spinner.small::after { inset: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

.phase-head, .draw-head { text-align: center; animation: slide-in .45s cubic-bezier(.2,.8,.2,1) both; }
.phase-head { margin-bottom: 22px; }
.phase-head h2 { margin: 13px 0 5px; font-size: 34px; font-weight: 900; line-height: 1.15; letter-spacing: .01em; }
.draw-head { margin-bottom: 24px; }
.draw-head h2 { margin: 12px 0 6px; font-size: 30px; font-weight: 900; line-height: 1.15; letter-spacing: normal; }
.phase-head p, .draw-head p { margin: 0; color: var(--muted); font-size: 14px; }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phase-count { display: block; margin-top: 5px; color: var(--quiet); font-family: var(--font-en); font-size: 13px; letter-spacing: .1em; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-strong); color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.pill.grad { border-color: transparent; background: var(--gradient); color: #fff; box-shadow: 0 4px 18px -6px hsl(258 84% 64% / .34); }
.pill svg { width: 14px; height: 14px; color: var(--pink); }
@keyframes slide-in { from { opacity: 0; transform: translateY(14px); } }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.stat-row.two { grid-template-columns: repeat(2, 1fr); }
.stat { padding: 16px 8px 13px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel); text-align: center; }
.stat b, .stat span { display: block; }
.stat b { color: var(--text); font-family: var(--font-display); font-size: 32px; font-weight: 400; line-height: 1.1; letter-spacing: .02em; }
.stat span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.group-card { min-width: 0; padding: 13px 13px 11px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel); animation: slide-in .5s cubic-bezier(.2,.8,.2,1) both; }
.group-card header { display: flex; align-items: baseline; gap: 7px; margin-bottom: 10px; }
.group-card header b { color: var(--text); font-family: var(--font-display); font-size: 22px; font-style: italic; font-weight: 400; line-height: 1; }
.group-card header span { color: var(--quiet); font-size: 11px; letter-spacing: .1em; }
.draw-song { display: flex; align-items: center; min-width: 0; gap: 9px; padding: 4.5px 0; }
.draw-song-art { display: block; flex: none; width: 30px; height: 30px; overflow: hidden; border-radius: 8px; background: var(--panel-strong); }
.draw-song-art img { width: 100%; height: 100%; object-fit: cover; }
.draw-song-art.art-fallback svg { width: 14px; height: 14px; }
.draw-song > span:last-child { flex: 1; min-width: 0; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.song-art { display: block; flex: none; width: 34px; height: 34px; overflow: hidden; border-radius: 9px; background: var(--panel-strong); }
.song-art img, .duel-art img, .champ-art img { width: 100%; height: 100%; object-fit: cover; }
.art-fallback { display: grid; place-items: center; color: var(--quiet); }
.art-fallback svg { width: 16px; height: 16px; }

.cta-bar { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 12px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgb(8 8 13 / .96) 55%, transparent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 28px; border-radius: 999px; font-size: 17px; font-weight: 700; transition: transform .16s, box-shadow .25s, opacity .2s, filter .2s; }
.button:active { transform: scale(.96); }
.button.primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 32px -10px hsl(258 84% 64% / .55), inset 0 1px 0 rgb(255 255 255 / .25); }
.button.primary:disabled { pointer-events: none; opacity: .38; filter: saturate(.4); box-shadow: none; }
.button.ghost { border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); }
.button svg { width: 20px; height: 20px; }
.cta-bar .button { flex: 1; max-width: 480px; }

.lineup-search { position: sticky; z-index: 6; top: calc(var(--topbar) + env(safe-area-inset-top) + 6px); display: flex; align-items: center; gap: 9px; height: 44px; margin-bottom: 20px; padding: 0 10px 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); background-image: linear-gradient(var(--panel-strong), var(--panel-strong)); box-shadow: 0 10px 22px -14px #000; }
.lineup-search > svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.lineup-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.lineup-search:focus-within { border-color: hsl(258 84% 64% / .35); }
.lineup-clear { display: grid; flex: none; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 50%; background: var(--panel-strong); color: var(--muted); }
.lineup-clear[hidden] { display: none; }
.lineup-clear svg { width: 14px; height: 14px; }
.lineup-note { margin: -6px 0 14px; color: var(--quiet); font-size: 12.5px; text-align: center; }
.lineup-note.busy::after { display: inline-block; width: 10px; height: 10px; margin-left: 6px; border: 1.5px solid var(--line); border-top-color: var(--purple); border-radius: 50%; vertical-align: -1px; animation: spin .7s linear infinite; content: ''; }
body.kb-open .cta-bar { display: none; }
.lineup-sort { display: flex; align-items: center; margin: -8px 0 14px; padding-inline-start: 2px; }
.sort-switch, .sort-random { display: flex; align-items: center; gap: 9px; }
.sort-link, .sort-random { padding: 7px 2px; border: 0; background: none; color: var(--quiet); font: inherit; font-size: 13px; cursor: pointer; transition: color .18s; }
.sort-link.is-active, .sort-random.is-active { color: var(--text); }
.sort-link.is-active { font-weight: 700; }
.sort-separator { color: var(--line); font-size: 12px; user-select: none; }
.sort-random { gap: 6px; margin-inline-start: auto; }
.random-box { display: grid; width: 15px; height: 15px; place-items: center; border: 1.5px solid var(--line); border-radius: 5px; color: transparent; font-size: 10px; line-height: 1; transition: background .18s, border-color .18s, color .18s; }
.sort-random.is-active .random-box { border-color: transparent; background: var(--gradient); color: #fff; }
.size-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -6px 0 18px; }
.size-button { padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--quiet); font-size: 13px; }
.size-button.is-active { border-color: var(--purple); color: var(--text); }
.song-list { display: grid; gap: 10px; }
.song-card { position: relative; display: flex; align-items: center; width: 100%; min-width: 0; gap: 12px; padding: 11px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel); color: var(--text); text-align: left; transition: transform .16s, background .2s, border-color .2s; }
.song-card:hover { border-color: var(--line); background: var(--panel-strong); }
.song-card:active { transform: scale(.985); }
.song-card.is-selected { border-color: transparent; background: linear-gradient(var(--panel-strong), var(--panel-strong)) padding-box, var(--gradient) border-box; box-shadow: 0 12px 30px -20px hsl(258 84% 64% / .8); }
.song-card .song-art { width: 52px; height: 52px; border-radius: 12px; }
.song-info { flex: 1; min-width: 0; }
.song-info b, .song-info i { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-info b { font-size: 14px; font-weight: 800; }
.song-info i { margin-top: 2px; color: var(--muted); font-size: 12px; font-style: normal; }
.preview-button { display: grid; flex: none; width: 35px; height: 35px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); }
.preview-button:disabled { opacity: .28; }
.preview-button svg { width: 15px; height: 15px; }
.select-tick { display: grid; flex: none; width: 21px; height: 21px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--text); }
.is-selected .select-tick { border: 0; background: var(--gradient); }
.select-tick svg { width: 13px; height: 13px; }
.empty-state { padding: 36px 20px; color: var(--muted); text-align: center; }

.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.pick-card, .wild-card { position: relative; min-width: 0; overflow: hidden; border: 1.5px solid var(--line-soft); background: var(--panel); color: var(--text); cursor: pointer; transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .25s, background .2s; }
.pick-card { border-radius: var(--r-md); animation: slide-in .45s cubic-bezier(.2,.8,.2,1) both; }
.wild-card { border-radius: 14px; animation: slide-in .4s cubic-bezier(.2,.8,.2,1) both; }
.pick-card:active, .wild-card:active { transform: scale(.955); }
.cover-art { position: relative; display: block; overflow: hidden; background: var(--panel-strong); }
.cover-art::before { display: block; padding-top: 100%; content: ''; }
.cover-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-art.art-fallback { position: relative; display: grid; place-items: center; }
.cover-art.art-fallback svg { position: absolute; width: 32px; height: 32px; }
.cover-meta { min-width: 0; }
.cover-meta b, .cover-meta i { display: block; overflow: hidden; }
.pick-card .cover-meta { padding: 10px 12px 12px; }
.pick-card .cover-meta b { display: -webkit-box; min-height: 2.6em; font-size: 14.5px; font-weight: 700; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.pick-card .cover-meta i { margin-top: 3px; color: var(--quiet); font-size: 11.5px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.wild-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.album-group { display: flex; grid-column: 1 / -1; align-items: baseline; gap: 8px; margin: 10px 2px 0; }
.album-group-name { overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.album-group-year { color: var(--quiet); font-family: var(--font-display); font-size: 11px; }
.album-group-count { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--panel); color: var(--quiet); font-size: 10.5px; text-align: center; }
.wild-card .cover-meta { min-height: 2.9em; padding: 7px 8px 9px; }
.wild-card .cover-meta b { display: -webkit-box; font-size: 11.5px; font-weight: 500; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cover-preview { position: absolute; z-index: 3; right: 8px; bottom: 8px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgb(255 255 255 / .22); border-radius: 50%; background: rgb(12 12 18 / .55); color: #fff; backdrop-filter: blur(10px); }
.cover-preview:disabled { opacity: .28; }
.cover-preview svg { width: 17px; height: 17px; }
.cover-preview.is-playing, .champ-preview.is-playing, .duel-preview.is-playing { border-color: transparent; background: var(--gradient); }
.wild-card .cover-preview { right: 6px; bottom: 6px; width: 32px; height: 32px; }
.wild-card .cover-preview svg { width: 14px; height: 14px; }
.cover-preview.is-buffering svg, .champ-preview.is-buffering svg, .duel-preview.is-buffering svg, .pod-play-icon.is-buffering svg { animation: preview-spin .72s linear infinite; }
@keyframes preview-spin { to { transform: rotate(360deg); } }
.cover-check { position: absolute; z-index: 3; top: 9px; right: 9px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--gradient); color: #fff; box-shadow: 0 4px 14px -4px hsl(258 84% 64% / .7); opacity: 0; transform: scale(.4); transition: opacity .18s, transform .22s cubic-bezier(.34,1.56,.64,1); }
.wild-card .cover-check { top: 6px; right: 6px; width: 24px; height: 24px; }
.cover-group-badge { position: absolute; z-index: 3; top: 6px; left: 6px; display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border: 1px solid rgb(255 255 255 / .16); border-radius: 7px; background: rgb(12 12 18 / .58); color: rgb(255 255 255 / .88); font-family: var(--font-display); font-size: 11px; font-style: italic; font-weight: 700; backdrop-filter: blur(8px); }
.cover-check svg { width: 14px; height: 14px; }
.pick-card.is-selected, .wild-card.is-selected { border-color: transparent; box-shadow: 0 0 0 2px var(--purple), 0 14px 38px -14px hsl(258 84% 64% / .55); }
.pick-card.is-selected .cover-check, .wild-card.is-selected .cover-check { opacity: 1; transform: scale(1); }
.pick-card.is-selected .cover-art img, .wild-card.is-selected .cover-art img { filter: saturate(1.12); }

.knockout-screen, .duel-screen { position: relative; display: flex; flex-direction: column; }
.duel-wrap { display: flex; flex: 1; flex-direction: column; justify-content: center; width: 100%; }
.duel { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: stretch; gap: 14px; width: 100%; max-width: 620px; margin: 0 auto; }
.duel-card { position: relative; display: block; min-width: 0; padding: 0; overflow: hidden; border: 1.5px solid var(--line-soft); border-radius: var(--r-lg); background: var(--panel); color: var(--text); text-align: left; transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .3s, opacity .3s, filter .3s; animation: duel-in .5s cubic-bezier(.2,.8,.2,1) both; }
.duel-card:nth-child(2) { animation-delay: .08s; }
@keyframes duel-in { from { opacity: 0; transform: translateY(22px) scale(.96); } }
.duel-card:hover { border-color: var(--line); transform: translateY(-4px); }
.duel-card:active { transform: scale(.965); }
.duel-card.is-winner { z-index: 2; border-color: transparent; box-shadow: 0 0 0 2.5px var(--purple), 0 22px 60px -18px hsl(258 84% 64% / .45); transform: scale(1.035); }
.duel-card.is-loser { opacity: .32; filter: saturate(.15) brightness(.75); transform: scale(.94); }
.duel-art { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--panel-strong); }
.duel-art.art-fallback { display: grid; place-items: center; }
.duel-art.art-fallback svg { width: 44px; height: 44px; }
.duel-preview { position: absolute; z-index: 4; right: 8px; bottom: 8px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgb(255 255 255 / .22); border-radius: 50%; background: rgb(12 12 18 / .55); color: #fff; transition: transform .16s, background .2s; backdrop-filter: blur(10px); }
.duel-preview:active { transform: scale(.88); }
.duel-preview svg { width: 17px; height: 17px; }
.duel-title { display: -webkit-box; min-height: 2.6em; padding: 12px 13px 0; overflow: hidden; font-size: 15.5px; font-weight: 900; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.duel-album { display: block; padding: 4px 13px 15px; overflow: hidden; color: var(--quiet); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.vs { position: absolute; z-index: 5; top: 50%; left: 50%; display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgb(14 14 21 / .88); box-shadow: 0 10px 34px -8px rgb(0 0 0 / .7), 0 0 0 5px rgb(255 255 255 / .03); transform: translate(-50%, -50%); pointer-events: none; backdrop-filter: blur(14px); }
.vs b { display: inline-block; padding: 0 .06em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font-display); font-size: 18px; font-weight: 400; letter-spacing: .03em; transform: skewX(-8deg); }
.duel-hint { margin: 22px 0 0; color: var(--quiet); text-align: center; font-size: 12.5px; letter-spacing: .06em; }
.wordmark { direction: ltr; color: var(--quiet); font-family: var(--font-display); font-weight: 400; line-height: 1; letter-spacing: .04em; text-align: center; user-select: none; -webkit-user-select: none; }
.wordmark b, .wordmark i { display: inline-block; font-style: normal; font-weight: 400; transform: skewX(-8deg); }
.wordmark b { background: linear-gradient(90deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark i { color: var(--text); }
.duel-brand { position: absolute; right: 0; bottom: calc(11px + env(safe-area-inset-bottom)); left: 0; font-size: 15px; opacity: .85; pointer-events: none; }

.round-intro { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; background: rgb(6 6 10 / .82); animation: round-intro-in .25s both; backdrop-filter: blur(18px); }
.round-intro.is-closing { animation: round-intro-out .3s both; }
@keyframes round-intro-in { from { opacity: 0; } }
@keyframes round-intro-out { to { opacity: 0; } }
.round-intro-box { text-align: center; animation: round-intro-pop .55s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes round-intro-pop { from { opacity: 0; transform: scale(.7) translateY(16px); } }
.round-intro-box .pill { margin-bottom: 18px; }
.round-intro-title { font-size: clamp(44px, 13vw, 66px); font-weight: 900; line-height: 1.05; letter-spacing: .02em; }
.round-intro-sub { margin: 12px 20px 0; color: var(--muted); font-size: 15px; }

.done-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.champ-crown { font-size: 48px; filter: drop-shadow(0 12px 28px hsl(304 78% 66% / .4)); animation: crown-float 3s ease-in-out infinite; }
@keyframes crown-float { 50% { transform: translateY(-7px) rotate(5deg); } }
.champ-kicker { margin: 8px 0 16px; color: var(--pink); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.champ-art { position: relative; display: block; width: min(62vw, 290px); aspect-ratio: 1; overflow: hidden; border: 1px solid rgb(255 255 255 / .18); border-radius: 28px; background: var(--panel-strong); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8); }
.champ-art::before { position: absolute; z-index: -1; inset: -18%; border-radius: 40px; background: var(--gradient); content: ''; filter: blur(48px); opacity: .42; }
.done-screen h1 { max-width: 100%; margin: 20px 0 0; overflow: hidden; font-size: clamp(28px, 8vw, 38px); line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.champ-album { margin: 8px 0 4px; color: var(--muted); font-size: 14px; }
.done-screen > strong { color: var(--pink); font-size: 13px; }
.runner-up { display: flex; align-items: center; gap: 10px; width: min(100%, 360px); margin: 24px 0; padding: 10px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel); text-align: left; }
.runner-up > span { color: var(--quiet); font-size: 16px; font-weight: 800; }
.runner-up .song-art { width: 42px; height: 42px; }
.runner-up b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.champ-actions { display: flex; flex-direction: column; gap: 11px; width: min(100%, 400px); }
.champ-actions .button { width: 100%; }

.champ-page { display: flex; flex-direction: column; align-items: center; text-align: center; }
.champ-spacer { flex: 1; max-height: 34px; }
.champ-wordmark { direction: ltr; font-family: var(--font-display); font-weight: 400; letter-spacing: .05em; }
.champ-wordmark { margin: 0 0 12px; color: var(--purple); font-size: 25px; filter: drop-shadow(0 10px 30px hsl(258 84% 64% / .45)); }
.champ-wordmark i { color: var(--text); font-style: normal; }
.champ-label { margin-bottom: 18px; color: var(--muted); font-size: 13px; letter-spacing: .3em; }
.champ-art-wrap { position: relative; width: min(64vw, 300px); margin-bottom: 22px; }
.champ-art-wrap::before { position: absolute; z-index: -1; inset: -14%; border-radius: 40px; background: var(--gradient); content: ''; filter: blur(48px); opacity: .4; animation: champ-glow-pulse 3.6s ease-in-out infinite; }
.ambient.is-celebrating, .champ-art-wrap.is-celebrating::before { display: none; }
@keyframes champ-glow-pulse { 50% { opacity: .62; } }
.champ-cover { display: block; overflow: hidden; border: 1px solid rgb(255 255 255 / .18); border-radius: 30px; background: var(--panel-strong); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .8); animation: champ-in .7s cubic-bezier(.2,.9,.3,1.1) both; }
.champ-cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.champ-cover.art-fallback { aspect-ratio: 1; }
.champ-cover.art-fallback svg { width: 70px; height: 70px; }
@keyframes champ-in { from { opacity: 0; transform: scale(.82) rotate(-3deg); } }
.champ-preview { position: absolute; right: 12px; bottom: 12px; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgb(255 255 255 / .22); border-radius: 50%; background: rgb(12 12 18 / .58); color: #fff; animation: fade-in .5s .45s both; backdrop-filter: blur(10px); }
.champ-preview:disabled { opacity: .28; }
.champ-preview svg { width: 19px; height: 19px; }
.champ-title { display: -webkit-box; max-width: 92%; margin: 0; overflow: hidden; font-size: clamp(28px, 8vw, 38px); font-weight: 900; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.champ-page .champ-album { margin: 8px 0 26px; color: var(--muted); font-size: 14px; }
.podium { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; width: 100%; margin-bottom: 28px; }
.pod-card { display: flex; align-items: center; min-width: 0; gap: 11px; padding: 11px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--panel); text-align: left; }
.pod-card.silver { grid-column: 1 / -1; border-color: var(--line); background: linear-gradient(120deg, rgb(255 255 255 / .09), var(--panel) 60%); }
.pod-art { position: relative; display: block; flex: none; width: 46px; height: 46px; padding: 0; overflow: hidden; border-radius: 11px; background: var(--panel-strong); transition: transform .16s; }
button.pod-art:active { transform: scale(.92); }
.pod-cover { display: block; width: 100%; height: 100%; }
.pod-cover img { width: 100%; height: 100%; object-fit: cover; }
.pod-cover.art-fallback { width: 100%; height: 100%; }
.pod-play-icon { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(8 8 14 / .36); color: #fff; }
.pod-play-icon svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .55)); }
.pod-meta { min-width: 0; }
.pod-rank { overflow: hidden; color: var(--muted); font-size: 10.5px; letter-spacing: .14em; text-overflow: ellipsis; white-space: nowrap; }
.pod-name { overflow: hidden; font-size: 13.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.modal { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: calc(68px + env(safe-area-inset-top)) 20px 20px; background: rgb(5 5 9 / .88); backdrop-filter: blur(18px); animation: fade-in .25s both; }
@keyframes fade-in { from { opacity: 0; } }
.modal-close { position: absolute; z-index: 2; top: calc(14px + env(safe-area-inset-top)); right: 14px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-strong); }
.modal-close svg { width: 19px; height: 19px; }
[dir="rtl"] .modal-close { right: auto; left: 14px; }
.modal-card { width: min(88vw, 360px); padding: 24px 22px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgb(19 19 28 / .98); box-shadow: var(--shadow); animation: modal-pop .35s cubic-bezier(.2,.9,.3,1.15) both; }
@keyframes modal-pop { from { opacity: 0; transform: scale(.94) translateY(12px); } }
.language-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; max-height: min(58vh, 470px); margin-top: 16px; overflow-y: auto; }
.language-option { min-height: 46px; padding: 0 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); color: var(--muted); font-size: 14px; font-weight: 600; }
.language-option.is-active { border-color: transparent; background: linear-gradient(var(--panel-strong), var(--panel-strong)) padding-box, var(--gradient) border-box; color: var(--text); }
.confirm-card { text-align: center; }
.modal-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 12px; place-items: center; border-radius: 50%; background: var(--panel-strong); color: var(--pink); font-size: 28px; }
.confirm-card h2 { margin: 0 0 8px; font-size: 18px; }
.confirm-card p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .button { flex: 1; min-height: 48px; padding: 0 12px; font-size: 15px; }
.profile-modal { padding: calc(68px + env(safe-area-inset-top)) 20px 20px; }
.zeqing-panel { position: relative; width: min(90vw, 360px); padding: 24px 22px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgb(19 19 28 / .98); box-shadow: var(--shadow); animation: modal-pop .35s cubic-bezier(.2,.9,.3,1.15) both; }
.zeqing-panel .modal-close { position: absolute; top: 10px; right: 10px; }
.zeqing-head { display: flex; align-items: center; gap: 13px; padding-right: 40px; }
.zeqing-head img { flex: none; width: 52px; height: 52px; border-radius: 15px; object-fit: cover; }
.zeqing-head b { font-size: 20px; font-weight: 900; }
.zeqing-desc { margin: 14px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.zeqing-links { display: flex; gap: 11px; margin-bottom: 20px; }
.brand-btn { display: flex; flex: 1; flex-direction: row; align-items: center; justify-content: center; gap: 9px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel-strong); color: var(--text); text-decoration: none; transition: transform .16s, background .2s, border-color .2s; }
.brand-btn:active { transform: scale(.95); }
.brand-btn:hover { border-color: var(--line); background: rgb(255 255 255 / .12); }
.brand-btn > span:last-child { font-size: 15px; font-weight: 700; }
.brand-ico { display: grid; flex: none; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; }
.brand-img { object-fit: cover; }
.brand-ico.xhs { background: #ff2442; }
.brand-ico.xhs svg { width: 24px; height: 24px; }
.brand-ico.threads { background: #000; }
.brand-ico.threads svg { width: 22px; height: 22px; }
#zeqingModal .zeqing-links { flex-wrap: wrap; }
#zeqingModal .brand-btn { flex: 1 1 calc(50% - 5.5px); justify-content: flex-start; }
.zeqing-qr { text-align: center; }
.zeqing-qr img { display: block; box-sizing: border-box; width: 150px; height: 150px; margin: 0 auto; padding: 8px; border-radius: 13px; background: #fff; }
.zeqing-qr p { margin-top: 10px; color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.dl-btn { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel-strong); color: var(--text); text-decoration: none; transition: transform .16s, background .2s, border-color .2s; }
.dl-btn:active { transform: scale(.98); }
.dl-btn:hover { background: rgb(255 255 255 / .12); }
.dl-btn .brand-img { flex: none; width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.dl-btn span { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.dl-btn span b { font-size: 15px; font-weight: 700; }
.dl-btn span i { color: var(--muted); font-size: 12px; font-style: normal; }
.contact-label { margin: 16px 0 12px; color: var(--muted); font-size: 12px; letter-spacing: .02em; text-align: left; }
#tiimerModal .brand-btn { justify-content: flex-start; gap: 12px; padding: 12px 14px; }
#tiimerModal .brand-ico.xhs, #tiimerModal .brand-ico.threads { width: 42px; height: 42px; border-radius: 11px; }
[dir="rtl"] .zeqing-panel .modal-close { right: auto; left: 10px; }
[dir="rtl"] .zeqing-head { padding-right: 0; padding-left: 40px; }
.news-card h2 { margin: 0 0 16px; font-size: 19px; }
.news-item { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel); text-align: left; }
.news-icon { flex: none; font-size: 19px; line-height: 1.35; }
.news-item p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.news-card .modal-actions { margin-top: 20px; }
.share-modal { flex-direction: column; }
.share-stage { display: flex; flex: 1; align-items: center; justify-content: center; width: 100%; min-height: 0; max-width: 400px; }
.share-stage img { max-width: 100%; max-height: 100%; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 90px -20px rgb(0 0 0 / .9); }
.share-loading { display: grid; gap: 18px; justify-items: center; color: var(--muted); text-align: center; font-size: 14px; }
.share-actions { display: flex; flex: none; gap: 11px; width: 100%; max-width: 400px; padding: 18px 0 calc(10px + env(safe-area-inset-bottom)); }
.share-actions .button { flex: 1; height: 44px; min-height: 44px; padding: 0 16px; font-size: 14px; }
.share-actions .button.ghost { flex: 0 0 auto; }
.share-press-hold { flex: none; width: min(100%, 400px); margin: 0; padding: 18px 0 calc(14px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13.5px; }
.toast { position: fixed; z-index: 110; bottom: calc(96px + env(safe-area-inset-bottom)); left: 50%; max-width: 82vw; padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; background: rgb(24 24 34 / .95); box-shadow: var(--shadow); font-size: 14px; font-weight: 500; text-align: center; transform: translate(-50%, 16px); opacity: 0; transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (min-width: 760px) {
  .screen { max-width: 640px; }
  .home-screen, .loading-screen { max-width: 560px; }
  .landing-content { padding-right: 32px; padding-left: 32px; }
  .footer-inner { padding-right: 32px; padding-left: 32px; }
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr); align-items: start; gap: 70px; }
  .footer-nav { justify-items: start; padding-top: 7px; }
  .footer-creators { grid-template-columns: 160px minmax(0, 1fr); align-items: center; gap: 26px; }
  .landing-section { padding: 76px 0; }
  .mode-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .mode-rail li, .mode-rail li:last-child { grid-template-columns: 1fr; gap: 16px; padding: 20px 0 0; border: 0; border-top: 2px solid var(--line-soft); }
  .mode-rail-index { font-size: 28px; }
  .journey-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .journey-list li { display: block; min-height: 174px; padding: 0; }
  .journey-list li:not(:last-child)::after { top: 17px; right: -24px; bottom: auto; left: 48px; width: auto; height: 1px; background: linear-gradient(90deg, var(--purple), transparent); }
  .journey-list li > span { margin-bottom: 22px; }
  .result-board { grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); align-items: center; gap: 52px; }
  .result-switcher { margin-top: 24px; }
  .group-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
  .pick-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
  .wild-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .duel { gap: 26px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .vs { width: 62px; height: 62px; font-size: 16px; }
  .duel-title { font-size: 17px; }
  .champ-actions { flex-direction: row; }
  .champ-actions .button { flex: 1; }
  .podium { grid-template-columns: 1.2fr 1fr 1fr; }
  .pod-card.silver { grid-column: auto; }
  .song-card:hover { transform: translateY(-2px); }
}

@media (min-width: 1100px) { .screen { max-width: 720px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
