/* ミニマル・グリーン UI（参照: 大きなリング + 太字 + 円形アクション） */

/* 本日の移動距離 0〜1（JS が --maas-travel-t を更新。約 28km で飽和） */
body.game-theme.user-shell {
  --maas-travel-t: 0;
  background: var(--gt-bg, #e8f5ef);
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
}

body.game-theme .user-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  animation: none;
  background:
    radial-gradient(
      circle at calc(72% + var(--maas-travel-t) * 10%) calc(8% + var(--maas-travel-t) * 6%),
      rgba(34, 197, 94, calc(0.1 + var(--maas-travel-t) * 0.2)),
      transparent calc(38% - var(--maas-travel-t) * 8%)
    ),
    radial-gradient(
      circle at calc(14% - var(--maas-travel-t) * 8%) calc(88% - var(--maas-travel-t) * 5%),
      rgba(16, 185, 129, calc(0.06 + var(--maas-travel-t) * 0.14)),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      hsl(142, calc(38% + var(--maas-travel-t) * 18%), calc(97% - var(--maas-travel-t) * 3%)) 0%,
      hsl(152, calc(36% + var(--maas-travel-t) * 12%), calc(91% - var(--maas-travel-t) * 4%)) 55%,
      hsl(160, calc(32% + var(--maas-travel-t) * 10%), calc(88% - var(--maas-travel-t) * 5%)) 100%
    );
  transition: background 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 参照画像風: ぼかしを重ねたグロー（緑系） */
body.game-theme .travel-glow {
  position: absolute;
  left: 50%;
  top: calc(36% + var(--maas-travel-t) * 6%);
  border-radius: 50%;
  transform: translate(
    calc(-50% + var(--maas-travel-t) * 6vw),
    calc(-50% + var(--maas-travel-t) * -2vh)
  );
  pointer-events: none;
  will-change: transform, filter, opacity, width, height;
  transition:
    transform 1.1s cubic-bezier(0.4, 0, 0.2, 1),
    filter 1.1s ease,
    opacity 1s ease,
    width 1.1s ease,
    height 1.1s ease;
}

body.game-theme .travel-glow--outer {
  width: calc(200px + var(--maas-travel-t) * 220px);
  height: calc(220px + var(--maas-travel-t) * 240px);
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, calc(0.35 + var(--maas-travel-t) * 0.35)) 0%,
    rgba(21, 128, 61, calc(0.15 + var(--maas-travel-t) * 0.2)) 42%,
    transparent 68%
  );
  filter: blur(calc(56px - var(--maas-travel-t) * 22px));
  opacity: calc(0.12 + var(--maas-travel-t) * 0.38);
  animation: travelGlowDrift 14s ease-in-out infinite;
  animation-duration: calc(14s - var(--maas-travel-t) * 5s);
}

body.game-theme .travel-glow--mid {
  width: calc(120px + var(--maas-travel-t) * 160px);
  height: calc(130px + var(--maas-travel-t) * 170px);
  background: radial-gradient(
    circle,
    rgba(190, 242, 100, calc(0.45 + var(--maas-travel-t) * 0.35)) 0%,
    rgba(74, 222, 128, calc(0.25 + var(--maas-travel-t) * 0.25)) 38%,
    transparent 62%
  );
  filter: blur(calc(36px - var(--maas-travel-t) * 14px));
  opacity: calc(0.18 + var(--maas-travel-t) * 0.42);
  animation: travelGlowPulse 7s ease-in-out infinite;
  animation-duration: calc(7s - var(--maas-travel-t) * 3s);
}

body.game-theme .travel-glow--core {
  width: calc(56px + var(--maas-travel-t) * 110px);
  height: calc(60px + var(--maas-travel-t) * 115px);
  background: radial-gradient(
    circle,
    #ecfccb 0%,
    rgba(163, 230, 53, calc(0.55 + var(--maas-travel-t) * 0.35)) 35%,
    rgba(34, 197, 94, calc(0.2 + var(--maas-travel-t) * 0.3)) 55%,
    transparent 72%
  );
  filter: blur(calc(22px - var(--maas-travel-t) * 10px));
  opacity: calc(0.22 + var(--maas-travel-t) * 0.48);
  animation: travelGlowPulse 5s ease-in-out infinite reverse;
  animation-duration: calc(5s - var(--maas-travel-t) * 2s);
}

body.game-theme:has(.ergo-app--recording) .travel-glow--outer {
  opacity: calc(0.18 + var(--maas-travel-t) * 0.42);
  filter: blur(calc(48px - var(--maas-travel-t) * 20px));
}

body.game-theme:has(.ergo-app--recording) .travel-glow--mid {
  opacity: calc(0.28 + var(--maas-travel-t) * 0.45);
}

body.game-theme:has(.ergo-app--recording) .travel-glow--core {
  opacity: calc(0.35 + var(--maas-travel-t) * 0.5);
}

@keyframes travelGlowPulse {
  0%,
  100% {
    transform: translate(calc(-50% + var(--maas-travel-t) * 6vw), calc(-50% + var(--maas-travel-t) * -2vh)) scale(1);
    opacity: calc(0.2 + var(--maas-travel-t) * 0.35);
  }
  50% {
    transform: translate(calc(-50% + var(--maas-travel-t) * 6vw), calc(-50% + var(--maas-travel-t) * -2vh)) scale(calc(1.05 + var(--maas-travel-t) * 0.08));
    opacity: calc(0.32 + var(--maas-travel-t) * 0.48);
  }
}

@keyframes travelGlowDrift {
  0%,
  100% {
    transform: translate(calc(-50% + var(--maas-travel-t) * 6vw), calc(-50% + var(--maas-travel-t) * -2vh)) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(calc(-48% + var(--maas-travel-t) * 6vw), calc(-52% + var(--maas-travel-t) * -2vh)) scale(calc(1.03 + var(--maas-travel-t) * 0.05)) rotate(2deg);
  }
  66% {
    transform: translate(calc(-52% + var(--maas-travel-t) * 6vw), calc(-48% + var(--maas-travel-t) * -2vh)) scale(calc(0.98 + var(--maas-travel-t) * 0.04)) rotate(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.game-theme .travel-glow {
    animation: none !important;
    transition: none;
  }

  body.game-theme .user-bg {
    transition: none;
  }
}

body.game-theme .game-skip.ergo-skip-link {
  background: #166534;
  color: #f0fdf4;
}

body.game-theme .ergo-app.minimal-app {
  color: #14532d;
  --ergo-text: #14532d;
  --ergo-text-secondary: rgba(20, 83, 45, 0.55);
  --ergo-border: rgba(20, 83, 45, 0.12);
  --ergo-primary: #15803d;
  --ergo-primary-hover: #166534;
  --ergo-danger: #b91c1c;
  --ergo-surface: rgba(255, 255, 255, 0.75);
  gap: 0;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
}

/* --- ヘッダー --- */
body.game-theme .minimal-header {
  padding-bottom: 8px;
}

body.game-theme .ergo-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.game-theme .ergo-header-brand {
  min-width: 0;
  flex: 1;
}

body.game-theme .minimal-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0.95;
  font-size: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #052e16;
}

body.game-theme .minimal-title-line {
  display: block;
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 800;
}

body.game-theme .minimal-kicker {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(20, 83, 45, 0.45);
}

body.game-theme .ergo-login-corner {
  position: relative;
  flex-shrink: 0;
  margin-top: 4px;
  margin-right: max(0px, env(safe-area-inset-right, 0px));
}

body.game-theme .ergo-btn--login-corner.ergo-btn--google {
  width: auto;
  max-width: none;
  justify-content: center;
  padding: 8px 12px;
  gap: 6px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8125rem;
  background: transparent;
  border: 2px solid rgba(20, 83, 45, 0.2);
  color: #14532d;
  box-shadow: none;
}

body.game-theme .ergo-btn--login-corner .ergo-btn-google-text {
  font-size: 0.8125rem;
}

body.game-theme .ergo-login-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(calc(100vw - 36px), 300px);
  margin: 0;
  padding: 14px;
  box-sizing: border-box;
  border-radius: 16px;
  background: #fff;
  border: none;
  box-shadow: 0 16px 48px rgba(15, 60, 30, 0.12);
  z-index: 40;
}

body.game-theme .ergo-login-popover .ergo-label {
  color: #14532d;
}

body.game-theme .ergo-login-popover .ergo-input {
  background: #f8faf8;
  border-color: rgba(20, 83, 45, 0.15);
  color: #052e16;
}

body.game-theme .ergo-login-popover .ergo-btn--secondary {
  background: #ecfdf5;
  border-color: rgba(20, 83, 45, 0.12);
  color: #14532d;
}

body.game-theme .minimal-gsi-mount {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

body.game-theme .minimal-login-divider {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(20, 83, 45, 0.45);
}

/* --- ヒーロー・抽象ビジュアル（アイコン化しない有機形） --- */
body.game-theme .minimal-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 20px;
}

body.game-theme .minimal-ring-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  margin: 0 auto;
}

body.game-theme .minimal-abstract {
  position: relative;
  width: min(78vw, 280px);
  height: min(78vw, 280px);
  isolation: isolate;
  /* 全体を外周へ向かって背景色へ溶かす */
  -webkit-mask-image: radial-gradient(
    circle at 50% 46%,
    #000 0%,
    #000 min(42%, 9rem),
    rgba(0, 0, 0, 0.45) min(62%, 13rem),
    transparent min(88%, 18rem)
  );
  mask-image: radial-gradient(
    circle at 50% 46%,
    #000 0%,
    #000 min(42%, 9rem),
    rgba(0, 0, 0, 0.45) min(62%, 13rem),
    transparent min(88%, 18rem)
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

body.game-theme .minimal-abstract-blob {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 78%;
  height: 74%;
  opacity: 0.82;
  filter: blur(10px);
  mix-blend-mode: multiply;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  /* 各ブロブの矩形端を隠し、中心→外側で透明へ */
  -webkit-mask-image: radial-gradient(
    ellipse 72% 76% at 48% 46%,
    #000 0%,
    #000 28%,
    rgba(0, 0, 0, 0.55) 52%,
    rgba(0, 0, 0, 0.12) 74%,
    transparent 92%
  );
  mask-image: radial-gradient(
    ellipse 72% 76% at 48% 46%,
    #000 0%,
    #000 28%,
    rgba(0, 0, 0, 0.55) 52%,
    rgba(0, 0, 0, 0.12) 74%,
    transparent 92%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

body.game-theme .minimal-abstract-blob--a {
  background: radial-gradient(
    ellipse 88% 82% at 42% 44%,
    rgba(6, 78, 59, 0.52) 0%,
    rgba(6, 78, 59, 0.22) 32%,
    rgba(6, 78, 59, 0.08) 55%,
    rgba(6, 78, 59, 0.02) 72%,
    transparent 88%
  );
  animation: abstractBlobA 14s ease-in-out infinite;
}

body.game-theme .minimal-abstract-blob--b {
  width: 68%;
  height: 80%;
  background: conic-gradient(
    from 200deg at 50% 50%,
    rgba(21, 128, 61, 0.38),
    rgba(134, 239, 172, 0.22),
    rgba(5, 46, 22, 0.32),
    rgba(74, 222, 128, 0.18),
    rgba(21, 128, 61, 0.38)
  );
  opacity: 0.68;
  filter: blur(14px);
  animation: abstractBlobB 11s ease-in-out infinite;
  animation-delay: -2s;
  -webkit-mask-image: radial-gradient(
    ellipse 68% 74% at 50% 50%,
    #000 0%,
    #000 22%,
    rgba(0, 0, 0, 0.5) 48%,
    rgba(0, 0, 0, 0.08) 76%,
    transparent 94%
  );
  mask-image: radial-gradient(
    ellipse 68% 74% at 50% 50%,
    #000 0%,
    #000 22%,
    rgba(0, 0, 0, 0.5) 48%,
    rgba(0, 0, 0, 0.08) 76%,
    transparent 94%
  );
}

body.game-theme .minimal-abstract-blob--c {
  width: 58%;
  height: 58%;
  background: radial-gradient(
    circle at 36% 34%,
    rgba(190, 242, 100, 0.42) 0%,
    rgba(134, 239, 172, 0.2) 28%,
    rgba(34, 197, 94, 0.1) 48%,
    rgba(34, 197, 94, 0.03) 68%,
    transparent 86%
  );
  opacity: 0.62;
  filter: blur(12px);
  mix-blend-mode: soft-light;
  animation: abstractBlobC 9.5s ease-in-out infinite;
  animation-delay: -3.5s;
}

body.game-theme .minimal-abstract-veil {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  /* 不透明な縁をやめ、全体をミント背景へフェード */
  background: radial-gradient(
    circle at 50% 44%,
    transparent 18%,
    rgba(240, 253, 244, 0.14) 42%,
    rgba(240, 253, 244, 0.06) 62%,
    rgba(232, 245, 239, 0.02) 82%,
    transparent 100%
  );
  pointer-events: none;
  animation: abstractVeilPulse 8s ease-in-out infinite;
}

body.game-theme .ergo-app--recording .minimal-abstract-blob--a {
  opacity: 0.95;
  mix-blend-mode: soft-light;
  animation-duration: 6.5s;
}

body.game-theme .ergo-app--recording .minimal-abstract-blob--b {
  opacity: 0.88;
  animation-duration: 5.2s;
}

body.game-theme .ergo-app--recording .minimal-abstract-blob--c {
  opacity: 0.82;
  animation-duration: 4.5s;
}

body.game-theme .ergo-app--recording .minimal-abstract-veil {
  background: radial-gradient(
    circle at 48% 42%,
    transparent 14%,
    rgba(220, 252, 231, 0.22) 38%,
    rgba(187, 247, 208, 0.1) 58%,
    rgba(187, 247, 208, 0.03) 78%,
    transparent 100%
  );
  animation-duration: 3.2s;
}

@keyframes abstractBlobA {
  0%,
  100% {
    border-radius: 58% 42% 52% 48% / 48% 55% 45% 52%;
    transform: translate(-6%, -4%) rotate(-8deg) scale(1);
  }
  50% {
    border-radius: 44% 56% 63% 37% / 52% 44% 56% 48%;
    transform: translate(-1%, -9%) rotate(-3deg) scale(1.05);
  }
}

@keyframes abstractBlobB {
  0%,
  100% {
    border-radius: 45% 55% 48% 52% / 58% 42% 55% 45%;
    transform: translate(10%, 6%) rotate(22deg) scale(1);
  }
  50% {
    border-radius: 62% 38% 41% 59% / 43% 58% 42% 57%;
    transform: translate(3%, 1%) rotate(16deg) scale(1.07);
  }
}

@keyframes abstractBlobC {
  0%,
  100% {
    border-radius: 52% 48% 61% 39% / 44% 52% 48% 56%;
    transform: translate(0, -12%) rotate(6deg) scale(1);
  }
  50% {
    border-radius: 38% 62% 54% 46% / 58% 38% 62% 40%;
    transform: translate(-6%, -5%) rotate(11deg) scale(1.09);
  }
}

@keyframes abstractVeilPulse {
  0%,
  100% {
    opacity: 0.92;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* --- 距離・状態 --- */
body.game-theme .minimal-hud {
  width: 100%;
  max-width: 320px;
  margin-top: 4px;
  padding: 0;
  background: none;
  border: none;
  align-items: stretch;
  gap: 8px;
}

body.game-theme .minimal-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.game-theme .minimal-hud-caption {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(20, 83, 45, 0.5);
  letter-spacing: 0.06em;
}

body.game-theme .minimal-status-pill {
  min-height: 32px;
  line-height: 32px;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: #14532d;
  border: 1px solid rgba(20, 83, 45, 0.1);
}

body.game-theme .minimal-status-pill.ergo-badge--recording {
  background: #dcfce7;
  color: #166534;
  border-color: rgba(34, 197, 94, 0.35);
}

body.game-theme .minimal-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  width: 100%;
  max-width: 360px;
  margin: 12px auto 0;
}

body.game-theme .minimal-stat-block {
  text-align: center;
  padding: 12px 8px 10px;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 16px;
  border: 1px solid rgba(20, 83, 45, 0.1);
}

body.game-theme .minimal-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(20, 83, 45, 0.52);
  margin-bottom: 8px;
}

body.game-theme .minimal-stat-value {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

body.game-theme .minimal-stat-value .game-score-num {
  font-size: clamp(1.7rem, 7.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #052e16;
  line-height: 1;
}

body.game-theme .minimal-stat-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.625rem;
  line-height: 1.4;
  color: rgba(20, 83, 45, 0.42);
}

body.game-theme .minimal-unit {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(20, 83, 45, 0.45);
}

body.game-theme .minimal-record-wrap {
  width: 100%;
  max-width: 360px;
  margin: 18px auto 4px;
}

body.game-theme .minimal-record-mega {
  width: 100% !important;
  max-width: none !important;
  min-height: 58px !important;
  padding: 20px 28px !important;
  border-radius: 22px !important;
  font-size: clamp(1.1rem, 4vw, 1.35rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  line-height: 1.2;
  background: #16a34a !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 10px 32px rgba(22, 163, 74, 0.38);
}

body.game-theme .minimal-record-mega:hover:not(:disabled) {
  filter: brightness(1.05);
}

body.game-theme .minimal-record-mega:active:not(:disabled) {
  transform: scale(0.985);
}

body.game-theme .minimal-record-mega:disabled {
  background: #166534 !important;
  opacity: 1 !important;
  cursor: default;
  box-shadow: 0 6px 20px rgba(22, 101, 52, 0.3);
}

body.game-theme .minimal-rec-bar {
  margin-top: 12px;
  height: 4px;
  border-radius: 999px;
  background: rgba(20, 83, 45, 0.08);
}

body.game-theme .minimal-rec-bar .game-rec-bar-fill {
  background: #22c55e;
  border-radius: 999px;
  transition: width 0.35s ease;
}

body.game-theme .ergo-app--recording .minimal-rec-bar .game-rec-bar-fill {
  width: 100%;
}

/* --- 名前 --- */
body.game-theme .minimal-profile {
  padding: 8px 0 24px;
}

body.game-theme .minimal-name-field {
  gap: 0;
}

body.game-theme .minimal-name-row {
  gap: 10px;
}

body.game-theme .minimal-input-plain {
  border-radius: 999px;
  border-width: 2px;
  border-color: rgba(20, 83, 45, 0.12);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

body.game-theme .minimal-input-plain:focus {
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

body.game-theme .minimal-save-btn {
  border-radius: 999px;
  padding-left: 20px;
  padding-right: 20px;
  background: #fff;
  border: 2px solid rgba(20, 83, 45, 0.15);
  color: #14532d;
  font-weight: 700;
}

/* --- 下部ドック（円形 + ⋯） --- */
body.game-theme .minimal-dock {
  position: relative;
  margin-top: auto;
  padding-top: 8px;
}

body.game-theme .minimal-dock-inner {
  position: relative;
  z-index: 2;
}

body.game-theme .minimal-dock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.game-theme .minimal-dock-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

body.game-theme .minimal-fab {
  width: 72px;
  height: 72px;
  min-height: 72px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.15;
  flex-shrink: 0;
  border-width: 0;
  box-shadow: none;
}

body.game-theme .minimal-fab--stop {
  width: 64px;
  height: 64px;
  min-height: 64px;
  font-size: 0.75rem;
  font-weight: 800;
  background: #fff !important;
  color: #b91c1c !important;
  border: 3px solid #052e16 !important;
}

body.game-theme .minimal-fab--stop-wide:not(:disabled) {
  width: auto !important;
  min-width: 148px;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 26px !important;
  border-radius: 999px !important;
  font-size: 0.9rem !important;
}

body.game-theme .minimal-fab--stop:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 0;
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  overflow: hidden;
}

body.game-theme .minimal-fab--stop:not(:disabled) {
  visibility: visible;
}

body.game-theme .minimal-details {
  margin: 0;
  padding: 0;
  border: none;
  flex-shrink: 0;
}

body.game-theme .minimal-details-trigger {
  list-style: none;
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #052e16;
  color: #f0fdf4;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  border: none;
}

body.game-theme .minimal-details-trigger::-webkit-details-marker {
  display: none;
}

body.game-theme .minimal-details-trigger::after {
  display: none;
}

body.game-theme .minimal-details[open] .minimal-details-trigger {
  background: #166534;
}

body.game-theme .minimal-dots {
  transform: translateY(-2px);
  letter-spacing: 0.02em;
}

body.game-theme .minimal-details-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  margin-top: 0;
  padding: 20px 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 60, 30, 0.08);
  z-index: 30;
}

body.game-theme .minimal-inline-action {
  margin: 0 0 16px;
}

body.game-theme .minimal-text-btn {
  width: auto;
  min-height: 44px;
  padding: 8px 0;
  color: #166534 !important;
  font-weight: 700;
  text-decoration: none !important;
}

body.game-theme .minimal-footnote {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(20, 83, 45, 0.45);
}

/* details 内のタイポ（明るい面） */
body.game-theme .minimal-details-panel .ergo-dl-row dt {
  color: rgba(20, 83, 45, 0.5);
}

body.game-theme .minimal-details-panel .ergo-dl-row dd {
  color: #14532d;
}

body.game-theme .minimal-details-panel .ergo-subsection-title {
  color: #14532d;
}

body.game-theme .minimal-details-panel .ergo-subsection {
  border-top-color: rgba(20, 83, 45, 0.08);
}

body.game-theme .minimal-details-panel .ergo-trip-list li {
  border-bottom-color: rgba(20, 83, 45, 0.08);
  color: #166534;
}

body.game-theme .minimal-details-panel .ergo-btn--secondary {
  background: #ecfdf5;
  border-color: rgba(20, 83, 45, 0.12);
  color: #14532d;
}

body.game-theme .minimal-details-panel .ergo-btn--icon {
  background: #f0fdf4;
  border-color: rgba(20, 83, 45, 0.12);
  color: #14532d;
}

body.game-theme .minimal-details-panel .ergo-map-canvas {
  border: 1px solid rgba(20, 83, 45, 0.1);
  border-radius: 12px;
}

body.game-theme .ergo-btn:focus-visible {
  outline: 3px solid #22c55e;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  body.game-theme .minimal-abstract-blob,
  body.game-theme .minimal-abstract-veil,
  body.game-theme .minimal-rec-bar .game-rec-bar-fill {
    animation: none !important;
    transition: none;
  }
}
