.tiktok-page { background: #182d4a; color: #fff0c7; --ink: #20364f; --gold: #f6c66a; }
#loading { margin: 24vh auto; text-align: center; font-weight: 700; }
.tiktok-page .shell-stage { background: #223b5d; box-shadow: 0 6px 0 #102038, 0 14px 35px #0d1b3170; }
.tiktok-page .shell-card { color: #20364f; background: #fff7df; border-color: #e9c277; }
.tiktok-page .shell-overlay { background: #0b1e39c9; }
.tiktok-page .shell-eyebrow { text-transform: none; letter-spacing: 0; color: #715123; font-size: 13px; }
.tiktok-page .shell-game-icon { height: 150px; width: 110px; }
.tiktok-page .shell-hint { color: #d9e6f2; }
.tiktok-page .shell-main { gap: 12px; }
.tiktok-page .shell-controls { flex-direction: column; gap: 10px; width: min(780px, 100%); }
.tiktok-story { margin: 8px 0 14px; font-weight: 700; line-height: 1.45; }
.tiktok-guide { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 12px 0; }
.tiktok-guide svg { width: 50px; height: 50px; color: #8d5c24; }
.tiktok-guide .guide-ring { display: grid; place-items: center; border: 3px solid #8d5c24; border-radius: 50%; width: 64px; height: 64px; }
.tiktok-level-picker { display: flex; align-items: center; gap: 9px; margin: 12px 0 8px; }
.tiktok-level-picker button { flex: 0 0 48px; background: #e3eced; font-size: 26px; }
.tiktok-level-picker output { flex: 1; font-size: 17px; font-weight: 850; line-height: 1.35; }
.tiktok-level-picker small { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; }
.tiktok-best { min-height: 18px; font-size: 13px; margin: 6px 0; color: #5b563e; }
.tiktok-tune { margin-top: 14px; background: #e7edef; }
.tiktok-tune[aria-pressed="true"] { border-color: #97703d; background: #f2dfb0; }
.tiktok-hud { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; }
.tiktok-hud h2 { font-size: 18px; margin: 0; line-height: 1.25; }
.tiktok-hud output { font-size: 15px; font-weight: 800; white-space: nowrap; }
.tiktok-wind-wrap { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; }
#tiktok-wind { width: 120px; height: 22px; accent-color: #f6c66a; }
.tiktok-action-row { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
#tiktok-tap { display: flex; align-items: center; justify-content: center; gap: 16px; width: min(100%, 440px); min-height: 84px; padding: 12px 28px; background: #f6c66a; border: 3px solid #bd8031; border-radius: 24px; box-shadow: 0 5px 0 #8d5b29; color: #263449; font-size: 27px; }
#tiktok-tap svg { width: 38px; height: 38px; flex-shrink: 0; }
#tiktok-tap small { display: block; font-size: 12px; margin-top: 3px; font-weight: 600; }
#tiktok-tap:active { transform: translateY(3px); box-shadow: 0 2px 0 #8d5b29; }
#tiktok-tap:disabled { opacity: .7; transform: none; }
.tiktok-panel { width: 100%; text-align: center; }
#tiktok-phase { display: block; font-size: 16px; font-weight: 750; line-height: 1.4; min-height: 23px; }
.tiktok-calibration-dots { display: flex; justify-content: center; gap: 10px; margin: 10px 0; }
.tiktok-calibration-dots span { width: 20px; height: 20px; border: 2px solid #c8d7e9; border-radius: 50%; color: #20364f; font-size: 12px; font-weight: 900; line-height: 16px; }
.tiktok-calibration-dots [data-heard="true"] { border-style: dashed; background: #67829a; }
.tiktok-calibration-dots [data-tapped="true"] { border-style: solid; border-color: #f6c66a; background: #f6c66a; }
.tiktok-small-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tiktok-small-actions button { padding: 10px 18px; background: #e7edef; color: #20364f; }
.tiktok-small-actions .tiktok-start { background: #f6c66a; }
#tiktok-calibration-status { margin: 8px 0 0; font-size: 14px; color: #d9e6f2; }
.tiktok-page .tiktok-next { margin-top: 12px; background: #dbe9df; }
.tiktok-page button:focus-visible, .tiktok-page a:focus-visible, .tiktok-page canvas:focus-visible { outline-color: #83d8f6; }
.tiktok-page .shell-card button:focus-visible, .tiktok-page .shell-card a:focus-visible { outline-color: #214f87; }
@media (max-width: 620px) {
  .tiktok-page .shell-main { gap: 14px; justify-content: center; }
  .tiktok-page .shell-card { padding: 18px; }
  .tiktok-page .shell-start-heading { flex-direction: row; gap: 12px; }
  .tiktok-page .shell-start-heading h1 { font-size: 29px; text-align: left; }
  .tiktok-page .shell-game-icon { width: 76px; height: 117px; }
  .tiktok-page .shell-modes { margin: 12px 0; }
  .tiktok-page .shell-mode { min-height: 67px; }
  .tiktok-guide { margin: 6px 0; }
  .tiktok-guide svg { width: 37px; height: 37px; }
  .tiktok-guide .guide-ring { width: 52px; height: 52px; }
  .tiktok-hud { flex-wrap: wrap; gap: 8px; }
  .tiktok-hud h2 { font-size: 16px; }
  .tiktok-hud output { font-size: 14px; }
  .tiktok-wind-wrap { width: 100%; justify-content: center; }
  #tiktok-wind { flex: 1; max-width: 230px; }
  #tiktok-tap { min-height: 86px; font-size: 25px; }
  .tiktok-story { font-size: 14px; margin-bottom: 8px; }
  .tiktok-level-picker output { font-size: 15px; }
  .tiktok-page .shell-hint { font-size: 12px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .tiktok-page .shell-controls { gap: 4px; }
  .tiktok-page .shell-main { gap: 5px; }
  .tiktok-page .shell-hint { display: none; }
  #tiktok-tap { min-height: 52px; padding: 3px 20px; font-size: 20px; }
  #tiktok-tap small { display: none; }
}
