/* Final presentation layer. Course geometry, controls, and responsive layouts
   remain in their existing sheets; this sheet supplies the holiday palette. */
:root {
  color-scheme: light;
  --ink: #174954;
  --paper: #fff6df;
  --card: #fff9e9;
  --muted: #53777a;
  --line: #94c5bd;
  --orange: #c95343;
  --orange-light: #ffe0cb;
  --teal: #178c96;
  --vacation-blue: #176b9b;
  --vacation-teal: #0b6972;
  --vacation-mint: #d9f1e7;
  --vacation-coral: #ee8067;
  --vacation-panel: url('/public/assets/ui/vacation/panel-frame.png');
  --vacation-button: url('/public/assets/ui/vacation/button-frame.png');
  --vacation-background: url('/public/assets/ui/vacation/menu-background.png');
  --vacation-logo: url('/public/assets/ui/vacation/logo.png');
  --vacation-shadow: 0 9px 24px #175d6b24, 0 2px 5px #6e754a14;
}

/* Class docks share the generated ceramic and mint surrounds of the club. */
.class-toolbar { align-items: flex-start; gap: 16px; }
.class-toolbar .fleet-filters { flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.class-toolbar .fleet-filters > button { padding: 10px 14px; min-height: 44px; font-size: 10px; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; }
.class-toolbar .trial-refits { flex-shrink: 0; min-height: 44px; }
.fleet-class-list { display: grid; gap: 22px; }
.fleet-class-group { min-width: 0; border: 10px solid transparent; border-image: var(--vacation-panel) 240 220 240 220 fill / 10px stretch; box-shadow: var(--vacation-shadow); }
.fleet-class-group > summary { list-style: none; display: flex; align-items: center; gap: 18px; padding: 18px 20px; cursor: pointer; }
.fleet-class-group > summary::-webkit-details-marker { display: none; }
.fleet-class-group > summary:hover { background: #c1eee629; }
.fleet-class-emblem { flex: 0 0 54px; display: grid; place-items: center; height: 54px; border: 1px solid #a0c5b7; background: #e2f2e3; border-radius: 50%; }
.fleet-class-emblem .icon { width: 32px; height: 32px; }
.fleet-class-heading { flex: 1; min-width: 0; }
.fleet-class-heading .eyebrow { font-size: 9px; letter-spacing: 1.2px; color: #b55c46; }
.fleet-class-heading h2 { font: 700 36px/1.05 var(--condensed); color: #186783; margin: 4px 0 6px; }
.fleet-class-description { display: block; max-width: 400px; font-size: 11px; line-height: 1.5; color: #507978; }
.fleet-class-preview { display: flex; width: 225px; flex-shrink: 0; height: 90px; pointer-events: none; }
.fleet-class-preview > span { position: relative; width: 75px; height: 90px; }
.fleet-class-preview .boat-sprite { width: 102px; height: 102px; }
.fleet-class-count { display: grid; min-width: 88px; text-align: center; line-height: 1.25; color: #186783; }
.fleet-class-count > strong { font: 700 40px/1 var(--condensed); }
.fleet-class-count > span { font-size: 9px; letter-spacing: 1px; font-weight: 700; }
.fleet-class-count > small { font-size: 8px; margin-top: 7px; letter-spacing: .3px; color: #53777a; }
.fleet-class-count .fleet-at-helm { font-size: 7px; letter-spacing: .6px; margin-top: 6px; padding: 4px 6px; color: #a44739; border: 1px solid #edac82; background: #fff0d8; border-radius: 3px; }
.fleet-class-chevron { flex-shrink: 0; width: 18px; transform: rotate(90deg); transition: transform .2s; }
.fleet-class-chevron .icon { width: 18px; height: 18px; }
.fleet-class-group[open] .fleet-class-chevron { transform: rotate(-90deg); }
.fleet-class-body { padding: 0 18px 20px; }
.fleet-class-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid #9bbca96e; font-size: 11px; color: #507978; }
.fleet-class-intro > span:last-child { font-size: 8px; letter-spacing: .8px; }
.fleet-class-body .garage-card { display: flex; flex-direction: column; }
.fleet-class-body .garage-card > button { margin-top: auto; }
.fleet-class-body .boat-characteristics { margin-bottom: 18px; }
.boat-preview-canvas { width: 100%; height: 100%; display: block; }
.boat-sprite.native-boat-preview, .boat-sprite.has-rig-preview { background-image: none; }
@media(max-width:1200px) {
  .fleet-class-preview { width: 165px; }
  .fleet-class-preview > span { width: 55px; }
  .fleet-class-preview .boat-sprite { width: 85px; height: 85px; }
  .fleet-class-group > summary { gap: 12px; padding: 16px 12px; }
}
@media(max-width:800px) {
  .class-toolbar { flex-direction: column; align-items: stretch; }
  .class-toolbar .fleet-filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding: 4px; scrollbar-width: thin; scrollbar-color: #66aaa6 transparent; }
  .class-toolbar .fleet-filters > button { font-size: 9px; flex-shrink: 0; }
  .class-toolbar .trial-refits { align-self: flex-start; }
  .fleet-class-preview { display: none; }
  .fleet-class-heading h2 { font-size: 32px; }
}
@media(max-width:650px) {
  .fleet-class-list { gap: 14px; }
  .fleet-class-group { border-width: 7px; border-image-width: 7px; }
  .fleet-class-group > summary { padding: 12px 8px; gap: 10px; }
  .fleet-class-emblem { display: none; }
  .fleet-class-heading h2 { font-size: 29px; }
  .fleet-class-heading .eyebrow { font-size: 7px; letter-spacing: .6px; }
  .fleet-class-description { font-size: 9px; }
  .fleet-class-count { min-width: 55px; }
  .fleet-class-count > strong { font-size: 34px; }
  .fleet-class-count > span { font-size: 8px; }
  .fleet-class-count > small { font-size: 7px; max-width: 58px; }
  .fleet-class-count .fleet-at-helm { font-size: 6px; padding: 3px 4px; }
  .fleet-class-chevron, .fleet-class-chevron .icon { width: 12px; }
  .fleet-class-body { padding: 0 5px 10px; }
  .fleet-class-intro { font-size: 9px; padding: 12px 0; }
  .fleet-class-intro > span:last-child { display: none; }
  .fleet-class-body .pod-grid { gap: 8px; }
  .fleet-class-body .garage-card { padding: 10px; }
  .fleet-class-body .boat-characteristics { margin-bottom: 14px; }
  .fleet-class-body .garage-card > button { min-height: 44px; }
  .fleet-class-body .garage-card h2 { font-size: 23px; }
}

body {
  color: var(--ink);
  background: #c5ede2 var(--vacation-background) center center / cover fixed no-repeat;
}
body::before {
  background: linear-gradient(90deg, #fff8e9b3, #eaf9ed54 55%, #e7f6e655),
    linear-gradient(0deg, #fff7e9b8, #fff7e912 80%);
}
::selection { color: #fffaf0; background: #16848d; }
button:hover { filter: brightness(1.035); }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid #bd5147; outline-offset: 3px;
}
button:disabled { cursor: default; }

/* Hand-painted ceramic surrounds, including every previously navy frame. */
.sidebar, .topbar, .hero-card, .featured-pod, .garage-card,
.track-card, .shop-card, .shop-side-card, .pit-strip,
.record-stats article, .empty-records, .help-modal, .stage-modal,
.result-modal, .records-table, .online-panel, .race-pause-card,
.race-progress, .race-speed, .race-gear, .race-wind, .race-meter-group {
  border-image-source: var(--vacation-panel);
  border-image-slice: 240 220 240 220 fill;
  border-image-repeat: stretch;
  background: transparent;
  color: var(--ink);
  box-shadow: var(--vacation-shadow);
}
.nav-item, .primary-button, .dark-button, .outline-button,
.hero-cta, .shop-buy, .equipped-button, .trial-refits,
.stage-tabs button, .fleet-filters button, .cheat-toggle,
.race-icon-button, .modal-close, .touch-controls button,
.touch-controls .touch-gear-large {
  border-image-source: var(--vacation-button);
  border-image-slice: 240 fill;
  border-image-repeat: stretch;
  background: transparent;
  color: #164d53;
  text-shadow: 0 1px #ffffff50;
  box-shadow: 0 3px 8px #27697526;
}
.primary-button, .hero-cta.primary-button {
  border-image-slice: 240;
  background: linear-gradient(180deg, #ffc4a0, #f18e72);
  background-clip: padding-box;
  color: #123f47;
  box-shadow: 0 4px 10px #bb6d4c2b;
}
.primary-button:hover, .hero-cta.primary-button:hover {
  background: linear-gradient(180deg, #ffcfaf, #f69a7e);
  background-clip: padding-box;
  color: #123f47;
  box-shadow: 0 5px 15px #bb6d4c38;
}
.dark-button:hover, .outline-button:hover, .hero-cta:hover, .shop-buy:hover {
  background: transparent; color: #09515b; box-shadow: 0 5px 12px #147c852b;
}
.equipped-button, .equipped-button:disabled {
  color: #316e66; filter: saturate(.75); opacity: .85;
}
.game-icon, .stage-tabs > button > .game-icon {
  background-image: url('/public/assets/ui/vacation/UIiconatlas.png');
  filter: drop-shadow(0 1px 1px #1c667429);
}
.game-logo, .race-brand img {
  content: var(--vacation-logo);
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #19789725);
}

/* Harbour navigation and the small travel information above each screen. */
.sidebar { color: var(--ink); scrollbar-color: #56a9ab transparent; }
.sidebar-divider { background: linear-gradient(90deg, transparent, #60afba, transparent); }
.side-label { color: #236e82; }
.nav-item, .sidebar .nav-item { color: #1b5b64; }
.nav-item.active {
  color: #074b57; filter: none;
  box-shadow: 0 0 0 2px #ee8b6c8c, 0 3px 10px #266d7730;
}
.nav-item .icon { color: #197b85; }
.nav-item.active .icon { color: #145e69; }
.nav-item small { color: #175960; border-color: #67aaa5; background: #f9f5df9c; }
.nav-dot { background: #ec816a; }
.league-card { background: #e5f3e5b5; border-color: #8cbbb0; box-shadow: inset 0 0 18px #fff8e880; }
.league-card .eyebrow, .league-level, .league-next { color: #52776b; }
.league-card strong { color: #21677a; }
.league-emblem { color: #9e6440; background: #fcf1ce; border-color: #d2be83; }
.league-progress { background: #c5dfd6; }
.league-progress > span { background: linear-gradient(90deg, #24a4a1, #76d0b5); }
.side-status, .side-status > span:last-child { color: #477769; }
.live-dot { background: #2f9570; box-shadow: 0 0 0 3px #40ac7920; }
.breadcrumb { color: #5b8786; }
.breadcrumb strong { color: #20667b; }
.credit-balance, .credit-balance > strong { color: #216d7d; }
.credit-balance > span { color: #537b79; }
.credit-balance > .icon { color: #bd843e; }
.icon-button { color: #217481; }
.topbar-separator { background: #78b2ad66; }
.cheat-toggle, .cheat-toggle > .icon { color: #1c6269; }
.cheat-toggle b { color: #a35840; }
.cheat-mode .cheat-toggle {
  background: transparent; color: #145b62;
  box-shadow: 0 0 0 1px #4fac9980, 0 3px 9px #348a6c24;
}
.cheat-mode .cheat-toggle b { color: #1c8069; }
.sandbox-banner { color: #48716b; background: #fff7dfa8; border-color: #73b4ac9c; }
.sandbox-banner > span { color: #b65145; }
.sandbox-banner > button { color: #156e81; }
.page-heading h1 { color: #156587; text-shadow: 0 2px 0 #fff8e7c9, 0 3px 10px #ffffffa8; }
.page-heading p { color: #416c75; text-shadow: 0 1px #fff8e7a8; }
.eyebrow, .orange { color: #b75243; }
.season-badge { background: #fcf4dcd9; color: #376f78; border-color: #90bdb3; }
.season-separator { color: #75a2a0; }
.section-heading h2 { color: #176c82; text-shadow: 0 1px #fff9e3; }
.section-line { background: #66b4b4; }
.text-link { color: #186e84; }
.text-link:hover { color: #b65045; }
.count-tag { background: #f9f5dfd9; border-color: #8bbcb2; color: #3c7b7d; }
footer, footer button { color: #2c6876; text-shadow: 0 1px #fff4df; }

/* The featured bay is a sunny postcard rather than a dark control panel. */
.hero-art { background-image: var(--vacation-background); opacity: .96; }
.hero-art::after {
  background: linear-gradient(90deg, #fff5dedf, #fff8e2a8 47%, #eff8e019 85%),
    linear-gradient(0deg, #fff5dfb3, transparent 60%);
}
.hero-grain { opacity: .06; }
.hero-topline, .hero-topline .icon { color: #2d7b82; }
.hero-mode { color: #1c6b70; background: #edf8e9cc; border-color: #67afa6; }
.hero-content h2 { color: #126b87; text-shadow: 0 2px 0 #fff5e5b3; }
.hero-content h2 em { color: #c75c4a; }
.hero-content p { color: #365f6b; }
.hero-cta > .icon { color: #226774; }
.hero-bottom { background: #eef6dfbf; border-color: #71b3ab80; color: #226b77; }
.hero-track .icon, .hero-track small, .hero-pickups { color: #4c7774; }
.pickup-token { color: #9a6240; background: #fff6dfb3; border-color: #9dbbaa; }
.pickup-token:nth-child(2), .pickup-token:nth-child(3) { color: #227f86; }
.pod-title > span, .pod-title > span i { color: #598086; }
.card-topline .eyebrow, .shop-side-card > .eyebrow { color: #9c6149; }
.pod-title h2, .garage-card h2, .shop-side-card h2, .pit-strip h3 { color: #186783; }
.boat-sprite, .online-boat-showcase .pod-art { background-image: var(--boat-atlas, url('/public/assets/boats-atlas.png')); filter: drop-shadow(0 9px 7px #27687a32); }
.pod-orbit { border-color: #79bdb44d; }
.pod-floor-glow { background: #56bcb232; }
.pod-serial { color: #6b969a; }
.ready-status { color: #267c64; }
.ready-status > span { background: #38a678; }
.stat-row > span, .stat-row small { color: #577e7b; }
.stat-row > strong { color: #1b7884; }
.stat-meter { background: repeating-linear-gradient(90deg, #c5ded4 0, #c5ded4 8px, transparent 8px, transparent 10px); }
.stat-meter > i { background: repeating-linear-gradient(90deg, #2b9e9d 0, #2b9e9d 8px, transparent 8px, transparent 10px); }
.featured-boat-trait, .featured-boat-trait .icon { color: #4b7978; }
.featured-pod > .outline-button { color: #195f68; }

/* Destination cards, boat collection, refits, and the mischievous gear shop. */
.track-card:hover, .track-card.selected { box-shadow: 0 0 0 2px #eb9a6b70, var(--vacation-shadow); }
.track-card.selected { filter: none; }
.track-art::before { background: linear-gradient(125deg, #a8e9dd, #258caa); opacity: .24; }
.track-image-overlay { background: linear-gradient(0deg, #b6efde25, transparent 48%); }
.track-number { color: #176c7c; background: #fff7dff2; box-shadow: 0 2px 4px #19657525; }
.difficulty { color: #266853; background: #dcf1d8; border-color: #90b99c; }
.difficulty.pro { color: #145c85; background: #d8eff6; }
.difficulty.elite { color: #a95043; background: #ffe6ce; }
.track-body h3 { color: #1d708b; }
.track-body p, .track-meta { color: #4e7c7f; }
.track-meta { border-color: #88b8ad70; }
.track-meta > span:last-child { color: #af6343; }
.track-open { background: #dcf1e2; border-color: #75b1a7; color: #186977; }
.track-card.selected .track-open { background: #f7b593; color: #6d493a; border-color: #d38c6b; }
.selected-track { color: #195c66; background: #fff5def2; }
.circuit-toolbar { color: #437878; background: #fcf5dca3; border-color: #91c0b3; }
.circuit-toolbar > span { color: #437878; }
.circuit-toolbar strong { color: #166d83; }
.garage-toolbar { color: #4e7c7a; border-color: #76b3ab70; }
.garage-toolbar > span:last-child { color: #4e7c7a; }
.fleet-filters > button { color: #245f64; }
.fleet-filters > button.active { color: #095565; filter: none; box-shadow: 0 0 0 1px #ec9676; }
.collection-count { color: #197f8d; }
.collection-count small { color: #578078; }
.garage-card.selected { box-shadow: 0 0 0 2px #eb9a6b70, var(--vacation-shadow); }
.garage-art { background: radial-gradient(ellipse at 50% 58%, #9be0d448, transparent 67%); }
.garage-card > p, .boat-characteristics > p { color: #507978; }
.mini-tag, .mini-tag.orange-tag { color: #277875; background: #e3f2dc; border-color: #99bfa7; }
.mini-tag.orange-tag { color: #a35944; background: #ffe5cc; border-color: #e5b18b; }
.boat-characteristics { border-color: #87b9ad73; }
.boat-characteristics > span { color: #b05b45; }
.shop-item-title h3 { color: #1c7086; }
.shop-item-title > span { color: #a66042; }
.shop-card-details p, .shop-side-card > p, .pit-strip p { color: #507878; }
.shop-icon, .pit-icon { background: #ddf0df; border-color: #8ebdad; color: #2f7e77; }
.upgrade-levels > i { background: #c9ded0; }
.upgrade-levels > i.filled { background: #3ea899; }
.shop-pod-tag { color: #327b79; background: #e4f2e2d9; border-color: #84b7aa; }
.loadout-list { border-color: #85b4a66e; }
.loadout-list > div { color: #4c7b74; }
.loadout-list strong { color: #a15a41; }
.dirty-illustration { color: #c96b54; }

/* Boarding, help, results, and course records. */
.modal-backdrop, .race-pause-overlay, .menu-backdrop { background: #075d7280; }
.stage-banner-overlay { background: linear-gradient(90deg, #fff5e2ed, #eef8e2ad 52%, #e8f7e029); }
.stage-banner-copy h2, .stage-intro h3 { color: #176b83; text-shadow: 0 1px #fff7e7; }
.stage-banner-copy > .eyebrow { color: #b75d46; }
.stage-banner-copy > span:last-child { color: #376f75; }
.stage-banner-copy i { color: #579593; }
.stage-prize {
  color: #a45d3e; text-shadow: 0 1px #fff5df;
  padding: 7px 9px; border-radius: 6px; background: #fff5deed;
  box-shadow: 0 3px 8px #1c738422;
}
.stage-prize small { color: #366f75; }
.stage-conditions { color: #4a7d76; border-color: #91baaa70; }
.stage-conditions .icon { color: #2f8e90; }
.course-brief { color: #477772; background: #e6f1dfb0; border-color: #9bbdac; }
.course-brief strong { color: #267c85; }
.course-brief p, .course-brief > span { color: #517a76; }
.stage-tabs, .stage-footer { border-color: #8ebaaa70; }
.stage-tabs > button.active { color: #125962; filter: none; box-shadow: 0 0 0 1px #ed9c78; }
.stage-tabs button > span { color: #1b786e; background-color: #fbf2d9; }
.stage-tabs button > .game-icon { background-color: transparent; }
.stage-current-pod strong { color: #216f83; }
.stage-current-pod > span, .stage-control-hint { color: #4e7d78; }
.help-modal, .result-modal, .race-pause-card { color: var(--ink); }
.help-modal h2, .result-modal h2, .race-pause-card h2, .empty-records h2 { color: #196e84; }
.help-modal > p, .race-pause-card p, .empty-records p { color: #4d7877; }
.help-modal > .modal-close, .modal-close { color: #185f68; background: transparent; }
.race-pause-card .eyebrow { color: #b95d47; }
.control-grid, .touch-help { background: #e5f1dfbc; border-color: #98baaa; }
.control-grid span, .touch-help p { color: #4d7875; }
.touch-help > strong { color: #247b80; }
.control-grid kbd, kbd { background: #fdf5de; border-color: #8eb2a6; color: #2d7478; box-shadow: 0 2px #c7d9c7; }
.help-pickups { color: #367b7b; }
.result-position > span, .result-stats > span { color: #587d73; }
.result-stats strong, .record-stats article > strong { color: #247b8a; }
.result-trophy { color: #ce8b42; background: #fff2cb; border-color: #dcb78c; }
.empty-records > .icon { color: #338b8b; }
.record-stats article > .icon { color: #bb7845; }
.record-stats article > span { color: #557f77; }
.records-table-head { background: #d8ecddbc; color: #3d7976; }
.records-table > button { background: transparent; color: #1b7084; border-color: #8db7a867; }
.records-table > button:hover { background: #dbf0de79; }
.records-table > button small { color: #58847d; }
#toast { color: #215f68; background: #fff7e2f5; border-color: #6ba9a5; box-shadow: 0 8px 26px #175d6b38; }
#toast .icon { color: #2e9077; }

/* Live regattas, skipper accounts, invite rooms, and every scoreboard period. */
.online-panel h2, .online-boat-showcase strong { color: #206e86; }
.online-panel p, .online-panel form small, .online-panel label { color: #4c7979; }
.online-panel input, .online-panel select {
  color: #245e68; background: #fff9e8; border-color: #91b8ac;
  box-shadow: inset 0 2px 4px #6f877615;
}
.online-panel input::placeholder { color: #72908a; opacity: 1; }
.online-panel option { color: #245e68; background: #fff9e8; }
.online-panel input:focus, .online-panel select:focus { outline-color: #218b96; }
.online-panel button:disabled { opacity: .55; cursor: default; }
.online-connection { color: #39797b; }
.online-connection i { background: #dd9163; }
.online-connection.connected i { background: #359b72; }
.online-boat-showcase { background: radial-gradient(ellipse, #8edcd448, transparent 65%); }
.online-boat-showcase > span:last-child { color: #60887d; }
.online-fairness, .online-login, .room-roster, .room-roster > div,
.invite-form, .leaderboard-toolbar { border-color: #8eb7a973; }
.online-login summary { color: #1c7986; }
.skipper-rating strong { color: #227d8d; }
.skipper-rating span, .skipper-stats span { color: #5d837b; }
.skipper-stats b { color: #245f70; }
.name-protection { color: #a2663e; }
.name-protection.protected { color: #2b8668; }
.online-notice { color: #92593e; background: #fff0d5e6; border-color: #e79769; }
.roster-avatar { color: #247279; background: #ddf2df; border-color: #89b7a7; }
.room-roster strong { color: #1f6574; }
.room-roster small, .room-roster b { color: #61837c; }
.room-roster b.ready { color: #268161; }
.online-how b, .queue-status strong { color: #227b84; }
.leaderboard-toolbar button { color: #4d7e7d; }
.leaderboard-toolbar button.active { color: #1d7181; background: #dcefdcc9; border-color: #72afa5; }
.leaderboard-table th { color: #5d8178; }
.leaderboard-table td { color: #326b75; border-color: #8bb5a873; }
.leaderboard-table td:first-child, .leaderboard-table td:nth-child(3) { color: #b56445; }
.leaderboard-table td span { color: #3a8c76; border-color: #7bad98; background: #e8f2d9; }
.leaderboard-table .is-you { background: #bde4d45c; }
.online-empty > span { color: #387e81; }
.online-account-link { color: #5c827b; }
.online-account-link strong { color: #216a7a; }
.online-results td { color: #366f77; border-color: #9cbcac; }
.online-results td:last-child { color: #b36746; }
.online-results .you { background: #d9edda8a; }
.online-result-note { color: #4e7d78; }

/* Cream instrument cards keep the water clear and the touch targets intact. */
body.racing, .race-screen { background: #268fac; }
.race-top-hud, .race-bottom-hud { color: var(--ink); text-shadow: none; filter: none; }
.race-brand { color: #216e85; }
.race-track-name { color: #fff9e9; text-shadow: 0 2px 3px #0f6787b3; }
.race-track-name > span { color: #e6fff2; }
.race-progress > span, .race-speed > span, .race-meter-group > div > span,
.race-meter-group small, .race-gear > span, .race-gear > small { color: #477b76; }
.race-progress strong, .race-speed > strong, .race-gear > strong { color: #1b7184; }
.race-progress > span:first-child strong { color: #b96143; }
.race-progress strong > small { color: #6c9486; }
.race-speed > small, .race-gear #hud-gate, .race-gear > #hud-sail { color: #287f7a; }

/* Reserve the instrument, digits, and drive status independently so live
   readings cannot move the surrounding cards or resize the ceramic frame. */
.race-screen .race-speed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) 10px;
  align-items: end;
  gap: 4px 8px;
  flex: 0 0 224px;
  width: 224px;
  min-width: 224px;
  height: 112px;
  padding: 5px 12px;
}
.race-screen .race-speed > strong {
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: 3ch;
  height: .9em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 68px;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: .9;
  letter-spacing: 0;
  text-align: right;
  white-space: nowrap;
}
.race-screen .race-speed > span { grid-column: 2; grid-row: 1; }
.race-screen .race-speed > small {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  height: 10px;
  margin: 0;
  font-size: 8px;
  line-height: 10px;
  text-align: center;
  white-space: nowrap;
}
:where(.touch-device) .race-screen .race-bottom-hud {
  grid-template-columns: 64px minmax(64px, .85fr) minmax(0, 1.1fr);
}
:where(.touch-device) .race-screen .race-speed {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 23px 10px 19px;
  align-items: center;
  justify-items: center;
  align-content: center;
  gap: 3px;
  flex-basis: 64px;
  width: 64px;
  min-width: 64px;
  height: var(--touch-hud-height);
  padding: 5px 4px;
}
:where(.touch-device) .race-screen .race-speed > strong { font-size: 24px; }
:where(.touch-device) .race-screen .race-speed > span { grid-column: 1; grid-row: 2; margin: 0; }
:where(.touch-device) .race-screen .race-speed > small {
  grid-column: 1;
  grid-row: 3;
  height: 19px;
  font-size: 7px;
  line-height: 9.5px;
  letter-spacing: .1px;
  white-space: normal;
}
@media (pointer: coarse), (any-pointer: coarse), (max-width: 900px), (max-width: 1000px) and (max-height: 500px) {
  .race-screen .race-bottom-hud { grid-template-columns: 64px minmax(64px, .85fr) minmax(0, 1.1fr); }
  .race-screen .race-speed {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 23px 10px 19px;
    align-items: center;
    justify-items: center;
    align-content: center;
    gap: 3px;
    flex-basis: 64px;
    width: 64px;
    min-width: 64px;
    height: var(--touch-hud-height);
    padding: 5px 4px;
  }
  .race-screen .race-speed > strong { font-size: 24px; }
  .race-screen .race-speed > span { grid-column: 1; grid-row: 2; margin: 0; }
  .race-screen .race-speed > small {
    grid-column: 1;
    grid-row: 3;
    height: 19px;
    font-size: 7px;
    line-height: 9.5px;
    letter-spacing: .1px;
    white-space: normal;
  }
}
.race-wind { color: #226f7a; }
.race-wind > i { border-color: #76afa1; background: #e1f2dd; }
.race-wind-readout > small { color: #588078; }
.race-wind.is-gusting { filter: none; }
.race-wind.is-gusting .race-wind-readout > small { color: #b95843; }
.race-meter { background: #c1dacd; box-shadow: 0 0 0 1px #8db2a57a; }
.race-meter > i { background: #ef9771; }
.race-meter.health > i { background: #51af8b; }
.race-meter-group .icon { color: #b97842; }
.race-gear kbd, .race-key-hint kbd { color: #327377; background: #fff8df; border-color: #7da99d; }
.race-key-hint, .race-key-hint small { color: #fff8df; text-shadow: 0 1px 3px #0b5a7ca3; }
.touch-controls .touch-gear-large { color: #195b65; box-shadow: 0 5px 15px #0d67814d; }
.touch-gear-large > b { background: #fff2cf; border-color: #df9a70; color: #a45440; }
.touch-controls .touch-gear-large:active,
.touch-controls .touch-gear-large[aria-pressed='true'] { filter: brightness(1.08); box-shadow: 0 0 20px #f69e7380; }
.touch-hint { color: #fff8df; text-shadow: 0 1px 3px #095476, 0 1px 7px #095476; }
.touch-hint > span { color: #eaffee; }
.drag-helm { --helm-color: #d3ffec; }
.helm-ring { background: radial-gradient(circle, #ddfff00a 35%, #dcfff01f 72%, #b6efd633); box-shadow: 0 0 0 5px #126d7c26, inset 0 0 25px #e5ffed26; }
.helm-guide { background: linear-gradient(90deg, #d3ffec33, var(--helm-color)); }
.helm-stick { background: #93ded1b3; box-shadow: inset 0 0 0 5px #fff7df40, 0 2px 12px #13546b55; }
.helm-status { color: #21616b; background: #fff6dfee; border-color: #8cbeab; }
.drag-helm.boosting { --helm-color: #ffb693; }
.drag-helm.boosting .helm-ring { box-shadow: 0 0 17px #ffaf7a55, inset 0 0 28px #ffd1aa30; }
.drag-helm.boosting .helm-stick { background: #f29770d9; }
.drag-helm.boosting .helm-status { border-color: #e59870; color: #a65640; }

/* Small print stays dark enough on the warm paper and sea-glass fills. */
.pod-title > span, .pod-title > span i, .pod-serial,
.stat-row > span, .stat-row small, .collection-count small,
.credit-balance > span, .hero-track small, .hero-pickups,
.course-brief > span, .result-position > span, .result-stats > span,
.record-stats article > span, .online-boat-showcase > span:last-child,
.skipper-rating span, .skipper-stats span, .room-roster small,
.room-roster b, .leaderboard-table th, .race-progress strong > small,
.race-progress > span, .race-speed > span, .race-meter-group > div > span,
.race-meter-group small, .race-gear > span, .race-gear > small,
.race-wind-readout > small { color: #4c7471; }
.room-roster b.ready { color: #21785c; }
.race-wind.is-gusting .race-wind-readout > small { color: #ad4b39; }

@media (max-width: 950px), (max-width: 1000px) and (max-height: 500px) {
  body { background-position: 58% center; }
  .sidebar.mobile-open { box-shadow: 8px 0 25px #15697b40; }
  .stage-footer { background: #fff6e2f2; }
}
.touch-device .stage-footer { background: #fff6e2f2; }
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
