@font-face {
  font-family: "Barlow Semi Condensed"; src: url("./assets/fonts/barlow-semi-condensed-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed"; src: url("./assets/fonts/barlow-semi-condensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Mono"; src: url("./assets/fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --ink: #141410;
  --orange: #ff501e;
  --panel: var(--paper);
  --muted: #555249;
  --rule: #c4bfb2;
  --soft: #eeeade;
  --focus: #5032b6;
  --display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191a1b;
  --ink: #f8f4e8;
  --orange: #ff7950;
  --panel: #242428;
  --muted: #c5c1b6;
  --rule: #565452;
  --soft: #323033;
  --focus: #c9afff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); }
h1, h2, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.shell { width: min(93.4%, 1480px); margin: 0 auto; padding-bottom: 36px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.skip { position: fixed; left: 16px; top: -90px; z-index: 10; padding: 10px 18px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: clamp(72px, 6vw, 94px); border-bottom: 3px solid; }
.brand { display: inline-flex; align-items: center; gap: clamp(8px, .85vw, 14px); font: 900 clamp(34px, 3.6vw, 56px)/1 var(--display); letter-spacing: -.015em; }
.brand img { width: clamp(46px, 4.7vw, 72px); height: auto; }
.masthead nav { display: flex; align-items: center; gap: clamp(20px, 3.1vw, 49px); }
.masthead nav a { display: inline-flex; align-items: center; gap: .48em; min-height: 44px; position: relative; font: 700 clamp(19px, 2.05vw, 31px)/1 var(--display); letter-spacing: -.02em; }
.masthead nav a::after { content: ""; position: absolute; bottom: -4px; left: 0; right: 0; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .16s ease-out; }
.masthead nav a[aria-current]::after, .masthead nav a:hover::after { transform: scaleX(1); }
.masthead .trophy { width: .97em; height: .97em; }
.site-tools { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
#theme-switch { display: grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; border: 1.5px solid var(--ink); border-radius: 4px; color: var(--ink); background: var(--panel); cursor: pointer; }
#theme-switch:hover { background: var(--soft); }
#theme-switch svg { grid-area: 1 / 1; width: 22px; height: 22px; }
#theme-switch .sun, :root[data-theme="dark"] #theme-switch .moon { display: none; }
:root[data-theme="dark"] #theme-switch .sun { display: block; }
main:focus { outline: none; }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: clamp(24px, 1.65vw, 26px) 0 clamp(30px, 2.6vw, 41px); }
.hero-copy { min-width: 0; }
.hero h1 { font: 900 clamp(78px, 10.85vw, 168px)/.82 var(--display); letter-spacing: -.027em; }
.period { display: inline-block; position: relative; color: transparent; width: .22em; }
.period::after { content: ""; position: absolute; left: .035em; bottom: .015em; width: .18em; height: .18em; background: var(--orange); }
.hero p { margin-top: clamp(12px, 1.1vw, 17px); font: 700 clamp(21px, 2.25vw, 35px)/1.13 var(--body); letter-spacing: -.035em; }
.ticket { position: relative; flex: 0 0 auto; width: clamp(272px, 32.6vw, 500px); aspect-ratio: 3 / 1; display: flex; align-items: center; justify-content: center; gap: 6%; isolation: isolate; color: #16150f; }
.ticket-outline { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ticket-icon { display: grid; align-items: center; width: 24%; height: 61%; padding-right: 5.5%; border-right: 2px solid; }
.ticket-icon .trophy { width: 100%; aspect-ratio: 1; }
.ticket-data { display: grid; gap: .1vw; }
.ticket-caption { font: 700 clamp(13px, 1.6vw, 25px)/1.2 var(--mono); letter-spacing: .025em; text-transform: uppercase; }
.ticket-total { display: flex; align-items: baseline; gap: .21em; font: 700 clamp(36px, 4.25vw, 67px)/1.13 var(--mono); letter-spacing: -.075em; }
.ticket-total small { font-size: .44em; letter-spacing: 0; }
.ticket-total:has([data-long]) { font-size: clamp(27px, 3.25vw, 50px); }
.game-shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(13px, 1.2vw, 20px); }
.game-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; background: var(--paper); transition: transform .18s ease-out, box-shadow .18s ease-out; }
.poster { aspect-ratio: 1.42; overflow: hidden; background: #e8e1d1; border-bottom: 1px solid var(--ink); }
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease-out; }
.card-copy { flex: 1; display: flex; flex-direction: column; padding: clamp(12px, 1vw, 16px) clamp(15px, 1.5vw, 24px) clamp(13px, 1.27vw, 20px); }
.card-copy h2 { font: 900 clamp(27px, 3.1vw, 48px)/1.02 var(--display); letter-spacing: -.035em; }
.card-copy p { margin: 6px 0 clamp(18px, 1.55vw, 25px); font-size: clamp(15px, 1.46vw, 23px); line-height: 1.38; letter-spacing: -.025em; }
.play-link { margin-top: auto; border-top: 1.5px solid; padding-top: clamp(9px, .72vw, 12px); display: flex; justify-content: space-between; align-items: center; font: 700 clamp(21px, 2vw, 31px)/1.05 var(--display); letter-spacing: -.02em; }
.play-link svg { width: .87em; height: .87em; transition: transform .18s ease-out; }
.friend-action, .solo-action { display: inline-flex; align-items: center; min-height: 36px; }
.friend-action { gap: .3em; }
.friend-action::after { content: ""; position: absolute; inset: 0; }
.game-card:has(.friend-action:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.solo-action { position: relative; padding-inline: .4em; font-size: .7em; text-decoration: underline; text-underline-offset: .17em; }
.room-entry { display: inline-flex; gap: 7px; align-items: center; margin-top: 12px; min-height: 36px; padding: 3px 11px; border: 1.5px solid; border-radius: 3px; font: 700 20px/1.1 var(--display); }
.room-entry:hover, .room-entry:focus-visible { background: #f7e7bf; }
:root[data-theme="dark"] .room-entry:hover, :root[data-theme="dark"] .room-entry:focus-visible { background: #3e352d; }
:root[data-theme="dark"] :is(.game-card, .game-record, .table-panel, .record-strip) { background: var(--panel); border-color: #878276; }
:root[data-theme="dark"] .ticket-outline path:first-child { fill: #ddbd7e; }
.room-entry svg { width: .77em; height: .77em; }
.room-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.record-strip { display: flex; align-items: center; gap: 0; border: 2px solid; margin-top: clamp(26px, 2.55vw, 40px); padding: clamp(12px, 1vw, 16px) 0; }
.record-strip h2 { flex: 0 0 26%; padding-inline: 2.1%; font: 900 clamp(28px, 3.3vw, 51px)/1 var(--display); letter-spacing: -.02em; }
.record-strip dl { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); }
.record-strip dl > div { min-height: 38px; display: flex; align-items: center; gap: clamp(10px, 1.85vw, 30px); justify-content: center; border-left: 1.5px solid; }
.record-strip dt { font: 700 clamp(18px, 1.85vw, 29px)/1.15 var(--display); }
.record-strip dd { font: 700 clamp(21px, 2.55vw, 39px)/1.15 var(--mono); letter-spacing: -.06em; }
.game-back { padding-top: 20px; }
.game-back a { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; font: 700 18px var(--display); }
.game-back svg { width: 18px; }
.play-hero { padding-top: 5px; padding-bottom: 25px; }
.play-hero h1 { font-size: clamp(50px, 7.4vw, 114px); line-height: .94; }
.play-hero p, .score-layout h2 { font-size: clamp(23px, 2vw, 32px); }
.play-hero .ticket { width: clamp(230px, 23vw, 358px); }
.play-hero .ticket-caption { font-size: clamp(12px, 1.1vw, 18px); }
.play-hero .ticket-total { font-size: clamp(30px, 3vw, 48px); }
.play-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 2.5fr) minmax(245px, 1fr); gap: 24px; }
#game-surface { min-width: 0; }
.game-record, .table-panel { border: 2px solid; border-radius: 4px; }
.game-record { padding: clamp(16px, 1.7vw, 28px); }
.game-record h2, .score-layout h2 { font-family: var(--display); font-weight: 900; letter-spacing: -.025em; }
.game-record > h2 { font-size: 32px; line-height: 1.1; }
.game-record dl { margin: 14px 0; }
.game-record dl > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.game-record dt { font: 700 19px var(--display); }
.game-record dd { font: 700 17px var(--mono); }
.scoring-rules h2 { font: 700 20px/1.2 var(--display); }
.scoring-rules p, .storage-note, #save-notice { font-size: 14px; line-height: 1.6; }
.scoring-rules p { margin-top: 4px; }
.scoring-rules i { padding: 0 4px; font-style: normal; }
.score-layout .record-strip { margin-top: 0; }
.score-layout .record-strip h2 { font-size: clamp(28px, 3.3vw, 51px); }
.table-panel { margin-block: 24px; overflow: hidden; }
.table-panel h2 { margin: 18px 24px; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: -4px; }
table { width: 100%; border-collapse: collapse; text-align: right; }
th, td { padding: 12px 24px; }
thead { font: 700 13px/1.3 var(--mono); text-transform: uppercase; background: var(--soft); }
tbody td { font: 700 18px var(--mono); }
tbody tr { border-top: 1px solid var(--rule); }
th:first-child { text-align: left; }
th:last-child, td:last-child { font-weight: 900; }
.game-row-link { display: inline-flex; align-items: center; gap: 15px; font: 700 24px var(--display); }
.game-row-link img { border: 1px solid; border-radius: 2px; object-fit: cover; }
.game-row-link:hover span, .game-back a:hover { text-decoration: underline; text-underline-offset: 3px; }
.score-foot { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.storage-note { color: var(--muted); }
#save-notice { margin: 18px 0; }
@media (hover: hover) {
  .game-card:hover { transform: translateY(-4px); box-shadow: 3px 5px var(--ink); }
  .game-card:hover .poster img { transform: scale(1.035); }
  .game-card:hover .play-link svg { transform: translate(2px, -2px); }
}
@media (max-width: 950px) {
  .shell { width: 94%; }
  .hero h1 { font-size: clamp(78px, 10.5vw, 100px); }
  .play-hero h1 { font-size: clamp(51px, 7.2vw, 76px); }
  .record-strip dl > div { gap: 9px; }
  .game-shelf { gap: 12px; }
  .card-copy { padding-inline: 12px; }
  .card-copy h2 { font-size: clamp(24px, 3.15vw, 32px); }
  .play-layout { grid-template-columns: minmax(0, 2fr) minmax(208px, 1fr); gap: 15px; }
  th, td { padding-inline: 15px; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 36px); max-width: 540px; padding-bottom: 24px; }
  .masthead { min-height: 68px; gap: 12px; border-bottom-width: 2px; }
  .brand { font-size: clamp(23px, 5.6vw, 32px); gap: 6px; }
  .brand img { width: 34px; }
  .masthead nav { gap: 15px; }
  .masthead nav a { min-height: 40px; gap: 4px; font-size: 17px; }
  .masthead nav a::after { bottom: 0; height: 3px; }
  .hero { display: grid; gap: 18px; padding: 29px 0 22px; }
  .hero h1 { font-size: clamp(66px, 16vw, 90px); line-height: .92; }
  .hero p { margin-top: 8px; font-size: 23px; }
  .ticket, .play-hero .ticket { width: 195px; }
  .ticket-caption, .play-hero .ticket-caption { font-size: 10px; }
  .ticket-total, .play-hero .ticket-total { font-size: 27px; }
  .ticket-total:has([data-long]) { font-size: 22px; }
  .ticket-icon { border-width: 1.5px; }
  .game-shelf { grid-template-columns: 1fr; gap: 20px; }
  .poster { aspect-ratio: 1.65; }
  .card-copy { padding: 12px 16px 15px; }
  .card-copy h2 { font-size: 35px; }
  .card-copy p { font-size: 16px; margin: 4px 0 13px; }
  .play-link { font-size: 23px; padding-top: 9px; }
  .record-strip { display: block; padding: 0; margin-top: 24px; }
  .record-strip h2, .score-layout .record-strip h2 { padding: 13px 16px; font-size: 29px; border-bottom: 1px solid; }
  .record-strip dl { padding: 10px 0; }
  .record-strip dl > div { flex-direction: column; gap: 3px; }
  .record-strip dl > div:first-child { border-left: 0; }
  .record-strip dt { font-size: 16px; }
  .record-strip dd { font-size: 22px; }
  .play-layout { grid-template-columns: 1fr; }
  .game-back { padding-top: 12px; }
  .play-hero { padding: 8px 0 16px; gap: 10px; }
  .play-hero h1 { font-size: clamp(45px, 11vw, 62px); line-height: 1; }
  .play-hero p { font-size: 19px; margin-top: 5px; }
  .table-panel h2 { margin: 12px; }
  .table-panel { margin: 18px 0; }
  th, td { padding: 10px 7px; }
  thead { font-size: 10px; }
  tbody td { font-size: 13px; }
  .game-row-link { font-size: 16px; line-height: 1; }
  .game-row-link img { display: none; }
  .score-foot { display: grid; }
}
@media (max-width: 380px) {
  .shell { width: calc(100% - 26px); }
  .masthead nav { gap: 10px; }
  .masthead nav a { font-size: 16px; }
  .masthead nav .trophy { display: none; }
}
@media (max-width: 520px) {
  .masthead { gap: 7px; }
  .site-tools { gap: 9px; }
  .masthead nav { gap: 9px; }
  .brand { font-size: clamp(19px, 5vw, 25px); gap: 4px; white-space: nowrap; }
  .brand img { width: 27px; }
  .masthead nav a { font-size: clamp(15px, 3.9vw, 17px); white-space: nowrap; }
  #theme-switch { width: 32px; height: 36px; }
  #theme-switch svg { width: 18px; height: 18px; }
}
@media (max-width: 355px) {
  .masthead { display: grid; grid-template-columns: 1fr 38px; gap: 0; padding: 7px 0; }
  .brand { grid-area: 1 / 1; font-size: 24px; }
  .site-tools { display: contents; }
  #theme-switch { grid-area: 1 / 2; justify-self: end; }
  .masthead nav { grid-area: 2 / 1 / 3 / 3; gap: 22px; }
  .masthead nav a { font-size: 17px; min-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .game-card, .poster img, .play-link svg, .masthead nav a::after { transition: none; }
  .game-card:hover, .game-card:hover .poster img, .game-card:hover .play-link svg { transform: none; }
}
