/*
  Skoriva sitesi. Renkler logonun ve panelin karanlık temasından gelir: gece laciverdi zemin,
  i-noktasının amberi tek vurgu. Sayılar salon ekranındaki gibi dar ve eşit genişlikte (Barlow
  Condensed), geri kalan her şey logonun yuvarlak hatlarına yakın Nunito.
*/

:root {
  --bg: #0b1220;
  --bg-deep: #070d18;
  --navy: #0f172a;
  --panel: #131c2e;
  --panel-2: #1a2438;
  --line: #243047;
  --line-2: #33415c;
  --ink: #e2e8f0;
  --ink-2: #94a3b8;
  --ink-3: #64748b;
  --amber: #fbbf24;
  --amber-deep: #f59e0b;
  --amber-wash: rgba(251, 191, 36, 0.12);
  --live: #f87171;
  --ok: #4ade80;

  --f-text: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-num: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-code: ui-monospace, 'Cascadia Code', Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;

  color-scheme: dark;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--f-code);
  font-size: 0.86em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--amber);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.7em;
  padding: 0 0.45em;
  height: 1.6em;
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 0.82em;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 3px;
  background: var(--panel);
  color: var(--ink);
  vertical-align: 0.1em;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--amber);
  color: var(--navy);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--amber);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

/* ---- Ortak parçalar ------------------------------------------------------------------------ */

.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  flex: none;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--live);
  animation: ping 1.6s var(--ease-out) infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.2); opacity: 0; }
}

.btn {
  --mx: 0px;
  --my: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.35s var(--ease-out), background-color 0.2s, box-shadow 0.3s, color 0.2s;
  isolation: isolate;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn kbd {
  font-size: 13px;
  background: rgba(15, 23, 42, 0.14);
  border-color: rgba(15, 23, 42, 0.25);
  color: inherit;
}

.btn--amber {
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 10px 30px -10px rgba(251, 191, 36, 0.6);
  overflow: hidden;
}

.btn--amber::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}

.btn--amber:hover::before {
  transform: translateX(120%);
}

.btn--amber:hover {
  box-shadow: 0 16px 40px -12px rgba(251, 191, 36, 0.8);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}

.btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--amber);
  color: var(--amber);
}

.btn--ghost kbd {
  background: var(--panel);
  border-color: var(--line-2);
}

.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn--lg {
  height: 60px;
  padding: 0 34px;
  font-size: 18px;
}

.btn:active {
  transform: translate(var(--mx), var(--my)) scale(0.97);
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

.chip--amber {
  background: var(--amber-wash);
  color: var(--amber);
}

/* ---- Okuma çubuğu -------------------------------------------------------------------------- */

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  box-shadow: 0 0 12px var(--amber);
}

/* ---- Üst menü ------------------------------------------------------------------------------ */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
  padding: 0 var(--gutter);
  transition: background-color 0.4s, height 0.4s var(--ease-out), box-shadow 0.4s;
}

.nav.is-scrolled {
  height: 64px;
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}

.nav__brand img {
  height: 30px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav__links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateX(-50%) scale(0);
  transition: transform 0.35s var(--ease-spring);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
}

.nav__links a.is-active::after {
  transform: translateX(-50%) scale(1);
}

.nav__burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  position: relative;
}

.nav__burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}

.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }

.nav.is-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---- Hero ---------------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: 100svh;
  max-width: 1360px;
  isolation: isolate;
  margin: 0 auto;
  padding: 120px var(--gutter) 96px;
}

.hero__matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 30%, transparent 85%);
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  width: 900px;
  height: 900px;
  right: -200px;
  top: -160px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12), transparent 60%);
  pointer-events: none;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  padding: 7px 16px 7px 14px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-2);
}

.hero__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(44px, 4.8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero__title .line {
  display: block;
  text-wrap: balance;
}

/* Kelimeler aşağıdan, maskenin içinden çıkar. */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.1em 0 0.1em;
  margin: -0.1em 0 -0.1em;
}

.word > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.is-split .word > span {
  transform: none;
}

/* Logodaki i-noktası, cümle sonunda. */
.dot {
  display: inline-block;
  width: 0.19em;
  height: 0.19em;
  margin-left: 0.06em;
  border-radius: 0.06em;
  background: var(--amber);
  transform: scale(0) translateY(-0.6em);
  box-shadow: 0 0 0 rgba(251, 191, 36, 0);
}

.is-split .dot {
  animation: dot-drop 0.9s var(--ease-spring) forwards, dot-glow 3.2s ease-in-out 1.8s infinite;
  animation-delay: calc(0.5s + var(--d, 0) * 0.25s), calc(1.8s + var(--d, 0) * 0.6s);
}

@keyframes dot-drop {
  0% { transform: scale(0) translateY(-0.9em); }
  60% { transform: scale(1.2, 0.8) translateY(0); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes dot-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(251, 191, 36, 0); }
  50% { box-shadow: 0 0 24px rgba(251, 191, 36, 0.8); }
}

.hero__lead {
  max-width: 30em;
  margin: 28px 0 36px;
  font-size: clamp(17px, 1.35vw, 19px);
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 15px;
}

.hero__facts b {
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin-right: 4px;
}

.hero__copy > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.hero__copy > .hero__title {
  opacity: 1;
  transform: none;
}

.is-loaded .hero__copy > * {
  opacity: 1;
  transform: none;
}

.is-loaded .hero__kicker { transition-delay: 0.05s; }
.is-loaded .hero__lead { transition-delay: 0.7s; }
.is-loaded .hero__actions { transition-delay: 0.85s; }
.is-loaded .hero__facts { transition-delay: 1s; }

.hero__stage {
  position: relative;
  perspective: 1400px;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 1.2s var(--ease-out) 0.4s, transform 1.2s var(--ease-out) 0.4s;
}

.is-loaded .hero__stage {
  opacity: 1;
  transform: none;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px var(--line-2);
}

.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--amber);
  animation: scroll-hint 1.8s var(--ease-out) infinite;
}

@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---- Salon ekranı (hero) ------------------------------------------------------------------- */

.board {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 20px);
  aspect-ratio: 16 / 10.5;
  padding: clamp(18px, 2.4vw, 32px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(251, 191, 36, 0.08), transparent 60%),
    linear-gradient(160deg, #111b30, var(--bg-deep));
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 0 0 10px rgba(19, 28, 46, 0.6),
    0 0 0 11px var(--line),
    0 50px 100px -30px rgba(0, 0, 0, 0.8),
    0 30px 80px -40px rgba(251, 191, 36, 0.35);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
  overflow: hidden;
}

/* LED panel tanesi */
.board::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(226, 232, 240, 0.06) 1px, transparent 1.2px);
  background-size: 4px 4px;
  pointer-events: none;
}

.board__glare {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, 0.07), transparent 35%);
  pointer-events: none;
}

.board__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
  font-size: clamp(13px, 1.2vw, 16px);
}

.board__event {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--live);
  font-size: 13px;
}

.board__chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.board__timer {
  margin-left: auto;
  font-family: var(--f-num);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 24px);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  transition: color 0.3s;
}

.board__timer.is-running {
  color: var(--ink);
}

.board__main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: clamp(12px, 1.6vw, 20px) clamp(16px, 2vw, 28px);
  align-items: end;
}

.board__athlete {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.board__athlete > div {
  min-width: 0;
}

.board__bib {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(44px, 4.6vw, 60px);
  height: clamp(44px, 4.6vw, 60px);
  border-radius: 14px;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
}

.board__name {
  display: block;
  font-weight: 900;
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board__club {
  display: block;
  color: var(--ink-2);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 15px);
}

.board__athlete.is-swap .board__name,
.board__athlete.is-swap .board__club,
.board__athlete.is-swap .board__bib {
  animation: swap-in 0.7s var(--ease-out) both;
}

.board__athlete.is-swap .board__club { animation-delay: 0.06s; }

@keyframes swap-in {
  0% { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  100% { opacity: 1; transform: none; filter: none; }
}

.board__judges {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(6px, 0.8vw, 10px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.board__judges li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(6px, 0.8vw, 10px) 0;
  border-radius: 12px;
  background: rgba(19, 28, 46, 0.8);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.4s, box-shadow 0.4s, opacity 0.4s;
}

.board__judges small {
  font-weight: 800;
  font-size: 11px;
  color: var(--ink-3);
}

.board__judges b {
  font-family: var(--f-num);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.board__judges li.is-in {
  box-shadow: inset 0 0 0 1px var(--line-2);
  animation: judge-pop 0.55s var(--ease-spring);
}

.board__judges li.is-in::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--amber);
  opacity: 0;
  animation: judge-flash 0.9s var(--ease-out);
}

.board__judges li.is-drop {
  opacity: 0.38;
}

.board__judges li.is-drop b {
  text-decoration: line-through;
  text-decoration-color: var(--live);
  text-decoration-thickness: 2px;
}

@keyframes judge-pop {
  0% { transform: scale(0.85); }
  100% { transform: scale(1); }
}

@keyframes judge-flash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.board__score {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: clamp(120px, 14vw, 190px);
}

.board__score small {
  font-weight: 800;
  font-size: 12px;
  color: var(--ink-3);
}

.board__score b {
  font-family: var(--f-num);
  font-weight: 700;
  font-size: clamp(56px, 7.4vw, 104px);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  text-shadow: 0 0 40px rgba(251, 191, 36, 0.35);
}

.board__stamp {
  position: absolute;
  right: -6px;
  top: -6px;
  padding: 4px 12px;
  border-radius: 8px;
  border: 2px solid var(--ok);
  color: var(--ok);
  font-weight: 900;
  font-size: 13px;
  transform: rotate(8deg) scale(2.4);
  opacity: 0;
  pointer-events: none;
}

.board__score small {
  transition: opacity 0.3s;
}

.board__score:has(.is-on) small {
  opacity: 0;
}

.board__stamp.is-on {
  animation: stamp 0.5s var(--ease-out) forwards;
}

@keyframes stamp {
  0% { transform: rotate(8deg) scale(2.4); opacity: 0; }
  70% { transform: rotate(8deg) scale(0.92); opacity: 1; }
  100% { transform: rotate(8deg) scale(1); opacity: 1; }
}

.board__rank {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.board__rank li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: baseline;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(19, 28, 46, 0.6);
  transition: background-color 0.6s;
}

.board__rank li.is-new {
  background: var(--amber-wash);
}

.board__rank .r {
  grid-row: 1 / span 2;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--amber);
}

.board__rank .n {
  font-weight: 800;
  font-size: clamp(12px, 1vw, 14px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board__rank .s {
  font-family: var(--f-num);
  font-weight: 600;
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--ink-2);
}

/* ---- Hakem tableti (hero) ------------------------------------------------------------------ */

.tablet {
  position: absolute;
  left: -104px;
  bottom: -44px;
  width: 146px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(170deg, #1d2840, #111a2c);
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    0 0 0 6px #0a1120,
    0 0 0 7px var(--line),
    0 30px 60px -20px rgba(0, 0, 0, 0.9);
  transform: rotate(-7deg);
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-12px); }
}

.tablet__head {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  font-size: 12px;
}

.tablet__ok {
  color: var(--ok);
  font-weight: 700;
}

.tablet__value {
  margin: 6px 0 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--bg-deep);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: color 0.3s;
}

.tablet__value.is-sent {
  color: var(--ok);
}

.tablet__keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.tablet__keys span {
  display: grid;
  place-items: center;
  height: 26px;
  border-radius: 7px;
  background: var(--panel-2);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 14px;
  transition: background-color 0.15s, transform 0.15s, color 0.15s;
}

.tablet__keys span.is-press {
  background: var(--amber);
  color: var(--navy);
  transform: scale(0.9);
}

.tablet__keys .tablet__send {
  font-family: var(--f-text);
  font-size: 10px;
  font-weight: 900;
  background: rgba(74, 222, 128, 0.16);
  color: var(--ok);
}

/* ---- Branş şeridi -------------------------------------------------------------------------- */

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin: 0 -2vw;
  padding: 18px 0;
  background: var(--amber);
  color: var(--navy);
  transform: rotate(-1.6deg);
  box-shadow: 0 20px 60px -20px rgba(251, 191, 36, 0.4);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__track span {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ticker__track span::after {
  content: '';
  width: 12px;
  height: 12px;
  margin: 0 clamp(22px, 3vw, 40px);
  border-radius: 3px;
  background: var(--navy);
  transform: rotate(45deg);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---- Bölümler ------------------------------------------------------------------------------ */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(96px, 13vw, 168px) var(--gutter) 0;
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.h2 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section__lead {
  max-width: 40em;
  margin: 22px 0 0;
  font-size: 18px;
  color: var(--ink-2);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.h2[data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---- Nasıl çalışır ------------------------------------------------------------------------- */

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.net {
  position: relative;
  margin: 0;
  padding: clamp(12px, 2vw, 24px);
  border-radius: var(--r-lg);
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(140deg, var(--line-2), transparent 40%, transparent 60%, rgba(251, 191, 36, 0.4)) border-box;
  border: 1px solid transparent;
}

.net svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.net__wires path {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 4 6;
  animation: wire 1.2s linear infinite;
}

@keyframes wire {
  to { stroke-dashoffset: -20; }
}

.net__glow {
  transform-origin: 410px 240px;
  animation: hub-breathe 3s ease-in-out infinite;
}

@keyframes hub-breathe {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

.net__hub rect {
  fill: var(--navy);
  stroke: var(--amber);
  stroke-width: 2;
}

.net__hub-title {
  fill: var(--ink);
  font-weight: 900;
  font-size: 22px;
}

.net__hub-sub {
  fill: var(--ink-2);
  font-weight: 700;
  font-size: 11px;
}

.net__hub.is-pulse rect {
  animation: hub-hit 0.6s var(--ease-out);
}

@keyframes hub-hit {
  0% { stroke-width: 6; }
  100% { stroke-width: 2; }
}

.net__node rect {
  fill: var(--panel);
  stroke: var(--line-2);
  stroke-width: 1.5;
  transition: stroke 0.4s, fill 0.4s;
}

.net__node text {
  fill: var(--ink);
  font-weight: 800;
  font-size: 15px;
}

.net__node.is-hot rect {
  stroke: var(--amber);
  fill: #1f2638;
}

.net__node.is-ok rect {
  stroke: var(--ok);
}

.net__bb-score {
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 30px !important;
  fill: var(--amber) !important;
}

.net__packet {
  fill: var(--amber);
  filter: drop-shadow(0 0 6px var(--amber));
}

.net__packet--wide {
  fill: var(--ok);
  filter: drop-shadow(0 0 6px var(--ok));
}

.net__caption {
  margin-top: 8px;
  min-height: 1.6em;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-2);
  transition: opacity 0.3s;
}

.how__points {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how__points li {
  position: relative;
  padding-left: 26px;
}

.how__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--amber);
}

.how__points h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.how__points p {
  margin: 0;
  color: var(--ink-2);
}

/* ---- Canlı yönetim konsolu ----------------------------------------------------------------- */

.console {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
}

.console__left,
.console__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.console__left {
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--r-lg);
  background: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
}

.console__stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stage-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.stage-card strong {
  display: block;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.1;
}

.stage-card span:not(.stage-card__bib) {
  color: var(--ink-2);
  font-weight: 700;
  font-size: 14px;
}

.stage-card__bib {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--amber);
  color: var(--navy);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 26px;
}

.stage-card.is-swap > * {
  animation: swap-in 0.6s var(--ease-out) both;
}

.console__next {
  text-align: right;
  font-weight: 800;
}

.console__next small {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
}

.method {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px;
  border-radius: 14px;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px var(--line);
}

.method button {
  position: relative;
  z-index: 1;
  padding: 10px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.25s;
}

.method button[aria-checked='true'] {
  color: var(--navy);
}

.method__pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 10px;
  background: var(--amber);
  transition: transform 0.5s var(--ease-spring), width 0.5s var(--ease-spring);
}

.judges {
  display: grid;
  gap: 8px;
}

.judge {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 64px auto;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 14px;
  border-radius: 12px;
  background: var(--panel);
  transition: opacity 0.35s, background-color 0.35s;
}

.judge__id {
  font-weight: 900;
  font-size: 14px;
  color: var(--ink-2);
}

.judge__val {
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 28px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.judge__tag {
  width: 58px;
  font-size: 11px;
  font-weight: 800;
  color: var(--live);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.judge.is-drop {
  background: rgba(19, 28, 46, 0.45);
}

.judge.is-drop .judge__val {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--live);
}

.judge.is-drop .judge__tag {
  opacity: 1;
  transform: none;
}

.judge.is-bump .judge__val {
  animation: bump 0.4s var(--ease-spring);
}

@keyframes bump {
  0% { transform: translateY(-6px); color: var(--amber); }
  100% { transform: none; }
}

/* Puan kaydırıcısı */
.range {
  --v: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber) var(--v), var(--line) var(--v));
}

.range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber) var(--v), var(--line) var(--v));
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  border: 3px solid var(--amber);
  background: var(--navy);
  transition: transform 0.2s var(--ease-spring);
}

.range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--amber);
  background: var(--navy);
}

.range:active::-webkit-slider-thumb {
  transform: scale(1.3);
}

.range:focus-visible {
  outline-offset: 0;
}

.clock {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--panel);
}

.clock__btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring);
}

.clock__btn:hover {
  transform: scale(1.08);
}

.clock__btn svg {
  width: 22px;
  height: 22px;
  fill: var(--navy);
}

.clock__btn .i-pause,
.clock.is-running .clock__btn .i-play {
  display: none;
}

.clock.is-running .clock__btn .i-pause {
  display: block;
}

.clock__read {
  flex: 1;
  min-width: 0;
}

.clock__read b {
  display: block;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.clock.is-over .clock__read b {
  color: var(--live);
}

.clock__read small {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 700;
}

.clock__ring {
  flex: none;
  width: 46px;
  height: 46px;
}

.clock__ring svg {
  transform: rotate(-90deg);
}

.clock__ring circle {
  fill: none;
  stroke: var(--line);
  stroke-width: 4;
}

.clock__ring .clock__arc {
  stroke: var(--amber);
  stroke-linecap: round;
  stroke-dasharray: 106.8;
  stroke-dashoffset: 106.8;
  transition: stroke 0.3s;
}

.clock.is-over .clock__arc {
  stroke: var(--live);
}

.result {
  position: relative;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(251, 191, 36, 0.14), transparent 60%),
    var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.result small {
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-3);
}

.result__value {
  display: block;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: clamp(72px, 8vw, 112px);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  text-shadow: 0 0 50px rgba(251, 191, 36, 0.3);
}

.result__formula {
  margin: 10px 0 0;
  font-family: var(--f-num);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  min-height: 1.5em;
}

.result__penalty {
  margin: 2px 0 0;
  font-weight: 800;
  font-size: 14px;
  color: var(--live);
  min-height: 1.5em;
}

.result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result.is-published::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px var(--ok);
  animation: judge-flash 1s var(--ease-out) forwards;
}

.leader {
  flex: 1;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
}

.leader__head {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.leader__head span {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--panel-2);
  font-weight: 800;
  font-size: 13px;
}

.leader__head span + span {
  background: var(--amber-wash);
  color: var(--amber);
}

.leader__list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leader__list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 14px 9px 10px;
  border-radius: 12px;
  background: var(--panel);
  position: relative;
}

.leader__list li.is-new {
  animation: row-new 1.6s var(--ease-out);
}

@keyframes row-new {
  0% { background: rgba(251, 191, 36, 0.35); }
  100% { background: var(--panel); }
}

.leader__list .rk {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--panel-2);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 18px;
}

.leader__list li:nth-child(1) .rk { background: var(--amber); color: var(--navy); }
.leader__list li:nth-child(2) .rk { background: #cbd5e1; color: var(--navy); }
.leader__list li:nth-child(3) .rk { background: #c2410c; color: #fff7ed; }

.leader__list .nm {
  min-width: 0;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}

.leader__list .nm small {
  display: block;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader__list .sc {
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

/* ---- Raporlar ------------------------------------------------------------------------------ */

.report {
  border-radius: var(--r-lg);
  background: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.report__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.tabs {
  position: relative;
  display: flex;
  gap: 4px;
}

.tabs button {
  position: relative;
  padding: 10px 16px;
  border: 0;
  background: none;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.25s;
}

.tabs button[aria-selected='true'] {
  color: var(--ink);
}

.tabs__ink {
  position: absolute;
  bottom: -17px;
  left: 0;
  height: 3px;
  width: 0;
  border-radius: 3px 3px 0 0;
  background: var(--amber);
  transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out);
}

.report__tools {
  display: flex;
  gap: 8px;
}

.report__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
}

.report__table-wrap {
  overflow-x: auto;
  padding: 8px 12px 16px;
}

.report__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: 15px;
}

.report__table caption {
  caption-side: top;
  padding: 10px 8px 6px;
  text-align: left;
  color: var(--ink-3);
  font-weight: 700;
  font-size: 13px;
}

.report__table th {
  padding: 8px;
  text-align: left;
  font-weight: 800;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

.report__table td {
  padding: 11px 8px;
  white-space: nowrap;
  background: transparent;
  transition: background-color 0.25s;
}

.report__table td:first-child { border-radius: 10px 0 0 10px; }
.report__table td:last-child { border-radius: 0 10px 10px 0; }

.report__table .num {
  text-align: right;
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.report__table th.num {
  font-family: var(--f-text);
  font-size: 12px;
}

.report__table .total {
  font-weight: 700;
  font-size: 20px;
  color: var(--amber);
}

.report__table .pen {
  color: var(--live);
}

.report__table .drop {
  color: var(--ink-3);
  text-decoration: line-through;
}

.report__table tbody tr {
  cursor: pointer;
  animation: row-in 0.6s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes row-in {
  0% { opacity: 0; transform: translateX(-16px); }
  100% { opacity: 1; transform: none; }
}

.report__table tbody tr:hover td {
  background: var(--panel);
}

.report__table tbody tr.is-sel td {
  background: var(--panel-2);
}

.report__table .rank-cell {
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 20px;
}

.report__table tr.is-q .rank-cell {
  color: var(--amber);
}

.report__table .ath {
  font-weight: 800;
}

.q-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--amber-wash);
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
  vertical-align: 0.1em;
}

.judgechart {
  padding: 20px 22px;
  border-left: 1px solid var(--line);
}

.judgechart h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.judgechart__who {
  margin: 2px 0 18px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 14px;
}

.judgechart__bars {
  position: relative;
  display: grid;
  gap: 12px;
}

.judgechart__bars::before {
  content: '';
  position: absolute;
  left: calc(32px + (100% - 32px - 46px) / 2);
  top: -6px;
  bottom: -6px;
  width: 1px;
  background: var(--line-2);
}

.jbar {
  display: grid;
  grid-template-columns: 32px 1fr 46px;
  align-items: center;
  font-weight: 800;
  font-size: 13px;
}

.jbar__track {
  position: relative;
  height: 14px;
}

.jbar__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  border-radius: 4px;
  background: var(--amber);
  transition: width 0.8s var(--ease-out), left 0.8s var(--ease-out), opacity 0.4s;
}

.jbar.is-neg .jbar__fill {
  background: #60a5fa;
}

.jbar.is-drop .jbar__fill {
  opacity: 0.3;
}

.jbar__d {
  text-align: right;
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.judgechart__note {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ---- Ekran tasarımcısı --------------------------------------------------------------------- */

.studio {
  border-radius: var(--r-lg);
  background: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.studio__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-deep);
}

.seg button {
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}

.seg button[aria-checked='true'] {
  background: var(--panel-2);
  color: var(--ink);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch__track {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.3s;
}

.switch__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.4s var(--ease-spring), background-color 0.3s;
}

.switch input:checked + .switch__track {
  background: var(--amber);
}

.switch input:checked + .switch__track .switch__thumb {
  transform: translateX(20px);
  background: var(--navy);
}

.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.studio__work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  background:
    radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1.2px) 0 0 / 18px 18px,
    var(--bg-deep);
}

.studio__canvas {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: clamp(16px, 3vw, 36px);
  border-radius: 6px;
  background:
    radial-gradient(90% 90% at 85% 10%, rgba(251, 191, 36, 0.1), transparent 55%),
    linear-gradient(160deg, #111b30, #070d18);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  container-type: inline-size;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.guide {
  position: absolute;
  z-index: 5;
  background: var(--amber);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

.guide--v { left: 50%; top: 0; bottom: 0; width: 1px; }
.guide--h { top: 50%; left: 0; right: 0; height: 1px; }
.guide.is-on { opacity: 0.9; }

.el {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  translate: -50% -50%;
  padding: 0.4cqw 0.8cqw;
  border-radius: 4px;
  cursor: grab;
  white-space: nowrap;
  transition: left 0.8s var(--ease-out), top 0.8s var(--ease-out), opacity 0.5s, scale 0.6s var(--ease-spring);
}

.el.is-hidden {
  opacity: 0;
  scale: 0.6;
  pointer-events: none;
}

.el.is-drag {
  cursor: grabbing;
  transition: none;
}

.el::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: 0 0 0 1px transparent;
  transition: box-shadow 0.2s;
  pointer-events: none;
}

.el:hover::after {
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.5);
}

.el.is-sel::after {
  box-shadow: 0 0 0 2px var(--amber);
  background:
    linear-gradient(var(--amber), var(--amber)) 0 0 / 6px 6px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 100% 0 / 6px 6px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 0 100% / 6px 6px no-repeat,
    linear-gradient(var(--amber), var(--amber)) 100% 100% / 6px 6px no-repeat;
  margin: -3px;
}

.el .fld {
  display: inline-block;
}

.el .fld.is-typing {
  animation: fld-in 0.45s var(--ease-out);
}

@keyframes fld-in {
  0% { opacity: 0; filter: blur(4px); transform: translateY(30%); }
  100% { opacity: 1; filter: none; transform: none; }
}

.el--event { font-weight: 800; font-size: 2.4cqw; color: var(--ink-2); }
.el--name { font-weight: 900; font-size: 5.4cqw; letter-spacing: -0.02em; }
.el--club { font-weight: 700; font-size: 2.2cqw; color: var(--ink-2); }
.el--score { font-family: var(--f-num); font-weight: 700; font-size: 11cqw; line-height: 1; color: var(--amber); }
.el--rank { font-family: var(--f-num); font-weight: 700; font-size: 4cqw; padding: 0.4cqw 1.6cqw; border-radius: 1cqw; background: var(--amber); color: var(--navy); }
.el--timer { font-family: var(--f-num); font-weight: 700; font-size: 9cqw; font-variant-numeric: tabular-nums; }
.el--next { font-weight: 800; font-size: 2.6cqw; color: var(--ink-2); }
.el--logo img { width: 12cqw; height: auto; }

.el--judges {
  display: flex;
  gap: 1cqw;
}

.el--judges > span {
  display: grid;
  place-items: center;
  min-width: 8cqw;
  padding: 0.6cqw 0.8cqw;
  border-radius: 1cqw;
  background: rgba(30, 41, 59, 0.85);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 2.8cqw;
}

.el--table {
  display: grid;
  gap: 0.6cqw;
  min-width: 46cqw;
}

.el--table .tr {
  display: grid;
  grid-template-columns: 4cqw 1fr auto;
  gap: 1.4cqw;
  padding: 0.8cqw 1.4cqw;
  border-radius: 1cqw;
  background: rgba(30, 41, 59, 0.85);
  font-weight: 800;
  font-size: 2.4cqw;
}

.el--table .tr b { font-family: var(--f-num); color: var(--amber); }
.el--table .tr i { font-style: normal; font-family: var(--f-num); }

.studio__layers {
  margin: 0;
  padding: 14px;
  list-style: none;
  border-left: 1px solid var(--line);
  background: var(--navy);
}

.studio__layers li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, opacity 0.3s;
}

.studio__layers li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--line-2);
  transition: background-color 0.2s;
}

.studio__layers li:hover {
  background: var(--panel);
}

.studio__layers li.is-sel {
  background: var(--panel-2);
  color: var(--ink);
}

.studio__layers li.is-sel::before {
  background: var(--amber);
}

.studio__layers li.is-off {
  opacity: 0.35;
}

/* ---- Müsabaka günü ------------------------------------------------------------------------- */

.steps {
  --fill: 0;
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  margin: 0;
  padding: 0 0 0 clamp(72px, 9vw, 120px);
  list-style: none;
  max-width: 880px;
}

.steps::before,
.steps::after {
  content: '';
  position: absolute;
  left: clamp(27px, 3.4vw, 39px);
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: var(--line);
}

.steps::after {
  background: linear-gradient(var(--amber), var(--amber-deep));
  transform-origin: top;
  transform: scaleY(var(--fill));
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.6);
}

.step {
  position: relative;
}

.step__n {
  position: absolute;
  left: calc(-1 * clamp(72px, 9vw, 120px));
  top: -4px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(56px, 7vw, 80px);
  height: clamp(56px, 7vw, 80px);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 3px var(--line);
  font-family: var(--f-num);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--ink-3);
  transition: box-shadow 0.5s, color 0.5s, background-color 0.5s, transform 0.5s var(--ease-spring);
}

.step.is-done .step__n {
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 0 0 6px var(--amber-wash);
  transform: scale(1.04);
}

.step h3 {
  margin: 8px 0 6px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: -0.01em;
  transition: color 0.5s;
  color: var(--ink-2);
}

.step.is-done h3 {
  color: var(--ink);
}

.step p {
  margin: 0;
  max-width: 36em;
  color: var(--ink-2);
}

/* ---- Kurulum ------------------------------------------------------------------------------- */

.setup__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.setup__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.setup__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--sx, 50%) var(--sy, -20%), rgba(251, 191, 36, 0.1), transparent 45%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.setup__card:hover::before {
  opacity: 1;
}

.setup__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setup__card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.setup__card p {
  margin: 0 0 20px;
  color: var(--ink-2);
}

.term {
  margin-top: auto;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--f-code);
  font-size: 12.5px;
  min-height: 72px;
}

.term__line {
  min-height: 1.5em;
  white-space: pre-wrap;
  word-break: break-word;
}

.term__out { color: var(--ink-2); }
.term__ok { color: var(--ok); }

.term__line.is-caret::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--amber);
  animation: caret 0.9s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.setup__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.setup__roles li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--panel-2);
  font-weight: 800;
  font-size: 13px;
}

/* ---- Kapanış ------------------------------------------------------------------------------- */

.cta {
  position: relative;
  margin-top: clamp(96px, 13vw, 168px);
  padding: clamp(96px, 12vw, 150px) var(--gutter);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(251, 191, 36, 0.16), transparent 70%),
    var(--bg-deep);
  border-top: 1px solid var(--line);
}

.cta__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.cta__logo {
  margin: 0 auto 28px;
  border-radius: 18px;
  box-shadow: 0 20px 50px -10px rgba(251, 191, 36, 0.4);
  animation: float-soft 5s ease-in-out infinite;
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cta__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cta p {
  max-width: 32em;
  margin: 20px auto 36px;
  color: var(--ink-2);
  font-size: 18px;
}

.cta__rings span {
  position: absolute;
  left: 50%;
  top: calc(clamp(96px, 12vw, 150px) + 36px);
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 191, 36, 0.5);
  animation: ring 4.5s var(--ease-out) infinite;
}

.cta__rings span:nth-child(2) { animation-delay: 1.5s; }
.cta__rings span:nth-child(3) { animation-delay: 3s; }

@keyframes ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(14); opacity: 0; }
}

.footer {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px var(--gutter) 44px;
  color: var(--ink-3);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer__copy {
  margin-left: auto !important;
}

/* ---- Bildirim ------------------------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--navy);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translate(-50%, calc(100% + 40px));
  transition: transform 0.5s var(--ease-spring), opacity 0.3s;
  pointer-events: none;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- Duyarlı yerleşim ---------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 112px;
    padding-bottom: 120px;
  }

  .hero__stage {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }

  .how__grid,
  .console {
    grid-template-columns: 1fr;
  }

  .report__body {
    grid-template-columns: 1fr;
  }

  .judgechart {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .setup__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: block;
  }

  .nav.is-open {
    background: rgba(11, 18, 32, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nav.is-open .nav__links {
    display: flex;
    position: fixed;
    inset: 64px 0 auto;
    flex-direction: column;
    padding: 12px var(--gutter) 24px;
    background: rgba(11, 18, 32, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav__links a {
    padding: 14px 4px;
    font-size: 18px;
    animation: swap-in 0.5s var(--ease-out) both;
  }

  .nav.is-open .nav__links a:nth-child(2) { animation-delay: 0.04s; }
  .nav.is-open .nav__links a:nth-child(3) { animation-delay: 0.08s; }
  .nav.is-open .nav__links a:nth-child(4) { animation-delay: 0.12s; }
  .nav.is-open .nav__links a:nth-child(5) { animation-delay: 0.16s; }

  .studio__work {
    grid-template-columns: 1fr;
  }

  .studio__layers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hide-sm {
    display: none;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero__title .line {
    white-space: normal;
  }

  .tablet {
    display: none;
  }

  .board {
    aspect-ratio: auto;
  }

  .board__main {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .board__score {
    grid-column: 1;
    grid-row: auto;
    align-items: flex-start;
  }

  .board__stamp {
    right: auto;
    left: 150px;
  }

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

  .method {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .method__pill {
    display: none;
  }

  .method button[aria-checked='true'] {
    background: var(--amber);
  }

  .judge {
    grid-template-columns: 30px minmax(0, 1fr) 52px;
  }

  .judge__tag {
    display: none;
  }

  .report__bar {
    padding: 12px;
  }

  .tabs__ink {
    display: none;
  }

  .tabs button[aria-selected='true'] {
    background: var(--panel-2);
  }

  .footer__copy {
    margin-left: 0 !important;
  }
}

/* ---- Hareket azaltma ----------------------------------------------------------------------- */

@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;
    transition-delay: 0s !important;
  }

  .ticker__track {
    animation: none;
  }

  .dot {
    transform: none;
  }
}

/* ---- Yazdırma: yalnızca sonuç listesi ------------------------------------------------------ */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body > *:not(main),
  main > *:not(#raporlar),
  #raporlar .section__head,
  .report__bar,
  .judgechart {
    display: none !important;
  }

  .section {
    padding: 0;
  }

  .report {
    box-shadow: none;
    background: none;
  }

  .report__body {
    display: block;
  }

  .report__table,
  .report__table td,
  .report__table th,
  .report__table caption,
  .report__table .total,
  .report__table tr.is-q .rank-cell,
  .q-tag {
    color: #000 !important;
    background: none !important;
    animation: none !important;
  }

  .report__table td {
    border-bottom: 1px solid #ccc;
  }
}
