:root {
  --paper:#f3f0e7;
  --card:#fbf9f3;
  --ink:#263c35;
  --muted:#7c8175;
  --line:#deded1;
  --green:#284b40;
  --clay:#b76b4c;
  --gold:#b39252;
  --river:#a8c1bb;
  --serif:"Noto Serif CJK SC","Source Han Serif SC","Songti SC","STSong",Georgia,serif;
  --sans:"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",Arial,sans-serif;
  --shadow:0 16px 45px #243c3010
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:15px;
  line-height:1.6
}
button,input,select {
  font:inherit
}
button,a,input,select {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  cursor:not-allowed;
  opacity:.42
}
a {
  color:inherit
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #bb884e;
  outline-offset:4px
}
button {
  color:inherit
}
h1,h2,h3,p {
  margin:0
}
h1,h2,h3 {
  font-family:var(--serif);
  font-weight:600
}
button svg {
  pointer-events:none
}
.site-header {
  max-width:1344px;
  margin:auto;
  padding:24px 48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:20px
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:12px;
  text-decoration:none
}
.brand-mark {
  width:43px;
  height:43px;
  background:var(--ink);
  border-radius:11px;
  display:grid;
  place-items:center;
  color:#e0c797;
  font-family:var(--serif);
  font-size:25px;
  box-shadow:inset 0 0 0 5px var(--ink),inset 0 0 0 6px #d6bb8270
}
.brand-word {
  font-family:var(--serif);
  font-size:21px;
  letter-spacing:4px;
  line-height:1.1
}
.brand-word small {
  display:block;
  font-family:var(--sans);
  font-size:9px;
  letter-spacing:2px;
  color:var(--muted);
  margin-top:7px
}
.header-links {
  display:flex;
  align-items:center;
  gap:27px;
  font-size:13px
}
.text-button {
  background:none;
  border:0;
  padding:5px 0;
  border-bottom:1px solid transparent
}
.text-button:hover {
  border-bottom-color:var(--ink)
}
.header-note {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:12px
}
.status-dot {
  width:6px;
  height:6px;
  background:#76947c;
  border-radius:50%;
  display:inline-block
}
.status-dot.offline {
  background:#bc8059
}
.lobby {
  max-width:1248px;
  margin:0 auto;
  padding:42px 0 28px
}
.lobby-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  padding-bottom:30px;
  gap:20px
}
.eyebrow {
  display:block;
  font-size:10px;
  letter-spacing:2.5px;
  color:var(--gold);
  font-weight:700;
  text-transform:uppercase
}
.lobby-heading h1 {
  font-size:34px;
  letter-spacing:1px;
  margin-top:6px
}
.lobby-heading p {
  font-size:13px;
  color:var(--muted);
  margin-top:8px
}
.catalog-label {
  font-size:12px;
  color:var(--muted);
  display:flex;
  gap:10px;
  align-items:center
}
.count-badge {
  width:24px;
  height:24px;
  border-radius:50%;
  background:#e3e8dc;
  display:grid;
  place-items:center;
  color:var(--green)
}
.lobby-grid {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(330px,1fr);
  gap:24px
}
.game-feature {
  border:1px solid #d9dac9;
  background:var(--card);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--shadow)
}
.game-art {
  height:286px;
  position:relative;
  background:#e5e3d3;
  overflow:hidden
}
.game-art svg {
  display:block;
  width:100%;
  height:100%
}
.art-caption {
  position:absolute;
  top:20px;
  left:23px;
  font-size:10px;
  letter-spacing:2px;
  color:#496557
}
.art-badge {
  position:absolute;
  right:20px;
  top:18px;
  background:#f5f3e5d9;
  border:1px solid #b3b9a5;
  border-radius:4px;
  font-size:10px;
  padding:4px 9px;
  letter-spacing:1px
}
.art-coordinate {
  position:absolute;
  bottom:15px;
  right:22px;
  color:#65796c;
  font-size:9px;
  letter-spacing:3px
}
.game-description {
  padding:26px 29px
}
.game-title-line {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px
}
.game-description h2 {
  font-size:28px;
  letter-spacing:2px;
  line-height:1.35
}
.latin-title {
  font-size:11px;
  letter-spacing:3px;
  color:var(--gold);
  margin-top:4px
}
.difficulty {
  font-size:10px;
  letter-spacing:1px;
  color:var(--green);
  border:1px solid var(--line);
  border-radius:3px;
  padding:4px 7px;
  white-space:nowrap;
  margin-top:5px
}
.game-blurb {
  font-size:13px;
  color:#737969;
  margin:17px 0 19px;
  line-height:1.9;
  max-width:470px
}
.game-meta {
  display:flex;
  gap:23px;
  border-top:1px solid var(--line);
  padding-top:16px;
  font-size:12px;
  color:#5e6a5c
}
.meta-icon {
  color:var(--gold);
  margin-right:5px
}
.room-panel {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:26px 27px;
  display:flex;
  flex-direction:column
}
.tabs {
  display:flex;
  gap:26px;
  border-bottom:1px solid var(--line);
  margin-bottom:24px
}
.tab {
  border:0;
  background:none;
  padding:0 0 12px;
  font-size:14px;
  color:var(--muted);
  position:relative
}
.tab.active {
  color:var(--ink);
  font-weight:600
}
.tab.active:after {
  content:"";
  position:absolute;
  bottom:-1px;
  height:2px;
  background:var(--green);
  left:0;
  right:0
}
.room-panel h3 {
  font-size:20px;
  margin-bottom:5px
}
.form-intro {
  color:var(--muted);
  font-size:12px;
  margin-bottom:21px
}
.field {
  margin-bottom:18px
}
.field-label {
  font-size:12px;
  display:block;
  margin-bottom:7px;
  font-weight:500;
  color:#566357
}
.text-input {
  border:1px solid #d8ddcf;
  background:#f7f7ef;
  border-radius:6px;
  width:100%;
  padding:11px 13px;
  color:var(--ink);
  outline:none;
  transition:border-color .15s
}
.text-input:focus {
  border-color:#618172;
  background:#fffdf5
}
.text-input::placeholder {
  color:#a1a394
}
.seat-options {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px
}
.seat-option {
  position:relative
}
.seat-option input {
  position:absolute;
  opacity:0
}
.seat-option span {
  display:block;
  border:1px solid var(--line);
  border-radius:6px;
  padding:8px;
  text-align:center;
  color:var(--muted);
  background:#f8f8f0;
  font-size:13px
}
.seat-option input:checked+span {
  background:#e7ece1;
  border-color:#698473;
  color:var(--ink);
  font-weight:600
}
.seat-option input:focus-visible+span {
  outline:3px solid #bb884e;
  outline-offset:3px
}
.check-label {
  display:flex;
  align-items:center;
  gap:9px;
  color:#687260;
  font-size:12px;
  cursor:pointer
}
.check-label input {
  accent-color:var(--green)
}
.button {
  border:1px solid var(--line);
  border-radius:6px;
  min-height:42px;
  padding:10px 16px;
  background:#fafaf2;
  font-size:13px;
  font-weight:500;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  text-decoration:none;
  transition:background .15s,transform .15s
}
.button:hover:not(:disabled) {
  background:#e9eddf;
  transform:translateY(-1px)
}
.button.primary {
  background:var(--green);
  color:#f3f0e4;
  border-color:var(--green)
}
.button.primary:hover:not(:disabled) {
  background:#1e3e32
}
.button.wide {
  width:100%
}
.button.quiet {
  background:transparent
}
.button.small-button {
  font-size:12px;
  padding:7px 12px;
  min-height:34px
}
.button.danger-soft {
  color:#9b4c38
}
.practice-line {
  padding-top:20px;
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--muted)
}
.practice-line .text-button {
  font-size:12px;
  color:var(--green)
}
.form-bottom {
  font-size:10px;
  color:#969b8c;
  text-align:center;
  margin-top:10px
}
.form-space {
  margin-bottom:23px
}
.join-hint {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
  margin-top:14px
}
.lobby-bottom {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  padding:31px 0 28px
}
.benefit {
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding-right:15px
}
.benefit-symbol {
  font-family:var(--serif);
  font-size:23px;
  color:var(--gold);
  line-height:1.4
}
.benefit h3 {
  font-family:var(--sans);
  font-size:12px;
  font-weight:500
}
.benefit p {
  color:var(--muted);
  font-size:11px;
  margin-top:4px
}
.site-footer {
  max-width:1248px;
  margin:0 auto;
  padding:18px 0;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:10px;
  color:#909586;
  letter-spacing:.3px
}
.soon-note {
  font-size:11px;
  color:var(--muted);
  border-top:1px dashed var(--line);
  padding-top:18px
}
.soon-note span {
  color:var(--gold);
  margin-right:10px
}
.boot {
  min-height:65vh;
  display:grid;
  align-content:center;
  justify-items:center;
  gap:20px;
  color:var(--muted)
}
.notice {
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  z-index:100;
  background:#273e34;
  color:#fcf7e9;
  padding:12px 22px;
  border-radius:8px;
  box-shadow:0 6px 30px #0002;
  max-width:calc(100vw - 30px);
  font-size:13px
}
.notice.error {
  background:#884c3d
}
.inline-error {
  font-size:12px;
  background:#f5e8df;
  border:1px solid #e7cdbc;
  color:#994e3b;
  padding:10px 12px;
  border-radius:6px;
  margin:12px 0
}
.connection-banner {
  padding:8px 20px;
  text-align:center;
  background:#efe5cd;
  color:#8c6a32;
  font-size:12px
}
.waiting-wrap {
  max-width:880px;
  margin:48px auto;
  padding:0 22px
}
.room-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:18px;
  color:var(--muted);
  font-size:12px
}
.room-topline a {
  text-decoration:none
}
.waiting-card {
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
  padding:35px;
  box-shadow:var(--shadow)
}
.waiting-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
.waiting-title h1 {
  font-size:29px;
  margin-top:6px
}
.room-id {
  font-family:monospace;
  font-size:11px;
  color:var(--muted)
}
.waiting-copy {
  color:var(--muted);
  font-size:13px;
  margin:15px 0 28px
}
.waiting-seats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:13px;
  margin-bottom:28px
}
.waiting-seat {
  border:1px solid var(--line);
  border-radius:8px;
  min-height:133px;
  padding:18px 10px;
  text-align:center;
  background:#f6f6ed;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center
}
.waiting-seat.occupied {
  background:#edf0e5
}
.seat-avatar {
  height:36px;
  width:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff8ea;
  font-family:var(--serif);
  font-size:19px;
  margin-bottom:8px
}
.seat-avatar.empty {
  background:none!important;
  border:1px dashed #aebba9;
  color:#a2ae9d;
  font-size:22px
}
.waiting-seat strong {
  font-size:13px;
  font-weight:500;
  max-width:100%;
  word-break:break-all
}
.waiting-seat small {
  font-size:10px;
  color:var(--muted)
}
.waiting-actions {
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:center;
  padding-top:22px;
  border-top:1px solid var(--line)
}
.waiting-actions p {
  font-size:12px;
  color:var(--muted)
}
.join-card {
  max-width:470px;
  margin:60px auto;
  padding:30px
}
.join-card h1 {
  font-size:27px;
  margin:8px 0
}
.join-card p {
  font-size:13px;
  color:var(--muted);
  margin:10px 0 23px
}
.game-shell {
  max-width:1510px;
  margin:0 auto;
  padding:18px 30px 26px
}
.game-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:15px
}
.table-title {
  display:flex;
  align-items:center;
  gap:13px
}
.table-title h1 {
  font-size:22px;
  letter-spacing:1px
}
.table-title small {
  font-size:10px;
  color:var(--muted);
  letter-spacing:2px
}
.table-pills {
  display:flex;
  gap:7px;
  align-items:center
}
.pill {
  padding:3px 9px;
  background:#e4e9dd;
  border:1px solid #d8dfce;
  border-radius:20px;
  font-size:10px;
  white-space:nowrap
}
.pill.practice {
  color:#8b663f;
  background:#eee7d8
}
.table-tools {
  display:flex;
  gap:10px;
  align-items:center;
  font-size:11px;
  color:var(--muted)
}
.game-layout {
  display:grid;
  grid-template-columns:182px minmax(450px,1fr) 226px;
  gap:17px;
  align-items:start
}
.panel {
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  padding:15px
}
.panel-label {
  font-size:10px;
  letter-spacing:1.5px;
  color:var(--gold);
  margin-bottom:13px;
  text-transform:uppercase
}
.player-stack {
  display:flex;
  flex-direction:column;
  gap:9px
}
.player-card {
  border:1px solid var(--line);
  border-radius:8px;
  background:#f8f7ef;
  padding:12px 11px;
  position:relative
}
.player-card.active {
  background:#eaf0e3;
  border-color:#839b7b
}
.player-card.self {
  box-shadow:inset 3px 0 0 var(--player-color)
}
.player-name {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px
}
.player-stone {
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--player-color);
  flex-shrink:0
}
.player-name strong {
  font-weight:500;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.you-label {
  font-size:9px;
  color:var(--muted);
  margin-left:auto
}
.player-points {
  display:flex;
  align-items:baseline;
  gap:5px;
  margin-top:8px
}
.player-points strong {
  font-family:Georgia,serif;
  font-size:27px;
  line-height:1.1;
  font-weight:400
}
.player-points span {
  font-size:10px;
  color:var(--muted)
}
.player-stats {
  display:flex;
  gap:11px;
  font-size:10px;
  color:var(--muted);
  margin-top:7px
}
.player-cards {
  display:flex;
  gap:4px;
  flex-wrap:wrap;
  margin-top:9px
}
.mini-card {
  border:1px solid #cfceb9;
  background:#ece8d7;
  border-radius:3px;
  padding:1px 5px;
  font-size:9px
}
.mini-card.used {
  opacity:.5;
  text-decoration:line-through
}
.board-section {
  min-width:0
}
.board-frame {
  background:#e8e7d9;
  border:1px solid #d2d6c3;
  border-radius:12px;
  position:relative;
  overflow:hidden
}
.board-corner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:11px 16px 0;
  color:#6f7a69;
  font-size:9px;
  letter-spacing:1.5px
}
.board-scroll {
  width:100%;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin
}
.game-board {
  width:100%;
  min-width:460px;
  display:block;
  max-height:calc(100vh - 295px);
  min-height:370px
}
.hex {
  fill:#efe9d6;
  stroke:#c9cbb6;
  stroke-width:.7;
  transition:fill .1s,stroke .1s
}
.hex.river {
  fill:#adc7c0;
  stroke:#8eb0a8
}
.hex.region-north {
  fill:#e9e4ce
}
.hex.region-south {
  fill:#e9e0c9
}
.cell.can-place {
  cursor:pointer
}
.cell.can-place:hover .hex {
  fill:#e2d2aa;
  stroke:#9c845a;
  stroke-width:1.4
}
.cell.can-place:hover .hex.river {
  fill:#8ab6ab
}
.cell.drafted .hex {
  stroke:var(--clay);
  stroke-width:2
}
.cell.last-place .hex {
  stroke:#53765f;
  stroke-width:1.6
}
.cell.pending .hex {
  stroke:#bf8f3b;
  stroke-width:2;
  stroke-dasharray:3 2
}
.cell.pending {
  cursor:pointer
}
.cell.selected .hex {
  stroke:var(--clay);
  stroke-width:2
}
.hex-label {
  font-family:var(--sans);
  font-size:6.5px;
  text-anchor:middle;
  fill:#5f6a58;
  pointer-events:none
}
.board-region-label {
  font-family:var(--serif);
  font-size:9px;
  letter-spacing:3px;
  fill:#85917a
}
.board-legend {
  display:flex;
  gap:15px;
  justify-content:center;
  flex-wrap:wrap;
  padding:10px 12px 13px;
  color:#7c826f;
  font-size:10px
}
.legend-dot {
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:2px;
  background:#adc7c0;
  margin-right:4px
}
.legend-dot.gold {
  background:#b89a5b
}
.legend-dot.clay {
  background:#bf7350
}
.hand-panel {
  padding:15px 16px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  margin-top:12px
}
.hand-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  margin-bottom:12px
}
.hand-top small {
  font-size:10px;
  color:var(--muted)
}
.hand-tokens {
  display:flex;
  gap:11px;
  justify-content:center;
  flex-wrap:wrap
}
.hand-token {
  border:1px solid #d3d7c5;
  border-radius:7px;
  background:#f3f2e7;
  min-width:57px;
  padding:7px 5px 5px;
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:3px;
  transition:transform .15s,border-color .15s
}
.hand-token:hover:not(:disabled) {
  transform:translateY(-3px);
  border-color:#839875
}
.hand-token.selected {
  background:#e6ebdc;
  border-color:#456e54;
  box-shadow:0 0 0 2px #486b4b20;
  transform:translateY(-3px)
}
.hand-token.drafted {
  opacity:.35;
  transform:none
}
.token-symbol {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  border:2px solid #fff7dc90;
  background:var(--player-color);
  color:#fff8e7;
  box-shadow:0 2px 0 #0002;
  font-size:21px;
  font-family:var(--serif)
}
.hand-token small {
  font-size:9px;
  color:#73806b
}
.hand-help {
  font-size:10px;
  text-align:center;
  color:var(--muted);
  margin-top:10px;
  min-height:16px
}
.action-heading {
  font-family:var(--serif);
  font-size:18px;
  line-height:1.45;
  margin:5px 0 8px
}
.action-copy {
  font-size:11px;
  color:var(--muted);
  line-height:1.85;
  margin-bottom:14px
}
.action-buttons {
  display:flex;
  gap:8px;
  margin-top:9px
}
.action-buttons .button {
  flex:1;
  font-size:11px;
  padding:8px
}
.draft-list {
  margin:12px 0;
  padding:0;
  list-style:none;
  font-size:10px;
  color:#74806c;
  display:flex;
  flex-direction:column;
  gap:5px
}
.draft-list li {
  display:flex;
  justify-content:space-between;
  padding:5px 8px;
  background:#eeeede;
  border-radius:4px
}
.draft-list button {
  border:none;
  background:none;
  color:#986d49;
  font-size:11px;
  padding:0 3px
}
.turn-indicator {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:10px;
  letter-spacing:1px;
  color:#5c775a
}
.turn-indicator i {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#6c8d64
}
.turn-indicator.waiting {
  color:var(--muted)
}
.turn-indicator.waiting i {
  background:#abae9a
}
.phase-options {
  display:flex;
  flex-direction:column;
  gap:7px
}
.phase-options .button {
  font-size:11px;
  text-align:left;
  justify-content:flex-start;
  padding:9px 11px
}
.card-options {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px
}
.power-card {
  background:#efecdc;
  border:1px solid #d8d3ba;
  border-radius:5px;
  padding:9px 7px;
  text-align:left;
  position:relative;
  min-height:80px
}
.power-card:hover:not(:disabled) {
  border-color:#9c8d52;
  background:#e7e4ce
}
.power-number {
  font-family:Georgia,serif;
  font-size:21px;
  color:#b2995e;
  line-height:1;
  display:block;
  margin-bottom:5px
}
.power-card strong {
  font-size:10px;
  font-weight:600;
  display:block
}
.power-card small {
  font-size:9px;
  color:#88876e;
  display:block;
  margin-top:3px;
  line-height:1.5
}
.market-panel {
  margin-top:12px
}
.market-panel .card-options {
  grid-template-columns:repeat(4,1fr);
  gap:6px
}
.market-panel .power-card {
  min-height:auto;
  padding:8px 6px;
  cursor:default
}
.market-panel .power-card .power-number {
  font-size:16px
}
.market-panel .power-card small {
  display:none
}
.market-panel .power-card strong {
  font-size:9px
}
.activity-panel {
  margin-top:12px
}
.log-list {
  display:flex;
  flex-direction:column;
  gap:9px;
  max-height:260px;
  overflow:auto;
  font-size:10px;
  color:#7b816e;
  padding-right:4px;
  scrollbar-width:thin
}
.log-item {
  padding-left:10px;
  border-left:2px solid #d8ddcc;
  line-height:1.7
}
.log-item:first-child {
  color:#4c6650;
  border-color:#8aa078
}
.info-footnote {
  font-size:9px;
  color:#929783;
  line-height:1.8;
  margin-top:15px
}
.result-banner {
  background:#e8eddf;
  border:1px solid #c5d0b7;
  border-radius:10px;
  padding:19px 22px;
  margin-bottom:15px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}
.result-banner h2 {
  font-size:23px;
  margin-bottom:5px
}
.result-banner p {
  font-size:12px;
  color:#6b7a60
}
.empty-board {
  min-height:400px;
  display:grid;
  place-items:center;
  color:var(--muted)
}
.rules-dialog,.invite-dialog {
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card);
  color:var(--ink);
  padding:27px;
  box-shadow:0 20px 80px #1c342933;
  width:min(690px,calc(100vw - 28px));
  max-height:85vh;
  overflow:auto
}
.invite-dialog {
  max-width:520px
}
.invite-dialog p {
  font-size:13px;
  color:var(--muted);
  margin-bottom:18px
}
.invite-value {
  font-size:12px;
  margin-bottom:13px
}
.rules-dialog::backdrop,.invite-dialog::backdrop {
  background:#263a3066;
  backdrop-filter:blur(3px)
}
.dialog-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:25px
}
.dialog-top h2 {
  font-size:23px;
  margin-top:5px
}
.icon-button {
  border:1px solid var(--line);
  width:30px;
  height:30px;
  border-radius:50%;
  background:transparent;
  display:grid;
  place-items:center;
  font-size:20px;
  flex-shrink:0
}
.rule-section {
  margin-bottom:22px
}
.rule-section h3 {
  font-size:16px;
  margin-bottom:8px
}
.rule-section p,.rule-section li {
  font-size:12px;
  color:#74806c;
  line-height:1.9
}
.rule-section ul {
  padding-left:19px
}
.rule-note {
  border-left:3px solid #c4b17b;
  background:#f0eddf;
  padding:10px 13px;
  font-size:12px;
  color:#77785f
}
.rules-card-list {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px
}
.rules-card {
  border:1px solid var(--line);
  border-radius:6px;
  padding:10px 12px;
  font-size:11px;
  color:#77806d
}
.rules-card strong {
  display:block;
  color:#4b6250;
  margin-bottom:3px
}
.muted {
  color:var(--muted)
}
.small {
  font-size:11px!important
}
.nowrap {
  white-space:nowrap
}
.noscript {
  margin:30px
}
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.recovery-actions {
  display:flex;
  gap:10px;
  margin-top:20px
}
@media(min-width:1550px) {
  .game-layout {
    grid-template-columns:198px minmax(500px,1fr) 248px
  }
  .game-board {
    max-height:calc(100vh - 300px)
  }
}
@media(max-width:1320px) {
  .lobby,.site-footer {
    margin-left:40px;
    margin-right:40px
  }
  .game-shell {
    padding-left:18px;
    padding-right:18px
  }
  .game-layout {
    grid-template-columns:156px minmax(380px,1fr) 205px;
    gap:12px
  }
  .panel {
    padding:12px
  }
  .player-stats {
    gap:7px
  }
  .game-board {
    min-width:390px
  }
  .site-header {
    padding-left:40px;
    padding-right:40px
  }
}
@media(max-width:1050px) {
  .game-layout {
    grid-template-columns:minmax(0,1fr) 220px
  }
  .players-panel {
    grid-column:1/-1;
    padding:10px
  }
  .players-panel>.panel-label {
    display:none
  }
  .player-stack {
    flex-direction:row
  }
  .player-card {
    flex:1;
    min-width:0;
    padding:9px 12px
  }
  .player-points {
    float:right;
    margin-top:-25px
  }
  .player-points strong {
    font-size:24px
  }
  .player-stats {
    margin-top:8px
  }
  .player-cards {
    position:absolute;
    right:9px;
    bottom:9px;
    max-width:60px
  }
  .player-card .player-stats {
    font-size:9px
  }
  .game-board {
    max-height:calc(100vh - 375px)
  }
  .lobby-grid {
    grid-template-columns:minmax(0,1.25fr) minmax(310px,1fr)
  }
  .game-art {
    height:276px
  }
  .game-description {
    padding:23px
  }
  .game-description h2 {
    font-size:24px
  }
  .game-meta {
    gap:12px;
    font-size:11px
  }
  .room-panel {
    padding:24px
  }
  .lobby-heading h1 {
    font-size:29px
  }
}
@media(max-width:780px) {
  .site-header {
    padding:17px 22px
  }
  .header-note {
    display:none
  }
  .header-links {
    gap:18px
  }
  .lobby,.site-footer {
    margin-left:22px;
    margin-right:22px
  }
  .lobby {
    padding-top:27px
  }
  .lobby-heading {
    padding-bottom:23px
  }
  .lobby-heading h1 {
    font-size:27px
  }
  .catalog-label {
    display:none
  }
  .lobby-grid {
    grid-template-columns:1fr
  }
  .game-art {
    height:250px
  }
  .game-description {
    padding:21px 23px
  }
  .game-blurb {
    max-width:none
  }
  .room-panel {
    padding:23px
  }
  .form-intro {
    margin-bottom:16px
  }
  .lobby-bottom {
    gap:15px;
    padding:25px 0
  }
  .benefit {
    display:block
  }
  .benefit-symbol {
    font-size:20px
  }
  .benefit h3 {
    font-size:11px;
    margin-top:5px
  }
  .benefit p {
    font-size:10px
  }
  .site-footer {
    font-size:9px
  }
  .game-shell {
    padding:13px 14px 24px
  }
  .game-toolbar {
    align-items:flex-start
  }
  .table-title {
    gap:8px;
    flex-wrap:wrap
  }
  .table-title h1 {
    font-size:19px
  }
  .table-title small {
    display:none
  }
  .table-tools {
    gap:7px
  }
  .table-tools .button {
    font-size:10px;
    padding:6px 9px;
    min-height:32px
  }
  .table-tools .connection-label {
    display:none
  }
  .game-layout {
    grid-template-columns:minmax(0,1fr);
    gap:11px
  }
  .players-panel {
    grid-column:auto;
    padding:8px
  }
  .player-stack {
    gap:6px
  }
  .player-card {
    padding:8px
  }
  .player-name {
    font-size:10px;
    gap:5px
  }
  .player-stone {
    width:7px;
    height:7px
  }
  .you-label {
    font-size:8px
  }
  .player-points {
    float:none;
    margin-top:7px
  }
  .player-points strong {
    font-size:23px
  }
  .player-stats {
    gap:7px;
    font-size:8px!important;
    flex-wrap:wrap
  }
  .player-stats .reserve-stat {
    display:none
  }
  .player-cards {
    position:static;
    max-width:none;
    margin-top:6px
  }
  .mini-card {
    font-size:8px;
    padding:0 4px
  }
  .board-frame {
    border-radius:8px
  }
  .game-board {
    min-width:470px;
    min-height:320px;
    max-height:none;
    height:auto;
    max-width:100%
  }
  .board-corner {
    font-size:8px;
    padding:9px 12px 0
  }
  .board-legend {
    font-size:9px;
    padding:7px;
    gap:12px
  }
  .hand-panel {
    padding:13px 10px;
    margin-top:9px
  }
  .hand-tokens {
    gap:8px
  }
  .hand-token {
    min-width:48px;
    padding:6px 5px 3px
  }
  .hand-token small {
    font-size:8px
  }
  .token-symbol {
    width:30px;
    height:30px
  }
  .hand-top {
    font-size:11px
  }
  .hand-top small {
    font-size:9px
  }
  .action-column {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px
  }
  .action-panel {
    grid-column:1/-1
  }
  .action-heading {
    font-size:19px
  }
  .action-copy {
    margin-bottom:10px
  }
  .draft-list {
    flex-direction:row;
    flex-wrap:wrap;
    gap:6px
  }
  .draft-list li {
    gap:14px
  }
  .action-buttons {
    margin-top:10px
  }
  .action-buttons .button {
    font-size:12px
  }
  .market-panel,.activity-panel {
    margin-top:0
  }
  .market-panel .card-options {
    grid-template-columns:repeat(2,1fr)
  }
  .activity-panel .log-list {
    max-height:240px
  }
  .info-footnote {
    display:none
  }
  .result-banner {
    padding:15px;
    align-items:flex-start
  }
  .result-banner h2 {
    font-size:20px
  }
  .result-banner p {
    font-size:11px
  }
  .waiting-wrap {
    margin-top:25px
  }
  .waiting-card {
    padding:23px
  }
  .waiting-title h1 {
    font-size:25px
  }
  .waiting-seats {
    grid-template-columns:repeat(2,1fr)
  }
  .waiting-actions {
    align-items:stretch;
    flex-direction:column
  }
  .waiting-actions>.button {
    width:100%
  }
  .rules-card-list {
    grid-template-columns:1fr
  }
  .rules-dialog,.invite-dialog {
    padding:22px
  }
  .dialog-top h2 {
    font-size:21px
  }
  .soon-note {
    font-size:10px
  }
  .brand-mark {
    width:36px;
    height:36px;
    font-size:22px;
    border-radius:9px
  }
  .brand-word {
    font-size:18px
  }
  .brand-word small {
    font-size:8px
  }
  .join-card {
    margin:35px 20px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important
  }
}
[hidden] {
  display:none!important
}
.account-name {
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  padding-left:16px;
  border-left:1px solid var(--line)
}
.auth-shell {
  width:min(1110px,calc(100% - 64px));
  margin:64px auto 72px;
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);
  gap:72px;
  align-items:center
}
.auth-story h1 {
  font-size:34px;
  line-height:1.5;
  margin:14px 0
}
.auth-story>p {
  max-width:430px;
  color:var(--muted);
  font-size:14px
}
.auth-illustration {
  margin:26px 0 20px;
  background:#e7e5d6;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden
}
.auth-illustration svg {
  width:100%;
  display:block
}
.auth-story-note {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  color:var(--muted)
}
.auth-panel {
  padding:32px;
  box-shadow:var(--shadow)
}
.auth-panel h2 {
  font-size:25px;
  margin:8px 0 22px
}
.auth-fields {
  padding:0;
  border:0;
  margin:0;
  min-width:0
}
.auth-fields .field {
  margin-bottom:18px
}
.auth-fields .button {
  margin-top:8px
}
.auth-helper {
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
  margin:16px 0
}
.auth-switch,.auth-refresh {
  display:block;
  margin-top:16px;
  color:var(--muted);
  font-size:12px
}
.auth-transport {
  padding:12px 14px;
  border:1px solid #dac9a6;
  border-radius:7px;
  background:#f1e9d5;
  color:#806635;
  font-size:12px;
  margin-bottom:22px
}
.account-rooms {
  padding:26px 30px;
  margin-top:24px
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px
}
.section-heading h2 {
  font-size:23px;
  margin-top:6px
}
.section-heading h1 {
  font-size:31px;
  margin:7px 0
}
.section-heading p {
  color:var(--muted);
  font-size:13px
}
.room-history-list {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px
}
.room-history-item {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border:1px solid var(--line);
  border-radius:7px;
  padding:14px 16px;
  text-decoration:none
}
.room-history-item:hover {
  background:#ebeee3;
  border-color:#9eae98
}
.room-history-item strong {
  font-size:14px;
  display:block;
  font-weight:600
}
.room-history-item small,.room-history-end time {
  color:var(--muted);
  font-size:11px;
  display:block
}
.room-history-end {
  display:flex;
  align-items:center;
  gap:18px;
  white-space:nowrap
}
.admin-shell {
  width:min(1040px,calc(100% - 64px));
  margin:46px auto 70px
}
.admin-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  align-items:start
}
.admin-card {
  padding:30px
}
.admin-card h2 {
  font-size:23px;
  margin:8px 0
}
.invite-capacity {
  font-size:13px;
  color:var(--muted);
  margin:18px 0
}
.invite-capacity strong {
  font-size:25px;
  color:var(--green);
  margin:0 6px
}
.generated-invite {
  border-top:1px solid var(--line);
  padding-top:22px;
  margin-top:24px
}
.generated-invite .button {
  margin-top:12px
}
.generated-invite .small {
  margin-top:12px
}
.account-user-list {
  padding:0;
  margin:18px 0;
  list-style:none
}
.account-user-list li {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 0;
  border-bottom:1px solid var(--line)
}
.account-user-list li>span:nth-child(2) {
  min-width:0;
  flex:1
}
.account-user-list strong {
  display:block;
  font-size:14px;
  overflow-wrap:anywhere
}
.account-user-list small {
  color:var(--muted);
  font-size:12px;
  overflow-wrap:anywhere
}
.account-avatar {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  background:#e4e8dc;
  color:var(--green);
  font-family:var(--serif);
  border:1px solid #d2daca;
  border-radius:50%;
  flex-shrink:0
}
@media(max-width:900px) {
  .auth-shell {
    gap:30px;
    grid-template-columns:minmax(0,1fr) minmax(300px,1fr)
  }
  .auth-story h1 {
    font-size:27px
  }
  .header-links {
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:8px 18px
  }
}
@media(max-width:650px) {
  .auth-shell {
    width:calc(100% - 36px);
    margin:32px auto;
    grid-template-columns:1fr;
    gap:24px
  }
  .auth-story h1 {
    font-size:27px
  }
  .auth-illustration {
    display:none
  }
  .auth-story-note {
    margin-top:16px
  }
  .auth-panel {
    padding:24px
  }
  .account-name {
    display:none
  }
  .room-history-list,.admin-grid {
    grid-template-columns:1fr
  }
  .account-rooms {
    padding:22px 18px
  }
  .section-heading {
    align-items:flex-start
  }
  .section-heading h2 {
    font-size:21px
  }
  .room-history-end {
    gap:10px
  }
  .admin-shell {
    width:calc(100% - 36px);
    margin:30px auto
  }
  .admin-card {
    padding:24px
  }
}
