/* Dominoes — Limestone's warm paper (as Farkle and Yahtzee), with a deep green domino table.
   Chrome 76: flex rows space with margins (no flex gap), no inset/min()/clamp(). */
:root {
  color-scheme: light;
  --bg: #f5f0e6;
  --paper: #fffdf8;
  --ink: #213c36;
  --muted: #788079;
  --line: #dfdfd3;
  --orange: #edb271;
  --felt-line: #c0daca26;
  --cream: #fff9ea;
  --soft: #b5cdbd;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; color: inherit; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid #c17c32; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Page chrome: the shared strategy header, title bar and stats */
.game-shell { width: calc(100% - 64px); max-width: 1160px; margin: 0 auto; padding-bottom: 24px; }
.site-header { min-height: 78px; display: flex; align-items: center; border-bottom: 1px solid #213c361c; }
.site-header > * + * { margin-left: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; font: 700 18px var(--display); letter-spacing: -.5px; }
.brand img { mix-blend-mode: multiply; margin-right: 10px; }
.brand-light { font-weight: 500; color: #70776e; }
.nav-divider { width: 1px; height: 20px; background: #213c3629; }
.category-link, .back-link { text-decoration: none; font-size: 12px; font-weight: 500; color: #656f65; }
.back-link { margin-left: auto !important; }
.back-link span { margin-left: 8px; font-size: 17px; }
.category-link:hover, .back-link:hover { color: #193f33; }
.page-heading { display: flex; justify-content: space-between; align-items: center; padding: 29px 0 28px; }
.eyebrow { margin: 0; font: 500 9px/1.5 var(--mono); letter-spacing: 1.4px; }
.page-heading .eyebrow { color: #707b6d; }
h1 { margin: 1px 0 2px; font: 800 54px/1.07 var(--display); letter-spacing: -2.6px; }
.title-dot { color: #be7947; }
.subtitle { margin: 8px 0 0; font-size: 13px; color: #73766b; }
.stats { display: flex; align-items: center; margin-left: 20px; }
.stats > div { display: flex; align-items: center; }
.stats > div + div { border-left: 1px solid var(--line); padding-left: 26px; margin-left: 26px; }
.stats .l { display: block; font: 400 8px var(--mono); letter-spacing: 1px; color: #758075; margin-bottom: 6px; }
.stats .v { display: block; font: 600 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.stat-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-right: 12px; border: 1px solid #bcbfac; border-radius: 50%; font-size: 22px; color: #708374; }
.record-icon { border-color: transparent; font-size: 34px; }

/* Toolbar above the table */
.console { display: block; }
.match-toolbar { display: flex; justify-content: space-between; align-items: center; min-height: 41px; margin-bottom: 16px; }
.table-label { display: flex; align-items: baseline; min-width: 0; }
.table-label .eyebrow { color: #7a8176; margin-right: 14px; white-space: nowrap; }
.table-name { font-size: 12px; color: #6b7468; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-name b { font: 700 15px var(--display); color: var(--ink); letter-spacing: -.2px; }
#round-label:not(:empty) { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.toolbar-actions { display: flex; align-items: center; flex-shrink: 0; }
.toolbar-actions > * + * { margin-left: 18px; }
.icon-button { display: grid; place-items: center; border: none; background: none; padding: 10px; width: 40px; height: 40px; }
.icon-button svg { width: 20px; height: 20px; }
.sound-slash, .muted .sound-waves { display: none; }
.muted .sound-slash { display: block; }
.text-button { border: none; background: none; padding: 10px 0; font-size: 11px; font-weight: 600; white-space: nowrap; }
.text-button span { font-size: 17px; vertical-align: -1px; margin-right: 4px; }
.text-button:hover:not(:disabled), .icon-button:hover { color: #a7622e; }

/* The felt: lobby and table share it */
.stage { position: relative; }
.felt { position: relative; overflow: hidden; border: 1px solid #113c32; border-radius: 19px; background: radial-gradient(ellipse at 45% 35%, #226353 0%, #194c40 60%, #153f36 100%); color: var(--cream); box-shadow: inset 0 1px #ffffff26, 0 5px 0 #13382f, 0 14px 26px -15px #193e3766; }
.felt::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none; opacity: .14; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.65' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); }
.felt > * { position: relative; z-index: 1; }

/* Lobby */
.lobby { display: grid; grid-template-columns: 1fr 1.05fr; grid-column-gap: 48px; align-items: center; padding: 40px 44px 36px; }
.lobby .eyebrow { color: var(--soft); }
.intro h2 { margin: 12px 0 10px; font: 800 46px/1.05 var(--display); letter-spacing: -2px; color: var(--cream); }
.intro-copy { margin: 0; font-size: 14px; color: #c9dccf; max-width: 340px; }
.hero-tiles { height: 170px; display: flex; align-items: center; padding-left: 26px; margin-top: 18px; }
.hero-tiles .tile { width: 62px; height: 120px; margin-right: 16px; transform: rotate(-16deg); box-shadow: 0 5px 0 #b5ad92, 8px 18px 26px #0007; }
.hero-tiles .tile:nth-child(2) { transform: translateY(-10px) rotate(10deg); }
.hero-tiles .tile:nth-child(3) { transform: translateY(8px) rotate(26deg); }
.mode-card { display: flex; align-items: center; width: 100%; text-align: left; padding: 14px 16px; margin: 0 0 10px; border: 1px solid #c0daca30; border-radius: 12px; background: #0a2b2233; color: var(--cream); transition: background .18s, border-color .18s; }
.mode-card:hover { border-color: #eeba7e88; }
.mode-card.selected { border-color: #eeba7e; background: #eeba7e17; box-shadow: inset 0 0 0 1px #eeba7e55; }
.mode-symbol { flex-shrink: 0; margin-right: 16px; width: 54px; display: flex; justify-content: center; }
.mode-symbol .tile { width: 26px; height: 50px; padding: 2px; border-radius: 4px; box-shadow: 0 2px 0 #a7a28b; }
.mode-text { min-width: 0; }
.mode-tag { display: block; font: 500 7.5px var(--mono); letter-spacing: 1.2px; color: #e8ba7a; }
.mode-card strong { display: block; margin: 2px 0 1px; font: 700 20px/1.2 var(--display); letter-spacing: -.4px; }
.mode-copy { display: block; font-size: 11px; color: var(--soft); }
.mode-arrow { margin-left: auto; padding-left: 10px; font-size: 18px; color: #e8ba7a; opacity: .5; }
.mode-card.selected .mode-arrow { opacity: 1; }
.settings { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 14px; font-size: 12px; color: var(--soft); }
.settings select { min-height: 40px; max-width: 65%; border: 1px solid #d7dacf; border-radius: 8px; padding: 8px 12px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 600; cursor: pointer; }
.primary { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 20px; border: 1px solid transparent; border-radius: 9px; font: 700 15px var(--display); color: #2f3827; background: var(--orange); box-shadow: inset 0 1px #ffdbad80, 0 3px 0 #ab7945; transition: background .18s, transform .18s; }
.primary span { font-size: 19px; }
.primary:hover:not(:disabled) { background: #fac385; transform: translateY(-1px); }
.table-note { display: flex; justify-content: space-between; margin: 12px 0 0; font-size: 10px; color: var(--soft); }
.table-note span + span { margin-left: 10px; text-align: right; }

/* Table: scoreboard band, board, turn panel, hand */
.players { display: grid; grid-template-columns: 1fr 1fr; grid-column-gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--felt-line); background: #0a2b222b; }
.players.four { grid-template-columns: repeat(4, 1fr); }
.player { display: flex; align-items: center; min-width: 0; padding: 8px 12px; border: 1px solid transparent; border-radius: 10px; }
.player.active { border-color: #eeba7e66; background: #eeba7e0f; }
.player-marker { flex-shrink: 0; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: #a2b5a8; }
.player.active .player-marker { background: #eeba7e; box-shadow: 0 0 0 3px #eeba7e22; }
.player-info { min-width: 0; }
.player-name { display: block; font-size: 12px; font-weight: 600; color: #e3ecdf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta { display: block; font: 400 8px var(--mono); letter-spacing: .6px; color: var(--soft); white-space: nowrap; }
.player-score { margin-left: auto; padding-left: 10px; font: 600 28px/1 var(--display); letter-spacing: -.5px; font-variant-numeric: tabular-nums; color: var(--cream); }
.table-body { padding: 14px 28px 16px; }
.board-caption { display: flex; justify-content: space-between; font: 400 8px var(--mono); letter-spacing: 1.2px; color: var(--soft); }
.board { height: 280px; position: relative; display: flex; align-items: center; justify-content: center; padding: 10px 0; }
.board svg { width: 100%; height: 100%; overflow: visible; }
.empty-table { text-align: center; color: var(--soft); }
.empty-table strong { display: block; margin-bottom: 6px; font: 700 26px/1.15 var(--display); letter-spacing: -.6px; color: var(--cream); }
.empty-table span { font-size: 12px; }
.turn-panel { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--felt-line); padding-top: 14px; }
.turn-panel > div { min-width: 0; margin-right: 14px; }
.turn-tag { font: 500 8px var(--mono); letter-spacing: 1.3px; color: #e8ba7a; }
#status { margin: 3px 0 0; min-height: 20px; font-size: 13px; color: #e8efe6; }
.draw-button { flex-shrink: 0; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; font: 700 13px var(--display); color: #2f3827; background: var(--orange); box-shadow: inset 0 1px #ffdbad80, 0 3px 0 #ab7945; }
.draw-button:disabled { background: #ffffff14; color: #d1e0d3; box-shadow: none; border-color: #c0daca33; opacity: .5; }
.draw-button:hover:not(:disabled) { background: #fac385; }
.destinations { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.destinations:empty { display: none; }
.destination { margin: 4px; padding: 8px 15px; border: 1px solid #eeba7e88; border-radius: 8px; background: #eeba7e1a; color: #ffe2b8; font-size: 12px; font-weight: 600; }
.destination:hover { background: #eeba7e33; }
.destination b { margin-left: 8px; color: #fff; }
.rack-area { padding: 13px 24px 12px; border-top: 1px solid var(--felt-line); background: #0a2b2240; }
.rack-heading { display: flex; align-items: center; justify-content: space-between; font: 500 8px var(--mono); letter-spacing: 1.3px; color: var(--soft); }
.rack-heading b { margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: #ffffff16; color: var(--cream); letter-spacing: 0; }
.rack-tools button { padding: 6px 11px; border: 1px solid #c0daca40; border-radius: 7px; background: transparent; color: #d1e0d3; font: 600 10px 'Inter', system-ui, sans-serif; letter-spacing: 0; }
.rack-tools button + button { margin-left: 6px; }
.rack-tools button:hover:not(:disabled) { border-color: #eeba7e; color: #ffe2b8; }
.rack { display: flex; justify-content: center; flex-wrap: wrap; min-height: 107px; padding: 12px 0 6px; }
.rack > .tile { margin: 4px; }
.rack-footer { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10px; color: #9fb8a7; }
.rack-footer span + span { margin-left: 10px; text-align: right; }

/* Tiles */
.tile { width: 43px; height: 83px; display: inline-flex; flex-direction: column; padding: 3px; border: 1px solid #fffa; border-radius: 6px; background: linear-gradient(115deg, #fffaf0, #dedac5); color: #21382f; box-shadow: 0 4px 0 #a7a28b, 0 6px 8px #0005; position: relative; flex-shrink: 0; transition: transform .15s, box-shadow .15s, opacity .15s; }
.tile svg { width: 100%; height: 100%; display: block; }
.tile .half { height: 50%; width: 100%; position: relative; display: block; }
.tile .half:first-child { border-bottom: 1px solid #9d9a8566; }
.tile .half:first-child:after { content: ''; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #9a8a58; bottom: -2px; left: calc(50% - 1px); }
.rack .tile { opacity: .47; }
.rack .tile.playable { opacity: 1; box-shadow: 0 4px 0 #b8b293, 0 0 0 1px #f1d28e80, 0 6px 8px #0006; }
.rack .tile:hover:not(:disabled), .rack .tile.selected { transform: translateY(-7px); box-shadow: 0 4px 0 #b8b293, 0 0 0 3px var(--orange), 0 10px 14px #0005; }
.rack .tile.hinted { box-shadow: 0 4px 0 #b8b293, 0 0 0 3px #a6e5c5, 0 0 22px #a6e5c566; }
.board-tile { animation: set-tile .25s ease-out; }
@keyframes set-tile { from { opacity: .5; } to { opacity: 1; } }

/* Mexican Train lines */
.train-board { width: 100%; display: flex; flex-direction: column; align-self: stretch; }
.train-line { display: flex; align-items: center; min-height: 42px; border: 1px solid #ffffff14; border-radius: 8px; padding: 3px 8px; background: #092c2026; }
.train-line + .train-line { margin-top: 5px; }
.train-line.required { border-color: #eeba7e; }
.train-name { width: 83px; flex-shrink: 0; margin-right: 9px; font-size: 11px; font-weight: 600; color: #e3ecdf; }
.train-name small { display: block; font: 400 7.5px var(--mono); letter-spacing: .6px; color: var(--soft); }
.train-track { display: flex; align-items: center; overflow: auto; flex: 1; min-height: 36px; padding: 2px 2px 5px; scrollbar-width: thin; }
.train-track .tile { height: 29px; width: 54px; flex-direction: row; margin-right: 3px; border-radius: 3px; padding: 1px; box-shadow: 0 2px 0 #a7a28b; }
.train-track .half { width: 50%; height: 100%; }
.train-track .half:first-child { border-bottom: 0; border-right: 1px solid #aaa; }
.train-track .half:first-child:after { display: none; }
.train-track .tile.double { outline: 1px solid #ebcc87; outline-offset: 1px; }
.train-start { font-size: 10px; color: #9fb8a7; white-space: nowrap; }
.train-end { min-width: 29px; height: 29px; margin-left: 9px; border-radius: 50%; border: 1px solid #a7bc8d88; display: grid; place-items: center; font: 600 13px var(--display); color: #f2dfae; }

/* Below the table */
.below-table { display: flex; align-items: center; min-height: 30px; margin-top: 14px; padding: 0 4px; font-size: 11px; color: #6f786c; }
.status-dot { flex-shrink: 0; width: 5px; height: 5px; margin-right: 10px; border-radius: 50%; background: #c58c55; }
#stock-count { margin-left: auto; padding-left: 14px; white-space: nowrap; }
.how-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-column-gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; margin: 24px 0 40px; }
.how-strip > div { display: flex; align-items: center; }
.how-strip > div > span { margin-right: 12px; font: 400 11px var(--mono); color: #ab9b7b; }
.how-strip p { margin: 0; font-size: 10px; color: #7e8173; }
.how-strip b { display: block; color: #53644f; font-size: 11px; font-weight: 600; margin-bottom: 3px; }
.game-overview { max-width: 760px; margin: 0 auto; color: #707768; font-size: 13px; line-height: 1.85; }
.game-overview h2, .game-overview h3 { color: #2f4a3b; font-family: var(--display); line-height: 1.25; }
.game-overview h2 { font-size: 28px; margin: 0 0 16px; letter-spacing: -.6px; }
.game-overview h3 { font-size: 19px; margin: 28px 0 12px; }
.game-overview p { margin: 0 0 13px; }
.game-overview ul { padding-left: 20px; }
.game-overview li { margin: 7px 0; }
.score-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 8px; }
.score-table th, .score-table td { padding: 10px 13px; border-bottom: 1px solid var(--line); text-align: left; }
.score-table th { font: 500 9px var(--mono); text-transform: uppercase; background: #e7eadf; }
.score-table td:last-child, .score-table th:last-child { text-align: right; }
.related-games-list { display: flex; flex-wrap: wrap; list-style: none; padding: 0 !important; margin: 0 -4px; }
.related-games-list li { margin: 4px !important; }
.related-games-list a { display: block; padding: 7px 12px; border: 1px solid #d0d8c8; border-radius: 6px; text-decoration: none; font-size: 11px; }
.related-games-list a:hover { border-color: #9fae96; color: #193f33; }
.feedback-link { display: block; width: -webkit-max-content; width: max-content; margin: 0 auto 30px; color: #73816e; font-size: 11px; text-decoration: none; }
.feedback-link:hover { color: #254b39; }

/* Dialogs: the cream result card */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: #0b3026b8; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog { position: relative; width: 440px; max-width: 100%; max-height: 100%; overflow: auto; border: 1px solid #e1dfcc; border-radius: 17px; padding: 30px 30px 26px; background: #fbf7eb; color: #274936; box-shadow: 0 22px 60px #05251d55; }
.dialog:focus { outline: none; }
.close { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 24px; line-height: 1; padding: 6px 10px; color: #8a8b72; }
.close:hover { color: #274936; }
.dialog .eyebrow { color: #8a8b72; font-size: 8px; }
.dialog h2 { font: 700 32px/1.1 var(--display); letter-spacing: -1px; margin: 8px 0 12px; }
.dialog p, .dialog li { font-size: 13px; color: #5f6b60; line-height: 1.7; }
.dialog ol { padding-left: 20px; margin: 0 0 12px; }
.dialog li { margin: 5px 0; }
.dialog table { border-collapse: collapse; width: 100%; font-size: 12px; margin: 14px 0 18px; border-top: 1px solid #dbdfce; }
.dialog td, .dialog th { padding: 9px 4px; text-align: left; border-bottom: 1px solid #e4e5d8; }
.dialog th { font: 500 8px var(--mono); letter-spacing: 1px; color: #7c836f; }
.dialog td:last-child { text-align: right; font: 600 22px/1 var(--display); color: #325443; }
.dialog th:last-child { text-align: right; }
.dialog td.winner { font-weight: 700; }
.dialog .primary { justify-content: center; margin-top: 6px; min-height: 48px; font-size: 14px; }
.dialog .primary span { margin-left: 12px; }
.secondary { display: block; width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid #d7dacf; border-radius: 9px; background: transparent; color: #274936; font: 600 13px 'Inter', system-ui, sans-serif; }
.secondary:hover { border-color: #9fae96; background: #fffdf8; }
.rules-tabs { display: flex; margin: 4px 0 16px; padding: 3px; border: 1px solid #dfdfd3; border-radius: 9px; background: #f1ede1; }
.rules-tabs button { flex: 1; min-height: 34px; padding: 6px 4px; border: 0; border-radius: 6px; background: none; font-size: 11px; font-weight: 600; color: #6d7768; }
.rules-tabs button + button { margin-left: 3px; }
.rules-tabs button.active { background: #213c36; color: #fff9ea; }
.rules-source { font-size: 11px !important; }
.rules-source a { color: #a7622e; }
.result-heading { text-align: center; }
.result-emblem { display: block; margin-bottom: 12px; font-size: 34px; line-height: 1; color: #b28045; }
.result-heading h2 { margin-bottom: 6px; }
.result-heading p { margin: 0; font-size: 12px; color: #7a826e; }

/* Short desktop windows: tighten the chrome above the table */
@media (min-width: 901px) and (max-height: 900px) {
  .site-header { min-height: 58px; }
  .page-heading { padding: 16px 0 18px; }
  h1 { font-size: 46px; }
  .match-toolbar { margin-bottom: 12px; }
  .board { height: 240px; }
}
@media (max-width: 1050px) {
  .game-shell { width: calc(100% - 40px); }
  .lobby { grid-column-gap: 30px; padding: 32px 30px; }
  .intro h2 { font-size: 38px; }
}
@media (max-width: 900px) {
  .game-shell { width: calc(100% - 32px); max-width: 720px; }
  .stats > div + div { padding-left: 18px; margin-left: 18px; }
  .stat-icon { display: none; }
  .page-heading { padding: 23px 0; }
  .lobby { grid-template-columns: 1fr; padding: 26px 24px 24px; }
  .intro { position: relative; margin-bottom: 18px; }
  .intro-copy { max-width: 60%; }
  .hero-tiles { position: absolute; right: 0; top: 0; height: 150px; margin: 0; padding: 0; transform: scale(.75); transform-origin: right top; }
  .players { padding: 12px 14px; }
  .player { padding: 6px 8px; }
  .player-score { font-size: 24px; }
  .table-body { padding: 12px 18px 14px; }
  .board { height: 260px; }
  .rack-area { padding: 12px 16px 10px; }
  .how-strip { margin-top: 23px; grid-column-gap: 14px; }
  .how-strip > div { align-items: flex-start; }
}
@media (max-width: 540px) {
  .game-shell { width: calc(100% - 24px); }
  .site-header { min-height: 59px; }
  .site-header > * + * { margin-left: 14px; }
  .brand { font-size: 15px; }
  .brand img { width: 24px; height: 24px; margin-right: 7px; }
  .nav-divider, .category-link { display: none; }
  .back-link { font-size: 10px; }
  .page-heading { padding: 17px 2px 16px; align-items: flex-start; }
  .page-heading .eyebrow { font-size: 7px; letter-spacing: 1px; }
  h1 { font-size: 40px; letter-spacing: -2px; margin-top: 4px; }
  .subtitle { font-size: 10px; max-width: 185px; margin-top: 6px; line-height: 1.6; }
  .stats { padding-top: 8px; margin-left: 10px; }
  .stats > div + div { padding-left: 12px; margin-left: 12px; }
  .stats .l { font-size: 6px; letter-spacing: .6px; margin-bottom: 5px; }
  .stats .v { font-size: 20px; }
  .match-toolbar { margin-bottom: 10px; min-height: 36px; }
  .table-label { flex-direction: column; align-items: flex-start; }
  .table-label .eyebrow { font-size: 7px; margin: 0 0 1px; }
  .table-name { font-size: 10px; }
  .table-name b { font-size: 13px; }
  #round-label:not(:empty) { margin-left: 7px; padding-left: 7px; }
  .toolbar-actions > * + * { margin-left: 12px; }
  .icon-button { width: 34px; height: 36px; padding: 8px; }
  .text-button { font-size: 10px; }
  .felt { border-radius: 14px; }
  .lobby { padding: 20px 16px 18px; }
  .intro { margin-bottom: 14px; }
  .intro h2 { font-size: 30px; letter-spacing: -1.2px; margin-top: 8px; }
  .intro-copy { font-size: 12px; max-width: 64%; }
  .hero-tiles { transform: scale(.48); right: -6px; top: -4px; }
  .lobby .eyebrow { font-size: 7px; }
  .mode-card { padding: 11px 12px; margin-bottom: 8px; }
  .mode-symbol { width: 34px; margin-right: 12px; }
  .mode-symbol .tile { width: 22px; height: 42px; }
  .mode-card strong { font-size: 18px; }
  .mode-tag { font-size: 6.5px; letter-spacing: .8px; }
  .mode-copy { font-size: 10px; }
  .settings { margin: 12px 0 10px; }
  .primary { min-height: 48px; font-size: 14px; }
  .table-note { font-size: 9px; }
  .players { padding: 8px 8px; grid-column-gap: 6px; }
  .player { padding: 5px 6px; }
  .player-marker { margin-right: 6px; }
  .player-name { font-size: 10px; }
  .player-meta { font-size: 7px; }
  .player-score { font-size: 21px; padding-left: 6px; }
  .players.four .player { display: block; text-align: center; padding: 5px 2px; }
  .players.four .player-marker { display: inline-block; vertical-align: middle; margin: 0 0 2px; }
  .players.four .player-score { display: block; padding: 3px 0 0; }
  .table-body { padding: 10px 12px 10px; }
  .board-caption { font-size: 6.5px; letter-spacing: .8px; }
  .board { height: 210px; padding: 8px 0; }
  .turn-panel { padding-top: 10px; }
  .turn-tag { font-size: 7px; }
  #status { font-size: 11px; }
  .draw-button { min-height: 40px; padding: 0 12px; font-size: 11px; }
  .destination { font-size: 10px; padding: 8px 10px; margin: 3px; }
  .rack-area { padding: 9px 10px; }
  .rack { min-height: 90px; padding-top: 10px; }
  .rack > .tile { margin: 3px; }
  .rack .tile { width: 34px; height: 66px; }
  .rack-footer { font-size: 9px; margin-top: 2px; }
  .train-name { width: 52px; margin-right: 5px; font-size: 9px; }
  .train-name small { font-size: 6.5px; }
  .train-line { padding: 2px 5px; min-height: 33px; }
  .train-line + .train-line { margin-top: 4px; }
  .train-track { min-height: 30px; }
  .train-track .tile { width: 45px; height: 25px; }
  .train-end { min-width: 25px; height: 25px; margin-left: 5px; font-size: 12px; }
  .below-table { font-size: 10px; margin-top: 10px; }
  .how-strip { grid-template-columns: 1fr; grid-row-gap: 15px; padding: 21px 7px; margin-bottom: 30px; }
  .how-strip b { display: inline; margin-right: 4px; }
  .game-overview { padding: 0 7px; font-size: 12px; }
  .game-overview h2 { font-size: 24px; }
  .dialog { padding: 26px 20px 20px; }
  .dialog h2 { font-size: 27px; }
}
@media (max-width: 350px) {
  .game-shell { width: calc(100% - 16px); }
  .stats { flex-direction: column; align-items: flex-start; }
  .stats > div + div { border: 0; padding: 0; margin: 8px 0 0; }
  .stats .v { font-size: 16px; }
}
/* Phones turned sideways and other short, wide windows */
@media (max-height: 500px) and (min-width: 541px) {
  .site-header { min-height: 46px; }
  .page-heading { padding: 8px 0 10px; }
  .page-heading .eyebrow, .subtitle { display: none; }
  h1 { font-size: 30px; letter-spacing: -1.2px; }
  .stat-icon { display: none; }
  .stats .v { font-size: 18px; }
  .match-toolbar { margin-bottom: 8px; min-height: 34px; }
  .lobby { grid-template-columns: .8fr 1.2fr; grid-column-gap: 24px; padding: 16px 22px; }
  .intro { margin: 0; }
  .intro h2 { font-size: 28px; letter-spacing: -1px; }
  .intro-copy { max-width: none; font-size: 12px; }
  .hero-tiles { display: none; }
  .mode-card { padding: 8px 12px; margin-bottom: 6px; }
  .mode-symbol .tile { width: 20px; height: 38px; }
  .mode-card strong { font-size: 16px; }
  .settings { margin: 8px 0; }
  .primary { min-height: 44px; }
  .players { padding: 5px 14px; }
  .player { padding: 3px 10px; }
  .player-score { font-size: 20px; }
  .table-body { padding: 6px 18px 8px; }
  .board { height: 150px; }
  .board.is-train { height: 190px; }
  .turn-panel { padding-top: 6px; }
  .rack { min-height: 70px; padding-top: 6px; }
  .rack .tile { width: 30px; height: 58px; }
  .rack-area { padding: 7px 18px; }
  .train-line { min-height: 29px; }
  .train-track { min-height: 24px; }
  .train-track .tile { height: 22px; width: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
