:root {
  color-scheme: dark;
  --ink: #f3f0e7;
  --muted: #a3a6b8;
  --line: #303449;
  --panel: #1a1e31;
  --canvas: #101322;
  --primary: #b8a0ff;
  --primary-2: #9980ed;
  --accent: #d9f27d;
  --success: #83dfb1;
  --warning: #e5ec8d;
  --danger: #ff9d9f;
  --shadow: 0 18px 48px rgba(0, 0, 0, .16);
  --soft-shadow: 0 8px 22px rgba(0, 0, 0, .12);
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { min-height: 100vh; margin: 0; color: var(--ink); background:
  radial-gradient(circle at 8% 12%, rgba(255, 109, 77, 0.10), transparent 22rem),
  radial-gradient(circle at 93% 4%, rgba(90, 73, 237, 0.13), transparent 28rem), var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.app-shell { min-height: 100vh; }
.topbar { height: 76px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(219, 221, 233, .8); background: rgba(255,255,255,.72); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 850; letter-spacing: -.03em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(145deg, var(--primary), #7868ff); box-shadow: 0 8px 22px rgba(90, 73, 237, .28); font-size: 25px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.profile-button { min-width: 0; height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 12px 0 6px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: rgba(255,255,255,.88); box-shadow: 0 5px 16px rgba(31,35,80,.06); }
.profile-avatar { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--primary); background: #ece9ff; font-weight: 900; }
.profile-name { max-width: 120px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 800; }
.profile-edit { color: var(--muted); font-size: 11px; }
.page { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 72px; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 8px; color: var(--primary); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -.055em; margin-bottom: 22px; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.04em; }
h3 { font-size: 18px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.75; max-width: 600px; }

.home-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(390px, .8fr); grid-template-areas: "hero entry" "public public"; column-gap: clamp(34px, 7vw, 92px); row-gap: 42px; align-items: center; }
.hero-copy { grid-area: hero; padding: 12px 0; }
.entry-card { grid-area: entry; }
.public-rooms { grid-area: public; align-self: stretch; }
.hero-copy h1 span { color: var(--primary); position: relative; }
.hero-copy h1 span::after { content: ""; position: absolute; left: 4%; right: -3%; bottom: -5px; height: 9px; border-radius: 99px; background: var(--warning); opacity: .75; z-index: -1; transform: rotate(-2deg); }
.rule-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.rule-pill { background: white; border: 1px solid var(--line); border-radius: 99px; padding: 10px 14px; color: #39415a; box-shadow: 0 6px 18px rgba(40, 44, 89, .05); font-size: 14px; }
.hero-visual { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 600px; }
.peek-card { min-height: 134px; padding: 18px; border-radius: 24px; border: 1px solid rgba(225,226,238,.9); background: rgba(255,255,255,.78); box-shadow: var(--soft-shadow); transform: rotate(-2deg); }
.peek-card:nth-child(2) { transform: translateY(14px) rotate(2deg); }
.peek-card:nth-child(3) { transform: rotate(-1deg); }
.peek-avatar { font-size: 38px; margin-bottom: 10px; }
.peek-card b { display: block; font-size: 15px; }
.peek-card small { color: var(--muted); }
.peek-card.secret { color: var(--primary); background: linear-gradient(155deg, #f1efff, #fff); border: 2px dashed #b9b1ff; }

.panel { background: var(--panel); border: 1px solid rgba(221, 223, 235, .9); border-radius: 30px; box-shadow: var(--shadow); }
.entry-card { padding: clamp(22px, 4vw, 34px); }
.segment { display: grid; grid-template-columns: 1fr 1fr; background: #f0f1f7; padding: 5px; border-radius: 14px; margin-bottom: 28px; }
.segment button { height: 46px; border: 0; background: transparent; border-radius: 10px; color: var(--muted); font-weight: 750; }
.segment button.active { background: white; color: var(--ink); box-shadow: 0 4px 14px rgba(30,35,76,.08); }
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 750; color: #35405a; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; border: 1px solid #dcdfea; border-radius: 14px; padding: 0 15px; color: var(--ink); background: #fff; outline: none; transition: .2s; }
.field textarea { padding-block: 12px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(90,73,237,.10); }
.field-hint { color: var(--muted); font-size: 12px; }
.icon-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-option { width: 45px; height: 45px; border-radius: 14px; border: 1px solid var(--line); background: white; font-size: 22px; }
.icon-option.selected { border: 2px solid var(--primary); background: #f0eeff; }
.btn { min-height: 46px; border: 1px solid transparent; border-radius: 14px; padding: 0 18px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.btn-primary { color: white; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 22px rgba(90,73,237,.24); }
.btn-accent { color: white; background: linear-gradient(135deg, #ff764f, #ff553c); box-shadow: 0 10px 22px rgba(255,89,61,.2); }
.btn-success { color: white; background: linear-gradient(135deg, #11b981, #0ba975); box-shadow: 0 10px 22px rgba(17,185,129,.2); }
.btn-secondary { color: #39415a; background: white; border-color: var(--line); }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-danger { color: var(--danger); background: #fff3f3; border-color: #ffd8d8; }
.btn-block { width: 100%; min-height: 54px; }
.link-button { border: 0; background: none; color: var(--primary); font-weight: 750; padding: 7px; }
.form-error { min-height: 18px; margin: -2px 0 0; color: var(--danger); font-size: 14px; }
.check-row { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fbfbfe; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); }
.check-row b, .check-row small { display: block; }
.check-row small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.public-rooms { padding: clamp(22px, 4vw, 34px); }
.public-rooms-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.public-rooms-head h2 { margin: 0 0 7px; font-size: clamp(24px, 3vw, 34px); }
.public-rooms-head p:last-child { margin: 0; color: var(--muted); }
.public-rooms-actions { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.public-room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.public-room-card { min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 19px; background: #fbfbfe; transition: transform .15s, border-color .15s, box-shadow .15s; }
.public-room-card:hover { transform: translateY(-2px); border-color: #cfcafc; box-shadow: var(--soft-shadow); }
.public-room-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #eeecff, #fff); font-size: 27px; }
.public-room-copy { min-width: 0; }
.public-room-title { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 7px; }
.public-room-title h3 { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.room-lock, .room-open, .room-returning, .room-playing { flex: 0 0 auto; border-radius: 99px; font-size: 11px; font-weight: 800; }
.room-lock { padding: 4px 7px; background: #fff2d9; }
.room-open { padding: 4px 8px; color: #087958; background: #dcf9ee; }
.room-returning { padding: 4px 8px; color: #5146bb; background: #ece9ff; }
.room-playing { padding: 4px 8px; color: #a35d00; background: #fff0d1; }
.public-room-card.returning { border-color: #cfcafc; background: #faf9ff; }
.public-room-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; }
.room-code-text { color: var(--primary); font-weight: 900; letter-spacing: .07em; }
.public-room-join { min-height: 42px; padding-inline: 16px; }
.public-room-empty { min-height: 126px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 1px dashed #d8dae7; border-radius: 18px; color: var(--muted); }
.public-room-empty > span { font-size: 34px; }
.public-room-empty b, .public-room-empty small { display: block; }
.public-room-empty b { color: var(--ink); margin-bottom: 4px; }

.room-page { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 78px; }
.room-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.room-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.room-icon { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 20px; background: #fff; border: 1px solid var(--line); font-size: 34px; box-shadow: var(--soft-shadow); }
.room-title h1 { margin: 0 0 4px; font-size: clamp(27px, 4vw, 42px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-meta { color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.code-chip { border: 0; color: var(--primary); font-weight: 900; letter-spacing: .09em; background: #eeecff; padding: 7px 11px; border-radius: 10px; }
.room-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.lobby-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
.main-card { padding: clamp(22px, 4vw, 34px); }
.side-card { padding: 25px; align-self: start; position: sticky; top: 100px; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 22px; }
.section-head h2, .section-head h3 { margin-bottom: 4px; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.category-card { text-align: left; min-height: 94px; padding: 15px; border-radius: 18px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; gap: 13px; }
.category-card.active { border: 2px solid var(--primary); background: #f4f2ff; }
.category-emoji { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: white; font-size: 25px; flex: 0 0 auto; }
.category-card b { display: block; margin-bottom: 4px; }
.category-card small { display: -webkit-box; overflow: hidden; color: var(--muted); line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.category-card em { display: block; margin-top: 4px; color: var(--primary); font-size: 11px; font-style: normal; font-weight: 800; }
.mobile-category { display: none; }
.divider { height: 1px; background: var(--line); margin: 28px 0; }
.player-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; }
.player { position: relative; min-width: 0; text-align: center; padding: 16px 10px; border-radius: 20px; background: #f8f8fc; border: 1px solid #ececf3; }
.rank-no { position: absolute; top: 8px; left: 9px; color: #8b93a8; font-size: 11px; font-weight: 900; }
.player-avatar { width: 56px; height: 56px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #d8d3ff, #fff); font-weight: 900; color: var(--primary); font-size: 20px; }
.player-name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 780; }
.player-score { display: block; margin: 4px 0; color: var(--primary); font-size: 18px; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.badge-host { background: #fff0d1; color: #a35d00; }
.badge-me { background: #ece9ff; color: var(--primary); }
.badge-done { background: #dcf9ee; color: #087958; }
.host-note { border-radius: 18px; padding: 15px; background: #f4f2ff; color: #4d43a6; font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.step-list { display: grid; gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.step-list li { display: flex; gap: 11px; color: #4c556c; line-height: 1.5; }
.step-no { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #ece9ff; color: var(--primary); font-size: 12px; font-weight: 900; }

.game-layout { display: grid; gap: 16px; }
.privacy-banner { display: flex; align-items: center; gap: 14px; padding: 18px 22px; color: #a62f37; background: #fff0f1; border: 1px solid #ffd9dc; border-radius: 20px; }
.privacy-icon { font-size: 28px; }
.privacy-banner b { display: block; margin-bottom: 3px; }
.privacy-banner small { color: #b5575e; }
.game-top { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 16px; }
.game-top-actions { display: flex; align-items: center; gap: 10px; }
.round-chip { display: flex; align-items: baseline; gap: 5px; padding: 12px 16px; border-radius: 16px; background: #ece9ff; color: var(--primary); }
.round-chip strong { font-size: 26px; }
.speaker-chip { min-width: 0; justify-self: center; display: flex; align-items: center; gap: 9px; padding: 8px 14px; border: 1px solid #d9d4ff; border-radius: 15px; color: #5146bb; background: #f4f2ff; }
.speaker-chip > span:first-child { font-size: 22px; }
.speaker-chip small, .speaker-chip strong { display: block; }
.speaker-chip small { color: #7a72b7; font-size: 10px; line-height: 12px; }
.speaker-chip strong { max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; line-height: 18px; }
.speaker-chip.is-me { border-color: #83d9bd; color: #087958; background: #e8fbf4; box-shadow: 0 6px 18px rgba(17,185,129,.13); }
.speaker-chip.is-me small { color: #358b70; }
.game-content { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; }
.answer-stage { min-width: 0; }
.answer-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.answer-page { display: contents; }
.answer-pagination { display: none; }
.answer-card { min-height: 238px; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: #fff; box-shadow: var(--soft-shadow); }
.answer-card { position: relative; }
.card-rank { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 4px 7px; border-radius: 9px; color: #4e5570; background: rgba(255,255,255,.88); font-size: 11px; font-weight: 900; }
.answer-image { height: 150px; display: grid; place-items: center; background: linear-gradient(145deg, #f2f0ff, #fff8ee); font-size: 78px; overflow: hidden; }
.answer-image img { width: 100%; height: 100%; object-fit: contain; }
.answer-copy { padding: 15px 17px 17px; }
.answer-copy small { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.answer-copy small > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.answer-copy small b { color: var(--primary); }
.answer-copy strong { display: block; font-size: 21px; margin-top: 4px; }
.inline-rank { display: none; font-style: normal; }
.answer-card.self { border: 2px solid #b8b0ff; background: #f6f4ff; }
.secret-answer { position: relative; color: var(--primary); background: repeating-linear-gradient(135deg, #efedff, #efedff 14px, #e7e3ff 14px, #e7e3ff 28px); }
.secret-answer::after { content: "仅其他玩家可见"; font-size: 13px; padding: 7px 10px; color: #5146bb; background: rgba(255,255,255,.78); border-radius: 99px; position: absolute; bottom: 14px; }
.answer-card.result-correct { border: 2px solid #62d4af; background: #f2fff9; }
.answer-card.result-missed { border: 2px solid #ff9297; background: #fff6f6; }
.answer-card.is-speaking { border: 3px solid var(--warning); box-shadow: 0 0 0 4px rgba(255,177,46,.17), 0 14px 32px rgba(31,35,80,.12); }
.speaking-badge { position: absolute; z-index: 4; top: 9px; left: 50%; transform: translateX(-50%); min-height: 26px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 99px; color: #7b4a00; background: #fff0ca; box-shadow: 0 3px 10px rgba(104,69,0,.14); white-space: nowrap; font-size: 11px; font-weight: 900; }
.result-badge { display: inline-flex; align-items: center; min-height: 24px; margin-top: 10px; padding: 0 9px; border-radius: 99px; font-size: 11px; font-weight: 900; }
.result-badge i { margin-right: 4px; font-style: normal; }
.result-correct { color: #087958; background: #dcf9ee; }
.result-missed { color: #ad2831; background: #ffe2e4; }
.result-pending { color: #5f6880; background: #eef0f5; }
.leaderboard { padding: 18px; box-shadow: var(--soft-shadow); }
.leaderboard-head { display: flex; align-items: center; gap: 10px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.leaderboard-head > span { font-size: 28px; }
.leaderboard-head p, .leaderboard-head h3 { margin: 0; }
.leaderboard-list { display: grid; gap: 7px; margin-top: 12px; }
.leaderboard-row { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 8px; border-radius: 11px; font-size: 13px; }
.leaderboard-row.me { background: #f0eeff; }
.leaderboard-rank { color: var(--muted); font-weight: 900; text-align: center; }
.leaderboard-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.leaderboard-row strong { color: var(--primary); }
.game-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 22px; }
.game-footer h3 { margin: 0; }
.result-actions { display: flex; gap: 10px; }
.mobile-round-status { display: none; }
.yes-no { display: flex; gap: 9px; flex-wrap: wrap; }
.yes-no span { padding: 8px 12px; border-radius: 99px; background: #f1f2f6; color: #4c556c; font-size: 13px; font-weight: 750; }

.admin-page { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 72px; }
.admin-login { width: min(440px, calc(100% - 32px)); margin: 8vh auto; padding: 34px; }
.admin-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; }
.admin-sidebar { padding: 22px; align-self: start; position: sticky; top: 98px; }
.admin-user { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #ece9ff; }
.admin-nav { display: grid; gap: 7px; }
.admin-nav button { text-align: left; border: 0; border-radius: 12px; min-height: 43px; padding: 0 13px; background: transparent; color: #596177; font-weight: 750; }
.admin-nav button.active { background: #eeecff; color: var(--primary); }
.admin-content { padding: clamp(22px, 4vw, 34px); min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin-head h2 { margin: 0; }
.admin-split { display: grid; grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr); gap: 20px; }
.sub-panel { border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: #fbfbfd; }
.category-list { display: grid; gap: 9px; margin-top: 16px; }
.category-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 14px; background: white; border: 1px solid var(--line); }
.category-row-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.category-row-main > span:last-child { min-width: 0; }
.category-row-main b, .category-row-main small { display: block; }
.category-row-main small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.swatch { width: 12px; height: 12px; border-radius: 50%; }
.row-actions { display: flex; gap: 6px; }
.category-style-fields { display: grid; grid-template-columns: 1fr 90px; gap: 10px; }
.category-style-fields input[type="color"] { padding: 7px; }
.compact-form { gap: 13px; }
.question-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.question-row { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px; border: 1px solid var(--line); background: white; border-radius: 16px; }
.question-thumb { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 13px; background: #f1efff; font-size: 34px; overflow: hidden; }
.question-thumb img { width: 100%; height: 100%; object-fit: contain; }
.question-row b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.question-row small { color: var(--muted); }
.icon-button { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: white; color: var(--muted); }
.icon-button.danger { color: var(--danger); }
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(16,22,45,.48); backdrop-filter: blur(7px); z-index: 50; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; background: white; border-radius: 26px; box-shadow: 0 28px 80px rgba(14,18,40,.24); }
.identity-modal { width: min(460px, 100%); }
.identity-note { margin: -4px 0 20px; padding: 13px 15px; border-radius: 14px; color: #565f75; background: #f5f4ff; font-size: 13px; line-height: 1.65; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.modal-head h2 { margin: 0; font-size: 26px; }
.upload-box { min-height: 128px; border: 2px dashed #d6d3f5; border-radius: 17px; display: grid; place-items: center; text-align: center; padding: 18px; background: #faf9ff; color: var(--muted); }
.upload-box input { width: 100%; }
.question-modal { width: min(700px, 100%); }
.category-checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; max-height: 150px; overflow: auto; }
.category-check { cursor: pointer; }
.category-check input { position: absolute; opacity: 0; pointer-events: none; }
.category-check span { min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 13px; }
.category-check span::before { content: ""; width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--category-color); }
.category-check small { margin-left: auto; color: var(--muted); }
.category-check input:checked + span { border: 2px solid var(--primary); color: var(--primary); background: #f3f1ff; font-weight: 800; }
.upload-editor { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 12px; }
.upload-preview { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #f7f7fb; }
.upload-preview img, .upload-preview-media img { width: 100%; height: 100%; object-fit: contain; }
.upload-preview-media { width: 100%; height: 100%; display: grid; place-items: center; font-size: 72px; }
.upload-preview-placeholder { color: var(--muted); text-align: center; font-size: 36px; }
.upload-preview-placeholder small { font-size: 11px; }
.compact-upload { min-height: 0; align-content: center; gap: 8px; }
.compact-upload small { font-size: 11px; line-height: 1.4; }
.answer-preview-backdrop { padding: 28px; }
.answer-preview-modal { width: min(980px, 100%); max-height: calc(100vh - 56px); display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 16px; padding: 24px; border-radius: 26px; background: white; box-shadow: 0 28px 90px rgba(14,18,40,.3); }
.answer-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.answer-preview-head p, .answer-preview-head h2 { margin: 0; }
.answer-preview-head h2 { margin-top: 4px; font-size: clamp(24px, 3vw, 36px); }
.answer-preview-stage { min-height: 0; display: grid; place-items: center; overflow: hidden; border-radius: 20px; background: #f2f3f8; }
.answer-preview-stage img { width: 100%; height: 100%; max-height: calc(100vh - 210px); object-fit: contain; }
.answer-preview-hint { margin: 0; color: var(--muted); text-align: center; font-size: 13px; }

.empty { padding: 38px 20px; text-align: center; color: var(--muted); border: 1px dashed #d8dae7; border-radius: 18px; }
.loading { min-height: 52vh; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 3px solid #dedbf8; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 80; max-width: min(420px, calc(100% - 34px)); padding: 13px 18px; color: white; background: #20263a; border-radius: 13px; box-shadow: 0 14px 34px rgba(10,12,25,.24); opacity: 0; pointer-events: none; transition: .2s; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #b62d35; }
.desktop-only { display: inline-flex; }
.mobile-only { display: none; }

@media (max-width: 900px) {
  .home-page { grid-template-columns: 1fr; grid-template-areas: "hero" "entry" "public"; min-height: auto; gap: 32px; }
  .hero-copy { text-align: center; padding-top: 12px; }
  .lead { margin-inline: auto; }
  .rule-row, .hero-visual { justify-content: center; margin-inline: auto; }
  .entry-card { max-width: 580px; width: 100%; margin: 0 auto; }
  .lobby-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .answer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .game-content { grid-template-columns: minmax(0,1fr) 210px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; padding: 12px; }
  .admin-user { display: none; }
  .admin-nav { grid-template-columns: 1fr 1fr; }
  .admin-nav button { text-align: center; }
  .admin-split { grid-template-columns: 1fr; }
  .public-room-grid { grid-template-columns: 1fr; }
}

@media (min-width: 641px) {
  .answer-card.has-image-preview { cursor: zoom-in; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
  .answer-card.has-image-preview:hover { transform: translateY(-3px); border-color: #9e95ff; box-shadow: 0 15px 34px rgba(31,35,80,.15); }
  .answer-card.has-image-preview:focus-visible { outline: 3px solid rgba(90,73,237,.35); outline-offset: 3px; }
  .answer-card.has-image-preview .answer-image::after { content: "点击放大"; position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 9px; color: white; background: rgba(20,26,48,.72); font-size: 12px; font-weight: 800; }
  .answer-card.has-image-preview .answer-image { position: relative; }
}

@media (max-width: 640px) {
  .topbar { height: 66px; padding: 0 16px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .desktop-only { display: none; }
  .mobile-only { display: inline-flex; }
  .profile-button { max-width: 142px; padding-right: 9px; }
  .profile-name { max-width: 72px; }
  .profile-edit { display: none; }
  .page, .room-page, .admin-page { width: min(100% - 24px, 100%); padding-top: 24px; }
  .home-page { grid-template-areas: "hero" "public" "entry"; gap: 26px; }
  h1 { font-size: 42px; }
  .lead { font-size: 16px; }
  .rule-row { gap: 7px; margin-top: 22px; }
  .rule-pill { padding: 8px 10px; font-size: 12px; }
  .hero-visual { margin-top: 24px; gap: 8px; }
  .peek-card { padding: 12px; min-height: 112px; border-radius: 18px; }
  .peek-avatar { font-size: 30px; }
  .entry-card, .panel { border-radius: 22px; }
  .entry-card { padding: 20px; }
  .public-rooms { padding: 19px; }
  .public-rooms-head { align-items: flex-start; }
  .public-rooms-actions { align-items: flex-end; flex-direction: column; gap: 7px; }
  .public-room-card { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 11px; padding: 12px; }
  .public-room-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 24px; }
  .public-room-join { min-height: 40px; padding-inline: 13px; }
  .room-hero { align-items: flex-start; margin-bottom: 18px; }
  .room-icon { width: 50px; height: 50px; border-radius: 16px; font-size: 26px; }
  .room-title { gap: 11px; }
  .room-toolbar { justify-content: flex-end; }
  .room-toolbar .btn { width: 44px; padding: 0; }
  .main-card, .side-card { padding: 19px; }
  .category-grid { grid-template-columns: 1fr; }
  .player-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
  .player { padding: 12px 6px; border-radius: 16px; }
  .player-avatar { width: 46px; height: 46px; }
  .section-head { align-items: start; }
  .answer-grid { grid-template-columns: 1fr; }
  .answer-card { min-height: 0; display: grid; grid-template-columns: 118px 1fr; }
  .answer-image { height: 118px; font-size: 56px; }
  .answer-copy { display: flex; flex-direction: column; justify-content: center; }
  .answer-card.self { grid-template-columns: 1fr; }
  .answer-card.self .answer-image { height: 150px; }
  .game-footer { grid-template-columns: 1fr; }
  .game-footer .btn { width: 100%; }
  .privacy-banner { padding: 14px; }
  .question-list { grid-template-columns: 1fr; }
  .admin-content { padding: 18px; }
  .admin-head { align-items: flex-start; }

  body:has(.game-screen), body:has(.lobby-screen) { height: 100dvh; overflow: hidden; }
  body:has(.game-screen) .topbar, body:has(.lobby-screen) .topbar { height: 52px; padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right)); }
  body:has(.game-screen) .brand, body:has(.lobby-screen) .brand { gap: 8px; font-size: 16px; }
  body:has(.game-screen) .brand-mark, body:has(.lobby-screen) .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 21px; }
  body:has(.game-screen) .profile-button, body:has(.lobby-screen) .profile-button { height: 44px; }
  .game-screen, .lobby-screen { height: calc(100dvh - 52px); width: calc(100% - 20px); padding: 8px 0 max(8px, env(safe-area-inset-bottom)); overflow: hidden; }
  .game-screen .room-hero, .lobby-screen .room-hero { min-height: 52px; margin-bottom: 8px; align-items: center; gap: 8px; }
  .game-screen .room-icon, .lobby-screen .room-icon { display: none; }
  .game-screen .room-title, .lobby-screen .room-title { min-width: 0; flex: 1; }
  .game-screen .room-title h1, .lobby-screen .room-title h1 { margin: 0 0 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 18px; line-height: 21px; }
  .game-screen .room-meta, .lobby-screen .room-meta { gap: 5px; overflow: hidden; white-space: nowrap; font-size: 12px; line-height: 20px; }
  .game-screen .code-chip, .lobby-screen .code-chip { min-height: 28px; padding: 0 6px; font-size: 12px; }
  .game-screen .room-toolbar, .lobby-screen .room-toolbar { flex: 0 0 auto; flex-wrap: nowrap; gap: 6px; }
  .game-screen .room-toolbar .btn, .lobby-screen .room-toolbar .btn { width: 44px; min-height: 44px; padding: 0; border-radius: 13px; font-size: 17px; }

  .lobby-screen .lobby-layout { min-height: 0; flex: 1; display: grid; grid-template-rows: minmax(0,1fr) 52px; gap: 8px; }
  .lobby-screen { display: flex; flex-direction: column; }
  .lobby-screen .main-card { min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding: 12px; border-radius: 18px; }
  .lobby-screen .category-heading, .lobby-screen .category-grid { display: none; }
  .mobile-category { display: grid; grid-template-columns: 70px minmax(0,1fr); align-items: center; gap: 4px 8px; }
  .mobile-category label { font-size: 14px; font-weight: 900; }
  .mobile-category select { min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; color: var(--ink); background: white; font-size: 15px; }
  .mobile-category small { grid-column: 2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 13px; line-height: 17px; }
  .lobby-screen .divider { margin: 8px 0; }
  .lobby-screen .player-heading { margin-bottom: 6px; }
  .lobby-screen .player-heading .eyebrow { display: none; }
  .lobby-screen .player-heading h2 { margin: 0; font-size: 16px; line-height: 20px; }
  .lobby-screen .player-grid { min-height: 0; flex: 1; grid-template-columns: repeat(var(--player-mobile-cols), minmax(0,1fr)); grid-auto-rows: minmax(0,1fr); gap: 6px; overflow: hidden; }
  .lobby-screen .player { min-height: 0; padding: 7px 5px; border-radius: 13px; display: flex; flex-direction: column; justify-content: center; }
  .lobby-screen .rank-no { top: 5px; left: 6px; font-size: 12px; }
  .lobby-screen .player-avatar { width: 38px; height: 38px; margin: 0 auto 4px; font-size: 15px; }
  .lobby-screen .player-name { font-size: 14px; line-height: 18px; }
  .lobby-screen .player-score { margin: 2px 0; font-size: 15px; line-height: 18px; }
  .lobby-screen .badge { min-height: 22px; padding: 0 6px; font-size: 12px; }
  .lobby-screen .player > div:last-child:empty { display: none; }
  .lobby-screen .player-grid.size-large .player-avatar { width: 32px; height: 32px; margin-bottom: 2px; font-size: 13px; }
  .lobby-screen .side-card { padding: 4px; border-radius: 16px; }
  .lobby-screen .side-card h3, .lobby-screen .host-note, .lobby-screen .step-list, .lobby-hint { display: none; }
  .lobby-screen .side-card .btn { min-height: 44px; border-radius: 12px; font-size: 16px; }

  .game-screen { display: flex; flex-direction: column; }
  .game-screen .game-layout { min-height: 0; flex: 1; grid-template-rows: 44px minmax(0,1fr) 60px; gap: 8px; }
  .game-screen .privacy-banner { display: none; }
  .game-screen .game-top { min-height: 44px; grid-template-columns: auto minmax(0,1fr) auto; gap: 6px; }
  .game-screen .round-chip { height: 44px; padding: 0 13px; border-radius: 13px; font-size: 14px; }
  .game-screen .round-chip strong { font-size: 21px; }
  .game-screen .speaker-chip { width: 100%; height: 44px; justify-content: center; gap: 5px; padding: 4px 7px; border-radius: 13px; }
  .game-screen .speaker-chip > span:first-child { font-size: 17px; }
  .game-screen .speaker-chip small { display: none; }
  .game-screen .speaker-chip strong { max-width: 100%; font-size: 13px; line-height: 17px; }
  .game-screen .game-top .btn { min-height: 44px; padding: 0 16px; border-radius: 13px; font-size: 15px; }
  .game-screen .game-top-actions { gap: 7px; }
  .game-screen .game-top-actions .btn { padding: 0 12px; }
  .mobile-round-status { display: inline-flex; }
  .game-screen .game-content { min-height: 0; display: block; }
  .game-screen .leaderboard { display: none; }
  .game-screen .answer-stage { width: 100%; height: 100%; min-height: 0; }
  .game-screen .answer-stage.is-paged { display: grid; grid-template-rows: minmax(0,1fr) 22px; gap: 4px; }
  .game-screen .answer-grid { position: relative; width: 100%; height: 100%; min-height: 0; display: flex; gap: 8px; overflow: hidden; }
  .game-screen .answer-stage.is-paged .answer-grid { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; touch-action: pan-x; scrollbar-width: none; }
  .game-screen .answer-stage.is-paged .answer-grid::-webkit-scrollbar { display: none; }
  .game-screen .answer-page { flex: 0 0 100%; min-width: 100%; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(var(--page-rows), minmax(0,1fr)); gap: 8px; scroll-snap-align: start; scroll-snap-stop: always; }
  .game-screen .answer-pagination { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: 11px; line-height: 18px; }
  .game-screen .answer-pagination span:first-child { color: var(--primary); font-weight: 900; }
  .game-screen .answer-pagination span + span::before { content: "·"; margin-right: 7px; color: #b1b5c2; }
  .game-screen .answer-card { min-height: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) auto; border-radius: 14px; box-shadow: 0 5px 14px rgba(31,35,80,.08); }
  .game-screen .answer-image { width: 100%; height: auto; min-height: 0; font-size: clamp(44px, 16vw, 76px); }
  .game-screen .answer-copy { min-width: 0; display: block; padding: 9px 10px 10px; }
  .game-screen .answer-copy small { font-size: 13px; line-height: 18px; }
  .game-screen .answer-copy strong { margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 17px; line-height: 22px; }
  .game-screen .answer-card .result-badge { position: absolute; z-index: 3; top: 6px; right: 6px; min-height: 26px; margin: 0; padding: 0 7px; white-space: nowrap; font-size: 12px; box-shadow: 0 2px 8px rgba(31,35,80,.12); }
  .game-screen .answer-card .result-badge i { margin-right: 3px; }
  .game-screen .mobile-round-status .result-badge { min-height: 28px; margin: 0; padding: 0 7px; white-space: nowrap; font-size: 11px; }
  .game-screen .card-rank { top: 6px; left: 6px; padding: 4px 6px; border-radius: 8px; font-size: 12px; }
  .game-screen .speaking-badge { top: 5px; min-height: 24px; padding: 0 6px; font-size: 10px; }
  .game-screen .secret-answer::after { content: "你的答案"; bottom: 7px; padding: 4px 7px; font-size: 12px; }
  .game-screen .answer-grid.size-large { gap: 5px; }
  .game-screen .answer-grid.size-large .answer-copy { padding: 5px 6px 6px; }
  .game-screen .answer-grid.size-large .answer-copy small { font-size: 12px; line-height: 15px; }
  .game-screen .answer-grid.size-large .answer-copy strong { font-size: 14px; line-height: 17px; }
  .game-screen .answer-grid.size-large .card-rank { display: none; }
  .game-screen .answer-grid.size-large .inline-rank { display: inline; margin-right: 3px; color: #8b93a8; }
  .game-screen .answer-grid.size-large .secret-answer span { white-space: nowrap; font-size: 22px; }
  .game-screen .answer-grid.size-large .secret-answer::after { display: none; }
  .game-screen .answer-grid.size-large .answer-card .result-badge { width: 26px; justify-content: center; padding: 0; }
  .game-screen .answer-grid.size-large .answer-card .result-badge i { margin: 0; }
  .game-screen .answer-grid.size-large .answer-card .result-badge span { display: none; }
  .game-screen .answer-grid.size-large .speaking-badge { left: auto; right: 35px; transform: none; width: 24px; padding: 0; justify-content: center; overflow: hidden; color: transparent; }
  .game-screen .answer-grid.size-large .speaking-badge::after { content: "🎤"; color: #7b4a00; font-size: 12px; }
  .game-screen .answer-card.has-image-preview { cursor: zoom-in; }
  .game-screen .answer-card.has-image-preview:active { transform: scale(.985); }
  .game-screen .answer-card.has-image-preview .answer-image { position: relative; }
  .game-screen .answer-card.has-image-preview .answer-image::after { content: "🔍"; position: absolute; right: 5px; bottom: 5px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(31,35,80,.16); font-size: 13px; }
  .game-screen .game-footer { min-height: 60px; display: block; padding: 5px; border-radius: 16px; }
  .game-footer-copy { display: none; }
  .result-actions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .result-actions .btn { width: 100%; min-width: 0; min-height: 50px; padding: 0 5px; border-radius: 13px; white-space: nowrap; font-size: 13px; }
  .question-modal { padding: 18px; }
  .category-checks { grid-template-columns: 1fr 1fr; }
  .upload-editor { grid-template-columns: 120px minmax(0,1fr); }
  .answer-preview-backdrop { padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .answer-preview-modal { width: 100%; max-height: calc(100dvh - 20px); gap: 12px; padding: 16px; border-radius: 20px; }
  .answer-preview-head { gap: 12px; }
  .answer-preview-head h2 { font-size: 22px; }
  .answer-preview-head .icon-button { width: 44px; height: 44px; flex: 0 0 auto; }
  .answer-preview-stage { border-radius: 15px; }
  .answer-preview-stage img { max-height: calc(100dvh - 178px); }
  .answer-preview-hint { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 380px) {
  .brand > span:last-child { display: none; }
}

/* Party Club 2.0 — a local, self-contained theme. */
body { background: radial-gradient(ellipse at 12% 25%, #26203d55, transparent 34rem), var(--canvas); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button { color: inherit; }
.topbar { height: 84px; padding-inline: max(28px, calc((100vw - 1260px) / 2)); background: #101322ec; border-color: #282b3d; }
.brand { gap: 13px; font-size: 20px; letter-spacing: -.04em; }
.brand-mark { width: 43px; height: 43px; border-radius: 13px; transform: rotate(-8deg); color: #15182a; background: var(--accent); box-shadow: none; font-size: 32px; font-weight: 950; }
.brand small { display: block; margin-top: 4px; color: #8b8da1; font-size: 8px; letter-spacing: .16em; font-weight: 650; }
.nav-actions { gap: 13px; }
.profile-button { background: #202438; border-color: #373b51; box-shadow: none; }
.profile-avatar { color: var(--primary); background: #3a3157; }
.profile-edit { font-size: 10px; }
.btn { border-radius: 10px; font-size: 13px; min-height: 44px; letter-spacing: .01em; }
.btn-primary { color: #151727; background: var(--accent); box-shadow: none; }
.btn-primary:hover { background: #e5fb9b; box-shadow: 0 5px 20px #d9f27d13; }
.btn-accent { color: #151727; background: var(--accent); box-shadow: none; }
.btn-secondary { color: #e4dfed; background: #25293e; border-color: #3a3d53; }
.btn-secondary:hover { background: #30344c; }
.btn-ghost { color: #b6b5c7; }
.btn-ghost:hover { color: var(--ink); background: #212538; }
.btn-danger { color: #ffacae; background: #452b38; border-color: #684051; }
.btn-success { color: #baf2d2; background: #244b40; border-color: #396657; box-shadow: none; }
.btn-block { min-height: 51px; }
.panel { border-color: #35384d; border-radius: 20px; }
.eyebrow { color: var(--primary); font-size: 10px; letter-spacing: .13em; line-height: 1.6; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #d9f27d12; vertical-align: middle; }
.page { width: min(1260px, calc(100% - 64px)); }
.home-page { padding-top: 50px; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .85fr); grid-template-areas: "hero entry" "decks decks" "public public" "footer footer"; gap: 64px 70px; align-items: start; }
.hero-copy { padding: 9px 0 0; position: relative; min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 23px; font-size: 11px; letter-spacing: .08em; }
.hero-copy h1 { margin-bottom: 23px; font-size: clamp(45px, 5.5vw, 74px); line-height: 1.18; letter-spacing: -.055em; font-weight: 900; }
.hero-copy h1 span { color: var(--primary); }
.hero-copy h1 span::after { display: none; }
.hero-copy .lead { max-width: 540px; color: #b3b2c1; font-size: 15px; line-height: 1.9; }
.rule-row { gap: 9px; margin-top: 24px; }
.rule-pill { color: #c9c9d4; background: #202436; border-color: #32364c; border-radius: 6px; padding: 7px 11px; font-size: 11px; box-shadow: none; }
.rule-pill::before { content: "✦"; margin-right: 7px; color: var(--accent); font-size: 10px; }
.hero-art { max-width: 550px; height: 300px; position: relative; margin: 20px 0 0; isolation: isolate; }
.hero-art-orbit { position: absolute; width: 410px; height: 245px; top: 25px; left: 20px; border: 1px solid #443a5a; border-radius: 50%; transform: rotate(-20deg); z-index: -1; }
.hero-art-orbit::after { content: ""; position: absolute; inset: 23px -35px; border: 1px dashed #373247; border-radius: 50%; transform: rotate(44deg); }
.identity-card { width: 156px; height: 205px; position: absolute; top: 47px; padding: 11px; border: 1px solid #5a4d78; border-radius: 14px; background: #2e2747; box-shadow: 0 20px 28px #07091466; overflow: hidden; text-align: left; }
.identity-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; filter: saturate(.8); }
.identity-card > span:first-child { height: 130px; display: grid; place-items: center; font-size: 72px; }
.identity-card small { display: block; font-size: 9px; color: #c0b7d7; margin-top: 11px; }
.identity-card b { display: block; font-size: 12px; margin-top: 4px; }
.identity-left { left: 25px; transform: rotate(-13deg); }
.identity-right { left: 295px; transform: rotate(12deg); background: #263743; border-color: #3b5661; }
.identity-secret { width: 174px; height: 225px; left: 166px; top: 32px; padding: 18px; z-index: 2; transform: rotate(5deg); color: #242238; background: #e9e2f1; border-color: #f3edf9; }
.identity-secret .secret-symbol { height: 115px; display: grid; place-items: center; font-size: 100px; font-weight: 950; line-height: 1; color: #493b64; text-shadow: 5px 4px 0 #c3b6d7; }
.identity-secret small { font-size: 7px; color: #6d617a; letter-spacing: .08em; margin-top: 16px; }
.identity-secret b { font-size: 25px; }
.identity-secret .secret-lock { position: absolute; top: 15px; right: 12px; padding: 4px 6px; border: 1px solid #95869e; border-radius: 5px; font-size: 8px; }
.secret-line { display: block; width: 35px; height: 3px; margin-top: 13px; background: #8c6eb8; }
.art-note { position: absolute; color: #77768c; font-size: 7px; letter-spacing: .2em; font-weight: 700; }
.note-top { top: 14px; left: 42px; transform: rotate(-7deg); }
.note-bottom { bottom: 8px; left: 245px; }
.art-score { position: absolute; top: 30px; right: 13px; z-index: 3; padding: 12px 14px; transform: rotate(9deg); color: #1d2630; background: var(--accent); border-radius: 8px; box-shadow: 0 8px 20px #080b1966; font-size: 12px; }
.art-score b { margin-left: 5px; font-size: 19px; }
.hero-caption { display: flex; align-items: center; gap: 13px; margin-top: 10px; }
.hero-caption > span { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; color: var(--accent); background: #272d35; border: 1px solid #444d3e; border-radius: 9px; font-size: 22px; }
.hero-caption p { margin: 0; color: #b9bbcc; font-size: 11px; line-height: 1.8; }
.hero-caption strong { color: #73788e; font-size: 10px; font-weight: 500; }
.entry-card { padding: 28px; background: #1a1e30; border: 1px solid #3a3e52; border-radius: 20px; box-shadow: 0 20px 70px #080a1940; scroll-margin-top: 100px; }
.entry-heading { margin-bottom: 22px; }
.tiny-label { color: var(--primary); font-size: 8px; letter-spacing: .2em; font-weight: 800; }
.entry-heading h2 { margin: 8px 0 10px; font-size: 25px; letter-spacing: -.04em; }
.entry-heading p { margin: 0; color: #9196ac; font-size: 11px; line-height: 1.6; }
.segment { padding: 4px; margin-bottom: 22px; border: 1px solid #32364c; border-radius: 10px; background: #121627; }
.segment button { height: 38px; font-size: 12px; border-radius: 6px; }
.segment button.active { color: #f2eafc; background: #403552; box-shadow: none; }
.form-grid { gap: 15px; }
.field { gap: 7px; }
.field label { color: #d5d4df; font-size: 11px; letter-spacing: .01em; }
.field input, .field select, .field textarea, .mobile-category select { min-height: 43px; background: #121628; border-color: #35394f; border-radius: 8px; font-size: 12px; }
.field input::placeholder, .field textarea::placeholder { color: #656d85; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #a88bdf; box-shadow: 0 0 0 3px #b8a0ff16; }
.field select { padding-right: 25px; }
.field-hint { margin: 0; color: #8c92a9; font-size: 10px; line-height: 1.5; }
.icon-picker { gap: 8px; }
.icon-option { width: 39px; height: 38px; border-radius: 8px; color: var(--ink); background: #252a40; border-color: #3d4158; font-size: 18px; }
.icon-option.selected { border: 1px solid var(--primary); background: #463956; box-shadow: 0 0 0 2px #b8a0ff12; }
.check-row { padding: 12px; background: #212638; border-color: #34394b; border-radius: 9px; }
.check-row input { width: 15px; height: 15px; margin-top: 1px; accent-color: var(--accent); }
.check-row b { font-size: 11px; }
.check-row small { font-size: 10px; }
.form-error { min-height: 0; font-size: 11px; }
.form-error:empty { display: none; }
.entry-card .btn-block { display: flex; justify-content: space-between; padding-inline: 18px; margin-top: 2px; }
.entry-card .btn-block span { font-size: 20px; }
.deck-section { grid-area: decks; min-width: 0; }
.deck-section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.deck-section-head h2 { font-size: 29px; margin-bottom: 12px; letter-spacing: -.04em; }
.deck-section-head h2 span { color: var(--primary); }
.deck-section-head p:last-child { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.deck-count { color: #7c849d; font-size: 11px; white-space: nowrap; }
.deck-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0 20px; }
.deck-filters { display: flex; gap: 9px; }
.deck-filters button { border: 1px solid #34394e; background: transparent; min-height: 38px; padding: 0 16px; border-radius: 7px; color: #a8adc0; font-size: 11px; }
.deck-filters button.active { color: #e7ddfb; border-color: #7b659c; background: #3e3156; }
.deck-filters span { margin-left: 6px; color: #b9a3e3; font-size: 8px; }
.deck-search { display: flex; align-items: center; gap: 8px; width: 235px; min-height: 38px; padding: 0 11px; border: 1px solid #34394e; border-radius: 7px; background: #171c2d; color: #9097ae; }
.deck-search > span { font-size: 23px; line-height: 1; }
.deck-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.deck-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px #b8a0ff12; }
.deck-search input::placeholder { color: #727c94; }
.deck-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.deck-card { min-width: 0; padding: 0; border: 1px solid #34394b; border-radius: 13px; background: #1a1f31; overflow: hidden; text-align: left; transition: transform .18s, border-color .18s; }
.deck-card:hover { transform: translateY(-4px); border-color: #8d75b6; }
.deck-card.selected { border-color: #b5cc6d; box-shadow: 0 0 0 1px #d9f27d16; }
.deck-cover { height: 122px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; overflow: hidden; background: radial-gradient(circle at center, #55456a, #27293e); }
.deck-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: filter .2s, transform .2s; }
.deck-cover img:nth-child(even) { object-position: 55% center; }
.deck-cover > span { display: grid; place-items: center; font-size: 54px; }
.deck-card:hover .deck-cover img { filter: saturate(1.1); transform: scale(1.03); }
.deck-card-copy { padding: 15px; }
.deck-label-row { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.deck-label { color: #818ba4; font-size: 7px; font-weight: 800; letter-spacing: .09em; }
.lol-label { color: #c8b48c; }
.deck-select-mark { color: #b8a0ff; font-size: 16px; }
.deck-card.selected .deck-select-mark { color: var(--accent); }
.deck-card.selected .deck-select-mark::after { content: "已选"; margin-left: 4px; font-size: 8px; }
.deck-card h3 { margin: 8px 0; color: #f1e9eb; font-size: 16px; letter-spacing: -.025em; line-height: 1.5; }
.deck-card p { height: 34px; display: -webkit-box; margin: 0 0 16px; overflow: hidden; color: #8e97ae; font-size: 10px; line-height: 1.7; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.deck-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding-top: 12px; border-top: 1px solid #30364a; color: #7e88a1; font-size: 9px; }
.deck-card-bottom b { color: #bdc4d6; font-weight: 600; }
.deck-footnote { margin: 14px 0 0; color: #69728b; font-size: 10px; }
.deck-empty { grid-column: 1 / -1; }
.public-rooms { padding: 27px; background: #171c2d; border-color: #30364b; box-shadow: none; }
.public-rooms-head h2 { font-size: 26px; }
.public-rooms-head h2 .live-dot { margin-left: 12px; width: 6px; height: 6px; }
.public-rooms-head p:last-child { font-size: 11px; }
.public-rooms-actions { font-size: 10px; }
.public-room-card, .public-room-card.returning { background: #202537; border-color: #383d52; border-radius: 11px; }
.public-room-card:hover { border-color: #8c73b6; }
.public-room-icon { width: 47px; height: 47px; border-radius: 10px; background: #30364b; font-size: 23px; }
.public-room-title h3 { font-size: 13px; }
.public-room-meta { font-size: 10px; }
.room-open { color: #b1e5be; background: #294c3b; }
.room-returning { color: #d0bbef; background: #4b385f; }
.room-playing { color: #e5d295; background: #51492f; }
.room-lock { background: #494339; }
.public-room-empty { border-color: #343b50; color: #7f8aa3; min-height: 110px; font-size: 12px; background: #1b2132; }
.public-room-empty > span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #2c3246; }
.public-room-empty b { margin-bottom: 7px; font-weight: 600; color: #bcc4d8; }
.public-room-empty small { font-size: 10px; }
.home-footer { grid-area: footer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 4px; margin-top: -20px; color: #757d95; font-size: 10px; }
.home-footer > span { color: #b7b5c6; font-size: 12px; }
.home-footer b { color: var(--primary); margin-left: 5px; font-size: 8px; }
.home-footer p { margin: 0; }
.home-footer a { text-decoration: underline; text-underline-offset: 4px; }
.room-icon { background: #262c41; }
.code-chip { background: #3c3255; color: var(--primary); }
.room-meta { font-size: 12px; }
.room-title h1 { font-size: 32px; }
.category-card { color: var(--ink); background: #20263a; border-color: #3b4157; }
.category-card.active { border-color: var(--primary); background: #352d4c; }
.category-card:disabled { cursor: default; }
.category-mini-cover { width: 51px; height: 56px; flex: 0 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); overflow: hidden; border-radius: 8px; background: #3e3a52; }
.category-mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.category-mini-cover img:nth-child(n+3) { display: none; }
.category-mini-cover > span { display: grid; place-items: center; font-size: 26px; }
.category-card b { font-size: 13px; line-height: 1.5; }
.category-card small { font-size: 10px; }
.category-card em { font-size: 9px; }
.player { background: #22283c; border-color: #343d53; }
.player-avatar { color: #d0baf5; background: #49395e; border: 1px solid #65517b; }
.badge-host { color: #e6d69c; background: #504832; }
.badge-me { color: #d0bbf4; background: #48355e; }
.host-note { color: #c8b5e9; background: #332c4a; border-radius: 10px; }
.step-list li { color: #a6adc1; font-size: 12px; }
.step-no { color: #d3c0f3; background: #403452; }
.side-card .tiny-label { display: block; margin-bottom: 11px; }
.side-card h3 { font-size: 22px; line-height: 1.5; }
.round-chip, .speaker-chip { color: #d0bbef; background: #392e4d; border-color: #66547d; }
.speaker-chip small { color: #b29bcf; }
.speaker-chip.is-me { color: #c8e994; background: #35452e; border-color: #677a46; box-shadow: none; }
.speaker-chip.is-me small { color: #b4cb8f; }
.privacy-banner { color: #d8d4bf; background: #35332b; border-color: #514c38; border-radius: 12px; }
.privacy-banner small { color: #a8a184; }
.privacy-banner .privacy-icon { font-size: 21px; }
.answer-card { color: var(--ink); background: #20263b; border-color: #41485d; border-radius: 16px; }
.answer-image { background: #151a2b; }
.answer-copy { background: #21273a; }
.answer-copy strong { color: #eee8f1; }
.answer-detail { display: block; margin-top: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #8f9ab4; font-size: 10px; line-height: 1.5; }
.card-rank { color: #dfd8e9; background: #212336dd; border: 1px solid #655a73; }
.answer-card.self { background: #382f4b; border-color: #a08ac5; }
.answer-card.self .answer-copy { background: #382f4b; }
.secret-answer { color: #d8c6f4; background: repeating-linear-gradient(135deg, #392e50, #392e50 14px, #332945 14px, #332945 28px); }
.secret-answer::after { color: #d0bfea; background: #544265; }
.answer-card.result-correct { background: #244638; border-color: #609d76; }
.answer-card.result-correct .answer-copy { background: #244638; }
.answer-card.result-missed { background: #492f3b; border-color: #a8697d; }
.answer-card.result-missed .answer-copy { background: #492f3b; }
.result-correct { color: #beefcc; background: #345c43; }
.result-missed { color: #f1b6be; background: #6a3c4c; }
.result-pending { color: #c1bdd0; background: #3e3c53; }
.answer-card.is-speaking { border-color: var(--accent); box-shadow: 0 0 0 3px #d9f27d18; }
.speaking-badge { color: #242c1f; background: var(--accent); box-shadow: 0 3px 10px #0003; }
.leaderboard-row.me { background: #403452; }
.leaderboard-row { color: #ccd0de; }
.game-footer { background: #1d2336; }
.game-footer h3 { color: #cdd0dc; font-size: 15px; }
.admin-nav button { color: #adb2c8; }
.admin-nav button.active { background: #413551; color: #dbc7fa; }
.admin-avatar { background: #423354; }
.sub-panel { background: #171d2e; }
.category-row, .question-row { background: #232a3e; border-color: #3b4459; }
.question-thumb { background: #171c2d; }
.question-detail { display: block; margin-top: 4px; font-size: 10px; }
.icon-button { color: #c7c0db; background: #343a50; border-color: #4a5068; }
.modal, .answer-preview-modal { color: var(--ink); background: #20263a; border: 1px solid #4b5067; }
.identity-note { color: #b5accb; background: #39314c; }
.category-check span { color: #c0c7da; background: #1b2234; border-color: #3c455d; }
.category-check input:checked + span { background: #443654; color: #dac8f5; border-color: var(--primary); }
.upload-box { color: #a3acc5; background: #1b2235; border-color: #5b4c75; }
.upload-preview, .answer-preview-stage { background: #121729; }
.admin-search-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-bottom: 17px; }
.admin-search-tools .deck-search { width: 100%; }
.admin-search-tools select { width: 140px; min-height: 38px; padding-inline: 10px; border: 1px solid #3b435b; border-radius: 7px; background: #171c2d; color: #bcc3d7; font-size: 11px; }
.rules-modal h2 { font-size: 26px; line-height: 1.4; }
.rules-list { display: grid; gap: 23px; padding: 0; list-style: none; margin: 25px 0 30px; }
.rules-list li { display: flex; align-items: flex-start; gap: 15px; }
.rules-list li > b { font-size: 21px; color: var(--primary); font-weight: 700; }
.rules-list strong, .rules-list small { display: block; }
.rules-list strong { margin-bottom: 7px; font-size: 13px; }
.rules-list small { color: #a2adc4; font-size: 11px; line-height: 1.8; }
.toast { color: #e7edd9; background: #394b38; border: 1px solid #7d9b67; font-size: 12px; }
.toast.error { background: #613746; border-color: #a56879; }
.empty, .public-room-empty { border-color: #3d455a; }
@media (min-width: 641px) { .answer-card.has-image-preview:hover { border-color: #bba1e9; box-shadow: 0 10px 25px #0003; } }
@media (min-width: 901px) and (max-width: 1160px) { .home-page { column-gap: 34px; } .identity-right { left: 250px; } .identity-secret { left: 139px; } .hero-art { transform: scale(.92); transform-origin: left center; } .deck-grid { gap: 12px; } .deck-card-copy { padding: 13px; } .deck-card h3 { font-size: 14px; } }
@media (max-width: 900px) {
  .topbar { padding-inline: 24px; }
  .page { width: calc(100% - 48px); }
  .home-page { grid-template-columns: 1fr; grid-template-areas: "hero" "public" "entry" "decks" "footer"; gap: 45px; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { font-size: 65px; }
  .hero-art { width: 500px; margin-inline: auto; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-caption { justify-content: center; text-align: left; }
  .entry-card { max-width: 580px; }
  .deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deck-cover { height: 150px; }
  .home-footer { margin-top: -10px; }
}
@media (max-width: 640px) {
  .topbar { height: 70px; padding-inline: 18px; }
  .brand { font-size: 16px; gap: 9px; }
  .brand-mark { width: 36px; height: 36px; font-size: 27px; border-radius: 10px; }
  .brand small { font-size: 6px; letter-spacing: .12em; }
  .nav-actions { gap: 0; }
  .rules-nav { display: none; }
  .profile-button { height: 37px; padding: 0 9px 0 4px; border-radius: 9px; }
  .profile-avatar { width: 28px; height: 28px; border-radius: 6px; font-size: 12px; }
  .profile-name { font-size: 11px; max-width: 67px; }
  .page { width: calc(100% - 36px); }
  .home-page { grid-template-areas: "hero" "public" "entry" "decks" "footer"; padding-top: 25px; gap: 36px; }
  .hero-copy .eyebrow { font-size: 9px; margin-bottom: 17px; }
  .hero-copy h1 { font-size: clamp(40px, 11vw, 61px); margin-bottom: 18px; line-height: 1.22; }
  .hero-copy .lead { font-size: 12px; line-height: 1.8; }
  .hero-copy .lead br.desktop-only { display: none; }
  .rule-row { gap: 6px; margin-top: 20px; }
  .rule-pill { padding: 6px 8px; font-size: 9px; border-radius: 5px; }
  .rule-pill::before { margin-right: 5px; font-size: 8px; }
  .hero-art { height: 242px; width: 350px; max-width: 100%; margin-top: 10px; }
  .hero-art-orbit { width: 280px; height: 180px; left: 25px; top: 25px; }
  .identity-card { width: 113px; height: 160px; top: 39px; padding: 8px; border-radius: 10px; }
  .identity-card img { border-radius: 5px; }
  .identity-card small { margin-top: 9px; font-size: 7px; }
  .identity-card b { margin-top: 3px; font-size: 9px; }
  .identity-left { left: 16px; }
  .identity-right { left: 222px; }
  .identity-secret { width: 130px; height: 182px; left: 114px; top: 28px; padding: 13px; }
  .identity-secret .secret-symbol { height: 90px; font-size: 80px; }
  .identity-secret small { font-size: 5px; margin-top: 12px; }
  .identity-secret b { font-size: 21px; margin-top: 6px; }
  .identity-secret .secret-lock { top: 10px; right: 7px; padding: 3px 5px; font-size: 6px; }
  .secret-line { margin-top: 9px; width: 27px; height: 2px; }
  .art-score { right: 0; top: 16px; padding: 9px 10px; border-radius: 6px; font-size: 9px; }
  .art-score b { font-size: 15px; }
  .art-note { font-size: 5px; }
  .note-top { left: 22px; top: 14px; }
  .note-bottom { left: 180px; bottom: 7px; }
  .hero-caption { margin-top: 0; gap: 9px; }
  .hero-caption > span { width: 29px; height: 29px; font-size: 18px; border-radius: 7px; }
  .hero-caption p { font-size: 9px; }
  .hero-caption strong { font-size: 8px; }
  .entry-card { padding: 23px; border-radius: 17px; scroll-margin-top: 82px; }
  .entry-heading { margin-bottom: 20px; }
  .entry-heading h2 { font-size: 23px; }
  .entry-heading p { font-size: 10px; }
  .field label { font-size: 12px; }
  .field input, .field select, .field textarea { min-height: 46px; font-size: 13px; }
  .icon-option { width: 40px; height: 40px; }
  .entry-card .btn-block { min-height: 52px; }
  .deck-section-head h2 { font-size: 24px; margin-bottom: 9px; }
  .deck-section-head p:last-child { font-size: 10px; line-height: 1.7; }
  .deck-section-head .eyebrow { font-size: 8px; }
  .deck-count { font-size: 9px; }
  .deck-tools { flex-wrap: wrap; margin: 19px 0 15px; gap: 12px; }
  .deck-filters { gap: 7px; }
  .deck-filters button { min-height: 36px; padding-inline: 12px; font-size: 10px; }
  .deck-search { width: 100%; min-height: 39px; }
  .deck-search input { font-size: 12px; }
  .deck-grid { gap: 11px; }
  .deck-card { border-radius: 10px; }
  .deck-cover { height: 97px; }
  .deck-card-copy { padding: 12px; }
  .deck-label { font-size: 5px; }
  .deck-card h3 { font-size: 13px; margin: 6px 0; min-height: 39px; display: flex; align-items: center; }
  .deck-select-mark { font-size: 13px; }
  .deck-card.selected .deck-select-mark::after { display: none; }
  .deck-card p { font-size: 9px; line-height: 1.7; height: 30px; margin-bottom: 13px; }
  .deck-card-bottom { padding-top: 10px; font-size: 8px; }
  .deck-footnote { font-size: 9px; line-height: 1.8; }
  .public-rooms { padding: 19px; border-radius: 16px; }
  .public-rooms-head { gap: 10px; margin-bottom: 18px; }
  .public-rooms-head h2 { font-size: 23px; }
  .public-rooms-head p:last-child { font-size: 10px; line-height: 1.7; }
  .public-rooms-actions { font-size: 9px; }
  .public-rooms-actions .btn { min-height: 36px; padding-inline: 12px; font-size: 11px; }
  .public-room-card { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .public-room-icon { width: 38px; height: 38px; font-size: 21px; }
  .public-room-title { gap: 5px; flex-wrap: wrap; }
  .public-room-title h3 { max-width: 100%; font-size: 12px; }
  .room-open, .room-returning, .room-playing { font-size: 8px; padding: 3px 5px; }
  .public-room-meta { gap: 4px; font-size: 9px; }
  .public-room-join { min-height: 36px; padding-inline: 10px; font-size: 10px; }
  .home-footer { flex-wrap: wrap; gap: 14px; margin-top: 0; font-size: 9px; }
  .home-footer > span { font-size: 10px; }
  .home-footer p { width: 100%; order: 3; font-size: 9px; }
  body:has(.game-screen) .brand small, body:has(.lobby-screen) .brand small { display: none; }
  .lobby-screen .side-card .tiny-label { display: none; }
  .mobile-category select { height: 44px; font-size: 12px; }
  .mobile-category label { font-size: 12px; }
  .mobile-category small { font-size: 11px; }
  .game-screen .answer-copy strong { font-size: 17px; }
  .game-screen .answer-detail { margin-top: 2px; font-size: 9px; line-height: 13px; }
  .game-screen .answer-card.has-image-preview .answer-image::after { background: #29263bd9; box-shadow: none; }
  .game-screen .answer-pagination span + span::before { color: #6b6684; }
  .game-screen .secret-answer::after { background: #5d4773; }
  .game-screen .speaker-chip { font-size: 12px; }
  .game-screen .answer-card { border-radius: 12px; }
  .game-screen .result-actions .btn { font-size: 11px; }
  .game-screen .game-top-actions .btn { font-size: 12px; padding-inline: 9px; }
  .question-list { grid-template-columns: 1fr; }
  .admin-search-tools { grid-template-columns: 1fr; }
  .admin-search-tools select { width: 100%; }
  .modal { padding: 22px; }
  .rules-modal h2 { font-size: 23px; }
}
@media (max-width: 365px) {
  .hero-art { transform: scale(.88); transform-origin: top center; margin-bottom: -28px; overflow: visible; }
  .hero-copy h1 { font-size: 39px; }
  .entry-card { padding: 18px; }
  .icon-picker { gap: 6px; }
  .icon-option { width: 34px; height: 35px; }
  .deck-card-copy { padding: 10px; }
  .deck-card h3 { font-size: 12px; }
  .brand > span:last-child { display: block; }
  .brand small { display: none; }
}
@media (max-width: 640px) and (max-height: 680px) { .game-screen .answer-detail { display: none; } }
@media (max-width: 640px) {
  .hero-art { overflow: clip; }
  .identity-right { left: 216px; }
  .field input, .field select, .field textarea, .deck-search input, .mobile-category select, .admin-search-tools select { font-size: 16px; }
  .deck-search, .deck-filters button, .public-rooms-actions .btn, .public-room-join, .profile-button, .admin-search-tools select { min-height: 44px; }
  .profile-button { height: 44px; }
  .segment button { height: 44px; }
  .icon-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .icon-option { width: 100%; min-width: 44px; height: 44px; }
  .deck-card h3 { font-size: 15px; min-height: 45px; }
  .deck-card p { font-size: 12px; height: 41px; line-height: 1.7; }
  .deck-card-bottom { font-size: 11px; line-height: 1.5; flex-wrap: wrap; }
  .deck-footnote, .deck-section-head p:last-child { font-size: 11px; }
  .public-room-meta { font-size: 11px; }
  .public-room-join { font-size: 12px; }
  .icon-button { width: 44px; height: 44px; }
  .game-screen .result-actions .btn { font-size: 12px; }
  .rules-list small { font-size: 12px; }
}
.secret-answer > span { font-weight: 950; font-size: 110px; color: #ccb7ed; }
.secret-card-lock { position: absolute; left: 50%; top: 15px; transform: translateX(-50%); padding: 4px 7px; white-space: nowrap; color: #c7b3e4; background: #4d3c62; border: 1px solid #75618c; border-radius: 5px; font-size: 9px; }
@media (max-width: 640px) { .game-screen .secret-answer > span { font-size: 110px; } .game-screen .secret-card-lock { top: 44px; padding: 3px 6px; font-size: 9px; } }
@media (max-width: 640px) { .brand > span:last-child { display: block; } }
