@charset "UTF-8";
:root {
  --ink:#183b32; --green:#123f35; --felt:#1d5948; --cream:#f4f0e5;
  --paper:#fffdf5; --gold:#b59655; --muted:#5f715f; --border:#d5dbc9;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px; color:var(--ink); background:var(--cream); font-synthesis:none; color-scheme:light;
}
* { box-sizing:border-box; }
body { margin:0; min-width:320px; background:radial-gradient(ellipse at 12% 1%,#fbf9f0 0,transparent 56%),var(--cream); }
button,select,input { font:inherit; }
button { cursor:pointer; -webkit-tap-highlight-color:transparent; touch-action:manipulation; border:0; }
button:disabled { cursor:default; }
button,select { min-height:48px; }
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible { outline:3px solid #dca131; outline-offset:4px; }
button:not(:disabled) { transition:background .16s,box-shadow .16s,transform .16s; }
button:not(:disabled):active { transform:translateY(1px); }
[hidden] { display:none!important; }
.skip-link { position:fixed; z-index:100; left:12px; top:-80px; background:var(--paper); padding:14px; color:var(--green); }
.skip-link:focus { top:12px; }
.game-shell { width:100%; max-width:1140px; margin:auto; padding:0 26px max(20px,env(safe-area-inset-bottom)); }
.masthead { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:22px 0 20px; }
.brand { display:block; font-size:11px; letter-spacing:3px; font-weight:750; color:#6a785f; margin-bottom:3px; }
.wordmark h1 { font-family:Georgia,"Times New Roman",serif; font-size:42px; letter-spacing:-1.4px; font-weight:400; line-height:1; margin:0; }
.wordmark h1 span { color:var(--gold); }
.header-actions { display:flex; gap:10px; align-items:center; }
.quiet-button { color:var(--green); background:#ffffff65; padding:8px 13px; font-size:17px; font-weight:650; border:1px solid var(--border); border-radius:11px; }
.quiet-button:hover { background:#e8e8dc; }
.quiet-button span { margin-left:4px; font-family:Georgia,serif; color:#917334; font-size:23px; vertical-align:-1px; }
main,.play-area,.turn-area { min-width:0; }
.scoreboard { display:grid; grid-template-columns:minmax(0,1fr) 205px minmax(0,1fr); gap:16px; align-items:stretch; margin-bottom:16px; }
.score-player { border:1px solid var(--border); border-radius:15px; padding:15px 16px; background:#ffffff85; transition:border-color .2s,background .2s; min-width:0; min-height:76px; align-self:center; display:flex; align-items:center; }
.score-player.active { border-color:#80966b; background:#fffdf4; box-shadow:0 2px 0 #d4dcc9; }
.player-label { width:100%; font-size:18px; font-weight:650; display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.player-dot { height:8px; width:8px; border-radius:50%; background:#37775a; flex-shrink:0; }
.computer-dot { background:#a18a52; }
.match-count { font-size:19px; margin-left:auto; font-weight:750; font-variant-numeric:tabular-nums; }
.match-unit { font-size:15px; font-weight:400; color:var(--muted); }
.round-heading { display:grid; grid-template-columns:auto auto; align-items:center; justify-content:center; gap:2px 7px; text-align:center; padding:0; }
.round-heading>span:first-child { grid-column:1/-1; font-size:16px; font-weight:600; }
.round-heading strong { font-family:Georgia,serif; font-size:30px; font-weight:400; line-height:1; }
.round-heading>span:nth-of-type(2),.round-heading small { font-size:15px; line-height:1.35; color:var(--muted); }
.round-heading small { grid-column:1/-1; margin-top:0; }
.opponent-zone { display:grid; grid-template-columns:minmax(0,1fr) 174px; align-items:center; gap:20px; max-width:680px; min-height:170px; margin:0 auto 14px; }
.opponent-hand-zone { min-width:0; display:flex; align-items:center; flex-direction:column; gap:10px; }
.opponent-hand { display:flex; justify-content:center; gap:5px; min-height:51px; }
.opponent-card { width:34px; aspect-ratio:2/3; border-radius:5px; box-shadow:0 3px 6px #153a3020; transform:rotate(var(--rotation,0deg)); display:block; }
.opponent-status { font-size:17px; color:var(--ink); text-align:center; min-height:22px; font-weight:600; }
.opponent-hand-label { font-size:14px; color:var(--muted); }
.opponent-status.thinking:after { content:""; animation:dots 1.3s infinite; }
@keyframes dots { 0%,100%{content:""}30%{content:" ."}60%{content:" . ."}90%{content:" . . ."} }
.computer-pile { display:flex; align-items:center; flex-direction:column; width:174px; min-height:166px; border:1px solid var(--border); border-radius:14px; padding:8px 4px; background:#ffffff5e; color:var(--ink); text-align:center; }
.computer-pile.has-tricks { background:#fffaf0; border-color:#bdc5aa; box-shadow:0 2px 0 #d4dcc9; }
.computer-pile.has-tricks:hover { background:#fffcf5; box-shadow:0 3px 9px #23452b22; }
.pile-title { font-size:16px; line-height:1.3; font-weight:650; }
.computer-pile-cards { display:block; position:relative; width:126px; height:95px; margin:5px 0 3px; }
.computer-pile-cards img { display:block; position:absolute; width:55px; aspect-ratio:2/3; object-fit:contain; border-radius:4px; box-shadow:0 2px 4px #17392b35; }
.pile-back { left:calc(37px + var(--layer) * 3px); top:calc(7px + var(--layer) * 2px); transform:rotate(7deg); }
.pile-face-0 { left:16px; top:6px; transform:rotate(-12deg); }
.pile-face-1 { left:56px; top:4px; transform:rotate(9deg); }
.pile-placeholder { display:flex; align-items:center; justify-content:center; position:absolute; width:55px; height:83px; left:36px; top:5px; border:1px dashed #a7b09a; border-radius:6px; color:#99a28a; font-family:Georgia,serif; font-size:30px; }
.pile-count { font-size:16px; line-height:1.45; font-variant-numeric:tabular-nums; }
.pile-hint { font-size:14px; line-height:1.4; color:var(--muted); }
.computer-pile.has-tricks .pile-hint { color:var(--green); text-decoration:underline; text-underline-offset:3px; }
.felt-table { min-height:310px; position:relative; border:7px solid #e3d6b6; border-radius:90px; background:radial-gradient(ellipse at 50% 20%,#2e6d58 0,#1a513f 74%); box-shadow:inset 0 0 0 1px #09291e66,inset 0 2px 20px #042c2655,0 2px 0 #c1ae7e,0 8px 20px #2f49321c; display:grid; grid-template-columns:100px minmax(0,1fr) 110px; align-items:center; gap:12px; padding:23px; isolation:isolate; }
.felt-table:before { content:""; position:absolute; inset:11px; border:1px solid #dfcb8324; border-radius:76px; z-index:-1; pointer-events:none; }
.felt-table.has-announcement { padding-top:65px; }
.table-announcement { position:absolute; top:12px; left:50%; transform:translateX(-50%); display:flex; align-items:center; justify-content:center; gap:9px; width:max-content; max-width:calc(100% - 36px); min-height:38px; padding:7px 13px; border:1px solid #e4ce8c; border-radius:11px; background:#fbf1d5; color:#173d30; box-shadow:0 2px 7px #092d2a33; font-size:18px; line-height:1.3; text-align:center; z-index:2; }
.table-announcement img { flex:0 0 24px; width:24px; height:26px; object-fit:contain; }
.table-announcement strong { font-size:21px; font-variant-numeric:tabular-nums; }
.table-watermark { position:absolute; bottom:15px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:9px; white-space:nowrap; color:#b6c39924; font-size:16px; pointer-events:none; }
.table-watermark span { font-family:Georgia,serif; letter-spacing:3px; font-size:12px; }
.table-watermark img { width:16px; height:20px; object-fit:contain; opacity:.22; filter:grayscale(1) brightness(2); }
.talon-zone { text-align:center; width:100%; position:relative; z-index:1; min-width:0; }
.talon-cards { height:122px; position:relative; margin:0 auto; width:88px; }
.talon-card { width:63px; aspect-ratio:2/3; position:absolute; left:3px; top:6px; box-shadow:1px 3px 6px #092d2a66; border-radius:5px; }
.talon-card.trump-card { transform:rotate(-18deg); top:20px; left:19px; }
.talon-card.stock-card { transform:rotate(8deg); top:0; left:0; }
.talon-card.closed-card { transform:rotate(90deg); left:12px; top:9px; }
.talon-caption { font-size:16px; color:#e8e8c6; line-height:1.4; min-height:46px; }
.talon-caption strong { display:block; font-size:16px; font-weight:650; }
.talon-empty { height:96px; border:1px dashed #d8e5c566; width:63px; border-radius:6px; display:flex; align-items:center; justify-content:center; color:#d8e5c5b3; font-size:16px; margin:0 auto; }
.trick { display:flex; align-items:center; justify-content:center; gap:16px; min-width:0; z-index:1; min-height:210px; }
.played-position { display:flex; align-items:center; flex-direction:column; gap:9px; width:90px; min-width:0; position:relative; }
.played-position>span { font-size:16px; line-height:1.35; color:#f2f0da; text-align:center; }
.played-position small { display:block; font-size:14px; color:#cad9b9; }
.played-card-host { width:100%; aspect-ratio:2/3; position:relative; }
.played-card { display:block; width:90px; max-width:100%; aspect-ratio:2/3; object-fit:contain; filter:drop-shadow(0 5px 5px #082a2455); }
.card-slot { width:90px; max-width:100%; aspect-ratio:2/3; border:1px solid #d7e3c933; border-radius:7px; background:#16473733; display:flex; align-items:center; justify-content:center; font-family:Georgia,serif; color:#c5d3b533; font-size:26px; }
.table-right { display:flex; flex-direction:column; align-items:center; gap:21px; justify-self:end; width:100%; min-width:0; z-index:1; }
.trump-badge { text-align:center; display:flex; align-items:center; flex-direction:column; gap:3px; }
.trump-badge>span { font-size:15px; color:#d7e1c2; }
.trump-badge img { display:block; width:43px; height:47px; object-fit:contain; filter:drop-shadow(0 1px 2px #001b1666); }
.trump-badge small { font-size:17px; color:#f2f0da; }
.last-trick-button { background:#103e3280; border:1px solid #b9d1a355; color:#f6f0d8; border-radius:9px; padding:8px 9px; font-size:16px; line-height:1.3; min-height:51px; width:100%; }
.last-trick-button:disabled { opacity:.48; }
.last-trick-button:hover:not(:disabled) { background:#103e32; }
.last-trick-button span { font-size:20px; vertical-align:-1px; margin-right:3px; }
.round-result { position:fixed; inset:0; height:fit-content; display:flex; align-items:center; flex-direction:column; width:min(760px,calc(100vw - 28px)); max-width:calc(100vw - 28px); max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); min-width:0; margin:auto; overflow:hidden; border:1px solid #e6d39477; border-radius:21px; background:#123e34; box-shadow:0 18px 80px #06271c66; text-align:center; padding:24px; color:#fff9e6; animation:card-in .25s ease-out; }
.round-result:not([open]) { display:none; }
.result-summary { width:100%; flex:0 0 auto; }
.result-flourish { font-family:Georgia,serif; color:#d9bd76; font-size:22px; margin-bottom:5px; }
.round-result h2 { font-family:Georgia,serif; font-size:27px; line-height:1.15; font-weight:400; margin:0 0 9px; }
.round-result p { font-size:17px; line-height:1.45; margin:0 0 13px; color:#dce3cb; }
.round-result .primary-button { width:100%; max-width:360px; min-height:54px; background:#e5c777; color:#173d30; font-size:18px; }
.round-result .primary-button:hover { background:#f1d78e; }
.result-own-tricks-button { display:block; min-height:44px; margin:9px auto 0; padding:8px 13px; border:1px solid #d7e1c266; border-radius:9px; background:transparent; color:#f4eed5; font-size:16px; }
.result-own-tricks-button:hover { background:#245946; }
.round-result small { font-size:16px; color:#d7e1c2; display:block; margin-bottom:10px; }
.computer-review { width:100%; flex:1 1 auto; min-height:0; max-height:min(44vh,420px); max-height:min(44dvh,420px); overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; margin-top:20px; padding:17px 8px 5px; border-top:1px solid #d7e1c244; }
.computer-review:focus-visible { outline:3px solid #e5c777; outline-offset:-3px; border-radius:7px; }
.computer-review h3 { font-family:Georgia,serif; font-size:24px; font-weight:400; line-height:1.3; margin:0 0 12px; }
.result-summary .computer-final-eyes { font-size:18px; line-height:1.5; margin-bottom:14px; }
.captured-tricks { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; }
.captured-trick { min-width:0; border:1px solid #c8c6a9; border-radius:12px; background:#f7f2e4; color:var(--ink); padding:12px 9px 15px; }
.captured-trick h4 { font-size:16px; line-height:1.45; font-weight:650; margin:0 0 12px; }
.captured-trick h4 span { font-weight:400; white-space:nowrap; }
.captured-pair { display:flex; justify-content:center; gap:12px; }
.captured-pair img { display:block; width:88px; max-width:44%; aspect-ratio:2/3; object-fit:contain; border-radius:5px; box-shadow:0 3px 6px #123b2f22; }
.turn-area { margin-top:24px; border:1px solid var(--border); border-radius:18px; background:#fffdf573; padding:20px 18px 15px; }
.turn-heading { display:flex; gap:8px; align-items:center; flex-direction:column; text-align:center; margin-bottom:20px; }
.status { font-family:Georgia,serif; font-size:25px; line-height:1.25; }
.rule-hint { font-size:16px; color:var(--muted); line-height:1.4; }
.error-banner { padding:12px 14px; background:#f9e6d9; border:1px solid #daba9f; font-size:16px; line-height:1.5; border-radius:9px; margin-bottom:16px; }
.own-eyes-panel { display:flex; align-items:center; flex-wrap:wrap; gap:4px 11px; max-width:640px; margin:0 auto 12px; padding:8px 12px; border:1px solid #cbd5be; border-radius:11px; background:#e9eedf; font-size:17px; line-height:1.4; }
.own-eyes-panel strong { margin-left:auto; font-family:Georgia,serif; font-size:28px; font-weight:400; line-height:1.15; font-variant-numeric:tabular-nums; }
.own-eyes-panel small { flex-basis:100%; font-size:15px; color:#81611f; line-height:1.4; }
.hand-line { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:5px 10px; max-width:640px; margin:0 auto 10px; padding:0 5px; }
.hand-label { font-size:14px; font-weight:700; letter-spacing:1px; color:#536b4e; }
.hand-hint { grid-column:1/-1; font-size:15px; color:var(--muted); }
.own-tricks-button { justify-self:end; display:flex; align-items:center; gap:7px; min-height:44px; padding:8px 10px; font-size:16px; }
.own-tricks-button span { display:inline-flex; align-items:center; justify-content:center; min-width:25px; min-height:25px; border-radius:50%; background:#e6e9dc; font-size:16px; font-variant-numeric:tabular-nums; }
.human-hand { display:flex; justify-content:center; align-items:flex-start; gap:7px; min-height:112px; max-width:640px; margin:auto; padding:10px 6px 6px; }
.hand-card { padding:0; background:transparent; display:block; border-radius:7px; position:relative; width:calc((100% - 28px)/5); aspect-ratio:2/3; flex:0 1 calc((100% - 28px)/5); max-width:104px; box-shadow:0 3px 8px #233e3320; border:2px solid transparent; line-height:0; transition:transform .16s,box-shadow .16s,filter .16s!important; }
.hand-card img { width:100%; height:100%; display:block; object-fit:contain; border-radius:5px; pointer-events:none; }
.card-moving { will-change:transform; z-index:5; }
.hand-card,.played-card,.opponent-card { backface-visibility:hidden; }
.hand-card:not(:disabled):hover { transform:translateY(-5px); box-shadow:0 7px 12px #233e332b; }
.hand-card.selected,.hand-card.selected:active { transform:translateY(-7px); box-shadow:0 0 0 2px #ab8845,0 7px 13px #203a3026; }
.hand-card:disabled { filter:saturate(.6); opacity:.62; }
.hand-card.illegal:after { content:""; position:absolute; inset:0; background:#f1efe57a; border-radius:6px; }
.card-check { position:absolute; right:-6px; top:-8px; background:var(--green); border:2px solid var(--cream); height:24px; width:24px; display:flex; align-items:center; justify-content:center; border-radius:50%; color:white; line-height:1; font-size:15px; box-shadow:0 1px 3px #0002; }
.main-action-row { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:8px; max-width:640px; margin:16px auto 0; }
.primary-button { background:var(--green); color:#fff9e9; border-radius:11px; font-size:18px; font-weight:650; line-height:1.35; min-height:54px; padding:13px 24px; box-shadow:0 2px 0 #0a2c22; }
.main-action-row .primary-button { width:100%; max-width:380px; }
.primary-button:hover:not(:disabled) { background:#215f49; }
.primary-button:disabled { background:#d8ded2; color:#6c7a69; box-shadow:none; }
.marriage-choice { font-size:17px; }
.marriage-choice label { cursor:pointer; display:flex; align-items:center; gap:9px; min-height:48px; }
.marriage-choice input { accent-color:var(--green); height:23px; width:23px; }
.secondary-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin:15px auto 0; }
.secondary-button { color:var(--green); background:#ffffff65; border:1px solid #c8d0bf; border-radius:10px; min-height:48px; padding:10px 14px; font-size:17px; line-height:1.35; }
.secondary-button:disabled { color:#8d9784; border-color:#dde1d4; background:transparent; }
.secondary-button:hover:not(:disabled) { background:#e6e9dc; }
.game-footer { border-top:1px solid #d9dece; display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:9px 12px; padding:16px 0 0; margin-top:20px; font-size:15px; color:var(--muted); line-height:1.4; }
.game-footer select { font-size:16px; color:var(--green); border:1px solid #c9d1bc; background:#f8f6ed; border-radius:9px; padding:8px 27px 8px 10px; min-height:44px; }
.saved-note { margin-left:auto; font-size:15px; }
dialog { border:1px solid #d8d1b7; border-radius:22px; padding:27px; background:var(--cream); color:var(--ink); box-shadow:0 18px 80px #06271c55; max-width:min(740px,calc(100vw - 28px)); max-height:calc(100dvh - 30px); overscroll-behavior:contain; }
dialog::backdrop { background:#082b24a6; backdrop-filter:blur(4px); }
dialog h2 { font-family:Georgia,serif; font-weight:400; font-size:31px; line-height:1.2; letter-spacing:-.5px; margin:4px 0 10px; }
.dialog-header { display:flex; justify-content:space-between; align-items:center; gap:14px; }
.dialog-x { width:48px; height:48px; border:1px solid #c6cfba; border-radius:50%; font-size:29px; font-weight:300; background:transparent; color:var(--green); flex-shrink:0; line-height:1; }
.eyebrow { font-size:14px; font-weight:650; letter-spacing:1px; color:#826c37; }
.help-dialog { width:calc(100vw - 28px); }
.help-content { font-size:18px; line-height:1.7; }
.help-content p { margin:16px 0; }
.help-content h3 { font-family:Georgia,serif; font-size:25px; line-height:1.3; font-weight:400; margin:30px 0 12px; }
.help-content ol { padding-left:25px; }
.help-content li { padding-left:4px; margin:10px 0; }
.dialog-footer { display:flex; justify-content:center; padding-top:19px; margin-top:19px; border-top:1px solid #d9dece; }
.points-table { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; }
.points-table>div { display:flex; flex-direction:column; align-items:center; border:1px solid #d8decb; background:#fffcf5; border-radius:8px; padding:10px 4px; }
.points-table strong { font-family:Georgia,serif; font-size:27px; line-height:1.2; }
.points-table span { font-size:15px; color:var(--muted); }
.points-table b { font-weight:650; font-size:19px; }
.confirm-dialog { width:470px; }
.confirm-dialog p { font-size:18px; line-height:1.6; color:#4d624e; }
.confirm-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-top:24px; }
.last-trick-dialog { width:490px; }
.last-trick-cards { display:flex; justify-content:center; gap:25px; margin:24px 0; }
.last-trick-cards>div { display:flex; flex-direction:column; align-items:center; text-align:center; gap:12px; font-size:18px; line-height:1.4; min-width:0; }
.last-trick-cards small { display:block; font-size:16px; color:var(--muted); }
.last-trick-cards img { width:135px; max-width:100%; aspect-ratio:2/3; filter:drop-shadow(0 3px 3px #203a3020); }
.last-trick-outcome { text-align:center; font-size:18px; line-height:1.6; }
.own-tricks-dialog { width:min(720px,calc(100vw - 28px)); max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); overflow:hidden; }
.own-tricks-dialog[open] { display:flex; flex-direction:column; }
.own-tricks-dialog .dialog-header,.own-tricks-dialog .dialog-footer { flex:0 0 auto; }
.own-tricks-content { flex:1 1 auto; min-height:0; max-height:60vh; max-height:60dvh; overflow-y:auto; overscroll-behavior:contain; padding:0 4px 5px; margin-top:10px; }
.own-tricks-content>p { font-size:17px; line-height:1.4; margin:0 0 15px; }
.own-tricks-content:focus-visible { outline:3px solid #b59655; outline-offset:-3px; border-radius:7px; }
.noscript-message { text-align:center; padding:20px; background:#fee5d8; }
body.modal-open { overflow:hidden; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@keyframes card-in { from{transform:translateY(-7px);opacity:.5}to{transform:translateY(0);opacity:1} }

/* Keep the table and the controls together on a wide tablet or computer. */
@media(min-width:960px) {
  main { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); align-items:start; gap:0 24px; }
  .scoreboard,.game-footer { grid-column:1/-1; }
  .turn-area { margin-top:0; min-height:474px; padding-top:24px; }
  .turn-heading { min-height:90px; justify-content:center; }
  .hand-line { flex-direction:column; align-items:flex-start; gap:6px; }
  .human-hand { min-height:132px; padding-top:15px; }
  .secondary-actions { gap:10px; }
  .secondary-actions .secondary-button { font-size:16px; padding:10px 12px; }
  .opponent-zone { min-height:166px; margin-bottom:12px; }
  .felt-table { min-height:300px; grid-template-columns:83px minmax(0,1fr) 92px; padding:18px 15px; gap:9px; }
  .talon-cards { width:80px; }
  .talon-card { width:58px; }
  .talon-card.trump-card { left:16px; }
  .played-position,.played-card,.card-slot { width:80px; }
  .trick { gap:12px; }
}

@media(max-width:650px) {
  .game-shell { padding:0 13px max(18px,env(safe-area-inset-bottom)); }
  .masthead { padding:17px 2px; gap:9px; }
  .brand { font-size:10px; letter-spacing:2.6px; }
  .wordmark h1 { font-size:34px; }
  .header-actions { gap:7px; }
  .quiet-button { font-size:16px; padding:7px 10px; }
  .quiet-button span { display:none; }
  .scoreboard { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; margin-bottom:13px; }
  .round-heading { grid-column:1/-1; grid-row:1; flex-direction:row; flex-wrap:wrap; gap:3px 9px; padding:5px 0 6px; }
  .round-heading { display:flex; flex-wrap:nowrap; }
  .round-heading>span:first-child { font-size:16px; margin-right:7px; }
  .round-heading strong { font-size:28px; }
  .round-heading>span:nth-of-type(2) { font-size:16px; }
  .round-heading small { margin-top:0; font-size:15px; }
  .wide-label { display:none; }
  .score-player { padding:10px 11px; min-height:60px; border-radius:13px; }
  .player-label { font-size:17px; gap:5px; }
  .player-dot { width:6px; height:6px; }
  .match-count { font-size:18px; }
  .match-unit { flex-basis:100%; font-size:14px; text-align:right; line-height:1.1; }
  .opponent-zone { grid-template-columns:minmax(0,1fr) 162px; gap:11px; min-height:0; margin-bottom:11px; }
  .opponent-hand-zone { gap:9px; }
  .opponent-hand { gap:3px; min-height:42px; }
  .opponent-card { width:27px; }
  .opponent-status { font-size:16px; line-height:1.3; min-height:22px; }
  .opponent-hand-label { display:none; }
  .computer-pile { width:162px; min-height:163px; padding:7px 3px; }
  .pile-title,.pile-count { font-size:16px; }
  .computer-pile-cards { height:82px; margin:4px 0 2px; }
  .computer-pile-cards img { width:48px; }
  .computer-pile:not(.has-tricks) { min-height:0; gap:4px; padding:10px 3px; }
  .computer-pile:not(.has-tricks) .computer-pile-cards,.computer-pile:not(.has-tricks) .pile-count { display:none; }
  .pile-hint { font-size:14px; }
  .felt-table { min-height:225px; border-width:5px; border-radius:42px; grid-template-columns:68px minmax(0,1fr) 68px; gap:5px; padding:15px 8px; }
  .felt-table:before { inset:8px; border-radius:37px; }
  .felt-table.has-announcement { padding-top:61px; }
  .table-announcement { top:11px; gap:7px; min-height:37px; padding:6px 10px; font-size:17px; }
  .table-announcement strong { font-size:20px; }
  .table-announcement img { width:21px; height:24px; flex-basis:21px; }
  .table-watermark { bottom:10px; gap:4px; }
  .table-watermark span { font-size:10px; letter-spacing:1px; }
  .table-watermark img { width:12px; height:16px; }
  .talon-cards { height:96px; width:65px; }
  .talon-card { width:47px; border-radius:4px; left:0; top:4px; }
  .talon-card.trump-card { top:17px; left:11px; }
  .talon-card.stock-card { top:3px; left:0; }
  .talon-card.closed-card { left:7px; top:10px; }
  .talon-caption,.talon-caption strong { font-size:16px; line-height:1.35; }
  .talon-empty { width:47px; height:72px; font-size:16px; }
  .trick { min-height:155px; gap:7px; }
  .played-position,.played-card,.card-slot { width:65px; }
  .played-position { gap:10px; }
  .played-position>span { font-size:16px; line-height:1.3; }
  .played-position small { font-size:14px; }
  .card-slot { font-size:22px; }
  .table-right { gap:10px; }
  .trump-badge>span { font-size:15px; }
  .trump-badge img { width:36px; height:41px; }
  .trump-badge small { font-size:16px; }
  .last-trick-button { font-size:16px; padding:7px 2px; min-height:62px; line-height:1.25; }
  .last-trick-button span { display:none; }
  .round-result { border-radius:17px; padding:20px 16px; }
  .round-result h2 { font-size:25px; }
  .round-result p { font-size:16px; line-height:1.4; margin-bottom:10px; }
  .round-result small { font-size:16px; margin-bottom:8px; }
  .result-flourish { font-size:20px; margin-bottom:4px; }
  .round-result .primary-button { min-height:49px; font-size:17px; padding:11px 17px; }
  .result-summary .computer-final-eyes { font-size:17px; margin-bottom:12px; }
  .computer-review { max-height:37vh; max-height:37dvh; margin-top:16px; padding-top:15px; }
  .captured-pair img { width:105px; }
  .turn-area { margin-top:14px; padding:14px 12px 12px; border-radius:15px; }
  .turn-heading { gap:6px; margin-bottom:12px; }
  .status { font-size:23px; }
  .rule-hint { font-size:16px; line-height:1.4; }
  .hand-line { flex-direction:row; align-items:center; gap:4px 8px; margin-bottom:7px; padding:0 3px; }
  .hand-label,.hand-hint { font-size:14px; }
  .human-hand { gap:5px; min-height:105px; padding:9px 5px 6px; }
  .hand-card { width:calc((100% - 20px)/5); flex-basis:calc((100% - 20px)/5); border-width:1px; }
  .card-check { width:21px; height:21px; right:-5px; top:-7px; font-size:14px; }
  .main-action-row { margin-top:10px; }
  .primary-button { font-size:18px; min-height:50px; padding:12px 18px; }
  .secondary-actions { gap:9px; flex-wrap:nowrap; margin-top:10px; }
  .secondary-actions .secondary-button { flex:1 1 0; min-width:0; font-size:16px; min-height:44px; padding:9px 6px; }
  .marriage-choice { font-size:17px; }
  .game-footer { margin-top:18px; padding-top:15px; gap:9px; font-size:15px; }
  .game-footer select { font-size:16px; min-height:44px; }
  .saved-note { margin-left:0; flex-basis:100%; font-size:15px; text-align:center; margin-top:1px; }
  dialog { padding:21px; max-height:calc(100dvh - 24px); }
  dialog h2 { font-size:28px; }
  .dialog-header { gap:8px; }
  .dialog-x { width:46px; height:46px; }
  .help-content { font-size:18px; line-height:1.65; }
  .help-content h3 { font-size:24px; }
  .points-table { gap:4px; }
  .points-table>div { padding:9px 2px; }
  .points-table span { font-size:14px; }
  .points-table strong { font-size:25px; }
  .confirm-actions { gap:9px; }
  .confirm-actions .primary-button,.confirm-actions .secondary-button { font-size:17px; padding:11px 15px; }
  .last-trick-cards { gap:18px; margin:23px 0; }
  .last-trick-cards img { width:125px; }
}
@media(max-width:360px) {
  .game-shell { padding-left:9px; padding-right:9px; }
  .wordmark h1 { font-size:31px; }
  .quiet-button { padding:7px 9px; }
  .opponent-zone { grid-template-columns:minmax(0,1fr) 153px; gap:8px; }
  .computer-pile { width:153px; }
  .opponent-card { width:23px; }
  .felt-table { grid-template-columns:62px minmax(0,1fr) 62px; gap:3px; padding-left:5px; padding-right:5px; }
  .played-position,.played-card,.card-slot { width:58px; }
  .trick { gap:4px; }
  .talon-cards { width:60px; }
  .turn-area { padding-left:10px; padding-right:10px; }
  .secondary-actions .secondary-button { font-size:16px; padding-left:4px; padding-right:4px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
