:root {
    color-scheme: dark;
    --bg: #18142b;
    --surface: rgba(38, 31, 65, .92);
    --line: rgba(255,255,255,.14);
    --ink: #fffaf2;
    --muted: #c7bfd9;
    --yellow: #ffd45a;
    --cyan: #6ce5dc;
    --purple: #9b7cff;
    --danger: #ff8a9b;
    --shadow: 0 24px 70px rgba(7, 4, 20, .38);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100svh; margin: 0; color: var(--ink); background: radial-gradient(circle at 50% -10%, #49368a 0, transparent 42%), linear-gradient(145deg, #18142b, #12101f 72%); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.hidden { display: none !important; }
.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; }
.kitchen-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; opacity: .13; }
.kitchen-bg span { position: absolute; font-size: clamp(3rem, 7vw, 7rem); filter: blur(.2px); animation: float 8s ease-in-out infinite; }
.kitchen-bg span:nth-child(1) { left: 3%; top: 18%; transform: rotate(-18deg); }
.kitchen-bg span:nth-child(2) { right: 5%; top: 13%; animation-delay: -2s; }
.kitchen-bg span:nth-child(3) { left: 9%; bottom: 8%; animation-delay: -5s; }
.kitchen-bg span:nth-child(4) { right: 8%; bottom: 11%; animation-delay: -3s; }
.kitchen-bg span:nth-child(5) { left: 42%; top: 2%; font-size: 3rem; }
.kitchen-bg span:nth-child(6) { right: 28%; bottom: 3%; font-size: 4rem; }
.game-header, .game-footer { --minimal-shell-max-width: 73.75rem; --minimal-shell-padding-inline: 1.1rem; --minimal-shell-muted: var(--muted); --minimal-shell-hover: var(--ink); --minimal-shell-brand-size: .76rem; --minimal-shell-brand-spacing: .08em; }
.ghost-button, .secondary-button { border: 1px solid var(--line); background: rgba(255,255,255,.06); border-radius: 999px; padding: .65rem 1rem; font-size: .78rem; font-weight: 800; cursor: pointer; }
.ghost-button:hover, .secondary-button:hover { background: rgba(255,255,255,.12); }
.game-shell { position: relative; z-index: 1; width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.game-app { min-width: 0; width: 100%; }
.screen { animation: screen-in .38s cubic-bezier(.2,.8,.2,1) both; }
.mode-screen { min-height: calc(100svh - 9.5rem); display: flex; flex-direction: column; justify-content: center; padding: 1.2rem 0 2rem; }
.hero-copy { text-align: center; max-width: 750px; margin: 0 auto 2.2rem; }
.hero-pot { position: relative; display: inline-grid; place-items: center; width: 6rem; height: 5rem; font-size: 4.3rem; animation: pop-in .55s cubic-bezier(.2,1.3,.4,1) both; }
.hero-pot i { position: absolute; right: -.25rem; top: -.25rem; font-style: normal; font-size: 1.7rem; animation: sparkle 1.8s ease-in-out infinite; }
.hero-pot > span.material-symbols-outlined, .mode-art > b.material-symbols-outlined, .start-visual > i.material-symbols-outlined { font-size: inherit; }
.eyebrow { margin: 0 0 .55rem; color: var(--cyan); font-size: .7rem; font-weight: 950; letter-spacing: .18em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .8rem; font-size: clamp(2.35rem, 7vw, 4.8rem); line-height: 1.08; letter-spacing: -.055em; }
h1 em { color: var(--yellow); font-style: normal; text-shadow: 0 4px 25px rgba(255,212,90,.18); }
.hero-lead { margin-bottom: 0; color: var(--muted); line-height: 1.75; font-size: clamp(.92rem, 2vw, 1.05rem); }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 820px; margin: 0 auto; }
.mode-card { position: relative; min-width: 0; min-height: 260px; display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; padding: 1.35rem; color: var(--ink); text-align: left; border: 1px solid var(--line); border-radius: 1.5rem; background: var(--surface); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.mode-card:nth-child(1) { animation: card-in .42s .08s both; }
.mode-card:nth-child(2) { animation: card-in .42s .16s both; }
.mode-card:nth-child(3) { animation: card-in .42s .24s both; }
button.mode-card { cursor: pointer; }
button.mode-card:hover { transform: translateY(-6px) rotate(-.35deg); border-color: rgba(255,255,255,.32); box-shadow: 0 30px 80px rgba(5,3,18,.52); }
.mode-card-solo { background: linear-gradient(150deg, rgba(88,55,155,.97), rgba(44,32,82,.97)); }
.mode-card-online { background: linear-gradient(150deg, rgba(150,49,105,.96), rgba(65,31,75,.97)); }
.mode-card-theme { background: linear-gradient(150deg, rgba(35,118,113,.96), rgba(30,47,74,.97)); }
.mode-art { width: 100%; min-height: 80px; display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: .7rem; font-size: 2.8rem; }
.mode-art b { filter: drop-shadow(0 8px 12px rgba(0,0,0,.2)); }
.mode-art i { color: var(--yellow); font-size: 1rem; font-style: normal; font-weight: 950; }
.mode-meta { color: var(--cyan); font-size: .64rem; font-weight: 950; letter-spacing: .14em; }
.mode-card strong { margin-top: .35rem; font-size: 1.35rem; letter-spacing: -.02em; }
.mode-description { margin: .55rem 0 1rem; color: #ddd6eb; font-size: .83rem; line-height: 1.65; }
.mode-cta { margin-top: auto; color: var(--yellow); font-size: .82rem; font-weight: 900; }
.soon-badge { position: absolute; top: .9rem; right: .9rem; padding: .35rem .6rem; color: #18142b; background: var(--cyan); border-radius: 999px; font-size: .58rem; font-weight: 950; letter-spacing: .08em; }
.mode-note { margin: 1.4rem 0 0; color: #9188a7; text-align: center; font-size: .72rem; }
.play-screen { max-width: 900px; min-height: calc(100svh - 10rem); margin: 0 auto; padding: 1.2rem 0 2rem; }
.stage-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.stage-heading h2 { margin: 0; font-size: clamp(1.55rem, 4vw, 2.3rem); letter-spacing: -.04em; }
.mode-pill { flex: none; padding: .55rem .8rem; color: var(--yellow); background: rgba(255,212,90,.08); border: 1px solid rgba(255,212,90,.25); border-radius: 999px; font-size: .72rem; font-weight: 850; }
.game-stage { min-height: 540px; padding: clamp(1.2rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: 1.75rem; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.center-screen { min-height: 455px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.center-screen h3 { margin-bottom: .7rem; font-size: clamp(1.5rem, 4vw, 2rem); }
.center-screen > p:not(.eyebrow):not(.small-status) { max-width: 470px; color: var(--muted); line-height: 1.75; }
.start-visual { position: relative; margin-bottom: 1rem; font-size: 5rem; }
.start-visual span { position: absolute; right: -1.4rem; bottom: -.2rem; font-size: 2.6rem; transform: rotate(-18deg); }
.primary-button { min-height: 48px; padding: .75rem 1.35rem; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--yellow), #ffb84d); color: #281d3e; font-weight: 950; box-shadow: 0 8px 24px rgba(255,190,70,.2); cursor: pointer; transition: transform .16s ease, filter .16s ease; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.primary-button:active:not(:disabled), .secondary-button:active, .ghost-button:active, .mode-card:active { transform: translateY(1px) scale(.98); }
.primary-button:disabled { opacity: .45; cursor: default; }
.small-status { min-height: 1.25rem; margin: .9rem 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
.text-error { color: var(--danger) !important; }
.quiz-topline { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; font-weight: 850; }
.quiz-topline strong { color: var(--yellow); font-size: 1rem; }
.progress-track { height: 7px; margin: .65rem 0 1.1rem; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--purple)); transition: width .25s ease; }
.mashup-frame { display: grid; place-items: center; min-height: 245px; padding: 1rem; border-radius: 1.35rem; background: radial-gradient(circle, rgba(255,255,255,.12), rgba(255,255,255,.035)); }
.mashup-image { width: min(235px, 52vw); aspect-ratio: 1; object-fit: contain; }
.question-copy { margin: 1rem 0 .8rem; text-align: center; font-size: .84rem; font-weight: 850; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.ek-choice { min-height: 68px; border: 2px solid transparent; border-radius: 1rem; background: rgba(255,255,255,.07); color: var(--ink); font-size: 2rem; cursor: pointer; transition: transform .14s ease, background .14s ease, border-color .14s ease; }
.ek-choice:hover:not(:disabled) { transform: translateY(-2px); background: rgba(255,255,255,.13); }
.ek-choice[aria-pressed="true"] { border-color: var(--yellow); background: rgba(255,212,90,.16); }
.ek-choice:disabled { opacity: .65; cursor: default; }
.answer-area { min-height: 84px; padding-top: 1rem; text-align: center; }
.answer-message { margin: 0 0 .7rem; font-weight: 900; }
.answer-message.correct { color: var(--cyan); }
.answer-message.wrong { color: var(--danger); }
.result-icon { font-size: 5rem; }
#result-screen h3 { margin: .2rem 0 .75rem; }
#result-screen h3 strong { color: var(--yellow); font-size: 3.4rem; }
#result-screen h3 span { color: var(--muted); font-size: 1rem; }
.result-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; }
.result-actions button { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.result-actions button .material-symbols-outlined { font-size: 1.15rem; }
.online-entry { text-align: center; }
.entry-visual { display: flex; justify-content: center; align-items: center; gap: .55rem; margin: .1rem 0 1.6rem; font-size: 2rem; }
.entry-visual b { font-size: 3.7rem; }
.entry-visual i { color: var(--yellow); font-style: normal; font-weight: 950; }
.icon-selector-panel { max-width: 600px; margin: 0 auto 1.4rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 1.25rem; background: rgba(255,255,255,.04); text-align: center; }
.icon-selector-panel h3 { margin: .2rem 0 .7rem; font-size: .95rem; }
.icon-picker { display: grid; grid-template-columns: repeat(8, 1fr); gap: .45rem; justify-content: center; }
.icon-btn { aspect-ratio: 1; min-height: 44px; display: grid; place-items: center; border: 2px solid transparent; border-radius: .9rem; background: rgba(255,255,255,.06); font-size: 1.55rem; cursor: pointer; transition: transform .12s ease, border-color .12s ease, background .12s ease; }
.icon-btn:hover { transform: translateY(-2px) scale(1.06); background: rgba(255,255,255,.14); }
.icon-btn[aria-checked="true"] { border-color: var(--yellow); background: rgba(255,212,90,.2); box-shadow: 0 0 12px rgba(255,212,90,.3); transform: scale(1.08); }
.icon-btn:focus-visible { outline: 2px solid var(--yellow); }
.online-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 1rem; }
.action-panel { position: relative; padding: 1.35rem; border: 1px solid var(--line); border-radius: 1.25rem; background: rgba(255,255,255,.045); }
.action-panel h3 { margin: .2rem 0 .4rem; font-size: 1.1rem; }
.action-panel p { margin-bottom: 1rem; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.step-number { color: var(--cyan); font-size: .65rem; font-weight: 950; letter-spacing: .12em; }
.action-divider { display: grid; place-items: center; color: #8e84a2; font-size: .67rem; }
.join-row { display: flex; gap: .55rem; }
.join-row input { min-width: 0; width: 100%; height: 48px; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .9rem; background: rgba(6,4,18,.35); color: var(--ink); text-align: center; text-transform: uppercase; font-weight: 950; letter-spacing: .18em; }
.turnstile-box { min-height: 65px; display: flex; justify-content: center; margin-top: 1.2rem; }
.security-copy { margin: .35rem 0 0; color: var(--muted); font-size: .7rem; }
.online-room { min-height: 540px; }
.room-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.room-bar-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.room-bar div span { display: block; color: var(--muted); font-size: .65rem; }
.room-bar strong { color: var(--yellow); font-size: 1.35rem; letter-spacing: .2em; }
.player-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 1rem 0; }
.player-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .85rem .65rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,.05); animation: screen-in .25s ease both; }
.player-card.is-me { border-color: rgba(108,229,220,.45); background: rgba(108,229,220,.06); }
.player-card.disconnected { opacity: .5; filter: grayscale(.65); }
.player-avatar { font-size: 2.2rem; margin-bottom: .25rem; line-height: 1; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.player-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; font-weight: 900; }
.player-state { margin-left: .25rem; color: var(--danger); font-size: .58rem; }
.player-score { margin-top: .3rem; color: var(--muted); font-size: .68rem; }
.player-score strong { color: var(--cyan); }
.player-ready-badge { margin-top: .35rem; padding: .15rem .45rem; border-radius: 999px; font-size: .62rem; font-weight: 850; }
.player-ready-badge.ready { color: var(--cyan); background: rgba(108,229,220,.12); border: 1px solid rgba(108,229,220,.28); }
.player-ready-badge.unready { color: #b4a8c8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.lobby-center { min-height: 280px; display: grid; place-items: center; align-content: center; text-align: center; margin-top: .5rem; }
.lobby-icon-editor { max-width: 520px; margin: 1rem auto 1.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1.15rem; background: rgba(255,255,255,.035); }
.lobby-icon-editor strong { display: block; margin-bottom: .6rem; font-size: .8rem; color: var(--muted); }
.lobby-icon-editor .icon-picker { grid-template-columns: repeat(8, 1fr); }
.lobby-game-picker { max-width: 620px; margin: 1rem auto; padding: 1rem; border: 1px solid var(--line); border-radius: 1.15rem; background: rgba(255,255,255,.035); text-align: center; }
.lobby-game-picker > strong { display: block; margin-bottom: .7rem; }
.lobby-game-picker > p { margin: .65rem 0 0; color: var(--muted); font-size: .72rem; }
.lobby-game-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.lobby-game-options button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .55rem; padding: .8rem; border: 1px solid var(--line); border-radius: .9rem; background: rgba(255,255,255,.04); color: var(--ink); text-align: left; cursor: pointer; }
.lobby-game-options button.selected { border-color: var(--yellow); background: rgba(255,204,77,.12); box-shadow: 0 0 0 2px rgba(255,204,77,.08); }
.lobby-game-options button:disabled { cursor: default; opacity: .8; }
.lobby-game-options small { color: var(--muted); }
.lobby-ready-toggle { margin-top: .85rem; }
.lobby-icon { margin-bottom: .6rem; font-size: 3.5rem; }
.lobby-center h3 { margin-bottom: .35rem; }
.lobby-center p { color: var(--muted); font-size: .8rem; }
.online-question-head { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 850; }
.answer-card { position: relative; overflow: hidden; padding: 2rem; border-radius: 1.3rem; background: rgba(255,255,255,.055); text-align: center; }
.answer-card .answer-pair { margin: 1rem 0; font-size: clamp(3rem, 9vw, 5rem); }
.answer-card .correct { color: var(--cyan); font-weight: 900; }
.answer-card .wrong { color: var(--danger); font-weight: 900; }
.theme-prompt { margin: 1rem 0; padding: 1rem 1.2rem; border: 1px solid rgba(255,212,90,.25); border-radius: 1.15rem; background: rgba(255,212,90,.07); text-align: center; }
.theme-prompt span { display: block; margin-bottom: .35rem; color: var(--yellow); font-size: .65rem; font-weight: 950; letter-spacing: .1em; }
.theme-prompt strong { font-size: clamp(1.15rem, 4vw, 1.65rem); }
.theme-maker { padding-top: .25rem; }
.theme-maker-head, .theme-vote-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.theme-maker-head span, .theme-vote-head > span { flex: none; color: var(--muted); font-size: .72rem; }
.theme-search { width: 100%; height: 44px; margin-bottom: .7rem; padding: .65rem .85rem; color: var(--ink); border: 1px solid var(--line); border-radius: .8rem; background: rgba(6,4,18,.35); }
.theme-picker { max-height: 270px; display: grid; grid-template-columns: repeat(10, 1fr); gap: .35rem; overflow-y: auto; padding: .35rem; border-radius: 1rem; background: rgba(5,3,16,.22); }
.theme-emoji { min-width: 0; aspect-ratio: 1; border: 1px solid transparent; border-radius: .7rem; background: rgba(255,255,255,.06); font-size: 1.55rem; cursor: pointer; }
.theme-emoji:hover { border-color: var(--yellow); background: rgba(255,212,90,.12); }
.theme-back { position: sticky; top: 0; color: var(--yellow); font-size: 1rem; }
.theme-combo-preview { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,.045); }
.theme-combo-preview img { width: 110px; aspect-ratio: 1; object-fit: contain; }
.theme-combo-preview div { display: grid; gap: .7rem; text-align: center; }
.match-choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0; }
.match-choice { display: flex; flex-direction: column; align-items: center; gap: .35rem; min-width: 0; padding: .6rem; color: var(--ink); border: 2px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,.045); cursor: pointer; }
.match-choice img { width: min(100%, 112px); aspect-ratio: 1; object-fit: contain; }
.match-choice span { font-size: .82rem; font-weight: 800; }
.match-choice:hover, .match-choice[aria-pressed="true"] { border-color: var(--yellow); background: rgba(255,212,90,.12); }
.match-choice:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.theme-wait { min-height: 300px; display: grid; place-items: center; align-content: center; text-align: center; }
.theme-wait > div { font-size: 4rem; }
.theme-wait > div .material-symbols-outlined { font-size: inherit; }
.theme-wait h3 { margin: .5rem 0; }
.theme-wait p { color: var(--muted); font-size: .8rem; }
.theme-vote-head { position: relative; display: block; padding-right: 5rem; }
.theme-vote-head h3 { margin-bottom: .25rem; }
.theme-vote-head p { margin-bottom: .8rem; color: var(--muted); font-size: .75rem; }
.theme-vote-head > span { position: absolute; top: .2rem; right: 0; }
.theme-entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.theme-entry { position: relative; display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: .8rem; border: 1px solid var(--line); border-radius: 1.1rem; background: rgba(255,255,255,.045); text-align: center; }
.theme-entry { animation: plate-in .4s cubic-bezier(.2,.85,.25,1.18) both; }
.theme-entry.mine { opacity: .62; }
.theme-entry.winner { border-color: var(--yellow); background: rgba(255,212,90,.09); box-shadow: 0 0 28px rgba(255,212,90,.1); }
.theme-entry img { width: min(150px, 100%); aspect-ratio: 1; object-fit: contain; }
.theme-entry > span { color: var(--muted); font-size: .68rem; }
.theme-entry .entry-rank { position: absolute; top: .55rem; left: .55rem; z-index: 1; max-width: calc(100% - 1.1rem); padding: .25rem .45rem; color: #251b38; border-radius: 999px; background: var(--yellow); font-weight: 950; }
.theme-empty { grid-column: 1 / -1; min-height: 210px; display: grid; place-items: center; align-content: center; gap: .4rem; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 1.1rem; }
.theme-empty > span { color: inherit; font-size: 3rem; }
.theme-empty strong { color: var(--ink); }
.theme-empty p { margin: 0; font-size: .75rem; }
.theme-vote-button { width: 100%; min-height: 42px; padding: .55rem .7rem; font-size: .72rem; }
.reaction-zone { position: relative; width: 100%; min-height: 62px; margin-top: 1rem; }
#reaction-layer { position: absolute; inset: auto 0 42px; height: 150px; overflow: hidden; pointer-events: none; }
.reaction-bar { position: relative; z-index: 2; display: flex; justify-content: center; gap: .35rem; padding-top: .45rem; border-top: 1px solid var(--line); }
.reaction-bar button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.06); font-size: 1.25rem; cursor: pointer; transition: transform .14s ease, background .14s ease; }
.reaction-bar button:hover:not(:disabled) { transform: translateY(-3px) scale(1.08); background: rgba(255,255,255,.13); }
.reaction-bar button:disabled { opacity: .45; }
.reaction-bar button:active:not(:disabled) { transform: scale(.82); }
.reaction-bubble { position: absolute; left: var(--reaction-x); bottom: 0; display: grid; justify-items: center; font-size: 2.2rem; animation: reaction-fly 1.8s ease-out forwards; }
.reaction-bubble small { padding: .15rem .35rem; color: var(--muted); border-radius: 999px; background: rgba(10,7,24,.7); font-size: .55rem; white-space: nowrap; }
.ranking { max-width: 480px; margin: 0 auto 1.3rem; padding: 0; list-style: none; }
.ranking li { display: flex; align-items: center; gap: .8rem; margin-top: .55rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(255,255,255,.05); }
.ranking li:first-child { border-color: rgba(255,212,90,.45); background: rgba(255,212,90,.08); }
.ranking .rank { width: 1.8rem; color: var(--yellow); font-size: 1.15rem; font-weight: 950; }
.ranking-avatar { font-size: 1.5rem; line-height: 1; }
.ranking .ranking-name { flex: 1; text-align: left; font-weight: 850; }
.game-breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .68rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); margin-bottom: 1.2rem; }
.game-breadcrumb a:hover { color: var(--yellow); }
.game-breadcrumb span { color: rgba(255,255,255,.2); }
.game-guide-section { max-width: 900px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.guide-heading { text-align: center; margin-bottom: 1.8rem; }
.guide-heading h2 { font-size: 1.55rem; margin-bottom: .4rem; }
.guide-heading p { color: var(--muted); font-size: .82rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.guide-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 1.2rem; background: rgba(255,255,255,.04); }
.guide-card .guide-icon { font-size: 2.2rem; margin-bottom: .6rem; }
.guide-card h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.guide-card p { color: var(--muted); font-size: .76rem; line-height: 1.65; margin: 0; }
.faq-section { max-width: 900px; margin: 2.5rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.faq-card { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 1.1rem; background: rgba(255,255,255,.035); }
.faq-card h3 { display: flex; align-items: center; gap: .5rem; font-size: .95rem; margin-bottom: .45rem; color: var(--ink); }
.faq-card h3 span { color: var(--yellow); font-weight: 950; font-size: .9rem; }
.faq-card p { color: var(--muted); font-size: .78rem; line-height: 1.7; margin: 0; }
.related-section { max-width: 900px; margin: 2.5rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-card { display: flex; flex-direction: column; padding: 1.1rem; border: 1px solid var(--line); border-radius: 1.15rem; background: rgba(255,255,255,.04); transition: transform .18s ease, border-color .18s ease; }
.related-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.related-card .related-icon { font-size: 2rem; margin-bottom: .5rem; }
.related-card strong { font-size: .95rem; margin-bottom: .3rem; color: var(--ink); }
.related-card p { font-size: .72rem; color: var(--muted); line-height: 1.55; margin: 0; }
.data-note { max-width: 900px; margin: 2.5rem auto 0; padding: .8rem 1rem; color: #978da9; border: 1px solid rgba(255,255,255,.08); border-radius: 1rem; font-size: .7rem; line-height: 1.65; }
.data-note summary { color: var(--muted); cursor: pointer; font-weight: 800; }
.data-note p { margin: .7rem 0 0; }
.game-footer { --minimal-shell-footer-color: #746b87; --minimal-shell-footer-size: .67rem; }
.ek-player { animation: screen-in .28s ease-out both; }
.ek-online-image { animation: reveal .48s cubic-bezier(.2,.9,.3,1.25) both; }
.ek-answer-flash { animation: flash .6s ease-out; }
.ek-choice-wrong { animation: shake .35s ease-in-out; }
.ek-spark { position: absolute; inset: 50% auto auto 50%; pointer-events: none; animation: spark .7s ease-out forwards; }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes plate-in { from { opacity: 0; transform: translateY(18px) scale(.88) rotate(-2deg); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.55) rotate(-12deg); } }
@keyframes reveal { from { opacity: 0; transform: scale(.65) rotate(-5deg); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 50% { translate: 0 -14px; rotate: 4deg; } }
@keyframes sparkle { 50% { transform: scale(1.25) rotate(16deg); } }
@keyframes flash { 50% { box-shadow: 0 0 0 10px rgba(108,229,220,.15); } }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes spark { to { opacity: 0; transform: translate(var(--x), var(--y)) rotate(180deg) scale(.3); } }
@keyframes reaction-fly { from { opacity: 0; transform: translate(-50%, 20px) scale(.7); } 20% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -125px) scale(1.12) rotate(8deg); } }
.is-urgent { color: var(--danger) !important; animation: urgent-pulse .7s ease-in-out infinite alternate; }
.is-timeout { color: var(--danger) !important; }
#online-timebar.is-urgent { background: var(--danger); }
@keyframes urgent-pulse { to { opacity: .55; } }
@media (max-width: 760px) {
    .mode-screen { justify-content: flex-start; padding-top: .5rem; }
    .hero-copy { margin-bottom: 1.35rem; }
    .hero-pot { width: 4.5rem; height: 4rem; font-size: 3.4rem; }
    .mode-grid { grid-template-columns: 1fr; }
    .mode-card { min-height: 150px; display: grid; grid-template-columns: 88px 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 1rem; padding: 1rem; }
    .mode-art { grid-row: 1 / 5; width: 88px; min-height: 100%; margin: 0; flex-direction: column; gap: .1rem; font-size: 2rem; }
    .mode-art i { font-size: .7rem; }
    .mode-card strong, .mode-meta, .mode-description, .mode-cta { grid-column: 2; }
    .mode-card strong { font-size: 1.12rem; }
    .mode-description { margin: .3rem 0 .55rem; font-size: .76rem; }
    .mode-note { line-height: 1.6; }
    .play-screen { padding-top: .5rem; }
    .game-stage { min-height: 0; padding: 1rem; border-radius: 1.25rem; }
    .center-screen { min-height: 470px; }
    .mashup-frame { min-height: 220px; }
    .online-actions { grid-template-columns: 1fr; }
    .action-divider { height: 1.4rem; }
    .entry-visual { margin-bottom: 1rem; }
    .entry-visual b { font-size: 2.8rem; }
    .icon-selector-panel { padding: .9rem; }
    .icon-picker { grid-template-columns: repeat(8, 1fr); gap: .35rem; }
    .icon-btn { min-height: 38px; font-size: 1.35rem; }
    .player-grid { grid-template-columns: repeat(2, 1fr); }
    .theme-picker { grid-template-columns: repeat(7, 1fr); max-height: 245px; }
    .theme-combo-preview { gap: .7rem; }
    .theme-combo-preview img { width: 90px; }
    .match-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-grid, .related-grid { grid-template-columns: 1fr; }
    .lobby-game-options { grid-template-columns: 1fr; }
    .room-bar { align-items: flex-start; }
    .room-bar .secondary-button { padding: .55rem .7rem; }
    .reaction-bar { position: sticky; bottom: max(.35rem, env(safe-area-inset-bottom)); padding: .45rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(24,20,43,.9); backdrop-filter: blur(10px); }
}
@media (max-width: 420px) {
    .game-app { width: min(100% - 1rem, 1120px); }
    .game-header { --minimal-shell-mobile-padding-block: .7rem; --minimal-shell-brand-size: .66rem; }
    .stage-heading { flex-direction: column; align-items: start; gap: .55rem; }
    .mode-pill { align-self: flex-start; }
    .mode-pill { font-size: .62rem; }
    .choice-grid { gap: .4rem; }
    .ek-choice { min-height: 60px; font-size: 1.7rem; }
    .join-row { flex-direction: column; }
    .join-row .primary-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
