/* ============================================================
   Puzzsal Website — styles.css
   Brand tokens from lib/core/theme/color_palette.dart
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg:           #1A1A2E;
  --bg-variant:   #252540;
  --text:         #EDEAFF;
  --text-muted:   #9E9BBF;
  --brand:        #6B7FD7;
  --grad-start:   #7B2FF7;
  --grad-end:     #5E35B1;

  /* 16 game accents */
  --sudoku:       #4F86C6;
  --solitaire:    #5BAE7B;
  --slide-num:    #E8A04A;
  --minesweeper:  #E53935;
  --memory:       #9B72CF;
  --hangman:      #8B6F47;
  --snake:        #4FB85C;
  --word-finder:  #2A9D8F;
  --water-sort:   #26C6DA;
  --slide-combo:  #E91E63;
  --tictactoe:    #5C6BC0;
  --chess:        #795548;
  --chess-puzzle: #FFB300;
  --merge-blocks: #5E35B1;
  --stress-cut:   #FF5722;
  --arrow-escape: #00897B;

  --radius:       16px;
  --radius-sm:    8px;
  --nav-h:        64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(107, 127, 215, 0.18);
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 5vw, 3rem);
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links a {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(107, 127, 215, 0.15);
}
.lang-toggle {
  margin-left: 0.5rem;
  padding: 0.38rem 0.75rem;
  background: rgba(123, 47, 247, 0.22);
  border: 1px solid rgba(123, 47, 247, 0.4);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.lang-toggle:hover {
  background: rgba(123, 47, 247, 0.4);
  border-color: rgba(123, 47, 247, 0.7);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg-variant);
  border-bottom: 1px solid rgba(107, 127, 215, 0.15);
  padding: 0.5rem 1.5rem 1rem;
}
.mobile-menu a {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-size: 0.97rem;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ---------- Hero (index only) ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 6vw, 4rem);
  gap: clamp(2rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(123,47,247,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(94,53,177,0.18) 0%, transparent 60%);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-content {
  flex: 1 1 340px;
  max-width: 520px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  background: rgba(123,47,247,0.22);
  border: 1px solid rgba(123,47,247,0.45);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: #c4a9ff;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 30%, #c4a9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 400px;
}
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.store-btn-play {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: #fff;
  box-shadow: 0 4px 18px rgba(123,47,247,0.35);
}
.store-btn-apple {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(123,47,247,0.4); }
.store-btn .soon {
  font-size: 0.68rem;
  background: rgba(255,255,255,0.25);
  padding: 0.1rem 0.45rem;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.store-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Phone Mockup (iPhone 16 Pro) ---------- */
.hero-visual {
  flex: 1 1 430px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-50px);
}

/* Wrapper — gives room for protruding side buttons */
.iph-wrap {
  position: relative;
  width: 429px; /* 405 frame + 12px each side */
}

/* Phone body — titanium gradient border, black screen
   Real iPhone 16 Pro: 71.6 mm × 147.6 mm → 405 × 837 px (1.5× display scale) */
.phone-frame {
  width: 405px;
  height: 837px;
  border-radius: 75px;
  border: 10px solid transparent;
  background:
    #000 padding-box,
    linear-gradient(175deg,
      #6e6e6e 0%, #424242 18%,
      #2c2c2c 38%, #3e3e3e 58%,
      #626262 78%, #404040 100%) border-box;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.07),
    0 40px 100px rgba(0,0,0,0.8),
    0 10px 40px rgba(0,0,0,0.55);
  position: relative;
  overflow: hidden;
  margin: 0 12px;
}

/* Top gradient — blends Android status bar area */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 108px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.82) 0%, transparent 100%);
  z-index: 8;
  pointer-events: none;
}
/* Bottom scrim — ensures dots/home indicator are legible */
.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 135px;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, transparent 100%);
  z-index: 12;
  pointer-events: none;
}

/* Dynamic Island — proportional to 405px frame width */
.iph-di {
  position: absolute;
  top: 21px;
  left: 50%;
  transform: translateX(-50%);
  width: 149px;
  height: 48px;
  background: #000;
  border-radius: 30px;
  z-index: 20;
  box-shadow: 0 0 0 1px rgba(90,90,90,0.3);
}

/* Side buttons — proportional to 405×837px body */
.iph-btn {
  position: absolute;
  width: 4px;
  border-radius: 2px;
}
.iph-action, .iph-vol-up, .iph-vol-down {
  left: 8px;
  background: linear-gradient(to left, #646464, #363636);
  box-shadow: -2px 1px 4px rgba(0,0,0,0.65);
}
.iph-power {
  right: 8px;
  background: linear-gradient(to right, #646464, #363636);
  box-shadow: 2px 1px 4px rgba(0,0,0,0.65);
}
.iph-action   { height: 48px; top: 156px; }
.iph-vol-up   { height: 87px; top: 225px; }
.iph-vol-down { height: 87px; top: 330px; }
.iph-power    { height: 126px; top: 262px; }

/* Home indicator */
.iph-home-bar {
  position: absolute;
  bottom: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 168px;
  height: 6px;
  background: rgba(255,255,255,0.45);
  border-radius: 3px;
  z-index: 20;
}

/* Legacy — keep so other classes don't break */
.phone-notch { display: none; }
.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex: 1;
}
.phone-game-card {
  border-radius: 10px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.phone-game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
}
.phone-home-bar {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 4px auto 0;
}

/* ---------- Features Strip ---------- */
.features {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 6vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(107,127,215,0.15);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  flex: 1 1 180px;
  max-width: 220px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  background: rgba(123,47,247,0.08);
  border-color: rgba(123,47,247,0.35);
}
.feature-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.feature-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Section titles ---------- */
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, #c4a9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* ---------- Games Grid (index) ---------- */
.games-section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 6vw, 4rem);
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}
.game-card {
  border-radius: var(--radius);
  padding: 1.1rem 0.8rem 0.9rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.15);
}
.game-card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.game-card-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
}

/* ---------- Glassmorphism Card (legal/contact) ---------- */
.glass-card {
  background: rgba(37, 37, 64, 0.55);
  border: 1px solid rgba(107,127,215,0.18);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

/* ---------- Legal Pages ---------- */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 2rem);
}
.legal-page .page-hero {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 6vw, 4rem);
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(123,47,247,0.2) 0%, transparent 70%);
  text-align: center;
  margin-bottom: 2rem;
}
.legal-page .page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, #c4a9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.legal-page .page-hero p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.92rem;
}
.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #c4a9ff;
  margin: 1.8rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(107,127,215,0.2);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--text-muted); margin-bottom: 0.8rem; font-size: 0.95rem; }
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.legal-content ul li { margin-bottom: 0.3rem; }
.legal-content a { color: var(--brand); text-decoration: underline; }
.placeholder-note {
  display: inline-block;
  background: rgba(255, 200, 0, 0.12);
  border: 1px solid rgba(255, 200, 0, 0.3);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-size: 0.82rem;
  color: #ffd54f;
  font-style: italic;
}

/* ---------- Contact Page ---------- */
.contact-page {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 2rem);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 2rem 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(107,127,215,0.18);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.contact-info-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.contact-info h2 {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, #c4a9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.contact-info p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.6; }
.contact-info-divider {
  width: 100%;
  height: 1px;
  background: rgba(107,127,215,0.18);
  margin: 1.2rem 0;
}
.contact-info-email-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-info-email-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.contact-info-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #a78bfa;
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-all;
  transition: color 0.18s;
}
.contact-info-email-link:hover { color: #c4a9ff; }
.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: rgba(107,127,215,0.12);
  border: 1px solid rgba(107,127,215,0.3);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--brand);
  transition: background 0.18s;
}
.contact-email-link:hover { background: rgba(107,127,215,0.22); }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(107,127,215,0.22);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.18s, background 0.18s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--grad-start);
  background: rgba(123,47,247,0.06);
}
.form-group select option { background: var(--bg-variant); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.submit-btn {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: #fff;
  font-size: 0.97rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
  margin-top: 0.5rem;
  box-shadow: 0 4px 18px rgba(123,47,247,0.35);
}
.submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.form-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.6rem;
  opacity: 0.7;
}
.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
  color: #a5d6a7;
  font-size: 0.97rem;
}
.form-success.show { display: block; }

/* ---------- Page Hero (non-index) ---------- */
.page-hero-wrap {
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1rem, 6vw, 4rem);
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 30%, rgba(123,47,247,0.18) 0%, transparent 70%);
}
.page-hero-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, #c4a9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.page-hero-wrap p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
footer {
  margin-top: auto;
  padding: 2.5rem clamp(1rem, 6vw, 4rem) 2rem;
  border-top: 1px solid rgba(107,127,215,0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); width: 100%; text-align: center; }

/* ---------- Phone Carousel ---------- */
.phone-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  z-index: 1;
}
.phone-carousel:active { cursor: grabbing; }
.phone-slides-track {
  display: flex;
  height: 100%;
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
  -webkit-user-select: none;
}
.phone-slide {
  min-width: 100%;
  height: 100%;
}
.phone-slide-img {
  overflow: hidden;
}
.phone-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.ps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 1px 3px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--c, rgba(237,234,255,0.65));
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.phone-dots {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 20;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.38);
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
}
.dot.active {
  background: rgba(255,255,255,0.95);
  width: 24px;
  border-radius: 5px;
}

/* Sudoku mockup */
.phone-sudoku {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  background: rgba(79,134,198,0.15);
  border: 1.5px solid rgba(79,134,198,0.5);
  border-radius: 5px;
  overflow: hidden;
  min-height: 0;
  gap: 1px;
}
.psu-c {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.48rem;
  font-weight: 700;
  background: rgba(16,16,36,0.85);
  color: rgba(237,234,255,0.35);
  aspect-ratio: 1;
}
.psu-c.g   { color: rgba(237,234,255,0.9); }
.psu-c.sel { background: rgba(79,134,198,0.4); color: #7ab5f5; }
.psu-c.bl  { border-left: 1.5px solid rgba(79,134,198,0.55); }
.psu-c.bt  { border-top:  1.5px solid rgba(79,134,198,0.55); }

/* Water Sort mockup */
.phone-ws {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 4px 4px 2px;
  min-height: 0;
}
.ws-tube {
  flex: 1;
  max-width: 34px;
  height: 80%;
  border: 1.5px solid rgba(38,198,218,0.4);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  background: rgba(255,255,255,0.03);
  transition: transform 0.2s;
}
.ws-tube.ws-sel {
  border-color: rgba(38,198,218,0.9);
  box-shadow: 0 0 8px rgba(38,198,218,0.35);
  transform: translateY(-10px);
}
.ws-tube.ws-empty { border-color: rgba(38,198,218,0.2); }
.ws-layer { width: 100%; flex: 1; }

/* Chess mockup */
.phone-chess {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  border: 1.5px solid rgba(121,85,72,0.7);
  border-radius: 5px;
  overflow: hidden;
  min-height: 0;
}
.pc-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  line-height: 1;
}
.pc-light { background: #C8A882; color: #3E2723; }
.pc-dark  { background: #6B4226; color: #C8A882; }
.pc-sel   { background: rgba(200,220,80,0.65) !important; }
.pc-move  { background: rgba(200,220,80,0.35) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .hero { flex-direction: column; text-align: center; padding-top: 2.5rem; }
  .hero p { max-width: 100%; }
  .store-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .iph-wrap    { width: calc(210px + 24px); }
  .phone-frame { width: 210px; height: 455px; border-radius: 40px; margin: 0 12px; }
  .iph-di      { width: 77px; height: 25px; top: 11px; }
  .iph-action  { height: 25px; top:  81px; }
  .iph-vol-up  { height: 45px; top: 116px; }
  .iph-vol-down{ height: 45px; top: 171px; }
  .iph-power   { height: 65px; top: 136px; }
  .iph-home-bar{ width: 87px; }

  footer { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 480px) {
  .games-grid  { grid-template-columns: repeat(3, 1fr); }
  .iph-wrap    { width: calc(175px + 24px); }
  .phone-frame { width: 175px; height: 379px; border-radius: 34px; margin: 0 12px; }
  .iph-di      { width: 64px; height: 21px; top: 9px; }
  .iph-action  { height: 21px; top:  67px; }
  .iph-vol-up  { height: 38px; top:  97px; }
  .iph-vol-down{ height: 38px; top: 144px; }
  .iph-power   { height: 55px; top: 113px; }
  .iph-home-bar{ width: 73px; }
}
