:root{--navy:#25283d;--cream:#f7e9c9;--yellow:#f3b34c;--red:#e56b59;--mint:#6cb7a2;--white:#fffaf0}*{box-sizing:border-box}html{color-scheme:light}body{margin:0;color:var(--navy);background:var(--cream);font-family:system-ui,-apple-system,'Hiragino Kaku Gothic ProN',sans-serif;font-size:17px;line-height:1.85;overflow-wrap:anywhere}a{color:inherit;text-underline-offset:4px}button{font:inherit;color:inherit;touch-action:manipulation}a,button{-webkit-tap-highlight-color:transparent}button:not(:disabled),a{cursor:pointer}a:focus-visible,button:focus-visible{outline:4px solid #17624c;outline-offset:5px}header{background:var(--navy);color:var(--cream);border-bottom:4px solid var(--yellow)}header nav{max-width:1080px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px}.logo{display:flex;align-items:center;min-height:44px}.logo img{max-width:100%;height:auto}.links{display:flex;gap:24px}.links a{display:flex;align-items:center;min-height:44px;text-decoration:none;font-size:15px;font-weight:800}.links a:hover{text-decoration:underline}.skip{position:fixed;top:-100px;left:12px;background:var(--white);padding:12px;z-index:20}.skip:focus{top:12px}main{max-width:1080px;margin:auto;padding:30px 24px 72px}h1{font-size:clamp(1.8rem,5vw,3rem);line-height:1.4;margin:10px 0 22px;letter-spacing:.02em}h2{font-size:1.5rem;line-height:1.5;margin:0 0 18px}h3{font-size:1.3rem;line-height:1.5;margin:16px 0 10px}p{margin:0 0 20px}.hero{background:var(--navy);color:var(--white);padding:48px 36px;position:relative;border:4px solid var(--navy);box-shadow:8px 8px 0 var(--red);margin:4px 8px 56px 0;background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px);background-size:24px 24px}.hero h1{font-size:clamp(2.5rem,7vw,4.8rem);line-height:1.25;letter-spacing:.06em}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.16em;margin:0 0 10px}.hero .eyebrow{color:var(--yellow)}.hero p{max-width:620px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:12px 22px;background:var(--yellow);border:3px solid var(--navy);color:var(--navy);font-weight:800;line-height:1.5;text-decoration:none;box-shadow:4px 4px 0 var(--navy)}.hero .btn{border-color:var(--cream);box-shadow:4px 4px 0 var(--red)}.btn:active:not(:disabled){transform:translate(2px,2px);box-shadow:2px 2px 0 var(--navy)}.hero-secondary{display:inline-block;min-height:44px;padding:10px 18px}.hand-strip{font-size:42px;letter-spacing:8px;margin-top:28px}.hand-strip span{font-size:20px;color:var(--yellow)}section+section{margin-top:56px}.section-title{border-bottom:3px solid var(--navy);margin:0 0 22px;padding-bottom:10px}.section-title h2{margin:0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:24px 5px 0 0}.card{display:block;position:relative;background:var(--white);border:3px solid var(--navy);padding:24px;box-shadow:5px 5px 0 var(--navy);text-decoration:none}.card:hover{background:#fff3d6}.card p{font-size:16px;margin-bottom:20px}.card-link{font-weight:800;text-decoration:underline;font-size:15px}.card-number{position:absolute;right:20px;top:18px;font-family:monospace;font-size:26px;font-weight:bold;color:#666678}.pill{display:inline-block;background:var(--mint);font-size:12px;font-weight:800;padding:3px 10px;color:#172e28}.note{background:var(--white);padding:26px;border-left:6px solid var(--mint);margin:40px 0 0}.note h2{font-size:1.3rem}.note p:last-child{margin-bottom:0}.article{max-width:760px;margin:auto;background:var(--white);border:3px solid var(--navy);padding:clamp(20px,5vw,44px)}.article h2{margin-top:38px;padding-bottom:10px;border-bottom:2px solid #ded5bc;font-size:1.3rem}.lead{font-size:1.12rem;font-weight:650}.tiny{font-size:13px}.muted{color:#565666}.breadcrumb{font-size:13px;margin-bottom:22px}.sources{font-size:14px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:15px;text-align:center;margin:20px 0}caption{text-align:left;font-size:13px;padding-bottom:8px}td,th{border:1px solid #767681;padding:10px 6px}th{background:var(--cream)}.filters{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}.filter{border:2px solid var(--navy);background:var(--white);padding:8px 16px;min-height:44px;font-size:14px}.filter[aria-pressed=true]{background:var(--navy);color:var(--cream)}footer{background:var(--navy);color:var(--cream);padding:32px 24px}footer>p,footer nav{max-width:1032px;margin:0 auto 18px}footer nav{display:flex;gap:18px;flex-wrap:wrap}footer a{min-height:44px;display:flex;align-items:center;font-size:14px}.footer-brand{font-weight:900;font-size:21px}.footer-brand span{font-weight:400;font-size:13px;margin-left:15px}.game-shell{max-width:740px;margin:auto;background:var(--white);border:3px solid var(--navy);padding:24px;text-align:center;box-shadow:6px 6px 0 var(--red)}.game-shell h1{font-size:clamp(1.35rem,4.6vw,2rem)}#rules{font-size:15px;line-height:1.7}.game-head{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-block:2px solid var(--navy);padding:10px 0;font-size:12px;font-weight:700}.game-head strong{display:block;font-size:clamp(1.1rem,4vw,1.5rem);font-variant-numeric:tabular-nums}.opponent-label{font-size:12px;margin:15px 0 0}.hand-display{font-size:76px;line-height:1.2;min-height:106px;display:grid;place-items:center}.clock{font-family:monospace;font-size:17px;min-height:32px;font-variant-numeric:tabular-nums}.status{font-size:16px;font-weight:800;min-height:58px;margin:6px 0}.choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 4px 22px 0}.choice{display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--cream);border:3px solid var(--navy);box-shadow:4px 4px 0 var(--navy);min-height:100px;font-weight:800;user-select:none}.choice span:first-child{font-size:36px;line-height:1.4}.choice span:last-child{font-size:14px}.choice:disabled{opacity:.55;cursor:default}.choice:active:not(:disabled){background:var(--yellow)}.text-button{display:block;min-height:44px;margin:10px auto;background:none;border:0;text-decoration:underline}#storage{margin:22px 0 0}button:disabled{cursor:default}[hidden]{display:none!important}@media(max-width:760px){.cards{grid-template-columns:1fr}.card{padding:22px}.card p{max-width:38em}header nav{flex-wrap:wrap;padding:12px 18px;gap:0}.links{gap:20px;width:100%}.logo img{width:220px}.hero{padding:32px 22px}.hero-secondary{padding-left:0;display:block;margin-top:12px}main{padding:22px 18px 52px}.article{padding:22px}.game-shell{padding:18px 14px}.note{padding:22px}.footer-brand span{display:block;margin:0}}@media(max-width:360px){main{padding-inline:12px}.game-shell{padding-inline:10px}.choices{gap:8px}.choice{min-height:88px}.hero h1{font-size:2.5rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
header a:focus-visible,footer a:focus-visible,.hero a:focus-visible{outline-color:var(--yellow)}
/* v1.1: same palette, four game cards, compact play area. No moving animations. */
.game-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.game-facts{padding:0;margin:0 0 18px;list-style:none;font-size:14px;line-height:1.8}.game-card h3{padding-right:12px}.score-details{font-size:13px;margin:8px 0 0;font-variant-numeric:tabular-nums}.game-actions{min-height:56px;display:flex;align-items:center;justify-content:center}.game-actions .text-button{margin:0}.record-notice{background:var(--yellow);border:2px solid var(--navy);padding:10px;margin:15px 0;font-size:15px;font-weight:900}.game-active header,.game-active footer,.game-active .breadcrumb,.game-active main>.note{display:none}.game-active main{padding-top:10px;padding-bottom:10px}.game-shell.is-active .eyebrow,.game-shell.is-active #rules,.game-shell.is-active #storage,.game-shell.is-active #legacy{display:none}.game-shell.is-active h1{font-size:18px;line-height:1.4;margin:0 0 12px}.game-shell.is-active{padding-top:16px;padding-bottom:14px}.game-shell.is-active .hand-display{font-size:70px;min-height:94px}.game-shell.is-active .opponent-label{margin-top:9px}.game-shell.is-active .status{min-height:46px;margin:3px 0;font-size:15px}.game-shell.is-active .choices{margin-bottom:16px}.game-shell .choice{touch-action:manipulation;-webkit-user-select:none;-webkit-touch-callout:none}.game-shell.is-active .game-head{padding:7px 0}.game-shell.is-active .hand-display[aria-label="スタート準備"]{font-size:clamp(36px,8vw,56px)}@media(max-width:760px){.game-cards{grid-template-columns:1fr}}@media(max-height:500px) and (orientation:landscape){.game-active main{max-width:900px;padding:6px 14px}.game-shell.is-active{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);column-gap:20px;max-width:860px;padding:12px}.game-shell.is-active h1,.game-shell.is-active .game-head,.game-shell.is-active .score-details,.game-shell.is-active .opponent-label,.game-shell.is-active .hand-display,.game-shell.is-active .clock{grid-column:1}.game-shell.is-active .status{grid-column:2;grid-row:1 / 3;align-self:center}.game-shell.is-active .choices{grid-column:2;grid-row:3 / 6;align-self:center;margin:0 4px 0 0}.game-shell.is-active .game-actions{grid-column:2;grid-row:6 / 8}.game-shell.is-active .hand-display{font-size:54px;min-height:68px}.game-shell.is-active .choice{min-height:92px}.game-shell.is-active .opponent-label{margin:0}.game-shell.is-active .clock{font-size:13px}.game-shell.is-active h1{margin-bottom:6px;font-size:16px}}
/* v1.2: restart sits in its own top-right area, away from the answer row. */
.game-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;text-align:left}.game-top h1{flex:1;min-width:0}.restart-button{flex:none;min-width:88px;min-height:44px;padding:8px 12px;border:2px solid var(--navy);background:var(--white);color:var(--navy);font-size:14px;font-weight:700;line-height:1.5;touch-action:manipulation}.restart-button:disabled{opacity:.6}.game-shell.is-active .game-top{margin-bottom:12px;align-items:center;min-height:44px}.game-shell.is-active .game-top h1{margin:0}.game-top:has(.restart-button[hidden]){text-align:center}@media(max-height:500px) and (orientation:landscape){.game-shell.is-active .game-top{grid-column:1 / 3;margin-bottom:6px}.game-shell.is-active .game-top h1{font-size:16px}}

/* Empty game guidance must not reserve space during countdown/play. */
.game-shell .clock:empty,.game-shell .status:empty{display:none}

/* v1.8.2: reserve guidance rows while active; empty text stays invisible. */
.game-shell.is-active .clock{min-height:2.8em;line-height:1.4}
.game-shell.is-active .status{min-height:max(46px,2.8em);line-height:1.4}
.game-shell.is-active .clock:empty,.game-shell.is-active .status:empty{display:block;visibility:hidden}

/* v1.8.3: stable, compact portrait play; leave result/idle styling intact. */
@media(max-width:760px) and (orientation:portrait){
 .game-active main{padding-top:6px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
 .game-shell.is-active{padding-top:10px;padding-bottom:8px}
 .game-shell.is-active .game-top{min-height:3.2em;margin-bottom:6px}
 .game-shell.is-active .game-head{padding-block:4px;line-height:1.35}
 .game-shell.is-active .score-details{line-height:1.35;margin-top:4px}
 .game-shell.is-active .opponent-label{line-height:1.3;margin-top:4px}
 .game-shell.is-active .hand-display{min-height:88px}
 .game-shell.is-active .clock{min-height:1.4em;line-height:1.4}
 .game-shell.is-active .status{min-height:1.4em;line-height:1.4;margin:2px 0}
 .game-shell.is-active .choices{margin-bottom:8px}
 .game-shell.is-active .choice{min-height:88px}
 .game-shell.is-active .choice span:last-child{line-height:1.4}
 .game-shell.is-active .game-actions{min-height:44px}
}
.game-shell.is-result #start:active{transform:none}
.game-shell.is-result #result-games,.game-shell.is-result #result-home,.game-shell.is-result #result-article-link{touch-action:manipulation}

/* v1.8.5: full-width centered hand/countdown; keep the existing control sizes. */
@media(max-width:760px) and (orientation:portrait){
 .game-active main{padding:6px 12px calc(12px + env(safe-area-inset-bottom,0px))}
 .game-shell.is-active{padding:8px 10px}
 .game-shell.is-active .game-top{min-height:52px;margin-bottom:4px}
 .game-shell.is-active>h1{min-height:52px;margin:0 0 4px;display:flex;align-items:center;justify-content:center}
 .game-shell.is-active .game-head{line-height:1.3;padding-block:4px}
 .game-shell.is-active .opponent-label{line-height:1.3;margin:2px 0 0}
 .game-shell.is-active .hand-display{width:100%;display:grid;place-items:center;height:clamp(68px,calc(var(--game-view-height,100svh) * .14),104px);min-height:0;font-size:52px}
 .game-shell.is-active #opponent[aria-label^="相手の手 "]{background-size:clamp(64px,calc(var(--game-view-height,100svh) * .135),100px) auto}
 .game-shell.is-active .clock{font-size:clamp(14px,3.8vw,17px);min-height:1.4em;line-height:1.4}
 .game-shell.is-active .status{min-height:2.8em;line-height:1.4;margin:0 0 4px;font-size:14px}
 .game-shell.is-active .choices{margin:0 4px 8px 0;gap:10px}
 .game-shell.is-active .choice{min-height:clamp(88px,calc(var(--game-view-height,100svh) * .18),116px);padding:6px 2px}
 .game-shell.is-active .choice img{width:clamp(52px,calc(var(--game-view-height,100svh) * .105),68px);height:clamp(52px,calc(var(--game-view-height,100svh) * .105),68px)}
 .game-shell.is-active .choice span:last-child{line-height:1.4}
 .game-shell.is-active .game-actions{min-height:44px}
}
/* Countdown text stays on one line inside the full-width hand region. */
.game-shell #opponent{white-space:nowrap;overflow-wrap:normal;word-break:normal;text-align:center;min-width:0;line-height:1.1}
