body { min-height: 100dvh; }
#app { max-width: 480px; margin: 0 auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; min-height: 100dvh; }
.p-head { display: flex; flex-direction: column; gap: 2px; }
.p-logo { font-size: 20px; font-weight: 900; margin: 0; white-space: nowrap; }
.p-logo em { font-style: normal; color: var(--accent); }
.p-me { color: var(--sub); font-size: 13px; overflow-wrap: anywhere; }
.p-topic { background: var(--panel); border-radius: 14px; padding: 10px 14px; }
.p-topic .k { color: var(--sub); font-size: 12px; }
.p-topic .v { font-size: 20px; font-weight: 900; color: var(--accent); overflow-wrap: anywhere; }
.card { background: var(--panel); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card h1 { font-size: 28px; margin: 0; line-height: 1.2; }
.card h1 em { font-style: normal; color: var(--accent); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { color: var(--sub); font-size: 14px; font-weight: 700; }
.field input, .word-in { font: inherit; font-size: 22px; padding: 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel2); color: var(--text); width: 100%; min-width: 0; }
.field input.code-in { letter-spacing: .2em; text-transform: uppercase; font-weight: 900; font-size: 28px; }
.pbtn { background: var(--accent); color: #222; border-radius: 14px; padding: 16px; font-size: 22px; font-weight: 900; width: 100%; }
.err { color: var(--ng); font-weight: 700; margin: 0; font-size: 15px; }
.msg { font-size: 22px; font-weight: 800; line-height: 1.5; margin: 0; text-align: center; overflow-wrap: anywhere; }
.msg.sub { color: var(--sub); font-size: 15px; font-weight: 600; }
.secret { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.secret .k { color: var(--sub); font-size: 14px; font-weight: 700; }
.secret-rank { font-size: 76px; font-weight: 900; border-radius: 18px; padding: 4px 32px; line-height: 1.1; min-width: 150px; text-align: center; }
.p-tier { --label-w: 56px; --label-fs: 22px; --chip-fs: 14px; gap: 4px; }
.p-tier .tier-row { min-height: 44px; }
.p-tier .tier-words { gap: 4px; padding: 5px 8px; }
.row-in { display: flex; gap: 8px; align-items: stretch; }
.row-in .pbtn { width: auto; padding: 0 20px; flex: none; }
.count { color: var(--sub); font-size: 13px; text-align: right; margin: -6px 0 0; }
textarea.word-in { resize: none; line-height: 1.35; overflow: hidden; font-weight: 700; }
.big-word { font-size: 34px; font-weight: 900; color: var(--accent); text-align: center; margin: 0; overflow-wrap: anywhere; line-height: 1.2; }
.verdict { font-size: 48px; font-weight: 900; text-align: center; margin: 0; }
.verdict.ok { color: var(--ok); }
.verdict.ng { color: var(--ng); }
.ans-rank { display: inline-block; font-size: 28px; font-weight: 900; border-radius: 10px; padding: 2px 14px; }
.p-banner { background: var(--ng); color: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 800; font-size: 15px; text-align: center; }
/* トップ（参加画面）: 言語の切り替え・説明・フッター */
.lang { display: flex; justify-content: flex-end; gap: 6px; }
.lang-btn { background: var(--panel); color: var(--sub); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; }
.lang-btn.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.lead { color: var(--sub); font-size: 15px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.about { color: var(--sub); font-size: 13px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.foot { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--sub); font-size: 12px; margin-top: auto; }
a.pbtn { display: block; text-align: center; text-decoration: none; }
.nb { white-space: nowrap; }
