/* ==========================================================================
   えびっとぽよぽよ - スタイルシート
   手触りのあるキュートなパステルポップ・アーケードUI
   ========================================================================== */

:root {
  --ink: #4a334d;
  --ink-muted: #7a5f7d;
  --ink-line: rgba(74, 51, 77, 0.15);
  --paper: #fffbf7;
  --paper-pink: #fff0f6;
  --paper-sky: #eef8ff;
  --paper-tint: #fff6fa;
  --pink: #ff6b9d;
  --pink-hover: #ff85ae;
  --pink-deep: #db467c;
  --cyan: #38bdf8;
  --cyan-deep: #0284c7;
  --emerald: #10b981;
  --coral: #e11d48;
  --amber: #d97706;
  --gold: #fde047;
  --font-display: 'Fredoka', 'Outfit', 'Zen Maru Gothic', system-ui, sans-serif;
  --font-body: 'Zen Maru Gothic', 'Fredoka', system-ui, sans-serif;
  --font-num: 'Fredoka', 'Outfit', 'Zen Maru Gothic', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #fff2f7;
  background-image:
    radial-gradient(rgba(255, 130, 175, 0.19) 2.5px, transparent 2.5px),
    radial-gradient(rgba(105, 200, 250, 0.2) 2.5px, transparent 2.5px),
    linear-gradient(155deg, #ffeef5 0%, #fffaf2 50%, #e6f5ff 100%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
  background-position: 0 0, 16px 16px, 0 0;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

.tabular {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  background: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 1.5px 0 var(--ink);
}

/* --------------------------------------------------------------------------
   全体フレーム（16:9 キュート・アーケード筐体）
   -------------------------------------------------------------------------- */
.app-shell {
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}

.stage-wrapper {
  width: 100%;
  height: 100%;
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: min(100%, calc((100dvh - 28px) * 16 / 9));
  background: #dff3ff;
  border-radius: 22px;
  overflow: hidden;
  border: 3.5px solid var(--ink);
  box-shadow:
    0 10px 0 #f7b8d0,
    0 22px 46px rgba(118, 70, 106, 0.2);
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* --------------------------------------------------------------------------
   ゲーム画面内 上部HUD
   -------------------------------------------------------------------------- */
.ingame-hud {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.hud-stats {
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--ink);
  overflow: hidden;
}

.stat-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 13px;
  white-space: nowrap;
  border-right: 1.5px dashed rgba(255, 107, 157, 0.35);
}

.stat-item:last-child {
  border-right: none;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.stat-value {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.lives-value {
  color: var(--pink-deep);
}

.combo-value {
  color: #059669;
}

.hud-actions {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.icon-btn {
  appearance: none;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.12s ease;
}

.icon-btn:hover:not(:disabled) {
  background: var(--paper-pink);
}

.icon-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: 0 2px 0 rgba(74, 51, 77, 0.35);
}

.icon-btn[aria-pressed='true'] {
  background: #fef08a;
  color: var(--ink);
}

.icon-btn:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.ctrl-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   フィーバーゲージ
   -------------------------------------------------------------------------- */
.fever-banner {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: #582f57;
  border: 2.5px solid var(--gold);
  border-radius: 14px;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 0 rgba(74, 51, 77, 0.48);
  pointer-events: none;
}

.fever-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.fever-timer {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  min-width: 36px;
  text-align: right;
}

.fever-track {
  width: 96px;
  height: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  overflow: hidden;
}

.fever-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #fde047, #ff85ae);
  transform-origin: left center;
}

.fever-banner.is-double {
  border-color: #fbcfe8;
  box-shadow: 0 4px 0 rgba(219, 70, 124, 0.55);
}

.fever-banner.is-double .fever-title {
  background: linear-gradient(90deg, #fbcfe8, #fde047, #a7f3d0, #bae6fd, #f5d0fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fever-banner.is-double .fever-bar {
  background: linear-gradient(90deg, #ff6b9d, #fde047, #6ee7b7, #7dd3fc, #e879f9);
}

/* --------------------------------------------------------------------------
   ゲーム画面内 操作ボタン（マシュマロ＆ストロベリーキートップ）
   -------------------------------------------------------------------------- */
.ingame-controls {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.ctrl-group-left,
.ctrl-group-right {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  background: rgba(255, 251, 247, 0.92);
  border: 2px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  margin-bottom: 2px;
}

.hint-pair {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.hint-sep {
  color: var(--pink);
  font-weight: 900;
}

.ctrl-btn {
  appearance: none;
  border: 2.5px solid var(--ink);
  background: rgba(255, 251, 247, 0.95);
  color: var(--ink);
  font-family: var(--font-display);
  border-radius: 16px;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.06s ease, box-shadow 0.06s ease, background-color 0.08s ease;
}

.move-btn {
  min-width: 64px;
  height: 44px;
  padding: 0 12px;
}

.jump-btn {
  min-width: 118px;
  height: 44px;
  padding: 0 16px;
  background: var(--pink);
  color: #ffffff;
  box-shadow: 0 4px 0 var(--ink);
}

.ctrl-btn.is-pressed,
.ctrl-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
  background: var(--paper-pink);
}

.jump-btn.is-pressed,
.jump-btn:active {
  background: var(--pink-deep);
  box-shadow: 0 1px 0 var(--ink);
}

.ctrl-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.ctrl-jump-text {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ctrl-key {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(74, 51, 77, 0.1);
}

.jump-btn .ctrl-key {
  background: rgba(255, 255, 255, 0.28);
}

/* --------------------------------------------------------------------------
   オーバーレイ共通シート
   -------------------------------------------------------------------------- */
.overlay-screen {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: rgba(74, 51, 77, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.arcade-sheet {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 0 7px 0 var(--ink);
}

/* --------------------------------------------------------------------------
   スタート画面（キュートな絵本＆キャラクター図鑑レイアウト）
   -------------------------------------------------------------------------- */
.start-sheet {
  max-width: 820px;
  display: grid;
  grid-template-columns: 1.06fr 1.2fr;
  overflow: hidden;
}

.start-hero {
  background: linear-gradient(170deg, #fff0f6 0%, #f1f9ff 100%);
  border-right: 2.5px dashed rgba(74, 51, 77, 0.25);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.title-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-preview {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: block;
}

.title-copy {
  min-width: 0;
}

.sheet-kicker {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--pink-deep);
}

.game-logo {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.32rem, 2.15vw, 1.68rem);
  font-weight: 900;
  line-height: 1.12;
  white-space: nowrap;
  color: var(--ink);
  letter-spacing: 0.01em;
  text-shadow:
    0 3px 0 #fbcfe8,
    2px 3px 0 #bae6fd;
}

.hero-lead {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}

.goal-strip {
  border-top: 1.5px dashed rgba(74, 51, 77, 0.2);
  border-bottom: 1.5px dashed rgba(74, 51, 77, 0.2);
  padding: 7px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.goal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
}

.goal-rank {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  color: #059669;
}

.goal-row.is-true .goal-rank {
  color: var(--pink-deep);
}

.goal-score {
  color: var(--ink);
}

.start-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.start-btn {
  width: 100%;
}

.controls-note {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.45;
}

/* 右側：キャラクター紹介 */
.start-roster {
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.roster-header {
  background: var(--pink);
  color: #ffffff;
  border-bottom: 2.5px solid var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 7px 16px;
}

.roster-list {
  list-style: none;
  margin: 0;
  padding: 4px 16px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.roster-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 0;
  border-bottom: 1.5px dashed var(--ink-line);
}

.roster-row:last-child {
  border-bottom: none;
}

.mini-preview {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: block;
}

.roster-info {
  min-width: 0;
  flex: 1;
}

.roster-name-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.roster-name-line strong {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--ink);
}

.roster-role {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.role-ally {
  color: #059669;
}

.role-enemy {
  color: var(--pink-deep);
}

.role-helper {
  color: var(--amber);
}

.roster-info p {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.38;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   アクションボタン共通
   -------------------------------------------------------------------------- */
.primary-btn,
.secondary-btn {
  appearance: none;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 900;
  padding: 11px 26px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  border: 2.5px solid var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.12s ease;
}

.primary-btn {
  background: var(--pink);
  color: #ffffff;
  box-shadow: 0 4px 0 var(--ink);
}

.primary-btn:hover {
  background: var(--pink-hover);
}

.primary-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

.secondary-btn {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}

.secondary-btn:hover {
  background: var(--paper-pink);
}

.secondary-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

.modal-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   一時停止画面
   -------------------------------------------------------------------------- */
.pause-sheet {
  max-width: 390px;
  text-align: center;
  overflow: hidden;
}

.sheet-top-bar {
  background: var(--pink);
  color: #ffffff;
  border-bottom: 2.5px solid var(--ink);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 7px 14px;
}

.pause-body {
  padding: 22px 22px 24px;
}

.sheet-heading {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: clamp(1.28rem, 2.3vw, 1.62rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.25;
}

.sheet-sub {
  margin: 0 0 18px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.score-export-sheet {
  max-width: 540px;
  text-align: center;
  overflow: hidden;
}

.score-export-body {
  padding: 12px 18px 15px;
}

.score-export-preview-wrap {
  margin: 6px auto 10px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: #fff0f6;
  aspect-ratio: 1200 / 630;
  max-height: 210px;
}

.score-export-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.score-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 8px;
  max-width: 460px;
}

.score-url-label {
  font-size: 0.74rem;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}

.score-url-input {
  flex: 1;
  min-width: 0;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 0.76rem;
  font-weight: 700;
}

.score-url-input:focus {
  outline: 2.5px solid var(--pink);
  outline-offset: 1px;
}

.score-export-note {
  margin-bottom: 10px;
  font-size: 0.74rem;
}

.score-download-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   ゲームオーバー＆エンディング画面
   -------------------------------------------------------------------------- */
.ending-card {
  max-width: 780px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ending-ribbon {
  background: var(--ink);
  color: #ffffff;
  padding: 8px 18px;
  border-bottom: 2.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ending-caption {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.ending-card.is-good .ending-ribbon {
  background: #34d399;
  color: #164e3b;
}

.ending-card.is-true .ending-ribbon {
  background: linear-gradient(90deg, #ff85ae, #fde047, #6ee7b7, #7dd3fc);
  color: var(--ink);
}

.ending-card.is-bad .ending-ribbon {
  background: #6d5575;
  color: #fff5fb;
}

.ending-main {
  display: grid;
  grid-template-columns: 316px 1fr;
}

.ending-art-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #dff4ff 0%, #cfeafe 100%);
  border-right: 2.5px solid var(--ink);
  min-height: 237px;
  overflow: hidden;
}

.ending-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ending-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.ending-fallback.is-good {
  background: linear-gradient(135deg, #fde047, #34d399);
  color: #064e3b;
}

.ending-fallback.is-bad {
  background: linear-gradient(135deg, #6d28d9, #ec4899);
}

.ending-body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.ending-header {
  text-align: left;
}

.ending-msg {
  margin: 4px 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.48;
  color: var(--ink-muted);
}

.ending-conditions {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
}

.condition-line {
  padding-left: 10px;
  border-left: 3.5px solid var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan-deep);
  line-height: 1.4;
}

.condition-line.is-true-cond {
  border-left-color: var(--pink);
  color: var(--pink-deep);
}

/* 4項目を1本の統合スコア表として表示 */
.result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--paper-pink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
}

.result-cell {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-right: 1.5px dashed rgba(74, 51, 77, 0.2);
}

.result-cell:last-child {
  border-right: none;
}

.result-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-muted);
  white-space: nowrap;
}

.result-value {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}

.ending-actions {
  justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   モバイル縦画面対応（すべてを1つのゲーム枠内に綺麗に配置）
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .app-shell {
    padding: 6px;
  }

  .canvas-frame {
    aspect-ratio: auto;
    max-width: 100%;
    height: 100%;
    max-height: calc(100dvh - 12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, #fff0f6 0%, #eef8ff 100%);
    border-radius: 18px;
    box-shadow: 0 6px 0 #f7b8d0;
  }

  .ingame-hud {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 8px 8px 6px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .hud-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat-item {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 4px 4px;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .stat-value {
    font-size: 0.88rem;
  }

  .hud-actions {
    width: 100%;
    justify-content: flex-end;
  }

  #game-canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
  }

  .fever-banner {
    top: 104px;
  }

  .ingame-controls {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 10px 10px 12px;
    align-items: center;
  }

  .ctrl-hint {
    display: none;
  }

  .move-btn {
    min-width: 72px;
    height: 54px;
  }

  .jump-btn {
    min-width: 120px;
    height: 54px;
  }

  .overlay-screen {
    padding: 10px;
  }

  .start-sheet {
    grid-template-columns: 1fr;
  }

  .start-hero {
    border-right: none;
    border-bottom: 2.5px dashed rgba(74, 51, 77, 0.25);
    padding: 14px;
    gap: 10px;
  }

  .hero-preview {
    width: 60px;
    height: 60px;
  }

  .game-logo {
    font-size: clamp(1.32rem, 5.2vw, 1.65rem);
  }

  .roster-list {
    padding: 2px 12px 6px;
  }

  .ending-main {
    grid-template-columns: 1fr;
  }

  .ending-art-wrap {
    border-right: none;
    border-bottom: 2.5px solid var(--ink);
    min-height: 150px;
    max-height: 195px;
  }

  .ending-body {
    padding: 12px 14px 14px;
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-cell:nth-child(2n) {
    border-right: none;
  }

  .result-cell:nth-child(-n + 2) {
    border-bottom: 1.5px dashed rgba(74, 51, 77, 0.2);
  }

  .ending-actions {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
