/* ── 熟語ブロック ──────────────────────────────────────────── */

.ncm-drop-wrap {
  display: grid;
  grid-template-columns: max-content 168px;
  gap: 18px;
  align-items: start;
  justify-content: center;
}

.ncm-drop-live-hud {
  display: none;
}

.ncm-drop-stage {
  position: relative;
  margin: 0;
  justify-self: center;
}

.ncm-drop-pause-overlay {
  position: absolute;
  inset: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border-radius: 18px;
  background: rgba(14, 28, 19, 0.72);
  color: #fffdf3;
  text-align: center;
  padding: 18px;
  z-index: 3;
}

.ncm-drop-pause-overlay.is-visible {
  display: flex;
}

.ncm-drop-pause-overlay strong {
  font-size: 28px;
  line-height: 1.1;
}

.ncm-drop-pause-overlay p {
  margin: 0;
  font-size: 14px;
}

.ncm-drop-result-overlay {
  position: absolute;
  inset: 8px;
  z-index: 12;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 245, 184, 0.30), transparent 34%),
    rgba(10, 29, 20, 0.72);
  backdrop-filter: blur(2px);
  color: #183325;
  pointer-events: auto;
}

.ncm-drop-result-overlay.is-visible {
  display: flex;
}

.ncm-drop-result-card-instage {
  box-sizing: border-box;
  width: min(88%, 360px);
  max-width: calc(100% - 10px);
  padding: clamp(14px, 2.5vw, 20px);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf4 0%, #f3ffe8 100%);
  border: 2px solid rgba(218, 183, 82, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  text-align: left;
  overflow: hidden;
}

.ncm-drop-result-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f5d9;
  color: #246343;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ncm-drop-result-card-instage h3 {
  margin: 0 0 10px;
  color: #173b2d;
  font-size: clamp(24px, 4.2vw, 32px);
  line-height: 1.15;
}

.ncm-drop-result-card-instage p {
  margin: 0 0 10px;
  color: #4f5e4d;
  line-height: 1.55;
}

.ncm-drop-result-score {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 8px;
  margin: 0 0 8px;
  color: #0f2b20;
}

.ncm-drop-result-score strong {
  font-size: clamp(42px, 8vw, 58px);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.ncm-drop-result-score span {
  padding-bottom: 5px;
  color: #58705f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ncm-drop-result-highlights {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.ncm-drop-result-highlights li {
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(210, 195, 145, 0.72);
  color: #234331;
  font-weight: 800;
}

.ncm-drop-result-words {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 10px;
}

.ncm-drop-result-words span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #173b2d;
  color: #e7ffe9;
  font-weight: 800;
}

.ncm-drop-result-note {
  font-size: 13px;
}

.ncm-drop-result-practice {
  margin: 8px 0 10px;
}

.ncm-drop-result-practice > span {
  display: block;
  margin-bottom: 6px;
  color: #556555;
  font-size: 12px;
  font-weight: 800;
}

.ncm-drop-result-practice div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ncm-drop-result-practice button {
  appearance: none;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #d2bc66;
  border-radius: 12px;
  background: #fffdf2;
  color: #2a1e0a;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.ncm-drop-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.ncm-drop-result-actions button {
  appearance: none;
  min-height: 44px;
  border: 1px solid #d5c8a8;
  border-radius: 14px;
  background: #fff;
  color: #173b2d;
  font-weight: 900;
  cursor: pointer;
}

.ncm-drop-result-actions button.is-primary {
  background: linear-gradient(180deg, #54be72 0%, #2e8e54 100%);
  border-color: #2f8c52;
  color: #fff;
}

.ncm-drop-canvas {
  display: block;
  border-radius: 14px;
  border: 2px solid #d8c6a0;
  background: #1a2820;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ── サイドバー ── */
.ncm-drop-sidebar {
  width: 168px;
  min-width: 168px;
  display: grid;
  gap: 12px;
}

.ncm-drop-info-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ncm-panel, #fff);
  border: 1px solid #e0d5bd;
}

.ncm-drop-info-card label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #6d614f;
  margin-bottom: 4px;
}

.ncm-drop-info-card strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  min-height: 1.2em;
  white-space: nowrap;
}

.ncm-drop-info-sub {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #6d614f;
  min-height: 1.4em;
}

.ncm-drop-info-card-wide {
  grid-column: 1 / -1;
}

.ncm-drop-mini-words {
  font-size: 18px;
}

.ncm-drop-pause-card {
  display: grid;
  gap: 10px;
}

.ncm-drop-bgm-card {
  display: grid;
  gap: 10px;
}

.ncm-drop-pause-btn {
  appearance: none;
  border: 1px solid #d0c6b2;
  border-radius: 12px;
  background: #fff7e8;
  color: var(--ncm-accent, #3a7a4a);
  min-height: 46px;
  font-size: 17px;
  font-weight: 900;
  padding: 12px 14px;
  cursor: pointer;
}

.ncm-drop-pause-btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

.ncm-drop-pause-remaining {
  display: block;
  color: #6d614f;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.ncm-drop-bgm-btn {
  appearance: none;
  border: 1px solid #d0c6b2;
  border-radius: 12px;
  background: #eef7ff;
  color: #2e5575;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
}

.ncm-drop-next-card {
  padding: 12px;
  border-radius: 14px;
  text-align: center;
  background: var(--ncm-panel, #fff);
  border: 1px solid #e0d5bd;
}

.ncm-drop-next-label {
  font-size: 11px;
  font-weight: 700;
  color: #6d614f;
  display: block;
  margin-bottom: 4px;
}

.ncm-drop-next-kanji {
  font-size: 44px;
  line-height: 1.1;
  margin: 6px 0;
  min-height: 1.15em;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: var(--ncm-ink, #2a1e0a);
}

#ncm-drop-score,
#ncm-drop-level,
#ncm-drop-combo,
#ncm-drop-pause-remaining,
#ncm-drop-bgm-status {
  font-variant-numeric: tabular-nums;
}

#ncm-drop-gain,
#ncm-drop-combo-note,
#ncm-drop-last-words {
  min-height: 2.8em;
}

/* ── タッチコントロール ── */
/* マウス環境ではデフォルト非表示 */
.ncm-drop-controls {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

@media (pointer: coarse) {
  .ncm-drop-controls {
    display: grid;
  }
}

.ncm-drop-btn {
  appearance: none;
  border: 1px solid #d0c6b2;
  border-radius: 14px;
  background: #fff;
  color: var(--ncm-accent, #3a7a4a);
  font-size: 22px;
  font-weight: 700;
  padding: 14px 10px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ncm-drop-btn:active {
  background: #e8f5ea;
  border-color: var(--ncm-accent, #3a7a4a);
}

@media (max-width: 782px) {
  .ncm-drop-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  .ncm-drop-stage {
    width: 100%;
  }

  .ncm-drop-sidebar {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ncm-drop-info-card-wide,
  .ncm-drop-next-card {
    grid-column: 1 / -1;
  }

  .ncm-drop-info-card {
    padding: 12px;
  }

  .ncm-drop-info-card strong {
    font-size: 22px;
  }

  .ncm-drop-next-kanji {
    font-size: 40px;
  }

  .ncm-drop-controls {
    display: grid;
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 6;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 253, 247, 0.96);
    border: 1px solid #e0d5bd;
    box-shadow: 0 10px 24px rgba(42,30,8,.12);
  }

  .ncm-drop-btn {
    font-size: 24px;
    padding: 16px 10px;
  }
}

@media (max-width: 782px) {
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-wrap {
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-stage {
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-score-card,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-combo-card,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-level-card {
    grid-column: span 1;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-next-card {
    grid-column: 1 / 2;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-last-words-card {
    grid-column: 2 / 4;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-pause-card {
    grid-column: 1 / 3;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-bgm-card {
    grid-column: 3 / 4;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-info-card,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-next-card {
    padding: 10px 11px;
    border-radius: 16px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-info-card label,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-next-label {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-info-card strong {
    font-size: 18px;
    white-space: normal;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-info-sub {
    margin-top: 4px;
    font-size: 11px;
    min-height: 0;
    line-height: 1.35;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-mini-words {
    font-size: 15px;
    line-height: 1.35;
  }

  .necomoji-app-root.is-kanji-drop-screen #ncm-drop-gain,
  .necomoji-app-root.is-kanji-drop-screen #ncm-drop-combo-note,
  .necomoji-app-root.is-kanji-drop-screen #ncm-drop-last-words {
    min-height: 0;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-next-kanji {
    font-size: 34px;
    margin: 2px 0 0;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-pause-btn,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-bgm-btn {
    min-height: 42px;
    font-size: 13px;
    padding: 8px 10px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-controls {
    margin-top: 0;
    gap: 8px;
    padding: 8px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-btn {
    min-height: 56px;
    padding: 14px 8px;
    font-size: 22px;
  }
}

/* ── ゲームオーバー後の結果表示 ── */
.ncm-drop-over {
  margin-top: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid #e5dcc9;
  background: #fff;
  text-align: center;
}

.ncm-drop-over strong {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
}

.ncm-drop-over p {
  color: #655948;
  margin: 0 0 14px;
}

.ncm-drop-score-breakdown {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  text-align: left;
}

.ncm-drop-score-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffaf0;
  border: 1px solid #eadfbe;
}

.ncm-drop-score-row strong {
  font-size: 18px;
}

.ncm-drop-leaderboards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ncm-drop-leaderboard-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e5dcc9;
  background: #fffdf8;
  text-align: left;
}

.ncm-drop-leaderboard-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.ncm-drop-leaderboard-head span {
  font-size: 12px;
  color: #6d614f;
}

.ncm-drop-leaderboard-list {
  margin: 0;
  padding-left: 18px;
}

.ncm-drop-leaderboard-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: #4f4537;
}

.ncm-drop-practice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 12px 0;
}

.ncm-drop-practice-btn {
  appearance: none;
  border: 1px solid #d0c6b2;
  border-radius: 12px;
  background: #fff;
  font-size: 32px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ncm-ink, #2a1e0a);
}

.ncm-drop-practice-btn:hover {
  background: #f0ece0;
}

.ncm-kk-wrap {
  display: grid;
  gap: 18px;
}

.ncm-kk-hud {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ncm-kk-hud-card {
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #fffdfa 0%, #f5ead6 100%);
  border: 1px solid #ead8b8;
  box-shadow: 0 14px 24px rgba(89, 58, 22, 0.08);
}

.ncm-kk-hud-card label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #78664c;
  margin-bottom: 6px;
}

.ncm-kk-hud-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.05;
  color: #2d2012;
}

.ncm-kk-hud-card.is-warning {
  background:
    radial-gradient(circle at 84% 10%, rgba(255,255,255,.9), transparent 38%),
    linear-gradient(180deg, #fff4e4 0%, #f6dfbd 100%);
  border-color: #ddb26b;
}

.ncm-kk-stage {
  --kk-hero-offset: 0px;
  --kk-rock-x: 0px;
  --kk-rock-y: 0px;
  --kk-rock-scale: 0.35;
  --kk-rock-opacity: 1;
  position: relative;
  min-height: clamp(640px, 68vh, 760px);
  overflow: hidden;
  touch-action: manipulation;
  border-radius: 28px;
  border: 1px solid #e6d5b8;
  background:
    radial-gradient(circle at top, rgba(255, 244, 208, 0.75), transparent 30%),
    linear-gradient(180deg, #18355b 0%, #4d7f9f 48%, #f0d4a2 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 24px 46px rgba(48, 30, 13, 0.16);
}

.ncm-kk-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,0.72) 0, transparent 18%),
    radial-gradient(circle at 78% 12%, rgba(255,255,255,0.46) 0, transparent 16%);
  opacity: 0.9;
}

.ncm-kk-horizon {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 32%;
  height: 2px;
  background: rgba(255, 243, 212, 0.66);
  box-shadow: 0 0 24px rgba(255, 240, 196, 0.55);
}

.ncm-kk-timer {
  position: absolute;
  left: 50%;
  top: 18px;
  width: min(86%, 360px);
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 251, 244, 0.92);
  border: 1px solid rgba(232, 212, 179, 0.95);
  box-shadow: 0 10px 24px rgba(57, 35, 14, 0.14);
  z-index: 5;
}

.ncm-kk-timer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ncm-kk-timer-head strong {
  font-size: 13px;
  color: #73593a;
}

.ncm-kk-timer-head span {
  font-size: 20px;
  font-weight: 800;
  color: #4f3d24;
}

.ncm-kk-timer-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(95, 73, 41, 0.12);
  overflow: hidden;
}

.ncm-kk-timer-track span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #44776b 0%, #98c86c 100%);
  box-shadow: 0 0 14px rgba(80, 132, 103, 0.35);
  transition: width 120ms linear;
}

.ncm-kk-timer.is-hurry .ncm-kk-timer-track span {
  background: linear-gradient(90deg, #d07b2e 0%, #d44844 100%);
}

.ncm-kk-road {
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: 84%;
  height: 70%;
  transform: translateX(-50%) rotateX(74deg);
  transform-origin: center bottom;
  border-radius: 28px;
  background:
    linear-gradient(to right, transparent 24%, rgba(255,255,255,0.16) 24%, rgba(255,255,255,0.16) 25%, transparent 25%, transparent 49%, rgba(255,255,255,0.16) 49%, rgba(255,255,255,0.16) 50%, transparent 50%, transparent 74%, rgba(255,255,255,0.16) 74%, rgba(255,255,255,0.16) 75%, transparent 75%),
    linear-gradient(180deg, #65502f 0%, #7d633d 100%);
  box-shadow: 0 -40px 70px rgba(88, 58, 19, 0.2);
}

.ncm-kk-rock {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translate3d(calc(-50% + var(--kk-rock-x)), var(--kk-rock-y), 0) scale(var(--kk-rock-scale));
  transform-origin: center top;
  opacity: var(--kk-rock-opacity);
  transition: filter 140ms ease;
  will-change: transform;
  z-index: 3;
}

.ncm-kk-rock-core {
  width: 208px;
  height: 208px;
  padding: 26px 22px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.22) 26%, rgba(255,255,255,0) 44%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 44%),
    linear-gradient(180deg, #d8d8d8 0%, #8f8f8f 40%, #5a5a5a 72%, #3c3c3c 100%);
  border: 5px solid #4e4e4e;
  box-shadow: inset 0 16px 24px rgba(255,255,255,.24), inset 0 -18px 24px rgba(0,0,0,.2), 0 28px 34px rgba(21, 13, 9, 0.3);
  text-align: center;
}

.ncm-kk-rock-reading {
  display: block;
  min-height: 1.25em;
  margin-bottom: 3px;
  color: rgba(255, 249, 237, 0.88);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  max-width: 156px;
}

.ncm-kk-rock-reading[hidden] {
  display: none;
}

.ncm-kk-rock-word {
  display: block;
  color: #fff9ed;
  font-size: 36px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.32);
  max-width: 148px;
}

.ncm-kk-hero {
  position: absolute;
  left: 50%;
  bottom: 120px;
  width: 88px;
  height: 116px;
  transform: translateX(calc(-50% + var(--kk-hero-offset)));
  transition: transform 160ms ease-out;
  z-index: 4;
  will-change: transform;
}

.ncm-kk-hero-face {
  width: 54px;
  height: 54px;
  margin: 0 auto -2px;
  border-radius: 50%;
  background: #fff6df;
  border: 3px solid #40280f;
  position: relative;
  box-shadow: 0 6px 18px rgba(57, 31, 5, 0.18);
  z-index: 2;
}

.ncm-kk-hero-face::before,
.ncm-kk-hero-face::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a1b0f;
}

.ncm-kk-hero-face::before {
  left: 13px;
}

.ncm-kk-hero-face::after {
  right: 13px;
}

.ncm-kk-cat-ear {
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border: 3px solid #40280f;
  border-radius: 6px 2px 5px 2px;
  background: #fff6df;
  transform: rotate(45deg);
  z-index: 0;
}

.ncm-kk-cat-ear-left {
  left: 6px;
}

.ncm-kk-cat-ear-right {
  right: 6px;
}

.ncm-kk-cat-muzzle {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  color: #6a3f27;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.ncm-kk-hero-body {
  width: 74px;
  height: 60px;
  margin: 0 auto;
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(180deg, #fff 0%, #f2f2f2 100%);
  border: 3px solid #40280f;
  position: relative;
}

.ncm-kk-hero-body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 22px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd45a 0%, #ff9d2f 100%);
}

.ncm-kk-hero-body::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 22px;
  width: 28px;
  height: 18px;
  border: 5px solid #40280f;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 18px 0 0;
  transform: rotate(24deg);
}

.ncm-kk-choice {
  position: absolute;
  bottom: 28px;
  width: min(34%, 250px);
  min-height: 112px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(255, 251, 244, 0.96);
  border: 2px solid rgba(216, 191, 150, 0.95);
  box-shadow: 0 14px 28px rgba(69, 43, 14, 0.12);
  z-index: 2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.ncm-kk-choice strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
  color: #2b1b0f;
  overflow-wrap: anywhere;
}

.ncm-kk-choice-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #89755a;
  letter-spacing: 0.08em;
}

.ncm-kk-choice-dir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(31, 92, 64, 0.1);
  color: #1f5c40;
  font-size: 17px;
  line-height: 1;
}

.ncm-kk-choice-left {
  left: 18px;
}

.ncm-kk-choice-right {
  right: 18px;
}

.ncm-kk-choice.is-player {
  transform: translateY(-6px);
  border-color: #3f8d5a;
  box-shadow: 0 18px 30px rgba(36, 120, 76, 0.24);
  background: #f5fff7;
}

.ncm-kk-feedback {
  position: absolute;
  left: 50%;
  top: 92px;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: min(90%, 520px);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(16, 32, 56, 0.72);
  color: #fffef9;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 6;
}

.ncm-kk-feedback.is-good {
  background: rgba(41, 120, 72, 0.88);
}

.ncm-kk-feedback.is-bad {
  background: rgba(164, 74, 55, 0.9);
}

.ncm-kk-speed-cue {
  position: absolute;
  left: 50%;
  top: 150px;
  z-index: 7;
  min-width: 240px;
  max-width: min(86%, 420px);
  padding: 14px 20px;
  border-radius: 999px;
  color: #fffef9;
  text-align: center;
  background: linear-gradient(135deg, rgba(215, 111, 37, 0.96), rgba(218, 55, 70, 0.92));
  border: 2px solid rgba(255, 234, 174, 0.9);
  box-shadow: 0 18px 34px rgba(59, 22, 8, 0.28), 0 0 0 8px rgba(255, 224, 139, 0.14);
  transform: translateX(-50%) translateY(8px) scale(0.92);
  opacity: 0;
  pointer-events: none;
}

.ncm-kk-speed-cue[hidden] {
  display: none;
}

.ncm-kk-speed-cue strong {
  display: block;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 10px rgba(75, 21, 4, 0.28);
}

.ncm-kk-speed-cue span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ncm-kk-speed-cue.is-visible {
  animation: ncmKkSpeedCue 1120ms cubic-bezier(.17, .84, .33, 1) both;
}

.ncm-kk-stage.is-speed-up {
  animation: ncmKkSpeedStage 740ms ease-out both;
}

.ncm-kk-stage.is-speed-up .ncm-kk-road {
  animation: ncmKkSpeedRoad 720ms ease-out both;
}

.ncm-kk-stage.is-speed-up .ncm-kk-horizon {
  animation: ncmKkSpeedHorizon 720ms ease-out both;
}

.ncm-kk-stage.is-speed-up .ncm-kk-rock-core {
  filter: brightness(1.16) saturate(1.16);
  animation: ncmKkSpeedRock 720ms ease-out both;
}

.ncm-kk-stage.is-safe .ncm-kk-rock-core {
  box-shadow: 0 0 0 6px rgba(97, 231, 149, 0.26), 0 20px 30px rgba(21, 13, 9, 0.28);
}

.ncm-kk-stage.is-hit .ncm-kk-rock-core {
  box-shadow: 0 0 0 8px rgba(255, 123, 83, 0.34), 0 20px 30px rgba(21, 13, 9, 0.28);
  filter: saturate(1.1);
  animation: ncmKkRockThud 360ms ease-out both;
}

.ncm-kk-stage.is-rushing .ncm-kk-rock-core {
  filter: brightness(1.08) saturate(1.08);
}

.ncm-kk-hero.is-jump {
  animation: ncmKkHeroJump 680ms cubic-bezier(.2, .9, .24, 1.08) both;
}

.ncm-kk-hero.is-bump {
  animation: ncmKkHeroBump 820ms cubic-bezier(.2, .9, .24, 1.08) both;
}

.ncm-kk-explain {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.24), transparent 38%),
    rgba(19, 31, 36, 0.42);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.ncm-kk-explain[hidden] {
  display: none;
}

.ncm-kk-explain-card {
  width: min(520px, 100%);
  padding: 22px 24px;
  border-radius: 28px;
  border: 2px solid rgba(255, 244, 214, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.98) 0%, rgba(255, 245, 222, 0.98) 100%);
  box-shadow: 0 22px 46px rgba(24, 18, 10, 0.28);
  color: #2b1b0f;
  text-align: left;
  animation: ncmKkExplainIn 220ms ease-out both;
}

.ncm-kk-explain-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #2f8a5e;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ncm-kk-explain.is-bad .ncm-kk-explain-badge {
  background: #a34b39;
}

.ncm-kk-explain-card h4 {
  margin: 14px 0 10px;
  font-size: 28px;
  line-height: 1.22;
}

.ncm-kk-explain-card p {
  margin: 0;
}

.ncm-kk-explain-result {
  font-weight: 800;
  color: #315d45;
}

.ncm-kk-explain.is-bad .ncm-kk-explain-result {
  color: #8d3d2e;
}

.ncm-kk-explain-meaning {
  margin-top: 12px !important;
  color: #604e38;
  font-size: 16px;
  line-height: 1.7;
}

.ncm-kk-explain-next {
  margin-top: 16px !important;
  padding-top: 12px;
  border-top: 1px dashed #d8c198;
  color: #85673f;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.ncm-kk-finish {
  position: absolute;
  inset: 8px;
  z-index: 14;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.28), transparent 34%),
    rgba(12, 34, 25, 0.5);
  backdrop-filter: blur(2px);
}

.ncm-kk-finish[hidden] {
  display: none !important;
}

.ncm-kk-finish-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100% - 4px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(16px, 2.4vw, 22px);
  border: 2px solid rgba(245, 216, 133, 0.95);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 248, 0.98) 0%, rgba(239, 255, 224, 0.98) 100%);
  box-shadow: 0 22px 48px rgba(10, 24, 17, 0.28);
  color: #173c2b;
  text-align: left;
  animation: ncmKkFinishIn 260ms cubic-bezier(.2, .9, .24, 1.08) both;
}

.ncm-kk-finish-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8c7a8;
  border-radius: 999px;
  background: rgba(255, 255, 250, 0.92);
  color: #31503d;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(18, 57, 38, 0.12);
}

.ncm-kk-finish-close:hover,
.ncm-kk-finish-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(18, 57, 38, 0.12);
}

.ncm-kk-finish-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ddf5cf;
  color: #22633f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.ncm-kk-finish-card h3 {
  margin: 10px 44px 6px 0;
  color: #123926;
  font-size: clamp(30px, 3.7vw, 40px);
  line-height: 1.08;
}

.ncm-kk-finish-card p {
  margin: 0;
  color: #58705d;
  font-size: 14px;
  line-height: 1.5;
}

.ncm-kk-finish-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 10px;
}

.ncm-kk-finish-score strong {
  color: #0d3322;
  font-size: clamp(44px, 5.8vw, 58px);
  line-height: 0.92;
}

.ncm-kk-finish-score span {
  color: #55705e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ncm-kk-finish-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.ncm-kk-finish-highlights li {
  padding: 8px 10px;
  border: 1px solid #d8c997;
  border-radius: 14px;
  background: rgba(255, 255, 250, 0.82);
  color: #234431;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.ncm-kk-finish-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ncm-kk-finish-actions button {
  appearance: none;
  border: 1px solid #d6c5a7;
  border-radius: 999px;
  padding: 10px 12px;
  background: #fffefa;
  color: #1c4e37;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.ncm-kk-finish-actions button.is-primary {
  border-color: #1f5c40;
  background: linear-gradient(180deg, #2e7b55 0%, #174832 100%);
  color: #fff;
}

.ncm-kk-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ncm-kk-control-btn {
  appearance: none;
  border: 1px solid #d6c5a7;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fffdfa;
  color: #285c43;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  min-height: 56px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.ncm-kk-control-btn:active {
  transform: translateY(1px);
}

.ncm-kk-note {
  margin-top: -2px;
}

.ncm-kk-over {
  text-align: left;
}

.ncm-kk-review-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.ncm-kk-review-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #ead8b8;
  background: #fffdf7;
}

.ncm-kk-review-card strong {
  display: block;
  margin-bottom: 6px;
}

.ncm-kk-review-card p {
  margin: 0;
}

@media (max-width: 820px) {
  .ncm-kk-hud {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .ncm-kk-stage {
    min-height: min(620px, 76vh);
  }

  .ncm-kk-timer {
    width: min(90%, 320px);
    top: 14px;
    padding: 10px 12px;
  }

  .ncm-kk-choice {
    width: calc(50% - 24px);
    min-height: 120px;
  }

  .ncm-kk-choice strong {
    font-size: 23px;
  }

  .ncm-kk-speed-cue {
    top: 132px;
  }

  .ncm-kk-rock-core {
    width: 168px;
    height: 168px;
    padding: 22px 18px;
  }

  .ncm-kk-rock-core span {
    font-size: 26px;
    line-height: 1.1;
    max-width: 116px;
  }

  .ncm-kk-rock-core .ncm-kk-rock-reading {
    font-size: 12px;
    line-height: 1.15;
    max-width: 118px;
  }
}

@media (max-width: 600px) {
  .ncm-kk-wrap {
    gap: 12px;
  }

  .ncm-kk-hud {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  .ncm-kk-hud-card {
    padding: 9px 8px;
    border-radius: 14px;
  }

  .ncm-kk-hud-card label {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .ncm-kk-hud-card strong {
    font-size: 19px;
  }

  .ncm-kk-stage {
    min-height: 500px;
    height: min(72vh, 560px);
    border-radius: 22px;
  }

  .ncm-kk-timer {
    top: 10px;
    width: min(92%, 300px);
    padding: 9px 10px;
    border-radius: 16px;
  }

  .ncm-kk-timer-head span {
    font-size: 17px;
  }

  .ncm-kk-feedback {
    top: 78px;
    min-width: 0;
    width: min(88%, 360px);
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 18px;
  }

  .ncm-kk-speed-cue {
    top: 126px;
    min-width: 0;
    width: min(84%, 330px);
    padding: 12px 16px;
  }

  .ncm-kk-rock-core {
    width: 142px;
    height: 142px;
    padding: 17px 13px;
  }

  .ncm-kk-rock-core span {
    font-size: 21px;
    line-height: 1.08;
    letter-spacing: 0.01em;
    max-width: 96px;
    overflow-wrap: anywhere;
  }

  .ncm-kk-rock-core .ncm-kk-rock-reading {
    min-height: 1.05em;
    margin-bottom: 2px;
    font-size: clamp(8px, 2.15vw, 10px);
    line-height: 1.08;
    letter-spacing: 0.04em;
    max-width: 100px;
    overflow-wrap: anywhere;
  }

  .ncm-kk-rock-word {
    font-size: clamp(18px, 5.2vw, 21px);
    line-height: 1.08;
    max-width: 96px;
  }

  .ncm-kk-hero {
    bottom: 108px;
    width: 76px;
    height: 104px;
  }

  .ncm-kk-choice {
    left: auto;
    right: auto;
    bottom: 16px;
    width: calc(50% - 16px);
    min-height: 106px;
    padding: 13px 12px;
    border-radius: 18px;
  }

  .ncm-kk-choice-left {
    left: 10px;
  }

  .ncm-kk-choice-right {
    right: 10px;
  }

  .ncm-kk-choice strong {
    font-size: 20px;
    line-height: 1.25;
  }

  .ncm-kk-controls {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 12;
    gap: 10px;
    padding: 9px;
    border: 1px solid #e5d7bd;
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 10px 24px rgba(42, 30, 8, 0.12);
  }

  .ncm-kk-control-btn {
    padding: 14px 10px;
    font-size: 17px;
  }

  .ncm-kk-explain {
    padding: 12px;
    align-items: flex-end;
  }

  .ncm-kk-explain-card {
    padding: 18px 18px 20px;
    border-radius: 24px;
  }

  .ncm-kk-explain-card h4 {
    font-size: 23px;
  }

  .ncm-kk-explain-meaning {
    font-size: 15px;
    line-height: 1.65;
  }

  .ncm-kk-finish {
    inset: 8px;
    padding: 8px;
    align-items: end;
  }

  .ncm-kk-finish-card {
    padding: 14px;
    border-radius: 24px;
  }

  .ncm-kk-finish-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
  }

  .ncm-kk-finish-card h3 {
    margin-right: 38px;
    font-size: 30px;
  }

  .ncm-kk-finish-card p {
    font-size: 13px;
    line-height: 1.55;
  }

  .ncm-kk-finish-score {
    margin: 12px 0 10px;
  }

  .ncm-kk-finish-score strong {
    font-size: 40px;
  }

  .ncm-kk-finish-highlights {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 12px;
  }

  .ncm-kk-finish-highlights li {
    padding: 8px 10px;
    font-size: 13px;
  }

  .ncm-kk-finish-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ncm-kk-finish-actions button {
    padding: 11px 10px;
    font-size: 13px;
  }
}

@keyframes ncmKkFinishIn {
  0% { opacity: 0; transform: translateY(16px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ncmKkHeroJump {
  0% { transform: translateX(calc(-50% + var(--kk-hero-offset))) translateY(0) rotate(0deg); }
  35% { transform: translateX(calc(-50% + var(--kk-hero-offset))) translateY(-48px) rotate(-4deg); }
  62% { transform: translateX(calc(-50% + var(--kk-hero-offset))) translateY(6px) rotate(3deg); }
  80% { transform: translateX(calc(-50% + var(--kk-hero-offset))) translateY(-12px) rotate(-2deg); }
  100% { transform: translateX(calc(-50% + var(--kk-hero-offset))) translateY(0) rotate(0deg); }
}

@keyframes ncmKkHeroBump {
  0% { transform: translateX(calc(-50% + var(--kk-hero-offset))) translateY(0) rotate(0deg); }
  18% { transform: translateX(calc(-50% + var(--kk-hero-offset))) translateY(-8px) rotate(-7deg); }
  42% { transform: translateX(calc(-50% + var(--kk-hero-offset))) translateY(16px) rotate(18deg); }
  70% { transform: translateX(calc(-50% + var(--kk-hero-offset))) translateY(28px) rotate(78deg); }
  100% { transform: translateX(calc(-50% + var(--kk-hero-offset))) translateY(32px) rotate(86deg); }
}

@keyframes ncmKkRockThud {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-6px); }
  44% { transform: translateX(7px); }
  66% { transform: translateX(-4px); }
}

@keyframes ncmKkSpeedCue {
  0% { opacity: 0; transform: translateX(-50%) translateY(14px) scale(0.86); }
  16% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.06); }
  32% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  72% { opacity: 1; transform: translateX(-50%) translateY(-2px) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(0.96); }
}

@keyframes ncmKkSpeedStage {
  0%, 100% { filter: saturate(1) brightness(1); }
  38% { filter: saturate(1.2) brightness(1.08); }
}

@keyframes ncmKkSpeedRoad {
  0% { box-shadow: 0 -40px 70px rgba(88, 58, 19, 0.2); }
  34% { box-shadow: 0 -54px 86px rgba(255, 215, 111, 0.28), 0 0 0 2px rgba(255,255,255,0.08) inset; }
  100% { box-shadow: 0 -40px 70px rgba(88, 58, 19, 0.2); }
}

@keyframes ncmKkSpeedHorizon {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  34% { opacity: 0.86; transform: scaleX(1.08); }
}

@keyframes ncmKkSpeedRock {
  0%, 100% { transform: translateY(0) scale(1); }
  28% { transform: translateY(10px) scale(1.08); }
  52% { transform: translateY(-2px) scale(0.98); }
}

@keyframes ncmKkExplainIn {
  0% { opacity: 0; transform: translateY(16px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── 熟語トースト（キャンバス下部オーバーレイ） ── */
.ncm-drop-toast {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 34, 22, 0.93);
  border-radius: 0 0 12px 12px;
  border-top: 1px solid rgba(127, 239, 170, 0.3);
  padding: 10px 14px 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  z-index: 20;
  backdrop-filter: blur(2px);
}

.ncm-drop-toast.is-awaiting-input {
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.24);
}

.ncm-drop-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ncm-drop-toast-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-bottom: 4px;
}

.ncm-drop-toast-summary {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #e8ffd7;
}

.ncm-drop-toast-item:last-child {
  margin-bottom: 0;
}

.ncm-drop-toast-word {
  font-size: 28px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: bold;
  color: #afffcc;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.ncm-drop-toast-reading {
  font-size: 14px;
  color: #80d4a8;
  font-weight: normal;
}

.ncm-drop-toast-meaning {
  font-size: 12px;
  color: #7ab899;
  margin: 2px 0 0;
  width: 100%;
  line-height: 1.5;
}

.ncm-drop-toast-hint {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(175, 255, 204, 0.18);
  color: #d9ffe7;
  font-size: 12px;
  font-weight: 700;
}

/* ── レスポンシブ ── */
@media (max-width: 760px) {
  .ncm-drop-wrap {
    grid-template-columns: 1fr;
  }

  .ncm-drop-sidebar {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    min-width: 0;
  }

  .ncm-drop-leaderboards {
    grid-template-columns: 1fr;
  }

  .ncm-drop-controls {
    display: grid;
  }
}

/* Mobile game usability refinements */
@media (max-width: 782px) {
  .necomoji-app-root.is-kanji-drop-screen #ncm-drop-host {
    width: 100%;
    min-width: 0;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    overflow: hidden;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    justify-content: stretch;
    gap: 7px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-hud {
    display: grid;
    grid-template-columns: 1.15fr 0.9fr 0.65fr 0.8fr 1.15fr;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(222, 199, 143, 0.9);
    border-radius: 18px;
    background: rgba(255, 253, 242, 0.94);
    box-shadow: 0 12px 28px rgba(53, 38, 13, 0.08);
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-stat,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-pause {
    min-width: 0;
    border: 1px solid rgba(222, 199, 143, 0.78);
    border-radius: 13px;
    background: rgba(255, 255, 250, 0.92);
    color: #123d2e;
    padding: 5px 6px;
    line-height: 1.1;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-stat span,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-pause span {
    display: block;
    color: #6f6046;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-stat strong,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-pause strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 900;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-score strong {
    font-size: 18px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-score em {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    color: #846f50;
    font-size: 8px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-next strong {
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 24px;
    line-height: 1;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-pause {
    appearance: none;
    cursor: pointer;
    background: linear-gradient(180deg, #f7fff4 0%, #ddf6cf 100%);
    border-color: rgba(68, 130, 87, 0.42);
    text-align: center;
    touch-action: manipulation;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-pause strong {
    font-size: 16px;
    letter-spacing: 0.02em;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-pause span {
    margin-top: 2px;
    font-size: 8px;
    color: #6f6046;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-pause:disabled {
    cursor: not-allowed;
    opacity: 0.55;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-stage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    align-items: center;
    justify-content: center;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    touch-action: none;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-sidebar {
    display: none;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-score-card,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-combo-card,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-level-card,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-next-card {
    grid-column: span 1;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-pause-card {
    display: none;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-bgm-card {
    display: none;
    grid-column: span 1;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-bgm-card label,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-bgm-card strong {
    display: none;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-last-words-card {
    display: none;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-info-card,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-next-card {
    min-width: 0;
    padding: 6px 7px;
    border-radius: 13px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-info-card label,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-next-label {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-info-card strong {
    font-size: 16px;
    line-height: 1.15;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-next-kanji {
    font-size: 26px;
    line-height: 1;
    margin-top: 1px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-mini-words {
    font-size: 13px;
    line-height: 1.25;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-info-sub {
    font-size: 10px;
    line-height: 1.25;
    margin-top: 2px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-pause-btn,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-bgm-btn {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-controls {
    display: grid;
    position: relative;
    bottom: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 6px;
    border-radius: 17px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-btn {
    min-height: 52px;
    padding: 10px 6px;
    font-size: 21px;
    border-radius: 16px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-countdown-overlay {
    border-radius: 16px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-result-overlay {
    inset: 4px;
    padding: 8px;
    align-items: center;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-result-card-instage {
    width: min(100%, 330px);
    max-width: calc(100% - 4px);
    padding: 14px;
    border-radius: 20px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-result-card-instage h3 {
    font-size: 23px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-result-card-instage p {
    font-size: 12px;
    line-height: 1.45;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-result-highlights {
    gap: 6px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-result-highlights li {
    padding: 7px 9px;
    font-size: 13px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-result-actions {
    grid-template-columns: 1fr 1fr;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-result-actions button {
    min-height: 42px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-hud {
    grid-template-columns: 1.05fr 0.78fr 0.55fr 0.68fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 15px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-stat,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-pause {
    padding: 4px 5px;
    border-radius: 11px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-stat span,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-pause span {
    font-size: 8px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-stat strong,
  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-pause strong {
    font-size: 13px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-pause strong {
    font-size: 14px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-score strong {
    font-size: 16px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-live-next strong {
    font-size: 21px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 54px;
    padding-right: 48px;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-last-words-card {
    display: none;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-pause-card {
    grid-column: span 2;
  }

  .necomoji-app-root.is-kanji-drop-screen .ncm-drop-btn {
    min-height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .necomoji-app-root.is-kotowaza-screen .ncm-kk-stage {
    min-height: min(560px, calc(100dvh - 220px));
    height: min(70dvh, 540px);
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-choice {
    touch-action: manipulation;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 782px) {
  .necomoji-app-root.is-kotowaza-screen .ncm-kk-wrap {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(320px, 1fr) auto;
    gap: 6px;
    overflow: hidden;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-hud {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-hud-card {
    min-width: 0;
    padding: 6px 5px;
    border-radius: 13px;
    box-shadow: none;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-hud-card label {
    margin-bottom: 2px;
    font-size: 9px;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-hud-card strong {
    font-size: clamp(14px, 4vw, 19px);
    line-height: 1;
    white-space: nowrap;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-stage {
    min-height: 0;
    height: 100%;
    border-radius: 20px;
    touch-action: none;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-timer {
    top: 7px;
    width: min(86%, 300px);
    padding: 7px 10px;
    border-radius: 15px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-timer-head {
    margin-bottom: 5px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-timer-head strong {
    font-size: 10px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-timer-head span {
    font-size: 16px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-feedback {
    top: 58px;
    min-width: 0;
    width: min(88%, 320px);
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 18px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-speed-cue {
    top: 98px;
    min-width: 0;
    width: min(86%, 300px);
    padding: 10px 14px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-speed-cue strong {
    font-size: 22px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-speed-cue span {
    font-size: 11px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-rock-core {
    width: 132px;
    height: 132px;
    padding: 15px 12px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-rock-word {
    max-width: 88px;
    font-size: clamp(17px, 5vw, 20px);
    line-height: 1.08;
    letter-spacing: 0.01em;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-rock-core .ncm-kk-rock-reading {
    max-width: 88px;
    min-height: 1em;
    margin-bottom: 1px;
    font-size: clamp(8px, 2vw, 9px);
    line-height: 1.05;
    letter-spacing: 0.02em;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-hero {
    bottom: 90px;
    transform: translateX(calc(-50% + var(--kk-hero-offset))) scale(0.84);
    transform-origin: 50% 100%;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-choice {
    bottom: 8px;
    width: calc(50% - 12px);
    min-height: 82px;
    padding: 10px 10px 9px;
    border-radius: 18px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-choice-left {
    left: 7px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-choice-right {
    right: 7px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-choice strong {
    font-size: clamp(17px, 5vw, 21px);
    line-height: 1.18;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-choice-label {
    gap: 5px;
    margin-bottom: 5px;
    font-size: 10px;
    line-height: 1.15;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-choice-dir {
    min-width: 25px;
    height: 25px;
    font-size: 14px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-control-btn {
    min-height: 52px;
    padding: 9px 8px;
    border-radius: 16px;
    font-size: 17px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-note {
    display: none;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-explain {
    padding: 10px;
    align-items: flex-end;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-explain-card {
    width: 100%;
    max-height: min(58%, 330px);
    overflow-y: auto;
    padding: 15px 16px;
    border-radius: 22px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-explain-badge {
    min-width: 62px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-explain-card h4 {
    margin: 10px 0 8px;
    font-size: clamp(22px, 7vw, 28px);
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-explain-result,
  .necomoji-app-root.is-kotowaza-screen .ncm-kk-explain-meaning,
  .necomoji-app-root.is-kotowaza-screen .ncm-kk-explain-next {
    font-size: 13px;
    line-height: 1.55;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-finish {
    inset: 6px;
    padding: 6px;
    align-items: center;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-finish-card {
    width: min(100%, 360px);
    max-height: min(82%, 460px);
    padding: 14px;
    border-radius: 22px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-finish-card h3 {
    margin: 8px 38px 6px 0;
    font-size: clamp(24px, 8vw, 31px);
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-finish-card p {
    font-size: 12px;
    line-height: 1.45;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-finish-score {
    margin: 8px 0;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-finish-score strong {
    font-size: clamp(38px, 13vw, 50px);
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-finish-highlights {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 10px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-finish-highlights li {
    padding: 7px 9px;
    font-size: 12px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-finish-actions {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-finish-actions button {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 13px;
  }
}

@media (max-width: 782px) and (max-height: 700px) {
  .necomoji-app-root.is-kotowaza-screen .ncm-kk-wrap {
    grid-template-rows: auto minmax(250px, 1fr) auto;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-hud-card {
    padding: 5px 4px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-control-btn {
    min-height: 46px;
    font-size: 15px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-choice {
    min-height: 74px;
    padding: 8px;
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-choice strong {
    font-size: clamp(15px, 4.8vw, 19px);
  }

  .necomoji-app-root.is-kotowaza-screen .ncm-kk-hero {
    bottom: 78px;
    transform: translateX(calc(-50% + var(--kk-hero-offset))) scale(0.74);
  }
}

/* ねこもじ subject portal */
.ncm-subject-entry-hero {
  border-left: 6px solid #62c8ff;
}

.ncm-subject-grid-app {
  display: grid;
  gap: 18px;
}

.ncm-subject-grid-app.ncm-subject-grid-home {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  align-items: start;
}

.ncm-subject-grid-app.ncm-subject-tabs-home {
  grid-template-columns: 1fr;
}

.ncm-subject-grid-home .ncm-secondary-game-grid {
  grid-template-columns: 1fr;
}

.ncm-hub-hero {
  padding: clamp(12px, 2vw, 18px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(248, 255, 251, 0.72)),
    linear-gradient(90deg, rgba(31, 89, 70, 0.08), rgba(98, 200, 255, 0.11));
}

.ncm-hub-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}

.ncm-subject-band.is-sansuu .ncm-hub-game-grid {
  grid-template-columns: minmax(0, 420px);
}

.ncm-hub-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.ncm-hub-tab {
  appearance: none;
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label count"
    "sub count";
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 35, 30, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #16231d;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 18px rgba(42, 30, 8, 0.05);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ncm-hub-tab:hover,
.ncm-hub-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 89, 70, 0.32);
  box-shadow: 0 12px 24px rgba(42, 30, 8, 0.09);
  outline: none;
}

.ncm-hub-tab.is-active {
  border-color: rgba(31, 89, 70, 0.52);
  background: #fffef9;
  box-shadow: inset 0 -4px 0 rgba(31, 89, 70, 0.24), 0 12px 24px rgba(42, 30, 8, 0.08);
}

.ncm-hub-tab.is-sansuu.is-active {
  border-color: rgba(98, 200, 255, 0.62);
  box-shadow: inset 0 -4px 0 rgba(98, 200, 255, 0.45), 0 12px 24px rgba(42, 30, 8, 0.08);
}

.ncm-hub-tab span {
  grid-area: label;
  color: #527066;
  font-size: 13px;
  font-weight: 900;
}

.ncm-hub-tab strong {
  grid-area: sub;
  color: #16231d;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.15;
}

.ncm-hub-tab em {
  grid-area: count;
  justify-self: end;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(31, 89, 70, 0.08);
  color: #527066;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.ncm-hub-tab.is-sansuu em {
  background: rgba(98, 200, 255, 0.14);
}

.ncm-hub-game-card {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(23, 35, 30, 0.13);
  border-radius: 8px;
  background: #fffef9;
  color: #16231d;
  box-shadow: 0 10px 22px rgba(42, 30, 8, 0.06);
  text-align: left;
}

button.ncm-hub-game-card {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

button.ncm-hub-game-card:hover,
button.ncm-hub-game-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 89, 70, 0.28);
  box-shadow: 0 14px 26px rgba(42, 30, 8, 0.10);
  outline: none;
}

.ncm-hub-game-card.is-primary-game {
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 226, 122, 0.28), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f4fbef 100%);
}

.ncm-hub-game-card.is-math-game {
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 226, 122, 0.34), transparent 30%),
    linear-gradient(180deg, #f7fcff 0%, #fffdf0 100%);
}

.ncm-hub-game-card.is-coming-soon {
  opacity: 0.72;
}

.ncm-hub-game-kicker,
.ncm-hub-game-card em {
  color: #527066;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
}

.ncm-hub-game-card strong {
  color: #16231d;
  font-size: clamp(20px, 2.8vw, 27px);
  line-height: 1.2;
}

.ncm-hub-game-card p {
  margin: 0;
  color: #52645a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.62;
}

.ncm-hub-game-card em {
  width: max-content;
  max-width: 100%;
  margin-top: 2px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(31, 89, 70, 0.08);
}

.ncm-subject-band {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid rgba(23, 35, 30, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.ncm-hub-panel {
  min-height: 360px;
}

.ncm-subject-band.is-kokugo {
  border-top: 5px solid #1f5946;
}

.ncm-subject-band.is-sansuu {
  border-top: 5px solid #62c8ff;
  background:
    linear-gradient(135deg, rgba(98, 200, 255, 0.12), rgba(255, 226, 122, 0.18)),
    rgba(255, 255, 255, 0.84);
}

.ncm-subject-band-head {
  display: grid;
  gap: 5px;
}

.ncm-subject-band-head span {
  color: #1f5946;
  font-size: 13px;
  font-weight: 900;
}

.ncm-subject-band-head strong {
  color: #16231d;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.16;
}

.ncm-subject-band-head p {
  max-width: 720px;
  margin: 0;
  color: #53645d;
  font-weight: 700;
  line-height: 1.65;
}

.ncm-home-start-card-math {
  border-color: rgba(98, 200, 255, 0.38);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 226, 122, 0.35), transparent 32%),
    linear-gradient(180deg, #f7fcff, #fffdf0);
}

.ncm-game-thumb-divide {
  position: relative;
  min-height: 132px;
  border-radius: 8px;
  background: #050914;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(98, 200, 255, 0.28);
}

.ncm-game-thumb-divide span {
  position: absolute;
  display: grid;
  place-items: center;
  font-family: Arial Black, system-ui, sans-serif;
  font-weight: 900;
  line-height: 1;
}

.ncm-thumb-big-number {
  left: 22px;
  top: 22px;
  color: #dffcff;
  font-size: 30px;
  text-shadow: 0 0 14px rgba(98, 200, 255, 0.8);
}

.ncm-thumb-shot {
  right: 38px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #05111d;
  background: #ffe27a;
  box-shadow: 0 0 16px rgba(255, 226, 122, 0.82);
}

.ncm-thumb-quotient {
  left: 38px;
  bottom: 24px;
  color: #8ce6c5;
  font-size: 24px;
}

.ncm-thumb-remainder {
  right: 96px;
  top: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  color: #fff;
  background: #ff8bbd;
  font-size: 11px;
  box-shadow: 0 0 14px rgba(255, 139, 189, 0.72);
}

.ncm-divide-panel .ncm-panel-body {
  padding-bottom: 0;
}

.ncm-divide-host-wrap {
  margin-top: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: #030712;
}

@media (max-width: 760px) {
  .ncm-hub-tabs {
    position: sticky;
    top: 8px;
    z-index: 6;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(23, 35, 30, 0.10);
    border-radius: 10px;
    background: rgba(255, 252, 240, 0.94);
    backdrop-filter: blur(10px);
  }

  .ncm-hub-tab {
    min-height: 62px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "sub";
    padding: 10px;
  }

  .ncm-hub-tab strong {
    font-size: 18px;
  }

  .ncm-hub-tab em {
    display: none;
  }

  .ncm-subject-band {
    padding: 14px;
  }

  .ncm-divide-host-wrap {
    margin-inline: -14px;
    border-radius: 0;
  }
}
