/* 脳トレ：配置と使いやすさのための最小限の見た目 */
.bt-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.bt-nav a { font-size: 14px; text-decoration: none; color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surface); }
.bt-nav a[aria-current=page] { background: var(--accent); color: #fff; border-color: var(--accent); }
.play { text-align: center; }
.show { font-size: 44px; font-weight: 700; min-height: 72px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; letter-spacing: .06em; overflow-wrap: anywhere; }
.ans { font-size: 30px; font-weight: 700; min-height: 46px; font-variant-numeric: tabular-nums; letter-spacing: .06em; overflow-wrap: anywhere; }
.info { color: var(--muted); font-size: 14px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 300px; margin: 10px auto 0; }
.keypad button { font: inherit; font-size: 24px; font-weight: 700; padding: 12px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; touch-action: manipulation; }
.keypad button.ok { background: var(--accent); color: #fff; border-color: var(--accent); font-size: 18px; }
.word { font-size: 64px; font-weight: 700; min-height: 100px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; }
.sbtns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.sbtns button { font: inherit; font-size: 18px; font-weight: 700; padding: 12px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: flex; gap: 8px; align-items: center; justify-content: center; touch-action: manipulation; }
.sw { width: 18px; height: 18px; border-radius: 4px; display: inline-block; }
.feedback { min-height: 1.6em; font-weight: 700; }
.board { display: grid; gap: 6px; max-width: 440px; margin: 0 auto; }
.card-p { aspect-ratio: 1; font-size: 28px; border-radius: 10px; border: 1px solid var(--line); background: var(--accent); color: #fff; cursor: pointer; touch-action: manipulation; padding: 0; }
.card-p span { visibility: hidden; }
.card-p.up, .card-p.got, .peek .card-p { background: var(--surface); color: var(--text); }
.card-p.up span, .card-p.got span, .peek .card-p span { visibility: visible; }
.card-p.got { opacity: .55; }
.sboard { display: grid; gap: 4px; max-width: 520px; margin: 0 auto; }
.sboard button { aspect-ratio: 1; font: inherit; font-size: 22px; font-weight: 700; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; touch-action: manipulation; padding: 0; }
.sboard button.found { background: var(--accent-weak); color: var(--muted); }
.sboard button.miss { background: var(--danger); color: #fff; }
.mono { font-family: var(--mono); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 360px; }
.day { aspect-ratio: 1; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.day.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.game-list .tool-card .best { font-size: 12px; color: var(--muted); margin-top: 6px; }
.sentence { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 10px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
.vboard { display: grid; gap: 6px; max-width: 420px; margin: 0 auto; }
.vboard button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; touch-action: manipulation; padding: 0; display: flex; align-items: center; justify-content: center; }
.vboard button.lit { background: var(--accent); border-color: var(--accent); }
.vboard button.ok { background: var(--accent-weak); }
.vboard button.ng { background: var(--danger); }
.vboard button.want { outline: 3px solid var(--accent); outline-offset: -3px; }
.vboard svg { width: 70%; height: 70%; }
.vs { display: flex; flex-direction: column; gap: 6px; }
.vs-side { border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; background: var(--bg); }
.vs-side.flip { transform: rotate(180deg); }
.vs-side .who { font-size: 14px; color: var(--muted); }
.vs-side .pts { font-size: 28px; font-weight: 700; }
.vs-side .q { font-size: 40px; font-weight: 700; min-height: 56px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.vs-side .ch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.vs-side .ch.four { grid-template-columns: repeat(2, 1fr); }
.vs-side .ch button { font: inherit; font-size: 24px; font-weight: 700; padding: 14px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; touch-action: manipulation; }
.vs-side .ch button:disabled { opacity: .35; }
.vs-side.won { outline: 3px solid var(--accent); }
.vs-side .msg { min-height: 1.4em; font-weight: 700; }
.vs-mid { display: flex; justify-content: center; align-items: center; gap: 12px; font-weight: 700; }
@media (max-width: 600px) { .word { font-size: 52px; } .show { font-size: 36px; } }
@media print { .bt-nav, .keypad, .play, .vs { display: none !important; } }
