/* ---- Shared kiosk navigation bar ---- */

.kiosk-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding: 0 14px env(safe-area-inset-bottom, 0px);
  background: rgba(0,0,0,0.96);
  border-top: 1px solid #1e5c1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 200;
}

.kiosk-hud {
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #e6dc32;
  text-shadow: 0 0 10px #e6dc32;
  text-transform: uppercase;
  white-space: nowrap;
}

.kiosk-btn {
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #e6dc32;
  text-shadow: 0 0 10px #e6dc32;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 5px;
  background: linear-gradient(to bottom, #172017, #0c150c);
  border: 1px solid #2a5a2a;
  border-bottom: 3px solid #060e06;
  box-shadow: 0 4px 10px rgba(0,0,0,0.75), inset 0 1px 0 rgba(50,200,50,0.08);
  transition: box-shadow .1s, transform .1s, border-color .15s, text-shadow .15s;
}
.kiosk-btn:hover {
  border-color: #3a8a3a;
  border-bottom-color: #0a1e0a;
  text-shadow: 0 0 10px #e6dc32;
}
.kiosk-btn:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.75), inset 0 2px 5px rgba(0,0,0,0.5);
}

.kiosk-btn-active {
  cursor: default;
  opacity: 0.2;
  pointer-events: none;
}

.kiosk-btn-inert {
  cursor: default;
  pointer-events: none;
}

.shake { animation: coin-shake 0.28s ease; }

@keyframes coin-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-4px); }
  40%     { transform: translateX( 4px); }
  60%     { transform: translateX(-3px); }
  80%     { transform: translateX( 3px); }
}

@keyframes coin-flash {
  0%   { color: #e6dc32; text-shadow: 0 0 10px #e6dc32; box-shadow: none; }
  12%  {
    color: #fff;
    text-shadow: 0 0 6px #fff, 0 0 20px #fff, 0 0 40px #e6dc32, 0 0 80px #e6dc32, 0 0 140px #e6dc32;
    box-shadow: 0 0 20px #e6dc32, 0 0 50px #e6dc32, 0 0 90px rgba(230,220,50,0.5);
  }
  100% { color: #e6dc32; text-shadow: 0 0 10px #e6dc32; box-shadow: none; }
}
.coin-flash { animation: coin-flash 0.65s ease-out !important; }

/* Narrow portrait phones (≤ 480 px) — shrink text so all three bar items fit */
@media (max-width: 480px) {
  .kiosk-btn { font-size: 13px; letter-spacing: 0; padding: 7px 10px; }
}

/* ---- Left badge group ---- */
.left-badges {
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  left: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: opacity .3s;
}

@media (max-width: 600px) {
  /* badges hide when scrolled to the bottom to avoid crowding the kiosk bar */
  .left-badges.near-bottom {
    opacity: 0;
    pointer-events: none;
  }
  /* lang switcher hides when near the bottom for the same reason */
  .lang-switcher.near-bottom {
    opacity: 0;
    pointer-events: none;
  }
  /* shrink avatars so they sit inside the card's left padding zone */
  .about-avatar,
  .history-avatar {
    width: 32px;
    height: 32px;
  }
}

.lang-switcher { transition: opacity .3s; }

.about-badge,
.history-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color .2s;
}

.about-badge   { color: #444; }
.history-badge { color: #444; }

.about-avatar,
.history-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #222;
  display: block;
  transition: border-color .2s, box-shadow .2s, filter .2s;
}
.about-avatar   { filter: grayscale(40%) brightness(0.8); }
.history-avatar { filter: grayscale(20%) brightness(0.7); }

.about-label,
.history-label {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.about-label   { text-shadow: 0 0 8px #D97757; color: #D97757; }
.history-label { text-shadow: 0 0 8px #e6dc32; color: #e6dc32; }

/* hover */
.about-badge:hover   { color: #D97757; }
.history-badge:hover { color: #e6dc32; }

.about-badge:hover .about-label,
.history-badge:hover .history-label {
  opacity: 1;
  transform: translateX(0);
}
.about-badge:hover .about-avatar {
  border-color: #D97757;
  box-shadow: 0 0 12px rgba(217,119,87,0.45);
  filter: none;
}
.history-badge:hover .history-avatar {
  border-color: #e6dc32;
  box-shadow: 0 0 12px rgba(230,220,50,0.45);
  filter: none;
}

/* active (current page) */
.about-badge.active   { cursor: default; color: #D97757; }
.history-badge.active { cursor: default; color: #e6dc32; }

.about-badge.active .about-label,
.history-badge.active .history-label {
  opacity: 1;
  transform: translateX(0);
}
.about-badge.active .about-avatar {
  border-color: #D97757;
  box-shadow: 0 0 12px rgba(217,119,87,0.45);
  filter: none;
}
.history-badge.active .history-avatar {
  border-color: #e6dc32;
  box-shadow: 0 0 12px rgba(230,220,50,0.45);
  filter: none;
}
