:root {
  color-scheme: light;
  --ink: #17241f;
  --ink-soft: #607069;
  --muted: #8f9a93;
  --paper: #f6f1e8;
  --paper-deep: #ede5d8;
  --line: rgba(28, 48, 39, 0.11);
  --green: #264f40;
  --green-deep: #19392f;
  --green-soft: #dce8df;
  --coral: #df765c;
  --board: #ddad6d;
  --board-light: #ebc58b;
  --white: #fffdf7;
  --shadow: 0 24px 70px rgba(47, 53, 40, 0.12);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 4%, rgba(255, 255, 255, 0.83), transparent 30rem),
    linear-gradient(135deg, #f7f2e9 0%, #f2eee5 58%, #ece8dd 100%);
}

button, canvas { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.page-glow { position: fixed; z-index: -1; pointer-events: none; filter: blur(1px); border-radius: 999px; }
.page-glow--one { width: 42vw; height: 42vw; max-width: 680px; max-height: 680px; top: -25vw; right: -14vw; background: radial-gradient(circle, rgba(201, 220, 204, .56), transparent 69%); }
.page-glow--two { width: 30vw; height: 30vw; max-width: 450px; max-height: 450px; bottom: -10vw; left: -12vw; background: radial-gradient(circle, rgba(227, 196, 165, .3), transparent 70%); }

.app-shell { width: min(1220px, calc(100% - 64px)); margin: 0 auto; padding: 34px 0 28px; }

.topbar { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 5px); grid-template-rows: repeat(3, 5px); gap: 3px; width: 29px; height: 29px; padding: 4px; border: 1.5px solid var(--green); border-radius: 8px; transform: rotate(-7deg); }
.brand-mark i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.brand-mark i:nth-child(2) { background: var(--coral); }
.brand-mark i:nth-child(3), .brand-mark i:nth-child(5) { opacity: .45; }
.brand-copy { display: flex; align-items: baseline; gap: 8px; }
.brand-copy strong { font-size: 15px; letter-spacing: .19em; }
.brand-copy small { color: var(--ink-soft); font-size: 12px; letter-spacing: .1em; }
.topbar-note { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; letter-spacing: .08em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #76ad76; box-shadow: 0 0 0 4px rgba(118, 173, 118, .14); }

.hero-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 76px 0 38px; }
.eyebrow, .section-label, .result-kicker { margin: 0; color: var(--ink-soft); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 12px 0 12px; font-size: clamp(35px, 5vw, 58px); font-weight: 700; letter-spacing: -.065em; line-height: 1.06; }
h1 em { color: var(--coral); font-style: normal; }
.hero-description { max-width: 520px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.hero-shortcut { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.shortcut-key, .button-key { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(28, 48, 39, .17); border-bottom-width: 2px; border-radius: 5px; color: var(--ink-soft); font-family: "DM Mono", monospace; font-size: 10px; line-height: 1; }
.shortcut-key { width: 24px; height: 24px; background: rgba(255, 255, 255, .5); }

.game-layout { display: grid; grid-template-columns: 282px minmax(0, 1fr); gap: clamp(34px, 5vw, 74px); align-items: start; }
.control-panel { display: flex; flex-direction: column; min-width: 0; }
.panel-section { padding: 27px 0; border-top: 1px solid var(--line); }
.panel-section--first { padding-top: 0; border-top: 0; }
.mode-switch { display: grid; gap: 9px; margin-top: 15px; }
.mode-button { display: flex; align-items: center; gap: 13px; min-height: 64px; padding: 12px 13px; border: 1px solid transparent; border-radius: 13px; color: var(--ink-soft); background: transparent; text-align: left; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease; }
.mode-button:hover { background: rgba(255, 255, 255, .44); transform: translateY(-1px); }
.mode-button.is-active { border-color: rgba(38, 79, 64, .15); color: var(--ink); background: rgba(255, 255, 255, .67); box-shadow: 0 10px 28px rgba(41, 57, 45, .06); }
.mode-button > span:last-child { display: grid; gap: 3px; }
.mode-button strong { font-size: 13px; font-weight: 700; }
.mode-button small { color: var(--muted); font-size: 10px; }
.mode-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: var(--green); background: var(--green-soft); font-size: 17px; }
.mode-icon--people { font-size: 20px; }
.mode-button:not(.is-active) .mode-icon { color: var(--muted); background: rgba(33, 50, 42, .05); }
.section-heading, .score-card-header { display: flex; align-items: center; justify-content: space-between; }
.difficulty-value { color: var(--coral); font-size: 11px; font-weight: 700; }
.difficulty-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 14px; padding: 4px; border-radius: 9px; background: rgba(28, 48, 39, .06); }
.difficulty-switch button { padding: 7px 3px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.difficulty-switch button:hover { color: var(--ink); }
.difficulty-switch button.is-active { color: var(--ink); background: rgba(255, 255, 255, .82); box-shadow: 0 3px 8px rgba(41, 57, 45, .07); font-weight: 700; }
.score-card { margin: 0 0 1px; padding: 19px 17px 14px; border: 1px solid rgba(38, 79, 64, .12); border-radius: 14px; background: rgba(222, 234, 224, .45); }
.score-card-caption { color: var(--muted); font-family: "DM Mono", monospace; font-size: 8px; letter-spacing: .08em; }
.score-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; }
.score-player { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; }
.score-stone, .legend-stone { display: inline-block; width: 16px; height: 16px; border-radius: 50%; }
.score-stone--black, .legend-stone--black { background: radial-gradient(circle at 32% 28%, #68736c 0, #28342f 30%, #0c1713 80%); box-shadow: inset -2px -2px 3px rgba(0, 0, 0, .35), 1px 2px 3px rgba(20, 32, 25, .2); }
.score-stone--white, .legend-stone--white { border: 1px solid #d9d6cd; background: radial-gradient(circle at 32% 28%, #fff 0, #f5f4ed 48%, #c6c7be 100%); box-shadow: inset -2px -2px 3px rgba(70, 70, 60, .16), 1px 2px 3px rgba(20, 32, 25, .15); }
.score-value { color: var(--green-deep); font-family: "DM Mono", monospace; font-size: 17px; font-weight: 500; }
.score-divider { height: 1px; background: rgba(38, 79, 64, .1); }
.score-row--draws { padding-bottom: 2px; }
.score-row--draws .score-value { color: var(--muted); font-size: 14px; }
.draw-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 15px; }
.tips-section { display: grid; gap: 14px; }
.tip-line { display: grid; grid-template-columns: 24px 1fr; gap: 11px; align-items: start; }
.tip-number { color: var(--coral); font-family: "DM Mono", monospace; font-size: 10px; line-height: 1.8; }
.tip-line p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.panel-actions { display: grid; gap: 9px; padding-top: 5px; }
.button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:active { transform: translateY(1px); }
.button:focus-visible, .mode-button:focus-visible, .difficulty-switch button:focus-visible, .modal-close:focus-visible { outline: 3px solid rgba(223, 118, 92, .35); outline-offset: 2px; }
.button--primary { border: 1px solid var(--green); color: #f5f5ed; background: var(--green); box-shadow: 0 9px 18px rgba(38, 79, 64, .16); }
.button--primary:hover { background: var(--green-deep); box-shadow: 0 12px 23px rgba(38, 79, 64, .23); transform: translateY(-1px); }
.button--ghost { border: 1px solid rgba(38, 79, 64, .17); color: var(--ink-soft); background: rgba(255, 255, 255, .32); }
.button--ghost:hover:not(:disabled) { color: var(--ink); border-color: rgba(38, 79, 64, .32); background: rgba(255, 255, 255, .68); transform: translateY(-1px); }
.button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.button-plus { font-size: 20px; font-weight: 400; line-height: 0; }
.undo-icon { font-size: 17px; font-weight: 400; line-height: 0; }
.button-key { min-width: 23px; height: 20px; margin-left: auto; padding: 0 5px; color: rgba(245, 245, 237, .65); border-color: rgba(245, 245, 237, .28); font-size: 8px; }
.button--ghost .button-key { color: var(--muted); border-color: rgba(28, 48, 39, .15); }

.board-area { min-width: 0; }
.turn-banner { display: flex; align-items: center; justify-content: space-between; width: min(100%, 760px); margin: 0 auto 14px; padding: 0 3px; }
.turn-copy { display: flex; align-items: baseline; gap: 10px; }
.turn-label { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.turn-copy strong { color: var(--green-deep); font-size: 13px; font-weight: 700; transition: color .2s; }
.turn-indicator { width: 18px; height: 18px; border-radius: 50%; transition: background .3s, box-shadow .3s; }
.turn-indicator--black { background: radial-gradient(circle at 32% 28%, #6f7973 0, #28342f 31%, #0c1713 80%); box-shadow: inset -2px -2px 4px rgba(0, 0, 0, .42), 2px 3px 4px rgba(20, 32, 25, .18); }
.turn-indicator--white { border: 1px solid #d1d1c7; background: radial-gradient(circle at 32% 28%, #fff 0, #f4f4ee 48%, #c4c7bf 100%); box-shadow: inset -2px -2px 4px rgba(70, 70, 60, .17), 2px 3px 4px rgba(20, 32, 25, .14); }
.board-frame { position: relative; width: min(100%, 760px); margin: 0 auto; padding: 17px; border-radius: 25px; background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(237, 230, 216, .58)); box-shadow: 0 25px 60px rgba(66, 64, 48, .13), inset 0 1px rgba(255, 255, 255, .8); }
.board-shadow { position: absolute; z-index: -1; inset: 25px 19px 9px; border-radius: 23px; background: rgba(117, 74, 34, .28); filter: blur(13px); }
.board-wrap { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--board); box-shadow: inset 0 0 0 1px rgba(112, 71, 30, .24), inset 0 2px 3px rgba(255, 231, 185, .35), 0 2px 0 rgba(120, 76, 30, .18); }
.board-wrap::after { position: absolute; inset: 0; pointer-events: none; content: ""; opacity: .24; background: repeating-linear-gradient(5deg, transparent 0 8px, rgba(133, 82, 32, .07) 9px, transparent 10px 17px), repeating-linear-gradient(85deg, transparent 0 12px, rgba(255, 244, 202, .12) 13px, transparent 14px 20px); mix-blend-mode: multiply; }
#game-board { display: block; width: 100%; height: 100%; cursor: crosshair; }
#game-board:focus-visible { outline: 3px solid rgba(223, 118, 92, .8); outline-offset: -5px; }
.thinking-overlay { position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; justify-content: center; gap: 9px; color: rgba(255, 255, 255, .92); background: rgba(25, 57, 47, .36); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s; }
.thinking-overlay.is-visible { opacity: 1; }
.thinking-spinner { width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.board-footer { display: flex; align-items: center; justify-content: space-between; width: min(100%, 760px); margin: 13px auto 0; padding: 0 3px; }
.board-legend { display: flex; align-items: center; gap: 17px; color: var(--ink-soft); font-size: 10px; }
.board-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-stone { width: 11px; height: 11px; }
.board-coordinates { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .1em; }

.footer-note { display: flex; align-items: center; gap: 12px; margin-top: 50px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.footer-line { width: 28px; height: 1px; background: rgba(28, 48, 39, .2); }

.result-modal { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.result-modal.is-visible { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(22, 37, 31, .35); backdrop-filter: blur(7px); }
.result-card { position: relative; width: min(100%, 380px); padding: 44px 30px 30px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px; background: #f8f4eb; box-shadow: 0 25px 80px rgba(20, 42, 32, .28); text-align: center; transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.result-modal.is-visible .result-card { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 14px; right: 15px; width: 28px; height: 28px; border: 0; border-radius: 50%; color: var(--muted); background: rgba(28, 48, 39, .06); font-size: 21px; font-weight: 300; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--ink); background: rgba(28, 48, 39, .11); }
.result-confetti { position: absolute; top: 30px; right: 52px; left: 52px; display: flex; justify-content: space-between; pointer-events: none; }
.result-confetti span { display: block; width: 4px; height: 11px; border-radius: 4px; background: var(--coral); transform: rotate(22deg); }
.result-confetti span:nth-child(2) { margin-top: 11px; background: #b6cda9; transform: rotate(-28deg); }
.result-confetti span:nth-child(3) { margin-top: -5px; height: 7px; background: #edba72; }
.result-confetti span:nth-child(4) { margin-top: 16px; background: #8cad9a; transform: rotate(36deg); }
.result-confetti span:nth-child(5) { background: #e29276; transform: rotate(-21deg); }
.result-kicker { color: var(--coral); font-size: 9px; }
.result-emblem { display: grid; place-items: center; width: 73px; height: 73px; margin: 20px auto 15px; border-radius: 50%; background: var(--green-soft); }
.result-emblem span { display: block; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #68736c 0, #28342f 30%, #0c1713 80%); box-shadow: inset -3px -3px 5px rgba(0, 0, 0, .35), 3px 5px 7px rgba(20, 32, 25, .2); }
.result-emblem.result-emblem--white span { border: 1px solid #d1d1c7; background: radial-gradient(circle at 32% 28%, #fff 0, #f4f4ee 48%, #c4c7bf 100%); box-shadow: inset -3px -3px 5px rgba(70, 70, 60, .17), 3px 5px 7px rgba(20, 32, 25, .14); }
.result-emblem.result-emblem--draw { background: #f2e6cf; }
.result-emblem.result-emblem--draw span { display: grid; place-items: center; color: var(--coral); background: transparent; box-shadow: none; font-family: "DM Mono", monospace; font-size: 28px; font-weight: 500; }
.result-emblem.result-emblem--draw span::before { content: "="; }
.result-card h2 { margin: 0; color: var(--green-deep); font-size: 26px; letter-spacing: -.04em; }
.result-card p { margin: 9px 0 23px; color: var(--ink-soft); font-size: 12px; }
.modal-action { width: 100%; }
.modal-action span { margin-left: auto; font-size: 18px; font-weight: 400; line-height: 0; }

@media (max-width: 960px) {
  .app-shell { width: min(760px, calc(100% - 46px)); }
  .hero-copy { margin-top: 58px; }
  .game-layout { grid-template-columns: 1fr; gap: 36px; }
  .control-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .panel-section--first { grid-row: span 2; }
  .score-card { align-self: start; }
  .tips-section { display: none; }
  .panel-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; padding-top: 24px; }
  .board-area { order: -1; }
}

@media (max-width: 620px) {
  .app-shell { width: min(100% - 28px, 500px); padding-top: 22px; }
  .topbar-note { font-size: 10px; }
  .hero-copy { align-items: flex-start; flex-direction: column; gap: 18px; margin: 46px 0 28px; }
  h1 { font-size: clamp(34px, 10vw, 48px); }
  .hero-description { font-size: 12px; }
  .hero-shortcut { display: none; }
  .game-layout { gap: 27px; }
  .board-frame { padding: 10px; border-radius: 17px; }
  .board-shadow { inset: 16px 11px 4px; border-radius: 17px; filter: blur(9px); }
  .turn-banner { margin-bottom: 10px; }
  .board-footer { margin-top: 10px; }
  .board-legend { gap: 10px; font-size: 9px; }
  .control-panel { display: block; }
  .panel-section { padding: 21px 0; }
  .panel-section--first { padding-top: 0; }
  .mode-switch { grid-template-columns: 1fr 1fr; gap: 7px; }
  .mode-button { min-height: 60px; padding: 10px; gap: 8px; }
  .mode-icon { width: 28px; height: 28px; font-size: 14px; }
  .mode-icon--people { font-size: 17px; }
  .mode-button strong { font-size: 11px; }
  .mode-button small { font-size: 9px; }
  .difficulty-section { padding-bottom: 0; border-top: 0; }
  .score-card { margin-top: 21px; }
  .tips-section { display: none; }
  .panel-actions { grid-template-columns: 1fr 1fr; padding-top: 20px; }
  .button { min-height: 42px; font-size: 11px; }
  .button-key { display: none; }
  .footer-note { margin-top: 34px; }
}

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

/* 钦泓国际品牌外壳：沿用官网的近黑底、青色光感和克制的留白。 */
:root {
  color-scheme: dark;
  --ink: #f3f7f7;
  --ink-soft: #a1b0b5;
  --muted: #68787f;
  --paper: #05060a;
  --paper-deep: #0b1017;
  --line: rgba(142, 182, 194, .15);
  --green: #0e7487;
  --green-deep: #075364;
  --green-soft: rgba(81, 204, 226, .13);
  --coral: #63d9ee;
  --white: #f7fbfb;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

html { background: var(--paper); }
body {
  background:
    radial-gradient(circle at 78% -10%, rgba(18, 98, 116, .25), transparent 31rem),
    radial-gradient(circle at 14% 100%, rgba(67, 36, 130, .14), transparent 26rem),
    linear-gradient(145deg, #05060a 0%, #080d13 57%, #05070b 100%);
}
.page-glow--one { background: radial-gradient(circle, rgba(25, 164, 186, .18), transparent 69%); }
.page-glow--two { background: radial-gradient(circle, rgba(113, 71, 201, .12), transparent 70%); }
.brand { color: var(--ink); }
.brand-mark { border-color: var(--coral); }
.brand-mark i { background: var(--coral); }
.brand-mark i:nth-child(2) { background: #9a58ff; }
.brand-copy small, .topbar-note, .hero-description, .board-legend { color: var(--ink-soft); }
.topbar-actions { display: inline-flex; align-items: center; gap: 22px; }
.back-home { color: var(--ink-soft); font-size: 11px; letter-spacing: .06em; transition: color .2s ease; }
.back-home span { margin-left: 4px; color: var(--coral); font-size: 14px; }
.back-home:hover { color: var(--ink); }
.status-dot { background: var(--coral); box-shadow: 0 0 0 4px rgba(99, 217, 238, .12); }
.shortcut-key, .button-key { border-color: rgba(157, 205, 216, .22); color: var(--ink-soft); background: rgba(255, 255, 255, .05); }
.mode-button:hover { background: rgba(27, 57, 68, .4); }
.mode-button.is-active { border-color: rgba(99, 217, 238, .3); color: var(--ink); background: rgba(17, 34, 43, .86); box-shadow: 0 14px 30px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .05); }
.mode-icon { color: var(--coral); background: var(--green-soft); }
.mode-button:not(.is-active) .mode-icon { color: var(--muted); background: rgba(255, 255, 255, .05); }
.difficulty-switch { background: rgba(255, 255, 255, .06); }
.difficulty-switch button.is-active { color: var(--ink); background: rgba(104, 211, 230, .16); box-shadow: 0 3px 12px rgba(0, 0, 0, .2); }
.score-card { border-color: rgba(99, 217, 238, .18); background: rgba(14, 35, 44, .68); box-shadow: inset 0 1px rgba(255, 255, 255, .04); }
.score-value { color: var(--coral); }
.score-divider { background: rgba(142, 182, 194, .14); }
.button--primary { border-color: var(--coral); color: #031016; background: linear-gradient(100deg, #8aebf8, #42c3dc); box-shadow: 0 12px 24px rgba(44, 190, 216, .16); }
.button--primary:hover { background: linear-gradient(100deg, #b1f4fc, #62d9ee); box-shadow: 0 15px 30px rgba(44, 190, 216, .26); }
.button--ghost { border-color: rgba(142, 182, 194, .22); color: var(--ink-soft); background: rgba(255, 255, 255, .04); }
.button--ghost:hover:not(:disabled) { color: var(--ink); border-color: rgba(99, 217, 238, .4); background: rgba(99, 217, 238, .08); }
.button--ghost .button-key { border-color: rgba(157, 205, 216, .22); color: var(--muted); }
.button:focus-visible, .mode-button:focus-visible, .difficulty-switch button:focus-visible, .modal-close:focus-visible { outline-color: rgba(99, 217, 238, .55); }
.board-frame { background: linear-gradient(145deg, rgba(28, 50, 59, .85), rgba(8, 14, 21, .94)); box-shadow: 0 25px 70px rgba(0, 0, 0, .4), inset 0 1px rgba(172, 238, 247, .12); }
.board-shadow { background: rgba(0, 0, 0, .5); }
.turn-copy strong { color: var(--ink); }
.turn-indicator--black { box-shadow: inset -2px -2px 4px rgba(0, 0, 0, .42), 2px 3px 4px rgba(0, 0, 0, .3), 0 0 0 4px rgba(99, 217, 238, .1); }
.result-card { border-color: rgba(157, 205, 216, .2); background: #0c141b; box-shadow: 0 25px 80px rgba(0, 0, 0, .55); }
.modal-close { color: var(--muted); background: rgba(255, 255, 255, .07); }
.modal-close:hover { color: var(--ink); background: rgba(99, 217, 238, .14); }
.result-emblem { background: rgba(75, 202, 224, .14); }
.result-emblem.result-emblem--draw { background: rgba(154, 88, 255, .14); }
.footer-line { background: rgba(142, 182, 194, .26); }

@media (max-width: 620px) {
  .topbar-actions { gap: 10px; }
  .back-home { font-size: 0; }
  .back-home span { font-size: 16px; }
}
