:root {
  --yellow: #FFD700;
  --yellow-dark: #e6c200;
  --green: #006400;
  --green-light: #008000;
  --black: #0a0a0a;
  --white: #ffffff;
  --red: #e63946;
  --orange: #ff6b35;
  --purple: #7b2d8b;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--green);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
  transition: transform 0.08s ease, background 0.2s;
  will-change: left, top;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
#cursor.click { transform: translate(-50%,-50%) scale(1.6); background: var(--red); }

/* ── CANVAS CONFETTI BG ── */
#confetti-canvas {
  position: fixed; top:0; left:0;
  width:100%; height:100%;
  pointer-events: none;
  z-index: 0;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top:0; width:100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--yellow);
  z-index: 1000;
  padding: 0.6em 0;
}
nav .inner {
  width: 90%; margin: auto;
  display: flex; justify-content: space-between; align-items: center;
}
nav .logo {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  color: var(--yellow);
  letter-spacing: 2px;
}
nav ul { list-style:none; display:flex; gap:1.2em; flex-wrap:wrap; }
nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover { background: var(--yellow); color: var(--black); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 80px;
  z-index: 1;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,100,0,0.3) 0%, transparent 70%);
}
.hero-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  color: var(--yellow);
  text-shadow: 6px 6px 0 var(--green), 12px 12px 0 rgba(0,100,0,0.3);
  animation: titlePop 0.8s cubic-bezier(0.175,0.885,0.32,1.275) both;
  position: relative; z-index: 2;
}
@keyframes titlePop {
  0% { transform: scale(0) rotate(-10deg); opacity:0; }
  100% { transform: scale(1) rotate(0deg); opacity:1; }
}
.hero-sub {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  color: var(--white);
  letter-spacing: 4px;
  margin-top: 0.3em;
  animation: fadeUp 0.8s 0.4s both;
  position: relative; z-index: 2;
}
.hero-year-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: 3px;
  padding: 6px 20px;
  border-radius: 30px;
  margin-top: 1em;
  animation: fadeUp 0.8s 0.6s both;
  position: relative; z-index: 2;
}
@keyframes fadeUp {
  0% { transform: translateY(30px); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.hero-scroll {
  position: absolute; bottom: 2em;
  font-size: 2rem;
  animation: bounce 1.2s infinite;
  z-index: 2;
}
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ── BOOT SCREEN ── */
body.boot-lock { overflow: hidden; }
#boot-screen {
  position: fixed; inset: 0;
  background: #000;
  color: #2ecc71;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  z-index: 20000;
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s ease;
}
#boot-screen.hidden { opacity: 0; pointer-events: none; }
#boot-lines {
  width: 90%; max-width: 560px;
  line-height: 1.8;
  white-space: pre-wrap;
}
#boot-cursor {
  display: inline-block;
  width: 0.55em; height: 1em;
  background: #2ecc71;
  vertical-align: text-bottom;
  animation: bootBlink 0.8s step-end infinite;
}
@keyframes bootBlink { 50% { opacity: 0; } }
#boot-skip {
  position: absolute; bottom: 1.5em; right: 1.5em;
  color: #999; font-size: 0.8rem;
  font-family: 'Courier New', monospace;
}

/* ── CHALLENGE WHEEL ── */
#wheel-section { background: #0d0d0d; }
.wheel-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.5em;
}
#wheel-pointer {
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid var(--yellow);
  margin-bottom: -6px;
  z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}
#wheel-outer {
  position: relative;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 6px solid var(--yellow);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}
#wheel-disc {
  width: 100%; height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden; /* BUG FIX: labels are long ("Bir Mountain Dev-i
    lüləsindən iç 🥤", etc.) and were rendering past the disc's own edge
    with nothing to clip them — the ellipsis below handles most of it,
    but this is a hard backstop so a label can never visually escape
    the circle no matter how long a future challenge string is. */
  transition: transform 4s cubic-bezier(0.17,0.67,0.12,0.99);
}
.wheel-label {
  position: absolute;
  top: 50%; left: 50%;
  width: 42%;
  height: 1.3em;
  line-height: 1.3em;
  transform-origin: left center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #111;
  padding-left: 27px; /* clears the center button (23px radius) */
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#wheel-center {
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px;
  background: var(--black);
  border: 3px solid var(--yellow);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  z-index: 3;
}
#wheel-result {
  min-height: 60px;
  max-width: 500px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  background: #1a1a1a;
  border: 2px solid var(--yellow);
  border-radius: 12px;
  padding: 1em 1.4em;
}

/* ── BEFORE / AFTER SLIDER ── */
#beforeafter { background: #0a0a0a; text-align: center; padding: 3em 0; }
.ba-slider { max-width: 460px; margin: 0 auto; }
.ba-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--yellow);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.ba-img {
  position: absolute; top: 0; left: 0;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-after-wrap { position: absolute; inset: 0; }
.ba-before-wrap {
  position: absolute; inset: 0;
  width: 50%;
  overflow: hidden;
  border-right: 3px solid var(--yellow);
}
.ba-label {
  position: absolute; top: 10px;
  background: rgba(0,0,0,0.65);
  color: var(--yellow);
  font-family: 'Bangers', cursive;
  font-size: 0.95rem;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 3;
  pointer-events: none;
}
.ba-label-left { left: 10px; }
.ba-label-right { right: 10px; }
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  width: 42px; height: 42px;
  background: var(--yellow);
  border: 3px solid var(--green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--black);
  z-index: 4;
  pointer-events: none;
}
.ba-hint { margin-top: 1em; color: #999; font-size: 0.85rem; }

/* ── COUNTDOWN ── */
#countdown {
  background: var(--green);
  padding: 3em 0;
  position: relative; z-index: 1;
  border-top: 4px solid var(--yellow);
  border-bottom: 4px solid var(--yellow);
}
#countdown .inner { width:90%; margin:auto; text-align:center; }
#countdown h2 {
  font-family:'Bangers',cursive;
  font-size:2.5rem; color:var(--yellow);
  letter-spacing:3px; margin-bottom:1em;
}
.countdown-grid {
  display: flex; justify-content: center; gap: 1.5em; flex-wrap: wrap;
}
.cd-box {
  background: var(--black);
  border: 3px solid var(--yellow);
  border-radius: 12px;
  padding: 1em 1.5em;
  min-width: 100px;
}
.cd-num {
  font-family: 'Bangers', cursive;
  font-size: 3.5rem;
  color: var(--yellow);
  line-height: 1;
  display: block;
}
.cd-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #aaa;
  margin-top: 4px;
  display: block;
}
.cd-total {
  margin-top: 1.5em;
  font-size: 1rem;
  color: #ccc;
}
.cd-total span { color: var(--yellow); font-weight: 700; font-size: 1.2rem; }

/* ── SECTIONS GENERAL ── */
.section {
  padding: 5em 0;
  position: relative; z-index: 1;
}
.section-inner { width: 90%; margin: auto; }
.section-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--yellow);
  letter-spacing: 3px;
  margin: 0 auto 1em;
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  text-align: center;
}
.section-title::after {
  content:'';
  position:absolute; left:50%; bottom:-6px;
  width:60%; height:4px;
  background: var(--green);
  transform: translateX(-50%);
}

/* ── ABOUT ── */
#about { background: #111; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
  margin-top: 1em;
}
.about-card {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 1.5em;
  transition: border-color 0.2s, transform 0.2s;
}
.about-card:hover { border-color: var(--yellow); transform: translateY(-4px); }
.about-card .emoji { font-size: 2rem; margin-bottom: 0.5em; display: block; }
.about-card p { font-size: 0.95rem; line-height: 1.7; color: #ccc; }

/* ── GAMES PREVIEW ── */
#games { background: #0d0d0d; }
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
  margin-top: 1em;
}
.game-preview-card {
  display: block;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 1.5em;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.game-preview-card:hover { border-color: var(--yellow); transform: translateY(-4px); }
.game-preview-card .emoji { font-size: 2.4rem; margin-bottom: 0.4em; display: block; }
.game-preview-card h3 {
  font-family: 'Bangers', cursive;
  color: var(--yellow);
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 0.4em;
}
.game-preview-card p { font-size: 0.85rem; line-height: 1.5; color: #ccc; }
.games-cta { text-align: center; margin-top: 2em; }
.tural-link {
  color: var(--yellow); font-weight: 700;
  text-decoration: none; border-bottom: 2px solid var(--yellow);
  transition: opacity 0.2s;
}
.tural-link:hover { opacity: 0.7; }

/* ── GALLERY ── */
#gallery { background: #0a0a0a; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: 10px;
  border: 2px solid #222;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.gallery-item:hover { border-color: var(--yellow); transform: scale(1.02); }
.gallery-item img {
  /* BUG FIX: object-fit: cover was center-cropping every photo to fill
     a fixed 340px box — fine for landscape shots, but it sliced heads
     and feet off portrait/vertical photos (most of these are phone
     selfies). object-fit: contain shows the whole photo untouched,
     letterboxed on the dark background instead of cropped. */
  width: 100%; height: 340px;
  object-fit: contain; display: block;
  transition: transform 0.4s;
  background: #1a1a1a;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  padding: 2em 0.8em 0.8em;
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.4;
}

/* ── LIGHTBOX ── */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9000;
  display: none; align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }

#lightbox-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5em;
  max-width: 1100px;
  width: 92vw;
  max-height: 90vh;
  overflow: hidden;
}

#lightbox-inner img {
  max-width: 60vw;
  max-height: 80vh;
  border-radius: 8px;
  border: 3px solid var(--yellow);
  object-fit: contain;
  flex-shrink: 0;
}

#lightbox-caption {
  color: var(--white);
  font-size: 0.95rem;
  margin-top: 0.6em;
  font-style: italic;
  text-align: left;
}

#lightbox-comments {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-height: 80vh;
  min-width: 240px;
}

#lb-comments-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85em;
  padding-right: 6px;
  /* readability: Firefox's scrollbar API needs its own declaration
     (the ::-webkit-scrollbar rule below only styles Chrome/Safari) */
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

#lb-comments-list::-webkit-scrollbar { width: 5px; }
#lb-comments-list::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }

.lb-comment {
  background: #1a1a1a;
  border-left: 3px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  /* READABILITY FIX: comment text was cramped at 0.88rem/1.5 with only
     3px between the name and the message — bumped the type size, line
     height, and internal spacing so longer comments are actually
     comfortable to read instead of feeling squeezed into a narrow box. */
  padding: 0.85em 1.1em;
  font-size: 0.95rem;
  line-height: 1.6;
}
.lb-comment-name {
  font-weight: 700;
  color: var(--yellow);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}
.lb-comment-text {
  display: block;
  color: var(--white);
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.lb-comment-time { color: #999; font-size: 0.78rem; margin-top: 8px; display: block; }
.lb-no-comments { color: #999; font-style: italic; font-size: 0.9rem; }

#lb-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  border-top: 1px solid #333;
  padding-top: 0.8em;
}
#lb-comment-form input,
#lb-comment-form textarea {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 8px;
  color: var(--white);
  padding: 0.6em 0.9em;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.2s;
}
#lb-comment-form input:focus,
#lb-comment-form textarea:focus { outline: none; border-color: var(--yellow); }
#lb-comment-form textarea { resize: vertical; min-height: 60px; }

#lightbox-close {
  position: absolute; top: 1em; right: 1.2em;
  font-size: 2rem; cursor: pointer;
  color: var(--yellow); background: none; border: none;
  font-family: 'Bangers', cursive;
  z-index: 10;
}
#lightbox-prev, #lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 3rem; cursor: pointer;
  color: var(--yellow); background: none; border: none;
  font-family: 'Bangers', cursive;
  padding: 0 0.6em;
  z-index: 10;
}
#lightbox-prev { left: 0; }
#lightbox-next { right: 0; }

@media (max-width: 768px) {
  #lightbox-inner { flex-direction: column; align-items: center; overflow-y: auto; }
  #lightbox-inner img { max-width: 90vw; max-height: 45vh; }
  #lightbox-comments { max-height: 40vh; width: 100%; }
  #lightbox-prev { left: 0; font-size: 2rem; }
  #lightbox-next { right: 0; font-size: 2rem; }
}

/* ── VIDEOS ── */
#videos { background: #111; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.video-item video {
  width: 100%; border-radius: 10px;
  border: 2px solid #333;
  transition: border-color 0.2s;
  display: block;
}
.video-item:hover video { border-color: var(--yellow); }
.video-caption {
  margin-top: 0.6em;
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
  background: #1a1a1a;
  border-left: 3px solid var(--yellow);
  border-radius: 0 6px 6px 0;
  padding: 0.5em 0.8em;
}

/* ── ROAST GENERATOR ── */
#roast { background: #0d0d0d; }
.roast-box {
  background: #1a1a1a;
  border: 3px solid var(--red);
  border-radius: 16px;
  padding: 2em;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
#roast-output {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--white);
  min-height: 80px;
  margin-bottom: 1.5em;
  font-style: italic;
}
#roast-output.loading { color: #888; font-style: normal; }
.btn {
  display: inline-block;
  font-family: 'Bangers', cursive;
  font-size: 1.3rem;
  letter-spacing: 2px;
  padding: 0.6em 1.8em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-green { background: var(--green); color: var(--white); }
.btn-purple { background: var(--purple); color: var(--white); }

/* ── QUIZ ── */
#quiz { background: #111; }
.quiz-box {
  background: #1a1a1a;
  border: 3px solid var(--green);
  border-radius: 16px;
  padding: 2em;
  max-width: 700px;
  margin: 0 auto;
}
.quiz-progress {
  font-size: 0.85rem; color: #888;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 0.5em;
}
.quiz-q {
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 1.2em; line-height: 1.5;
}
.quiz-options { display: flex; flex-direction: column; gap: 0.7em; margin-bottom: 1.2em; }
.quiz-option {
  background: #2a2a2a;
  border: 2px solid #444;
  border-radius: 8px;
  padding: 0.8em 1.2em;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
  font-family: 'Inter', sans-serif;
}
.quiz-option:hover { border-color: var(--yellow); background: #333; }
.quiz-option.correct { border-color: #2ecc71; background: rgba(46,204,113,0.15); }
.quiz-option.wrong { border-color: var(--red); background: rgba(230,57,70,0.15); }
.quiz-feedback {
  font-size: 1rem; min-height: 1.5em;
  margin-bottom: 1em; font-weight: 600;
}
.quiz-feedback.good { color: #2ecc71; }
.quiz-feedback.bad { color: var(--red); }
#quiz-score {
  display: none;
  text-align: center; padding: 2em;
}
#quiz-score .score-num {
  font-family: 'Bangers', cursive;
  font-size: 5rem; color: var(--yellow);
}
#quiz-score p { font-size: 1.1rem; color: #ccc; margin-top: 0.5em; }

/* ── GUEST WALL ── */
#guestwall { background: #0a0a0a; }
.wall-form {
  display: flex; gap: 1em; flex-wrap: wrap;
  margin-bottom: 2em;
}
.wall-form input, .wall-form textarea {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 8px;
  color: var(--white);
  padding: 0.8em 1em;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.wall-form input:focus, .wall-form textarea:focus {
  outline: none; border-color: var(--yellow);
}
.wall-form input { flex: 1; min-width: 180px; }
.wall-form textarea { flex: 2; min-width: 260px; resize: vertical; min-height: 60px; }
.sticky-notes {
  display: flex; flex-wrap: wrap; gap: 1.2em;
}
.sticky {
  background: var(--yellow);
  color: var(--black);
  padding: 1.2em 1.4em;
  border-radius: 4px;
  width: 200px;
  min-height: 130px;
  position: relative;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
  transform: rotate(var(--rot));
  transition: transform 0.2s;
  font-size: 0.9rem;
  line-height: 1.5;
}
.sticky:nth-child(even) { background: #90ee90; }
.sticky:nth-child(3n) { background: #ffb3ba; }
.sticky:nth-child(4n) { background: #bae1ff; }
.sticky:hover { transform: rotate(0deg) scale(1.04); z-index: 10; }
.sticky-name {
  font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 0.4em; display: block;
}
.sticky-time {
  position: absolute; bottom: 0.5em; right: 0.7em;
  font-size: 0.7rem; opacity: 0.5;
}
.wall-empty { color: #999; font-style: italic; font-size: 1rem; }

/* ── FUN FACTS ── */
#funfacts { background: #111; }
.facts-list { display: flex; flex-direction: column; gap: 1em; }
.fact-item {
  background: #1a1a1a;
  border-left: 5px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  padding: 1em 1.5em;
  font-size: 1rem; line-height: 1.6; color: #ddd;
  transition: border-left-color 0.2s, background 0.2s;
}
.fact-item:hover { border-left-color: var(--green); background: #222; }

/* ── BADGES / PROFILE ── */
#badges { background: #0d0d0d; }
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1em;
}
.badge-item {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 1em 0.6em;
  text-align: center;
  transition: border-color 0.3s, transform 0.2s, filter 0.3s;
  filter: grayscale(1) opacity(0.45);
}
.badge-item.unlocked {
  filter: none;
  border-color: var(--yellow);
  box-shadow: 0 0 16px rgba(255,215,0,0.25);
}
.badge-item.unlocked:hover { transform: translateY(-3px); }
.badge-emoji { font-size: 2.2rem; display: block; margin-bottom: 0.3em; }
.badge-label { font-size: 0.78rem; color: #ccc; line-height: 1.3; }
.badges-progress { color: #888; font-size: 0.9rem; margin-bottom: 1.2em; }
#badge-toast {
  position: fixed; top: 5.5em; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--yellow);
  color: var(--black);
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  padding: 0.7em 1.4em;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 9500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
#badge-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── CONTACT ── */
#contact { background: #0a0a0a; }
#contact a { color: var(--yellow); text-decoration: none; font-weight: 700; }
#contact a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 1.5em 0;
  font-size: 1rem;
  position: relative; z-index: 1;
  border-top: 4px solid var(--yellow);
}
.footer-link-btn {
  background: none;
  border: none;
  color: var(--yellow);
  text-decoration: underline;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Inter', Arial, sans-serif;
  opacity: 0.85;
}
.footer-link-btn:hover { opacity: 1; }

/* ── EXCUSE GENERATOR ── */
#excusegen { background: #0a0a0a; }
.excuse-box {
  background: #1a1a1a;
  border: 3px solid var(--orange);
  border-radius: 16px;
  padding: 2em;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
#excuse-output { font-size: 1.15rem; line-height: 1.6; color: #ddd; min-height: 60px; }

/* ── DEPLOY-ON-FRIDAY ORACLE ── */
#deployoracle { background: #111; }
.deploy-box {
  background: #1a1a1a;
  border: 3px solid var(--red);
  border-radius: 16px;
  padding: 2em;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
#deploy-output { font-size: 1.1rem; line-height: 1.6; color: #ddd; min-height: 60px; }
#deploy-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── FAKE TERMS & CONDITIONS (EULA GAG) ── */
#eula-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9700;
  display: none;
  align-items: center; justify-content: center;
  padding: 1.5em;
}
#eula-overlay.open { display: flex; }
#eula-box {
  background: #111;
  border: 3px solid var(--yellow);
  border-radius: 16px;
  padding: 2em;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
#eula-box h3 {
  font-family: 'Bangers', cursive;
  color: var(--yellow);
  letter-spacing: 1px;
  margin-bottom: 0.8em;
  text-align: center;
}
#eula-text {
  overflow-y: auto;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.7;
  padding-right: 0.5em;
  margin-bottom: 1.2em;
  border-bottom: 1px solid #333;
  padding-bottom: 1em;
}
#eula-text ol { padding-left: 1.4em; }
#eula-text li { margin-bottom: 0.6em; }
.eula-punchline { text-align: center; font-size: 1.05rem; }
#eula-agree-btn { align-self: center; }
#eula-agree-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── BALLOONS ── */
.balloon {
  position: fixed;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  pointer-events: none;
  z-index: 500;
  animation: floatUp linear forwards;
  opacity: 0.85;
}
.balloon::after {
  content: '';
  position: absolute;
  bottom: -12px; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 12px;
  background: rgba(255,255,255,0.5);
}
@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(-4deg); opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { transform: translateY(-120vh) rotate(4deg); opacity: 0; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav ul { gap: 0.5em; }
  nav ul li a { font-size: 0.75rem; padding: 3px 7px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .gallery-item img { height: 300px; }
  .sticky { width: 160px; }
  #game-canvas { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .balloon, .reveal { animation: none; transition: none; opacity: 1; transform: none; }
}

/* ── BIRTHDAY CARD ── */
#card { background: #111; }
#envelope-wrap { position: relative; width: 340px; height: 220px; perspective: 1000px; margin: 0 auto; }
#envelope {
  width: 340px; height: 220px;
  position: relative; cursor: pointer;
  transition: transform 0.2s;
}
#envelope:hover { transform: scale(1.03); }
#env-body {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #c8a200, #FFD700);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #a08000;
}
#env-flap {
  position: absolute; top: 0; left: 0; right: 0;
  height: 110px;
  background: linear-gradient(135deg, #e6b800, #ffd000);
  clip-path: polygon(0 0, 50% 60%, 100% 0);
  transform-origin: top center;
  transition: transform 0.6s ease;
  z-index: 2;
  border-radius: 4px 4px 0 0;
}
#env-flap.open { transform: rotateX(180deg); }
#env-heart { font-size: 3rem; }
#card-letter {
  display: none;
  position: absolute; top: 0; left: 0;
  width: 340px;
  background: #fff;
  border-radius: 8px;
  border: 3px solid var(--yellow);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 10;
  animation: letterPop 0.5s cubic-bezier(0.175,0.885,0.32,1.275) both;
  overflow: hidden;
}
@keyframes letterPop {
  0% { transform: translateY(20px) scale(0.9); opacity: 0; }
  100% { transform: translateY(-20px) scale(1); opacity: 1; }
}
#card-letter-inner { padding: 2em; }
.card-title { font-family:'Bangers',cursive; font-size:2rem; color:var(--green); margin-bottom:0.8em; }
#card-letter-inner p { color: #333; font-size:0.95rem; line-height:1.7; margin-bottom:0.6em; }
.card-sig { font-family:'Bangers',cursive; font-size:1.4rem; color:var(--green); margin-top:1em; }

/* ── CANDLES ── */
#candles { background: #0a0a0a; }
#candle-stage { text-align: center; }
#candle-cake { font-size: 5rem; }
#candles-row {
  display: flex; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  margin: 0.5em 0 1em;
}
.candle-item {
  display: flex; flex-direction: column;
  align-items: center; font-size: 2rem;
  transition: filter 0.4s, transform 0.4s;
  cursor: default;
  user-select: none;
}
.candle-item.blown {
  filter: grayscale(1) opacity(0.4);
  transform: scale(0.85);
}
.candle-flame { animation: flicker 0.5s infinite alternate; display: block; }
@keyframes flicker {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}
.candle-body { font-size: 1.6rem; }
#candle-msg {
  font-family: 'Bangers', cursive;
  font-size: 2rem; color: var(--yellow);
  min-height: 2.5rem; letter-spacing: 2px;
}

/* ── AP GAME ── */
#apgame { background: #111; }
#game-ui { position: relative; max-width: 600px; margin: 0 auto; }
#game-stats {
  display: flex; gap: 2em;
  background: #1a1a1a; border: 2px solid #333;
  border-radius: 8px 8px 0 0; padding: 0.6em 1em;
  font-size: 0.95rem;
}
#game-canvas {
  display: block; width: 100%;
  background: #0d1117;
  border: 2px solid #333; border-top: none;
  border-radius: 0 0 8px 8px;
}
#game-overlay {
  position: absolute;
  top: 40px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.88);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.8em; border-radius: 0 0 8px 8px;
  text-align: center; padding: 1em;
}
#game-overlay-title { font-family:'Bangers',cursive; font-size:2.5rem; color:var(--yellow); }
#game-overlay-msg { color: #aaa; font-size: 0.95rem; line-height: 1.5; }
#game-overlay.hidden { display: none; }

/* ── CALL TURAL ── */
#calltural { background: #0d0d0d; }
#call-box { display: flex; flex-direction: column; align-items: center; gap: 1.5em; text-align: center; max-width: 600px; margin: 0 auto; }
#call-btn {
  display: flex; align-items: center; gap: 0.8em;
  background: var(--red);
  color: var(--white);
  border: none; border-radius: 16px;
  padding: 1em 2.5em;
  font-family: 'Bangers', cursive;
  font-size: 2rem; letter-spacing: 3px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(230,57,70,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
  animation: callPulse 2s infinite;
}
@keyframes callPulse {
  0%,100% { box-shadow: 0 8px 30px rgba(230,57,70,0.5); }
  50% { box-shadow: 0 8px 50px rgba(230,57,70,0.9); }
}
#call-btn:hover { transform: scale(1.05); }
#call-btn:active { transform: scale(0.97); }
#call-btn-icon { font-size: 2.5rem; animation: ringPhone 1s infinite; display: inline-block; }
@keyframes ringPhone {
  0%,100% { transform: rotate(0); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(15deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(10deg); }
}
#call-reason {
  background: #1a1a1a;
  border: 2px solid var(--red);
  border-radius: 12px;
  padding: 1.2em 1.5em;
  font-size: 1.2rem;
  min-height: 60px;
  max-width: 600px;
  line-height: 1.6;
  display: none;
}
#call-count-display { color: #999; font-size: 0.85rem; }

/* ── BAKI HAVASI vs HÜSEYN ── */
#weather { background: #111; }
.weather-box {
  background: #1a1a1a;
  border: 3px solid var(--orange);
  border-radius: 16px;
  padding: 1.8em;
  max-width: 600px;
  margin: 0 auto;
  display: flex; align-items: center; gap: 1.2em;
}
#weather-emoji { font-size: 3rem; }
#weather-text { font-size: 1.05rem; line-height: 1.6; color: #ddd; }
#weather-text.loading { color: #999; font-style: italic; }

/* ── PANIC BUTTON / GLITCH OVERLAY ── */
#panic-section { background: #0a0a0a; }
#panic-btn {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem; letter-spacing: 2px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 14px;
  padding: 0.8em 2em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(230,57,70,0.5);
  transition: transform 0.15s;
}
#panic-btn:hover { transform: scale(1.05); }
#panic-btn:active { transform: scale(0.96); }
#panic-overlay {
  position: fixed; inset: 0;
  background: #300;
  z-index: 9900;
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  color: #ff6b6b;
  font-family: 'Courier New', monospace;
  overflow: hidden;
}
#panic-overlay.open { display: flex; animation: panicShake 0.12s infinite; }
@keyframes panicShake {
  0% { transform: translate(0,0); }
  25% { transform: translate(-4px, 3px); }
  50% { transform: translate(4px, -3px); }
  75% { transform: translate(-3px, -4px); }
  100% { transform: translate(3px, 4px); }
}
#panic-title {
  font-family: 'Bangers', cursive;
  font-size: 3rem; color: var(--red);
  margin-bottom: 0.5em;
}
#panic-msg { font-size: 1.1rem; max-width: 500px; line-height: 1.6; }

/* ── FAKE INCOMING CALL FROM TURAL ── */
#fakecall-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(160deg, #062606, #000);
  z-index: 9800;
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  color: var(--white);
}
#fakecall-overlay.open { display: flex; }
#fakecall-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  margin-bottom: 1em;
  animation: ringPulse 1s infinite;
}
@keyframes ringPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.5); }
  50% { box-shadow: 0 0 0 24px rgba(255,215,0,0); }
}
#fakecall-name { font-family: 'Bangers', cursive; font-size: 2.2rem; color: var(--yellow); letter-spacing: 2px; }
#fakecall-status { color: #aaa; margin-top: 0.3em; margin-bottom: 2em; }
#fakecall-buttons { display: flex; gap: 3em; }
.fakecall-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#fakecall-decline { background: var(--red); color: var(--white); }
#fakecall-answer { background: #2ecc71; color: var(--white); }
#fakecall-quote {
  display: none;
  max-width: 500px;
  background: #1a1a1a;
  border: 2px solid var(--yellow);
  border-radius: 12px;
  padding: 1.2em 1.6em;
  margin-top: 1.5em;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ── FORTUNE TELLER ── */
#fortune { background: #0a0a0a; }
#fortune-box {
  background: #1a1a1a;
  border: 3px solid var(--purple);
  border-radius: 16px;
  padding: 2em; max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
#fortune-crystal {
  font-size: 5rem;
  animation: crystalFloat 3s ease-in-out infinite;
  display: block; margin-bottom: 0.5em;
}
@keyframes crystalFloat {
  0%,100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px #7b2d8b); }
  50% { transform: translateY(-10px) scale(1.05); filter: drop-shadow(0 0 25px #b44dcc); }
}
#fortune-output {
  font-size: 1.15rem; line-height: 1.7;
  color: #ddd; min-height: 80px;
  font-style: italic;
}
#fortune-output.loading { color: #999; }

/* ── MAGIC 8-BALL: TURAL NƏ DEYƏR ── */
#eightball { background: #0d0d0d; }
.eightball-box {
  background: #1a1a1a;
  border: 3px solid var(--green-light);
  border-radius: 16px;
  padding: 2em;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
#eightball-orb {
  font-size: 4.5rem;
  display: block;
  margin-bottom: 0.5em;
  transition: transform 0.15s;
}
#eightball-orb.shaking { animation: ballShake 0.5s; }
@keyframes ballShake {
  0%,100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}
#eightball-output {
  font-size: 1.15rem; line-height: 1.6;
  min-height: 70px; color: #ddd; font-style: italic;
}

/* ── SOUNDBOARD ── */
#soundboard { background: #111; }
.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2em;
  max-width: 800px;
  margin: 0 auto;
}
.sound-btn {
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 14px;
  padding: 1.4em 1em;
  color: var(--white);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
}
.sound-btn .sb-emoji { display: block; font-size: 2.2rem; margin-bottom: 0.4em; }
.sound-btn:hover { border-color: var(--yellow); transform: translateY(-3px); }
.sound-btn:active { transform: scale(0.96); }

/* ── MEME GENERATOR ── */
#memegen { background: #0d0d0d; }
.memegen-box {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}
#meme-canvas {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  background: #111;
  border-radius: 12px;
  border: 2px solid #333;
}
.memegen-controls {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  min-width: 220px;
  text-align: left;
}
.memegen-controls label { font-size: 0.85rem; color: #aaa; }
.memegen-controls input {
  width: 100%;
  padding: 0.6em 0.8em;
  border-radius: 8px;
  border: 2px solid #333;
  background: #1a1a1a;
  color: var(--white);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95rem;
}
.memegen-controls input:focus { outline: none; border-color: var(--yellow); }
.memegen-controls .btn { margin-top: 0.6em; }
.memegen-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5em;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.4em;
  background: #111;
  border: 2px solid #333;
  border-radius: 8px;
}
.memegen-thumb {
  padding: 0;
  border: 2px solid #333;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  aspect-ratio: 1;
  line-height: 0;
}
.memegen-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.memegen-thumb:hover { border-color: #666; }
.memegen-thumb.active { border-color: var(--yellow); }

/* ── CERTIFICATE ── */
#certificate { background: #111; }
.cert-wrap { text-align: center; }
#cert-canvas {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #333;
}

/* ── HÜSEYN SİSTEMİ (fake monitoring dashboard) ── */
#hsystem { background: #0a0a0a; }
.sysmon-box {
  background: #0d1117;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 1.5em;
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Courier New', monospace;
}
.sysmon-uptime {
  font-size: 0.9rem;
  color: #ccc;
  padding-bottom: 1em;
  margin-bottom: 1.2em;
  border-bottom: 1px dashed #333;
}
.sysmon-uptime strong { color: var(--yellow); }
.sysmon-uptime-note { display: block; color: #999; font-size: 0.75rem; margin-top: 0.3em; }
.sysmon-row { margin-bottom: 1.1em; }
.sysmon-row:last-child { margin-bottom: 0; }
.sysmon-label {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; color: #aaa; margin-bottom: 0.3em;
}
.sysmon-label span:last-child { color: var(--yellow); font-weight: 700; }
.sysmon-bar-track {
  height: 16px;
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #333;
}
.sysmon-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  background: linear-gradient(90deg, #2ecc71, #f39c12, #e63946);
}

/* ── VOICE MESSAGES (Spotify-style player) ── */
:root { --spotify-green: #1DB954; --spotify-green-dim: #169c46; }

.voicemsg-player {
  max-width: 640px;
  margin: 0 auto;
  background: #121212;
  border: 1px solid #282828;
  border-radius: 12px;
  overflow: hidden;
}
.voicemsg-list-head {
  display: grid;
  grid-template-columns: 40px 1fr 56px;
  align-items: center;
  gap: 0.8em;
  padding: 0.7em 1.2em;
  border-bottom: 1px solid #282828;
  color: #888;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.vm-col-duration { text-align: right; }

.voicemsg-list {
  display: flex;
  flex-direction: column;
  padding: 0.4em 0;
}
.voicemsg-item {
  display: grid;
  grid-template-columns: 40px 1fr 56px;
  align-items: center;
  gap: 0.8em;
  padding: 0.55em 1.2em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.voicemsg-item:hover,
.voicemsg-item:focus-within { background: #1a1a1a; }
.voicemsg-item.playing .voicemsg-caption,
.voicemsg-item.playing .voicemsg-num { color: var(--spotify-green); }

.voicemsg-index {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.voicemsg-num {
  color: #888;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.voicemsg-item.playing .voicemsg-num { display: none; }
.voicemsg-play-btn {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
}
.voicemsg-item:hover .voicemsg-play-btn,
.voicemsg-item:focus-within .voicemsg-play-btn,
.voicemsg-item.playing .voicemsg-play-btn { display: flex; }
.voicemsg-item:hover .voicemsg-num { display: none; }
.voicemsg-play-btn:hover { transform: scale(1.1); }
.voicemsg-play-btn.playing { color: var(--spotify-green); }

.voicemsg-body {
  display: flex;
  align-items: center;
  gap: 0.8em;
  min-width: 0;
}
.voicemsg-art {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  color: var(--black);
  background: var(--yellow);
}
.voicemsg-art.sender-adil  { background: var(--orange); }
.voicemsg-art.sender-natik { background: var(--purple); color: var(--white); }
.voicemsg-art.sender-tural { background: var(--green-light); color: var(--white); }
.voicemsg-art.sender-unknown { background: #555; color: var(--white); }

.voicemsg-text { min-width: 0; }
.voicemsg-caption {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.voicemsg-sender { color: #888; font-size: 0.8rem; }
.voicemsg-duration { color: #888; font-size: 0.8rem; text-align: right; font-variant-numeric: tabular-nums; }

/* ── NOW PLAYING BAR ── */
.voicemsg-nowplaying {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.3em 1em;
  padding: 0.9em 1.2em;
  background: #181818;
  border-top: 1px solid #282828;
}
.vmnp-art {
  grid-row: 1 / 3;
  width: 48px; height: 48px;
  border-radius: 6px;
  background: #282828;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.vmnp-meta { min-width: 0; grid-column: 2; }
.vmnp-title {
  color: var(--white); font-size: 0.9rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vmnp-sender { color: #888; font-size: 0.78rem; }
.vmnp-controls {
  grid-column: 3; grid-row: 1;
  display: flex; align-items: center; gap: 0.6em;
  justify-self: end;
}
.vmnp-btn {
  background: none; border: none; color: var(--white);
  font-size: 1.1rem; cursor: pointer; padding: 0.2em;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.85; transition: opacity 0.15s, transform 0.15s;
}
.vmnp-btn:hover { opacity: 1; transform: scale(1.08); }
.vmnp-btn-main {
  background: var(--white);
  color: var(--black);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 0.95rem;
  opacity: 1;
}
.vmnp-btn-main:hover { transform: scale(1.06); background: #fff; }
.vmnp-progress {
  grid-column: 2 / 4; grid-row: 2;
  display: flex; align-items: center; gap: 0.6em;
}
.vmnp-time { color: #888; font-size: 0.72rem; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.vmnp-bar-track {
  flex: 1 1 auto;
  height: 4px;
  background: #4d4d4d;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}
.vmnp-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--white);
  border-radius: 2px;
}
.voicemsg-nowplaying.active .vmnp-bar-fill { background: var(--spotify-green); }
.voicemsg-nowplaying:hover .vmnp-bar-fill { background: var(--spotify-green); }

@media (max-width: 480px) {
  .vmnp-sender { display: none; }
  .voicemsg-sender { display: none; }
}

/* ── TURAL'S TASKS (sticky-note checklist) ── */
#tasks { background: #0a0a0a; }
.tasks-progress {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.8em;
}
.tasks-board {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8em 1.6em;
  width: 100%;
  justify-content: center;
}
.task-note {
  flex: 1 1 190px;
  max-width: 240px;
  min-height: 150px;
  padding: 1.2em 1.1em 1em;
  background: var(--yellow);
  color: #2a2a05;
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  font-family: 'Inter', Arial, sans-serif;
}
.task-note:nth-child(5n+1) { transform: rotate(-3deg); background: var(--yellow); }
.task-note:nth-child(5n+2) { transform: rotate(2deg); background: #ff9f7a; }
.task-note:nth-child(5n+3) { transform: rotate(-1.5deg); background: #9acd32; }
.task-note:nth-child(5n+4) { transform: rotate(3deg); background: #7fd6e8; }
.task-note:nth-child(5n+5) { transform: rotate(-2deg); background: #ffb3d9; }
.task-note:hover { transform: scale(1.04) rotate(0deg) !important; box-shadow: 0 10px 22px rgba(0,0,0,0.5); }
.task-note.done { opacity: 0.55; }
.task-note-top {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}
.task-note-check {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 2px solid #2a2a05;
  border-radius: 4px;
  background: rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  font-weight: 900;
}
.task-note.done .task-note-check { background: #2a2a05; color: var(--yellow); }
.task-note-text {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
}
.task-note.done .task-note-text { text-decoration: line-through; }
.task-note-stamp {
  margin-top: auto;
  align-self: flex-end;
  font-family: 'Bangers', cursive;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #b02a2a;
  border: 2px solid #b02a2a;
  border-radius: 4px;
  padding: 0.1em 0.5em;
  transform: rotate(-8deg);
  opacity: 0;
  transition: opacity 0.15s;
}
.task-note.done .task-note-stamp { opacity: 0.8; }

/* ── FUEL (VAPE + MOUNTAIN DEW) ── */
#fuel { background: #111; }
.fuel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5em;
}
.fuel-card {
  background: #1a1a1a;
  border: 3px solid #333;
  border-radius: 16px;
  padding: 1.8em;
  text-align: center;
  position: relative;
  overflow: visible;
}
.fuel-card.vape { border-color: #7b8794; }
.fuel-card.dew { border-color: #9acd32; }
.fuel-emoji { font-size: 3rem; display: block; margin-bottom: 0.4em; }
.fuel-count { color: #888; font-size: 0.9rem; margin-top: 0.8em; }
.fuel-count span { color: var(--yellow); font-weight: 700; }
.smoke-puff {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,220,220,0.85), rgba(220,220,220,0));
  pointer-events: none;
  z-index: 700;
  animation: puffRise 1.6s ease-out forwards;
}
@keyframes puffRise {
  0% { transform: translate(-50%,-50%) scale(0.3); opacity: 0.85; }
  100% { transform: translate(-50%,-150%) scale(2.4); opacity: 0; }
}
.dew-bubble {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d4f542, #9acd32);
  pointer-events: none;
  z-index: 700;
  animation: bubbleRise 1s ease-in forwards;
}
@keyframes bubbleRise {
  0% { transform: translate(-50%,-50%) scale(0.4); opacity: 0.9; }
  100% { transform: translate(-50%,-220%) scale(1); opacity: 0; }
}

/* ── FLOATING UI (party mode, online counter, music, share) ── */
#floating-ui {
  position: fixed; right: 1em; bottom: 1em;
  /* iPhones with a home indicator can tuck fixed bottom UI right under
     it, making it hard to tap accurately — nudge above the safe area
     when the browser reports one. Older browsers just ignore this line
     and keep the 1em above. */
  bottom: calc(1em + env(safe-area-inset-bottom, 0px));
  z-index: 800;
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 0.6em;
}
#party-mode-btn {
  font-family: 'Bangers', cursive;
  font-size: 1.05rem;
  letter-spacing: 1px;
  padding: 0.55em 1.1em;
  border-radius: 30px;
  border: 3px solid var(--black);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.15s;
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: var(--white);
}
#party-mode-btn:hover { transform: scale(1.06); }
#party-mode-btn:active { transform: scale(0.95); }
#party-mode-btn.active { animation: partyPulse 0.6s infinite; }
#music-controls { display: flex; gap: 0.4em; }
#music-play-btn, #music-pause-btn, #music-skip-btn {
  font-family: 'Bangers', cursive;
  font-size: 1.05rem;
  padding: 0.6em 0.8em;
  border-radius: 30px;
  border: 3px solid var(--black);
  cursor: pointer;
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.15s, opacity 0.15s;
  opacity: 0.55;
}
#music-play-btn:hover, #music-pause-btn:hover, #music-skip-btn:hover { transform: scale(1.06); }
#music-play-btn:active, #music-pause-btn:active, #music-skip-btn:active { transform: scale(0.95); }
/* whichever of play/pause reflects the current state is shown at full
   strength; the other dims — a lightweight way to show playback state
   without needing separate icon-swap logic in JS */
#music-play-btn.is-active, #music-pause-btn.is-active { opacity: 1; background: var(--green-light); }
@keyframes partyPulse {
  0%,100% { box-shadow: 0 4px 16px rgba(230,57,70,0.6); }
  50% { box-shadow: 0 4px 30px rgba(123,45,139,0.9); }
}
#online-counter {
  background: rgba(0,0,0,0.75);
  border: 2px solid var(--green-light);
  border-radius: 20px;
  padding: 0.4em 0.9em;
  font-size: 0.8rem;
  color: #ddd;
  display: flex; align-items: center; gap: 0.4em;
}
#online-counter .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71;
  animation: onlinePulse 1.5s infinite;
}
@keyframes onlinePulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
@media (max-width: 600px) {
  #floating-ui { right: 0.6em; bottom: 0.6em; }
  #party-mode-btn { font-size: 0.9rem; padding: 0.45em 0.9em; }
  #music-play-btn, #music-pause-btn, #music-skip-btn { font-size: 0.9rem; padding: 0.45em 0.6em; }
}

/* ── ACCESSIBILITY: visually-hidden but screen-reader-visible labels ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
