/* /ai/ learning shell — aibou / ぴよまる (DESIGN.md v5)
   Home + player + complete report + きろく. Does NOT load global-design.css. */

:root {
  --aibou-bg: #f4f8fb;
  --aibou-surface: #ffffff;
  --aibou-border: #e2ebf3;
  --aibou-border-faded: #edf2f6;
  --aibou-shadow: 0 1px 3px rgba(43, 57, 72, 0.04);
  --aibou-ink: #2b3948;
  --aibou-ink-sub: #46586b;
  --aibou-muted: #8fa1b3;
  --aibou-faint: #a9b8c6;
  --aibou-disabled: #b6c2cd;
  --aibou-primary: #4f8fdc;
  --aibou-primary-dark: #3a74bd;
  --aibou-primary-tint: #eef4fb;
  --aibou-piyo: #ffd66b;
  --aibou-piyo-dark: #f5c750;
  --aibou-piyo-beak: #e89b4a;
  --aibou-piyo-cheek: #f6b09c;
  --aibou-piyo-eye: #3c3325;
  --aibou-success: #58b287;
  --aibou-success-bg: #f0f9f4;
  --aibou-success-ink: #2e7a56;
  --aibou-track: #edf3f8;
  --aibou-font: "Noto Sans JP", "Hiragino Sans", sans-serif;
}

body:has(#home:not([hidden])),
body:has(#player:not([hidden])),
body:has(#report:not([hidden])),
body:has(#progress:not([hidden])) {
  background: var(--aibou-bg) !important;
  background-image: none !important;
}

/* Hide site chrome on learning-shell home (mock is full-bleed) */
body:has(#home:not([hidden])) .brand,
body:has(#home:not([hidden])) .sfx-toggle,
body:has(#home:not([hidden])) .idbadge {
  display: none !important;
}

/* ── HOME ───────────────────────────────────────── */
.home__topLogo {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: calc(14px + env(safe-area-inset-left));
  z-index: 50;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(43, 57, 72, 0.08);
  text-decoration: none;
}
.home__topLogo img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.home__topLogo:hover img { transform: scale(1.06); }
.home__topLogo img { transition: transform 0.15s ease; }

.screen--home {
  font-family: var(--aibou-font);
  color: var(--aibou-ink);
  background: var(--aibou-bg);
  padding:
    calc(64px + env(safe-area-inset-top))
    26px
    calc(96px + env(safe-area-inset-bottom))
    26px;
  max-width: 430px;
  margin: 0 auto;
  animation: none;
  box-sizing: border-box;
}

.home__date {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--aibou-muted);
  font-variant-numeric: tabular-nums;
}

.home__greet {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.home__streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 7px 13px;
  background: var(--aibou-surface);
  border: 1px solid var(--aibou-border);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--aibou-ink);
  font-variant-numeric: tabular-nums;
}

.home__streak svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--aibou-primary);
}

.home__buddy {
  display: block;
  margin: 0 0 18px;
}

.home__piyo {
  display: none; /* 装飾マスコットは学習殻ホームから外す */
}

.home__bubble {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  background: var(--aibou-surface);
  border: 1px solid var(--aibou-border);
  border-radius: 16px;
  box-shadow: var(--aibou-shadow);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--aibou-ink-sub);
  letter-spacing: 0.01em;
}

.home__menu {
  background: var(--aibou-surface);
  border: 1px solid var(--aibou-border);
  border-radius: 18px;
  box-shadow: var(--aibou-shadow);
  padding: 20px 20px 18px;
  margin: 0 0 14px;
}

.home__menuLabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--aibou-primary);
}

.home__menuLabel svg {
  display: none; /* 装飾アイコンを抑える */
}

.home__menuTitle {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--aibou-ink);
}

.home__menuMeta {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--aibou-muted);
  font-variant-numeric: tabular-nums;
}

.home__menuNote {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--aibou-faint);
  line-height: 1.6;
}

.home__start {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  height: 56px;
  border: none;
  border-radius: 9999px;
  background: var(--aibou-primary);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease;
  box-shadow: none;
}

.home__start:hover { background: var(--aibou-primary-dark); }
.home__start:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.home__start:focus-visible {
  outline: 2px solid var(--aibou-primary);
  outline-offset: 2px;
}

.home__growth {
  background: var(--aibou-surface);
  border: 1px solid var(--aibou-border);
  border-radius: 16px;
  box-shadow: var(--aibou-shadow);
  padding: 16px 18px;
  margin: 0 0 14px;
}

.home__growthHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}

.home__lv {
  font-size: 14px;
  font-weight: 700;
  color: var(--aibou-ink);
  font-variant-numeric: tabular-nums;
}

.home__growthHint {
  font-size: 11px;
  color: var(--aibou-faint);
}

.home__bar {
  height: 8px;
  border-radius: 4px;
  background: var(--aibou-track);
  overflow: hidden;
}

.home__barFill {
  display: block;
  height: 100%;
  width: 8%;
  border-radius: 4px;
  background: var(--aibou-piyo);
  transition: width 150ms ease-out;
}

.home__tools {
  margin: 0 0 18px;
}
.home__toolsTitle {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--aibou-ink);
}
.home__toolsLead {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--aibou-muted);
}
.home__toolsGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home__toolsGrid a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--aibou-border);
  border-radius: 9999px;
  background: var(--aibou-surface);
  color: var(--aibou-ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.home__toolsGrid a:hover {
  background: var(--aibou-primary-tint);
  border-color: var(--aibou-primary);
}

.player__report,
.player__report-done {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: var(--aibou-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  padding: 8px 12px;
}
.player__report:hover { color: var(--aibou-ink); }
.player__report:disabled { opacity: 0.4; cursor: default; }
.player__report-done { cursor: default; color: var(--aibou-success-ink); }

.home__growthFoot {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--aibou-faint);
  line-height: 1.5;
}

/* Bottom tabs */
.home__tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 20px calc(26px + env(safe-area-inset-bottom));
  background: var(--aibou-surface);
  border-top: 1px solid var(--aibou-border);
  max-width: 430px;
  margin: 0 auto;
  box-sizing: border-box;
}

.home__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: var(--aibou-muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
}

.home__tab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home__tab.is-active {
  color: var(--aibou-primary);
  font-weight: 700;
}

.home__tab:focus-visible {
  outline: 2px solid var(--aibou-primary);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ── PLAYER (quiz shell) ─────────────────────────── */
body:has(#player:not([hidden])) .brand,
body:has(#player:not([hidden])) .sfx-toggle,
body:has(#player:not([hidden])) .idbadge {
  display: none !important;
}

.screen--player {
  font-family: var(--aibou-font);
  background: var(--aibou-bg);
  color: var(--aibou-ink);
  /* Half-window PC (~700–900px): avoid phone-narrow card on empty bg.
     True mobile (~375) stays full-bleed via width:100% + clamp padding. */
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding:
    calc(20px + env(safe-area-inset-top))
    clamp(16px, 3.5vw, 32px)
    calc(28px + env(safe-area-inset-bottom))
    clamp(16px, 3.5vw, 32px);
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  animation: none;
}

.screen--player .player__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.screen--player .home__topLogo {
  position: static;
  width: 36px;
  height: 36px;
  background: transparent;
  box-shadow: none;
}
.screen--player .home__topLogo img {
  width: 28px;
  height: 28px;
}

.screen--player .player__close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--aibou-ink);
  border-radius: 9999px;
  cursor: pointer;
  padding: 0;
  font-size: 0;
  box-shadow: none;
}

.screen--player .player__close:focus-visible {
  outline: 2px solid var(--aibou-primary);
  outline-offset: 2px;
}

.screen--player .player__progress {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--aibou-track);
  overflow: hidden;
  min-width: 0;
}

.screen--player .player__progress-fill,
.screen--player #progressBar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--aibou-primary) !important;
  border-radius: 999px;
  transition: width 150ms ease-out;
}

.screen--player .player__meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--aibou-muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 500;
  min-width: 3.5em;
  justify-content: flex-end;
}

/* 連続コンボはモックに無いので学習殻では隠す（IDは残す） */
.screen--player #streak {
  display: none !important;
}

.screen--player .player__body {
  flex: 1;
  min-height: 0;
  /* style.css sets display:flex (row); keep report「この問題、変？」under the card */
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.screen--player .qcard {
  border: 1px solid var(--aibou-border);
  border-radius: 18px;
  box-shadow: var(--aibou-shadow);
  background: var(--aibou-surface);
  padding: 22px 20px 18px;
}

.screen--player .qcard__head {
  margin-bottom: 10px;
}

.screen--player .qcard__icon {
  display: none; /* 世界観を消して集中 */
}

.screen--player .qcard__source,
.screen--player .qcard__axis {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--aibou-primary);
  background: transparent;
  border: none;
  padding: 0;
}

.screen--player .qcard__axis::before {
  content: " · ";
  color: var(--aibou-faint);
}

.screen--player .qcard__stem {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--aibou-ink);
  text-align: center;
  margin: 8px 0 6px;
}

.screen--player .qcard__ja {
  text-align: center;
  color: var(--aibou-muted);
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 18px;
}

.screen--player .choices {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  grid-template-columns: none !important;
}

.screen--player .choice {
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--aibou-border);
  background: var(--aibou-surface);
  box-shadow: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--aibou-ink);
  align-items: center;
  gap: 10px;
}

.screen--player .choice:hover {
  background: var(--aibou-primary-tint);
}

.screen--player .choice:active {
  transform: none;
  box-shadow: none;
}

.screen--player .choice__key {
  display: none; /* モックはキー無しの意味カード */
}

/* 正解 = 緑ボーダー＋淡い緑。罰の赤は使わない */
.screen--player .choice[data-state="correct"] {
  background: var(--aibou-success-bg) !important;
  color: var(--aibou-ink) !important;
  border: 1.5px solid var(--aibou-success) !important;
  box-shadow: none !important;
  animation: none !important;
  position: relative;
}

.screen--player .choice[data-state="correct"]::after {
  content: "";
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--aibou-success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.screen--player .choice[data-state="wrong"] {
  background: transparent !important;
  color: var(--aibou-disabled) !important;
  border-color: var(--aibou-border-faded) !important;
  box-shadow: none !important;
  animation: none !important; /* 揺れ罰なし */
}

.screen--player .choice[data-state="dimmed"] {
  opacity: 1;
  color: var(--aibou-disabled) !important;
  border-color: var(--aibou-border-faded) !important;
  background: transparent !important;
}

.screen--player .feedback {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--aibou-border);
  gap: 12px;
  animation: none;
}

.screen--player .feedback__badge {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: none;
  box-shadow: none;
  font-size: 16px;
}

.screen--player .feedback__badge[data-correct="true"] {
  background: var(--aibou-success) !important;
  color: #fff !important;
}

.screen--player .feedback__badge[data-correct="false"] {
  /* 罰色を出さない: 正解誘導と同じ緑系の控えめトーン */
  background: var(--aibou-primary-tint) !important;
  color: var(--aibou-primary) !important;
}

.screen--player .feedback__verdict {
  font-size: 15px;
  font-weight: 700;
}

.screen--player .feedback__verdict[data-correct="true"] {
  color: var(--aibou-success-ink) !important;
}

.screen--player .feedback__verdict[data-correct="false"] {
  color: var(--aibou-ink-sub) !important;
}

.screen--player .feedback__expl {
  font-size: 13px;
  line-height: 1.7;
  color: var(--aibou-ink-sub);
  background: var(--aibou-surface);
  border: 1px solid var(--aibou-border);
  border-radius: 14px;
  padding: 12px 14px;
}

.screen--player .feedback__cta .btn--primary,
.screen--player #nextBtn {
  background: var(--aibou-primary) !important;
  border: none !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
  font-weight: 700;
  min-height: 48px;
  padding: 0 28px;
}

.screen--player .feedback__cta .kbd {
  display: none;
}

.screen--player .feedback__report {
  color: var(--aibou-faint);
  font-size: 12px;
}

/* ぴよまる一言（選択肢の下） */
.screen--player .player__tip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  min-height: 36px;
}
.screen--player .qcard > .player__tip {
  /* tip はカード内。feedback 前に置く */
  padding-top: 2px;
}

.screen--player .player__tip:has(#qReason[hidden]) {
  display: none;
}

.screen--player .player__tip-piyo {
  display: none; /* 学習中は装飾マスコットなし */
}

.screen--player .player__tip-text {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--aibou-muted);
}

/* ── REPORT complete ──────────────────────────────── */
body:has(#report:not([hidden])) .brand,
body:has(#report:not([hidden])) .sfx-toggle,
body:has(#report:not([hidden])) .idbadge {
  display: none !important;
}

.screen--report {
  font-family: var(--aibou-font);
  background: var(--aibou-bg);
  color: var(--aibou-ink);
  padding:
    calc(48px + env(safe-area-inset-top))
    26px
    calc(40px + env(safe-area-inset-bottom))
    26px;
  max-width: 430px;
  margin: 0 auto;
  box-sizing: border-box;
  animation: none;
}

.screen--report .report {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.screen--report .report__hero {
  text-align: center;
  margin: 0 0 22px;
}

.screen--report .report__piyo {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 18px;
  animation: aibou-piyo-in 300ms ease-out;
}

@keyframes aibou-piyo-in {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes aibou-sparkle-in {
  from { opacity: 0; }
  to { opacity: 0.9; }
}

.screen--report .report__piyo > g[stroke] {
  animation: aibou-sparkle-in 300ms ease-out 80ms both;
}

@media (prefers-reduced-motion: reduce) {
  .screen--report .report__piyo,
  .screen--report .report__piyo > g[stroke] {
    animation: none;
  }
}

.screen--report .report__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--aibou-ink);
  text-align: center;
}

.screen--report .report__lead {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--aibou-muted);
  text-align: center;
}

.screen--report .report__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 14px;
}

.screen--report .report__stats .stat,
.screen--report .stat {
  background: var(--aibou-surface);
  border: 1px solid var(--aibou-border);
  border-radius: 14px;
  box-shadow: var(--aibou-shadow);
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.screen--report .stat__label {
  order: -1;
  font-size: 11px;
  font-weight: 500;
  color: var(--aibou-muted);
}

.screen--report .stat__num {
  color: var(--aibou-primary);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.screen--report .report__growth {
  background: var(--aibou-surface);
  border: 1px solid var(--aibou-border);
  border-radius: 16px;
  box-shadow: var(--aibou-shadow);
  padding: 14px 16px 16px;
  margin: 0 0 22px;
}

.screen--report .report__growth-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.screen--report .report__sprout {
  display: none;
}

.screen--report .report__growth-label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--aibou-ink);
  font-variant-numeric: tabular-nums;
}

.screen--report .report__growth-label strong {
  color: var(--aibou-primary);
  font-weight: 700;
}

.screen--report .report__growth-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--aibou-track);
  overflow: hidden;
}

.screen--report .report__growth-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--aibou-piyo);
  transition: width 200ms ease-out;
}

/* CTA: ホームへもどる = primary / もう少しだけやる = soft text */
.screen--report .report__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  order: 50; /* keep near bottom among siblings if flex; HTML order still wins */
}

.screen--report .report__cta #homeBtn,
.screen--report .report__cta .btn--primary {
  width: 100%;
  min-height: 56px;
  background: var(--aibou-primary) !important;
  border: none !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.screen--report .report__cta #againBtn,
.screen--report .report__again {
  width: 100%;
  min-height: 44px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--aibou-primary) !important;
  font-weight: 700;
  font-size: 14px;
}

.screen--report .report__cta #homeBtn:hover {
  background: var(--aibou-primary-dark) !important;
}

/* 詳細ブロックは残すがあいぼう肌に寄せる（エンジン出力は維持） */
.screen--report .swing,
.screen--report .ai-status,
.screen--report .calib-info,
.screen--report .duewin,
.screen--report .streakline,
.screen--report .mastery,
.screen--report .report__section,
.screen--report .retention,
.screen--report .provoice,
.screen--report .cooldown,
.screen--report .pro-upsell,
.screen--report .waitlist,
.screen--report .report__plan,
.screen--report .report__progress-entry {
  background: var(--aibou-surface);
  border: 1px solid var(--aibou-border);
  border-radius: 16px;
  box-shadow: var(--aibou-shadow);
  margin-bottom: 12px;
}

.screen--report .report__subtitle {
  color: var(--aibou-ink);
  font-weight: 700;
}

/* ── REPORT: demote legacy detail under complete hero (mock 05) ── */
.screen--report .swing,
.screen--report .ai-status,
.screen--report .calib-info,
.screen--report .duewin,
.screen--report .streakline,
.screen--report #masteryDash,
.screen--report .report__section,
.screen--report .retention,
.screen--report .provoice,
.screen--report .provoice__done,
.screen--report .cooldown,
.screen--report .pro-upsell,
.screen--report .waitlist,
.screen--report .report__plan,
.screen--report .report__progress-entry {
  display: none !important;
}

.screen--report .report__cta {
  margin-top: 4px;
  margin-bottom: 8px;
}

.screen--report .report__cta #againBtn,
.screen--report .report__again {
  order: 2;
}

/* Soft secondary CTA stays visible under primary */
.screen--report .report__cta #againBtn:not([hidden]),
.screen--report .report__again:not([hidden]) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* ── PROGRESS / きろく ───────────────────────────── */
body:has(#progress:not([hidden])) .brand,
body:has(#progress:not([hidden])) .sfx-toggle,
body:has(#progress:not([hidden])) .idbadge {
  display: none !important;
}

body:has(#progress:not([hidden])) #progress {
  --pg-bg: var(--aibou-bg);
  --pg-surface: var(--aibou-surface);
  --pg-surface-2: var(--aibou-primary-tint);
  --pg-border: var(--aibou-border);
  --pg-gold: var(--aibou-primary);
  --pg-success: var(--aibou-success);
  --pg-success-bg: var(--aibou-success-bg);
  --pg-text-1: var(--aibou-ink);
  --pg-text-3: var(--aibou-muted);
  --dot-active: #9cc0e8;
  --dot-today: #4f8fdc;
  --dot-empty: #dde7ef;
  background: var(--aibou-bg) !important;
  font-family: var(--aibou-font);
  color: var(--aibou-ink);
}

#progress.screen--progress {
  padding:
    calc(56px + env(safe-area-inset-top))
    0
    calc(96px + env(safe-area-inset-bottom))
    0;
  max-width: 430px;
  margin: 0 auto;
  box-sizing: border-box;
  animation: none;
}

#progress .progress-wrap {
  padding: 0 26px 24px;
  max-width: 430px;
}

body:has(#progress:not([hidden])) #progress .progress-top {
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

body:has(#progress:not([hidden])) #progress .progress-title {
  font-family: var(--aibou-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--aibou-ink);
  letter-spacing: 0.02em;
}

body:has(#progress:not([hidden])) #progress .progress-back {
  border-radius: 9999px;
  color: var(--aibou-primary);
  border: 1px solid var(--aibou-border);
  background: var(--aibou-surface);
  font-weight: 700;
}

.progress-stub[hidden] { display: none !important; }
.progress-stub {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--aibou-surface);
  border: 1px dashed var(--aibou-border);
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--aibou-muted);
}

/* Cards */
.kiroku { display: flex; flex-direction: column; gap: 14px; }
.kiroku-card {
  background: var(--aibou-surface);
  border: 1px solid var(--aibou-border);
  border-radius: 18px;
  box-shadow: var(--aibou-shadow);
  padding: 18px 16px 16px;
}
.kiroku-card__title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--aibou-ink);
}

/* Calendar */
.kiroku-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
}
.kiroku-cal__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--aibou-ink);
  font-variant-numeric: tabular-nums;
}
.kiroku-cal__nav {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--aibou-primary);
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
}
.kiroku-cal__nav:hover { background: var(--aibou-primary-tint); }
.kiroku-cal__nav:focus-visible {
  outline: 2px solid var(--aibou-primary);
  outline-offset: 2px;
}
.kiroku-cal__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 0 0 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--aibou-muted);
}
.kiroku-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px 6px;
  justify-items: center;
  margin: 0 0 14px;
}
.kiroku-cal__cell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
}
.kiroku-cal__cell.is-pad { visibility: hidden; }

.kiroku-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-sizing: border-box;
  display: block;
}
.kiroku-dot--active { background: var(--dot-active, #9cc0e8); }
.kiroku-dot--today { background: var(--dot-today, #4f8fdc); }
.kiroku-dot--today-empty {
  background: transparent;
  border: 2px solid var(--dot-today, #4f8fdc);
}
.kiroku-dot--empty {
  background: transparent;
  border: 1.5px solid var(--dot-empty, #dde7ef);
}
.kiroku-dot--ghost { opacity: 0; }

.kiroku-cal__note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--aibou-muted);
}

/* Week bars */
.kiroku-week__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
}
.kiroku-week__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.kiroku-week__dow {
  font-size: 11px;
  font-weight: 500;
  color: var(--aibou-muted);
}
.kiroku-week__track {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.kiroku-week__bar {
  width: 18px;
  max-width: 70%;
  border-radius: 3px 3px 0 0;
  background: var(--dot-active, #9cc0e8);
}
.kiroku-week__col.is-today .kiroku-week__bar {
  background: var(--dot-today, #4f8fdc);
}
.kiroku-week__rest {
  width: 18px;
  max-width: 70%;
  height: 2px;
  border-radius: 1px;
  background: var(--dot-empty, #dde7ef);
  margin-bottom: 0;
}
.kiroku-week__mins {
  font-size: 10px;
  font-weight: 500;
  color: var(--aibou-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kiroku-week__col.is-today .kiroku-week__mins {
  color: var(--aibou-primary);
  font-weight: 700;
}

/* Ayumi timeline */
.kiroku-ayumi__track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 0 0;
}
.kiroku-ayumi__node {
  flex: 0 0 auto;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.45;
}
.kiroku-ayumi__node.is-reached,
.kiroku-ayumi__node.is-current { opacity: 1; }
.kiroku-ayumi__icon {
  width: 48px;
  height: 48px;
  display: block;
}
.kiroku-ayumi__lv {
  font-size: 11px;
  font-weight: 700;
  color: var(--aibou-muted);
  font-variant-numeric: tabular-nums;
}
.kiroku-ayumi__node.is-current .kiroku-ayumi__lv {
  color: var(--aibou-ink);
}
.kiroku-ayumi__dots {
  flex: 1 1 auto;
  align-self: center;
  height: 0;
  margin-top: 22px;
  border-top: 2px dotted #d5e0ea;
  min-width: 12px;
}
.kiroku-ayumi__dots.is-on { border-top-color: #9cc0e8; }

/* Legacy stats collapsed */
.kiroku-more {
  margin: 4px 0 0;
  background: var(--aibou-surface);
  border: 1px solid var(--aibou-border);
  border-radius: 16px;
  box-shadow: var(--aibou-shadow);
  padding: 4px 14px 10px;
}
.kiroku-more > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--aibou-primary);
}
.kiroku-more > summary::-webkit-details-marker { display: none; }
.kiroku-more__body { padding-bottom: 8px; }

/* Bottom tabs on きろく */
#progress .home__tabs.kiroku__tabs {
  /* reuse home tab styles; ensure visible when #home is hidden */
  position: fixed;
}


/* 旧 intro は完全に使わない */
#intro[data-retired],
.screen--intro[data-retired] { display: none !important; }

.home__limitSlot:empty { display: none; }
.home__limitSlot .intro__limit { margin-top: 12px; }
.home__cooldown {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef4fb;
  text-align: center;
}
.home__cooldownTitle { margin: 0; font-size: 12px; color: #6f8499; font-weight: 700; }
.home__cooldownTime { margin: 4px 0 0; font-size: 20px; font-weight: 800; color: #2b3948; }

/* ── 4 formats (聞く / 読む / 話す / 覚える) ── */
.screen--player .choices[hidden],
.screen--player .qcard__stem[hidden],
.screen--player .qcard__ja[hidden],
.screen--player .qcard__stage[hidden] {
  display: none !important;
}
.qcard__stage { margin: 4px 0 8px; }

.kiku-q {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--aibou-ink);
  text-align: center;
}
.kiku-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kiku-card {
  background: #fff;
  border: 1.5px solid var(--aibou-border);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
  color: var(--aibou-ink);
  min-height: 54px;
}
.kiku-card.ok, .yomu-chip.ok, .obo-tile.ok {
  border-color: var(--aibou-success);
  background: var(--aibou-success-bg);
  box-shadow: none;
}
.kiku-card.ng, .yomu-chip.ng, .obo-tile.ng,
.fmt-choice[data-state="wrong"] {
  opacity: 0.55;
}
.fmt-choice[data-state="correct"] {
  border-color: var(--aibou-success);
  background: var(--aibou-success-bg);
}
.fmt-choice[data-state="dimmed"] { opacity: 0.4; }

.yomu-paper {
  background: #fff;
  border: 1px solid var(--aibou-border);
  border-radius: 18px;
  padding: 22px 20px;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--aibou-ink);
}
.yomu-blank {
  display: inline-block;
  min-width: 88px;
  border-bottom: 2.5px solid var(--aibou-primary);
  text-align: center;
  color: var(--aibou-ink);
  padding: 0 8px;
  background: var(--aibou-primary-tint);
  border-radius: 8px 8px 0 0;
}
.yomu-ja { font-size: 13px; color: var(--aibou-muted); font-weight: 500; margin-top: 12px; }
.yomu-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.yomu-chip {
  border: 1px solid var(--aibou-border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--aibou-ink);
  font-size: 15px;
}

.hanasu-ja {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  margin: 4px 0 10px;
  color: var(--aibou-ink);
}
.hanasu-audio {
  display: flex;
  margin: 0 auto 14px;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--aibou-primary);
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.hanasu-well {
  background: var(--aibou-primary-tint);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
}
.hanasu-tray:empty { display: none; }
.hanasu-tray {
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hanasu-tray:not(:empty) {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--aibou-border);
}
.hanasu-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.hanasu-tile {
  background: #fff;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--aibou-primary);
  box-shadow: var(--aibou-shadow);
}
.hanasu-type {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--aibou-border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 8px;
  background: #fff;
}
.hanasu-check {
  display: block;
  width: min(320px, 100%);
  margin: 12px auto 0;
  border: 0;
  border-radius: 999px;
  background: var(--aibou-primary);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 18px;
  cursor: pointer;
}
.hanasu-check[hidden] { display: none !important; }

.obo-card {
  background: linear-gradient(180deg, #fffefb 0%, #f7fafc 100%);
  border: 1px solid var(--aibou-border);
  border-radius: 22px;
  padding: 28px 20px 22px;
  text-align: center;
  margin: 8px auto 18px;
  /* Fill the widened .screen--player shell (was 360px phone cap). */
  max-width: none;
  box-shadow: 0 8px 24px rgba(43, 57, 72, 0.06);
  position: relative;
}
.obo-card::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  top: 0;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--aibou-primary);
  opacity: 0.55;
}
.obo-word {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--aibou-ink);
  line-height: 1.2;
}
.obo-ipa {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--aibou-primary-tint);
  color: var(--aibou-primary-dark);
  font-size: 12px;
  font-weight: 700;
}
.obo-speak {
  margin-top: 16px;
  border: 0;
  background: var(--aibou-primary);
  color: #fff;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  box-shadow: none;
}
.obo-speak:active { transform: scale(0.96); }
.obo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.obo-tile {
  background: #fff;
  border: 1.5px solid var(--aibou-border);
  border-radius: 16px;
  padding: 18px 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: var(--aibou-ink);
  min-height: 58px;
  box-shadow: var(--aibou-shadow);
}
.obo-tile:hover { background: var(--aibou-primary-tint); }



/* 長文: 紙の本文 + 設問 + 意味カード4択（穴埋めにはしない） */
.pass-paper {
  background: #fff;
  border: 1px solid var(--aibou-border);
  border-radius: 18px;
  padding: 18px 16px;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 500;
  color: var(--aibou-ink);
  white-space: pre-line;
  max-height: 38vh;
  overflow-y: auto;
  margin-bottom: 14px;
  box-shadow: var(--aibou-shadow);
}
.pass-q {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--aibou-ink);
  text-align: left;
}
.pass-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pass-choice {
  background: #fff;
  border: 1.5px solid var(--aibou-border);
  border-radius: 14px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
  color: var(--aibou-ink);
  min-height: 54px;
}
.pass-choice.ok,
.pass-choice[data-state="correct"] {
  border-color: var(--aibou-success);
  background: var(--aibou-success-bg);
}
.pass-choice.ng,
.pass-choice[data-state="wrong"] { opacity: 0.55; }
.pass-choice[data-state="dimmed"] { opacity: 0.4; }


/* ── format surfaces (no decorative SVG / orbs / leaves) ── */
.qcard__stage > * { position: relative; z-index: 1; }

.kiku-wave {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(51, 65, 74, 0.06);
  background: linear-gradient(180deg, #eaf5f7 0%, #f6f3ec 100%);
  border: 1px solid #e5dfd2;
}
.yomu-paper,
.pass-paper {
  background: #fffef9;
  border: 1px solid #e5dfd2;
  box-shadow: 0 12px 32px rgba(51, 65, 74, 0.06);
}
/* folded-corner gimmick removed — looked cheap */
.hanasu-well {
  background: #eaf5f7;
  border: 1px solid #e5dfd2;
  /* giant quote mark removed */
}
.obo-card {
  background: #fffef9;
  border: 1px solid #e5dfd2;
}


/* ── Pro format skins: 人気旧ツール色味（FSRS非接触・見た目のみ） ──
   読む=ReadUp / 聞く=ListenUp / 話す=瞬間英作文 / 覚える=WordsUp
   共通: cream #f6f3ec, teal #1d7f96, border #e5dfd2
   装飾SVG・オーブ・葉っぱ・ぴよバッジは出さない。
*/
.screen--player.skin-tool {
  --aibou-bg: #f6f3ec;
  --aibou-surface: #ffffff;
  --aibou-border: #e5dfd2;
  --aibou-border-faded: #efe9de;
  --aibou-shadow: 0 12px 40px rgba(51, 65, 74, 0.06);
  --aibou-ink: rgba(51, 65, 74, 0.88);
  --aibou-ink-sub: rgba(51, 65, 74, 0.74);
  --aibou-muted: rgba(51, 65, 74, 0.62);
  --aibou-faint: rgba(51, 65, 74, 0.45);
  --aibou-primary: #1d7f96;
  --aibou-primary-dark: #186f83;
  --aibou-primary-tint: #eaf5f7;
  --aibou-success: #35a06c;
  --aibou-success-bg: #dcfce7;
  --aibou-success-ink: #166534;
  --aibou-track: #ebe4d6;
  background: var(--aibou-bg) !important;
  padding:
    calc(24px + env(safe-area-inset-top))
    28px
    calc(32px + env(safe-area-inset-bottom))
    28px;
}
body:has(#player.skin-tool:not([hidden])) {
  background: #f6f3ec !important;
  background-image: none !important;
}

.screen--player.skin-tool .qcard {
  padding: 28px 24px 22px;
  border: 1px solid #e5dfd2;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(51, 65, 74, 0.06);
  background: #fff;
}
.screen--player.skin-tool .qcard__icon {
  display: none !important;
}
.screen--player.skin-tool .player__progress {
  height: 4px;
  border-radius: 999px;
  background: var(--aibou-track);
}
.screen--player.skin-tool .player__progress-fill {
  background: #1d7f96 !important;
  border-radius: 999px;
}
.screen--player.skin-tool .btn--primary,
.screen--player.skin-tool .hanasu-check,
.screen--player.skin-tool .obo-speak {
  background: var(--aibou-primary) !important;
  box-shadow: none !important;
}
.screen--player.skin-tool .btn--primary:hover {
  background: var(--aibou-primary-dark) !important;
}
.screen--player.skin-tool .qcard__source,
.screen--player.skin-tool .qcard__axis {
  color: #1d7f96;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
}
.screen--player.skin-tool .yomu-blank {
  border-bottom-color: var(--aibou-primary);
  background: var(--aibou-primary-tint);
}
.screen--player.skin-tool .hanasu-tile {
  color: var(--aibou-primary);
  box-shadow: none;
  border: 1px solid #e5dfd2;
}
.screen--player.skin-tool .hanasu-well {
  background: #eaf5f7;
  border: 1px solid #e5dfd2;
}
.screen--player.skin-tool .pass-q {
  color: var(--aibou-ink);
}

/* Choice cards: white, soft radius, teal hover — not neon */
.screen--player.skin-tool .choice,
.screen--player.skin-tool .kiku-card,
.screen--player.skin-tool .pass-choice,
.screen--player.skin-tool .obo-tile,
.screen--player.skin-yomu .yomu-chip {
  background: #fff;
  border: 1px solid #e5dfd2;
  border-radius: 16px;
  box-shadow: none;
}
.screen--player.skin-tool .choice:hover,
.screen--player.skin-tool .kiku-card:hover,
.screen--player.skin-tool .pass-choice:hover,
.screen--player.skin-tool .obo-tile:hover,
.screen--player.skin-yomu .yomu-chip:hover {
  border-color: #1d7f96;
  background: #fff;
}
.screen--player.skin-yomu .yomu-chip {
  border-radius: 999px; /* chips stay pills */
}

/* 読む / 長文: ivory paper, no fold */
.screen--player.skin-yomu .yomu-paper,
.screen--player.skin-passage .pass-paper {
  background: #fffef9;
  border: 1px solid #e5dfd2;
  box-shadow: 0 12px 32px rgba(51, 65, 74, 0.06);
}


/* 話す: clean Japanese stem, quiet well */
.screen--player.skin-hanasu .hanasu-ja {
  color: rgba(51, 65, 74, 0.92);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.screen--player.skin-hanasu .hanasu-audio {
  color: var(--aibou-primary);
}
.screen--player.skin-hanasu .hanasu-well::before {
  content: none;
}

/* 覚える: elegant English word + quiet 2x2 tiles */
.screen--player.skin-oboeru .obo-card {
  background: #fffef9;
  border: 1px solid #e5dfd2;
  box-shadow: 0 12px 32px rgba(51, 65, 74, 0.06);
}
.screen--player.skin-oboeru .obo-card::before {
  background: #1d7f96;
  opacity: 0.35;
  height: 2px;
}
.screen--player.skin-oboeru .obo-word {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.screen--player.skin-oboeru .obo-tile {
  border-color: #e5dfd2;
  background: #fff;
  border-radius: 16px;
  box-shadow: none;
}
.screen--player.skin-oboeru .obo-ipa {
  background: #eaf5f7;
  color: #186f83;
}
.screen--player.skin-oboeru .obo-speak {
  box-shadow: none;
}

/* Free-limit conversion (home): quiet Pro benefit, no jargon */
.home__limitSlot .intro__cooldown,
#freeLimitPanel.intro__cooldown {
  margin-top: 14px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid var(--aibou-border);
  background: var(--aibou-surface);
  box-shadow: var(--aibou-shadow);
  text-align: left;
}
#freeLimitPanel .btn--upgrade,
.home__limitSlot .btn--upgrade {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
}
#freeLimitPanel .limit-perks,
.home__limitSlot .limit-perks {
  margin: 10px 0 0;
  padding-left: 1.1em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--aibou-ink-sub);
}


/* ── 聞く: 実音波形（固定wave.jpg廃止） ── */
.kiku-wave {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  margin: 4px 0 16px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--aibou-border, #e5dfd2);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(51, 65, 74, 0.04);
  overflow: visible;
}
.kiku-wave img { display: none !important; }
.kiku-play {
  flex: 0 0 auto;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 44px;
  height: 44px;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 50%;
  background: var(--aibou-primary, #1d7f96) !important;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(29, 127, 150, 0.22);
}
.kiku-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  background: none;
}
.kiku-play.is-playing::after {
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 12px;
  border: 0;
  background: linear-gradient(90deg, #fff 0 3px, transparent 3px 7px, #fff 7px 10px);
}
.kiku-wave__viz { flex: 1 1 auto; min-width: 0; height: 48px; }
.kiku-wave__canvas { display: block; width: 100%; height: 48px; }
.kiku-wave__time {
  flex: 0 0 auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--aibou-faint, rgba(51, 65, 74, 0.55));
  min-width: 4.5em;
  text-align: right;
}
.screen--player.skin-kiku .kiku-wave {
  background: #fffef9;
  border-color: #e5dfd2;
  box-shadow: 0 1px 2px rgba(51, 65, 74, 0.04);
}
