/* Pocket Cards: a quiet, playful identity with an uninterrupted playfield. */
:root {
  --paper: #f7f8f2; --paper-2: #edf0e7; --card-bg: #fffefa;
  --ink: #253c34; --ink-soft: #64756b; --pine: #365b48; --pine-2: #446c56;
  --gold: #ebce83; --accent: #657750; --heart: #c66e60;
  --felt: #426553; --line: #dee4d9;
  --shadow: 0 5px 24px #354b3408;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
html.dark { --paper: #1b2822; --paper-2: #25372c; --card-bg: #27362e; --ink: #f1f3e8; --ink-soft: #b4c4b8; --line: #415447; --pine: #a9c3a4; --pine-2: #a9c3a4; --accent: #c4d8b1; }
html[data-table="blue"] { --felt: #456574; }
html[data-table="rose"] { --felt: #845e62; }
body { background: var(--paper); -webkit-font-smoothing: antialiased; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #be9452; outline-offset: 3px; }
.topbar { min-height: 76px; padding: 12px max(24px, calc((100% - 1200px) / 2)); background: var(--paper); color: var(--ink); box-shadow: none; border-bottom: 1px solid var(--line); gap: 30px; }
.brand { gap: 12px; min-width: 170px; }
.brand b { font-size: 17px; font-weight: 750; letter-spacing: .03em; }
.brand small { font-size: 9px; letter-spacing: .18em; opacity: .65; }
.mark { width: 40px; height: 44px; border-radius: 12px 12px 16px 16px; background: #e5eddd; color: #4a6544; font-size: 28px; transform: rotate(-7deg); }
.nav-main { gap: 6px; }
.nav-main a { color: var(--ink-soft); font-size: 13px; padding: 7px 10px; }
.nav-main a:hover, .nav-main a[aria-current] { background: var(--paper-2); color: var(--ink); }
.top-actions { margin-left: auto; flex-shrink: 0; }
.ghost { color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-size: 13px; }
.ghost:hover { background: var(--paper-2); }
.wrap { width: min(1200px, calc(100% - 48px)); margin: 24px auto 48px; }
.hero { position: relative; min-height: 350px; background: #f6f5ef; box-shadow: none; color: #253c34; padding: 32px 44px; border-radius: 26px; gap: 0; margin-bottom: 36px; }
.hero-copy { position: relative; z-index: 1; flex: 1; }
.eyebrow { background: none; color: var(--ink-soft); font-size: 10px; padding: 0; letter-spacing: .18em; font-weight: 650; margin-bottom: 14px; border-radius: 0; }
.hero .eyebrow { color: #6a7b62; }
.hero h1 { font-family: inherit; font-size: clamp(34px, 3.5vw, 48px); font-weight: 700; letter-spacing: -.055em; line-height: 1.4; margin-bottom: 14px; }
.title-dot { color: #c77b66; }
.hero p { color: #6a7569; font-size: 14px; line-height: 1.9; margin-bottom: 22px; }
.hero-art { width: 49%; height: 310px; object-fit: contain; mix-blend-mode: multiply; mask-image: radial-gradient(ellipse 65% 66% at 50% 50%, #000 56%, transparent 100%); }
.hero-cta { gap: 10px; }
.btn-primary, .btn-soft, .start-button { border-radius: 12px; font-size: 14px; font-weight: 600; padding: 13px 22px; transition: background .15s, transform .15s; }
.btn-primary, .start-button { background: #365b48; color: #fffef8; border: 1px solid #365b48; }
.btn-primary:hover, .start-button:hover { background: #284938; transform: translateY(-1px); }
.btn-primary span { margin-left: 16px; }
.btn-soft { color: #365b48; border: 1px solid #cfd9ca; background: transparent; }
.btn-soft:hover { background: #e7ecdf; }
.collection-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.collection-head .eyebrow { margin: 0 0 7px; font-size: 9px; }
.collection-head h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; font-weight: 650; }
.daily-link { color: var(--pine); font-size: 13px; text-decoration: none; border-bottom: 1px solid var(--line); padding: 8px 0; }
.daily-link span { margin-left: 16px; }
.catalog-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 20px 0 28px; }
.chips-row { margin: 0; gap: 6px; }
.filter { color: var(--ink-soft); background: transparent; border-color: transparent; border-radius: 9px; padding: 9px 14px; font-size: 13px; }
.filter.on, html.dark .filter.on { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
input[type="search"] { width: 220px; border: 1px solid var(--line); background: var(--card-bg); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.menu.rich { grid-template-columns: 1fr; gap: 30px; }
.menu.rich .col { border: none; background: transparent; padding: 0; box-shadow: none; }
.menu.rich .col h2 { color: var(--ink-soft); font-size: 13px; font-weight: 500; margin: 0 0 14px; }
.menu.rich .col h2 em { margin-left: 0; font-size: 10px; }
.menu.rich .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.menu.rich .tile { display: flex; flex-direction: column; align-items: stretch; padding: 8px 8px 14px; gap: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--card-bg); box-shadow: none; overflow: hidden; }
.menu.rich .tile:hover { background: var(--card-bg); border-color: #a2b39a; box-shadow: 0 8px 24px #344b3310; transform: translateY(-3px); }
.tile .tt, .tile .pl { padding: 0 9px; opacity: 1; }
.tile .tt { margin-top: 13px; gap: 5px; }
.tile .tt strong { color: var(--ink); font-weight: 650; font-size: 15px; }
.tile .tt small { font-size: 11px; color: var(--ink-soft); }
.tile .pl { display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); font-size: 10px; margin-top: 14px; }
.tile .pl > span { opacity: 1; font-size: 16px; }
.tile-art { position: relative; display: block; height: 118px; background: #e8eee2; border-radius: 11px; overflow: hidden; opacity: 1 !important; }
.tile-art.art-trick { background: #f1e8df; }
.tile-art.art-card { background: #e9edf0; }
.tile-art.art-misc { background: #eeebde; }
.little-card { position: absolute; left: calc(50% - 28px); top: 14px; width: 58px; height: 85px; background: #fffdf4; border: 1px solid #d7ddcf; border-radius: 7px; box-shadow: 1px 5px 7px #40563a15; color: #53654e; font-style: normal; }
.little-card.rear { transform: translateX(-20px) rotate(-16deg); background: #90a68a; top: 17px; }
.little-card.rear::after { content: ""; position: absolute; inset: 5px; border: 1px solid #c8d6bd; border-radius: 3px; }
.little-card.front { transform: translateX(10px) rotate(10deg); }
.little-card.front b { position: absolute; top: 6px; left: 7px; font: 18px Georgia, serif; }
.little-card.front span { position: absolute; left: 0; width: 100%; top: 27px; text-align: center; opacity: 1; font-size: 32px; }
.art-trick .little-card.front { color: #c87968; }
.art-trick .little-card.rear { background: #c9a294; }
.art-card .little-card.rear { background: #879da9; }
.art-spark { position: absolute; left: calc(50% + 55px); top: 24px; font-size: 14px; color: #929d78; font-style: normal; }
.little-board { display: block; position: absolute; width: 83px; height: 83px; left: calc(50% - 42px); top: 18px; border: 6px solid #d5cdb4; background: repeating-conic-gradient(#b0bba0 0% 25%, #ecebdd 0% 50%) 0 / 28px 28px; border-radius: 4px; transform: rotate(-9deg); opacity: .9 !important; }
.little-piece { position: absolute; inset: 24px 0 0; text-align: center; color: #425842; font: 60px/1 Georgia, serif; text-shadow: 0 3px 0 #f4f1e1; }
.no-results { padding: 60px 20px; text-align: center; color: var(--ink-soft); }
.recommendations { margin: 40px 0 0; }
.recommendations-label { font-size: 9px; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 12px; }
.recommendations-label span { letter-spacing: 0; margin-left: 14px; font-size: 11px; }
.product-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product-link { display: flex; align-items: center; gap: 16px; padding: 20px; text-decoration: none; border-radius: 15px; background: #eceaf1; color: #5c576a; border: 1px solid transparent; }
.product-link.creator { background: #e9eddf; color: #536246; }
.product-link:hover { border-color: currentColor; }
.product-symbol { width: 42px; height: 52px; border: 1px solid #aca3bf; border-radius: 8px; display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.creator .product-symbol { border-color: #a4b18e; }
.product-link small { display: block; font-size: 10px; margin-bottom: 3px; opacity: .8; }
.product-link b { display: block; font-size: 14px; font-weight: 600; }
.product-link span span { display: block; font-size: 11px; margin-top: 4px; opacity: .8; }
.product-arrow { margin-left: auto; font-size: 20px; }
.site-foot { width: min(1200px, calc(100% - 48px)); }
.prose { gap: 40px; padding-top: 32px; }
.prose h2 { font-size: 13px; font-family: inherit; }
.prose p { font-size: 11px; line-height: 1.8; }
.family, .fine { font-size: 11px; }
.family { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 25px; }
.family a { text-decoration: none; }

/* Setup is an actual first screen, never a game running beneath an overlay. */
.is-setup .wrap { max-width: 1040px; }
.is-setup .site-foot { display: none; }
.back-link { color: var(--ink-soft); font-size: 12px; text-decoration: none; }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 60px; margin: 22px 0; }
.setup-intro { text-align: center; padding: 18px 0; }
.setup-intro .eyebrow { margin-bottom: 12px; font-size: 9px; }
.setup-intro h1 { font-size: 40px; font-weight: 650; letter-spacing: -.05em; line-height: 1.25; margin: 0; }
.setup-en { color: var(--ink-soft); font-size: 12px; margin: 9px 0 0; }
.setup-art { width: 100%; height: 245px; object-fit: contain; mix-blend-mode: multiply; margin: 5px 0; mask-image: radial-gradient(ellipse 65% 66% at 50% 50%, #000 56%, transparent 100%); }
.setup-goal { max-width: 350px; font-size: 14px; line-height: 1.9; color: var(--ink-soft); margin: 0 auto 14px; }
.text-button { border: 0; padding: 7px 0; color: var(--pine); background: none; font-size: 12px; }
.text-button span { margin-left: 10px; }
.setup-card { background: var(--card-bg); border: 1px solid var(--line); padding: 28px; border-radius: 23px; box-shadow: 0 12px 40px #3d503706; }
.setup-card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.step-label { font-size: 10px; letter-spacing: .07em; color: var(--ink-soft); }
.soft-label { background: var(--paper-2); color: var(--ink-soft); border-radius: 6px; padding: 4px 7px; font-size: 10px; white-space: nowrap; }
.setup-card h2 { font-size: 23px; letter-spacing: -.04em; font-weight: 600; margin: 19px 0 5px; }
.setup-sub { color: var(--ink-soft); font-size: 12px; margin: 0 0 22px; }
.setting-summary { display: flex; gap: 12px; align-items: center; background: var(--paper); padding: 14px; border-radius: 12px; margin: 15px 0; }
.summary-dot { width: 9px; height: 9px; border-radius: 50%; background: #85a578; box-shadow: 0 0 0 5px #85a57815; flex-shrink: 0; }
.setting-summary b { font-size: 12px; font-weight: 600; }
.setting-summary small { display: block; color: var(--ink-soft); font-size: 10px; margin-top: 4px; }
.setting-summary .soft-label { margin-left: auto; background: none; padding: 0; font-size: 9px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
.setting-row small { display: block; font-size: 10px; color: var(--ink-soft); margin-top: 4px; }
.setting-row select, .setting-row input:not([type="checkbox"]) { max-width: 59%; min-width: 0; width: 180px; padding: 8px 10px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; font-size: 12px; }
input[type="checkbox"], input[type="radio"] { accent-color: #557453; width: 17px; height: 17px; }
.table-picker { margin: 17px 0 20px; padding: 0; border: 0; }
.table-picker legend { font-size: 12px; margin-bottom: 11px; }
.swatch-row { display: flex; gap: 9px; }
.swatch { cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 8px; font-size: 10px; flex: 1; }
.swatch input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; cursor: pointer; margin: 0; }
.swatch:has(input:checked) { border-color: #71876a; background: var(--paper-2); }
.swatch:has(input:focus-visible) { outline: 3px solid #be9452; outline-offset: 2px; }
.swatch-color { width: 13px; height: 13px; border-radius: 50%; background: #426553; }
.swatch-color.blue { background: #456574; }
.swatch-color.rose { background: #845e62; }
.advanced-settings { border-top: 1px solid var(--line); }
.advanced-settings summary { cursor: pointer; font-size: 12px; padding: 15px 0; }
.advanced-settings summary span { color: var(--ink-soft); font-size: 10px; float: right; }
.reset-settings { color: var(--ink-soft); margin: 9px 0; text-decoration: underline; }
.start-button { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 8px; padding: 14px 18px; }
.start-button span { font-size: 20px; line-height: 1; }
.setup-footnote { text-align: center; color: var(--ink-soft); font-size: 9px; margin: 12px 0 0; }
.is-setup .recommendations { max-width: 900px; margin: 28px auto; }
html.dark .hero-art, html.dark .setup-art { mix-blend-mode: normal; border-radius: 20px; }
html.dark .hero { background: #f6f5ef; }

/* A viewport-sized game shell. Everything outside the playfield is deliberately small. */
body.is-playing { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.is-playing .topbar { min-height: 58px; height: 58px; flex-shrink: 0; padding-top: 6px; padding-bottom: 6px; }
.is-playing .brand .mark { width: 32px; height: 35px; font-size: 24px; border-radius: 9px 9px 12px 12px; }
.is-playing .brand b { font-size: 14px; }
.is-playing .brand small { font-size: 8px; }
.is-playing .wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; width: min(1440px, calc(100% - 32px)); margin: 0 auto; padding: 12px 0; gap: 10px; }
.is-playing .site-foot { display: none; }
.game-head { flex-shrink: 0; margin: 0; align-items: center; gap: 10px; flex-wrap: nowrap; }
.game-head .title { display: flex; align-items: baseline; gap: 15px; min-width: 0; }
.game-head .title h1 { font-family: inherit; font-size: 24px; letter-spacing: -.035em; line-height: 1.2; font-weight: 650; }
.game-head .en { font-size: 11px; color: var(--ink-soft); letter-spacing: 0; opacity: 1; }
.table-label { font-size: 10px; color: var(--ink-soft); white-space: nowrap; }
.game-head .actions { flex-wrap: nowrap; gap: 5px; }
.pill { border-radius: 9px; font-size: 11px; padding: 8px 12px; white-space: nowrap; }
.stage { display: flex; flex: 1; min-height: 0; align-items: stretch; }
.stage-main { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 8px; }
.hud { flex-shrink: 0; margin: 0; min-height: 24px; gap: 8px; flex-wrap: nowrap; font-size: 11px; }
.hud-item { border: 0; background: transparent; color: var(--ink-soft); font-size: 11px; padding: 0; white-space: nowrap; }
.hud-item + .hud-item { border-left: 1px solid var(--line); padding-left: 8px; }
.scores { gap: 4px; min-width: 0; flex-wrap: wrap; }
.chip { padding: 2px 7px; font-size: 10px; border: 0; background: var(--paper-2); }
.chip.on { background: #e3ead6; color: #405637; }
.deal-label { margin-left: auto; font-size: 10px; color: var(--ink-soft); white-space: nowrap; }
.hint { flex-shrink: 0; background: transparent; color: var(--ink-soft); margin: 0; min-height: 22px; padding: 0 2px; gap: 7px; font-size: 11px; line-height: 1.5; }
.hint-ico { animation: none; font-size: 12px; color: #889b6c; }
.rail { display: flex; flex: 1; min-height: 0; background: none; padding: 0; border-radius: 21px; box-shadow: none; }
.felt { width: 100%; height: auto; flex: 1; min-height: 0; overflow: hidden; padding: 0; border-radius: 21px; background: var(--felt); box-shadow: inset 0 0 0 1px #ffffff20; color: #f7f6e9; isolation: isolate; }
.felt::before { content: ""; position: absolute; inset: 9px; border: 1px solid #e6ecd31c; border-radius: 15px; pointer-events: none; }
#board { position: absolute; transform-origin: top left; padding: 10px 0; }
#board .table { min-width: 0 !important; gap: 18px; }
#board.table { min-width: 0; }
#board .spread { gap: 7px; justify-content: space-between; }
#board .column { display: flex; flex-direction: column; }
#board .column .card + .card { margin-top: calc(var(--card-h) * -.74); }
#board .column .card.back + .card { margin-top: calc(var(--card-h) * -.84); }
#board .stack .card { flex-shrink: 0; }
.card { color: #29372e; border: 1px solid #e6e4d9; border-radius: 7px; background: #fffdf5; box-shadow: 0 2px 2px #1d362c20, 0 5px 9px #1d362c1c; font-family: Georgia, "Songti SC", serif; }
.card.red { color: #c46055; }
.card.back { border: 3px solid #f4f1df; background: repeating-linear-gradient(45deg, transparent 0 10px, #c8d6b715 10px 11px), #8ca380; color: #eaf0da; }
.card.back::before { content: ""; position: absolute; inset: 4px; border: 1px solid #eaf0da70; border-radius: 3px; }
.back-mark { font-size: calc(var(--card-w) * .39); }
.card:disabled { filter: saturate(.6) brightness(.89); }
.card.is-selected { outline-color: #f3d482; transform: translateY(-7px); }
.corner { top: 4px; left: 5px; font-size: clamp(11px, calc(var(--card-w) * .23), 19px); }
.corner i { font-size: clamp(10px, calc(var(--card-w) * .2), 16px); }
.corner.br { bottom: 4px; right: 5px; }
.card .face { background: #eceddf80; border: 1px solid currentColor; border-radius: 50% 50% 8px 8px; inset: 22px 13px; font-size: calc(var(--card-w) * .3); }
.card .pips { inset: 25px 15px; }
.card .pip { font-size: calc(var(--card-w) * .21); }
.card .mid { display: none; }
.slot { border: 1px dashed #e4ecd76b; background: #2547361f; color: #e8eddfb5; border-radius: 7px; }
.board-btn { background: #f6f4e8; border: 1px solid #d8dfca; color: #344c3b; box-shadow: none; font-size: 13px; border-radius: 9px; padding: 8px 14px; }
.count { background: #e7edcf; color: #3a563e; bottom: -5px; font-size: 11px; min-width: 20px; }
.pause-cover { background: #243d32e8; border-radius: inherit; text-align: center; color: #f3f3e5; }
.pause-cover h2 { font-size: 26px; margin: 15px 0 6px; }
.pause-cover p { font-size: 13px; opacity: .7; margin: 0 0 24px; }
.pause-symbol { display: inline-grid; place-items: center; width: 60px; height: 70px; border: 1px solid #dae5c980; border-radius: 12px; font-size: 27px; transform: rotate(-7deg); }
.sheet { background: #233b3052; backdrop-filter: blur(6px); }
.panel { border: 1px solid var(--line); border-radius: 22px; padding: 26px; max-height: calc(100dvh - 36px); box-shadow: 0 24px 80px #1e302738; }
.panel h2 { font-family: inherit; font-size: 23px; font-weight: 650; }
.panel p { font-size: 13px; color: var(--ink-soft); }
.panel .menu { gap: 8px; }
.panel .col { box-shadow: none; }
.panel .col h2 { font-size: 15px; }
.panel .col a { font-size: 13px; }
.panel .col a span { display: none; }
.btn, .choice { border-radius: 10px; padding: 10px 15px; font-size: 13px; }
.choice { text-decoration: none; text-align: center; }
.howto { background: var(--paper-2); border-color: var(--line); color: var(--ink); padding: 14px; }
.howto .goal { font-size: 13px; }
.howto .goal b { background: #56704b; color: #fffdf2; font-size: 10px; }
.howto summary, .howto ol, .howto .tip { font-size: 12px; }
.rule-guides { display: grid; gap: 8px; margin-bottom: 22px; font-size: 12px; }

/* Compact layouts override the legacy games' fixed desktop spacing. */
#board.trick-root .table { gap: 8px; }
#board.trick-root .trick { width: auto; grid-template-columns: repeat(3, var(--card-w)); grid-template-rows: repeat(3, calc(var(--card-h) * .5)); gap: 5px 18px; padding: calc(var(--card-h) * .25) 0; }
#board.trick-root .backs { --card-w: 38px; --card-h: 53px; }
#board.trick-root .center { gap: 5px; }
#board.trick-root .center .msg { display: none; }
#board.trick-root .banner { font-size: 12px; }
#board.trick-root .mid { margin: 0; }
#board .trick-cards { grid-template-columns: repeat(3, auto); grid-template-rows: repeat(2, auto); }
#board .trick-cards .tc.pos-bottom { grid-row: 2; }
#board.trick-root .side { width: max(55px, var(--card-w)); }
#board.trick-root .fan-hand .card + .card { margin-left: calc(var(--card-w) * -.55); }
#board.trick-root .fan-hand { flex-wrap: nowrap; gap: 0; }
#board.trick-root .fan-hand.loose { gap: 6px; }
#board.trick-root .trick > .help { white-space: nowrap; font-size: 11px; }
#board.trick-root .backs.horiz .card + .card { margin-left: calc(var(--card-w) * -.82); }
#board.trick-root .backs.vert .card + .card { margin-top: calc(var(--card-h) * -.9); }
#board .seat-table { gap: 7px; }
#board .seat { padding: 5px; }
#board .play-area { background: #203d2e24; min-height: calc(var(--card-h) + 55px); }
#board .big-msg { background: none; font-size: 13px; padding: 4px 0; }
#board .hand-zone { width: 100%; }
#board .hand-zone .fan-hand { flex-wrap: nowrap; }
#board .hand-zone .fan-hand .card { margin-left: calc(var(--card-w) * -.52); }
#board .hand-zone .fan-hand .card:first-child { margin-left: 0; }
#board .bd-grid { --sq: min(52px, calc((100vw - 70px) / 8)); border: 7px solid #d6ddc8; border-radius: 9px; box-shadow: 0 6px 18px #23392d30; }
#board .bd-sq.l { background: #f1efdc; }
#board .bd-sq.d { background: #92a784; }
#board .bd-sq.g, #board .rv-sq { background: #7c9872; }
#board.game-pinochle .backs .card + .card, #board.game-skat .backs .card + .card { margin-left: calc(var(--card-w) * -.85); }
#board.game-pinochle .faces .card + .card, #board.game-skat .faces .card + .card { margin-left: calc(var(--card-w) * -.57); }
#board.game-pinochle .seat, #board.game-skat .seat { min-width: 0; }
#board.game-yacht .yt-card { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(46%, 330px); min-width: 0; gap: 3px; }
#board.game-yacht .yt-card h3, #board.game-yacht .yt-card p { grid-column: 1 / -1; margin: 3px 0; font-size: 12px; }
#board.game-yacht .yt-card .board-btn { min-width: 0; min-height: 31px; margin: 0; padding: 6px; font-size: 12px; }
#board.game-yacht .help { font-size: 11px; }
#board.game-canasta .table { gap: 7px; display: grid; grid-template-columns: 1fr 1fr; }
#board.game-canasta .table > .spread, #board.game-canasta .table > .hand-row, #board.game-canasta .table > .actions, #board.game-canasta .table > .help { grid-column: 1 / -1; }
#board.game-canasta .table > .label { margin: 0; align-self: center; }
#board.game-canasta .melds { --card-w: 40px; --card-h: 56px; }
#board.game-canasta .spread:first-child { --card-w: 32px; --card-h: 44px; }
#board.game-canasta .spread:nth-child(2) { justify-content: center; gap: 18px; --card-w: 44px; --card-h: 64px; }
#board.game-canasta .hand-row, #board.game-rummy .hand-row, #board.game-gin .hand-row { flex-wrap: nowrap; justify-content: center; gap: 0; }
#board.game-canasta .hand-row .card + .card, #board.game-rummy .hand-row .card + .card, #board.game-gin .hand-row .card + .card { margin-left: calc(var(--card-w) * -.5); }
#board.game-canasta .help { font-size: 11px; }
#board.game-pyramid .prow { gap: 7px; }
#board.game-pyramid .prow + .prow { margin-top: calc(var(--card-h) * -.5); }

@media (max-width: 1080px) {
  .nav-main { display: none; }
  .hero { padding: 30px; min-height: 320px; }
  .hero-art { width: 46%; height: 280px; }
  .menu.rich .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .setup-layout { gap: 30px; }
  .setup-card { padding: 24px; }
}
@media (max-width: 700px) {
  .topbar { min-height: 64px; padding: 10px 18px; gap: 10px; }
  .brand { min-width: 0; gap: 9px; }
  .brand b { font-size: 15px; }
  .brand small { font-size: 8px; }
  .mark { width: 33px; height: 38px; font-size: 25px; }
  .top-actions { gap: 5px; }
  .ghost { font-size: 11px; padding: 8px 10px; }
  .wrap { width: calc(100% - 32px); margin-top: 16px; }
  .hero { padding: 26px 23px 16px; min-height: 0; flex-direction: column; align-items: stretch; margin-bottom: 28px; border-radius: 22px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 12px; margin-bottom: 18px; }
  .hero .eyebrow { font-size: 8px; }
  .hero-art { width: 100%; height: 200px; margin-top: 8px; }
  .btn-primary, .btn-soft { font-size: 12px; padding: 11px 16px; border-radius: 10px; }
  .collection-head h2 { font-size: 22px; }
  .daily-link { font-size: 11px; }
  .daily-link span { margin-left: 4px; }
  .catalog-tools { flex-direction: column; align-items: stretch; gap: 12px; margin: 17px 0 24px; }
  .chips-row { flex-wrap: nowrap; justify-content: space-between; }
  .filter { padding: 8px 10px; font-size: 11px; }
  input[type="search"] { width: 100%; }
  .menu.rich .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .menu.rich .tile { padding: 6px 6px 12px; border-radius: 14px; }
  .tile-art { height: 106px; }
  .tile .tt, .tile .pl { padding: 0 5px; }
  .tile .tt strong { font-size: 13px; }
  .tile .tt small { font-size: 10px; }
  .product-links { grid-template-columns: 1fr; gap: 10px; }
  .product-link { padding: 16px; }
  .recommendations-label span { display: block; margin: 5px 0 0; }
  .prose { grid-template-columns: 1fr; gap: 18px; }
  .site-foot { width: calc(100% - 32px); }
  .setup-layout { grid-template-columns: 1fr; gap: 18px; margin-top: 12px; }
  .setup-intro { text-align: left; position: relative; padding: 12px 90px 10px 4px; min-height: 126px; }
  .setup-intro h1 { font-size: 30px; }
  .setup-intro .eyebrow { font-size: 8px; margin-bottom: 6px; }
  .setup-en { font-size: 10px; margin-top: 5px; }
  .setup-art { position: absolute; right: -4px; top: 0; width: 100px; height: 105px; margin: 0; }
  .setup-goal { font-size: 11px; margin: 12px 0 2px; line-height: 1.7; }
  .setup-intro .text-button { font-size: 10px; }
  .setup-card { border-radius: 19px; padding: 21px; }
  .setup-card h2 { font-size: 22px; }
  .is-playing .topbar { height: 50px; min-height: 50px; padding: 6px 12px; }
  .is-playing .topbar .brand small { display: none; }
  .is-playing .wrap { width: calc(100% - 16px); padding: 8px 0; gap: 7px; }
  .game-head .title h1 { font-size: 18px; white-space: nowrap; }
  .game-head .en, .table-label { display: none; }
  .game-head { gap: 6px; padding: 0 3px; }
  .pill { font-size: 10px; padding: 8px; }
  .game-head .actions { gap: 3px; }
  .hud { padding: 0 4px; flex-wrap: wrap; gap: 5px; }
  .scores { flex: 1; justify-content: flex-end; }
  .chip { font-size: 9px; padding: 2px 5px; }
  .deal-label { display: none; }
  .hint { font-size: 10px; padding: 0 4px; }
  .rail, .felt { border-radius: 15px; }
  .felt::before { inset: 6px; border-radius: 10px; }
  .stage-main { gap: 7px; }
  .card .pips, .card .face { display: none; }
  .card .mid { display: block; position: absolute; inset: 35% 0 auto; transform: none; text-align: center; font-size: calc(var(--card-w) * .4); }
  .corner, .corner.br { left: 3px; top: 3px; font-size: max(10px, calc(var(--card-w) * .23)); }
  .corner.br { top: auto; left: auto; bottom: 3px; right: 3px; }
  .corner i { font-size: max(8px, calc(var(--card-w) * .2)); }
  #board .board-btn { font-size: 12px; padding: 8px 10px; }
  #board.trick-root .mid { gap: 5px; }
  #board .seat .who { font-size: 12px; }
  .panel { padding: 22px; }
  .panel .menu { grid-template-columns: 1fr 1fr; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .is-playing .topbar { height: 42px; min-height: 42px; }
  .is-playing .wrap { padding: 5px 0; gap: 4px; }
  .game-head .title h1 { font-size: 18px; }
  .game-head .en { font-size: 10px; }
  .pill { padding: 5px 10px; }
  .stage-main { position: relative; gap: 3px; }
  .hud { min-height: 19px; }
  .hint { min-height: 16px; font-size: 9px; }
  .table-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
