Files
2026-10-22 11:26:42 -04:00

483 lines
27 KiB
CSS

:root {
--rosewater: #f5e0dc;
--flamingo: #f2cdcd;
--pink: #f5c2e7;
--mauve: #cba6f7;
--red: #f38ba8;
--maroon: #eba0ac;
--peach: #fab387;
--yellow: #f9e2af;
--green: #a6e3a1;
--teal: #94e2d5;
--sky: #89dceb;
--sapphire: #74c7ec;
--blue: #89b4fa;
--lavender: #b4befe;
--text: #cdd6f4;
--subtext: #bac2de;
--overlay: #6c7086;
--surface: #313244;
--base: #1e1e2e;
--mantle: #181825;
--crust: #11111b;
color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
margin: 0;
background: radial-gradient(ellipse at 15% 0%, #cba6f709, transparent 50%), var(--base);
color: var(--text);
font-family: system-ui, sans-serif;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
main {
max-width: 1160px;
margin: 0 auto;
padding: 2rem 1rem 4rem;
text-align: center;
display: grid;
grid-template-columns: 340px minmax(0, 1fr);
gap: 2rem;
align-items: start;
}
.game-panel {
position: sticky;
top: 1.5rem;
z-index: 2;
background: linear-gradient(160deg, #cba6f70a, transparent 60%), var(--mantle);
border: 1px solid var(--surface);
border-radius: 20px;
padding: 1.6rem 1.25rem;
box-shadow: 0 12px 32px #11111b40;
}
.game-panel h1 { font-size: 1.4rem; margin: 0.5rem 0 0; }
.season-subtitle { margin: 0.25rem 0 0; color: var(--mauve); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; }
.game-tagline { font-size: 0.8rem; color: var(--subtext); margin: 0.35rem 0 1.75rem; }
.game-panel #countdown { font-size: clamp(1.8rem, 3.5vw, 2.55rem); font-variant-numeric: tabular-nums; line-height: 1.3; letter-spacing: -0.05em; }
.game-panel #history-global-summary { font-size: 0.75rem; color: var(--subtext); margin: 1rem 0 0; }
.button-caption { font-size: 0.7rem; color: var(--subtext); margin: 1.25rem 0 0; }
#press-result:not(:empty) { background: #a6e3a109; border: 1px solid #a6e3a130; border-radius: 10px; padding: 0.65rem; font-size: 0.8rem; }
#press-result:empty { display: none; }
.section-browser { min-width: 0; }
.browser-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0.15rem 0 1rem; }
#section-nav { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.4rem; border: 1px solid var(--surface); background: var(--mantle); border-radius: 14px; }
#section-nav button[data-section] { flex: 1 0 auto; min-height: 44px; padding: 0.55rem 0.7rem; border: none; border-radius: 9px; background: transparent; color: var(--subtext); font-size: 0.8rem; }
#section-nav button[data-section]:hover { color: var(--text); background: var(--surface); }
#section-nav button[data-section][aria-expanded="true"] {
background: var(--mauve);
color: var(--crust);
border-color: var(--mauve);
}
[data-panel] { overflow-x: auto; padding: 0; background: var(--mantle); border: 1px solid var(--surface); border-radius: 18px; box-shadow: 0 12px 32px #11111b40; text-align: left; margin: 1.25rem 0; }
[data-panel] h2 { margin-top: 0; }
form { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
form input { min-width: 0; max-width: 100%; }
.eyebrow { margin: 0 0 0.65rem; font-size: 0.65rem; letter-spacing: 0.16em; color: var(--mauve); font-weight: 700; }
.browser-heading .eyebrow { margin: 0; }
.site-badge { display: inline-block; padding: 0.25rem 0.6rem; border: 1px solid var(--surface); border-radius: 20px; font-size: 0.65rem; color: var(--subtext); white-space: nowrap; }
.panel-header { padding: 1.75rem; background: linear-gradient(120deg, #cba6f710, transparent 75%); border-bottom: 1px solid var(--surface); }
.panel-header h2 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.25; letter-spacing: -0.03em; overflow-wrap: anywhere; color: var(--text); }
.panel-description { margin: 0.7rem 0 0; font-size: 0.85rem; color: var(--subtext); line-height: 1.6; }
.panel-body { padding: 1.5rem 1.75rem; min-width: 0; }
.panel-body > p { font-size: 0.9rem; color: var(--subtext); }
.header-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.65rem; }
.header-topline .eyebrow { margin: 0; }
.subheading, .panel-body h3 { font-size: 0.8rem; color: var(--text); font-weight: 600; margin: 1.5rem 0 0.75rem; }
.fine-print, .panel-body > .fine-print { font-size: 0.75rem; color: var(--subtext); line-height: 1.7; }
.welcome-card { margin-top: 1.25rem; padding: 3rem 2rem; text-align: center; border: 1px solid var(--surface); border-radius: 18px; background: radial-gradient(ellipse at 50% 0%, #cba6f712, transparent 70%), var(--mantle); }
.welcome-mark { display: block; color: var(--mauve); font-size: 3.5rem; line-height: 1; margin-bottom: 1.5rem; }
.welcome-card h2 { margin: 0.5rem 0 1rem; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; letter-spacing: -0.04em; }
.welcome-card > p:not(.eyebrow) { color: var(--subtext); font-size: 0.9rem; max-width: 400px; margin-inline: auto; }
.welcome-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.5rem 0; }
.welcome-notes span { padding: 0.35rem 0.65rem; border-radius: 20px; background: #cba6f70b; color: var(--lavender); font-size: 0.7rem; }
.welcome-card > .welcome-hint { font-size: 0.75rem !important; }
h1 { letter-spacing: 0.3em; }
a { color: var(--sapphire); text-underline-offset: 3px; }
a:hover { color: var(--lavender); }
section { margin: 1.5rem 0; }
#countdown {
font-family: ui-monospace, monospace;
font-size: clamp(2rem, 9vw, 4rem);
font-weight: bold;
background: none !important;
border: none !important;
}
#zone-label { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; margin-top: 0.5rem; }
#zone-bar {
position: relative;
display: flex;
height: 10px;
margin: 0.75rem auto;
border: 1px solid var(--surface);
border-radius: 8px;
overflow: hidden;
}
#zone-bar span { flex: 1 1 0; }
#zone-marker {
position: absolute;
top: -6px;
width: 3px;
height: 26px;
background: var(--mauve);
box-shadow: 0 0 4px var(--crust);
transition: left 0.2s linear;
}
#the-button {
width: 200px;
height: 200px;
border-radius: 50%;
font-size: 1.6rem;
font-weight: bold;
cursor: pointer;
border: 6px solid var(--mantle);
box-shadow: 0 8px 0 var(--crust), 0 0 0 1px var(--surface), inset 0 2px 5px #ffffff30;
transition: transform 0.12s, box-shadow 0.12s;
}
#the-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 0 var(--crust), 0 0 25px #cba6f715, inset 0 2px 5px #ffffff30; }
#the-button:active:not(:disabled) { transform: translateY(6px); box-shadow: 0 2px 0 var(--crust); }
#the-button:disabled { cursor: not-allowed; opacity: 0.5; }
.zone-green { background: var(--green); color: var(--crust); }
.zone-blue { background: var(--blue); color: var(--crust); }
.zone-yellow { background: var(--yellow); color: var(--crust); }
.zone-red { background: var(--red); color: var(--crust); }
.zone-black { background: var(--mantle); color: var(--text); border-color: var(--overlay) !important; }
.zone-white { background: var(--text); color: var(--crust); }
#countdown.zone-green { color: var(--green); }
#countdown.zone-blue { color: var(--blue); }
#countdown.zone-yellow { color: var(--yellow); }
#countdown.zone-red { color: var(--red); }
#countdown.zone-black { color: var(--lavender); }
#countdown.zone-white { color: var(--text); }
.swatch {
display: inline-block;
padding: 0.15em 0.6em;
margin: 0;
border: 1px solid transparent;
border-radius: 6px;
font-size: 0.75rem;
}
table {
margin: 0;
border-collapse: collapse;
width: 100%;
font-size: 0.8rem;
text-align: left;
}
th, td { padding: 0.8rem 0.65rem; border-bottom: 1px solid var(--surface); }
th { color: var(--subtext); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; white-space: nowrap; background: #31324435; }
td { font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #31324445; }
.table-scroll, .leaderboard-scroll { overflow-x: auto; border: 1px solid var(--surface); border-radius: 10px; max-width: 100%; scrollbar-width: thin; }
details { margin-top: 1.25rem; border: 1px solid var(--surface); border-radius: 10px; padding: 0.8rem 1rem; }
summary { color: var(--lavender); font-size: 0.8rem; cursor: pointer; }
details[open] summary { margin-bottom: 1rem; }
.score-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.score-header > div { min-width: 0; }
.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.metric-card { background: linear-gradient(135deg, #cba6f70b, transparent), var(--base); border: 1px solid var(--surface); border-radius: 12px; padding: 1rem; }
.metric-card span { display: block; font-size: 0.7rem; color: var(--subtext); }
.metric-card strong { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--mauve); line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.metric-card:nth-child(2) strong { color: var(--teal); }
.metric-card small { font-size: 0.65rem; color: var(--subtext); }
.personal-records .metric-card strong { font-size: clamp(1rem, 1.8vw, 1.35rem); letter-spacing: -0.04em; padding-block: 0.4rem; }
.personal-records .metric-card small { display: block; line-height: 1.6; }
.rival-card { padding: 1.1rem; margin-top: 1rem; border: 1px solid #cba6f730; border-radius: 12px; background: linear-gradient(110deg, #cba6f70c, transparent), var(--base); }
.rival-card #my-rival-title { margin: 0.8rem 0 0.4rem; font-size: 1rem; color: var(--lavender); overflow-wrap: anywhere; }
#my-rival-description { font-size: 0.85rem; color: var(--text); margin: 0; }
.rival-card .fine-print { font-size: 0.65rem; margin-bottom: 0; }
.achievements-heading { margin: 1.75rem 0 0.5rem; }
.achievements-heading .subheading { margin: 0; }
.achievement-list { display: grid; gap: 0.7rem; list-style: none; margin: 1rem 0; padding: 0; }
.achievement-card { display: flex; align-items: flex-start; gap: 0.85rem; padding: 1rem; background: var(--base); border: 1px solid var(--surface); border-radius: 12px; }
.achievement-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; color: var(--subtext); background: var(--surface); font-size: 1.1rem; }
.achievement-content { flex: 1; min-width: 0; }
.achievement-title { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem; }
.achievement-title h4 { margin: 0; color: var(--text); font-size: 0.85rem; }
.achievement-state { color: var(--subtext); font-size: 0.65rem; }
.achievement-content p { color: var(--subtext); font-size: 0.75rem; margin: 0.3rem 0; line-height: 1.6; }
.achievement-content small { display: block; color: var(--subtext); font-size: 0.65rem; overflow-wrap: anywhere; }
.achievement-content progress { display: block; width: 100%; height: 5px; margin-top: 0.7rem; accent-color: var(--mauve); }
.achievement-card.is-unlocked { border-color: #a6e3a135; background: linear-gradient(110deg, #a6e3a108, transparent), var(--base); }
.is-unlocked .achievement-icon { background: #a6e3a118; color: var(--green); }
.is-unlocked .achievement-state { color: var(--green); }
#my-subscribed { padding: 0.65rem; border-radius: 8px; background: #a6e3a110; color: var(--green); font-size: 0.75rem; }
#leaderboard-status:empty { display: none; }
.leaderboard-scroll { overflow-x: auto; }
#leaderboard { width: 100%; }
#leaderboard th { color: var(--lavender); }
#leaderboard th:nth-child(2), #leaderboard td:nth-child(2) {
text-align: left;
overflow-wrap: anywhere;
}
#leaderboard td:not(:nth-child(2)) { font-variant-numeric: tabular-nums; }
#leaderboard tbody tr:first-child { color: var(--yellow); }
#leaderboard tbody td:first-child { width: 3rem; font-weight: 700; color: var(--subtext); }
#leaderboard tbody tr:first-child td:first-child { color: var(--yellow); }
#leaderboard tbody tr:hover { background: var(--surface); }
input, button {
font-family: inherit;
font-size: 0.85rem;
padding: 0.65rem 0.9rem;
}
input {
border: 1px solid var(--surface);
border-radius: 9px;
background: var(--base);
color: var(--text);
min-height: 44px;
}
input::placeholder { color: var(--subtext); opacity: 0.75; }
button:not(#the-button) {
border: 1px solid var(--surface);
border-radius: 9px;
background: var(--surface);
color: var(--text);
cursor: pointer;
font-weight: 600;
min-height: 44px;
transition: background 0.15s, color 0.15s, border-color 0.15s;
}
button:not(#the-button):hover { background: #45475a; border-color: var(--overlay); }
button.primary-button:not(#the-button) { background: var(--mauve); border-color: var(--mauve); color: var(--crust); }
button.primary-button:not(#the-button):hover { background: var(--lavender); border-color: var(--lavender); }
button:disabled { cursor: not-allowed; opacity: 0.6; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
outline: 2px solid var(--mauve);
outline-offset: 2px;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; text-align: left; }
.field > span { color: var(--subtext); font-size: 0.75rem; font-weight: 600; }
.field small { font-weight: 400; }
.field input { width: 100%; }
#register-form { display: grid; gap: 1rem; max-width: 420px; justify-content: stretch; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.25rem; }
.form-actions button { flex: 1; }
#logout-button { flex-shrink: 0; font-size: 0.75rem; }
#subscribe-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; justify-content: stretch; }
#subscribe-form > button { grid-column: 1 / -1; justify-self: start; margin-top: 0.25rem; }
#mailing-list { border-top: 1px solid var(--surface); padding-top: 0.5rem; margin: 1.75rem 0 0; }
#mailing-list p { font-size: 0.85rem; color: var(--subtext); }
.feature-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding: 1.1rem; border: 1px solid var(--surface); border-radius: 12px; text-decoration: none; background: var(--base); }
.feature-link strong { display: block; font-size: 0.9rem; color: var(--lavender); }
.feature-link small { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--subtext); }
.feature-link > span:last-child { font-size: 1.3rem; }
.feature-link:hover { border-color: var(--mauve); }
.rules-list { list-style: none; counter-reset: rules; padding: 0; margin: 0; }
.rules-list li { display: flex; align-items: flex-start; gap: 1rem; counter-increment: rules; padding: 0.9rem 0; }
.rules-list li::before { content: "0" counter(rules); display: grid; place-items: center; flex: 0 0 32px; height: 32px; color: var(--mauve); background: #cba6f715; border-radius: 10px; font-size: 0.75rem; font-weight: 700; }
.rules-list li h3 { margin: 0 0 0.25rem; font-size: 0.9rem; }
.rules-list li p { margin: 0; font-size: 0.8rem; line-height: 1.7; color: var(--subtext); }
.zone-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.zone-guide .swatch { padding: 0.65rem; font-size: 0.7rem; font-weight: 600; }
.share-links {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
align-items: center;
gap: 0.5rem;
margin: 0.5rem 0 1rem;
}
.share-link {
display: inline-block;
padding: 0.65rem 1rem;
border: 1px solid var(--surface);
border-radius: 9px;
color: var(--text);
text-decoration: none;
font-size: 0.85rem;
}
.share-link:hover, .share-link:focus-visible { background: var(--surface); }
.share-link[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
#mastodon-instance { max-width: 100%; }
#share-controls label { display: block; font-size: 0.75rem; color: var(--subtext); margin-top: 1.5rem; }
.error { color: var(--red); }
.panel-body > .error { color: var(--red); }
.error:empty { display: none; }
.admin-list { list-style: none; display: grid; gap: 0.75rem; padding: 0; max-height: 520px; overflow-y: auto; }
.admin-card { background: var(--base); border: 1px solid var(--surface); border-radius: 12px; padding: 1rem; min-width: 0; overflow-wrap: anywhere; }
.admin-card > strong { color: var(--lavender); font-size: 0.9rem; }
.admin-card > small { display: block; margin-top: 0.3rem; }
.admin-card > p { font-size: 0.85rem; }
.admin-card .form-actions button { flex: 0 1 auto; font-size: 0.75rem; }
button.danger-button:not(#the-button) { color: var(--red); border-color: #f38ba840; background: #f38ba808; }
button.danger-button:not(#the-button):hover { background: #f38ba820; }
#admin-overview { margin-top: 1rem; }
#admin-overview .metric-card strong { font-size: 1.2rem; }
#admin-audit td { max-width: 160px; overflow-wrap: anywhere; }
#alerts-form { display: grid; justify-content: stretch; gap: 1rem; max-width: 460px; }
.alert-option { display: flex; align-items: center; gap: 0.65rem; color: var(--text); font-size: 0.85rem; cursor: pointer; }
.alert-option input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--mauve); flex-shrink: 0; }
#alerts-zone { width: 100%; min-height: 44px; padding: 0.65rem 0.9rem; color: var(--text); background: var(--base); border: 1px solid var(--surface); border-radius: 9px; font: inherit; }
#alerts-zone:focus-visible { outline: 2px solid var(--mauve); outline-offset: 2px; }
.alert-note { padding: 0.25rem 1rem 0.5rem; background: var(--base); border: 1px solid var(--surface); border-radius: 12px; margin-top: 1.25rem; }
.alert-note p { font-size: 0.75rem; color: var(--subtext); }
#stats-summary { padding: 0.5rem 1rem; border: 1px solid var(--surface); border-radius: 12px; background: var(--base); }
#stats-summary p { color: var(--subtext); font-size: 0.8rem; }
#stats-summary p:first-child { color: var(--lavender); font-weight: 600; }
stripe-buy-button { display: block; max-width: 100%; margin: 1.5rem 0; }
#chat-section {
padding: 0;
text-align: left;
background: var(--mantle);
border: 1px solid var(--surface);
border-radius: 18px;
box-shadow: 0 12px 32px #11111b40;
overflow: hidden;
}
.chat-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
padding: 1.75rem;
background: linear-gradient(120deg, #cba6f710, transparent 75%);
border-bottom: 1px solid var(--surface);
}
.chat-eyebrow { margin: 0 0 0.65rem; font-size: 0.65rem; letter-spacing: 0.18em; color: var(--mauve); font-weight: 700; }
#chat-heading { margin: 0; font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.2; letter-spacing: -0.03em; }
.chat-description { margin: 0.7rem 0 0; font-size: 0.85rem; color: var(--subtext); line-height: 1.6; }
.chat-badge { flex-shrink: 0; padding: 0.35rem 0.6rem; border: 1px solid #a6e3a130; border-radius: 20px; color: var(--green); background: #a6e3a109; font-size: 0.65rem; }
.chat-feed { padding: 1rem 1.25rem; min-height: 280px; }
.chat-feed-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; color: var(--subtext); font-size: 0.65rem; padding: 0.25rem 0.25rem 0.9rem; }
.chat-feed-label span:first-child { text-transform: uppercase; letter-spacing: 0.12em; }
#chat-messages {
list-style: none;
margin: 0;
padding: 0 0.25rem;
max-height: 360px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--surface) transparent;
}
#chat-messages:empty { display: none; }
#chat-messages li { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.7rem 0; }
.chat-avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 11px; background: #cba6f71a; color: var(--mauve); font-weight: 700; font-size: 0.8rem; }
#chat-messages li:nth-child(3n + 2) .chat-avatar { background: #94e2d51a; color: var(--teal); }
#chat-messages li:nth-child(3n) .chat-avatar { background: #fab3871a; color: var(--peach); }
.chat-message-content { min-width: 0; flex: 1; }
#chat-messages .chat-press .chat-avatar { background: #a6e3a118; color: var(--green); }
#chat-messages .chat-press p { background: #a6e3a108; border-color: #a6e3a130; color: var(--green); font-size: 0.8rem; }
#chat-messages .chat-milestone .chat-avatar { background: #f9e2af18; color: var(--yellow); }
#chat-messages .chat-milestone p { background: #f9e2af08; border-color: #f9e2af40; color: var(--yellow); font-size: 0.85rem; }
.chat-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; padding: 0.1rem 0 0.35rem; }
.chat-heading strong { color: var(--text); font-size: 0.8rem; overflow-wrap: anywhere; }
.chat-heading time { color: var(--subtext); font-size: 0.65rem; }
#chat-messages p { margin: 0; padding: 0.7rem 0.85rem; border: 1px solid #45475a60; border-radius: 0 12px 12px 12px; background: var(--base); font-size: 0.9rem; line-height: 1.55; overflow-wrap: anywhere; }
.chat-composer { border-top: 1px solid var(--surface); padding: 1.25rem 1.5rem; background: #11111b35; }
#chat-form { display: block; }
.emoji-suggestions { list-style: none; margin: 0.5rem 0 0; padding: 0.3rem; border: 1px solid var(--surface); border-radius: 12px; background: var(--base); max-height: 280px; overflow-y: auto; }
.emoji-option { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.65rem; min-height: 44px; border-radius: 8px; color: var(--subtext); font-size: 0.8rem; cursor: pointer; overflow-wrap: anywhere; }
.emoji-option[aria-selected="true"], .emoji-option:hover { background: var(--surface); color: var(--lavender); }
.emoji-glyph { font-size: 1.25rem; flex-shrink: 0; }
#chat-form label { display: block; margin-bottom: 0.6rem; font-size: 0.75rem; font-weight: 600; color: var(--subtext); }
.chat-input-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem; background: var(--base); border: 1px solid var(--surface); border-radius: 12px; }
.chat-input-row:focus-within { border-color: var(--mauve); }
#chat-input { flex: 1; min-width: 0; width: 100%; border: none; background: transparent; padding: 0.5rem; font-size: 0.85rem; }
#chat-input:focus-visible { outline-offset: -2px; border-radius: 6px; }
#chat-input::placeholder { color: var(--subtext); }
#chat-form #chat-send { display: flex; align-items: center; gap: 0.65rem; min-height: 40px; border: none; border-radius: 8px; background: var(--mauve); color: var(--crust); font-weight: 700; font-size: 0.8rem; }
#chat-send span { font-size: 1.2rem; }
#chat-form #chat-send:hover { background: var(--lavender); }
#chat-send:disabled { opacity: 0.5; cursor: wait; }
#chat-help { margin: 0.7rem 0 0; color: var(--subtext); font-size: 0.65rem; line-height: 1.6; }
#chat-status { margin: 0; padding: 4rem 1rem; text-align: center; color: var(--subtext); font-size: 0.85rem; line-height: 1.6; }
#chat-login { margin: 0; color: var(--lavender); font-size: 0.85rem; line-height: 1.6; }
#chat-status:empty, #chat-error:empty { display: none; }
.game-panel #presence-count { color: var(--teal); font-size: 0.7rem; margin: 0.65rem 0 0; }
.presence-count::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 0.4rem; background: var(--teal); }
.season-label { margin: 0.65rem 0 0; color: var(--lavender); font-size: 0.65rem; line-height: 1.5; }
#season-current { margin-top: 0; }
#season-current h3 { margin: 0.5rem 0; font-size: 1.1rem; color: var(--lavender); }
#season-winners td { min-width: 75px; overflow-wrap: anywhere; }
#season-winners td:nth-child(2) { min-width: 130px; }
#seasons-status:empty { display: none; }
.presence-preference { border: 1px solid var(--surface); border-radius: 12px; background: var(--base); padding: 0.9rem 1rem; margin-bottom: 1rem; }
.presence-preference label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; font-weight: 600; color: var(--lavender); cursor: pointer; }
#presence-opt-in { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--mauve); flex-shrink: 0; }
#presence-help { margin: 0.5rem 0 0; font-size: 0.7rem; line-height: 1.6; color: var(--subtext); }
#presence-error { margin-bottom: 0; font-size: 0.75rem; }
.chat-presence { padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--surface); background: #94e2d504; }
#chat-presence-summary { font-size: 0.7rem; color: var(--subtext); margin: 0; }
#chat-presence-names { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0.5rem 0 0; }
#chat-presence-names:empty { display: none; }
#chat-presence-names li { font-size: 0.7rem; padding: 0.15rem 0.55rem; border-radius: 20px; color: var(--teal); background: #94e2d50c; border: 1px solid #94e2d525; overflow-wrap: anywhere; max-width: 100%; }
#rules { text-align: left; font-size: 0.9rem; color: var(--subtext); }
@media (max-width: 760px) {
main { display: block; padding: 0.5rem; }
.game-panel {
top: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 0.25rem 0.5rem;
padding: 0.5rem;
border-radius: 0 0 12px 12px;
box-shadow: 0 6px 16px var(--crust);
background: var(--mantle);
}
.game-panel .game-eyebrow, .game-tagline, .button-caption { display: none; }
.game-panel h1 { grid-column: 1 / -1; margin: 0; font-size: 1rem; }
.game-panel .season-subtitle { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: 0.7rem; }
.game-panel section { margin: 0; }
.game-panel #countdown { font-size: clamp(1.4rem, 6vw, 2.5rem); }
#zone-label { font-size: 0.7rem; letter-spacing: 0.1em; }
#zone-bar { margin: 0.35rem auto; }
.game-panel #history-global-summary { margin: 0.25rem 0; font-size: 0.7rem; }
#the-button { width: 84px; height: 84px; font-size: 1rem; border-width: 4px; }
#timer-section { grid-column: 1; grid-row: 3; }
#button-section { display: contents; }
#the-button { grid-column: 2; grid-row: 3; align-self: center; }
#press-result:not(:empty) { grid-column: 1 / -1; margin: 0.4rem 0 0; padding: 0.45rem; font-size: 0.7rem; line-height: 1.5; }
#press-result:empty { display: none; }
.section-browser { margin-top: 1rem; }
.browser-heading { padding-inline: 0.25rem; }
.browser-heading .eyebrow { font-size: 0.55rem; }
#section-nav button[data-section] { font-size: 0.75rem; padding: 0.4rem 0.6rem; }
.welcome-card { padding: 2rem 1rem; }
.panel-header { padding: 1.25rem; }
.panel-body { padding: 1.1rem; }
.metric-card { padding: 0.8rem; }
.metric-card small { display: none; }
#subscribe-form { grid-template-columns: 1fr; }
.score-header { flex-wrap: wrap; }
th, td { padding: 0.65rem 0.5rem; }
.chat-header { padding: 1.25rem; flex-wrap: wrap; }
.chat-feed { padding: 0.9rem; min-height: 230px; }
.chat-composer { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { transition: none !important; }
}