/* Matches the observed PocketKana dark UI, independently written for the web. */
.demo.demo-pocketkana { display: grid; min-height: 0; justify-items: center; gap: 1rem; padding: clamp(1rem, 4vw, 2rem) 12px; }
.pk-toolbar { width: min(360px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .75rem; }
.pk-reset { padding: 8px 0 8px 8px; min-height: 44px; background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; flex-shrink: 0; }
.pk-phone { --pk-bg: #000; --pk-card: #111; --pk-raised: #252525; --pk-line: #2c2c2c; --pk-muted: #bdbdbd; --pk-fg: #e5e5e5; width: min(360px, 100%); height: 650px; border: 8px solid #080808; border-radius: 32px; overflow: hidden; background: var(--pk-bg); color: var(--pk-fg); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; font: 14px/1.45 var(--sans); color-scheme: dark; }
.pk-phone *, .pk-phone *::before, .pk-phone *::after { box-sizing: border-box; }
.pk-phone svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.pk-phone button, .pk-phone input { font: inherit; }
.pk-phone button { color: inherit; cursor: pointer; }
.pk-phone button:focus-visible, .pk-phone input:focus-visible, .pk-reset:focus-visible, .pk-outside:focus-visible { outline: 2px solid #a5bce1; outline-offset: 3px; }
.pk-header { min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.pk-header h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 650; }
.pk-header h3:focus { outline: none; }
.pk-body { min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 12px 16px 24px; scrollbar-width: thin; scrollbar-color: #454545 transparent; }
.pk-body h4 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 650; line-height: 1.35; }
.pk-body p { margin: 0 0 16px; }
.pk-note, .pk-mode p { font-size: .8rem; color: var(--pk-muted); line-height: 1.5; }
.pk-label { color: var(--pk-muted); display: block; font-size: .75rem; font-weight: 650; margin-bottom: 8px; }
.pk-body .pk-label { margin-bottom: 8px; }
.pk-content-sample { background: var(--pk-card); border: 1px solid var(--pk-line); border-radius: 22px; min-height: 132px; padding: 16px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; text-align: center; margin-bottom: 8px; }
.pk-content-sample > span:last-child { font-size: .8rem; color: var(--pk-muted); }
.pk-kana { font-size: 3rem; line-height: 1.5; font-weight: 400; }
.pk-mode { margin: 16px 0 6px; }
.pk-mode h4 { font-size: 1.4rem; }
.pk-mode .pk-label { margin-bottom: 2px; }
.pk-row { width: 100%; display: flex; align-items: center; text-align: left; gap: 12px; padding: 12px 3px; background: transparent; border: 0; border-bottom: 1px solid var(--pk-line); min-height: 62px; }
.pk-row > span:not(.pk-row-symbol) { flex: 1; min-width: 0; }
.pk-row strong, .pk-choice strong, .pk-select-row strong { display: block; font-weight: 650; }
.pk-row small, .pk-choice small, .pk-select-row small { display: block; color: var(--pk-muted); font-size: .75rem; margin-top: 3px; }
.pk-row-symbol { font-size: 23px; width: 28px; text-align: center; flex-shrink: 0; color: var(--pk-muted); }
.pk-row > svg { width: 19px; }
.pk-button { min-height: 42px; border: 1px solid var(--pk-line); background: var(--pk-raised); border-radius: 20px; padding: 10px 16px; line-height: 1.3; }
.pk-button:hover, .pk-row:hover { background-color: #303030; }
.pk-button.pk-primary { background: #e3e3e3; border-color: #e3e3e3; color: #171717; font-weight: 600; }
.pk-button.pk-primary:hover { background: #fff; }
.pk-wide { width: 100%; margin-top: 10px; }
.pk-button.pk-back { padding: 0; background: transparent; border: 0; border-radius: 50%; min-height: 40px; width: 32px; display: grid; place-items: center; flex-shrink: 0; }
.pk-fieldset { padding: 0; margin: 24px 0; border: 0; min-width: 0; }
.pk-fieldset legend { padding: 0; margin-bottom: 10px; font-weight: 600; color: var(--pk-muted); }
.pk-choice { display: flex; align-items: center; gap: 14px; padding: 17px 14px; background: var(--pk-card); border: 1px solid transparent; border-radius: 20px; margin-bottom: 10px; cursor: pointer; }
.pk-choice:has(:checked) { background: var(--pk-raised); border-color: #777; }
.pk-choice > span { flex: 1; }
.pk-phone input[type="radio"], .pk-phone input[type="checkbox"] { accent-color: #e3e3e3; width: 20px; height: 20px; flex-shrink: 0; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-chip { position: relative; cursor: pointer; }
.pk-chip input { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; }
.pk-chip span { display: block; border: 1px solid var(--pk-line); border-radius: 12px; padding: 10px 12px; color: var(--pk-muted); }
.pk-chip input:checked + span { background: var(--pk-raised); color: var(--pk-fg); border-color: #777; }
.pk-chip input:focus-visible + span { outline: 2px solid #a5bce1; outline-offset: 2px; }
.pk-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 20px 0 10px; }
.pk-section-heading h4 { font-size: .9rem; margin: 0; }
.pk-text { background: none; border: 0; padding: 6px 10px; }
.pk-stack { display: grid; gap: 10px; margin-bottom: 12px; }
.pk-select-row { display: flex; gap: 12px; align-items: center; padding: 14px 10px; background: var(--pk-card); border-radius: 18px; cursor: pointer; }
.pk-select-row strong { font-size: .8rem; }
.pk-row-kana { display: block; font-size: 1rem; margin-top: 6px; }
.pk-card { padding: 18px; background: var(--pk-card); border-radius: 22px; }
.pk-card h4 { margin: 10px 0; }
.pk-card > p { color: var(--pk-muted); font-size: .85rem; }
.pk-body .pk-section-title { margin-top: 26px; }
.pk-blue { color: #9db3d5; }
.pk-vowels { display: grid; grid-template-columns: repeat(auto-fit, minmax(2.5rem, 1fr)); gap: 5px; margin: 20px 0; }
.pk-vowels .pk-card { text-align: center; padding: 15px 2px; border-radius: 13px; }
.pk-vowels span { display: block; font-size: 1.6rem; margin-bottom: 8px; }
.pk-vowels strong { font-size: .85rem; color: var(--pk-muted); font-weight: 400; }
.pk-pill { display: inline-block; padding: 8px 15px; border-radius: 12px; background: var(--pk-raised); }
.pk-stat { font-size: 3.6rem; margin-top: 22px; font-weight: 400; line-height: 1.2; }
.pk-stat > span { font-size: .75em; }
.pk-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pk-results .pk-card { padding: 16px; display: grid; gap: 3px; }
.pk-result-kana { font-size: 2rem; }
.pk-results small { font-size: .7rem; color: var(--pk-muted); }
.pk-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 0 12px; background: #181818; gap: 2px; }
.pk-nav button { background: transparent; border: 0; display: grid; justify-items: center; gap: 4px; padding: 2px; color: var(--pk-muted); font-size: .7rem; min-width: 0; }
.pk-nav button > svg { width: 47px; height: 31px; padding: 4px 12px; border-radius: 24px; }
.pk-nav button[aria-current] { color: var(--pk-fg); font-weight: 650; }
.pk-nav button[aria-current] > svg { background: var(--pk-raised); }
.pk-body.pk-home { background: radial-gradient(ellipse at 15% 5%, #36384a, transparent 75%), #191b22; display: flex; flex-direction: column; justify-content: safe center; padding-block: 32px; }
.pk-home-widget { background: #08090de8; border-radius: 24px; padding: 18px; text-align: center; border: 1px solid #41424b; flex-shrink: 0; }
.pk-widget-label { font-size: .8rem; color: #c4c4ce; }
.pk-widget-question { min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding-block: 18px; }
.pk-widget-question small { color: #bdbdc5; overflow-wrap: anywhere; }
.pk-widget-question .pk-kana { font-size: 3.6rem; }
.pk-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk-answers .pk-button { min-height: 44px; border-radius: 14px; background: #252630; }
.pk-home-widget.pk-quiet { background: #08090da8; border-color: transparent; }
.pk-quiet .pk-answers .pk-button { background: transparent; border-color: #646470; }
.pk-font-serif .pk-widget-question .pk-kana { font-family: "Yu Mincho", "Noto Serif CJK JP", serif; }
.pk-font-light .pk-widget-question .pk-kana { font-weight: 300; }
.pk-size-compact .pk-widget-question .pk-kana { font-size: 2.6rem; }
.pk-size-large .pk-widget-question .pk-kana { font-size: 4.5rem; }
.pk-size-largest .pk-widget-question .pk-kana { font-size: 5.4rem; }
.pk-correct .pk-widget-label, .pk-correct .pk-feedback-button { color: #94d7b0; }
.pk-wrong .pk-widget-label, .pk-wrong .pk-feedback-button { color: #ff8c8c; }
.pk-feedback-button { background: transparent; }
.pk-correct .pk-feedback-button { border-color: #466856; }
.pk-wrong .pk-feedback-button { border-color: #854949; }
.pk-body .pk-home-caption { margin: 18px 0 0; text-align: center; font-size: .7rem; color: #c0c0cb; }
.pk-answer-form { text-align: left; }
.pk-answer-form label { display: block; font-size: .8rem; color: #c4c4ce; }
.pk-answer-form input { width: 100%; min-width: 0; margin-top: 5px; background: #191a22; color: #eee; border: 1px solid #737581; border-radius: 10px; padding: 10px 12px; font-size: 16px; }
.pk-outside { background: transparent; color: var(--accent); border: 1px solid var(--line); border-radius: 20px; padding: 10px 18px; font: 500 .85rem var(--sans); cursor: pointer; }
.pk-switch .pk-outside:hover { background: var(--surface); border-color: var(--accent); }
.pk-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 380px) { .pk-body { padding-inline: 12px; } .pk-phone { border-width: 6px; } .pk-toolbar { font-size: .7rem; } .pk-row { gap: 8px; } .pk-row-symbol { width: 23px; } }

.pk-outline { display:grid; gap:12px; margin:24px 0; }
.pk-outline > div { display:grid; grid-template-columns:32px 1fr; gap:4px 10px; padding:16px; border:1px solid #303030; border-radius:12px; background:#151515; }
.pk-outline span { grid-row:span 2; color:#b997df; }
.pk-outline small { color:#aaa; }
.pk-path .pk-row-symbol { font-size:14px; color:#b997df; }
