/* よしやす — 縦長 390×844（スマホ）／横長 1280×720（PC）を、端末の大きさに合わせて拡大縮小する */
@font-face { font-family: 'Boku'; src: url('../../shared/fonts/boku.woff2') format('woff2'); font-display: block; }
@font-face { font-family: 'Yusei'; src: url('../../shared/fonts/yusei.woff2') format('woff2'); font-display: block; }
@font-face { font-family: 'Dela'; src: url('../../shared/fonts/dela.woff2') format('woff2'); font-display: block; }
@font-face { font-family: 'Maru'; src: url('../../shared/fonts/maru.woff2') format('woff2'); font-weight: 700; font-display: block; }
@font-face { font-family: 'Maru'; src: url('../../shared/fonts/maru-black.woff2') format('woff2'); font-weight: 900; font-display: block; }

:root { --red: #f0441f; --navy: #141a2a; --blue: #1c8fd3; --green: #7bc142; --ink: #2b1d14; --cream: #fff8ec; --gold: #e2b44a; --akan: #e8322a; --s: 1; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0c1020; }
body {
  font-family: 'Maru', 'Hiragino Maru Gothic ProN', 'Meiryo', sans-serif; font-weight: 700; color: var(--ink);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
  background: radial-gradient(circle at 20% 20%, rgba(240,68,31,.18), transparent 40%), radial-gradient(circle at 80% 80%, rgba(28,143,211,.18), transparent 40%), repeating-linear-gradient(135deg, #0c1020 0 22px, #10162a 22px 44px);
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img { -webkit-user-drag: none; user-select: none; }
a { color: inherit; }
#app { position: absolute; left: 50%; top: 50%; width: 390px; height: 844px; transform: translate(-50%, -50%) scale(var(--s)); overflow: hidden; background: var(--cream); box-shadow: 0 20px 80px rgba(0,0,0,.5); }
.screen { position: absolute; inset: 0; display: none; overflow: hidden; }
.screen.on { display: block; }

.stripes { position: absolute; left: 0; top: 0; bottom: 0; display: flex; z-index: 2; }
.stripes i { display: block; }
.stripes i:nth-child(1) { background: var(--red); width: 12px; }
.stripes i:nth-child(2) { background: var(--navy); width: 16px; }
.stripes i:nth-child(3) { background: var(--blue); width: 4px; }
.stripes i:nth-child(4) { background: var(--green); width: 6px; }

.btn-main { position: relative; display: block; margin: 0 auto; min-width: 250px; padding: 18px 30px 20px; font-family: 'Dela', sans-serif; font-size: 28px; letter-spacing: .06em; color: #fff;
  background: linear-gradient(180deg, #23304f, var(--navy)); border-radius: 999px; box-shadow: 0 7px 0 var(--red), 0 14px 24px rgba(0,0,0,.25); transition: transform .08s, box-shadow .08s; }
.btn-main::before { content: ''; position: absolute; inset: 5px 14px auto; height: 40%; border-radius: 999px; background: linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,0)); }
.btn-main:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--red), 0 4px 10px rgba(0,0,0,.25); }
.btn-main.small { font-size: 21px; min-width: 220px; padding: 14px 24px 16px; }
.btn-main span { position: relative; }
.btn-sub { display: inline-block; padding: 10px 18px; border-radius: 999px; font-size: 15px; color: var(--navy); background: #fff; border: 3px solid var(--navy); box-shadow: 0 4px 0 var(--navy); }
.btn-sub:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--navy); }
.mute { position: absolute; right: 10px; top: 10px; z-index: 50; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(0,0,0,.2); font-size: 20px; line-height: 40px; }
.mute::after { content: '🔊'; }
.mute.off::after { content: '🔇'; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bpop { from { transform: scale(.6); opacity: 0; } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes tapme { 0%,100% { transform: translate(0, 0); } 50% { transform: translate(4px, -10px); } }

/* ───────── タイトル ───────── */
#title { background: radial-gradient(circle at 55% 40%, #fffdf6 0 30%, #f9ead2 70%); }
.t-rays { position: absolute; left: 50%; top: 360px; width: 900px; height: 900px; margin: -450px 0 0 -450px; background: repeating-conic-gradient(from 0deg, rgba(28,143,211,.08) 0 8deg, transparent 8deg 16deg); animation: spin 60s linear infinite; }
.t-glow { position: absolute; left: 50%; top: 360px; width: 330px; height: 330px; margin: -165px 0 0 -165px; border-radius: 50%; background: radial-gradient(circle, #fff 0 45%, rgba(255,255,255,0) 70%); }
.t-miya { position: absolute; left: 50%; top: 190px; height: 320px; translate: -50% 0; filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)); cursor: pointer; z-index: 1; }
.t-logo { position: absolute; left: 0; right: 0; top: 46px; text-align: center; z-index: 3; }
.t-big { display: block; font-family: 'Boku', serif; font-size: 92px; line-height: 1; color: var(--navy); text-shadow: 3px 3px 0 #fff, -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 6px 8px 0 rgba(28,143,211,.35); }
.hanko { position: absolute; right: 30px; top: 62px; width: 54px; height: 54px; border-radius: 10px; border: 4px solid #d8361b; color: #d8361b; font-family: 'Boku', serif; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; transform: rotate(10deg); background: rgba(255,255,255,.6); writing-mode: vertical-rl; }
.t-sub { position: absolute; top: 525px; left: 0; right: 0; margin: 0; text-align: center; font-family: 'Yusei', sans-serif; font-size: 19px; color: var(--navy); }
#btnStart { position: absolute; left: 50%; top: calc(var(--H, 844px) - 259px); translate: -50% 0; white-space: nowrap; font-size: 26px; }
#btnStart.pulse { animation: pulse 1.6s ease-in-out infinite; }
#btnAlbum { position: absolute; left: 50%; top: calc(var(--H, 844px) - 152px); translate: -50% 0; white-space: nowrap; }
#btnAlbum b { color: var(--red); }
.t-best { position: absolute; top: calc(var(--H, 844px) - 92px); left: 0; right: 0; text-align: center; margin: 0; font-size: 13px; color: #8a7a64; }
.t-foot { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 11px; color: #8a7a64; }
.t-foot a { text-decoration: underline; cursor: pointer; }

.modal-bg { background: rgba(12,16,32,.72); z-index: 20; }
.card { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); background: #fff; border-radius: 26px; padding: 28px 22px 30px; box-shadow: 0 10px 0 var(--navy), 0 30px 60px rgba(0,0,0,.4); border: 4px solid var(--navy); text-align: center; }
.h-miya { display: block; height: 120px; margin: -76px auto 6px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.h-lead { font-size: 21px; margin: 0 0 6px; }
.h-steps { list-style: none; margin: 12px 0 10px; padding: 0; text-align: left; }
.h-steps li { display: flex; align-items: center; gap: 12px; margin: 10px 0; font-size: 16px; line-height: 1.4; }
.h-steps b { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-family: 'Dela', sans-serif; font-weight: 400; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 var(--red); }
.h-steps em { font-style: normal; }
.h-steps em.red { color: var(--red); }
.h-steps em.akan-chip { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--akan); color: #fff; font-family: 'Dela', sans-serif; font-weight: 400; }
.h-note { margin: 4px 0 18px; font-size: 13px; color: #8a7a64; }
.credit-card h2 { font-family: 'Dela', sans-serif; font-weight: 400; margin: 0 0 14px; }
.credit-card dl { text-align: left; font-size: 13px; margin: 0 0 14px; display: grid; grid-template-columns: 80px 1fr; gap: 8px 10px; }
.credit-card dt { color: #8a7a64; }
.credit-card dd { margin: 0; }
.c-note { font-size: 12px; color: #8a7a64; margin: 0 0 18px; }

/* ───────── しりとり ───────── */
#play { background: #2a160c; }
.bg, .bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg img { object-fit: cover; object-position: center 30%; }
.sway { position: absolute; inset: 0; }
#play.tipsy .sway { animation: sway 2.4s ease-in-out infinite; }
#play.tipsy .miya img { filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)) saturate(1.3) sepia(.15) hue-rotate(-10deg); }
@keyframes sway { 0%,100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg) translateY(3px); } }
.hud { position: absolute; left: 58px; right: 60px; top: 12px; display: flex; align-items: center; gap: 8px; z-index: 5; }
.st-pill { background: var(--navy); color: #fff; font-size: 13px; padding: 7px 12px; border-radius: 999px; box-shadow: 0 3px 0 var(--red); white-space: nowrap; }
.score { margin-left: auto; font-family: 'Dela', sans-serif; font-size: 26px; color: #fff; text-shadow: 0 2px 0 var(--navy), 2px 0 0 var(--navy), -2px 0 0 var(--navy), 0 -2px 0 var(--navy); white-space: nowrap; }
.score small { font-size: 14px; margin-left: 2px; }
.score.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.3); } }
.timer { position: absolute; left: 14px; right: 14px; top: 60px; display: flex; align-items: center; gap: 10px; z-index: 5; }
.t-bar { flex: 1; height: 18px; border-radius: 999px; background: rgba(20,26,42,.6); box-shadow: inset 0 2px 3px rgba(0,0,0,.4), 0 0 0 3px #fff; overflow: hidden; }
.t-bar i { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, #7bc142, #b9e15a); transform-origin: 0 50%; }
.t-bar i.warn { background: linear-gradient(90deg, #f0441f, #ffb13b); }
.timer b { font-family: 'Dela', sans-serif; font-weight: 400; font-size: 26px; color: #fff; min-width: 40px; text-align: right; text-shadow: 0 2px 0 var(--navy), 2px 0 0 var(--navy), -2px 0 0 var(--navy), 0 -2px 0 var(--navy); }
.timer.hurry b { color: #ffd21f; animation: pulse .5s infinite; }

.bubble { position: absolute; left: 20px; right: 20px; top: 98px; min-height: 92px; padding: 12px 18px; background: #fff; border-radius: 26px; border: 4px solid var(--navy); box-shadow: 0 6px 0 var(--navy); display: flex; align-items: center; justify-content: center; z-index: 6; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -24px; margin-left: -14px; border: 14px solid transparent; border-top: 18px solid var(--navy); }
.bubble::before { content: ''; position: absolute; left: 50%; bottom: -14px; margin-left: -10px; border: 10px solid transparent; border-top: 13px solid #fff; z-index: 1; }
.bubble p { margin: 0; font-family: 'Maru', sans-serif; font-weight: 900; font-size: 40px; letter-spacing: .06em; line-height: 1.2; text-align: center; color: var(--ink); white-space: pre-line; }
.bubble p .end { color: var(--red); display: inline-block; animation: endpop .4s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes endpop { from { transform: scale(2); } }
.bubble p .gari { font-family: 'Boku', serif; color: #3a7a2a; font-size: 50px; }
.bubble.small p { font-family: 'Yusei', sans-serif; font-weight: 400; font-size: 24px; letter-spacing: 0; }
.bubble.pop { animation: bpop .3s cubic-bezier(.3,1.6,.5,1); }
.bubble.angry { border-color: var(--akan); box-shadow: 0 6px 0 var(--akan); }
.bubble.strike p { text-decoration: line-through; text-decoration-color: var(--akan); text-decoration-thickness: 5px; }

.miya { position: absolute; left: 50%; top: 214px; width: 240px; height: var(--miyaH, 230px); margin-left: -120px; z-index: 2; transform-origin: 50% 100%; }
.miya img { position: absolute; left: 50%; bottom: 0; max-width: 240px; max-height: 230px; translate: -50% 0; opacity: 0; transition: opacity .1s; filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); }
.miya img.on { opacity: 1; }
.miya.hop { animation: hop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes hop { 40% { transform: translateY(-14px) scale(1.04, .97); } }
.miya.hit { animation: hit .4s; }
@keyframes hit { 20% { transform: rotate(-8deg) translateX(-10px); } 60% { transform: rotate(4deg); } }
.fx { position: absolute; inset: 0; pointer-events: none; }
.fx .mark { position: absolute; font-size: 44px; animation: bpop .35s cubic-bezier(.3,1.6,.5,1) both; }

.history { position: absolute; left: 0; right: 0; top: var(--histTop, 452px); height: 26px; z-index: 4; display: flex; justify-content: flex-end; gap: 6px; padding: 0 16px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 20%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%); }
.history span { flex: none; font-size: 13px; line-height: 26px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--ink); white-space: nowrap; }
.history span.me { background: #ffe7a0; }
.history span.bad { background: rgba(255,255,255,.5); color: #a99; text-decoration: line-through; }
.history span::after { content: ' →'; color: #b8a888; }
.history span:last-child::after { content: ''; }

.cards { position: absolute; left: 22px; right: 22px; top: var(--cardsTop, 488px); z-index: 5; display: flex; flex-direction: column; gap: var(--cardGap, 10px); }
.wcard { position: relative; height: var(--cardH, 64px); border-radius: 18px; background: #fff; border: 4px solid var(--navy); box-shadow: 0 5px 0 var(--navy); font-family: 'Maru', sans-serif; font-weight: 900; font-size: 30px; letter-spacing: .08em; color: var(--ink); display: flex; align-items: center; justify-content: center; transition: transform .08s; }
.wcard:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy); }
.wcard.deal { animation: deal .32s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes deal { from { transform: translateX(120%) rotate(8deg); opacity: 0; } }
.wcard .comm { position: absolute; right: 12px; top: 50%; translate: 0 -50%; font-size: 13px; letter-spacing: 0; padding: 3px 8px; border-radius: 8px; background: #fff3a8; color: #8a6a00; }
.wcard.right { background: #e8ffd6; border-color: #3b8f2a; box-shadow: 0 5px 0 #3b8f2a; }
.wcard.wrong { background: #ffe1dc; border-color: var(--akan); box-shadow: 0 5px 0 var(--akan); animation: shake .3s; }
.wcard.show { animation: glow .6s ease-in-out 2; }
@keyframes glow { 50% { box-shadow: 0 5px 0 #3b8f2a, 0 0 0 8px rgba(123,193,66,.6); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.cards.off .wcard, .akan.off { pointer-events: none; }
.cards.dim .wcard { opacity: .35; }

.akan { position: absolute; left: 60px; right: 60px; bottom: var(--akanB, 26px); height: var(--akanH, 74px); z-index: 5; border-radius: 22px; background: linear-gradient(#ff5a46, var(--akan)); color: #fff; font-family: 'Dela', sans-serif; font-size: 34px; letter-spacing: .1em;
  box-shadow: 0 7px 0 #8f1610, 0 12px 20px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform .08s, box-shadow .08s; }
.akan:active { transform: translateY(6px); box-shadow: 0 1px 0 #8f1610; }
.akan .hari { width: 40px; height: 40px; flex: none; }
.land .akan .hari { width: 56px; height: 56px; }
.akan.show { animation: glowred .6s ease-in-out 2; }
@keyframes glowred { 50% { box-shadow: 0 7px 0 #8f1610, 0 0 0 10px rgba(255,210,31,.8); } }
.akan.swing .hari { animation: swing .3s; transform-origin: 50% 90%; }
@keyframes swing { 40% { transform: rotate(-60deg) scale(1.4); } }

.practice { position: absolute; left: 16px; right: 16px; top: calc(var(--cardsTop, 488px) - 76px);   /* カードのすぐ上（画面の高さに合わせて動く） */  z-index: 11; padding: 9px 12px; text-align: center; border-radius: 14px; background: #ffd21f; color: var(--navy); font-size: 15px; line-height: 1.35; box-shadow: 0 4px 0 var(--navy); display: none; }
.practice.on { display: block; animation: bpop .3s; }
.finger { position: absolute; right: 18px; bottom: -26px; font-size: 44px; z-index: 6; pointer-events: none; animation: tapme 1s ease-in-out infinite; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }

.telop { position: absolute; left: 0; right: 0; top: 40%; z-index: 12; text-align: center; font-family: 'Dela', sans-serif; font-size: 34px; color: #fff; text-shadow: 0 3px 0 var(--navy), 3px 0 0 var(--navy), -3px 0 0 var(--navy), 0 -3px 0 var(--navy), 0 8px 16px rgba(0,0,0,.4); pointer-events: none; opacity: 0; white-space: pre-line; }
.telop.on { animation: telop 1.4s ease-out both; }
@keyframes telop { 0% { transform: scale(2.2); opacity: 0; } 18% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.minus { position: absolute; right: 18px; top: 86px; z-index: 13; font-family: 'Dela', sans-serif; font-size: 30px; color: #ffd21f; text-shadow: 0 3px 0 var(--akan), 2px 0 0 var(--akan), -2px 0 0 var(--akan); opacity: 0; pointer-events: none; }
.minus.on { animation: minus 1s ease-out both; }
@keyframes minus { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 20% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0; transform: translateY(30px); } }
.pop { position: absolute; z-index: 26; font-family: 'Dela', sans-serif; font-size: 26px; color: #fff; pointer-events: none; white-space: nowrap; text-shadow: 0 2px 0 var(--red), 2px 0 0 var(--red), -2px 0 0 var(--red), 0 -2px 0 var(--red); animation: popup .9s ease-out both; }
@keyframes popup { from { transform: translateY(0) scale(.6); opacity: 0; } 20% { transform: translateY(-10px) scale(1.1); opacity: 1; } to { transform: translateY(-60px); opacity: 0; } }
.confetti { position: absolute; width: 10px; height: 14px; z-index: 25; pointer-events: none; border-radius: 2px; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 60; }
.flash.on { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .8; } 100% { opacity: 0; } }

/* ───────── 時間切れのオチ ───────── */
#forget { background: radial-gradient(circle at 50% 40%, #4a3a5a, #15101e); z-index: 30; }
.f-miya { position: absolute; left: 50%; top: 300px; height: 300px; translate: -50% 0; filter: grayscale(.4) drop-shadow(0 8px 10px rgba(0,0,0,.4)); }
.f-bubble { position: absolute; left: 24px; right: 24px; top: 110px; padding: 20px 10px; text-align: center; background: #fff; border: 5px solid var(--navy); border-radius: 30px; font-family: 'Boku', serif; font-size: 40px; line-height: 1.25; box-shadow: 0 8px 0 var(--navy); opacity: 0; }
.f-bubble.on { opacity: 1; animation: bpop .5s cubic-bezier(.3,1.6,.5,1) both; }
.f-words { position: absolute; inset: 0; pointer-events: none; }
.f-words span { position: absolute; padding: 4px 10px; border-radius: 999px; background: #fff; font-size: 15px; white-space: nowrap; }
.f-telop { position: absolute; left: 0; right: 0; top: calc(var(--H, 844px) - 204px); text-align: center; font-family: 'Boku', serif; font-size: 32px; line-height: 1.4; color: #fff; opacity: 0; transition: opacity 1s; }
.f-telop.on { opacity: 1; }

/* ───────── 結果 ───────── */
#result { background: radial-gradient(circle at 50% 30%, #fffdf6, #f6e7cc); z-index: 31; }
.r-head { position: absolute; top: 26px; left: 0; right: 0; text-align: center; margin: 0; font-family: 'Dela', sans-serif; font-size: 22px; letter-spacing: .4em; color: var(--navy); }
.r-miya { position: absolute; left: 50%; top: 64px; height: 200px; translate: -50% 0; filter: drop-shadow(0 8px 10px rgba(0,0,0,.2)); }
.r-rank { position: absolute; left: 40px; right: 16px; top: 272px; text-align: center; }
.r-label { margin: 0; font-size: 15px; color: #8a7a64; }
.r-name { margin: 2px 0 4px; font-family: 'Boku', serif; font-size: 38px; line-height: 1.15; color: var(--red); white-space: nowrap; }
.r-name.long { font-size: 29px; }
.r-name.stamp { animation: stamp .45s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes stamp { from { transform: scale(3) rotate(-10deg); opacity: 0; } }
.r-note { margin: 0; font-size: 14px; }
.r-best { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: 13px; }
.r-nums { position: absolute; left: 48px; right: 16px; top: 412px; display: flex; gap: 8px; }
.r-nums div { flex: 1; background: #fff; border-radius: 16px; padding: 8px 4px; text-align: center; box-shadow: 0 0 0 3px var(--navy), 0 5px 0 3px var(--navy); }
.r-nums b { display: block; font-family: 'Dela', sans-serif; font-weight: 400; font-size: 32px; color: var(--navy); line-height: 1.1; }
.r-nums span { font-size: 12px; }
.r-new { position: absolute; left: 40px; right: 12px; top: 518px; text-align: center; }
.r-new p { margin: 0 0 6px; font-size: 14px; color: var(--red); }
.r-new .row { display: flex; justify-content: center; gap: 8px; }
.r-new img { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 3px var(--gold); animation: bpop .4s both; }
.r-btns { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; }
.r-row { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.r-row .btn-sub { font-size: 13px; padding: 9px 12px; }

/* ───────── 図鑑 ───────── */
#album { background: #f6ecd9; z-index: 32; }
.a-head { position: absolute; left: 0; right: 0; top: 0; height: 70px; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 10px; padding: 0 56px 0 12px; box-shadow: 0 4px 0 var(--red); z-index: 2; }
.a-head h2 { margin: 0; font-family: 'Boku', serif; font-weight: 400; font-size: 22px; flex: 1; white-space: nowrap; }
.a-back { color: #fff; font-size: 14px; padding: 8px 6px; }
#aCount { font-size: 13px; }
.a-hint { position: absolute; left: 16px; right: 16px; top: 82px; margin: 0; font-size: 13px; color: #8a7a64; text-align: center; }
.a-grid { position: absolute; left: 0; right: 0; top: 110px; bottom: 0; overflow-y: auto; padding: 8px 14px 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: start; }
.a-cell { aspect-ratio: 3 / 4; background: #fff; border-radius: 14px; box-shadow: 0 0 0 3px var(--navy), 0 5px 0 3px var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px; cursor: pointer; }
.a-cell img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.a-cell p { margin: 4px 0 0; font-size: 11px; text-align: center; line-height: 1.25; }
.a-cell.lock { background: #d9cdb6; box-shadow: 0 0 0 3px #a8987c, 0 5px 0 3px #a8987c; cursor: default; }
.a-cell.lock span { font-family: 'Dela', sans-serif; font-size: 34px; color: #a8987c; }
.a-cell.lock small { font-size: 10px; color: #8a7a64; margin-top: 4px; }
.a-modal { position: absolute; inset: 0; background: rgba(12,16,32,.75); display: none; z-index: 5; }
.a-modal.on { display: block; }
.a-card { position: absolute; left: 22px; right: 22px; top: 50%; transform: translateY(-50%); background: #fff; border-radius: 22px; padding: 18px; text-align: center; border: 4px solid var(--navy); box-shadow: 0 8px 0 var(--navy); animation: bpop .35s cubic-bezier(.3,1.6,.5,1); }
.a-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.a-card h3 { font-family: 'Boku', serif; font-weight: 400; font-size: 28px; margin: 10px 0 6px; }
.a-card p { font-size: 15px; line-height: 1.6; margin: 0 0 14px; text-align: left; }
.a-card .ac-close { font-size: 14px; color: #8a7a64; }

@media (hover: hover) {
  .wcard:hover { background: #fffbe8; transform: translateY(-2px); }
  .akan:hover { filter: brightness(1.08); }
  .btn-main:hover, .btn-sub:hover { filter: brightness(1.08); }
}

/* ───────── 横長（PC・スマホ横向き） 1280×720 ───────── */
.land .card { left: 50%; right: auto; width: 460px; transform: translate(-50%, -50%); }
.land .t-rays, .land .t-glow { left: 400px; top: 380px; }
.land .t-miya { left: 400px; top: 120px; height: 520px; }
.land .t-logo { left: 690px; right: 50px; top: 70px; }
.land .t-big { font-size: 120px; }
.land .hanko { right: 20px; top: 70px; width: 64px; height: 64px; font-size: 26px; }
.land .t-sub { left: 690px; right: 50px; top: 270px; font-size: 22px; }
.land #btnStart { left: 935px; top: 350px; font-size: 32px; min-width: 320px; }
.land #btnAlbum { left: 935px; top: 470px; }
.land .t-best { left: 690px; right: 50px; top: 540px; }
.land .t-foot { left: 690px; right: 50px; }

/* しりとり：左に宮本さんと吹き出し、右にカードとアカン */
.land .hud { left: 64px; right: auto; width: 520px; top: 16px; }
.land .timer { left: 560px; right: 70px; top: 18px; }
.land .bubble { left: 60px; right: auto; width: 560px; top: 76px; min-height: 120px; }
.land .bubble p { font-size: 52px; }
.land .miya { left: 340px; top: 250px; width: 360px; height: 360px; margin-left: -180px; }
.land .miya img { max-width: 360px; max-height: 360px; }
.land .history { left: 40px; right: auto; width: 600px; top: 640px; height: 30px; }
.land .history span { font-size: 15px; line-height: 30px; }
.land .cards { left: 700px; right: 70px; top: 110px; gap: 16px; }
.land .wcard { height: 92px; font-size: 40px; }
.land .akan { left: 700px; right: 70px; bottom: 60px; height: 110px; font-size: 48px; }
.land .practice { left: 60px; right: auto; width: 560px; top: auto; bottom: 90px; font-size: 17px; }
.land .minus { right: 80px; top: 50px; }
.land .telop { font-size: 48px; }
.land .f-miya { top: 230px; height: 400px; }
.land .f-bubble { left: 340px; right: 340px; top: 40px; font-size: 48px; }
.land .f-telop { top: 620px; }
.land .r-miya { left: 330px; top: 60px; height: 330px; }
.land .r-rank { left: 40px; right: auto; width: 580px; top: 410px; }
.land .r-name { font-size: 46px; }
.land .r-name.long { font-size: 38px; }
.land .r-nums { left: 700px; right: 70px; top: 100px; }
.land .r-nums b { font-size: 42px; }
.land .r-new { left: 680px; right: 60px; top: 250px; }
.land .r-btns { left: 640px; right: 0; bottom: auto; top: 420px; }
.land .a-grid { grid-template-columns: repeat(6, 1fr); padding: 10px 40px 40px; gap: 16px; }
.land .a-card { left: 50%; right: auto; width: 520px; transform: translate(-50%, -50%); }
