/* ============================================================
   KADENCE — Global Styles v2 (all 19 fixes applied)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #1A1818;
  --bg-panel: rgba(23, 23, 22, 0.85);
  --bg-card: rgba(255,255,255,0.06);
  --bg-card-hover: rgba(255,255,255,0.12);
  --text-primary: #FFFFFF;
  --text-secondary: #D4D4D4;
  --text-muted: #888;
  --accent-yellow: #FFE44A;
  --accent-green: #3AFF5E;
  --accent-blue: #5B8CE6;
  --accent-purple: #C14FD8;
  --accent-red: #FF7272;
  --accent-cyan: #36A3D9;
  --accent-teal: #017766;
  --border-white: rgba(255,255,255,0.6);
  --border-subtle: rgba(255,255,255,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --transition: all 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: var(--bg-dark); color: var(--text-primary);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#game-container {
  width: 100vw; height: 100vh; position: relative; overflow: hidden; background: var(--bg-dark);
  /* #3: Disable text/sprite selection */
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
#game-container img { -webkit-user-drag: none; user-select: none; }

.screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; z-index: 1; }
.screen.active { display: flex; flex-direction: column; }

.bg-layer {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center; z-index: 0;
}
/* #15: NO darkening overlay on game screen backgrounds */

.panel-overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--bg-panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.1);
  padding: 40px; z-index: 2;
}

/* ============================================================
   MAIN MENU — Pixel-perfect designer handoff
   ============================================================ */
#main-menu { align-items: flex-start; justify-content: flex-end; }
#main-menu .bg-layer { background-image: url('../assets/art/main_menu_background.jpg'); }

.menu-content {
  position: absolute;
  left: 122px;
  bottom: 98px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Title: Space Grotesk Medium 96px, color #1A1818 */
.menu-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 96px;
  color: #1A1818;
  letter-spacing: 2px;
  margin-bottom: 20px;
  line-height: 1;
}

/* Menu items: Montserrat Medium 32px, color #1A1818 */
.menu-btn {
  display: block;
  width: auto;
  padding: 0;
  margin-bottom: 8px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 32px;
  color: #1A1818;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, color 0.25s ease;
  letter-spacing: 0;
  line-height: 1.6;
}
.menu-btn:hover {
  opacity: 0.6;
  background: transparent;
  transform: none;
}
.menu-btn:active { opacity: 0.4; }
.menu-btn.hidden { display: none; }

/* Sound toggle: 59x59, right 60px, bottom 98px */
.sound-toggle {
  position: absolute;
  right: 60px;
  bottom: 98px;
  width: 59px;
  height: 59px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.sound-toggle:hover { opacity: 0.6; }
.sound-icon {
  width: 59px;
  height: 59px;
  object-fit: contain;
  pointer-events: none;
}

.version-tag {
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--text-muted);
  z-index: 3;
}

/* ============================================================
   PAUSE — Pixel-perfect Figma handoff
   ============================================================ */
#pause-screen { z-index: 100; align-items: center; justify-content: center; }
#pause-screen .bg-layer { background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); }

/* Title: Space Grotesk Medium 74px #FFFFFF, X=853 Y=84 */
.pause-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 74px;
  color: #FFFFFF;
  white-space: nowrap;
  margin-bottom: 40px;
}

/* Button container: vertical, gap 24px */
.pause-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Each button: 340x64, radius 8px, no fill, 1px #FFFFFF border */
.pause-btn {
  width: 340px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 32px;
  color: #FFFFFF;
  background: transparent;
  border: 1px solid #FFFFFF;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.pause-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.pause-btn:active {
  transform: scale(0.98);
}

/* ============================================================
   SETTINGS — Pixel-perfect Figma handoff (same container as Load/Save)
   ============================================================ */

/* Settings content: flexbox centered */
.st-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -42%);
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: max-content;
  max-width: 80vw;
}

/* Section */
.st-section { display: flex; flex-direction: column; gap: 22px; }

/* Section header: Montserrat SemiBold 32px #FFFFFF */
.st-section-header {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 32px;
  color: #FFFFFF;
}

/* Setting row: label left, control right */
.st-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Setting label: Montserrat Regular 32px #FFFFFF */
.st-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 32px;
  color: #FFFFFF;
  min-width: 260px;
}

/* Slider group: track + value */
.st-slider-group {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

/* Slider track: 386x36, no fill, stroke #FFF weight 1, radius 8 */
.st-slider-track {
  width: 386px;
  height: 36px;
  border: 1px solid #FFFFFF;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  padding: 0 8px;
  position: relative;
  overflow: hidden;
}

/* The actual range input inside */
.st-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.st-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}
.st-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
  border: none;
}

/* Slider value text: Montserrat Regular 28px #FFFFFF */
.st-slider-val {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 28px;
  color: #FFFFFF;
  width: 90px;
  min-width: 90px;
  flex-shrink: 0;
  text-align: right;
}

/* Select wrapper */
.st-select-wrap {
  position: relative;
  margin-left: auto;
  width: 260px;
  height: 36px;
}

/* Select: 260x36, fill #FFFFFF, no stroke, radius 8 */
.st-select {
  width: 100%;
  height: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 28px;
  color: #252424;
  background: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 0 36px 0 24px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
}
.st-select:focus { box-shadow: 0 0 0 2px rgba(54, 163, 217, 0.4); }

/* Chevron icon: 16x16, right side of select */
.st-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Select options */
.st-select option {
  background: #FFFFFF;
  color: #252424;
  font-size: 22px;
}

/* ============================================================
   ABOUT US — Pixel-perfect Figma handoff (1920x1080 base)
   ============================================================ */
#about-screen .bg-layer { background: var(--bg-dark); }

/* Blur backdrop behind the container */
.about-blur-backdrop {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1;
}

/* Main container: centered, flexbox layout */
.about-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(1800px, 94vw);
  height: min(936px, 90vh);
  background: rgba(23, 23, 22, 0.85);
  opacity: 0.7;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  z-index: 2;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Back button: 40x40, X=100, Y=105 */
.about-back-btn {
  position: absolute;
  top: 105px;
  left: 100px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: opacity 0.2s ease;
}
.about-back-btn:hover { opacity: 0.6; }
.about-back-btn svg { width: 24px; height: 24px; }

/* Title: centered */
.about-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 74px;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 84px;
}

/* Text body: centered content */
.about-body {
  padding: 0 8%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 28px;
  line-height: 39px;
  color: #FFFFFF;
}

.about-intro {
  margin-bottom: 22px;
}

.about-crew-header {
  margin-top: 10px;
}

/* Crew list */
.about-crew-list {
  margin-bottom: 22px;
}
.about-crew-member {
  margin-bottom: 22px;
  font-weight: 400;
}
.about-crew-member strong {
  font-weight: 700;
}
.about-crew-desc {
  font-weight: 500;
}

/* Devlog line */
.about-devlog {
  margin-top: 10px;
  font-weight: 400;
}
.about-devlog strong {
  font-weight: 700;
}

/* Version footer */
.about-version {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 20px;
  color: #D7D6D6;
  white-space: nowrap;
  margin-top: auto;
  padding-bottom: 49px;
  text-align: center;
}

/* Scrollbar for overflow */
.about-container::-webkit-scrollbar { width: 6px; }
.about-container::-webkit-scrollbar-track { background: transparent; }
.about-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* Responsive */
@media (max-width: 1850px) {
  .about-container { width: 94vw; height: auto; min-height: 600px; padding-bottom: 60px; }
  .about-body { width: calc(100% - 250px); }
}

/* ============================================================
   LOAD GAME — Pixel-perfect Figma handoff (1920x1080)
   ============================================================ */
#load-screen .bg-layer { background: var(--bg-dark); }

/* Blur backdrop 16px */
.lg-blur-backdrop {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 1;
}

/* Main panel: 1800x936, #171716 @ 85%, opacity 70%, blur 10px, radius 12px */
.lg-container {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 1800px; height: 936px; max-width: 94vw; max-height: 90vh;
  background: rgba(23, 23, 22, 0.85); opacity: 0.7;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 12px; z-index: 2; overflow-y: auto;
}

/* Back button: 40x40, X=100 Y=105 */
.lg-back-btn {
  position: absolute; top: 105px; left: 100px;
  width: 40px; height: 40px; background: transparent; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 3; transition: opacity 0.2s ease;
}
.lg-back-btn:hover { opacity: 0.6; }

/* Title: Space Grotesk Medium 74px #FFFFFF, X=799 Y=84 */
.lg-title {
  position: absolute; top: 84px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 500; font-size: 74px;
  color: #FFFFFF; white-space: nowrap;
}

/* Slots container */
.lg-slots {
  position: absolute; top: 203px; left: 385px;
  display: flex; flex-direction: column; gap: 24px;
}

/* Individual slot wrapper */
.lg-slot { position: relative; }

/* Slot header */
.lg-slot-header {
  margin-bottom: 5px;
}
.lg-slot-name {
  font-family: var(--font-body); font-weight: 600; font-size: 32px; color: #FFFFFF;
  margin-bottom: 5px;
}
.lg-slot-playtime {
  font-family: var(--font-body); font-weight: 500; font-size: 16px; color: #FFFFFF;
}

/* Card container: 1151x120, stroke #FFF weight 1, radius 8 */
.lg-card {
  margin-top: 4px; width: 1151px; height: 120px;
  border: 1px solid #FFFFFF; border-radius: 8px;
  position: relative; overflow: hidden;
  display: flex; align-items: stretch; cursor: pointer;
  transition: background 0.15s ease;
}
.lg-card:hover { background: rgba(255,255,255,0.05); }

/* Stats text inside card (left side) */
.lg-card-stats {
  width: 400px; flex-shrink: 0;
  padding: 16px 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  font-family: var(--font-body); font-weight: 500; font-size: 20px; color: #D4D4D4;
  z-index: 2; position: relative;
}
.lg-card-stat-row { display: flex; gap: 24px; }

/* Preview image area: 747x119 — full character on a themed gradient (not a cropped slice) */
.lg-card-preview {
  position: absolute; top: 0; right: 0;
  width: 747px; height: 119px; overflow: hidden; opacity: 1;
  background: linear-gradient(120deg, rgba(0,147,126,0.10) 0%, rgba(54,163,217,0.18) 100%);
  display: flex; align-items: center; justify-content: flex-end; padding-right: 28px;
}
.lg-card-preview img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35)); }
.lg-card-preview-placeholder {
  width: 100%; height: 100%; background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,0.15);
}

/* Delete icon: 17x17, top-right corner */
.lg-card-delete {
  position: absolute; top: 8px; right: 8px;
  width: 17px; height: 17px; background: none; border: none;
  cursor: pointer; z-index: 3; opacity: 0.5; transition: opacity 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.lg-card-delete:hover { opacity: 1; }
.lg-card-delete svg { width: 17px; height: 17px; }

/* LOAD button: 138x23, bg #36A3D9, Montserrat Bold 16px #FFF */
.lg-card-load {
  position: absolute; bottom: 8px; right: 8px;
  width: 138px; height: 23px; background: #36A3D9; border: none; border-radius: 4px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; color: #FFFFFF;
  cursor: pointer; z-index: 3; transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.lg-card-load:hover { background: #4ab8e8; }

/* Empty slot — full width with left padding so the text has air, not glued to the wall */
.lg-card-empty {
  width: 100%;
  padding-left: 24px;
  display: flex;
  align-items: center;
  font-family: var(--font-body); font-weight: 400; font-size: 20px;
  color: rgba(255,255,255,0.3); font-style: italic;
}

.lg-container::-webkit-scrollbar { width: 6px; }
.lg-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* ============================================================
   GAME SCREEN — #5 no client note, #6 sprite right, #15 no darken
   ============================================================ */
#game-screen { position: relative; }
#game-screen .bg-layer { background-image: url('../assets/art/background_clean.jpg'); background-position: center bottom; }

/* #2: Sprite bigger, closer to counter */
.character-sprite {
  position: absolute; bottom: 0; right: 22%;
  height: 85vh;
  min-height: 700px;
  max-height: 1200px;
  z-index: 3;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
  transition: opacity 0.3s ease;
}

/* #14: Pause button in its own corner, not overlapping */
.game-top-bar {
  position: absolute; top: 20px; right: 20px; z-index: 10;
  display: flex; align-items: center; gap: 16px;
}
.info-chip {
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  padding: 8px 16px; font-family: var(--font-body); font-weight: 500; font-size: 16px;
}
.info-chip span { color: var(--accent-yellow); }
.pause-trigger {
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  padding: 8px 14px; color: var(--text-primary); font-size: 20px;
  cursor: pointer; transition: var(--transition); line-height: 1;
}
.pause-trigger:hover { background: rgba(255,255,255,0.15); }

/* Dialogue box */
.dialogue-container {
  position: absolute; bottom: 0; left: 0; width: 100%; z-index: 10;
}
.dialogue-box {
  background: rgba(10,10,10,0.85); backdrop-filter: blur(16px);
  border: none; border-top: 2px solid rgba(255,255,255,0.2); border-radius: 0;
  padding: 32px 10%; height: 220px; box-sizing: border-box; cursor: pointer;
}
.dialogue-speaker {
  font-family: var(--font-display); font-weight: 600; font-size: calc(18px + 0.3vw);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px;
}
.dialogue-speaker.narrator { color: var(--text-muted); font-style: italic; text-transform: none; }
.dialogue-speaker.ash { color: var(--accent-cyan); }
.dialogue-speaker.hanna { color: #FF9EC6; }
.dialogue-speaker.tony { color: #FFB347; }
.dialogue-speaker.dzed { color: #A8D8A8; }
.dialogue-speaker.vitalya { color: #FF6B6B; }
.dialogue-speaker.ewa { color: #DDA0DD; }
.dialogue-speaker.syalyanych { color: #D2B48C; }
.dialogue-text {
  font-family: var(--font-body); font-weight: 400; font-size: calc(20px + 0.4vw);
  line-height: 1.6; color: var(--text-primary);
}
.dialogue-continue {
  font-family: var(--font-body); font-weight: 400; font-size: calc(12px + 0.1vw);
  color: var(--text-muted); text-align: right; margin-top: 10px;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* DIALOGUE CHOICES — Pixel-perfect Figma handoff */
.choices-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 90vw;
}
.choice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 692px;
  max-width: 90vw;
  min-height: 69px;
  height: auto;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.3;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  padding: 16px 32px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}
.choice-btn:hover {
  background: rgba(30, 30, 30, 0.92);
  border-color: var(--accent-cyan);
  transform: scale(1.03);
}
.choice-btn:active {
  transform: scale(0.98);
}
/* System buttons (Build the bike, More Options) — Medium weight */
.choice-btn-system {
  font-weight: 500;
}

/* ============================================================
   WORKSHOP / BIKE CUSTOMIZATION — Pixel-perfect Figma handoff
   ============================================================ */
#workshop-screen { position: relative; background: #1A1818; }
/* The workshop background lives on a dedicated .bg-layer (same proven pattern as the
   dialogue screen) so it reliably renders. Slight darkening comes from .ws-overlay. */
#workshop-screen .bg-layer { background-image: url('../assets/art/workshop_bg.jpg'); }

/* Subtle darkening so the bike pops, while the background stays visible */
.ws-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 10, 12, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
}

/* Top control buttons: 40x40, radius 12px */
.ws-top-btn {
  position: absolute;
  top: 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.15s ease;
  z-index: 10;
}
.ws-top-btn:hover { opacity: 0.8; transform: scale(1.05); }
.ws-top-btn:active { transform: scale(0.95); }

/* Back button: left 40px, bg #F4F4F4 */
.ws-back-btn {
  left: 40px;
  background: #F4F4F4;
}

/* Top-right group: balance + close */
.ws-top-right {
  position: absolute;
  top: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

/* Balance chip: readable over the background image */
.ws-balance {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  color: #FFFFFF;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 9px 14px;
}
.ws-balance-val {
  color: #33FF41;
}

/* Close button: bg #FF7272 */
.ws-close-btn {
  position: relative;
  top: auto;
  right: auto;
  background: #FF7272;
}

/* ============================================================
   LEFT: BIKE CARD — 906x604, #FFFFFF, radius 24px, shadow
   ============================================================ */
.ws-bike-card {
  width: 906px;
  height: 604px;
  max-width: 50vw;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0px 10px 12px rgba(0, 0, 0, 0.4);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.ws-bike-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-bike-svg {
  width: 82%;
  height: auto;
  opacity: 0.98;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.12));
}

/* ============================================================
   INTERACTIVE LABELS — clickable part annotations
   ============================================================ */
.ws-label {
  position: absolute;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 5;
}
.ws-label:hover {
  transform: scale(1.05);
  opacity: 0.85;
}
.ws-label:active {
  transform: scale(0.98);
}

/* Label line (connector) */
.ws-label-line {
  width: 40px;
  height: 2px;
  background: #1E2C72;
  opacity: 0.4;
  margin-bottom: 4px;
}

/* Label text — compact "callout pill" so long RU names never overlap the bike unreadably */
.ws-label-text {
  display: inline-block;
  white-space: normal;
  max-width: 148px;
  word-wrap: break-word;
  background: rgba(255,255,255,0.92);
  padding: 4px 8px;
  border-radius: 7px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.ws-label-cat {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: #1E2C72;
  line-height: 1.15;
}
.ws-label-part {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: #079F11;
  margin-left: 4px;
  line-height: 1;
}

/* Label positions (hand-placed relative to bike illustration) */
.ws-label-frame {
  top: 150px;
  left: 40px;
}
.ws-label-drivetrain {
  bottom: 50px;
  left: 40px;
}
.ws-label-brakes {
  top: 80px;
  right: 40px;
}
.ws-label-wheels {
  bottom: 50px;
  right: 40px;
}
.ws-label-saddle {
  top: 40px;
  left: 150px;
}

/* ============================================================
   RIGHT: STATS COLUMN
   ============================================================ */
/* ============================================================
   RIGHT: STATS COLUMN — glass dashboard panel (consistent type scale)
   ============================================================ */
.ws-stats-col {
  width: 440px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(16, 16, 18, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.ws-stats-col::-webkit-scrollbar { width: 5px; }
.ws-stats-col::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

.ws-stats-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

/* Stat row: compact label + thin bar */
.ws-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ws-stat-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-secondary);
  min-width: 96px;
}
.ws-stat-bar-track {
  flex: 1;
  height: 22px;
  border-radius: 11px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
  position: relative;
}
.ws-stat-bar-fill {
  height: 100%;
  border-radius: 11px;
  transition: width 0.4s ease;
  min-width: 0;
}

/* Build list (equipped parts) */
.ws-build-status {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 4px;
}
.slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  font-family: var(--font-body);
  font-size: 14px;
}
.slot.filled { background: rgba(0,147,126,0.22); }
.slot-cat { color: var(--text-secondary); font-weight: 600; }
.slot-name { color: #FFFFFF; font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.slot-empty { color: var(--text-muted); }
.slot em { color: var(--text-muted); font-weight: 400; font-style: normal; }

/* Total cost */
.ws-total-cost {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ws-total-cost span { color: var(--accent-yellow); }

/* ORDER button */
.ws-order-btn {
  width: 100%;
  height: 52px;
  background: #079F11;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: #FFFFFF;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  letter-spacing: 1px;
}
.ws-order-btn:hover { background: #0ab816; transform: scale(1.01); }
.ws-order-btn:active { transform: scale(0.99); }
.ws-order-btn:disabled {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.4);
  cursor: not-allowed;
  transform: none;
}
.ws-order-btn.ready { animation: wsReadyPulse 1.6s infinite; }
@keyframes wsReadyPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(7,159,17,0.55); }
  50% { box-shadow: 0 0 0 12px rgba(7,159,17,0); }
}

.ws-order-hint {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  min-height: 18px;
  text-align: center;
}
.ws-order-hint.ready { color: var(--accent-green); font-weight: 700; }

/* Toast pop-up (equipped/removed part confirmation) */
.toast {
  position: fixed; top: 28px; left: 50%; transform: translate(-50%, -20px);
  background: rgba(0,147,126,0.96); color: #fff; font-family: var(--font-body); font-weight: 600; font-size: 18px;
  padding: 12px 24px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* First-build onboarding tutorial */
.onboard-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); z-index: 320; align-items: center; justify-content: center; }
.onboard-overlay.active { display: flex; }
.onboard-box { width: 560px; max-width: 92vw; background: #FFFFFF; border-radius: 18px; padding: 34px 38px; box-shadow: 0 16px 50px rgba(0,0,0,0.4); }
.onboard-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: #1F7A63; margin-bottom: 16px; }
.onboard-body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: #3A3A3A; }
.onboard-body p { margin-bottom: 10px; padding-left: 22px; position: relative; }
.onboard-body p:before { content: '✓'; position: absolute; left: 0; color: #1F7A63; font-weight: 700; }
.onboard-btn { margin-top: 18px; width: 100%; height: 50px; background: #00937E; border: none; border-radius: 12px; font-family: var(--font-body); font-weight: 700; font-size: 18px; color: #fff; cursor: pointer; transition: background 0.15s; }
.onboard-btn:hover { background: #01b896; }

/* Filled vs empty part labels — makes the build state obvious */
.ws-label.filled .ws-label-line { background: #079F11; opacity: 0.75; }
.ws-label.filled .ws-label-cat { color: #079F11; }
.ws-label.filled .ws-label-part { color: #057a0c; }
.ws-label:not(.filled):not(.ws-label-accessories) { animation: wsHint 2.2s ease-in-out infinite; }
@keyframes wsHint { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

/* Accessories label sits at the bottom-center of the bike card (optional slot) */
.ws-label-accessories { bottom: 16px; left: 50%; width: 260px; margin-left: -130px; text-align: center; }
.ws-label-accessories .ws-label-line { display: none; }
.ws-label-accessories .ws-label-text { max-width: 260px; }
.ws-label-optional { font-style: italic; font-weight: 400; font-size: 14px; opacity: 0.7; }

/* ============================================================
   SHOP OVERLAY — slides in when clicking a part label
   ============================================================ */
.ws-shop-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 40px;
}
.ws-shop-overlay.hidden { display: none; }

.ws-shop-panel {
  width: 480px;
  max-height: 90vh;
  background: rgba(30,30,30,0.95);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
  from { transform: translateX(60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.ws-shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ws-shop-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: #FFFFFF;
}
.ws-shop-close {
  width: 32px; height: 32px;
  background: #FF7272;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.ws-shop-close:hover { opacity: 0.8; }

.ws-shop-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ws-shop-list::-webkit-scrollbar { width: 6px; }
.ws-shop-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* Shop item card */
.ws-shop-item {
  background: #D8D5C6;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}
.ws-shop-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.ws-shop-item.equipped {
  border-color: #079F11;
  opacity: 0.7;
  pointer-events: none;
}

.ws-shop-item-brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  color: #515151;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.ws-shop-item-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: #3B3B3B;
  margin-bottom: 4px;
}
.ws-shop-item-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: #515151;
  line-height: 1.4;
  margin-bottom: 6px;
}
.ws-shop-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ws-shop-item-stats {
  display: flex;
  gap: 6px;
}
.ws-shop-item-cost {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: #3B3B3B;
}
.ws-shop-item-add {
  padding: 6px 14px;
  background: #017766;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.ws-shop-item-add:hover { background: #01937e; }
.ws-shop-item-add.equipped-btn { background: #999; cursor: default; }

/* ============================================================
   RESULT / REVIEW — #11 fixed scoring display
   ============================================================ */
#result-screen { align-items: center; justify-content: center; }
.result-panel {
  width: 600px; max-width: 90vw;
  background: var(--bg-panel); backdrop-filter: blur(16px);
  border: 1px solid var(--border-white); border-radius: var(--radius-md);
  padding: 40px; text-align: center;
}
.result-title { font-family: var(--font-display); font-weight: 600; font-size: 36px; margin-bottom: 24px; }
.result-stars { font-size: 48px; margin-bottom: 16px; letter-spacing: 4px; }
.result-review { font-family: var(--font-body); font-weight: 400; font-size: 18px; color: var(--text-secondary); margin-bottom: 24px; font-style: italic; line-height: 28px; }
.result-earnings { font-family: var(--font-body); font-weight: 700; font-size: 28px; color: var(--accent-green); margin-bottom: 30px; }
.result-delivery { text-align: left; margin-bottom: 24px; }
.result-btn {
  padding: 14px 40px; font-family: var(--font-body); font-weight: 600; font-size: 18px;
  color: var(--bg-dark); background: var(--text-primary); border: none;
  border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
}
.result-btn:hover { background: var(--accent-cyan); }

/* ============================================================
   END GAME — #17: Main Menu button instead of Play Again
   ============================================================ */
#end-screen { align-items: center; justify-content: center; }
.end-panel {
  width: 600px; max-width: 90vw;
  background: var(--bg-panel); backdrop-filter: blur(16px);
  border: 1px solid var(--border-white); border-radius: var(--radius-md);
  padding: 50px; text-align: center;
}
.end-title { font-family: var(--font-display); font-weight: 700; font-size: 48px; margin-bottom: 30px; }
.end-stats { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.end-stat-row { display: flex; justify-content: space-between; font-family: var(--font-body); font-size: 22px; }
.end-stat-label { color: var(--text-secondary); }
.end-stat-value { font-weight: 700; color: var(--accent-yellow); }
.end-goodbye {
  margin-top: 30px;
  padding: 20px;
  background: rgba(0, 147, 126, 0.1);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  text-align: left;
}

/* ============================================================
   SUBMIT POPUP — Pixel-perfect Figma handoff
   ============================================================ */
.confirm-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
}
.confirm-overlay.active { display: flex; }

/* Container: 531x212, no fill, border 1px #FFF, radius 8 */
.confirm-box {
  width: 531px;
  height: 212px;
  background: #1A1818;
  border: 1px solid #FFFFFF;
  border-radius: 8px;
  box-shadow: 0px 10px 30px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* Text: Montserrat Regular 32px #FFFFFF */
.confirm-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 32px;
  color: #FFFFFF;
}

/* Button row */
.confirm-actions {
  display: flex;
  gap: 20px;
}

/* Both buttons: 170x42, no fill, border 1px #FFF, radius 8 */
.confirm-btn {
  width: 170px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  color: #FFFFFF;
  background: transparent;
  border: 1px solid #FFFFFF;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.confirm-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.confirm-btn:active {
  transform: scale(0.97);
}
/* Primary (Yes) — slightly highlighted on hover */
.confirm-btn.primary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden { display: none !important; }
/* Smooth entrance for the workshop / store screens */
.screen.screen-in { animation: screenIn 0.4s ease both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px) scale(0.992); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.slide-up { animation: slideUp 0.5s ease forwards; }
@keyframes slideUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes starPop { 0%{transform:scale(0);opacity:0} 50%{transform:scale(1.3)} 100%{transform:scale(1);opacity:1} }
.star-animate { display: inline-block; animation: starPop 0.4s ease forwards; }

/* ============================================================
   BIKESUPPLY STORE — Full e-commerce layout (Inter font)
   ============================================================ */
#store-screen { background: #F5F5F0; }
.store-wrapper { width: 100%; height: 100%; display: flex; flex-direction: column; font-family: 'Inter', sans-serif; }

/* HEADER */
.store-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; background: #FFFFFF; border-bottom: 1px solid #E6E6E2;
  flex-shrink: 0;
}
.store-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 36px; color: #035045; }

/* Prominent "Back to Workshop" button — easy way out without hunting the X */
.store-back-btn {
  display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 16px; margin-right: 12px;
  background: rgba(3,80,69,0.08); border: 1px solid rgba(3,80,69,0.25); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; color: #035045;
  cursor: pointer; transition: background 0.15s, transform 0.1s; white-space: nowrap;
}
.store-back-btn:hover { background: rgba(3,80,69,0.16); transform: translateX(-2px); }
.store-back-btn:active { transform: translateX(0) scale(0.98); }
.store-search { display: flex; align-items: center; gap: 8px; width: 359px; height: 40px; border: 0.8px solid rgba(81,81,81,0.4); border-radius: 8px; padding: 0 12px; margin-right: auto; margin-left: 32px; }
.store-search-icon { flex-shrink: 0; }
.store-search-input { flex: 1; border: none; outline: none; font-family: 'Inter', sans-serif; font-size: 14px; color: #3B3B3B; background: transparent; }
.store-search-input::placeholder { color: #515151; }
.store-user { display: flex; align-items: center; gap: 24px; }
.store-balance { font-family: 'Inter', sans-serif; font-size: 14px; color: #515151; }
.store-balance-val { font-weight: 700; color: #00937E; }
.store-icons { display: flex; align-items: center; gap: 20px; }
.store-icon-btn { position: relative; width: 24px; height: 24px; cursor: pointer; background: none; border: none; display: flex; align-items: center; justify-content: center; }
.store-icon-btn:hover { opacity: 0.7; }
.store-cart-dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; background: #00937E; border-radius: 50%; }
.store-close-x { cursor: pointer; }

/* MAIN AREA */
.store-main { flex: 1; display: flex; overflow: hidden; }

/* FILTERS SIDEBAR */
.store-filters { width: 302px; flex-shrink: 0; padding: 24px 20px; overflow-y: auto; background: #FFFFFF; }
.store-filters-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.store-filters-title { font-weight: 700; font-size: 20px; color: #3B3B3B; }
.store-filters-clear { font-weight: 400; font-size: 14px; color: #515151; background: none; border: none; cursor: pointer; }
.store-filters-clear:hover { text-decoration: underline; }

.filter-section { margin-bottom: 16px; }
.filter-section-header {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 8px 0; background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px; color: #3B3B3B;
}
.filter-section-header:hover { opacity: 0.8; }
.filter-chevron { transition: transform 0.2s ease; }
.filter-section.collapsed .filter-chevron { transform: rotate(-90deg); }
.filter-section.collapsed .filter-section-body { display: none; }
.filter-section-body { padding: 8px 0; display: flex; flex-direction: column; gap: 6px; }

.filter-check {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: 14px; color: #3B3B3B;
  cursor: pointer; padding: 4px 8px; border-radius: 4px;
  border: 0.8px solid transparent; transition: border-color 0.15s ease;
}
.filter-check:hover { border-color: rgba(81,81,81,0.3); }
.filter-check input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: #017766; cursor: pointer;
  border: 1px solid #017766; border-radius: 2px;
}

.filter-price-labels { display: flex; justify-content: space-between; font-size: 14px; color: #3B3B3B; margin-bottom: 8px; }
.filter-slider { width: 100%; accent-color: #017766; }

/* DIVIDER */
.store-divider { width: 1px; background: #E6E6E2; flex-shrink: 0; }

/* PRODUCTS AREA */
.store-products-area { flex: 1; display: flex; flex-direction: column; padding: 24px 32px; overflow-y: auto; }
.store-products-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.store-showing { font-weight: 400; font-size: 20px; color: #3B3B3B; }
.store-sort { display: flex; align-items: center; gap: 8px; }
.store-sort-label { font-weight: 400; font-size: 14px; color: #3B3B3B; }
.store-sort-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: #017766; border: none; border-radius: 6px;
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: 14px;
  color: rgba(255,255,255,0.8); cursor: pointer;
}

/* PRODUCT GRID */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, 301px); gap: 20px; margin-bottom: 32px; align-items: start; }

/* PRODUCT CARD — auto height so the full description always fits */
.store-card {
  width: 301px; min-height: 340px; background: #D8D5C6;
  border: 0.6px solid rgba(255,255,255,0.2); border-radius: 8px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease; cursor: pointer;
}
.store-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }

/* Card image area: white bg */
.store-card-img { width: 100%; height: 190px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.store-card-img-real { width: 100%; height: 100%; object-fit: contain; position: absolute; top: 0; left: 0; z-index: 1; }
.store-card-img-placeholder { font-size: 48px; opacity: 0.15; z-index: 0; }

/* Category label badge (top-left) — instantly shows what kind of part it is */
.store-card-cat {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  background: rgba(26,24,24,0.82); color: #fff;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 0.3px; padding: 3px 9px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px; backdrop-filter: blur(2px);
}
.store-card-equipped-badge { position: absolute; top: 8px; right: 8px; background: #00937E; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; z-index: 3; }

/* Card body */
.store-card-body { flex: 1; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.store-card-brand { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #8a8a82; }
.store-card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.store-card-tag {
  height: 18px; padding: 0 9px; display: inline-flex; align-items: center;
  border-radius: 4px; background: rgba(0,0,0,0.06);
  font-weight: 700; font-size: 11px; color: #515151;
}
.store-card-name { font-weight: 700; font-size: 16px; color: #3B3B3B; line-height: 1.2; }
/* Full description, never truncated */
.store-card-desc { font-weight: 400; font-size: 13px; color: #515151; line-height: 1.35; white-space: normal; }
.store-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 4px; }
.store-card-price { font-weight: 700; font-size: 18px; color: #3B3B3B; }
.store-card-add {
  min-width: 110px; height: 30px; background: #00937E; border: none; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; color: #FFFFFF;
  cursor: pointer; transition: background 0.15s, filter 0.15s; padding: 0 12px;
}
.store-card-add:hover { background: #01b896; }
.store-card-add.equipped-btn { background: #7A7D85; color: #fff; cursor: pointer; }
.store-card-add.equipped-btn:hover { background: #a02c2c; color: #fff; }

/* PAGINATION */
.store-pagination { display: none !important; }
.store-pagination-line { width: 302px; height: 0; border-top: 1px solid #515151; }
.store-pagination-controls { display: flex; gap: 7px; align-items: center; }
.store-page-btn {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0.8px solid #515151; border-radius: 4px;
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: 14px; color: #515151;
  cursor: pointer; transition: all 0.15s;
}
.store-page-btn.active { background: #017766; border-color: #017766; color: #D9D9D9; font-weight: 700; }
.store-page-btn:hover:not(.active) { border-color: #017766; color: #017766; }
.store-load-more {
  width: 180px; height: 26px; background: #017766; border: none; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: 12px;
  color: rgba(255,255,255,0.8); cursor: pointer; transition: background 0.15s;
}
.store-load-more:hover { background: #01937e; }

@media (max-width: 1200px) {
  .workshop-layout { flex-direction: column; padding: 15px; gap: 15px; }
  .ws-bike-card { width: 90vw; height: auto; min-height: 400px; }
  .ws-stats-col { width: 90vw; }
  .ws-stat-bar-track { width: 100%; }
  .menu-title { font-size: 64px; }
  .pause-title { font-size: 48px; }
}

/* ============================================================
   STORE THEME MODAL + DARK THEME
   ============================================================ */
.store-theme-modal { display: none; position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 50; align-items: center; justify-content: center; }
.store-theme-modal.active { display: flex; }
.store-theme-box { background: #FFFFFF; border-radius: 16px; padding: 30px 34px; box-shadow: 0 12px 44px rgba(0,0,0,0.35); text-align: center; }
.store-theme-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 22px; color: #2A2A2A; margin-bottom: 20px; }
.store-theme-actions { display: flex; gap: 14px; }
.store-theme-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 124px; padding: 18px 10px; border: 1.5px solid #DDD; border-radius: 14px; background: #FAFAFA; cursor: pointer; transition: all 0.15s; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px; color: #2A2A2A; }
.store-theme-btn:hover { border-color: #00937E; background: #F0FBF8; transform: translateY(-2px); }
.store-theme-btn .t-icon { font-size: 32px; line-height: 1; }

/* DARK store theme */
#store-screen.dark { background: #14151A; color: #E6E6E6; }
#store-screen.dark .store-header { background: #1C1D24; border-color: #2A2B33; }
#store-screen.dark .store-logo { color: #3FCFB0; }
#store-screen.dark .store-search { background: #1C1D24; border-color: #3A3B43; }
#store-screen.dark .store-search-input { color: #E6E6E6; }
#store-screen.dark .store-search-input::placeholder { color: #888; }
#store-screen.dark .store-balance { color: #A9A9A9; }
#store-screen.dark .store-filters { background: #1C1D24; }
#store-screen.dark .filter-section-header { color: #C9C9C9; }
#store-screen.dark .filter-check { color: #C9C9C9; }
#store-screen.dark .filter-price-labels { color: #C9C9C9; }
#store-screen.dark .store-divider { background: #2A2B33; }
#store-screen.dark .store-showing { color: #C9C9C9; }
#store-screen.dark .store-card { background: #23252E; border-color: #2E303A; }
#store-screen.dark .store-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
#store-screen.dark .store-card-name { color: #F2F2F2; }
#store-screen.dark .store-card-brand { color: #8A8F98; }
#store-screen.dark .store-card-desc { color: #A9AEB8; }
#store-screen.dark .store-card-price { color: #F2F2F2; }
#store-screen.dark .store-card-tag { background: rgba(255,255,255,0.10); color: #C9C9C9; }
#store-screen.dark .store-theme-box { background: #23252E; }
#store-screen.dark .store-theme-title { color: #F2F2F2; }
#store-screen.dark .store-theme-btn { background: #2E303A; border-color: #3A3C46; color: #E6E6E6; }
#store-screen.dark .store-filters-title { color: #E6E6E6; }
#store-screen.dark .store-filters-clear { color: #8AB8AE; }
#store-screen.dark .store-sort-btn { background: #2A2B33; color: #C9C9C9; }
#store-screen.dark .store-back-btn { background: rgba(63,207,176,0.14); border-color: rgba(63,207,176,0.4); color: #3FCFB0; }
#store-screen.dark .store-sort-label { color: #C9C9C9; }
#store-screen.dark .store-icon-btn path { stroke: #D7D7D7; }
#store-screen.dark .store-icon-btn:hover { opacity: 0.8; }
