:root {
  --bg-deep: #0b0f2d;
  --glass-bg: rgba(18, 28, 70, 0.72);
  --glass-border: rgba(114, 232, 255, 0.45);
  --peach-top: #ffd29d;
  --peach-mid: #ffae6e;
  --peach-bottom: #e88446;
  --cyan-glow: #6bf3ff;
  --mint-pill: #7ef7e6;
  --text-main: #f6f9ff;
  --text-dark: #3b1e0a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Fredoka', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

#planet-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}

.hidden {
  display: none !important;
}

/* ==================== Stage 0: Preloader ==================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(26, 34, 88, 0.88), rgba(9, 13, 40, 0.96));
  backdrop-filter: blur(8px);
  transition: opacity 0.7s ease-out, visibility 0.7s ease-out;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  width: min(90vw, 480px);
  text-align: center;
}

.preloader-title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff3d6;
  text-shadow: 0 0 22px rgba(255, 206, 130, 0.55);
  margin-bottom: 6px;
}

.preloader-bar-wrap {
  position: relative;
  width: 100%;
}

#preloader-robot-canvas {
  display: block;
  width: 100%;
  height: 82px;
  margin-bottom: -10px;
}

.preloader-track {
  width: 100%;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 24, 66, 0.85);
  border: 2.5px solid rgba(114, 232, 255, 0.7);
  box-shadow: 0 0 22px rgba(107, 243, 255, 0.35), inset 0 2px 6px rgba(0, 0, 0, 0.45);
  padding: 3px;
  overflow: hidden;
}

.preloader-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9d76 0%, #ffd28c 50%, #6cf6ff 100%);
  box-shadow: 0 0 14px rgba(108, 246, 255, 0.6);
  transition: width 0.08s linear;
}

.preloader-text {
  margin-top: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e4f3ff;
  letter-spacing: 0.04em;
}

/* ==================== Topbar ==================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  pointer-events: none;
}

.brand,
.topbar-actions {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2b3a78, #192452);
  border: 2px solid rgba(114, 232, 255, 0.5);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.brand h1 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.icon-circle,
.icon-pill {
  height: 40px;
  border-radius: 999px;
  border: 2px solid rgba(130, 224, 255, 0.4);
  background: rgba(20, 31, 78, 0.72);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, background 0.15s ease;
}

.icon-circle {
  width: 40px;
  display: grid;
  place-items: center;
}

.icon-circle.small {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
}

.icon-pill {
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-circle:hover,
.icon-pill:hover {
  transform: translateY(-2px);
  background: rgba(34, 52, 118, 0.85);
}

/* ==================== Shared Glass Panel ==================== */
.glass-panel {
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 42px rgba(6, 10, 34, 0.55), 0 0 24px rgba(96, 224, 255, 0.18);
}

/* ==================== Stage 1: Home & Settings ==================== */
.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.screen > * {
  pointer-events: auto;
}

.screen-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px clamp(42px, 9vh, 92px);
}

/* ==================== Augen-inspired Floating Top Pill Bar ==================== */
.augen-nav-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 35;
}

.augen-pill-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(18, 28, 70, 0.72);
  border: 1.5px solid rgba(145, 224, 255, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(6, 10, 34, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.augen-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #e6f2ff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}

.augen-pill-item:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

.augen-pill-item.active {
  background: rgba(114, 232, 255, 0.22);
  color: #ffffff;
  box-shadow: inset 0 0 0 1.5px rgba(114, 232, 255, 0.55);
}

.augen-pill-item.mode-pill {
  background: linear-gradient(135deg, rgba(62, 196, 232, 0.28), rgba(45, 130, 214, 0.28));
  border: 1px solid rgba(130, 235, 255, 0.4);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pill-dot.wood {
  background: #ffb870;
  box-shadow: 0 0 8px rgba(255, 184, 112, 0.8);
}

.pill-dot.cyan {
  background: #6cf4ff;
  box-shadow: 0 0 8px rgba(108, 244, 255, 0.8);
}

.pill-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 800;
  color: #bdefff;
}

.pill-caret {
  font-size: 0.78rem;
  opacity: 0.75;
}

.augen-sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(126, 247, 230, 0.45);
  background: rgba(14, 25, 62, 0.68);
  color: #9ffbf0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.18s ease;
}

.augen-sub-pill:hover {
  background: rgba(22, 40, 92, 0.84);
  transform: translateY(-1px);
}

.augen-sub-pill.error {
  border-color: rgba(255, 130, 130, 0.75);
  background: rgba(96, 20, 32, 0.75);
  color: #ffd0d0;
}

.sub-pill-arrow {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.72rem;
}

.augen-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 560px);
  padding: 18px 20px 20px;
  animation: popDrop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.augen-popover.compact {
  width: min(92vw, 440px);
}

@keyframes popDrop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.popover-head h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #f0f8ff;
}

.popover-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #e6f2ff;
  font-size: 0.85rem;
  cursor: pointer;
}

.popover-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.preset-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.preset-card-btn {
  text-align: left;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(130, 224, 255, 0.32);
  background: rgba(12, 20, 54, 0.6);
  color: #f4f9ff;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}

.preset-card-btn:hover {
  border-color: #ffd094;
  background: rgba(26, 40, 96, 0.78);
  transform: translateY(-2px);
}

.preset-card-btn strong {
  display: block;
  font-size: 0.96rem;
  color: #ffd6a0;
  margin-bottom: 3px;
}

.preset-card-btn span {
  font-size: 0.78rem;
  color: #b7d6f5;
}

.panel-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.panel-header-row h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: #eaf6ff;
}

.sub-hint {
  font-size: 0.85rem;
  font-weight: 600;
  color: #9ed8f5;
}

.turns-header {
  margin-top: 18px;
}

.preset-group,
.mode-switch {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-chip,
.mode-btn {
  border: 1.5px solid rgba(130, 224, 255, 0.35);
  background: rgba(13, 21, 56, 0.65);
  color: #cdeaff;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.16s ease;
}

.preset-chip:hover,
.mode-btn:hover {
  border-color: #7ef7ff;
  color: #ffffff;
}

.mode-btn.active {
  background: linear-gradient(135deg, #3ec4e8, #2d82d6);
  border-color: #9bf6ff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(96, 232, 255, 0.45);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.board-card {
  background: rgba(12, 20, 54, 0.56);
  border: 1.5px solid rgba(255, 205, 145, 0.25);
  border-radius: 18px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.plank-visual {
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffd499 0%, #eb9f56 60%, #c97734 100%);
  border: 2px solid #6b3d1d;
  box-shadow: 0 3px 0 #593014;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}

.plank-short { width: 48px; }
.plank-mid { width: 76px; }
.plank-long { width: 108px; }

.rivet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e6eef7;
  border: 1px solid #594b56;
}

.board-meta {
  text-align: center;
  line-height: 1.2;
}

.board-meta strong {
  display: block;
  font-size: 0.98rem;
}

.board-meta span {
  font-size: 0.8rem;
  color: #b7d5f0;
}

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

.step-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #ffd099, #f29b57);
  color: var(--text-dark);
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 0 #9c5321;
  transition: transform 0.1s ease;
  display: grid;
  place-items: center;
}

.step-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #9c5321;
}

.step-btn.cyan {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #98f7ff, #42cde8);
  color: #092c3d;
  box-shadow: 0 2px 0 #1b7891;
}

.step-val {
  min-width: 22px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 900;
}

.turn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.turn-pill {
  background: rgba(54, 188, 219, 0.2);
  border: 2px solid rgba(114, 240, 255, 0.65);
  border-radius: 999px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.turn-angle {
  font-weight: 900;
  font-size: 0.96rem;
  color: #b8fbff;
}

.status-badge {
  margin: 18px auto -40px;
  width: fit-content;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #86f9e8, #6de6ff);
  color: #07293a;
  font-weight: 900;
  font-size: 0.96rem;
  box-shadow: 0 0 20px rgba(118, 248, 232, 0.55);
  transition: all 0.2s ease;
}

.status-badge.error {
  background: linear-gradient(90deg, #ff9982, #ff7070);
  color: #3d0909;
  box-shadow: 0 0 18px rgba(255, 118, 118, 0.55);
}

.cta-wrap {
  margin-top: 26px;
}

.btn-primary-cta {
  padding: 15px 52px;
  border-radius: 999px;
  border: 2px solid #ffe4bd;
  background: linear-gradient(180deg, var(--peach-top) 0%, var(--peach-mid) 55%, var(--peach-bottom) 100%);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 6px 0 #9c4d1b, 0 12px 26px rgba(255, 160, 88, 0.45);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.btn-primary-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-primary-cta:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #9c4d1b;
}

.btn-primary-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.btn-primary-cta.full {
  width: 100%;
  padding: 13px 20px;
  font-size: 1.2rem;
}

/* ==================== Stage 2: Marble Race ==================== */
.screen-marble {
  background: transparent;
}

#marble-canvas {
  width: 100vw;
  height: 100vh;
  display: block;
}

.hud-top-pill {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 24px);
  padding: 9px 20px;
  border-radius: 999px;
  background: rgba(16, 24, 64, 0.82);
  border: 2px solid rgba(114, 232, 255, 0.55);
  font-weight: 800;
  font-size: clamp(0.78rem, 2.5vw, 0.96rem);
  color: #f3fbff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ==================== Stage 3: Falling Planks HUD ==================== */
.drop-hud {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 420px);
  padding: 16px 22px;
  border-radius: 22px;
  background: rgba(18, 28, 70, 0.78);
  border: 2px solid rgba(114, 232, 255, 0.5);
  backdrop-filter: blur(12px);
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.drop-hud-title {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.drop-progress-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(10, 16, 46, 0.85);
  border: 1.5px solid rgba(114, 232, 255, 0.6);
  overflow: hidden;
  padding: 2px;
}

.drop-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9d6c, #6ef2ff);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.drop-steps-icons {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mini-plank {
  width: 38px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.25s ease;
}

.mini-plank.lit {
  background: linear-gradient(180deg, #ffd194, #e69349);
  border-color: #fff0d0;
  color: #3d1e07;
  box-shadow: 0 0 12px rgba(255, 195, 118, 0.75);
  transform: scale(1.08);
}

.mini-arrow {
  color: #7eeeff;
  font-weight: 800;
}

.btn-skip {
  position: fixed;
  right: 26px;
  bottom: 26px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(145, 224, 255, 0.5);
  background: rgba(18, 28, 70, 0.75);
  color: #e6f6ff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.16s ease;
}

.btn-skip:hover {
  background: rgba(38, 56, 122, 0.9);
  transform: translateY(-2px);
}

/* ==================== Stage 4: Result & Overview ==================== */
.screen-result {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 76px 5vw 28px;
  gap: 24px;
}

.flat-view-card {
  flex: 1;
  max-width: 640px;
  height: min(72vh, 520px);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  margin-right: auto;
}

.flat-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 800;
}

.flat-view-hint {
  font-size: 0.82rem;
  color: #9be8ff;
}

.flat-svg-container {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 15, 42, 0.65);
  border-radius: 16px;
  padding: 10px;
}

.flat-svg-container svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.result-card {
  width: min(92vw, 410px);
  padding: 24px 24px 20px;
  border-color: rgba(255, 206, 148, 0.55);
  animation: slideInCard 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideInCard {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 20px;
}

.result-title {
  font-size: 1.45rem;
  font-weight: 900;
}

.map-id-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(130, 170, 255, 0.2);
  border: 1.5px solid rgba(160, 206, 255, 0.45);
  font-size: 0.85rem;
  font-weight: 800;
  color: #d6ecff;
}

.result-section {
  margin-bottom: 18px;
}

.result-section h3 {
  font-size: 0.92rem;
  color: #b7d7f5;
  margin-bottom: 10px;
}

.pill-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.wood-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd194, #d9873d);
  border: 1.5px solid #6b3c1b;
  color: #3d1d06;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 3px 0 #663818;
}

.cyan-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 152, 196, 0.25);
  border: 2px solid #6cf2ff;
  color: #d4fcff;
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: 0 0 10px rgba(108, 242, 255, 0.3);
}

.flow-arrow {
  color: #8cc2e8;
  font-weight: 900;
}

.result-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-secondary {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(145, 215, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #eef7ff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: rgba(114, 232, 255, 0.22);
}

.btn-secondary.active {
  background: rgba(114, 232, 255, 0.3);
  border-color: #8af7ff;
}

.btn-text-link {
  margin-top: 2px;
  background: none;
  border: none;
  color: #9ec8ff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ==================== History Modal ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 10, 32, 0.65);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  width: min(92vw, 480px);
  max-height: 75vh;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 18, 52, 0.65);
  border: 1.5px solid rgba(114, 232, 255, 0.3);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.history-item:hover {
  border-color: #ffd094;
}

.history-item strong {
  color: #ffd396;
}

.history-item p {
  font-size: 0.85rem;
  color: #cbe2ff;
  margin-top: 4px;
}

/* ==================== Responsive Mobile ==================== */
@media (max-width: 920px) {
  .screen-home {
    padding: 66px 12px 36px;
  }

  .augen-pill-bar {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 22px;
    max-width: 94vw;
  }

  .augen-pill-item {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .board-grid,
  .turn-grid,
  .preset-card-grid {
    grid-template-columns: 1fr;
  }

  .board-card {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 14px;
  }

  .plank-visual {
    display: none;
  }

  .screen-result {
    flex-direction: column;
    justify-content: flex-start;
    padding: 72px 14px 20px;
    overflow-y: auto;
  }

  .result-card {
    width: 100%;
    padding: 18px;
    margin-top: auto;
  }

  .flat-view-card {
    width: 100%;
    min-height: 240px;
    height: 36vh;
    flex: 0 0 auto;
  }

  .btn-skip {
    right: 14px;
    bottom: 72px;
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
