:root {
  color-scheme: light;
  --bg: #f5f4ee; --surface: #fffef9; --ink: #20382c; --muted: #627064;
  --line: #d6ddd1; --green: #24553c; --lime: #d8f58b; --red: #a23535;
  --shadow: 0 8px 28px #20382c0a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary, a, select { -webkit-tap-highlight-color: transparent; }
button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 17px; border: 1px solid #b8c7b6; border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 650; font-size: 14px; line-height: 1.25; cursor: pointer; box-shadow: 0 2px 0 #20382c0b; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
button:hover:not(:disabled) { background: #eaf0e1; border-color: #77916d; box-shadow: 0 3px 8px #20382c12; transform: translateY(-1px); }
button:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #7e9f39; outline-offset: 4px; }
.primary { background: var(--green); color: #fff; border-color: #16452c; box-shadow: inset 0 1px #ffffff1f, 0 3px 0 #163c29; }
.primary:hover:not(:disabled) { background: #316a48; border-color: #16452c; box-shadow: inset 0 1px #ffffff1f, 0 3px 0 #163c29, 0 6px 14px #1e4a2820; }
.secondary { background: #f8faf3; }
.text-button { background: #ecefe5; border-color: #d0dac8; box-shadow: none; }
.compact { min-height: 44px; padding: 9px 12px; font-size: 13px; }
.icon-button, #close-settings { width: 44px; height: 44px; flex-shrink: 0; padding: 0; border-radius: 50%; background: #eef1e8; box-shadow: none; font-size: 18px; }
.danger-button { color: #fff; border-color: #902929; background: var(--red); }
.danger-button:hover:not(:disabled) { background: #8c2727; border-color: #782121; }
.danger-button.subtle { background: #fff1ed; color: #963030; border-color: #ebc8bd; box-shadow: none; }
.danger-button.subtle:hover:not(:disabled) { background: #ffe3da; border-color: #c48c7f; }
label { display: block; font-size: 14px; font-weight: 650; }
input, select { display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 12px 14px; color: var(--ink); border: 1px solid #b8c7b6; border-radius: 9px; background-color: #fff; font-size: 15px; box-shadow: inset 0 1px 2px #20382c05; }
select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2320382c' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; cursor: pointer; }
input:disabled, select:disabled { opacity: .55; background-color: #e9ede4; cursor: not-allowed; }
.optional, .fineprint { font-weight: 400; color: var(--muted); }
.fineprint { font-size: 13px; line-height: 1.65; }
header { max-width: 1220px; height: 82px; padding: 0 32px; margin: auto; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 760; letter-spacing: -.8px; }
.brandmark { display: grid; place-items: center; width: 42px; height: 44px; border-radius: 12px; color: var(--lime); background: var(--ink); font: bold 32px Georgia, serif; box-shadow: 0 3px 0 #13271b; }
.domain { color: var(--muted); letter-spacing: 0; font-size: 12px; font-weight: 500; }
.header-note { color: #52704e; font-size: 12px; display: flex; gap: 8px; align-items: center; }
.header-note i { width: 7px; height: 7px; border-radius: 50%; background: #75a23a; box-shadow: 0 0 0 4px #dce8cd; margin-right: 5px; }
main { max-width: 1160px; margin: auto; padding: 36px 28px; }
#lobby { max-width: 940px; margin: auto; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: 1.8px; }
.intro { margin: 0 0 28px; }
.intro h1 { font: 52px/1.1 Georgia, serif; letter-spacing: -1.8px; margin: 12px 0; }
.intro p { color: var(--muted); font-size: 15px; margin: 0; }
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.game-card { padding: 24px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.game-title { display: flex; align-items: center; justify-content: space-between; }
.game-title h2 { margin: 0 0 4px; font: 33px/1.2 Georgia, serif; letter-spacing: -.6px; }
.game-title p { font-size: 14px; color: var(--muted); margin: 0; }
.game-symbol { font: 42px Georgia, serif; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid #cfdbbe; border-radius: 14px; color: #4c6b38; background: #edf2df; }
.chess-preview { position: relative; display: flex; justify-content: center; align-items: center; height: 216px; background: #e8eddf; border-radius: 12px; margin: 20px 0; overflow: hidden; }
.mini-board { width: 184px; aspect-ratio: 1; display: grid; grid-template-columns: repeat(8,1fr); border: 4px solid #425c3e; border-radius: 4px; box-shadow: 0 6px 10px #20382c20; }
.mini-board span { display: grid; place-items: center; aspect-ratio: 1; background: #edf0dd; }
.mini-board span:nth-child(16n+2),.mini-board span:nth-child(16n+4),.mini-board span:nth-child(16n+6),.mini-board span:nth-child(16n+8),.mini-board span:nth-child(16n+9),.mini-board span:nth-child(16n+11),.mini-board span:nth-child(16n+13),.mini-board span:nth-child(16n+15) { background: #98ad86; }
.mini-board img { width: 93%; height: 93%; }
.art-caption { display: none; }
.poker-art { height: 216px; border-radius: 12px; background: #244e3a; display: flex; align-items: center; justify-content: center; margin: 20px 0; box-shadow: inset 0 0 0 7px #ffffff08; overflow: hidden; }
.poker-art div { width: 90px; height: 128px; border: 1px solid #fffef8; border-radius: 9px; padding: 12px; background: #fffbed; color: #233d31; font: bold 27px Georgia, serif; transform: rotate(-15deg); box-shadow: 0 9px 15px #10291c55; }
.poker-art div span { display: block; text-align: center; font-size: 51px; }
.poker-art div+div { transform: rotate(14deg); color: #b74438; margin: 12px 0 0 -22px; }
.quick-play { width: 100%; min-height: 52px; font-size: 16px; justify-content: space-between; padding-inline: 20px; }
.quick-play span { font-size: 21px; font-weight: 400; }
.quick-detail { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 16px; color: var(--muted); font-size: 13px; }
.quick-detail button { color: var(--ink); flex-shrink: 0; }
.human-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.human-options button { background: #edf2e6; border-color: #bdccae; font-size: 13px; padding-inline: 10px; }
.lobby-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; font-size: 13px; color: var(--muted); }
.resume { width: 100%; justify-content: space-between; margin-bottom: 24px; padding: 16px 20px; border-color: #afc490; background: #e5efcf; font-size: 15px; }
.resume span { font-size: 13px; }
footer { max-width: 1104px; margin: 0 auto; padding: 24px 0 30px; border-top: 1px solid var(--line); color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; }
footer .brand { font: bold 25px Georgia, serif; color: var(--ink); }
dialog { max-width: min(460px, calc(100vw - 32px)); width: 460px; max-height: calc(100dvh - 40px); padding: 28px; border: 1px solid #c4d0ba; border-radius: 20px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 90px #0f251e45; }
dialog::backdrop { background: #10251dc2; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
dialog h2 { margin: 0; font: 29px/1.2 Georgia, serif; letter-spacing: -.5px; }
dialog p { color: var(--muted); font-size: 14px; line-height: 1.7; }
#start-form, #name-form { display: grid; gap: 20px; margin-top: 24px; }
#start-form .fineprint { margin: 0; }
#start-form>.primary, #name-form>.primary { width: 100%; }
.action-row { display: flex; gap: 10px; margin: 18px 0; }
.action-row>* { flex: 1; }
.play-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
#room-label { font-size: 13px; color: var(--muted); background: #e9eee0; padding: 7px 12px; border-radius: 20px; }
.play-grid { display: grid; grid-template-columns: minmax(0,650px) minmax(280px,350px); gap: 28px; justify-content: center; align-items: start; }
.playing-surface { width: 100%; min-width: 0; }
.player-strip { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; gap: 10px; font-size: 14px; font-weight: 650; }
.player-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
#opponent, #you { overflow-wrap: anywhere; }
#opponent-detail, #your-detail { color: var(--muted); font-size: 12px; font-weight: 500; text-align: right; flex-shrink: 0; }
.avatar { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; background: #e7edda; border: 1px solid #c4d3b4; border-radius: 9px; font-size: 12px; }
.opponent-avatar { background: #2d4a36; color: #f5f5e9; border-color: #2d4a36; font-size: 22px; }
.board { display: grid; grid-template-columns: repeat(8,1fr); width: 100%; aspect-ratio: 1; border: 7px solid #405b3d; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 20px #18332314; }
.square { position: relative; display: grid; place-items: center; padding: 0; min-height: 0; width: 100%; aspect-ratio: 1; background: #edf0db; border: 0; border-radius: 0; box-shadow: none; transform: none; user-select: none; -webkit-user-select: none; }
.square.dark { background: #93aa81; }
.square:hover:not(:disabled),.square:active:not(:disabled) { background: #edf0db; transform: none; box-shadow: none; border: 0; }
.square.dark:hover:not(:disabled) { background: #93aa81; }
.square.last,.square.last:hover:not(:disabled) { background: #dce39a; }
.square.dark.last,.square.dark.last:hover:not(:disabled) { background: #bac96f; }
.square.selected,.square.selected:hover:not(:disabled) { background: #f0d877; }
.square .piece { display: grid; place-items: center; position: relative; width: 90%; height: 90%; pointer-events: none; z-index: 1; }
.piece img { display: block; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 2px 1px #14291828); }
.square.movable { cursor: grab; touch-action: none; }
.square.movable:active { cursor: grabbing; }
.square.legal:after { content: ''; position: absolute; width: 24%; height: 24%; border-radius: 50%; background: #32542a42; }
.square.legal.capture:after { width: 88%; height: 88%; background: transparent; border: 5px solid #45673680; }
.square.drop-target { box-shadow: inset 0 0 0 5px #d3ad32 !important; }
.square.drag-source .piece { opacity: .15; }
.square:focus-visible { outline: 3px solid #1c492f; outline-offset: -3px; z-index: 3; }
.coord { position: absolute; font: 600 11px ui-sans-serif,system-ui; color: #36502d; z-index: 2; pointer-events: none; line-height: 1; }
.coord.rank { left: 4px; top: 4px; }.coord.file { right: 4px; bottom: 3px; }
.drag-ghost { position: fixed; width: 70px; height: 70px; z-index: 1000; pointer-events: none; transform: translate(-50%,-50%); filter: drop-shadow(0 8px 5px #0d271b55); }
.drag-ghost img { width: 100%; height: 100%; }
aside { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); min-width: 0; }
.status-block { padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
#game-type { color: #617c4a; font-size: 10px; }
#status { font: 29px/1.2 Georgia,serif; margin: 12px 0; letter-spacing: -.5px; }
#substatus { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }
.turn-banner { display: none; }
summary { list-style: none; cursor: pointer; min-height: 44px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #d0dbc5; border-radius: 9px; background: #f0f4e9; font-size: 14px; font-weight: 650; letter-spacing: 0; }
summary::-webkit-details-marker { display: none; }
summary:after { content: ''; width: 7px; height: 7px; border-right: 1.8px solid; border-bottom: 1.8px solid; transform: rotate(45deg); margin: -4px 2px 0 0; flex-shrink: 0; }
details[open]>summary:after { transform: rotate(225deg); margin-top: 4px; }
summary:hover { background: #e5eddb; }
details { margin-top: 12px; }
.history .eyebrow { font-size: 13px; letter-spacing: 0; }
#history { margin: 10px 0 0; padding: 0 0 0 24px; font-size: 13px; line-height: 2; max-height: 190px; overflow-y: auto; scrollbar-width: thin; }
#history.chess-history { display: grid; grid-template-columns: 1fr 1fr; padding: 0; list-style: none; gap: 2px; }
#history.chess-history li { padding: 3px 10px; border-radius: 4px; background: #f0f2e9; }
.empty-state { color: var(--muted); font-size: 13px; padding: 16px 12px; margin: 8px 0 0; border: 1px dashed #c8d4bd; border-radius: 8px; text-align: center; }
#bot-options label { margin-top: 14px; }
#play-again { width: 100%; margin-top: 12px; }
#resign { width: 100%; margin-top: 18px; }
#another-game { width: 100%; margin-top: 18px; }
.rules-details p { margin: 12px 3px 0; }
#waiting p { font-size: 14px; color: var(--muted); }
#invite, #share-link { font-size: 13px; }
#copy-waiting, #cancel-waiting { width: 100%; margin-top: 12px; }
.waiting-pulse { width: 28px; height: 28px; border: 3px solid #d8e4cc; border-top-color: #518134; border-radius: 50%; animation: spin 1.3s linear infinite; margin: 18px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
#promotion { background: #edf6d8; padding: 16px; border: 1px solid #bfd394; border-radius: 10px; margin-bottom: 18px; }
#promote { width: 100%; margin-top: 12px; }
.felt { position: relative; display: flex; flex-direction: column; justify-content: space-around; align-items: center; gap: 22px; min-height: 490px; padding: 26px 16px; color: #fffce9; background: radial-gradient(ellipse at 50% 45%,#366b4c,#204b35); border: 10px solid #4d6048; border-radius: 110px; box-shadow: inset 0 0 0 2px #9db18533, inset 0 0 45px #0b302b44, 0 8px 20px #18332314; }
.hand { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 86px; }
.playing-card { width: 60px; height: 86px; border-radius: 7px; border: 1px solid #f2e8cb; background: #fffcf0; color: #1a3829; font: bold 26px/1.05 Georgia,serif; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 4px 0 #0b251c33; }
.playing-card.red { color: #b53732; }
.playing-card.back { border: 4px solid #e7edcf; background: repeating-linear-gradient(45deg,#6b875c,#6b875c 3px,#8ca576 3px,#8ca576 6px); box-shadow: inset 0 0 0 2px #abc491,0 4px 0 #0b251c33; }
.playing-card.empty { border: 1px dashed #b9d2a660; box-shadow: none; background: #eaf6b505; }
.table-center { text-align: center; }
.table-center .eyebrow { color: #d1e2bb; font-size: 10px; }
#pot { font: 30px/1.3 Georgia,serif; padding: 10px 0 16px; }
#street { font-size: 12px; color: #d8e4c7; padding-top: 13px; }
#poker-actions .action-row { margin-top: 0; }
#poker-actions .action-row button { min-height: 50px; font-size: 15px; }
#raise-label { font-size: 13px; }
#raise-amount { font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 650; }
.bet-presets { display: flex; gap: 6px; margin-top: 10px; }
.bet-presets button { flex: 1; padding: 9px 5px; min-height: 42px; font-size: 12px; background: #eef3e5; border-color: #bbcea8; }
.bet-presets button[aria-pressed=true] { color: #fff; background: #406a36; border-color: #406a36; }
#raise, #next-hand { width: 100%; margin-top: 12px; }
#next-hand { min-height: 50px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); width: max-content; padding: 15px 22px; border: 1px solid #4a6952; border-radius: 12px; background: #203d2d; color: #fff; box-shadow: 0 8px 30px #19362540; font-size: 14px; z-index: 2000; }
#connection-status { padding: 12px; margin: 0 0 14px; background: #fff1d6; border: 1px solid #dfc78c; border-radius: 9px; font-size: 13px; color: #705517; }
button[aria-busy=true]:after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@media (max-width: 1100px) { .play-grid { grid-template-columns: minmax(0,1fr) 300px; gap: 20px; } aside { padding: 18px; } footer { margin-inline: 28px; } .felt { min-height: 430px; border-radius: 90px; } .playing-card { width: 48px; height: 72px; } .hand { min-height: 72px; gap: 6px; } }
@media (max-width: 760px) {
  header { height: 68px; padding: 0 20px; }.header-note,.domain { display: none; } .brand { font-size: 22px; }.brandmark { width: 36px; height: 38px; font-size: 28px; }
  main { padding: 24px 18px; } .intro { margin-bottom: 22px; }.intro h1 { font-size: 42px; }.intro p { font-size: 14px; } .games { gap: 16px; }.game-card { padding: 18px; }.game-title h2 { font-size: 29px; }.game-title p { font-size: 13px; }.game-symbol { display: none; }.quick-detail { flex-wrap: wrap; }.quick-detail button { width: 100%; }.human-options { grid-template-columns: 1fr; }
  .play-grid { grid-template-columns: 1fr; gap: 18px; }.playing-surface { max-width: 620px; margin: auto; }.board { border-width: 5px; }.player-strip { padding: 9px 1px; }.play-heading { margin-bottom: 10px; } #room-label { display: none; } .play-heading button { min-height: 44px; font-size: 13px; padding: 10px 13px; }
  .turn-banner { display: block; background: #e9eedf; border: 1px solid #d1dbc7; color: var(--ink); border-radius: 9px; padding: 11px 14px; font-size: 14px; font-weight: 700; margin-bottom: 8px; }.turn-banner.your-turn { background: #e1f2b8; border-color: #bbd888; }
  aside { padding: 18px; }.status-block { padding-bottom: 12px; margin-bottom: 14px; }#game-type,#status { display: none; }#substatus { font-size: 13px; }.coord { font-size: 10px; }.avatar { width: 26px; height: 26px; }.player-strip { font-size: 13px; }#opponent-detail,#your-detail { font-size: 12px; }
  .felt { min-height: 290px; border-radius: 65px; border-width: 7px; padding: 16px 12px; gap: 12px; }.playing-card { width: 45px; height: 63px; font-size: 22px; }.hand { min-height: 63px; gap: 6px; }#pot { font-size: 26px; padding: 7px 0 10px; }#street { font-size: 11px; padding-top: 9px; }.table-center .eyebrow { font-size: 9px; }
  body.poker-playing main { padding-top: 14px; }body.poker-playing .play-grid { gap: 10px; }body.poker-playing .play-heading { margin-bottom: 8px; }body.poker-playing .status-block { display: none; }body.poker-playing .felt { min-height: 246px; gap: 8px; padding: 12px; }body.poker-playing .playing-card { width: 40px; height: 55px; font-size: 20px; }body.poker-playing .hand { min-height: 55px; }body.poker-playing .table-center .eyebrow { display: none; }body.poker-playing #pot { padding: 4px 0 8px; font-size: 24px; }body.poker-playing #street { padding-top: 6px; }
  body.poker-playing .player-strip { padding: 6px 1px; }body.poker-playing aside { padding: 14px; }body.poker-playing #poker-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }body.poker-playing #poker-actions .action-row { grid-column: 1/-1; margin: 0; }body.poker-playing #raise-label { grid-column: 1; font-size: 11px; }body.poker-playing #raise-amount { min-height: 44px; height: 44px; margin-top: 4px; padding: 8px 10px; }body.poker-playing .bet-presets { grid-column: 1/-1; grid-row: 3; margin: 0; }body.poker-playing #raise { grid-column: 2; grid-row: 2; align-self: end; margin: 0; height: 44px; min-height: 44px; }body.poker-playing .bet-presets button { min-height: 44px; }
  dialog { padding: 22px; border-radius: 16px; }dialog h2 { font-size: 26px; }.dialog-heading { gap: 12px; } footer { margin-inline: 18px; flex-wrap: wrap; gap: 12px 20px; font-size: 11px; padding: 20px 0; }.lobby-footer { align-items: flex-start; font-size: 12px; }.lobby-footer button { flex-shrink: 0; }.resume { padding: 14px; font-size: 14px; }
}
@media (max-width: 560px) {
  .intro h1 { font-size: 38px; margin: 10px 0; }.intro .eyebrow { font-size: 10px; }.intro p { max-width: 300px; }
  .games { grid-template-columns: 1fr; gap: 18px; }.game-card { display: grid; grid-template-columns: minmax(0,1fr) 106px; gap: 12px 14px; padding: 18px; border-radius: 16px; }.game-title { grid-column: 1; align-self: start; }.game-title h2 { font-size: 30px; }.game-title p { font-size: 13px; line-height: 1.4; }.chess-preview,.poker-art { grid-column: 2; grid-row: 1/3; width: 106px; height: 106px; margin: 0; border-radius: 10px; }.mini-board { width: 94px; border-width: 3px; }.poker-art div { width: 45px; height: 66px; padding: 5px; font-size: 16px; border-radius: 5px; }.poker-art div span { font-size: 29px; }.poker-art div+div { margin-left: -15px; }
  .quick-play { grid-column: 1; min-height: 46px; font-size: 15px; padding-inline: 12px; gap: 4px; }.quick-play span { font-size: 19px; }.quick-detail { grid-column: 1/-1; display: flex; flex-wrap: nowrap; margin: 0; font-size: 12px; }.quick-detail button { width: auto; min-height: 44px; padding: 9px 11px; }.human-options { grid-column: 1/-1; grid-template-columns: 1fr 1fr; padding-top: 12px; gap: 9px; }.human-options button { font-size: 13px; min-height: 44px; padding: 9px; }.lobby-footer { flex-direction: column; gap: 10px; margin-top: 18px; }.lobby-footer button { width: 100%; }.resume span { display: none; }#opponent,#you { max-width: 200px; }
}
@media (max-width: 359px) { main { padding-inline: 12px; }.game-card { padding: 14px; grid-template-columns: minmax(0,1fr) 88px; gap: 10px; }.chess-preview,.poker-art { width: 88px; height: 96px; }.mini-board { width: 82px; }.quick-detail { font-size: 11px; }.quick-detail button { font-size: 12px; }.human-options button { font-size: 12px; }#opponent-detail,#your-detail { font-size: 11px; }.player-strip { gap: 6px; }.coord { font-size: 9px; }.game-title h2 { font-size: 27px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
#mobile-result { display: none; }
button[aria-busy=true] { opacity: 1; }
@media (min-width: 761px) { body:not(.poker-playing) .playing-surface { width: min(100%, calc(100dvh - 285px)); justify-self: center; } }
@media (max-width: 760px) {
  #mobile-result { display: block; padding: 10px 13px; margin: 0 0 10px; border: 1px solid #cadbbb; border-radius: 8px; color: #25482e; background: #f3f8e8; font-size: 14px; line-height: 1.5; }
  #toast { top: 12px; bottom: auto; }
}
@media (max-width: 760px) and (max-height: 740px) {
  body.poker-playing header { height: 56px; }
  body.poker-playing main { padding-top: 10px; }
  body.poker-playing .felt { min-height: 218px; border-radius: 50px; padding: 10px; gap: 6px; }
  body.poker-playing .playing-card { width: 35px; height: 47px; font-size: 18px; }
  body.poker-playing .hand { min-height: 47px; }
  body.poker-playing .turn-banner { padding-block: 8px; }
  body.poker-playing .player-strip { padding-block: 4px; }
}
.coach { margin: 0 0 18px; padding: 15px; border: 1px solid #c3d6b0; border-radius: 12px; background: #f2f7e9; }
.coach-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.coach-heading .eyebrow { font-size: 9px; letter-spacing: 1.2px; color: #587444; }
.coach h3 { margin: 2px 0 0; font: 24px Georgia,serif; }
.coach-toggle { padding: 8px; min-height: 44px; background: #fffef9; font-size: 12px; box-shadow: none; }
.toggle-track { display: inline-block; position: relative; width: 30px; height: 18px; border-radius: 12px; background: #b7c0b0; }
.toggle-track:after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: white; transition: transform .15s; }
.coach-toggle[aria-checked=true] .toggle-track { background: #37603a; }.coach-toggle[aria-checked=true] .toggle-track:after { transform: translateX(12px); }
.coach h4 { font-size: 13px; margin: 16px 0 10px; }.coach #coach-message { font-size: 13px; color: #4b6144; }
.coach-move { display: grid; grid-template-columns: 20px 1fr auto; gap: 2px 8px; width: 100%; min-height: 56px; padding: 9px; margin-top: 6px; border: 1px solid #d6e0cb; border-radius: 8px; background: #fffef9; color: #213d2b; text-align: left; box-shadow: none; font-size: 14px; }
.coach-rank { font-size: 11px; grid-row: 1/3; align-self: center; color: #697a60; }.coach-score { font-weight: 750; font-size: 13px; font-variant-numeric: tabular-nums; }.coach-move small { grid-column: 2/-1; font-size: 11px; font-weight: 400; color: #63745c; overflow-wrap: anywhere; }
.coach-note { font-size: 11px; line-height: 1.6; color: #63745c; margin: 12px 0 0; }.coach-equity { font-size: 12px; color: #375c35; margin: 6px 0 12px; }.coach-action { display: grid; grid-template-columns: 1fr auto; gap: 5px; font-size: 13px; margin: 10px 0; }
.coach-action progress { grid-column: 1/-1; appearance: none; width: 100%; height: 7px; border: 0; border-radius: 8px; overflow: hidden; background: #dbe5ce; }.coach-action progress::-webkit-progress-bar { background: #dbe5ce; border-radius: 8px; }.coach-action progress::-webkit-progress-value { background: #598340; border-radius: 8px; }.coach-action progress::-moz-progress-bar { background: #598340; border-radius: 8px; }
#coach-played { font-size: 12px; line-height: 1.6; }.coach summary { font-size: 12px; padding: 10px; background: #e6efd9; }.coach-retry { display: block; width: 100%; margin-top: 12px; font-size: 12px; }.square.coach-target { box-shadow: inset 0 0 0 4px #37794c !important; }
@media (max-width: 760px) { body.poker-playing aside { display: flex; flex-direction: column; } body.poker-playing #poker-actions { order: -3; } body.poker-playing #next-hand { order: -2; } body.poker-playing #connection-status { order: -4; } body.poker-playing .coach { margin-top: 16px; } .coach { padding: 14px; } }
body.poker-playing aside { display: flex; flex-direction: column; }
body.poker-playing .status-block { order: -5; }
body.poker-playing #connection-status { order: -4; }
body.poker-playing #poker-actions { order: -3; }
body.poker-playing #next-hand { order: -2; margin-bottom: 14px; }
body.poker-playing .coach { margin-top: 18px; }

.coach-move { min-height: 44px; }.coach-rank { grid-row: 1; }
