@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-800-normal.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-700-normal.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-latin-400-normal.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-latin-600-normal.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-latin-700-normal.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #111713;
  --pine: #071a13;
  --paper: #f4ecd8;
  --paper-deep: #d9ccb0;
  --felt: #0b5139;
  --felt-dark: #083326;
  --yellow: #ffd33d;
  --red: #e6493a;
  --coral: #d96a4a;
  --gold: #e9b949;
  --pool: #73a7a0;
  --focus: #fff0a8;
  --danger: #b83429;
  --line: 3px;
  font-family: "Source Sans 3", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
html { scrollbar-color: var(--yellow) var(--ink); }
body { min-height: 100vh; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button { border: 0; color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.58; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
input { caret-color: var(--red); }
::selection { color: var(--ink); background: var(--yellow); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--yellow); border: 3px solid var(--ink); }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "Barlow Condensed", sans-serif; text-wrap: balance; letter-spacing: -0.025em; }
svg { width: 1.25rem; height: 1.25rem; flex: none; }
button, .seat-panel, .pot-counter { font-variant-numeric: tabular-nums; }
.screen { min-height: 100vh; }
.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 1rem; color: var(--paper); background: var(--ink); }

.brand-lockup { display: inline-flex; min-width: 0; align-items: center; gap: clamp(0.45rem, 1vw, 0.8rem); flex: none; }
.brand-mark { display: block; width: clamp(2.5rem, 3.3vw, 3.2rem); height: auto; flex: none; object-fit: contain; }
.brand-wordmark { display: block; width: clamp(7.5rem, 13vw, 11rem); height: auto; flex: none; object-fit: contain; }
.brand-lockup-boot { gap: clamp(0.7rem, 2vw, 1.25rem); }
.brand-lockup-boot .brand-mark { width: clamp(4.25rem, 12vw, 7rem); }
.brand-lockup-boot .brand-wordmark { width: min(62vw, 26rem); }
.paper-header { position: relative; z-index: 10; display: flex; min-height: 5rem; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem clamp(1.25rem, 4vw, 4.5rem); border-bottom: var(--line) solid var(--yellow); color: var(--paper); background: var(--ink); }
.text-button { min-height: 2.75rem; padding: 0.5rem 0; border-bottom: 2px solid currentColor; color: inherit; background: transparent; font-weight: 800; }
.text-button:hover { color: var(--yellow); }

.login-screen { display: grid; overflow-x: auto; overflow-y: hidden; background: var(--ink); }
.login-main { display: grid; min-width: 0; max-width: 100%; min-height: 100svh; grid-template-columns: minmax(0, 1.14fr) minmax(22rem, 0.86fr); }
.login-copy { position: relative; z-index: 2; align-self: stretch; padding: clamp(2.5rem, 5vw, 5.5rem); background-color: var(--paper); background-image: radial-gradient(rgba(17, 23, 19, 0.11) 0.75px, transparent 0.75px); background-size: 6px 6px; }
.login-copy::after { position: absolute; content: ""; z-index: 3; top: 0; left: -16px; width: 16px; height: 100%; background: var(--yellow); clip-path: polygon(100% 0, 0 4%, 65% 8%, 0 13%, 75% 19%, 10% 25%, 70% 31%, 0 38%, 80% 46%, 5% 53%, 70% 61%, 0 68%, 75% 76%, 10% 83%, 70% 91%, 0 100%, 100% 100%); }
.login-copy h1 { max-width: 7ch; margin-bottom: 1.5rem; color: var(--ink); font-size: clamp(4rem, 7vw, 6rem); line-height: 0.88; text-transform: uppercase; }
.login-copy > p { max-width: 30rem; margin-bottom: 2rem; color: #35443a; font-size: 1.12rem; line-height: 1.5; }
.person-list { display: grid; max-width: 31rem; border-top: var(--line) solid var(--ink); }
.person-button { position: relative; display: grid; min-height: 5rem; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 0.85rem; border-bottom: var(--line) solid var(--ink); background: transparent; text-align: left; transition: background 170ms ease-out, transform 170ms ease-out; }
.person-button:hover { background: var(--yellow); transform: translateX(6px); }
.person-swatch, .seat-dot { width: 1rem; height: 1rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--person-color); }
.person-swatch { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-width: var(--line); font-family: "Barlow Condensed", sans-serif; font-size: 1.4rem; font-weight: 800; }
.person-name { font-size: 1.3rem; font-weight: 800; }
.person-role { color: #4a5a50; }
.person-arrow { font-family: "Barlow Condensed", sans-serif; font-size: 1.2rem; font-weight: 800; text-transform: uppercase; }
.person-entry:hover, .person-entry:focus-within { background: var(--yellow); transform: none; }
.person-field { display: grid; gap: 0.2rem; min-width: 0; }
.person-input { width: 100%; min-height: 2.75rem; padding: 0.3rem 0.6rem; border: 2px solid var(--ink); border-radius: 0; color: var(--ink); background: var(--paper); font-size: 1.3rem; font-weight: 800; }
.person-entry .person-arrow { min-height: 2.75rem; padding: 0.4rem 0.2rem; border: 0; border-bottom: 2px solid currentColor; color: var(--ink); background: transparent; }
.person-note { max-width: 31rem; margin: 0.9rem 0 0; color: #4a5a50; font-size: 0.95rem; }
.login-table-view { position: relative; min-width: 0; margin: 0; overflow: hidden; color: var(--ink); background: var(--pine); isolation: isolate; container-type: size; --art-top: 11.5rem; --art-bottom: 1.5rem; }
.login-table-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; filter: brightness(0.62) contrast(1.05) saturate(0.88); }
.login-table-view::after { position: absolute; content: ""; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7, 26, 19, 0.38), rgba(7, 26, 19, 0.08) 42%, rgba(7, 26, 19, 0.22)), radial-gradient(circle at 76% 22%, transparent 0 38%, rgba(7, 26, 19, 0.34) 100%); pointer-events: none; }
.login-art-lockup { --art-band: calc(100cqh - var(--art-top) - var(--art-bottom)); position: absolute; z-index: 2; top: calc(var(--art-top) + var(--art-band) / 2); left: 50%; display: grid; width: min(72%, 34rem, (var(--art-band) - 0.7rem) / 1.24); justify-items: center; gap: clamp(0.35rem, 1vh, 0.7rem); transform: translate(-50%, -50%); pointer-events: none; }
.login-mascots { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.42)); }
.login-title-card { display: block; width: min(72%, 27rem); pointer-events: none; }
.login-title-card img { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5)); }
.login-table-view figcaption { position: absolute; z-index: 4; top: clamp(1.5rem, 4vw, 3rem); left: clamp(1.5rem, 4vw, 3.5rem); display: grid; max-width: 21rem; padding: 1rem 1.3rem; border: var(--line) solid var(--ink); color: var(--ink); background: var(--yellow); box-shadow: 8px 10px 22px rgba(0, 0, 0, 0.38); transform: rotate(-1deg); }
.login-table-view figcaption span:first-child { font-family: "Barlow Condensed", sans-serif; font-size: 2rem; font-weight: 800; line-height: 0.95; text-transform: uppercase; }
.page-turn { position: absolute; z-index: 5; right: clamp(1.25rem, 4vw, 3.5rem); bottom: clamp(1.25rem, 3vw, 2.5rem); display: none; min-width: 12rem; padding: 0.7rem 1rem 0.75rem; border: var(--line) solid var(--ink); color: var(--ink); background: var(--yellow); box-shadow: 8px 10px 22px rgba(0, 0, 0, 0.38); text-align: left; touch-action: manipulation; }
.page-turn::after { position: absolute; content: ""; right: -3px; bottom: -3px; width: 1.2rem; height: 1.2rem; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); background: var(--paper); clip-path: polygon(100% 0, 0 100%, 100% 100%); }
.page-turn-action { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 1.35rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.page-turn:hover { transform: translateX(4px); }

.lobby-screen { color: var(--paper); background: var(--pine); }
.lobby-main { width: min(1420px, calc(100% - 5rem)); margin: 0 auto; padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.shelf { --shelf-gap: clamp(1.25rem, 2.4vw, 2rem); --shelf-gaps: 3; --shelf-visible: 3.6666667; position: relative; }
.table-list { display: flex; gap: var(--shelf-gap); margin: -0.4rem 0 0; padding: 0.4rem 0 1.25rem; overflow-x: auto; overflow-y: hidden; list-style: none; scroll-snap-type: x proximity; scrollbar-width: none; }
.table-list::-webkit-scrollbar { display: none; }
.table-list:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
.table-list > .catalog-card { flex: 0 0 calc((100% - var(--shelf-gaps) * var(--shelf-gap)) / var(--shelf-visible)); scroll-snap-align: start; }
.shelf-edge { position: absolute; z-index: 6; top: 0; bottom: 1.25rem; display: grid; width: clamp(3rem, 4.5vw, 4rem); place-items: center; padding: 0; border: 0; color: var(--ink); background: linear-gradient(to left, rgba(7, 26, 19, 0.82), rgba(7, 26, 19, 0)); cursor: pointer; transition: opacity 180ms ease-out, visibility 0s linear 0s; }
.shelf-edge-prev { left: 0; background: linear-gradient(to right, rgba(7, 26, 19, 0.82), rgba(7, 26, 19, 0)); }
.shelf-edge-next { right: 0; }
.shelf-edge:disabled { opacity: 0; visibility: hidden; transition: opacity 180ms ease-out, visibility 0s linear 180ms; }
.shelf-edge:focus-visible { outline: none; }
.shelf-edge-mark { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36); transition: transform 150ms ease-out; }
.shelf-edge-mark svg { width: 1.25rem; height: 1.25rem; }
.shelf-edge:hover .shelf-edge-mark { transform: scale(1.08); }
.shelf-edge:focus-visible .shelf-edge-mark { outline: 4px solid var(--yellow); outline-offset: 3px; }
.catalog-card { position: relative; display: grid; min-width: 0; grid-template-rows: auto 1fr; transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.catalog-card:hover { transform: translateY(-6px); }
.catalog-artwork { position: relative; min-height: 0; aspect-ratio: 1.12; overflow: hidden; border: var(--line) solid var(--ink); background: #153b2e; box-shadow: 0 16px 35px rgba(0, 0, 0, 0.34); isolation: isolate; }
.catalog-cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1); }
.catalog-card:hover .catalog-cover { transform: scale(1.035); }
.catalog-art-fallback { display: grid; height: 100%; place-items: center; padding: 1.5rem 1.25rem 2.5rem; color: var(--paper); background: var(--felt-dark); font-family: "Barlow Condensed", sans-serif; font-size: clamp(1.8rem, 2.5vw, 2.35rem); font-weight: 800; line-height: 0.95; text-align: center; text-transform: uppercase; }
.catalog-card-body { position: relative; z-index: 4; display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 0.45rem 1rem; margin: -1.1rem 0 0 clamp(0.75rem, 2vw, 1.35rem); padding: 1.15rem 1.2rem 1.25rem; border: var(--line) solid var(--ink); color: var(--ink); background: var(--paper); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32); }
.catalog-card-body h2 { grid-column: 1 / -1; max-width: 100%; margin: 0; font-size: clamp(1.8rem, 2.5vw, 2.35rem); line-height: 0.95; text-transform: uppercase; }
.catalog-table-name { grid-column: 1 / -1; margin: 0 0 0.85rem; color: #4a584f; font-size: 0.96rem; }
.catalog-play { display: inline-flex; grid-column: 1 / -1; width: 100%; align-items: center; justify-content: space-between; gap: 1.25rem; align-self: end; }
.catalog-presence { display: flex; grid-column: 1 / -1; min-width: 0; align-items: center; justify-content: space-between; }
.catalog-status { margin: 0; color: var(--ink); font-size: 0.88rem; font-weight: 700; line-height: 1.2; text-align: right; text-wrap: balance; }
.portrait-stack { display: flex; justify-content: flex-end; margin-top: 0.42rem; padding-left: 0.55rem; }
.portrait-bubble { display: grid; width: 2.05rem; height: 2.05rem; place-items: center; margin-left: -0.55rem; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--person-color); font-size: 0.92rem; font-weight: 800; }
.portrait-more { width: auto; min-width: 2.05rem; padding: 0 0.45rem; color: var(--paper); background: var(--ink); }
button.portrait-bubble { padding: 0; cursor: pointer; transition: transform 150ms ease-out; }
button.portrait-bubble:hover { position: relative; z-index: 1; transform: translateY(-3px); }
.header-person { display: inline-flex; min-width: 0; max-width: min(22rem, 46vw); align-items: center; gap: 0.6rem; }
.header-person .portrait-bubble { width: 2.1rem; height: 2.1rem; margin: 0; border-color: var(--paper); }
.header-person-name, .rail-person-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-card { width: min(26rem, calc(100% - 2rem)); padding: 1.3rem; border: var(--line) solid var(--ink); color: var(--ink); background: var(--paper); box-shadow: 10px 12px 0 var(--ink); }
.player-card::backdrop { background: rgba(7, 26, 19, 0.6); }
.player-card-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; }
.player-card-head h2 { margin: 0; font-size: 2rem; line-height: 0.95; overflow-wrap: anywhere; }
.player-card-head .person-role { margin: 0.25rem 0 0; }
.player-card-close { align-self: start; padding: 0.2rem 0; font-size: 0.9rem; }
.player-card-rename { display: grid; gap: 0.4rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 2px solid rgba(17, 23, 19, 0.28); }
.player-card-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.player-card-row .person-input { flex: 1 1 10rem; }
.sign-out { display: grid; gap: 0.4rem; justify-items: start; }
.sign-out h3 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 1.5rem; text-transform: uppercase; }
.sign-out p { margin: 0 0 0.4rem; }
.sign-out .primary-button { background: var(--danger); border-color: var(--ink); }
.coming-next { margin-top: 4.5rem; padding-top: 2rem; border-top: 1px solid var(--yellow); }
.coming-next-heading { margin-bottom: 1.25rem; }
.coming-next-heading h2 { margin: 0; color: var(--paper); font-size: 2rem; }
.upcoming-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); padding: 0; margin: 0; list-style: none; }
.catalog-card-coming-soon { display: grid; min-width: 0; height: 5.75rem; container-type: inline-size; grid-template-columns: minmax(0, 1fr) 2px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); background: var(--paper); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32); opacity: 0.82; }
.catalog-card-coming-soon::after { content: ""; grid-area: 1 / 2; background: var(--ink); }
.catalog-card-coming-soon:hover { transform: none; opacity: 0.9; }
.catalog-card-coming-soon .catalog-artwork { grid-area: 1 / 1; height: 100%; aspect-ratio: auto; border: 0; background-color: var(--paper-deep); background-image: radial-gradient(closest-side, rgba(244, 236, 216, 0.92) 35%, rgba(244, 236, 216, 0) 100%), radial-gradient(rgba(17, 23, 19, 0.2) 0.8px, transparent 0.8px); background-size: 100% 100%, 6px 6px; box-shadow: inset -8px 0 14px -10px rgba(17, 23, 19, 0.5); }
.catalog-card-coming-soon .catalog-artwork img { display: block; width: 100%; height: 100%; padding: 0.4rem 0.75rem 0.4rem 1.25rem; object-fit: contain; }
.catalog-card-coming-soon .catalog-card-body { display: flex; grid-area: 1 / 3; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; margin: 0; padding: 0.5rem 1.25rem; border: 0; color: var(--ink); background: transparent; box-shadow: none; text-align: center; }
.catalog-card-coming-soon .catalog-card-body h2 { max-width: 100%; margin: 0; font-size: clamp(1.15rem, 7cqi, 1.5rem); line-height: 0.95; }
.coming-soon-label { color: #4a584f; font-size: 0.76rem; font-weight: 800; line-height: 1.05; text-transform: uppercase; white-space: nowrap; }

.primary-button { min-height: 3.4rem; padding: 0.8rem 1.2rem; border: 2px solid var(--ink); color: var(--paper); background: var(--ink); font-weight: 800; transition: background 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out; }
.primary-button:hover:not(:disabled) { color: var(--ink); background: var(--yellow); box-shadow: 0 8px 18px rgba(17, 23, 19, 0.28); transform: translateY(-2px); }
.primary-button:active:not(:disabled) { transform: translateY(0); }
.quiet-button { min-height: 3.4rem; padding: 0.8rem 1.15rem; border: 2px solid var(--ink); color: var(--ink); background: var(--paper); font-weight: 800; }
.quiet-button:hover:not(:disabled) { background: var(--yellow); }
.felt-button { min-width: 8.5rem; color: var(--paper); background: var(--felt); }

.table-screen { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; color: var(--paper); background: var(--pine); }
.table-rail { position: absolute; z-index: 7; inset: 0 0 auto; display: grid; min-height: 4.25rem; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; padding: 0.45rem clamp(1rem, 3vw, 2.5rem); border-bottom: var(--line) solid var(--yellow); background: var(--ink); }
.table-rail-start { display: flex; min-width: 0; align-items: center; gap: clamp(0.7rem, 1.5vw, 1.2rem); }
.brand-lockup-table { gap: 0.45rem; }
.brand-lockup-table .brand-mark { width: 2.4rem; }
.brand-lockup-table .brand-wordmark { width: clamp(6.5rem, 9vw, 8.5rem); }
.table-title { justify-self: center; font-family: "Barlow Condensed", sans-serif; font-size: 1.35rem; font-weight: 800; text-transform: uppercase; }
.table-rail .text-button { justify-self: start; color: var(--paper); }
.room-back { display: inline-flex; align-items: center; gap: 0.7rem; border: 0; }
.rail-person { display: inline-flex; min-width: 0; max-width: min(15rem, 30vw); align-items: center; gap: 0.5rem; justify-self: end; color: var(--paper); font-size: 0.92rem; font-weight: 800; }
.rail-person .seat-dot { border-color: var(--paper); }
.rail-person { min-height: 2.75rem; padding: 0; border: 0; background: transparent; cursor: pointer; }
.rail-person:hover { color: var(--yellow); }
.self-menu { position: relative; justify-self: end; }
.self-menu-list { position: absolute; z-index: 30; top: calc(100% + 0.45rem); right: 0; display: grid; min-width: 11rem; max-width: calc(100vw - 2rem); padding: 0.3rem; border: var(--line) solid var(--ink); color: var(--ink); background: var(--paper); box-shadow: 6px 8px 0 var(--ink); }
.self-menu-list[hidden] { display: none; }
.self-menu-list button { min-height: 2.75rem; padding: 0.5rem 0.85rem; background: transparent; font-weight: 800; text-align: left; white-space: nowrap; }
.self-menu-list button:hover, .self-menu-list button:focus-visible { outline: none; background: var(--yellow); }
.table-stage { position: absolute; inset: 0; overflow: hidden; }
/* A package chooses its stage. "table" is the photographed felt table; "bare" is left to the package. */
.table-stage[data-stage="table"] { background-color: var(--pine); background-image: linear-gradient(rgba(5, 14, 10, 0.05), rgba(5, 14, 10, 0.2)), url("/assets/comic/table-photo.png"); background-position: center; background-size: cover; }
.table-stage[data-stage="table"]::after { position: absolute; content: ""; z-index: 0; inset: 4.25rem 0 0; border: clamp(0.4rem, 1vw, 0.8rem) solid rgba(17, 23, 19, 0.5); pointer-events: none; }
.table-stage[data-stage="table"] canvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; filter: saturate(1.08) contrast(1.04); }
.room-overlay { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.room-overlay > * { position: absolute; top: 0; left: 0; will-change: transform; }
.room-overlay button { pointer-events: auto; }
.seat-panel { min-width: 9rem; padding: 0.55rem 0.75rem; border: var(--line) solid var(--ink); color: var(--ink); background: rgba(244, 236, 216, 0.95); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34); transition: background 150ms ease-out, opacity 150ms ease-out, transform 150ms ease-out; }
.seat-panel.active { color: var(--ink); background: var(--yellow); }
.seat-panel.broke, .seat-panel.away { opacity: 0.65; }
.seat-heading { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; white-space: nowrap; }
.seat-detail { margin-top: 0.16rem; color: #425048; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.turn-tag { margin-left: auto; padding-left: 0.5rem; color: var(--red); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.pot-counter { padding: 0.25rem 0.65rem; border: var(--line) solid var(--ink); color: var(--ink); background: var(--yellow); box-shadow: 0 7px 16px rgba(0, 0, 0, 0.28); font-size: 0.85rem; text-align: center; white-space: nowrap; }
.pot-counter strong { margin-right: 0.3rem; font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; font-weight: 800; }
.action-panel { position: absolute; z-index: 6; right: clamp(0.8rem, 2vw, 1.6rem); bottom: clamp(0.8rem, 2vw, 1.4rem); width: min(40rem, calc(100% - 1.6rem)); max-height: calc(100svh - 5.25rem); }
.action-panel:has(.action-dock:empty) { display: none; }
.action-panel:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
.action-dock { max-height: calc(100svh - 5.25rem); overflow: auto; padding: 0.9rem 1.1rem; border: var(--line) solid var(--ink); color: var(--ink); background-color: var(--paper); background-image: radial-gradient(rgba(17, 23, 19, 0.1) 0.7px, transparent 0.7px); background-size: 6px 6px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.44); transform-origin: right bottom; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.action-panel.is-moving .action-dock { cursor: grabbing; }
.action-panel.panel-scrolls .action-dock { touch-action: pan-y; }
.action-dock :is(button:not(:disabled), a, select, label) { cursor: pointer; }
.action-dock :is(input, textarea) { cursor: text; user-select: text; -webkit-user-select: text; }
.action-dock.panel-snap { animation: panel-snap 360ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes panel-snap { 0% { transform: translate(14px, 9px) rotate(0.8deg); box-shadow: 0 4px 0 var(--ink); } 72% { transform: translate(-2px, -1px) rotate(-0.15deg); } 100% { transform: none; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.44); } }
.dock-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
.dock-row h2 { margin-bottom: 0.12rem; font-size: 1.95rem; line-height: 0.94; text-transform: uppercase; }
.dock-row p { margin-bottom: 0; color: #435148; font-size: 0.9rem; }
.dock-row .text-button { align-self: center; padding: 0.2rem 0; font-size: 0.85rem; }
.dock-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: flex-end; }
.dock-line { margin: 0.65rem 0 0; color: #314139; font-size: 0.9rem; font-weight: 700; text-align: center; }
.dock-rule { margin: 0.8rem 0 0; padding-top: 0.7rem; border-top: 2px solid rgba(17, 23, 19, 0.28); color: #4d5a52; font-size: 0.82rem; text-align: center; }
.dock-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.8rem; padding-top: 0.7rem; border-top: 2px solid rgba(17, 23, 19, 0.28); color: #4d5a52; font-size: 0.82rem; }
.dock-foot .text-button { padding: 0.2rem 0; font-size: 0.85rem; }
.roll-faces { color: var(--red); font-family: "Barlow Condensed", sans-serif; font-size: 1.2rem; font-weight: 800; letter-spacing: 0.12em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.toast { position: fixed; z-index: 20; right: 1rem; bottom: 1rem; max-width: min(27rem, calc(100% - 2rem)); padding: 0.9rem 1.1rem; border: var(--line) solid var(--ink); color: var(--paper); background: var(--danger); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34); font-weight: 700; }
.toast-notice { border-color: var(--yellow); background: var(--ink); }
.object-hint { padding: 0.3rem 0.58rem; border: var(--line) solid var(--ink); color: var(--ink); background: var(--yellow); box-shadow: 0 7px 16px rgba(0, 0, 0, 0.3); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; will-change: transform; }
.object-hint[hidden] { display: none; }
.object-keys { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.object-keys:focus-within { position: static; display: flex; width: auto; height: auto; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; clip-path: none; }

@media (max-width: 1180px) {
  .shelf { --shelf-gaps: 2; --shelf-visible: 2.6666667; }
}

@media (max-width: 1100px) and (min-width: 821px) {
  .catalog-card-body { grid-template-columns: 1fr; }
  .catalog-status { text-align: left; }
  .portrait-stack { margin-top: 0; }
}

@media (max-width: 820px) {
  .login-screen { overflow-y: visible; }
  .login-main { position: relative; display: block; width: 100%; min-height: 100svh; overflow: hidden; }
  .login-copy { min-height: 100svh; padding: 3rem 2.5rem; }
  .login-copy::after { display: none; }
  .login-copy h1 { max-width: 9ch; }
  .login-table-view { position: absolute; z-index: 4; inset: 0; min-height: 100%; transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1), filter 480ms cubic-bezier(0.16, 1, 0.3, 1); touch-action: pan-y; }
  .login-main[data-page="form"] .login-table-view { transform: translateX(102%) rotate(1.5deg); filter: brightness(0.82); pointer-events: none; }
  .page-turn { display: block; }
  .lobby-main { width: calc(100% - 3rem); }
  .catalog-card-body { grid-template-columns: 1fr; }
  .catalog-status { text-align: left; }
  .portrait-stack { margin-top: 0; }
  .upcoming-list { grid-template-columns: 1fr; gap: 1rem; }
  .table-rail { grid-template-columns: minmax(0, 1fr) auto; }
  .table-title { display: none; }
  .seat-panel { min-width: 0; padding: 0.42rem 0.58rem; }
}

@media (max-width: 620px) {
  .lobby-main { width: calc(100% - 2rem); }
  .shelf { --shelf-gaps: 1; --shelf-visible: 1.3333333; }
  .shelf-edge, .shelf-edge-prev { width: 2.9rem; background: none; }
  .shelf-edge-mark { width: 2.35rem; height: 2.35rem; }
  .catalog-card-body { grid-template-columns: minmax(0, 1fr) auto; }
  .catalog-card-body h2 { font-size: 2rem; }
  .catalog-status { text-align: left; }
  .portrait-stack { margin-top: 0; }
  .coming-next { margin-top: 3rem; }
}

@media (max-width: 520px) {
  .paper-header { min-height: 4.25rem; padding: 0.7rem 1rem; }
  .brand-lockup { gap: 0.35rem; }
  .brand-lockup .brand-mark { width: 2rem; }
  .brand-lockup .brand-wordmark { width: 5.75rem; }
  .brand-lockup-boot .brand-mark { width: 3.5rem; }
  .brand-lockup-boot .brand-wordmark { width: min(67vw, 15rem); }
  .paper-header .text-button { font-size: 0.9rem; }
  .login-copy { min-height: 100svh; padding: 2.35rem 1.2rem; }
  .login-copy h1 { font-size: 3.5rem; }
  .login-table-view { --art-top: 6.5rem; }
  .login-art-lockup { width: min(78%, 22rem, (var(--art-band) - 0.7rem) / 1.24); }
  .login-table-view figcaption { top: 1rem; left: 1rem; max-width: 15rem; padding: 0.8rem 1rem; }
  .login-table-view figcaption span:first-child { font-size: 1.55rem; }
  .page-turn { right: 1rem; bottom: 1rem; min-width: 10.75rem; padding: 0.6rem 0.8rem 0.68rem; }
  .lobby-main { padding: 1rem 0 2.5rem; }
  .catalog-card-body { margin-left: 0.6rem; padding-inline: 0.9rem; }
  .catalog-play { min-width: 8.5rem; gap: 0.65rem; padding-inline: 0.75rem; }
  .table-rail { min-height: 4.25rem; gap: 0.5rem; padding-inline: 0.5rem; }
  .table-rail-start { gap: 0.35rem; }
  .brand-lockup-table .brand-mark { width: 1.75rem; }
  .brand-lockup-table .brand-wordmark { width: 4.5rem; }
  .room-back { width: 2.75rem; min-height: 2.75rem; justify-content: center; padding: 0; }
  .room-back-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rail-person { max-width: 7rem; }
  .turn-tag { display: none; }
  .seat-panel { padding: 0.28rem 0.42rem; border-width: 2px; }
  .seat-heading { gap: 0.35rem; font-size: 0.78rem; }
  .seat-heading .seat-dot { width: 0.7rem; height: 0.7rem; }
  .seat-detail { display: none; }
  .pot-counter { min-width: 0; padding: 0.24rem 0.48rem; border-width: 2px; font-size: 0.78rem; }
  .pot-counter strong { font-size: 1rem; }
  .action-panel { right: 0.5rem; bottom: 0.5rem; width: calc(100% - 1rem); }
  .action-dock { padding: 0.75rem; }
  .dock-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .dock-row h2 { font-size: 1.5rem; }
  .dock-actions, .dock-row > .primary-button { width: 100%; }
  .dock-actions > * { flex: 1; }
  .dock-rule { display: none; }
  .object-keys { position: static; display: flex; width: auto; height: auto; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; clip-path: none; }
  .object-keys > * { flex: 1; }
}

@media (max-height: 620px) {
  .action-dock { max-height: 11rem; }
}

@media (max-height: 520px) {
  .action-dock { max-height: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
