/* Color study: blue-led midnight glass with a secondary teal glow. */
:root {
  color-scheme: dark;
  --ink: #04070f;
  --text: #f4f7fb;
  --muted: #a8b8d2;
  --quiet: #7d92b4;
  --cyan: #36a9e6;
  --ice: #a8d7f2;
  --glass: rgba(4,30,53,0.66);
  --line: rgba(48,165,222,0.18);
  --radius: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
html { background: var(--ink); }
body { color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font-family: inherit; }
a { color: var(--ice); }
[hidden] { display: none !important; }
.fx-root {
  background:
    radial-gradient(ellipse 900px 650px at 5% 2%, rgba(28,137,218,0.14), transparent 70%),
    radial-gradient(ellipse 800px 600px at 98% 46%, rgba(15,157,177,0.075), transparent 65%),
    radial-gradient(ellipse 700px 500px at 50% 100%, rgba(0,68,224,0.05), transparent 65%), var(--ink);
}
.fx-root::before { opacity: .74; animation: drift 22s ease-in-out infinite alternate; }
.fx-root::after { opacity: .028; }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.06); } }
@keyframes arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-board { 0%,100% { transform: perspective(900px) rotateX(12deg) rotateZ(-5deg) translateY(0); } 50% { transform: perspective(900px) rotateX(12deg) rotateZ(-3deg) translateY(-7px); } }
@keyframes glass-sheen { 0%,65% { transform: translateX(-160%) rotate(22deg); } 100% { transform: translateX(280%) rotate(22deg); } }
.eyebrow, .section-kicker { margin: 0 0 10px; color: var(--ice); font-size: 10px; font-weight: 650; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.brand-mark { display: inline-grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(44,155,228,0.3); border-radius: 12px; background: linear-gradient(145deg, rgba(44,155,228,0.188), rgba(9,29,39,0.6)); box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 0 28px rgba(44,155,228,0.112); color: #dce9ff; font-size: 14px; font-weight: 750; letter-spacing: -.08em; }
.site-brand, .dashboard-brand { display: inline-flex; gap: 12px; align-items: center; color: #dce4f1; text-decoration: none; font-size: 13px; font-weight: 550; letter-spacing: -.02em; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 48px; }
.home-site .home-page { display: block; position: relative; max-width: 1168px; width: 100%; min-height: 100svh; margin: 0 auto; padding: 32px 32px 22px; overflow: visible; }
.home-site .ghost { z-index: -1; inset: 22% -5% auto auto; width: 72%; height: 70%; font-size: clamp(12rem, 35vw, 35rem); opacity: .3; letter-spacing: -.09em; transform: rotate(-7deg); mask-image: linear-gradient(to bottom, black, transparent 90%); }
.home-hero { position: relative; margin-bottom: 38px; animation: arrive .85s var(--ease) both; }
.home-hero .eyebrow { margin-bottom: 13px; }
.home-site .home-title { width: auto; margin: 0 0 0 -4px; padding: 0; overflow: visible; text-align: left; font-size: clamp(42px, 6.3vw, 78px); font-weight: 550; letter-spacing: -.067em; line-height: 1.02; animation: none; }
.home-site .home-title-trigger { padding: 0 .04em; border-radius: 8px; text-shadow: 0 0 32px rgba(207,223,251,0.2), 0 0 70px rgba(44,155,228,0.175); }
.home-site .home-title-trigger:hover { text-shadow: 0 0 35px rgba(207,223,251,0.35), 0 0 85px rgba(44,155,228,0.35); }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "compose chess" "history chess"; gap: 20px; align-items: start; }
.home-site .signal-composer, .home-site .signal-mine, .home-site .chess-panel, .owner-page .panel, .owner-page .card, .gate-page .sign-in-card {
  position: relative; min-width: 0; max-width: 100%; width: 100%; margin: 0; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(6,56,88,0.29), rgba(3,10,26,0.84) 60%); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(222,233,253,0.055), 0 16px 60px -24px rgba(0,0,0,.8), 0 0 32px -18px rgba(44,155,228,0.2);
}
.home-site .signal-composer, .home-site .signal-mine, .home-site .chess-panel { padding: 28px; animation: arrive .8s var(--ease) both; }
.home-site .signal-composer { grid-area: compose; animation-delay: .08s; }
.home-site .signal-mine { grid-area: history; animation-delay: .22s; padding-block: 24px; }
.home-site .chess-panel { grid-area: chess; animation-delay: .16s; padding-bottom: 22px; }
.home-site .signal-composer-head, .chess-panel-head, .history-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 25px; }
.home-site h2, .owner-page .section-heading { margin: 0; color: var(--text); font-size: 25px; font-weight: 560; letter-spacing: -.045em; line-height: 1.2; text-transform: none; text-align: left; }
.home-site .section-kicker { margin-bottom: 6px; color: #8fd7df; font-size: 9px; }
.home-site .signal-mute { align-self: flex-start; margin-top: 1px; min-height: 30px; padding: 5px 10px; border-color: rgba(78,175,225,0.25); background: rgba(3,34,46,0.5); color: var(--muted); font-size: 10px; letter-spacing: .01em; }
.home-site .signal-mute[aria-pressed="true"] { color: var(--quiet); }
.home-site .signal-form { display: flex; gap: 9px; }
.home-site .signal-form input { width: 0; min-height: 52px; padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(78,175,225,0.17); background: rgba(3,7,15,0.4); font-size: 16px; box-shadow: inset 0 2px 10px rgba(0,0,0,.1); transition: box-shadow .2s, border-color .2s; }
.home-site .signal-form input::placeholder { color: #7f8ea7; }
.home-site .signal-form input:focus { border-color: rgba(44,155,228,0.55); box-shadow: 0 0 0 3px rgba(44,155,228,0.088), 0 0 25px rgba(44,155,228,0.075); }
.home-site .signal-form button[type=submit] { display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 0 18px; min-height: 52px; border: 1px solid rgba(178,204,249,0.5); border-radius: 14px; color: #f5f9ff; background: linear-gradient(135deg, #49b4eb, #347edc); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 26px rgba(44,155,228,0.15); font-size: 12px; font-weight: 700; }
.home-site .signal-form button[type=submit]:hover:not(:disabled) { color: #fff; background: linear-gradient(135deg, #60d2e0, #438fec); box-shadow: 0 0 30px rgba(44,155,228,0.3); }
.signal-form button svg { width: 18px; height: 18px; }
.reaction-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 25px 0 10px; font-size: 11px; color: var(--muted); }
.reaction-caption span:last-child { color: var(--quiet); font-size: 10px; }
.home-site .signal-emojis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; overflow: visible; }
.home-site .signal-emoji-btn { display: grid; place-items: center; width: 100%; min-width: 0; min-height: 48px; border-radius: 13px; border-color: rgba(170,196,242,0.11); background: linear-gradient(145deg, rgba(140,177,240,0.045), rgba(3,7,15,0.25)); box-shadow: inset 0 1px 0 rgba(240,255,255,.035); font-size: 21px; transition: transform .32s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.home-site .signal-emoji-btn:hover:not(:disabled) { transform: translateY(-4px) rotate(-4deg) scale(1.05); border-color: rgba(44,155,228,0.5); background: rgba(44,155,228,0.138); box-shadow: 0 5px 20px rgba(44,155,228,0.125); }
.home-site .signal-emoji-btn:active:not(:disabled) { transform: translateY(0) scale(.92); }
.home-site .signal-status { margin: 14px 0 -6px; min-height: 16px; color: var(--muted); font-size: 11px; text-align: left; }
.home-site .signal-status.is-ok { color: #95f2df; }
.home-site .signal-status.is-err, .chess-err.is-err, .inline-feedback.is-err { color: #ffc1bd; }
.history-head { margin-bottom: 17px; }
.home-site .signal-mine-title { font-size: 16px; font-weight: 580; letter-spacing: -.025em; }
.history-label { color: var(--quiet); font-size: 10px; }
.home-site .signal-mine-empty { margin: 0; color: var(--muted); font-size: 12px; text-align: left; line-height: 1.6; }
.home-site .signal-disclaimer { margin: 17px 0 0; color: #78869d; font-size: 10px; text-align: left; line-height: 1.5; }
.home-site .signal-mine-frame { border: 0; border-radius: 0; background: transparent; }
.home-site .signal-mine-list { max-height: 160px; padding: 0; gap: 8px; }
.home-site .signal-mine-item { border-color: rgba(78,175,225,0.09); background: rgba(2,6,14,0.24); padding: 12px 14px; border-radius: 12px; }
.home-site .signal-mine-body { color: #dee5f2; font-size: 12px; line-height: 1.6; }
.home-site .signal-mine-when { color: var(--quiet); font-size: 10px; }
.home-site .signal-mine-hint { text-align: right; color: var(--quiet); font-size: 10px; }
.section-copy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; letter-spacing: -.01em; }
.chess-panel-head { margin-bottom: 12px; }
.chess-heading-piece { color: #99baf4; font-size: 36px; line-height: 1; text-shadow: 0 0 24px rgba(44,155,228,0.375); opacity: .8; }
.home-site .chess-start { display: grid; gap: 0; }
.chess-preview-stage { position: relative; display: grid; place-items: center; padding: 25px 20px 37px; overflow: hidden; }
.chess-preview { display: grid; grid-template-columns: repeat(8,1fr); grid-template-rows: repeat(8,1fr); width: min(100%, 270px); aspect-ratio: 1; border: 1px solid rgba(149,185,247,0.25); border-radius: 9px; overflow: hidden; background: #0c182d; animation: float-board 8s ease-in-out infinite; box-shadow: 0 24px 35px -15px #000, 0 0 40px rgba(44,155,228,0.112), inset 0 1px 0 rgba(255,255,255,.1); }
.preview-square { display: grid; place-items: center; min-width: 0; min-height: 0; }
.preview-square.light { background: #254560; }
.preview-square.dark { background: #0b2135; }
.preview-caption { position: absolute; bottom: 9px; color: #7a8cac; font-size: 10px; letter-spacing: .06em; }
.chess-start-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 8px; }
.home-site .chess-start button, .home-site .chess-actions button, .owner-page .chess-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; min-height: 44px; border-radius: 12px; color: #b3cbf5; border: 1px solid rgba(117,161,238,0.24); background: linear-gradient(140deg, rgba(4,71,99,0.24), rgba(2,29,45,0.4)); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.home-site .chess-start button:hover:not(:disabled), .home-site .chess-actions button:hover:not(:disabled), .owner-page .chess-actions button:hover:not(:disabled) { border-color: rgba(44,155,228,0.5); background: rgba(44,155,228,0.125); box-shadow: 0 0 24px rgba(44,155,228,0.1); }
.side-token { display: inline-block; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 8px rgba(92,167,255,0.15); }
.side-token.white { background: #e5ecf8; border: 1px solid white; }
.side-token.black { background: #121b2a; border: 1px solid #829bc5; }
.home-site .chess-play { gap: 17px; padding-top: 12px; }
.home-site .chess-status, .owner-page .chess-status { color: #c1d2ef; font-size: 12px; line-height: 1.6; min-height: 20px; padding: 4px 12px; border: 1px solid rgba(44,155,228,0.175); border-radius: 30px; background: rgba(44,155,228,0.044); }
.home-site .chess-board { width: min(100%, 390px); }
.chess-sq { appearance: none; padding: 0; margin: 0; border: 0; border-radius: 0; color: inherit; font: inherit; position: relative; transition: background .18s ease, box-shadow .18s ease; }
.home-site .chess-sq.light, .owner-page .chess-sq.light { background: #294d6c; }
.home-site .chess-sq.dark, .owner-page .chess-sq.dark { background: #0b2135; }
.home-site .chess-sq:hover, .owner-page .chess-sq:hover { box-shadow: inset 0 0 0 2px rgba(154,188,247,0.45); }
.home-site .chess-sq.selected, .owner-page .chess-sq.selected { background: #1766dc; outline: 2px solid var(--cyan); outline-offset: -2px; box-shadow: inset 0 0 20px rgba(44,155,228,0.175); }
.home-site .chess-sq.last, .owner-page .chess-sq.last { box-shadow: inset 0 0 0 2px rgba(44,155,228,0.475); }
.home-site .chess-board, .owner-page .chess-board { border-radius: 12px; border-color: rgba(157,190,248,0.26); box-shadow: 0 0 35px rgba(44,155,228,0.1), 0 10px 24px rgba(0,0,0,.22); }
.chess-sq.legal-move::before, .chess-sq.legal-capture::before {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.chess-sq.legal-move::before {
  inset: 40%;
  background: #83c7fa;
  box-shadow: 0 0 5px rgba(77,176,249,.36);
}
.chess-sq.legal-capture::before {
  inset: 5%;
  border: 2px solid #83c7fa;
}
.chess-piece { transition: transform .2s var(--ease); }
.chess-sq.selected .chess-piece { transform: translateY(-2px); }
.chess-err, .inline-feedback, .board-help { color: var(--muted); font-size: 11px; line-height: 1.6; }
.home-site .chess-err { margin: 12px 0 0; min-height: 0; text-align: left; }
.chess-err:empty, .inline-feedback:empty { display: none; }
.home-site .chess-actions { gap: 8px; }
.home-site .chess-actions .is-destructive, .owner-page .is-destructive { color: #e7a8a8; border-color: rgba(239,151,151,.18); background: rgba(110,37,46,.07); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; padding: 20px 2px 0; border-top: 1px solid rgba(78,175,225,0.075); color: #6f7e98; font-size: 10px; letter-spacing: .01em; }
.site-footer > span:last-child { display: flex; gap: 18px; }
.site-footer a { color: #8696b1; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #d0e0fb; }
.text-button, .chess-retry { padding: 5px 0; border: 0; background: transparent; color: var(--ice); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.home-site .logout-button { min-height: 38px; padding: 8px 14px; border: 1px solid rgba(44,155,228,0.25); background: rgba(9,16,29,0.93); font-size: 12px; backdrop-filter: blur(20px); }
/* Sign-in: an invitation with the same atmospheric glass. */
.gate-page .fx-root { min-height: 100svh; display: flex; align-items: center; }
.gate-page .gate-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(310px,.8fr); gap: clamp(40px,9vw,120px); align-items: center; max-width: 1120px; width: 100%; margin: 0 auto; padding: 70px 40px; }
.gate-page .gate-intro { animation: arrive 1s var(--ease) both; }
.gate-page .brand-wordmark { display: inline-flex; gap: 12px; align-items: center; margin-bottom: 64px; text-decoration: none; color: #dce4f1; font-size: 13px; font-weight: 550; }
.gate-page .gate-heading { margin: 0 0 22px; font-size: clamp(48px,6vw,78px); line-height: 1.04; font-weight: 540; letter-spacing: -.065em; text-shadow: 0 0 42px rgba(213,227,252,0.2), 0 0 80px rgba(44,155,228,0.2); }
.gate-page .gate-lead { max-width: 420px; margin: 0; color: #adbad0; font-size: 16px; line-height: 1.7; letter-spacing: -.02em; }
.gate-page .gate-features { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 30px 0 0; list-style: none; }
.gate-features li { padding: 7px 11px; border: 1px solid rgba(133,172,239,0.16); border-radius: 30px; color: #aec0df; background: rgba(10,22,44,0.25); font-size: 11px; }
.gate-page .sign-in-card { position: relative; padding: 32px; text-align: left; animation: arrive .9s .12s var(--ease) both; }
.gate-page .sign-in-card::before { content: ''; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg,transparent,rgba(44,155,228,0.6),transparent); box-shadow: 0 0 20px rgba(44,155,228,0.375); }
.gate-page .sign-in-card h2, .gate-page .sign-in-card h1 { margin: 0 0 8px; font-size: 27px; font-weight: 560; letter-spacing: -.045em; }
.gate-page .sign-in-card > p { margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.gate-page .sign-in-button { min-height: 52px; justify-content: center; border-radius: 14px; margin-top: 10px; font-size: 13px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 26px rgba(44,155,228,0.112); }
.gate-page .sign-in-button-google, .gate-page .sign-in-button-apple { border-color: rgba(78,175,225,0.2); background: rgba(3,16,40,0.55); color: #e2e9f4; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.gate-page .fine { margin: 24px 0 0 !important; text-align: center; color: var(--quiet); font-size: 10px !important; }
.gate-page .fine a { color: #91a4c6; }
/* Owner space. */
.owner-page .dashboard-shell { max-width: 1168px; padding: 36px 32px 28px; }
.owner-page .dashboard-header { margin-bottom: 30px; align-items: center; }
.dashboard-brand .eyebrow { display: block; margin: 4px 0 0; font-size: 8px; color: #7c92b7; }
.owner-page .dashboard-heading { margin: 25px 0 8px; font-size: clamp(34px,4.2vw,50px); font-weight: 550; line-height: 1.1; letter-spacing: -.055em; }
.owner-page .meta { font-size: 13px; color: #9eadc7; }
.owner-page .since { margin-top: 15px; font-size: 10px; padding: 5px 10px; border-color: rgba(44,155,228,0.225); color: #b2c8ef; background: rgba(44,155,228,0.062); }
.owner-page .nav a, .owner-page .button { min-height: 39px; border-radius: 12px; font-size: 11px; background: rgba(13,22,38,0.5); border-color: rgba(78,175,225,0.18); padding: 9px 15px; }
.owner-page .cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.owner-page .card { padding: 21px 24px; border-radius: 18px; }
.owner-page .card .label { font-size: 10px; color: #91a2be; letter-spacing: .08em; }
.owner-page .card .value { margin-top: 10px; font-size: 32px; font-weight: 540; line-height: 1.2; }
.owner-page .card .value-date { font-size: 18px; margin-top: 14px; }
.owner-page .card .sub { font-size: 10px; color: var(--quiet); margin-top: 6px; }
.dashboard-tasks { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; margin-bottom: 24px; align-items: start; }
.owner-page .panel { padding: 26px; margin-bottom: 22px; }
.dashboard-tasks > .panel { margin-bottom: 0; min-height: 210px; }
.owner-page .panel h2 { font-size: 17px; font-weight: 550; color: #e0e8f6; letter-spacing: -.025em; }
.owner-page .panel .section-heading { font-size: 24px; margin-bottom: 8px; }
.owner-page .section-copy, .owner-page .chess-lead { font-size: 12px; color: var(--muted); }
.owner-page .panel-head { align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.owner-page .signal-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.owner-page .signal-toolbar button { font-size: 10px; min-height: 31px; padding: 6px 10px; border-radius: 9px; }
.owner-page .signal-select-all { color: #a2bce9; border-color: rgba(44,155,228,0.2); background: rgba(44,155,228,0.044); }
.owner-page .signal-list { gap: 10px; }
.owner-page .signal-item { border-color: rgba(78,175,225,0.1); border-radius: 14px; background: rgba(2,7,16,0.28); }
.owner-page .signal-body { font-size: 13px; line-height: 1.6; }
.owner-page .signal-meta { font-size: 10px; color: #8798b5; }
.owner-page .signal-del { border-color: rgba(239,151,151,.15); background: rgba(110,37,46,.07); color: #dda7a9; }
.owner-page .empty-note, .owner-page .chess-empty, .owner-page .empty-spark { font-size: 12px; line-height: 1.6; color: var(--muted); }
.owner-page .chess-layout { display: block; }
.owner-page .chess-game-list { gap: 8px; margin: 0 0 20px; }
.owner-page .chess-game-list button { border-radius: 12px; padding: 12px; background: rgba(3,10,23,0.28); border-color: rgba(78,175,225,0.13); }
.owner-page .chess-game-list button.is-selected { border-color: rgba(44,155,228,0.5); background: rgba(44,155,228,0.1); }
.owner-page .chess-board-wrap { gap: 12px; justify-items: center; }
.owner-page .chess-board { width: min(100%,360px); }
.owner-page .board-help { text-align: center; font-size: 10px; margin: -5px 0 2px; }
.chess-feedback { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 12px; }
.chess-feedback p { margin: 16px 0; }
.owner-page .dashboard-insights { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 20px; }
.owner-page .spark-meta { font-size: 10px; color: #8697b5; }
.owner-page .city-name { font-size: 12px; color: #c4d0e5; }
.owner-page .city-count { font-size: 11px; }
.owner-page .city-track { height: 4px; }
.owner-page .table-wrap { border-color: rgba(78,175,225,0.1); border-radius: 14px; background: rgba(3,8,17,0.22); }
.owner-page th { color: #90a0bb; font-size: 9px; padding: 14px 16px; }
.owner-page td { color: #c9d3e5; font-size: 11px; padding: 14px 16px; border-bottom-color: rgba(78,175,225,0.065); }
.inline-notice { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; margin-bottom: 22px; border: 1px solid rgba(250,185,166,.25); border-radius: 18px; background: rgba(104,55,32,.12); color: #ebc9bb; font-size: 13px; }
.inline-notice p { color: #c8b4ac; font-size: 12px; line-height: 1.6; margin: 5px 0 0; }
/* Supporting pages share the same frame and atmosphere. */
.legal-page { background: radial-gradient(ellipse at 5% 0%, rgba(44,155,228,0.125), transparent 60%), var(--ink); min-height: 100svh; }
.legal-shell { width: min(100% - 48px,720px); max-width: 720px; margin: 0 auto; padding: 38px 0 60px; }
.legal-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 55px; }
.legal-header a { text-decoration: none; color: #a8bee3; font-size: 12px; }
.legal-copy { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(130deg,rgba(6,56,88,0.4),rgba(2,15,48,0.55)); padding: clamp(24px,5vw,44px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 60px rgba(44,155,228,0.044); animation: arrive .8s var(--ease) both; }
.legal-copy h1 { margin: 0 0 14px; font-size: 38px; letter-spacing: -.05em; line-height: 1.1; font-weight: 550; }
.legal-copy h2 { margin: 30px 0 9px; color: #d8e3f5; font-size: 17px; letter-spacing: -.02em; }
.legal-copy p, .legal-copy li { color: #a6b4cb; font-size: 13px; line-height: 1.8; }
.legal-copy ul { padding-left: 18px; }
.error-page { min-height: 100svh; display: grid; place-items: center; margin: 0; padding: 24px; background: radial-gradient(ellipse at 50% 20%,rgba(44,155,228,0.125), transparent 65%), var(--ink); }
.error-page .error-card { width: min(100%,450px); padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); box-shadow: 0 0 70px rgba(44,155,228,0.075); text-align: center; animation: arrive .8s var(--ease) both; }
.error-card h1 { margin: 22px 0 12px; font-size: 30px; font-weight: 550; letter-spacing: -.04em; }
.error-card p { color: var(--muted); line-height: 1.7; font-size: 13px; }
.error-card a { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid rgba(44,155,228,0.312); border-radius: 12px; color: var(--ice); background: rgba(44,155,228,0.088); text-decoration: none; font-size: 12px; }
@media (max-width: 1000px) {
  .home-site .home-page, .owner-page .dashboard-shell { padding: 28px 28px 22px; }
  .home-site .signal-composer, .home-site .signal-mine, .home-site .chess-panel { padding: 24px; }
  .home-layout, .dashboard-tasks { gap: 16px; }
  .home-site h2 { font-size: 22px; }
  .home-site .signal-form button[type=submit] { padding-inline: 14px; }
  .gate-page .gate-layout { gap: 45px; padding: 60px 32px; }
  .gate-page .sign-in-card { padding: 27px; }
}
@media (max-width: 760px) {
  .home-site .home-page, .owner-page .dashboard-shell { padding: 23px 22px; }
  .site-header { margin-bottom: 42px; }
  .home-site .home-title { font-size: clamp(42px,9vw,64px); }
  .home-hero { margin-bottom: 28px; }
  .home-layout { max-width: 580px; margin: 0 auto; grid-template-columns: minmax(0,1fr); grid-template-areas: "compose" "history" "chess"; gap: 18px; }
  .home-site .signal-mine { padding-block: 24px; }
  .home-site .signal-mine.is-empty { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding-block: 14px; }
  .signal-mine.is-empty .history-head { margin: 0; }
  .signal-mine.is-empty .history-label, .signal-mine.is-empty .signal-disclaimer, .signal-composer-head .section-kicker { display: none; }
  .home-site .signal-composer, .home-site .chess-panel { padding: 26px; }
  .chess-preview { width: min(100%,270px); }
  .home-site .chess-board { width: min(100%,380px); }
  .gate-page .gate-layout { display: block; max-width: 540px; padding: 32px 24px; }
  .gate-page .brand-wordmark { margin-bottom: 38px; }
  .gate-page .gate-heading { font-size: clamp(44px,10vw,64px); }
  .gate-page .gate-lead { font-size: 14px; }
  .gate-page .gate-features { margin-top: 22px; }
  .gate-page .sign-in-card { margin-top: 36px; padding: 28px; }
  .dashboard-tasks, .owner-page .dashboard-insights { grid-template-columns: minmax(0,1fr); }
  .owner-page .dashboard-header { align-items: flex-start; }
  .owner-page .nav { padding-top: 8px; }
  .owner-page .card { padding: 18px; }
  .owner-page .panel { padding: 23px; }
}
@media (max-width: 480px) {
  .home-site .home-page, .owner-page .dashboard-shell { padding: 21px 16px; }
  .site-header { margin-bottom: 37px; }
  .brand-mark { width: 33px; height: 33px; border-radius: 10px; font-size: 12px; }
  .site-brand { font-size: 11px; gap: 9px; }
  .home-site .home-title { font-size: clamp(39px,11vw,52px); }
  .home-site .signal-composer, .home-site .signal-mine, .home-site .chess-panel { padding: 22px; border-radius: 22px; }
  .home-site .signal-composer-head { margin-bottom: 22px; }
  .home-site h2 { font-size: 23px; }
  .home-site .section-kicker { font-size: 8px; }
  .home-site .signal-form input { min-height: 49px; padding-inline: 13px; font-size: 16px; }
  .home-site .signal-form button[type=submit] { min-height: 49px; padding-inline: 14px; font-size: 11px; }
  .signal-form button svg { display: none; }
  .home-site .signal-emojis { gap: 7px; }
  .home-site .signal-emoji-btn { min-height: 43px; border-radius: 11px; font-size: 20px; }
  .reaction-caption { font-size: 10px; margin-top: 22px; }
  .reaction-caption span:last-child { font-size: 9px; }
  .home-site .signal-mine-title { font-size: 17px; }
  .home-site .signal-mine-body { font-size: 12px; }
  .chess-preview-stage { padding-top: 24px; padding-bottom: 35px; }
  .chess-preview { width: min(100%,245px); }
  .home-site .chess-start button { padding-inline: 9px; font-size: 10px; }
  .home-site .chess-actions button, .owner-page .chess-actions button { padding: 9px 12px; min-height: 39px; font-size: 10px; }
  .home-site .ghost { inset: 12% -16% auto auto; width: 100%; height: 50%; opacity: .2; }
  .owner-page .cards { gap: 9px; }
  .owner-page .card { padding: 17px 12px; border-radius: 16px; }
  .owner-page .card .value { font-size: 26px; }
  .owner-page .card .value-date { font-size: 13px; line-height: 1.5; margin-top: 10px; }
  .owner-page .card .label { font-size: 8px; }
  .owner-page .card .sub { font-size: 9px; }
  .owner-page .dashboard-header { display: block; }
  .owner-page .dashboard-heading { margin-top: 28px; font-size: 38px; }
  .owner-page .nav { margin-top: 16px; }
  .owner-page .table-wrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .owner-page table, .owner-page tbody, .owner-page tr { display: block; width: 100%; }
  .owner-page thead { display: none; }
  .owner-page tr { border: 1px solid rgba(78,175,225,0.1); border-radius: 13px; margin-top: 12px; background: rgba(3,8,17,0.22); padding: 8px 13px; }
  .owner-page td { display: flex; justify-content: space-between; gap: 15px; width: 100%; padding: 8px 0; white-space: normal; word-break: break-word; font-size: 11px; text-align: right; }
  .owner-page td::before { content: attr(data-label); flex: 0 0 65px; text-align: left; color: #7d8eab; font-size: 10px; }
  .owner-page td[colspan]::before { display: none; }
  .owner-page td[colspan] { display: block; text-align: left; }
  .inline-notice { display: block; padding: 18px; }
  .inline-notice .button { display: inline-flex; margin-top: 14px; }
  .gate-page .gate-layout { padding: 28px 20px; }
  .gate-page .brand-wordmark { margin-bottom: 34px; }
  .gate-page .gate-heading { font-size: 50px; }
  .gate-page .gate-features { gap: 6px; }
  .gate-features li { font-size: 10px; padding: 6px 10px; }
  .gate-page .sign-in-card { padding: 25px; margin-top: 30px; }
  .legal-shell { width: calc(100% - 32px); padding-top: 24px; }
  .legal-header { margin-bottom: 32px; }
  .legal-copy h1 { font-size: 32px; }
  .error-page .error-card { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-root::before, .home-hero, .signal-composer, .signal-mine, .chess-panel, .chess-preview, .gate-intro, .sign-in-card, .wrap, .legal-copy, .error-card { animation: none !important; }
}
/* Final component details shared by the live and preview states. */
.brand-wordmark { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.home-site .signal-mine-row { padding: 12px 14px; border-radius: 12px; border-color: rgba(78,175,225,0.09); background: rgba(2,6,14,0.24); }
.square-label, .home-site .chess-sq::after { position: absolute; left: 3px; bottom: 3px; color: #bec9dd; font: 7px/1 ui-monospace, SFMono-Regular, monospace; opacity: 0; pointer-events: none; }
.home-site .chess-sq::after { content: attr(data-sq); }
.chess-sq:nth-child(8n+1) .square-label, .chess-sq:nth-last-child(-n+8) .square-label,
.home-site .chess-sq:nth-child(8n+1)::after, .home-site .chess-sq:nth-last-child(-n+8)::after { opacity: .55; }
.chess-sq:hover .square-label, .chess-sq.selected .square-label, .home-site .chess-sq:hover::after, .home-site .chess-sq.selected::after { opacity: .85; }
/* Keep display type fluid through layout breakpoints. */
.home-site .home-title { font-size: clamp(40px, calc(24px + 4.3vw), 78px); }
.gate-page .gate-heading { font-size: clamp(44px, calc(22px + 4.3vw), 78px); }
.owner-page .dashboard-heading { font-size: clamp(34px, calc(24px + 2vw), 50px); }
.owner-page .stats-unavailable + .cards .value { font-size: clamp(12px, 1.6vw, 18px); line-height: 1.5; overflow-wrap: anywhere; }
/* Contain the animated light field without adding scroll space. */
.fx-root { overflow: hidden; }
*, *::before, *::after { box-sizing: border-box; }
.error-card .brand-wordmark { padding: 0; margin-bottom: 25px; border: 0; border-radius: 0; min-height: 0; background: transparent; color: #dce4f1; font-size: 12px; }
.error-card .eyebrow { margin: 0; color: #91a8d0; font-size: 9px; }

/* An atmospheric gate, with the original minimal copy and branding. */
.gate-page .gate-layout.gate-layout-simple { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 100svh; max-width: 464px; padding: 80px 24px; }
.gate-page .gate-layout-simple .sign-in-card { margin: 0; text-align: center; background: linear-gradient(140deg, rgba(6,54,92,0.36), rgba(3,10,26,0.86) 65%, rgba(2,39,46,0.55)); border-color: rgba(63,164,222,0.21); box-shadow: inset 0 1px 0 rgba(222,233,253,0.055), 0 20px 70px rgba(0,0,0,.5), 0 0 55px -25px rgba(44,155,228,0.25); transition: border-color .6s, box-shadow .6s; }
.gate-page .gate-layout-simple .sign-in-card:hover { border-color: rgba(78,175,225,0.25); box-shadow: inset 0 1px 0 rgba(222,233,253,0.08), 0 20px 70px rgba(0,0,0,.5), 0 0 65px -22px rgba(44,155,228,0.3); }
.gate-page .fx-root { background: radial-gradient(ellipse at 50% 50%, #071928 0%, #04070f 64%); }
.gate-page .fx-root::before { background: radial-gradient(ellipse 360px 360px at 49% 48%, rgba(32,143,226,0.30), transparent 72%); filter: blur(50px); opacity: .8; animation: gate-glow 21s ease-in-out infinite alternate; }
.gate-page .sign-in-header { top: 30px; left: 30px; }
.gate-page .sign-in-header .brand-mark { opacity: .8; }
.gate-atmosphere { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.gate-orbit { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; -webkit-mask: radial-gradient(farthest-side, transparent 99%, #000 99.65%); mask: radial-gradient(farthest-side, transparent 99%, #000 99.65%); }
.gate-orbit-near { width: min(82vw, 640px); --gate-arc-paint: conic-gradient(from 0deg, transparent 0deg 18deg, rgba(44,155,228,0.037) 35deg, rgba(110,195,244,0.62) 67deg, rgba(44,155,228,0.1) 96deg, transparent 120deg 232deg, rgba(44,202,212,0.22) 264deg, transparent 306deg); animation: gate-arc-near 31s ease-in-out infinite alternate; }
.gate-orbit-far { width: min(106vw, 760px); --gate-arc-paint: conic-gradient(from 90deg, transparent 0deg 100deg, rgba(26,177,190,0.075) 140deg, rgba(35,121,255,0.24) 181deg, transparent 221deg 360deg); animation: gate-arc-far 42s ease-in-out infinite alternate; }
.gate-orbit::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--gate-arc-paint); animation: gate-spin-near 10s linear infinite; }
.gate-orbit-far::before { animation-name: gate-spin-far; animation-duration: 15s; }
.gate-mist { position: absolute; width: min(105vw, 740px); height: 190px; left: 50%; top: 50%; background: radial-gradient(ellipse, rgba(32,153,219,0.14), rgba(13,150,168,0.075) 43%, transparent 70%); filter: blur(30px); animation: gate-mist 19s ease-in-out infinite alternate; }
.gate-stars { position: absolute; inset: 0; pointer-events: none; }
.gate-star { position: absolute; left: var(--x); top: var(--y); width: var(--star-size); height: var(--star-size); border-radius: 50%; background: #bfd8ff; box-shadow: 0 0 7px rgba(44,155,228,0.35); opacity: var(--star-alpha); animation: gate-star-drift var(--star-travel, 5s) linear var(--star-delay) infinite; }
@keyframes gate-star-drift { 0% { transform: translate3d(-42px, 54px, 0); opacity: 0; } 15% { opacity: var(--star-alpha); } 75% { opacity: calc(var(--star-alpha) * .7); } 100% { transform: translate3d(42px, -54px, 0); opacity: 0; } }
.gate-mote { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #b8d4ff; box-shadow: 0 0 12px rgba(44,155,228,0.6); opacity: 0; animation: gate-dust 1.8s ease-in-out infinite; }
.gate-mote:nth-of-type(1) { left: 26%; top: 27%; animation-delay: -2s; }
.gate-mote:nth-of-type(2) { left: 71%; top: 22%; animation-delay: -9s; animation-duration: 2.275s; }
.gate-mote:nth-of-type(3) { left: 79%; top: 62%; animation-delay: -4s; animation-duration: 1.925s; }
.gate-mote:nth-of-type(4) { left: 19%; top: 71%; animation-delay: -11s; animation-duration: 2.45s; }
.gate-mote:nth-of-type(5) { left: 61%; top: 80%; animation-delay: -6s; animation-duration: 1.925s; }
.gate-mote:nth-of-type(6) { left: 42%; top: 18%; animation-delay: -8s; animation-duration: 2.625s; }
@keyframes gate-spin-near { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes gate-spin-far { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes gate-glow { from { transform: translate3d(-3%, -2%, 0) scale(.95); opacity: .65; } to { transform: translate3d(3%, 2%, 0) scale(1.13); opacity: .95; } }
@keyframes gate-arc-near { from { transform: translate(-55%, -54%) rotate(-43deg) scale(.96); opacity: .65; } to { transform: translate(-48%, -51%) rotate(-5deg) scale(1.04); opacity: 1; } }
@keyframes gate-arc-far { from { transform: translate(-45%, -46%) rotate(21deg); opacity: .5; } to { transform: translate(-49%, -48%) rotate(-16deg) scale(1.04); opacity: .85; } }
@keyframes gate-mist { from { transform: translate(-66%, -20%) rotate(-32deg); opacity: .45; } to { transform: translate(-32%, -70%) rotate(-18deg); opacity: .85; } }
@keyframes gate-dust { 0%, 100% { transform: translate3d(0, 15px, 0); opacity: 0; } 28% { opacity: .48; } 70% { opacity: .2; } 99% { transform: translate3d(12px, -35px, 0); opacity: 0; } }
@media (max-width: 480px) {
  .gate-orbit-near { width: 116vw; max-width: 580px; }
  .gate-orbit-far { width: 145vw; max-width: 680px; }
  .gate-mist { width: 130vw; max-width: 600px; opacity: .6; }
}
@media (prefers-reduced-motion: reduce) {
  .gate-page .fx-root::before, .gate-orbit, .gate-orbit::before, .gate-mist, .gate-mote, .gate-star { animation: none; }
  .gate-orbit-near { transform: translate(-52%, -53%) rotate(-24deg); opacity: .85; }
  .gate-orbit-far { transform: translate(-47%, -47%) rotate(5deg); opacity: .65; }
  .gate-mist { transform: translate(-50%, -45%) rotate(-24deg); opacity: .6; }
  .gate-mote { opacity: .2; }
}

/* Provider order and emphasis: Google first, X second. */
.gate-page .sign-in-button-primary { background: linear-gradient(180deg, #f4f7fb, #e1e8f4); color: #09142b; border-color: rgba(255,255,255,.68); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 26px rgba(44,155,228,0.112); }
.gate-page .sign-in-button-primary:hover { background: linear-gradient(180deg, #fff, #edf6ff); color: #09142b; }
.gate-page .sign-in-button-secondary { background: rgba(3,16,40,0.55); color: #e2e9f4; border-color: rgba(78,175,225,0.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.gate-page .sign-in-button-secondary:hover { background: rgba(6,45,115,0.7); color: #f4f7fb; border-color: rgba(44,155,228,0.438); }
.gate-page .guest-entry { margin: 0; }
.gate-page .guest-entry-row {
  display: flex; align-items: stretch; padding: 3px; border: 1px solid rgba(115,175,220,.34);
  border-radius: 14px; background: rgba(2,11,27,.7);
}
.gate-page .guest-entry-row:focus-within { border-color: #78bce3; box-shadow: 0 0 0 2px rgba(70,158,215,.16); }
.gate-page .guest-name {
  flex: 1 1 0; width: 0; min-width: 0; min-height: 44px; padding: 0 10px; border: 0;
  outline: 0; background: transparent; color: #f4f7fb; caret-color: #95d7eb; font: inherit; font-size: 16px;
}
.gate-page .guest-name::placeholder { color: #a3b3c9; }
.gate-page .guest-entry button {
  flex: none; min-height: 44px; padding: 0 13px; border: 1px solid rgba(95,168,209,.29);
  border-radius: 10px; font: inherit; font-size: 13px; font-weight: 650; color: #d6f0ff;
  background: #17334c; cursor: pointer;
}
.gate-page .guest-entry button:hover { background: #21445e; }
.gate-page .guest-entry button:focus-visible { outline: 2px solid #91d2eb; outline-offset: 1px; }
.gate-page #guest-name-error { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: #f4c4bd; }
.gate-page .gate-or { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: #99aec6; font-size: 11px; }
.gate-page .gate-or::before, .gate-page .gate-or::after { content: ""; flex: 1; height: 1px; background: rgba(123,166,204,.18); }

/* Pointer and touch light response sit outside the existing rotating arcs. */
.gate-orbit-field { position: absolute; inset: 0; transform: translate3d(var(--halo-x, 0px), var(--halo-y, 0px), 0); scale: 1; transition: scale 380ms cubic-bezier(.16,1,.3,1); }
.gate-stars { transform: translate3d(calc(var(--halo-x, 0px) * -.32), calc(var(--halo-y, 0px) * -.32), 0); }
.gate-reactive-light { position: absolute; inset: 0; background: radial-gradient(ellipse 390px 390px at var(--halo-light-x, 50%) var(--halo-light-y, 50%), rgba(44,155,228,.11), rgba(21,184,191,.035) 45%, transparent 73%); opacity: calc(.32 + var(--halo-energy, 0) * .68); }
.gate-opening .gate-orbit-field { scale: 1.16; }
.gate-opening .gate-reactive-light { opacity: 1; transition: opacity 180ms ease; }
.gate-page .gate-atmosphere { transition: opacity 200ms ease; }

/* The same promotion chooser and move effects are used on both chess boards. */
.chess-board { position: relative; }
.chess-sq.chess-moving { position: relative; z-index: 2; overflow: visible; }
.chess-capture-ghost { position: absolute; pointer-events: none; z-index: 3; display: grid; place-items: center; }
.chess-promotion[hidden] { display: none !important; }
.chess-promotion { width: min(100%, 22rem); padding: 14px; border: 1px solid rgba(92,167,255,.25); border-radius: 16px; background: linear-gradient(145deg, rgba(7,36,62,.96), rgba(3,15,31,.98)); box-shadow: inset 0 1px 0 rgba(222,239,255,.055), 0 12px 32px rgba(0,0,0,.25); }
.chess-promotion-title { margin: 0 0 12px; color: #e2e9f4; font-size: .86rem; font-weight: 600; letter-spacing: -.015em; }
.chess-promotion-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.chess-promotion-choice { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; min-width: 44px; min-height: 70px; padding: 7px 3px; border: 1px solid rgba(92,167,255,.22); border-radius: 10px; color: #c3d8f3; background: rgba(44,155,228,.075); font: inherit; font-size: .67rem; cursor: pointer; transition: background 140ms ease, border-color 140ms ease; }
.chess-promotion-choice .chess-piece { width: 34px; height: 34px; }
.chess-promotion-choice:hover { background: rgba(44,155,228,.19); border-color: rgba(92,167,255,.6); }
.chess-promotion-choice:focus-visible, .chess-promotion-cancel:focus-visible { outline: 2px solid #5ca7ff; outline-offset: 3px; }
.chess-promotion-cancel { display: block; margin: 7px auto -4px; min-height: 44px; padding: 7px 18px; border: 0; border-radius: 8px; background: transparent; color: #8fa9c5; font: inherit; font-size: .75rem; cursor: pointer; }
.chess-promotion-cancel:hover { color: #e2e9f4; background: rgba(44,155,228,.07); }
@media (prefers-reduced-motion: reduce) {
  .gate-orbit-field, .gate-stars { transform: none; scale: 1; transition: none; }
  .gate-reactive-light { display: none; }
  .chess-promotion-choice, .chess-promotion-cancel { transition: none; }
}


/* A finger draws temporary light on the gate; the canvas never intercepts links. */
.gate-page .gate-touch-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; display: block; pointer-events: none; }
@media (any-pointer: coarse), (max-width: 700px) {
  .gate-page { overscroll-behavior: none; }
  .gate-page .fx-root { touch-action: pan-y pinch-zoom; }
  .gate-page .fx-root.gate-fits-view { touch-action: pinch-zoom; }
  .gate-page, .gate-page * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
  .gate-page .guest-name { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
}
@media (max-height: 540px) {
  .gate-page .gate-layout.gate-layout-simple { padding: 16px 24px; }
  .gate-page .sign-in-header { top: 16px; left: 16px; }
  .gate-page .gate-layout-simple .sign-in-card { padding: 20px; }
  .gate-page .sign-in-card h1 { font-size: 24px; line-height: 1.1; margin-bottom: 5px; }
  .gate-page .sign-in-card .sign-in-copy { margin-bottom: 12px; line-height: 1.4; }
  .gate-page .gate-or { margin: 7px 0; }
  .gate-page .sign-in-button { min-height: 44px; padding: 8px 16px; margin-top: 8px; }
  .gate-page .fine { margin-top: 14px !important; }
}
@media (max-height: 380px) {
  .gate-page .gate-layout.gate-layout-simple { padding-block: 8px; }
  .gate-page .gate-layout-simple .sign-in-card { padding: 14px 20px; }
  .gate-page .sign-in-card .sign-in-copy { margin-bottom: 8px; }
  .gate-page .fine { margin-top: 10px !important; }
}
@media (prefers-reduced-motion: reduce) { .gate-page .gate-touch-stars { display: none; } }
@media (max-width: 540px) and (max-height: 540px) {
  .gate-page.guest-enabled .gate-layout.gate-layout-simple { padding-block: 58px 14px; }
}


.gate-page .last-provider { display: inline-block; flex: 0 0 auto; padding: 2px 5px; border: 1px solid currentColor; border-radius: 5px; font-size: 9px; font-weight: 550; line-height: 1.25; opacity: .72; }


.home-site .game-image-link { font-family: inherit; cursor: pointer; align-self: center; justify-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(117,161,238,.27); border-radius: 11px; background: rgba(24,61,86,.27); color: #b3d2ed; font-size: 12px; font-weight: 600; text-decoration: none; }
.home-site .game-image-link[hidden] { display: none; }
.home-site .game-image-link:hover { color: #e7f6ff; border-color: #6187a5; }
.home-site .postcard-dialog {
  box-sizing: border-box; width: min(780px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; padding: clamp(14px, 3vw, 24px); overflow: auto;
  border: 1px solid #37516a; border-radius: 18px; background: #0b1422; color: #e7f6ff;
  box-shadow: 0 18px 70px #03070fc9; text-align: left;
}
.home-site .postcard-dialog:not([open]) { display: none; }
.home-site .postcard-dialog::backdrop { background: rgba(2,6,13,.82); }
.home-site .postcard-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.home-site .postcard-header h3 { margin: 0; font-size: 17px; }
.home-site .postcard-header button { min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: #b3d2ed; cursor: pointer; font: inherit; }
.home-site .postcard-dialog img { display: block; width: 100%; height: auto; margin: 0 0 14px; border-radius: 7px; -webkit-touch-callout: default; }

.chess-reminder { display: grid; gap: 3px; justify-items: center; margin: 12px 0 0; }
.chess-reminder[hidden] { display: none; }
.chess-reminder .text-button { min-height: 36px; }
.chess-reminder span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }

/* A small, private drawing surface shared by the visitor composer and inbox. */
.draw-toggle, .draw-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 30px; padding: 4px 11px; background: #17263d; color: #c1e7ff;
  border: 1px solid #344c65; border-radius: 999px; font: inherit; cursor: pointer;
}
.draw-toggle[hidden], .draw-panel[hidden], .home-site .signal-emojis[hidden] { display: none; }
.draw-toggle[aria-expanded="true"] { border-color: #519bb7; }
.draw-toggle span:last-child { font: inherit; color: inherit; }
.draw-panel { width: 100%; max-width: 420px; margin: 0 auto; }
.draw-sky, ah-constellation {
  position: relative; isolation: isolate; overflow: hidden; display: block;
  border: 1px solid rgba(122,179,232,.21); border-radius: 12px;
  background: radial-gradient(ellipse at 20% 100%,#15344a,transparent 68%),linear-gradient(120deg,#071225,#0d1931 63%,#091224);
}
.draw-sky { width: 100%; aspect-ratio: 360/368; touch-action: none; user-select: none; -webkit-user-select: none; }
.draw-sky::before, ah-constellation::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(1px 1px at 14% 32%,#a8b9d1 70%,transparent), radial-gradient(1px 1px at 73% 64%,#97b3cc 70%,transparent), radial-gradient(1px 1px at 28% 75%,#91abc4 70%,transparent);
  background-size: 87px 69px, 61px 107px, 113px 85px; opacity: .42;
}
.draw-ink, .draw-ink svg, ah-constellation svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.draw-star {
  appearance: none; position: absolute; width: 32px; height: 32px; transform: translate(-50%,-50%);
  padding: 0; border: none; border-radius: 50%; background: transparent; cursor: crosshair; -webkit-tap-highlight-color: transparent;
}
.draw-star::before {
  content: ""; position: absolute; inset: 13px; border-radius: inherit;
  background: #ccdffa; box-shadow: 0 0 3px 1px #a4d4ff8a, 0 0 11px 3px #66afff47;
}
.draw-star[aria-pressed="true"]::before { background: #e7ffff; box-shadow: 0 0 5px 2px #97f1fc, 0 0 14px 3px #62c7f27a; }
.draw-star:disabled[aria-pressed="false"] { opacity: .4; cursor: default; }
.star-line,.star-glow { fill: none; stroke: #9ce4ff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.star-glow { stroke: #58a8f5; stroke-width: 7; opacity: .28; }
.star-core { fill: #e1fbff; }
.star-bloom { fill: #87e5ff; opacity: .22; }
.draw-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.draw-send { font-size: 11px; min-height: 34px; }
.draw-controls button:disabled { opacity: .42; cursor: default; }
ah-constellation { width: 118px; height: 56px; max-width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .draw-star[aria-pressed="true"]::before { animation: constellation-light 320ms ease-out; }
  @keyframes constellation-light {
    from { transform: scale(1.65); box-shadow: 0 0 7px 5px #b9ffff, 0 0 22px 8px #58a9ff66; }
    to { transform: scale(1); }
  }
}
