/* ============================================
   GAME SCENES - Store, River, Death, Landmarks
   ============================================ */

/* === HUNTING CANVAS === */
#hunting-canvas {
  display: none;
  width: 100%;
  border: 2px solid var(--green-dim);
  border-radius: 4px;
  margin-bottom: 12px;
  image-rendering: pixelated;
  outline: none;
}

/* === STORE SCENE === */
.store-scene {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border: 2px solid #555555;
  border-radius: 0;
  margin-bottom: 12px;
  background: #2a1a0a;
}

.store-interior {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Shelves */
.store-shelves {
  position: absolute;
  top: 10px;
  right: 20px;
  width: 200px;
  height: 120px;
}

.shelf {
  display: flex;
  gap: 8px;
  padding: 4px 8px;
  background: #553311;
  border-bottom: 3px solid #442200;
  margin-bottom: 4px;
  height: 36px;
  align-items: flex-end;
}

.shelf-top { height: 28px; }

.shelf-item { position: relative; }

.barrel {
  width: 20px;
  height: 24px;
  background: #886633;
  border-radius: 2px;
  border: 1px solid #664422;
}
.barrel::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #664422;
  box-shadow: 0 6px 0 #664422;
}

.sack {
  width: 22px;
  height: 20px;
  background: #ccbb88;
  border-radius: 4px 4px 2px 2px;
}

.box {
  width: 18px;
  height: 16px;
  background: #997744;
  border: 1px solid #775533;
}

.lantern {
  width: 10px;
  height: 18px;
  background: #ffcc00;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 200, 0, 0.5);
}
.lantern::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 3px;
  width: 4px;
  height: 5px;
  background: #888;
  border-radius: 1px 1px 0 0;
}

.bottle {
  width: 8px;
  height: 18px;
  background: #336633;
  border-radius: 2px 2px 0 0;
}
.bottle::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 2px;
  width: 4px;
  height: 5px;
  background: #447744;
  border-radius: 1px 1px 0 0;
}

/* Counter */
.store-counter {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
}

.counter-top {
  width: 100%;
  height: 6px;
  background: #886644;
  border-top: 2px solid #aa8866;
}

.counter-front {
  width: 100%;
  height: 24px;
  background: #664422;
  border-bottom: 2px solid #553311;
}

/* Clerk - pixel art person */
.store-clerk {
  position: absolute;
  bottom: 56px;
  left: 30%;
  width: 40px;
  height: 60px;
}

.clerk-hat {
  position: absolute;
  top: 0;
  left: 4px;
  width: 32px;
  height: 8px;
  background: #333;
  border-radius: 2px;
}
.clerk-hat::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 6px;
  width: 20px;
  height: 12px;
  background: #333;
  border-radius: 2px 2px 0 0;
}

.clerk-head {
  position: absolute;
  top: 16px;
  left: 8px;
  width: 24px;
  height: 20px;
  background: #ddaa77;
  border-radius: 3px;
}

.clerk-eye {
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  background: #222;
  border-radius: 50%;
  animation: clerkBlink 4s infinite;
}

.clerk-eye.left { left: 5px; }
.clerk-eye.right { right: 5px; }

@keyframes clerkBlink {
  0%, 95%, 100% { height: 4px; }
  97% { height: 1px; }
}

.clerk-mouth {
  position: absolute;
  bottom: 4px;
  left: 8px;
  width: 8px;
  height: 3px;
  background: #aa6644;
  border-radius: 0 0 2px 2px;
  animation: clerkTalk 0.4s ease-in-out infinite alternate;
}

@keyframes clerkTalk {
  0% { height: 2px; }
  100% { height: 4px; width: 10px; left: 7px; }
}

.clerk-body {
  position: absolute;
  top: 36px;
  left: 4px;
  width: 32px;
  height: 28px;
  background: #3366aa;
  border-radius: 2px;
}

.clerk-apron {
  position: absolute;
  top: 38px;
  left: 10px;
  width: 20px;
  height: 24px;
  background: #ccccbb;
  border-radius: 0 0 2px 2px;
}

/* Store sign */
.store-sign {
  position: absolute;
  top: 6px;
  left: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #ffcc33;
  text-shadow: 1px 1px 0 #000;
  background: #442200;
  padding: 4px 8px;
  border: 1px solid #664400;
  border-radius: 2px;
}

/* Dialogue box */
.dialogue-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  border-top: 2px solid #5555ff;
  padding: 8px 12px;
  min-height: 40px;
}

.dialogue-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--amber);
  margin-bottom: 4px;
}

.dialogue-text {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--text);
  line-height: 1.3;
}

/* === RIVER SCENE === */
.river-scene {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border: 2px solid #555555;
  border-radius: 4px;
  margin-bottom: 12px;
}

.river-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(180deg, #3355aa 0%, #6699cc 100%);
}

.river-bank-far {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  height: 15%;
  background: #44aa33;
  border-bottom: 3px solid #338822;
}

.river-water-body {
  position: absolute;
  top: 42%;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(180deg, #3366aa 0%, #224488 100%);
  overflow: hidden;
}

.river-current {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 20px,
    rgba(255,255,255,0.2) 20px,
    rgba(255,255,255,0.2) 30px
  );
  animation: currentFlow 2s linear infinite;
}

.river-current.c2 { top: 55%; animation-delay: -0.7s; }
.river-current.c3 { top: 80%; animation-delay: -1.4s; }

@keyframes currentFlow {
  from { background-position: 0 0; }
  to { background-position: -30px 0; }
}

.river-bank-near {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 25%;
  background: #338822;
}

.river-wagon-waiting {
  position: absolute;
  bottom: 22%;
  left: 15%;
}

.river-wagon-small {
  width: 30px;
  height: 18px;
  background: #884422;
  border-radius: 0 0 2px 2px;
  position: relative;
}
.river-wagon-small::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -2px;
  width: 34px;
  height: 12px;
  background: #ccbbaa;
  border-radius: 50% 50% 0 0;
}
.river-wagon-small::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid #663311;
  border-radius: 50%;
  box-shadow: 16px 0 0 0 #663311;
}

.river-info-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.river-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 8px;
}

.river-stats {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: #aaddff;
}

/* === DEATH SCENE === */
.death-scene {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border: 2px solid #553333;
  border-radius: 4px;
  margin-bottom: 12px;
}

.grave-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(180deg, #223 0%, #445 50%, #667 100%);
}

.grave-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: #554433;
}

.tombstone {
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%);
}

.tombstone-top {
  width: 60px;
  height: 20px;
  background: #aaa;
  border-radius: 30px 30px 0 0;
  margin: 0 auto;
}

.tombstone-body {
  width: 60px;
  height: 50px;
  background: #999;
  text-align: center;
  padding-top: 4px;
}

.tombstone-text {
  font-family: 'VT323', monospace;
  font-size: 10px;
  color: #333;
}

.tombstone-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #222;
  margin: 3px 0;
}

.tombstone-cause {
  font-family: 'VT323', monospace;
  font-size: 9px;
  color: #444;
}

.grave-flowers .flower {
  position: absolute;
  bottom: 42%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.flower.f1 {
  left: calc(50% - 40px);
  background: #ff6666;
  box-shadow: 0 6px 0 2px #338822;
}

.flower.f2 {
  left: calc(50% + 34px);
  background: #ffaa33;
  box-shadow: 0 6px 0 2px #338822;
}

/* === LANDMARK SCENE === */
.landmark-scene {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border: 2px solid #555555;
  border-radius: 4px;
  margin-bottom: 12px;
}

.landmark-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, #3355aa 0%, #6699cc 100%);
}

.scene-plains .landmark-bg {
  position: absolute;
  top: 45%;
  left: 0; right: 0;
  height: 10%;
  background: #44aa33;
}

.scene-plains .landmark-fg {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 45%;
  background: #338822;
}

.scene-mountains .landmark-bg {
  position: absolute;
  top: 30%;
  left: 0; right: 0;
  height: 25%;
  background:
    linear-gradient(135deg, #556677 25%, transparent 25%) 0 0,
    linear-gradient(225deg, #667788 25%, transparent 25%) 60px 0;
  background-size: 80px 50px;
  background-repeat: repeat-x;
}

.scene-mountains .landmark-fg {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 45%;
  background: #336622;
}

.scene-desert .landmark-bg {
  position: absolute;
  top: 45%;
  left: 0; right: 0;
  height: 10%;
  background: #ccaa66;
}

.scene-desert .landmark-fg {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 45%;
  background: #aa8844;
}

.scene-valley .landmark-bg {
  position: absolute;
  top: 45%;
  left: 0; right: 0;
  height: 10%;
  background: #55cc55;
}

.scene-valley .landmark-fg {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 45%;
  background: #44aa44;
}

/* Sign post */
.landmark-sign-post {
  position: absolute;
  bottom: 42%;
  right: 25%;
}

.sign-post-pole {
  width: 4px;
  height: 40px;
  background: #664422;
  margin: 0 auto;
}

.sign-post-board {
  background: #886633;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 4px 8px;
  border: 1px solid #664422;
  text-align: center;
  white-space: nowrap;
  position: relative;
  top: -40px;
  text-shadow: 1px 1px 0 #000;
}

/* Landmark wagon */
.landmark-wagon-arrive {
  position: absolute;
  bottom: 42%;
  left: 10%;
  animation: wagonArrive 1.5s ease-out forwards;
}

@keyframes wagonArrive {
  from { left: -80px; }
  to { left: 10%; }
}

.lm-wagon-body {
  width: 30px;
  height: 12px;
  background: #884422;
  position: relative;
}

.lm-wagon-cover {
  position: absolute;
  top: -12px;
  left: -2px;
  width: 34px;
  height: 14px;
  background: #ccbbaa;
  border-radius: 50% 50% 0 0;
}

.lm-wheel {
  position: absolute;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border: 2px solid #663311;
  border-radius: 50%;
}

.lm-wheel.lw1 { left: 2px; }
.lm-wheel.lw2 { right: 2px; }
