:root {
  color-scheme: dark;
  --bg-deep: #0b0714;
  --bg-main: #120c1f;
  --panel: #1b132c;
  --panel-elevated: #241a3a;
  --line: #3b2c55;
  --line-light: #574378;
  --ink: #fcf6ff;
  --ink-secondary: #ebdcf5;
  --muted: #b3a1c6;
  --muted-dark: #7b6a8f;

  /* GTA VI Vice City x Ankara 06 Accent Colors */
  --pink: #ff2a85;
  --pink-glow: rgba(255, 42, 133, 0.4);
  --gold: #ffaa33;
  --gold-glow: rgba(255, 170, 51, 0.4);
  --cyan: #00f5d4;
  --cyan-glow: rgba(0, 245, 212, 0.4);
  --purple: #9d4edd;
  --green: #2ecc71;
  --red: #e74c3c;

  --display: Impact, 'Arial Black', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Ambient dynamic background lighting */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -10;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 42, 133, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(0, 245, 212, 0.09) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 170, 51, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #100a1c 0%, #090510 100%);
}

/* Optional CRT Scanlines effect */
.scanlines {
  display: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  opacity: 0.55;
}

body.crt-active .scanlines {
  display: block;
}

/* Typography Defaults */
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

/* ----------------------------------------------------
   STICKY HEADER
---------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(5vw, 1.25rem);
  background: rgba(18, 12, 31, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-badge {
  background: var(--pink);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--pink-glow);
}

.brand-text b {
  color: var(--cyan);
  margin-left: 0.15rem;
}

.live-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--green);
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  animation: pulse-live 2s infinite ease-in-out;
}

@keyframes pulse-live {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.desktop-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.nav-link {
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover {
  color: var(--cyan);
  transform: translateY(-1px);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  border-color: var(--cyan);
  background: var(--panel-elevated);
  transform: translateY(-1px);
}

.radio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #2b173e, #1a1029);
  border: 1px solid var(--line-light);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
  transition: all 0.2s ease;
}

.radio-btn:hover {
  border-color: var(--pink);
  box-shadow: 0 0 15px var(--pink-glow);
  transform: translateY(-1px);
}

.radio-btn.playing {
  border-color: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
  color: var(--cyan);
}

/* Audio wave animation */
.radio-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.radio-wave span {
  width: 2px;
  background: var(--cyan);
  height: 4px;
  border-radius: 1px;
}

.radio-btn.playing .radio-wave span:nth-child(1) {
  animation: wave 0.8s infinite ease-in-out;
}

.radio-btn.playing .radio-wave span:nth-child(2) {
  animation: wave 1.1s infinite ease-in-out 0.2s;
}

.radio-btn.playing .radio-wave span:nth-child(3) {
  animation: wave 0.9s infinite ease-in-out 0.4s;
}

@keyframes wave {

  0%,
  100% {
    height: 3px;
  }

  50% {
    height: 12px;
  }
}

/* ----------------------------------------------------
   HERO SECTION
---------------------------------------------------- */
.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 65%, rgba(142, 34, 98, 0.45), transparent 60%),
    linear-gradient(130deg, #180e28 0%, #291230 45%, #150a22 100%);
  border-bottom: 2px solid var(--line);
}

.hero-art {
  position: absolute;
  inset: 0 0 0 40%;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: #2f132b;
}

.hero-art div {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-left: 2px solid rgba(255, 170, 51, 0.35);
  transform: skewX(-7deg);
  margin-inline: -3px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.hero-art div:hover {
  filter: brightness(1.2) saturate(1.3);
  z-index: 2;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: skewX(7deg) scale(1.22);
  filter: saturate(1.15) contrast(1.05);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #120c1f 15%, rgba(18, 12, 31, 0.94) 36%, rgba(18, 12, 31, 0.5) 65%, transparent 88%),
    linear-gradient(0deg, #120c1f 0%, rgba(18, 12, 31, 0.3) 40%, transparent 70%);
}

.hero-content {
  padding: 4.5rem max(5vw, 1.25rem);
  max-width: 860px;
  position: relative;
  z-index: 2;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.tag-gold {
  background: rgba(255, 170, 51, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 170, 51, 0.4);
}

.tag-cyan {
  background: rgba(0, 245, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 212, 0.4);
}

.tag-pink {
  background: rgba(255, 42, 133, 0.15);
  color: var(--pink);
  border: 1px solid rgba(255, 42, 133, 0.4);
}

.hero-title {
  font-size: clamp(3.2rem, 8.5vw, 7.8rem);
  line-height: 0.94;
  margin-bottom: 1.25rem;
  color: #ffffff;
  text-shadow: 0 6px 0 #1b0a24, 0 12px 30px rgba(0, 0, 0, 0.7);
}

.title-highlight {
  color: var(--pink);
  background: linear-gradient(110deg, #ffc56e 0%, #ff2a85 55%, #b5179e 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 14px rgba(255, 42, 133, 0.45));
}

.hero-lede {
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  color: var(--ink-secondary);
  max-width: 44ch;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 850;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(105deg, var(--gold) 0%, var(--pink) 100%);
  color: #12081c;
  box-shadow: 0 4px 18px rgba(255, 42, 133, 0.4);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 26px rgba(255, 42, 133, 0.6);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--panel-elevated);
  border: 1px solid var(--line-light);
  color: var(--ink);
}

.btn-secondary:hover:not(:disabled) {
  background: #31234f;
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.btn-large {
  min-height: 56px;
  font-size: 1.15rem;
  padding: 0.9rem 1.8rem;
}

.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

/* Interactive Controller Status Card in Hero */
.controller-card {
  background: rgba(27, 19, 44, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-light);
  border-left: 4px solid var(--pink);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  max-width: 520px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s ease;
}

.controller-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

.controller-lightbar {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  animation: pulse-controller 2s infinite ease-in-out;
}

@keyframes pulse-controller {

  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.controller-title {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.controller-owner {
  color: var(--cyan);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.controller-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

.controller-status-row b {
  color: var(--gold);
}

.hero-caption {
  position: absolute;
  right: max(5vw, 1.25rem);
  bottom: 1.4rem;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(18, 12, 31, 0.75);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-caption .dot {
  color: var(--pink);
}

/* ----------------------------------------------------
   BULLETIN / KÖY TELSİZİ BAR
---------------------------------------------------- */
.bulletin-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem max(5vw, 1.25rem);
  background: #191026;
  border-block: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.bulletin-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.3);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
}

.bulletin-scroller {
  flex: 1;
  min-width: 0;
}

.bulletin-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: fadeIn 0.4s ease;
}

.bulletin-buttons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bulletin-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 4px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.18s ease;
}

.bulletin-arrow:hover {
  background: var(--panel-elevated);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ----------------------------------------------------
   QUICK VILLAGE STATS STRIP
---------------------------------------------------- */
.village-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1400px;
  margin: 1.5rem auto 0;
  padding: 0 max(5vw, 1.25rem);
}

.stat-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-box:hover {
  transform: translateY(-2px);
  border-color: var(--line-light);
}

.stat-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 15px var(--gold-glow);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ----------------------------------------------------
   SECTION STRUCTURE
---------------------------------------------------- */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) max(5vw, 1.25rem);
  border-bottom: 1px solid var(--line);
}

.section-highlight {
  background: radial-gradient(circle at 50% 30%, rgba(157, 78, 221, 0.06) 0%, transparent 70%);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--gold);
}

h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  margin: 0 0 0.5rem;
  color: #fff;
  text-shadow: 0 3px 0 #1b0a24;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 58ch;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: var(--panel);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.progress-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.35);
  border-radius: 99px;
  color: var(--cyan);
  font-weight: 850;
  font-size: 0.88rem;
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.2);
}

/* ----------------------------------------------------
   CREW CARDS GRID
---------------------------------------------------- */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent, var(--pink));
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow, rgba(255, 42, 133, 0.2));
  border-color: var(--line-light);
}

.portrait-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #140d22;
}

.portrait {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.card:hover .portrait {
  transform: scale(1.06);
  filter: contrast(1.05) saturate(1.15);
}

.card-cleared-stamp {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(46, 204, 113, 0.9);
  color: #0b2213;
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  animation: bounceIn 0.3s ease;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-role {
  color: var(--accent, var(--pink));
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 850;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.card h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 0 0 0.5rem;
  color: #fff;
}

.card-bio {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* RPG Stats inside Card */
.card-stats {
  margin-top: auto;
  margin-bottom: 1.1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--muted);
}

.stat-bar-track {
  width: 55%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: var(--accent, var(--pink));
  border-radius: 99px;
  box-shadow: 0 0 8px var(--accent, var(--pink));
}

.card-btn-row {
  display: flex;
  gap: 0.5rem;
}

.card-btn-row .btn {
  flex: 1;
  font-size: 0.88rem;
}

.card-voice-btn {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--panel-elevated);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  transition: all 0.18s ease;
}

.card-voice-btn:hover {
  background: #39285c;
  border-color: var(--cyan);
  transform: scale(1.05);
}

/* ----------------------------------------------------
   ADALET CARKI (WHEEL SECTION)
---------------------------------------------------- */
.wheel-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.wheel-stage-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-stage {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  margin: auto;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-glow {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 42, 133, 0.2) 0%, rgba(0, 245, 212, 0.1) 50%, transparent 75%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.pointer {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
  transition: transform 0.08s ease;
}

.pointer-needle {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 36px solid #fffdfa;
  position: relative;
}

.pointer-needle::after {
  content: '';
  position: absolute;
  top: -36px;
  left: -8px;
  width: 16px;
  height: 16px;
  background: var(--pink);
  border-radius: 50%;
}

.pointer.kick {
  transform: translateX(-50%) rotate(-14deg);
}

canvas#wheel {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(157, 78, 221, 0.25);
  cursor: grab;
}

canvas#wheel:active {
  cursor: grabbing;
}

.wheel-center-cap {
  position: absolute;
  z-index: 5;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a2254, #12091f);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--gold);
}

.wheel-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* Wheel Console & Result Card */
.console {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(1.2rem, 3.5vw, 2.2rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.console-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.badge-mini {
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: var(--pink);
  color: #fff;
}

.custom-select {
  width: 100%;
  background: #100a1c;
  color: var(--ink);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s ease;
}

.custom-select:focus {
  border-color: var(--cyan);
}

.mode-description {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0.4rem 0 1.25rem;
  padding: 0.55rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}

.spin-action-row {
  margin-bottom: 1.5rem;
}

.btn-spin {
  width: 100%;
  font-size: 1.2rem;
  font-family: var(--display);
  letter-spacing: 0.05em;
}

/* Verdict / Son Karar Card */
.verdict-card {
  position: relative;
  background: #11091d;
  border: 1px solid var(--line);
  border-left: 4px solid var(--pink);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.verdict-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.verdict-id {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: bold;
}

.verdict-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
  color: #fff;
}

.verdict-reason {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.verdict-stamp {
  display: none;
  position: absolute;
  right: 15px;
  top: 35px;
  color: var(--red);
  border: 3px solid var(--red);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.8rem;
  border-radius: 6px;
  transform: rotate(-12deg);
  opacity: 0.85;
  pointer-events: none;
  animation: stampImpact 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.verdict-stamp.visible {
  display: block;
}

@keyframes stampImpact {
  0% {
    transform: scale(2) rotate(-25deg);
    opacity: 0;
  }

  100% {
    transform: scale(1) rotate(-12deg);
    opacity: 0.85;
  }
}

.verdict-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}

.copy-status {
  font-size: 0.82rem;
  color: var(--cyan);
  margin: 0.5rem 0 0;
  min-height: 1.2em;
}

/* ----------------------------------------------------
   ITIRAZ DEFTERI SECTION
---------------------------------------------------- */
.docket-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: #fff;
}

.quick-excuses {
  margin-bottom: 0.85rem;
}

.chips-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 99px;
  transition: all 0.16s ease;
  text-align: left;
}

.chip:hover {
  background: var(--panel-elevated);
  border-color: var(--cyan);
  color: var(--cyan);
}

textarea {
  width: 100%;
  background: #100a1c;
  color: var(--ink);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  resize: vertical;
  min-height: 85px;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  transition: border-color 0.2s ease;
}

textarea:focus {
  border-color: var(--cyan);
}

.char-count {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  margin-bottom: 0.85rem;
}

.form-status {
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 0.65rem;
  min-height: 1.2em;
}

/* Ledger List */
.ledger-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ledger-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ledger-header h3 {
  font-size: 1.35rem;
  margin: 0;
  color: #fff;
}

.ledger-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.3rem 0.65rem;
  border-radius: 99px;
  transition: all 0.16s ease;
}

.filter-btn:hover {
  color: #fff;
  border-color: var(--line-light);
}

.filter-btn.active {
  background: var(--cyan);
  color: #0b1a17;
  border-color: var(--cyan);
}

.ledger-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.ledger-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--card-accent, var(--cyan));
  padding: 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  animation: fadeIn 0.3s ease;
}

.ledger-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ledger-person {
  color: var(--card-accent, var(--cyan));
  font-weight: 900;
  font-size: 0.95rem;
}

.ledger-date {
  font-size: 0.72rem;
  color: var(--muted);
}

.ledger-appeal {
  margin: 0;
  font-style: italic;
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.5;
}

.ledger-verdict {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
}

.ledger-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: bold;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink-secondary);
  transition: all 0.15s ease;
}

.vote-btn:hover {
  background: var(--panel-elevated);
  border-color: var(--cyan);
  color: #fff;
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
footer {
  background: #0d0717;
  border-top: 1px solid var(--line);
  padding: 3rem max(5vw, 1.25rem) 5.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand b {
  font-family: var(--display);
  font-size: 1.3rem;
  color: #fff;
  display: block;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-btn-link {
  color: var(--red);
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: underline;
  padding: 0;
}

.footer-btn-link:hover {
  filter: brightness(1.3);
}

.footer-copy {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  text-align: center;
}

/* ----------------------------------------------------
   MOBILE BOTTOM DOCK / NAV
---------------------------------------------------- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(18, 12, 31, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-light);
  padding: 0.45rem max(1rem, env(safe-area-inset-left)) max(0.45rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
  min-width: 60px;
}

.mobile-nav-item .m-icon {
  font-size: 1.25rem;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
  color: var(--cyan);
}

.mobile-nav-item.primary-action {
  color: var(--pink);
  transform: translateY(-4px);
}

.mobile-nav-item.primary-action .m-icon {
  background: linear-gradient(135deg, var(--gold), var(--pink));
  color: #12081c;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 14px var(--pink-glow);
}

/* ----------------------------------------------------
   MISSION MODAL DIALOG (ARCADE STYLE)
---------------------------------------------------- */
.mission-dialog {
  color: var(--ink);
  width: min(94vw, 580px);
  max-height: 90dvh;
  overflow: auto;
  background: #19102c;
  border: 2px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(157, 78, 221, 0.3);
}

.mission-dialog::backdrop {
  background: rgba(8, 4, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-content {
  padding: clamp(1.2rem, 4vw, 2.2rem);
}

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.dialog-badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mission-tag {
  background: var(--pink);
  color: #fff;
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: var(--red);
  color: #fff;
  transform: rotate(90deg);
}

.dialog-title {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  margin: 0 0 0.65rem;
  color: #fff;
}

.dialog-instructions {
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--cyan);
}

/* Game Arena inside Dialog */
.game-arena {
  background: #11091f;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.game-status-wrap {
  min-height: 2.2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.game-status-text {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--gold);
  margin: 0;
  animation: fadeIn 0.3s ease;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
}

/* Custom Progress Bar for Games */
progress {
  display: block;
  width: 100%;
  height: 1.4rem;
  margin: 1rem 0;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.08);
}

progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--gold), var(--pink));
  border-radius: 99px;
  box-shadow: 0 0 12px var(--pink);
}

progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--gold), var(--pink));
  border-radius: 99px;
}

/* Tekmil Game Button */
#hold {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #372057, #1e1132);
  border: 2px solid var(--pink);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 20px var(--pink-glow);
}

#hold:active {
  background: var(--pink);
  color: #12081c;
  transform: scale(0.97);
}

/* Brackets Game */
.brackets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.55rem;
  width: 100%;
  max-width: 440px;
  margin-bottom: 1rem;
}

.bracket-btn {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--panel-elevated);
  border: 2px solid var(--line-light);
  border-radius: var(--radius-sm);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--ink);
  transition: all 0.18s ease;
}

.bracket-btn[aria-pressed="true"] {
  background: var(--cyan);
  color: #0d1a18;
  border-color: #fff;
  box-shadow: 0 0 15px var(--cyan-glow);
  transform: scale(1.05);
}

/* Tea Pouring Mini Game (Rahman & Babaanne) */
.tea-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.tea-glass-wrap {
  width: 90px;
  height: 140px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top: none;
  border-radius: 0 0 28px 28px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 16px rgba(255, 170, 51, 0.2);
}

.tea-sweet-zone {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 25px;
  background: rgba(46, 204, 113, 0.25);
  border-block: 2px dashed var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.tea-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(180deg, #d35400 0%, #78281f 100%);
  transition: height 0.05s linear;
  box-shadow: 0 -2px 10px rgba(211, 84, 0, 0.5);
}

/* Confetti Overlay Canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  width: 100%;
  height: 100%;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }

  70% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ----------------------------------------------------
   RESPONSIVE BREAKPOINTS (100% RESPONSIVE)
---------------------------------------------------- */
@media (max-width: 1100px) {
  .crew-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .village-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {

  .wheel-layout,
  .docket-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    min-height: 560px;
  }

  .hero-art {
    inset: 0 0 0 25%;
  }
}

@media (max-width: 720px) {
  .desktop-nav {
    display: none;
  }

  .mobile-bottom-bar {
    display: flex;
  }

  .top {
    padding: 0.75rem 1rem;
  }

  .hero {
    min-height: auto;
    display: block;
    padding-top: 1rem;
  }

  .hero-art {
    position: relative;
    inset: auto;
    height: clamp(170px, 48vw, 260px);
    margin-inline: -1rem;
    grid-template-columns: repeat(4, 1fr);
    border-block: 2px solid var(--line);
  }

  .hero-art div {
    transform: none;
    border-left: 1px solid rgba(255, 170, 51, 0.3);
  }

  .hero-art img {
    transform: none;
  }

  .hero::after {
    background: linear-gradient(0deg, #120c1f 35%, transparent 90%);
  }

  .hero-content {
    padding: 1.5rem 1rem 3.5rem;
    margin-top: -1.5rem;
  }

  .hero-caption {
    bottom: 0.8rem;
    right: 1rem;
    font-size: 0.68rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .card-body {
    padding: 1rem;
  }
}

@media (max-width: 520px) {
  .crew-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .village-stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .stat-box {
    padding: 0.8rem 0.5rem;
  }

  .stat-num {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .bulletin-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .bulletin-badge {
    font-size: 0.68rem;
  }

  .bulletin-buttons {
    margin-left: auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 2.8rem;
  }

  .village-stats-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}