:root {
  --bg-page: #faf3e6;
  --bg-card: #fffdf7;
  --bg-soft: #f5ebd9;
  --text-main: #4a3b32;
  --text-muted: #8a7566;
  --border-warm: #e4d3b8;
  --wood-dark: #7a5c43;
  --wood-mid: #a67f5d;
  --accent-amber: #e29547;
  --accent-amber-hover: #cf8234;
  --accent-teal: #57a4a8;
  --pond-top: #92d1cf;
  --pond-mid: #6cb8bb;
  --pond-deep: #4e969d;
  --shadow-soft: 0 10px 30px rgba(92, 69, 44, 0.12);
  --shadow-card: 0 4px 14px rgba(92, 69, 44, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, #fff9ee 0%, var(--bg-page) 65%, #f1e3cb 100%);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
  user-select: none;
}

.hidden {
  display: none !important;
}

/* Top Navigation / HUD */
.top-hud {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8d89c, #eaa965);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-card);
  border: 2px solid #fffdf7;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.brand-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hud-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hud-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid var(--border-warm);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.hud-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent-amber);
  background: #fff9ef;
}

.hud-btn:active {
  transform: translateY(0);
}

.hud-btn-debug {
  border-style: dashed;
  color: var(--wood-dark);
  background: #fbf3e4;
}

.unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e06356;
  box-shadow: 0 0 0 2px #fffdf7;
  display: inline-block;
}

/* Main Game Container */
.main-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 20px 32px;
}

/* Cozy 2D Pond Stage */
.pond-card {
  background: var(--bg-card);
  border: 2px solid var(--border-warm);
  border-radius: 26px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.pond-stage {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #d7939c 0%,
    #f1ad83 18%,
    #f9cf9b 34%,
    #fde6b8 40%,
    #639fb0 41.5%,
    #3d7e96 58%,
    #2a627d 80%,
    #1b4961 100%
  );
  border: 2px solid #dfd0b8;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Golden Hour Setting Sun & Ocean Reflection */
.ocean-sun-glow {
  position: absolute;
  top: 14%;
  right: 9%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 158, 0.72) 0%, rgba(252, 173, 108, 0.25) 55%, rgba(252, 173, 108, 0) 75%);
  pointer-events: none;
  animation: sunPulse 6s ease-in-out infinite;
}

.ocean-sun {
  position: absolute;
  top: 22.5%;
  right: 14.2%;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8dc 0%, #ffd584 62%, #f79d65 100%);
  box-shadow: 0 0 28px rgba(255, 198, 112, 0.75);
  pointer-events: none;
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Layered Fluffy Sunset Clouds */
.ocean-cloud {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff5e8 0%, #fbd6b6 100%);
  box-shadow: 0 4px 12px rgba(176, 102, 74, 0.16);
  pointer-events: none;
}

.ocean-cloud::before,
.ocean-cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud-1 {
  top: 10%;
  left: 8%;
  width: 118px;
  height: 30px;
  opacity: 0.9;
  animation: cloudDrift 34s ease-in-out infinite alternate;
}

.cloud-1::before {
  width: 48px;
  height: 48px;
  top: -22px;
  left: 16px;
}

.cloud-1::after {
  width: 36px;
  height: 36px;
  top: -15px;
  right: 18px;
}

.cloud-2 {
  top: 18%;
  left: 39%;
  width: 92px;
  height: 24px;
  opacity: 0.82;
  animation: cloudDrift 42s ease-in-out infinite alternate-reverse;
}

.cloud-2::before {
  width: 38px;
  height: 38px;
  top: -18px;
  left: 14px;
}

.cloud-2::after {
  width: 28px;
  height: 28px;
  top: -12px;
  right: 16px;
}

.cloud-3 {
  top: 7%;
  right: 22%;
  width: 104px;
  height: 26px;
  opacity: 0.86;
  animation: cloudDrift 38s ease-in-out infinite alternate;
}

.cloud-3::before {
  width: 42px;
  height: 42px;
  top: -19px;
  left: 18px;
}

.cloud-3::after {
  width: 32px;
  height: 32px;
  top: -14px;
  right: 15px;
}

@keyframes cloudDrift {
  0% { transform: translateX(-14px); }
  100% { transform: translateX(22px); }
}

/* Flying Seagulls */
.seagull-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.seagull {
  position: absolute;
  color: rgba(105, 67, 74, 0.72);
  pointer-events: none;
}

.gull-1 {
  top: 14%;
  left: 25%;
  width: 28px;
  animation: gullGlide 14s ease-in-out infinite;
}

.gull-2 {
  top: 11%;
  left: 31%;
  width: 20px;
  animation: gullGlide 14s ease-in-out 0.9s infinite;
}

.gull-3 {
  top: 22%;
  left: 56%;
  width: 22px;
  animation: gullGlide 18s ease-in-out 2.4s infinite reverse;
}

@keyframes gullGlide {
  0%, 100% { transform: translate(0, 0) scaleY(1); }
  25% { transform: translate(16px, -6px) scaleY(0.84); }
  50% { transform: translate(34px, 2px) scaleY(1); }
  75% { transform: translate(16px, 5px) scaleY(0.86); }
}

/* Pacific Horizon, Ocean Waves & Golden Sunlight Sparkles */
.ocean-horizon {
  position: absolute;
  top: 40.5%;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 224, 178, 0.35) 0%, rgba(255, 232, 184, 0.85) 75%, rgba(255, 210, 150, 0.4) 100%);
  pointer-events: none;
}

.sun-reflection-column {
  position: absolute;
  top: 41.5%;
  right: 11%;
  width: 120px;
  height: 56%;
  background: linear-gradient(180deg, rgba(255, 219, 138, 0.42) 0%, rgba(255, 198, 112, 0.16) 55%, rgba(255, 198, 112, 0) 100%);
  filter: blur(6px);
  pointer-events: none;
}

.ocean-wave {
  position: absolute;
  left: -8%;
  width: 116%;
  height: 18px;
  border-top: 2px solid rgba(255, 245, 224, 0.28);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.wave-1 {
  top: 49%;
  background: linear-gradient(180deg, rgba(255, 244, 214, 0.12) 0%, transparent 100%);
  animation: oceanWaveRoll 6.2s ease-in-out infinite;
}

.wave-2 {
  top: 63%;
  border-top-color: rgba(255, 245, 224, 0.24);
  background: linear-gradient(180deg, rgba(164, 222, 230, 0.1) 0%, transparent 100%);
  animation: oceanWaveRoll 7.4s ease-in-out 1.4s infinite reverse;
}

.wave-3 {
  top: 78%;
  border-top-color: rgba(255, 245, 224, 0.2);
  background: linear-gradient(180deg, rgba(164, 222, 230, 0.08) 0%, transparent 100%);
  animation: oceanWaveRoll 5.6s ease-in-out 0.8s infinite;
}

@keyframes oceanWaveRoll {
  0%, 100% { transform: translateX(-12px) translateY(0); }
  50% { transform: translateX(14px) translateY(3px); }
}

.sun-sparkle {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 236, 179, 0.85);
  box-shadow: 0 0 8px rgba(255, 217, 128, 0.75);
  pointer-events: none;
  animation: sparkleTwinkle 3.2s ease-in-out infinite;
}

.sp-1 { top: 44%; right: 16%; width: 34px; animation-delay: 0s; }
.sp-2 { top: 50%; right: 13%; width: 46px; animation-delay: 0.7s; }
.sp-3 { top: 57%; right: 18%; width: 28px; animation-delay: 1.4s; }
.sp-4 { top: 65%; right: 14%; width: 38px; animation-delay: 2.1s; }
.sp-5 { top: 54%; left: 20%; width: 24px; opacity: 0.55; animation-delay: 1.1s; }
.sp-6 { top: 71%; left: 28%; width: 30px; opacity: 0.5; animation-delay: 2.4s; }

@keyframes sparkleTwinkle {
  0%, 100% { transform: scaleX(0.75); opacity: 0.35; }
  50% { transform: scaleX(1.2); opacity: 0.95; }
}

/* Rocking Wooden Boat & Fishing Rod */
.wooden-boat-group {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 560px);
  height: 175px;
  pointer-events: none;
  transform-origin: center bottom;
  animation: boatOceanSwell 4.2s ease-in-out infinite;
}

@keyframes boatOceanSwell {
  0%, 100% { transform: translateX(-50%) translateY(0px) rotate(-0.9deg); }
  50% { transform: translateX(-50%) translateY(3px) rotate(0.9deg); }
}

.boat-water-foam {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 104%;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 250, 238, 0.58) 0%, rgba(255, 250, 238, 0) 74%);
}

.wooden-boat {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 112px;
  background: linear-gradient(180deg, #c38f5e 0%, #a06d42 48%, #774b2a 100%);
  border-top: 8px solid #deb080;
  border-left: 5px solid #8a5c36;
  border-right: 5px solid #8a5c36;
  border-radius: 64px 64px 18px 18px;
  box-shadow: 0 -6px 18px rgba(18, 44, 62, 0.38);
  overflow: hidden;
}

.boat-inner-planks {
  position: absolute;
  inset: 8px 18px 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(94, 58, 30, 0.24) 0 2px,
    transparent 2px 46px
  );
  border-top: 2px solid rgba(255, 224, 184, 0.32);
}

.boat-bench {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #cf9a67 0%, #ab7648 100%);
  border: 2px solid #84552f;
  box-shadow: 0 4px 8px rgba(58, 34, 16, 0.28);
}

.boat-bow-cap {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 54%;
  height: 12px;
  border-radius: 999px;
  background: #875933;
  border-top: 2px solid #c99463;
}

/* Dedicated deck overlay container for placing props/items on top of the boat */
.boat-deck-items {
  position: absolute;
  bottom: 72px;
  left: 36px;
  right: 36px;
  height: 76px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  pointer-events: none;
  z-index: 2;
}

.fishing-rod {
  position: absolute;
  bottom: 84px;
  left: calc(50% - 60px);
  width: 155px;
  height: 7px;
  background: linear-gradient(90deg, #5c3d25, #b88959);
  border-radius: 999px;
  transform: rotate(-30deg);
  transform-origin: left center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.24);
  pointer-events: none;
  z-index: 3;
}

.fishing-line {
  position: absolute;
  top: 52%;
  bottom: 161px;
  left: calc(50% + 74px);
  width: 2px;
  background: rgba(255, 249, 232, 0.78);
  pointer-events: none;
}

/* Bobber (Pacific Ocean Swell) */
.pond-bobber {
  position: absolute;
  top: 52%;
  left: calc(50% + 74px);
  transform: translate(-50%, -50%);
  width: 24px;
  height: 30px;
  pointer-events: none;
  animation: bobberFloat 2.8s ease-in-out infinite;
}

.bobber-top {
  width: 18px;
  height: 14px;
  margin: 0 auto;
  border-radius: 10px 10px 3px 3px;
  background: #e56b55;
  border: 2px solid #fffdf7;
}

.bobber-bottom {
  width: 18px;
  height: 11px;
  margin: -2px auto 0;
  border-radius: 3px 3px 10px 10px;
  background: #fffdf7;
  border: 2px solid #d9cbb8;
}

.bobber-ripple {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 48px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 246, 214, 0.75);
  transform: translateX(-50%);
  animation: ripplePulse 2.1s ease-out infinite;
}

.pond-bobber.biting {
  animation: bobberBite 0.25s ease-in-out infinite;
}

.pond-bobber.biting .bobber-ripple {
  border-color: #ffe8a3;
  animation: ripplePulse 0.65s ease-out infinite;
}

@keyframes bobberFloat {
  0%, 100% { transform: translate(-50%, -54%) rotate(-3deg); }
  50% { transform: translate(-50%, -40%) rotate(3deg); }
}

@keyframes bobberBite {
  0%, 100% { transform: translate(-50%, -36%); }
  50% { transform: translate(-50%, -24%); }
}

@keyframes ripplePulse {
  0% { transform: translateX(-50%) scale(0.6); opacity: 0.9; }
  100% { transform: translateX(-50%) scale(1.75); opacity: 0; }
}

/* Bite Exclamation */
.bite-indicator {
  position: absolute;
  top: 36%;
  left: calc(50% + 74px);
  transform: translateX(-50%);
  background: #fffdf7;
  color: #d65a47;
  border: 3px solid #f0b265;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(74, 59, 50, 0.2);
  animation: popBounce 0.45s ease-out infinite alternate;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes popBounce {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to { transform: translateX(-50%) translateY(-5px) scale(1.04); }
}

/* Genshin-Inspired Tension Bar Overlay */
.tension-box {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 520px);
  background: rgba(255, 253, 247, 0.95);
  border: 2px solid #dec6a0;
  border-radius: 18px;
  padding: 14px 18px 16px;
  box-shadow: 0 12px 28px rgba(74, 59, 50, 0.18);
  z-index: 10;
}

.tension-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.tension-hint {
  color: var(--wood-dark);
}

.tension-hint.in-zone {
  color: #4f8e64;
}

.tension-pct {
  color: var(--accent-amber);
  font-variant-numeric: tabular-nums;
}

.tension-track {
  position: relative;
  width: 100%;
  height: 28px;
  border-radius: 999px;
  background: #efe4d0;
  border: 2px solid #d5c09e;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(74, 59, 50, 0.12);
}

.tension-target-zone {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8d87a 0%, #eab24a 100%);
  border: 1.5px solid #d4942a;
  transition: box-shadow 0.1s ease, filter 0.1s ease;
}

.tension-target-zone.in-zone {
  box-shadow: 0 0 14px rgba(242, 184, 65, 0.85);
  filter: brightness(1.06);
}

.tension-cursor {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fffdf7;
  border: 2.5px solid #594639;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.tension-cursor.in-zone {
  border-color: #3d8756;
  background: #e9fff0;
}

.tension-progress-bar {
  margin-top: 10px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #efe4d0;
  overflow: hidden;
}

.tension-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #efad60, #6cb681);
  transition: width 0.05s linear;
}

.reel-hold-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  border: 2px solid #d89043;
  background: linear-gradient(180deg, #f3b56c, #e39649);
  color: #fffdf7;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 0 #be7630;
  touch-action: none;
}

.reel-hold-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #be7630;
}

/* Pond Bottom Action & Status */
.pond-controls {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pond-status-banner {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.4em;
  transition: color 0.2s ease;
}

.pond-status-banner.pity-banner-active {
  color: #b5651d;
  font-weight: 700;
}

.primary-cast-btn {
  padding: 13px 34px;
  border-radius: 999px;
  border: 2px solid #cf8438;
  background: linear-gradient(180deg, #f2af63 0%, var(--accent-amber) 100%);
  color: #fffdf7;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(214, 138, 60, 0.28);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.primary-cast-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.primary-cast-btn:active {
  transform: translateY(0);
}

.primary-cast-btn.reel-mode {
  min-width: min(92%, 420px);
  border-color: #c97c2c;
  background: linear-gradient(180deg, #f5b96b 0%, #df8d3a 100%);
  box-shadow: 0 5px 0 #b86c22, 0 8px 18px rgba(184, 108, 34, 0.25);
  touch-action: none;
}

.primary-cast-btn.reel-mode:hover {
  transform: none;
  filter: brightness(1.02);
}

.primary-cast-btn.reel-mode.is-holding,
.primary-cast-btn.reel-mode:active {
  transform: translateY(3px);
  border-color: #3f8a57;
  background: linear-gradient(180deg, #6dc186 0%, #4d9a65 100%);
  box-shadow: 0 2px 0 #39784c, 0 4px 12px rgba(61, 135, 86, 0.28);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(63, 49, 36, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-card {
  background: var(--bg-card);
  border: 2px solid var(--border-warm);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(61, 44, 28, 0.24);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1.5px solid var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.icon-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border-warm);
  background: var(--bg-soft);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-close-btn:hover {
  background: #ebd8bc;
}

/* Calm Catch Reveal Card */
.reveal-card {
  max-width: 420px;
  padding: 24px 24px 22px;
  text-align: center;
  align-items: center;
}

.reveal-top-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.id-pill,
.cat-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid var(--border-warm);
  background: var(--bg-soft);
  color: var(--wood-dark);
}

.new-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: #e8725b;
  color: #fffdf7;
}

.reveal-art-frame {
  position: relative;
  width: 136px;
  height: 136px;
  border-radius: 24px;
  border: 2px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}

.reveal-art-frame-large {
  width: 210px;
  height: 210px;
  padding: 10px;
}

.entry-artwork-img,
.fallback-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reveal-name {
  font-size: 1.32rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.reveal-stars,
.detail-stars {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: #d9932f;
}

.rarity-6 {
  color: #b87c65;
}

.reveal-description {
  width: 100%;
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.65;
  margin-bottom: 12px;
}

.reveal-catch-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Encyclopedia Modal */
.encyclopedia-card {
  max-width: 920px;
  height: 86vh;
}

.enc-progress-wrap {
  padding: 12px 22px 8px;
  background: #fdf8ee;
}

.enc-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--wood-dark);
}

.enc-progress-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.enc-mark-read-btn {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid #d5ba92;
  background: #fffdf7;
  color: var(--wood-dark);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.enc-mark-read-btn:hover {
  background: #f8ecd7;
  border-color: #c59b62;
}

.enc-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #eadcc7;
  overflow: hidden;
}

.enc-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #74b8b5, #e6a255);
  transition: width 0.25s ease;
}

.enc-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 22px 12px;
  overflow-x: auto;
  border-bottom: 1.5px solid var(--bg-soft);
  flex-shrink: 0;
}

.enc-tab-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--border-warm);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.enc-tab-btn.active {
  background: var(--wood-dark);
  border-color: var(--wood-dark);
  color: #fffdf7;
}

.enc-grid {
  padding: 18px 22px 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 12px;
}

.enc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 10px 12px;
  border-radius: 16px;
  border: 1.5px solid var(--border-warm);
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  text-align: center;
}

.enc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.enc-card.uncollected {
  background: #f6efe2;
  opacity: 0.86;
}

.enc-card-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  margin-bottom: 6px;
}

.enc-card-id {
  font-weight: 700;
  color: var(--text-muted);
}

.enc-card-stars {
  font-weight: 700;
  color: #d68e29;
}

.enc-new-badge {
  background: #e56b55;
  color: #fffdf7;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

.enc-card-art {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.enc-card-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  word-break: break-word;
}

.enc-card.uncollected .enc-card-name {
  color: var(--text-muted);
}

/* Entry Detail Modal */
.detail-overlay {
  z-index: 120;
}

.detail-card {
  max-width: 480px;
}

.detail-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
}

.detail-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-art-frame {
  width: 104px;
  height: 104px;
  border-radius: 18px;
  border: 2px solid var(--border-warm);
  padding: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.detail-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.detail-desc-box {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

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

.detail-stat {
  background: #fcf7ee;
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.stat-val {
  font-size: 0.86rem;
  font-weight: 700;
}

/* Playtester Panel (Floating Side Drawer) */
.playtester-panel {
  position: fixed;
  top: 76px;
  right: 16px;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  background: var(--bg-card);
  border: 2px solid #cbb18d;
  border-radius: 20px;
  box-shadow: 0 18px 42px rgba(61, 44, 28, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 90;
  overflow: hidden;
}

.pt-body {
  padding: 14px 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pt-section {
  background: #fdf8ee;
  border: 1.5px solid var(--border-warm);
  border-radius: 14px;
  padding: 12px;
}

.pt-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wood-dark);
  margin-bottom: 8px;
}

.pt-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.pt-stat-grid span {
  color: var(--text-muted);
}

.pt-pity-row {
  font-size: 0.8rem;
  padding-top: 6px;
  border-top: 1px dashed var(--border-warm);
  margin-bottom: 8px;
}

.pt-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eee2ce;
  font-weight: 700;
}

.pt-badge-active {
  background: #fbe3c0;
  color: #a95d17;
}

.pt-badge-held {
  background: #e4eef2;
  color: #3f6a7a;
}

.pt-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border-warm);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.pt-btn-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pt-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-warm);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.pt-btn:hover {
  background: var(--bg-soft);
}

.pt-btn-danger {
  border-color: #e2b4aa;
  color: #a94438;
  background: #fdf3f1;
}

.pt-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 8px;
  cursor: pointer;
}

.pt-slider-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.pt-slider-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
}

.pt-slider-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.pt-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent-amber);
}

.pt-json-box {
  background: #3d3129;
  color: #f9eedc;
  padding: 10px;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
  overflow-x: auto;
  margin-bottom: 8px;
  user-select: text;
}

/* Toast */
.toast-message {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(74, 59, 50, 0.92);
  color: #fffdf7;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  z-index: 200;
  pointer-events: none;
}

@media (max-width: 640px) {
  .pond-stage {
    height: 360px;
  }
  .enc-grid {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  }
  .detail-top {
    flex-direction: column;
    text-align: center;
  }
  .detail-badges {
    justify-content: center;
  }
}


/* ============================================================
   Part A / B / C Additions: Size Records, Login, Audio & Touch
   ============================================================ */

.hud-btn,
.primary-cast-btn {
  touch-action: manipulation;
}

.tension-box,
.tension-track {
  touch-action: none;
  -webkit-user-select: none;
}

.hud-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border-warm);
  background: #fbf3e4;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--wood-dark);
}

.sync-status-tag {
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eaf4ec;
  color: #3f7a53;
}

.sync-status-tag.local {
  background: #f0e6d4;
  color: var(--text-muted);
}

.sync-status-tag.offline {
  background: #fbe8e6;
  color: #a6463b;
}

/* Audio Popover */
.audio-wrap {
  position: relative;
}

.audio-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 248px;
  background: var(--bg-card);
  border: 2px solid var(--border-warm);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 14px 34px rgba(74, 59, 50, 0.22);
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audio-pop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--wood-dark);
}

.audio-mute-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--border-warm);
  background: var(--bg-soft);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.audio-mute-btn.muted {
  background: #fbe6e3;
  border-color: #e6b3ac;
  color: #9e3d31;
}

.audio-slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.audio-slider-label {
  display: flex;
  justify-content: space-between;
  color: var(--text-main);
}

.audio-slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent-amber);
}

/* Catch Reveal Size & Record Badges */
.reveal-size-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wood-dark);
}

.record-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.record-badge-max {
  background: #fef0ce;
  color: #b5680d;
  border: 1.5px solid #f0cb75;
}

.record-badge-min {
  background: #e6f4f5;
  color: #2f7782;
  border: 1.5px solid #9fd4db;
}

.record-badge-crown-giant {
  background: linear-gradient(135deg, #fff4c4 0%, #f9d466 100%);
  color: #8a4b00;
  border: 1.5px solid #d4961a;
  box-shadow: 0 2px 6px rgba(212, 150, 26, 0.28);
}

.record-badge-crown-mini {
  background: linear-gradient(135deg, #e2faf8 0%, #fbe7a2 100%);
  color: #1f636e;
  border: 1.5px solid #48a3ab;
  box-shadow: 0 2px 6px rgba(72, 163, 171, 0.24);
}

.stat-crown-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}

.stat-crown-badge.crown-giant {
  background: linear-gradient(135deg, #fff4c4 0%, #f9d466 100%);
  color: #8a4b00;
  border: 1px solid #d4961a;
}

.stat-crown-badge.crown-mini {
  background: linear-gradient(135deg, #e2faf8 0%, #fbe7a2 100%);
  color: #1f636e;
  border: 1px solid #48a3ab;
}

/* Private 2-Account Login Screen */
.login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #fff9ee 0%, #f5ebd9 65%, #ead8bc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 250;
}

.login-card {
  width: min(420px, 100%);
  background: var(--bg-card);
  border: 2px solid var(--border-warm);
  border-radius: 26px;
  padding: 32px 26px 26px;
  box-shadow: 0 20px 50px rgba(84, 62, 38, 0.16);
  text-align: center;
}

.login-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8d89c, #eaa965);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  border: 3px solid #fffdf7;
  box-shadow: var(--shadow-card);
}

.login-card h1 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 2px solid var(--border-warm);
  background: #fffaf0;
  color: var(--text-main);
  font-size: 1rem;
  text-align: center;
  outline: none;
  user-select: text;
  transition: border-color 0.15s ease;
}

.login-input:focus {
  border-color: var(--accent-amber);
  background: #fffdf7;
}

.login-error {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c24b3d;
  min-height: 1.2em;
}

.login-hint-box {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbf3e4;
  border: 1px dashed var(--border-warm);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Boat Deck Props (PS5 & Telephone) */
.deck-prop {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28));
  animation: deckPropAppear 0.5s ease-out both;
}

.deck-prop svg {
  width: 48px;
  height: 48px;
  display: block;
}

.deck-prop-ps5 {
  position: absolute;
  left: 14%;
  bottom: 0;
}

.deck-prop-phone {
  position: absolute;
  right: 14%;
  bottom: 0;
}

.deck-prop-ps5 svg {
  width: 54px;
  height: 54px;
}

@keyframes deckPropAppear {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Encyclopedia Partial Progress & Puzzle Detail Frame */
.enc-card.partial-collected {
  border-style: dashed;
  border-color: #d9b679;
  background: #fffcf4;
}

.enc-progress-badge {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: #f8e5be;
  color: #8c5a17;
  border: 1px solid #e6c483;
}

.detail-art-frame-puzzle {
  width: 170px;
  height: 170px;
  padding: 8px;
}

/* Completed Photo Zoomable Trigger & Framed Photo Lightbox */
.photo-zoomable {
  position: relative;
  cursor: zoom-in;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.photo-zoomable:hover {
  transform: scale(1.025);
  box-shadow: 0 6px 18px rgba(92, 69, 44, 0.22);
}

.photo-zoom-hint {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(74, 59, 50, 0.82);
  color: #fffdf7;
  font-size: 0.68rem;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
  z-index: 6;
}

.photo-lightbox-overlay {
  z-index: 160;
  background: rgba(42, 31, 22, 0.72);
  backdrop-filter: blur(5px);
}

.photo-frame-card {
  position: relative;
  max-width: min(92vw, 680px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalFadeIn 0.22s ease-out;
}

.photo-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: #fffdf7;
}

.photo-frame-outer {
  background: linear-gradient(145deg, #c6925e 0%, #9b6b3e 45%, #7c502b 100%);
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 2px solid #dfba8d;
  box-shadow:
    inset 0 2px 4px rgba(255, 240, 214, 0.45),
    inset 0 -3px 6px rgba(56, 32, 14, 0.45),
    0 22px 54px rgba(24, 15, 8, 0.48);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.photo-frame-mat {
  background: #fdf8ee;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #e6d6bc;
  box-shadow: inset 0 2px 8px rgba(74, 59, 50, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.photo-lightbox-img {
  display: block;
  max-width: min(80vw, 600px);
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.photo-frame-placard {
  background: #fffaf0;
  border: 1.5px solid #dec7a4;
  border-radius: 999px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(48, 30, 14, 0.22);
}

.photo-lightbox-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
}

/* 2x2 Interlocking Jigsaw Puzzle */
.puzzle-svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 10px;
}

.puzzle-piece-stroke {
  fill: none;
  stroke: rgba(255, 253, 247, 0.9);
  stroke-width: 2.2;
  stroke-linejoin: round;
  transition: opacity 0.6s ease;
}

.puzzle-piece-stroke.completed-seam {
  stroke: rgba(255, 253, 247, 0.25);
  stroke-width: 1;
}

.puzzle-piece-missing {
  fill: #e8dcc8;
  stroke: #cbb89a;
  stroke-width: 2;
  stroke-dasharray: 4 3;
}

.puzzle-piece-newly-caught {
  animation: puzzlePiecePop 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.puzzle-just-completed {
  animation: puzzleAssemble 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.puzzle-just-completed .puzzle-piece-stroke {
  animation: puzzleSeamFade 1.2s ease forwards;
}

@keyframes puzzlePiecePop {
  0% {
    opacity: 0.25;
    transform: scale(0.92);
  }
  65% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes puzzleAssemble {
  0% {
    transform: scale(0.94);
    filter: drop-shadow(0 0 0 rgba(255, 214, 102, 0));
  }
  45% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 16px rgba(255, 200, 87, 0.85));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 214, 102, 0));
  }
}

@keyframes puzzleSeamFade {
  0% {
    stroke: rgba(255, 245, 205, 0.95);
    stroke-width: 3;
  }
  100% {
    stroke: rgba(255, 253, 247, 0);
    stroke-width: 0;
  }
}

/* Western Cloche Lift & Hot Steam Animation (#056, #057) */
.western-cloche-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  pointer-events: none;
  z-index: 5;
  animation: clocheLiftReveal 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.western-cloche-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 10px rgba(30, 41, 59, 0.28));
}

@keyframes clocheLiftReveal {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  25% {
    opacity: 1;
    transform: translateY(-10px) scale(1.03);
  }
  100% {
    opacity: 0;
    transform: translateY(-110px) scale(0.88);
  }
}

.cloche-steam-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.steam-wisp {
  position: absolute;
  bottom: 26%;
  width: 16px;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 72%);
  filter: blur(2px);
  opacity: 0;
  animation: steamRise 2.4s ease-in-out infinite;
}

.steam-wisp.wisp-1 {
  left: 32%;
  animation-delay: 0.7s;
}

.steam-wisp.wisp-2 {
  left: 48%;
  animation-delay: 1.25s;
}

.steam-wisp.wisp-3 {
  left: 62%;
  animation-delay: 1.75s;
}

@keyframes steamRise {
  0% {
    opacity: 0;
    transform: translateY(10px) scaleX(0.8);
  }
  35% {
    opacity: 0.85;
    transform: translateY(-14px) translateX(-4px) scaleX(1.1);
  }
  70% {
    opacity: 0.55;
    transform: translateY(-38px) translateX(5px) scaleX(1.25);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) translateX(-2px) scaleX(1.4);
  }
}

/* Pochacco Blind Box Shake Animation */
.blindbox-shaking {
  transform-origin: center bottom;
  animation: blindBoxShake 0.65s ease-in-out infinite;
}

@keyframes blindBoxShake {
  0% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-10deg) scale(1.04); }
  40% { transform: rotate(10deg) scale(1.06); }
  60% { transform: rotate(-8deg) scale(1.05); }
  80% { transform: rotate(8deg) scale(1.07); }
  100% { transform: rotate(0deg) scale(1.02); }
}

/* Achievements Modal */
.achievements-card {
  max-width: 620px;
  max-height: 82vh;
}

.achievements-list {
  padding: 16px 22px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ach-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid var(--border-warm);
  background: #fffcf4;
  transition: transform 0.15s ease;
}

.ach-card.unlocked {
  border-color: #e2b45d;
  background: linear-gradient(135deg, #fffdf7 0%, #fef5de 100%);
  box-shadow: 0 4px 12px rgba(212, 155, 53, 0.12);
}

.ach-card.locked {
  background: #f5efe3;
  opacity: 0.85;
}

.ach-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fffdf7;
  border: 2px solid var(--border-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.ach-card.unlocked .ach-icon {
  border-color: #ebc272;
  background: #fff8e3;
}

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

.ach-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.ach-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.ach-status-pill {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.ach-status-pill.unlocked {
  background: #f9e3ad;
  color: #9b600b;
}

.ach-status-pill.locked {
  background: #e5dac6;
  color: #7c6c5a;
}

.ach-desc {
  font-size: 0.86rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 8px;
}

.ach-progress-wrap {
  margin-bottom: 7px;
}

.ach-progress-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ach-card.unlocked .ach-progress-label {
  color: #8f5c14;
}

.ach-progress-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e7dcc7;
  overflow: hidden;
}

.ach-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #74b8b5, #e6a255);
  transition: width 0.25s ease;
}

.ach-card.unlocked .ach-progress-fill {
  background: linear-gradient(90deg, #e7b552, #d4892a);
}

.ach-reward {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wood-dark);
}

@media (max-width: 640px) {
  .top-hud {
    padding: 12px 14px 8px;
  }
  .hud-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .audio-popover {
    left: 0;
    right: auto;
  }
  .wooden-boat-group {
    width: min(94%, 440px);
    height: 148px;
  }
  .wooden-boat {
    height: 90px;
  }
  .boat-deck-items {
    bottom: 60px;
    left: 24px;
    right: 24px;
    height: 64px;
  }
  .fishing-rod {
    bottom: 68px;
    left: calc(50% - 50px);
    width: 132px;
  }
  .fishing-line {
    top: 47%;
    bottom: 134px;
    left: calc(50% + 64px);
  }
  .pond-bobber {
    top: 47%;
    left: calc(50% + 64px);
  }
  .bite-indicator {
    top: 32%;
    left: calc(50% + 64px);
  }
}

/* Interactive Deck PS5 & Resident Evil Tyrant Jump-Scare Easter Egg */
.deck-prop-ps5-interactive {
  z-index: 4;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 10px;
  outline: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.deck-prop-ps5-interactive:hover,
.deck-prop-ps5-interactive:focus-visible {
  transform: translateY(-4px) scale(1.12);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.9)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.ps5-led-strip {
  animation: ps5LedPulse 1.9s ease-in-out infinite;
}

@keyframes ps5LedPulse {
  0%, 100% {
    opacity: 0.55;
    stroke: #38bdf8;
  }
  50% {
    opacity: 1;
    stroke: #bae6fd;
  }
}

.tyrant-overlay {
  position: fixed;
  inset: 0;
  background: #020203;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 320;
  overflow: hidden;
  user-select: none;
}

.tyrant-crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    rgba(0, 0, 0, 0.28) 2px,
    rgba(0, 0, 0, 0.28) 4px
  );
  pointer-events: none;
  z-index: 4;
}

.tyrant-blood-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 28%, rgba(125, 8, 16, 0.72) 82%, rgba(36, 0, 4, 0.96) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.25s ease;
}

.tyrant-overlay[data-phase="attack"] .tyrant-blood-vignette,
.tyrant-overlay[data-phase="warning"] .tyrant-blood-vignette {
  opacity: 1;
  animation: bloodVignettePulse 1.6s ease-in-out infinite;
}

@keyframes bloodVignettePulse {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

.tyrant-flashbang {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}

.tyrant-flashbang.flash-active {
  animation: tyrantFlashbang 0.24s ease-out forwards;
}

@keyframes tyrantFlashbang {
  0% { opacity: 0.98; background: #ffffff; }
  35% { opacity: 0.85; background: #ff2b2b; }
  100% { opacity: 0; background: #ff0000; }
}

/* Phase 1: Fake PS5 Boot Screen -> Visual Bait Trap in Darkness */
.tyrant-boot-screen {
  position: relative;
  z-index: 5;
  text-align: center;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  min-height: 140px;
  animation: modalFadeIn 0.18s ease-out;
}

.tyrant-boot-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: opacity 0.9s ease, filter 0.6s ease;
}

.tyrant-boot-header.boot-dimmed {
  opacity: 0.34;
  filter: blur(0.6px);
}

.tyrant-boot-header.boot-blackout {
  opacity: 0;
  pointer-events: none;
}

.tyrant-bait-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.tyrant-bait-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.72);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.65);
  animation: baitDotPulse 1.1s ease-in-out infinite;
}

@keyframes baitDotPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 0.85; transform: scale(1.15); }
}

.tyrant-bait-text {
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.42);
  letter-spacing: 0.14em;
  transition: font-size 0.6s ease, opacity 0.6s ease, color 0.6s ease;
}

.tyrant-bait-box.bait-closer .tyrant-bait-text {
  font-size: 0.64rem;
  opacity: 0.32;
}

.tyrant-bait-box.bait-closest .tyrant-bait-text {
  font-size: 0.60rem;
  color: rgba(248, 113, 113, 0.38);
  opacity: 0.28;
}

.tyrant-boot-logo {
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f8fafc;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.65);
}

.tyrant-boot-sub {
  font-size: 0.96rem;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

.tyrant-overlay.footstep-thud {
  animation: footstepThudShake 0.22s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.tyrant-overlay.footstep-thud .tyrant-blood-vignette {
  opacity: 0.22;
}

.tyrant-overlay.footstep-heavy {
  animation: footstepHeavyShake 0.28s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.tyrant-overlay.footstep-heavy .tyrant-blood-vignette {
  opacity: 0.42;
}

@keyframes footstepThudShake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 3px); }
  50% { transform: translate(2px, -2px); }
  75% { transform: translate(-1px, 1px); }
  100% { transform: translate(0, 0); }
}

@keyframes footstepHeavyShake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-5px, 6px); }
  45% { transform: translate(5px, -4px); }
  70% { transform: translate(-3px, 3px); }
  100% { transform: translate(0, 0); }
}

/* Phase 2 & 3: 100% Fullscreen Tyrant Attack Stage & Shattered Screen */
.tyrant-attack-stage {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100vw;
  height: 100vh;
}

.tyrant-shake-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

.tyrant-shake-container.shaking {
  animation: tyrantViolentShake 0.78s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes tyrantViolentShake {
  0% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-24px, 18px) rotate(-2.5deg); }
  20% { transform: translate(22px, -20px) rotate(2.4deg); }
  30% { transform: translate(-18px, -12px) rotate(-2deg); }
  40% { transform: translate(18px, 18px) rotate(2.1deg); }
  50% { transform: translate(-14px, 12px) rotate(-1.5deg); }
  60% { transform: translate(12px, -12px) rotate(1.3deg); }
  70% { transform: translate(-8px, 8px) rotate(-0.8deg); }
  85% { transform: translate(5px, -4px) rotate(0.4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.tyrant-visual-frame {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #020203;
}

.tyrant-scare-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  transform-origin: center 42%;
}

.tyrant-scare-img.precrack-glimpse {
  transform: scale(0.38);
  filter: brightness(0.28) contrast(1.6);
  opacity: 0.55;
}

.tyrant-scare-img.lunging {
  animation:
    tyrantLungeZoom 0.13s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    tyrantMenacingBreathe 2.8s ease-in-out 0.8s infinite;
}

.tyrant-overlay[data-phase="warning"] .tyrant-scare-img,
.tyrant-scare-img.dying-slowmo {
  animation: tyrantSlowMoDeath 4.8s cubic-bezier(0.12, 0.55, 0.24, 1) forwards;
}

@keyframes tyrantSlowMoDeath {
  0% {
    transform: scale(1.14);
    filter: brightness(1.05) contrast(1.14) saturate(1);
  }
  35% {
    filter: brightness(0.42) contrast(1.28) saturate(0.38) blur(0.6px);
  }
  100% {
    transform: scale(1.24);
    filter: brightness(0.28) contrast(1.32) saturate(0.25) blur(1.2px);
  }
}

@keyframes tyrantLungeZoom {
  0% {
    transform: scale(0.36);
    filter: brightness(2.4) contrast(1.45) drop-shadow(10px 0 0 rgba(255, 0, 0, 0.75));
  }
  70% {
    transform: scale(1.34);
    filter: brightness(1.18) contrast(1.22) drop-shadow(-6px 0 0 rgba(255, 0, 0, 0.6));
  }
  100% {
    transform: scale(1.14);
    filter: brightness(1.05) contrast(1.14);
  }
}

@keyframes tyrantMenacingBreathe {
  0%, 100% { transform: scale(1.14) translateY(0); }
  50% { transform: scale(1.17) translateY(-4px); }
}

.tyrant-glass-cracks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
  animation: glassCrackPop 0.10s ease-out both;
}

.tyrant-overlay[data-phase="warning"] .tyrant-glass-cracks {
  animation: glassCrackDim 1.6s ease forwards;
}

@keyframes glassCrackDim {
  from { opacity: 0.94; }
  to { opacity: 0.38; }
}

.tyrant-overlay[data-phase="precrack"] .tyrant-glass-cracks .crack-stage-2 {
  opacity: 0;
}

.tyrant-overlay[data-phase="attack"] .tyrant-glass-cracks .crack-stage-2,
.tyrant-overlay[data-phase="warning"] .tyrant-glass-cracks .crack-stage-2 {
  opacity: 1;
  animation: glassCrackPop 0.10s ease-out both;
}

@keyframes glassCrackPop {
  0% { opacity: 0; transform: scale(0.55); }
  100% { opacity: 0.94; transform: scale(1); }
}

/* Phase 3: Classic Resident Evil YOU ARE DEAD Overlay */
.tyrant-warning-box {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 20px 9vh;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(16, 0, 2, 0.72) 58%,
    rgba(3, 0, 0, 0.96) 100%
  );
  animation: modalFadeIn 1.4s ease-out;
}

.tyrant-dead-title {
  font-family: "Times New Roman", "Georgia", serif;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 700;
  color: #b91c1c;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-shadow: 0 0 24px rgba(220, 38, 38, 0.85), 0 4px 14px rgba(0, 0, 0, 0.95);
  margin-bottom: 28px;
  animation: youAreDeadFade 2.0s ease-out both;
}

@keyframes youAreDeadFade {
  0% {
    opacity: 0;
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    filter: blur(0);
  }
}

.tyrant-unplug-btn {
  padding: 12px 32px;
  border-radius: 6px;
  border: 1.5px solid rgba(220, 38, 38, 0.75);
  background: rgba(15, 10, 12, 0.88);
  color: #e2e8f0;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.tyrant-unplug-btn:hover {
  background: rgba(127, 29, 29, 0.9);
  border-color: #fca5a5;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.55);
}

.tyrant-unplug-btn:active {
  transform: translateY(1px);
}

.tyrant-overlay.crt-turning-off {
  animation: crtTurnOff 0.23s ease-in forwards;
}

@keyframes crtTurnOff {
  0% {
    opacity: 1;
    transform: scale(1, 1);
    filter: brightness(1.2);
  }
  55% {
    opacity: 1;
    transform: scale(1.04, 0.018);
    filter: brightness(2.5);
  }
  100% {
    opacity: 0;
    transform: scale(0.02, 0.005);
    filter: brightness(3);
  }
}

/* 3-Slot Save Selection Menu */
.slot-screen-overlay {
  z-index: 245;
  overflow-y: auto;
  align-items: flex-start;
  padding: 28px 16px;
}

.slot-screen-card {
  width: min(560px, 100%);
  margin: auto;
  background: var(--bg-card);
  border: 2px solid var(--border-warm);
  border-radius: 26px;
  padding: 26px 24px 22px;
  box-shadow: 0 20px 50px rgba(84, 62, 38, 0.16);
}

.slot-screen-header {
  text-align: center;
  margin-bottom: 18px;
}

.slot-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.slot-screen-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.slot-screen-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.slot-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slot-card {
  border-radius: 18px;
  border: 2px solid var(--border-warm);
  padding: 16px 18px;
  background: #fffcf5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.slot-card-filled {
  background: linear-gradient(135deg, #fffdf7 0%, #fbf3e4 100%);
  box-shadow: var(--shadow-card);
}

.slot-card-empty {
  border-style: dashed;
  background: #faf4e8;
}

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

.slot-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--wood-dark);
}

.slot-status-pill {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.slot-status-pill.filled {
  background: #eaf4ec;
  color: #3f7a53;
}

.slot-status-pill.empty {
  background: #eee3d1;
  color: var(--text-muted);
}

.slot-empty-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.slot-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.slot-stat {
  background: rgba(255, 253, 247, 0.85);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.slot-stat span {
  color: var(--text-muted);
}

.slot-stat strong {
  color: var(--text-main);
  font-weight: 800;
}

.slot-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slot-action-btn {
  flex: 1;
  padding: 10px 18px;
  font-size: 0.94rem;
}

.slot-delete-btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid #e2b4aa;
  background: #fdf3f1;
  color: #a94438;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.slot-delete-btn:hover {
  background: #fae2dd;
}

.slot-confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdf0ed;
  border: 1.5px solid #e5b3a8;
}

.slot-confirm-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: #9e3d31;
}

.slot-confirm-btns {
  display: flex;
  gap: 8px;
}

.slot-screen-footer {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* Wooden Boat Sailing Intro Animation */
.sailing-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: linear-gradient(
    180deg,
    #d7939c 0%,
    #f1ad83 22%,
    #f9cf9b 44%,
    #fde6b8 53%,
    #5f9bad 54.5%,
    #36748c 74%,
    #1c4b63 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  transition: opacity 0.32s ease;
}

.sailing-intro-overlay.sailing-fade-out {
  opacity: 0;
  pointer-events: none;
}

.sailing-sky-glow {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 158, 0.72) 0%, rgba(252, 173, 108, 0.2) 55%, transparent 75%);
  pointer-events: none;
}

.sailing-sun {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8dc 0%, #ffd584 65%, #f79d65 100%);
  box-shadow: 0 0 36px rgba(255, 198, 112, 0.78);
  pointer-events: none;
}

.sailing-horizon {
  position: absolute;
  top: 53.5%;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 224, 178, 0.25) 0%, rgba(255, 232, 184, 0.9) 50%, rgba(255, 210, 150, 0.25) 100%);
  pointer-events: none;
}

.sailing-ocean {
  position: absolute;
  top: 54%;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.sailing-wave {
  position: absolute;
  left: -12%;
  width: 124%;
  height: 20px;
  border-top: 2px solid rgba(255, 245, 224, 0.34);
  border-radius: 50% 50% 0 0;
}

.s-wave-1 {
  top: 12%;
  animation: oceanWaveRoll 2.2s ease-in-out infinite;
}

.s-wave-2 {
  top: 36%;
  animation: oceanWaveRoll 2.8s ease-in-out infinite reverse;
}

.s-wave-3 {
  top: 64%;
  animation: oceanWaveRoll 2.4s ease-in-out infinite;
}

.sailing-boat-actor {
  position: absolute;
  top: 16%;
  left: 50%;
  width: min(68vw, 240px);
  transform: translateX(-50%);
  animation: sailingBoatGlide 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.sailing-boat-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(15, 38, 54, 0.35));
}

.sailing-wake-trail {
  position: absolute;
  bottom: 12px;
  left: -46px;
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 250, 235, 0) 0%, rgba(255, 250, 235, 0.72) 100%);
  animation: wakePulse 0.75s ease-in-out infinite;
}

.sailing-oar-group {
  transform-origin: 108px 58px;
  animation: oarRowing 0.82s ease-in-out infinite;
}

@keyframes sailingBoatGlide {
  0% {
    transform: translateX(-85vw) translateY(8px) rotate(-2deg) scale(0.86);
  }
  35% {
    transform: translateX(-62%) translateY(-4px) rotate(1.5deg) scale(0.95);
  }
  70% {
    transform: translateX(-48%) translateY(3px) rotate(-1.2deg) scale(1);
  }
  100% {
    transform: translateX(-44%) translateY(-1px) rotate(0.6deg) scale(1.03);
  }
}

@keyframes oarRowing {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(22deg); }
}

@keyframes wakePulse {
  0%, 100% { opacity: 0.45; transform: scaleX(0.85); }
  50% { opacity: 0.9; transform: scaleX(1.15); }
}

.sailing-hud-box {
  position: relative;
  z-index: 3;
  width: min(88vw, 400px);
  margin-bottom: 10vh;
  background: rgba(255, 253, 247, 0.92);
  border: 2px solid var(--border-warm);
  border-radius: 20px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 14px 36px rgba(32, 46, 58, 0.24);
}

.sailing-title-text {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.sailing-status-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.sailing-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #eadcc7;
  overflow: hidden;
  margin-bottom: 6px;
}

.sailing-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #62aeb0, #e59c4d);
  transition: width 0.08s linear;
}

.sailing-progress-pct {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--wood-dark);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .slot-stats-grid {
    grid-template-columns: 1fr;
  }
}
