/* ========================================
   UNIQUE SNACKS — clean white vm6 style
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

@font-face {
  font-family: 'IAmSeventeen';
  src: url('I%20am%20Seventeen.ttf') format('truetype');
}

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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #E8E4E0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========================================
   TOP NAV
   ======================================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 36px;
}

.topbar-brand {
  font-family: 'IAmSeventeen', sans-serif;
  font-size: 2rem;
  color: #2C2A28;
  line-height: 1;
}

.topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.nav-slider-track {
  position: relative;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.nav-slider-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: #90BDD9;
  border-radius: 24px;
  transition: left 0.25s ease;
  z-index: 0;
}

.nav-option {
  flex: 1;
  position: relative;
  z-index: 1;
  font-family: Inter, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.88rem;
  padding: 9px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1A1A1A;
  white-space: nowrap;
  transition: color 0.25s ease;
  text-align: center;
}

.nav-option.active {
  color: #1A1A1A;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2rem 0.5rem;
  gap: 0;
  overflow: visible;
}

body {
  overflow: hidden;
  height: 100vh;
  height: 100dvh; /* Chrome: accounts for browser UI chrome */
}

.vm-title {
  font-family: 'IAmSeventeen', sans-serif;
  font-size: 4.8rem;
  color: #2C2A28;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 0;
}

.vm-subtitle {
  font-family: 'IAmSeventeen', sans-serif;
  font-size: 4.8rem;
  color: #2C2A28;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  margin-top: 0.9rem;
  position: relative;
  z-index: 0;
}

/* ========================================
   COUNTRY FILTER BAR
   ======================================== */
.country-bar {
  display: flex;
  gap: 20px;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
}

.country-opt {
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #9A9690;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  position: relative;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.country-opt::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #2C2A28;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.country-opt.active {
  color: #2C2A28;
}

.country-opt.active::after {
  transform: scaleX(1);
}

/* ========================================
   DRAGGABLE COIN
   ======================================== */
@keyframes coinFloat {
  0%   { transform: translateY(0px) rotate(-8deg); }
  50%  { transform: translateY(-6px) rotate(-8deg); }
  100% { transform: translateY(0px) rotate(-8deg); }
}

@keyframes coinPulse {
  0%   { filter: drop-shadow(2px 3px 6px rgba(0,0,0,0.35)) drop-shadow(0 0 0px rgba(255,210,0,0)); }
  50%  { filter: drop-shadow(2px 3px 8px rgba(0,0,0,0.3)) drop-shadow(0 0 10px rgba(255,210,0,0.6)); }
  100% { filter: drop-shadow(2px 3px 6px rgba(0,0,0,0.35)) drop-shadow(0 0 0px rgba(255,210,0,0)); }
}

.coin-drag {
  position: fixed;
  width: 38px;
  height: 38px;
  cursor: grab;
  user-select: none;
  z-index: 100;
  animation: coinFloat 2s ease-in-out infinite, coinPulse 2s ease-in-out infinite;
}

.coin-drag:hover {
  animation: none;
  filter: drop-shadow(3px 5px 10px rgba(0, 0, 0, 0.5));
  transform: scale(1.1) rotate(-8deg);
}

.vm-coin-slot.slot-hover {
  box-shadow: 0 0 0 3px #90BDD9, 0 0 12px rgba(144, 189, 217, 0.6) !important;
}

@keyframes slotPulse {
  0% { box-shadow: 0 3px 8px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 0 18px 5px rgba(144, 189, 217, 0.85), 0 3px 8px rgba(0,0,0,0.2); }
  100% { box-shadow: 0 3px 8px rgba(0,0,0,0.3); }
}

.vm-coin-slot.slot-accepted {
  animation: slotPulse 0.55s ease;
}

/* ========================================
   MACHINE SHELL
   ======================================== */
.vm {
  background: #EDEBE9;
  border-radius: 16px;
  padding: 14px 14px 0;
  position: relative;
  z-index: 1;
  margin-top: 0;
  box-shadow:
    6px 10px 32px rgba(140, 128, 118, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* ========================================
   MAIN: left + right side by side
   ======================================== */
.vm-main {
  display: flex;
  gap: 16px;
}

/* ========================================
   LEFT SECTION
   ======================================== */
.vm-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 198px;
}

/* Glass display */
.vm-glass {
  background: #f3f2f0;
  border-radius: 12px;
  padding: 6px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.07),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Shelf row */
.shelf {
  display: flex;
  flex-direction: column;
}

.shelf-products {
  display: flex;
  align-items: flex-end;
  padding: 2px 2px 0;
  gap: 1px;
  min-height: 84px;
}

.shelf-slot {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: #f3f2f0;
}

.product-img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 6px 5px rgba(0,0,0,0.28)) drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}

.product-img.blend {
  mix-blend-mode: multiply;
}

/* Shelf rail */
.shelf-rail {
  height: 4px;
  background: linear-gradient(180deg, #DDE8F0 0%, #C8D9E8 100%);
  border-radius: 2px;
  margin: 3px 0 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18), inset 0 1px rgba(255,255,255,0.18);
}

/* PUSH tray */
.vm-push-wrap {
  padding: 0 4px;
}
.vm-push {
  background: #E0DEDC;
  border-radius: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #9A9690;
  box-shadow:
    inset 0 3px 10px rgba(0, 0, 0, 0.10),
    inset 0 1px 4px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ========================================
   RIGHT CONTROL PANEL
   ======================================== */
.vm-panel {
  width: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 0 10px;
}

/* Display screen */
.vm-screen {
  background: #F8F7F6;
  border-radius: 8px;
  height: 76px;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Card/coin slot bars */
.vm-bar {
  height: 12px;
  background: #C8C4C0;
  border-radius: 6px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.6);
}

.vm-gacha {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.vm-insert-label {
  font-family: Inter, sans-serif;
  font-size: 0.38rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #9A9690;
  text-align: center;
}

.vm-coin-slot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #D8D4D0, #A8A4A0 50%, #888480);
  box-shadow:
    0 3px 8px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.4),
    inset 0 -2px 4px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-coin-slit {
  width: 3px;
  height: 22px;
  background: #1A1A1A;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}

.vm-knob {
  width: 42px;
  height: 28px;
  border-radius: 6px 6px 14px 14px;
  background: linear-gradient(180deg, #D0CCC8 0%, #A8A4A0 50%, #C8C4C0 100%);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.25),
    inset 0 2px 3px rgba(255,255,255,0.5),
    inset 0 -2px 3px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-knob-slit {
  width: 3px;
  height: 16px;
  background: #1A1A1A;
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.8);
}

/* Square element */
.vm-square {
  background: #E8E6E4;
  border-radius: 8px;
  height: 52px;
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ========================================
   FEET
   ======================================== */
.vm-feet {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  margin-top: 0;
}

.vm-foot {
  width: 56px;
  height: 14px;
  background: linear-gradient(180deg, #C8C4C0, #B8B4B0);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.14);
}

/* ========================================
   DISCLAIMER FOOTER
   ======================================== */
.site-disclaimer {
  font-family: Inter, sans-serif;
  font-size: 0.58rem;
  color: #C0BCB8;
  text-align: center;
  padding: 10px 24px 14px;
  line-height: 1.6;
  flex-shrink: 0;
}

/* ========================================
   MOBILE — shared
   ======================================== */
@media (max-width: 680px) {
  .topbar {
    padding: 10px 16px;
  }
  .topbar-brand {
    font-size: 1.4rem;
  }
  .topbar-right {
    gap: 10px;
  }
  .nav-option {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  .country-bar {
    gap: 14px;
  }
  .country-opt {
    font-size: 0.72rem;
  }
}
