/* One quiet letter at a time; no clocks, score, automatic advance or stored artwork. */
.ap-play{min-height:100dvh;background:radial-gradient(ellipse at 50% 10%,#edf1dc,transparent 60%),#f8f6ee;color:#354735;padding:0 max(16px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
#app:has(.ap-play){max-width:1200px}
.ap-head{display:flex;align-items:center;gap:12px;max-width:960px;margin:auto;min-height:calc(80px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
.ap-head h1{flex:1;text-align:center;font-size:19px;letter-spacing:-.04em;margin:0;word-break:keep-all}
.ap-head .nb-icon{color:#4e6549;min-width:46px;min-height:46px}
.ap-body{max-width:850px;margin:auto;display:flex;flex-direction:column;align-items:center;gap:20px}
.ap-stage{width:100%;max-width:480px;text-align:center}
.ap-eyebrow{font-size:14px;font-weight:750;margin:8px 0 14px;color:#627957}
.ap-letter-card{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;aspect-ratio:1.08;border:5px solid #fff;border-radius:36px;background:#fffdf6;color:#304b3a;box-shadow:0 7px 0 #dce4ce;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;position:relative}
.ap-letter{display:flex;align-items:center;justify-content:center;font-family:Verdana,"DejaVu Sans",Arial,sans-serif;font-weight:700;font-size:clamp(150px,48vw,270px);line-height:1;width:100%;height:1.15em;letter-spacing:0;font-style:normal;font-synthesis:none}
.ap-capital-i{height:.87em;width:.73em;display:block}
.ap-tap-hint{font-size:12px;font-weight:650;color:#78866a;line-height:1.5;margin:10px 0 0}
.ap-controls{width:100%;max-width:380px;text-align:center}
.ap-cue{font-size:19px;font-weight:750;margin:0 0 17px;letter-spacing:-.04em}
.ap-navigation{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.14fr);gap:10px}
.ap-prev,.ap-next{display:flex;align-items:center;justify-content:center;gap:8px;min-height:60px;padding:8px;border-radius:21px;font-size:16px;font-weight:800;white-space:nowrap;touch-action:manipulation}
.ap-prev{border:1px solid #cbd5bb;background:#fffdf6;color:#4c6747;box-shadow:0 4px 0 #dce4ce}
.ap-prev:disabled{color:#7c8273;background:#f1f0e9;border-style:dashed;box-shadow:none;cursor:default}
.ap-next{background:#467956;color:#fff;box-shadow:0 4px 0 #346043}
.ap-prev svg,.ap-next svg{width:21px;height:21px;flex:none}
.ap-listen{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;min-width:146px;margin-top:15px;border:1px solid #cbd5bb;border-radius:17px;background:#fffdf6;color:#4c6747;font-size:14px;font-weight:700;padding:10px 16px}
.ap-listen svg{width:21px;height:21px}.ap-listen:disabled{color:#7c8273;background:#f1f0e9;border-style:dashed;cursor:default}
.ap-voice-note{font-size:11px;color:#727e65;line-height:1.7;margin:10px 0 0;min-height:19px}
.ap-play button:focus-visible,.nb-alphabet-shortcut:focus-visible{outline:3px solid #247fb1;outline-offset:4px}
.ap-play button:active:not(:disabled){filter:brightness(.96)}
.ap-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.nb-home .nb-alphabet-thumb{display:flex!important;align-items:center;justify-content:center;gap:1px;background:#f3dfc7;color:#675441;font-family:Verdana,"DejaVu Sans",sans-serif;font-weight:800;font-size:clamp(16px,4vw,22px)!important;line-height:1}
.nb-alphabet-thumb b:nth-child(2){color:#57826a}.nb-alphabet-thumb b:nth-child(3){color:#b77b66}
@media(min-width:700px){.nb-home .nb-legacy{grid-template-columns:repeat(9,minmax(0,1fr))}.ap-body{flex-direction:row;gap:45px;align-items:center;min-height:calc(100dvh - 130px)}.ap-stage{flex:1;min-width:0}.ap-controls{flex:0 0 290px}.ap-letter{font-size:clamp(190px,29vw,270px)}.ap-eyebrow{font-size:16px}.ap-head h1{font-size:23px}}
@media(max-width:350px){.ap-head{min-height:68px;gap:6px}.ap-head h1{font-size:17px}.ap-body{gap:17px}.ap-letter-card{border-radius:29px}.ap-eyebrow{margin-top:4px;margin-bottom:11px}.ap-letter{font-size:150px}.ap-tap-hint{font-size:11px;margin-top:5px}.ap-cue{font-size:17px;margin-bottom:12px}.ap-prev,.ap-next{min-height:54px}.ap-listen{margin-top:12px}}
@media(orientation:landscape) and (max-height:600px){.ap-head{min-height:calc(60px + env(safe-area-inset-top))}.ap-body{flex-direction:row;justify-content:center;gap:30px;min-height:0}.ap-stage{flex:none;width:min(43vw,calc(100dvh - 100px));max-width:340px}.ap-eyebrow{font-size:12px;margin:0 0 8px}.ap-letter-card{aspect-ratio:1.2;border-radius:27px}.ap-letter{font-size:clamp(110px,37dvh,190px);height:1.1em}.ap-tap-hint{font-size:10px;margin:2px 0 0}.ap-controls{flex:0 1 290px}.ap-cue{font-size:19px;margin:0 0 15px}.ap-prev,.ap-next{min-height:54px}.ap-listen{margin-top:16px}}
@media(prefers-reduced-motion:reduce){.ap-play *{animation:none!important;transition:none!important}}

/* Keep the listening action on the first screen on short portrait viewports. */
@media (orientation:portrait) and (max-height:640px){
  .ap-head{min-height:calc(64px + env(safe-area-inset-top))}
  .ap-body{gap:14px}
  .ap-eyebrow{margin:4px 0 10px}
  .ap-letter-card{aspect-ratio:auto;height:clamp(175px,calc(55dvh - 65px),290px)}
  .ap-letter{font-size:clamp(112px,calc(100dvh - 355px),190px)}
  .ap-cue{margin-bottom:10px}
  .ap-listen{margin-top:10px}
}
