:root {
  /* project accent: Turkish red */
  --accent-h: 358; --accent-s: 72%; --accent-l: 54%;
  --font-brand: "Anton", "Arial Black", sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gold: 45 90% 58%;
}
h1, h2, h3 { font-family: var(--font-brand); font-weight: 400; letter-spacing: 0.01em; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { overflow-x: hidden; }

.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }

/* ---------- start ---------- */
.start-wrap {
  max-width: 640px; margin: 0 auto; padding: 9vh 24px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  text-align: center;
}
.logo {
  font-family: var(--font-brand); font-weight: 400;
  font-size: clamp(5rem, 17vw, 8.5rem); line-height: 1; letter-spacing: 0.01em;
  text-shadow: 0 0 80px hsl(var(--accent) / .35);
}
.logo-dash { color: hsl(var(--accent)); }
.logo-sm { font-family: var(--font-brand); font-size: var(--text-xl); letter-spacing: .02em; }
.logo-sm i { font-style: normal; color: hsl(var(--accent)); }
.tagline { font-size: var(--text-xl); color: hsl(var(--muted-foreground)); line-height: 1.5; font-family: var(--font-cond); }
.tagline b { color: hsl(var(--foreground)); }
.fan-tag {
  font-family: var(--font-cond); font-weight: 600; font-size: var(--text-sm);
  letter-spacing: .18em; color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 6px 16px;
}
.section-label {
  font-family: var(--font-cond); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; font-size: var(--text-sm); color: hsl(var(--accent));
}
.section-label em { font-style: normal; color: hsl(var(--muted-foreground)); text-transform: none; letter-spacing: 0; }

.stat-row { display: flex; gap: 40px; }
.stat-row div { display: flex; flex-direction: column; gap: 2px; }
.stat-row b { font-family: var(--font-brand); font-size: var(--text-3xl); font-weight: 400; }
.stat-row span { font-size: var(--text-xs); color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: var(--tracking-label); }

.formation-pick { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.formation-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.formation-btns button {
  font-family: var(--font-cond); font-weight: 600; font-size: var(--text-base); padding: 10px 18px;
  background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  cursor: pointer; transition: all .15s;
}
.formation-btns button.sel {
  background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
}

.btn-primary {
  font-family: var(--font-cond); font-size: var(--text-xl); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 14px 36px; border: none; border-radius: var(--radius);
  background: hsl(var(--accent)); color: hsl(var(--accent-foreground));
  cursor: pointer; box-shadow: var(--shadow); transition: transform .12s, opacity .12s;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:disabled { opacity: .4; cursor: default; transform: none; }

.howto { font-size: var(--text-sm); color: hsl(var(--muted-foreground)); max-width: 460px; line-height: 1.6; }

/* ---------- draft ---------- */
.bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid hsl(var(--border));
}
.draft-grid {
  display: grid; grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 28px; max-width: 1060px; margin: 0 auto; padding: 24px 22px 60px;
}
@media (max-width: 760px) { .draft-grid { grid-template-columns: 1fr; } }

.pitch {
  aspect-ratio: 3 / 4; border-radius: var(--radius-lg);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400'%3E%3Cg fill='none' stroke='%234a6a56' stroke-opacity='.75' stroke-width='1.5'%3E%3Crect x='12' y='12' width='276' height='376'/%3E%3Cline x1='12' y1='200' x2='288' y2='200'/%3E%3Ccircle cx='150' cy='200' r='38'/%3E%3Ccircle cx='150' cy='200' r='2' fill='%234a6a56'/%3E%3Crect x='84' y='12' width='132' height='58'/%3E%3Crect x='117' y='12' width='66' height='22'/%3E%3Cpath d='M 116 70 A 38 38 0 0 0 184 70'/%3E%3Ccircle cx='150' cy='52' r='2' fill='%234a6a56'/%3E%3Crect x='84' y='330' width='132' height='58'/%3E%3Crect x='117' y='366' width='66' height='22'/%3E%3Cpath d='M 116 330 A 38 38 0 0 1 184 330'/%3E%3Ccircle cx='150' cy='348' r='2' fill='%234a6a56'/%3E%3Cpath d='M 12 18 A 6 6 0 0 0 18 12 M 282 12 A 6 6 0 0 0 288 18 M 288 382 A 6 6 0 0 0 282 388 M 18 388 A 6 6 0 0 0 12 382'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat,
    repeating-linear-gradient(0deg, hsl(150 30% 13.5%) 0 12.5%, hsl(150 32% 11.5%) 12.5% 25%),
    linear-gradient(hsl(150 30% 14%), hsl(150 32% 10%));
  border: 1px solid hsl(var(--border));
  position: relative; overflow: hidden;
}
.slot {
  position: absolute; transform: translate(-50%, -50%);
  width: 74px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  z-index: 2; text-align: center;
}
.slot .dot {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px dashed hsl(150 15% 45%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: var(--text-xs); color: hsl(150 15% 55%);
  background: hsl(150 30% 12% / .6);
}
.slot.filled .dot {
  border: 2px solid hsl(var(--accent)); color: #fff;
  background: hsl(var(--accent)); font-weight: 600; font-size: var(--text-sm);
}
.slot.open-now .dot {
  border-color: hsl(48 90% 55%); color: hsl(48 90% 65%);
  box-shadow: 0 0 12px hsl(48 90% 55% / .35);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.slot.line-kl:not(.filled) .dot { border-color: hsl(45 60% 45%); color: hsl(45 70% 60%); }
.slot.line-df:not(.filled) .dot { border-color: hsl(205 50% 45%); color: hsl(205 65% 65%); }
.slot.line-os:not(.filled) .dot { border-color: hsl(140 40% 42%); color: hsl(140 45% 58%); }
.slot.line-fv:not(.filled) .dot { border-color: hsl(356 55% 50%); color: hsl(356 70% 68%); }
.slot .nm {
  font-size: 10px; line-height: 1.15; color: hsl(150 10% 80%);
  font-family: var(--font-body); font-weight: 600;
  max-width: 74px; overflow: hidden; text-overflow: ellipsis;
}
.team-lines {
  margin-top: 12px; display: flex; gap: 8px; justify-content: center;
}
.tl {
  flex: 1; max-width: 86px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 6px; border: 1px solid hsl(var(--border)); border-radius: var(--radius-sm);
  background: hsl(var(--card));
}
.tl span { font-size: 9px; text-transform: uppercase; letter-spacing: var(--tracking-label); color: hsl(var(--muted-foreground)); }
.tl b { font-size: var(--text-lg); font-weight: 600; }
.tl-ov { border-color: hsl(var(--accent) / .5); }
.tl-ov b { color: hsl(var(--accent)); }
.c-kl { color: hsl(45 85% 60%); }
.c-df { color: hsl(205 80% 65%); }
.c-os { color: hsl(140 55% 58%); }
.c-fv { color: hsl(356 85% 68%); }

.wheel-col { display: flex; flex-direction: column; gap: 14px; }
.wheel-box {
  border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, hsl(var(--card)), hsl(var(--secondary)));
  box-shadow: var(--shadow);
  min-height: 108px; display: flex; align-items: stretch; justify-content: center;
  overflow: hidden; position: relative;
}
.reel-wrap {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; padding: 14px 10px; min-width: 0;
}
.reel-label {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: var(--tracking-label); color: hsl(var(--muted-foreground));
}
.reel-x {
  display: flex; align-items: center; color: hsl(var(--muted-foreground));
  font-family: var(--font-display); font-size: var(--text-xl); opacity: .5;
}
.wheel-reel {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700;
  text-align: center; max-width: 100%; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; transition: color .15s;
}
.wheel-reel.landed { color: hsl(var(--accent)); animation: land .3s ease; }
@keyframes land {
  0% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.wheel-box.spinning .wheel-reel:not(.landed) { filter: blur(1.5px); opacity: .8; }
.btn-spin { display: flex; align-items: center; justify-content: center; gap: 10px; }
.key-hint {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: var(--tracking-label); opacity: .65;
  border: 1px solid hsl(0 0% 100% / .35); border-radius: var(--radius-sm);
  padding: 2px 7px;
}

.bar-right { display: flex; gap: 8px; }
.bar-chip {
  font-size: var(--text-sm); padding: 4px 12px;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius-sm);
  background: hsl(var(--card));
}

.squad-panel { display: flex; flex-direction: column; gap: 6px; }
.squad-title { font-size: var(--text-sm); color: hsl(var(--muted-foreground)); margin: 6px 0 2px; }

.squad-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border: 1px solid hsl(var(--border));
  border-radius: var(--radius); background: hsl(var(--card));
  border-left: 3px solid hsl(var(--accent));
}
.squad-club { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.squad-club b { font-family: var(--font-display); font-size: var(--text-lg); }
.squad-club span { color: hsl(var(--muted-foreground)); font-size: var(--text-sm); }
.squad-posbadge {
  font-size: var(--text-xs); padding: 3px 9px; border-radius: var(--radius-sm);
  background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground));
}
.squad-head .btn-reroll { margin-left: auto; margin-bottom: 0; }

.sort-row { display: flex; gap: 6px; margin: 2px 0; }
.sort-row button {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: var(--tracking-label); padding: 5px 11px;
  background: transparent; color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius-sm); cursor: pointer;
}
.sort-row button.sel { color: hsl(var(--accent)); border-color: hsl(var(--accent)); }

.player-row {
  display: grid; grid-template-columns: 46px 1fr auto auto; gap: 12px; align-items: center;
  padding: 9px 14px; border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--card)); cursor: pointer; transition: border-color .12s, transform .12s;
}
.player-row:hover { border-color: hsl(var(--accent)); transform: translateX(2px); }
.player-row.dis { opacity: .35; cursor: default; pointer-events: none; }
.player-row .rt {
  font-family: var(--font-mono); font-weight: 600; font-size: var(--text-lg);
  text-align: center; border-radius: var(--radius-sm); padding: 4px 0;
}
.rt.t-gold { color: hsl(45 95% 55%); background: hsl(45 95% 55% / .1); }
.rt.t-good { color: hsl(140 55% 55%); background: hsl(140 55% 45% / .1); }
.rt.t-mid  { color: hsl(var(--foreground)); background: hsl(var(--secondary)); }
.rt.t-low  { color: hsl(var(--muted-foreground)); background: hsl(var(--secondary) / .6); }
.player-row .info { min-width: 0; }
.player-row .info b { font-size: var(--text-base); font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-row .info span { font-size: var(--text-xs); color: hsl(var(--muted-foreground)); }
.player-row .st { font-family: var(--font-mono); font-size: var(--text-xs); color: hsl(var(--muted-foreground)); text-align: right; }
.player-row .gp { display: flex; gap: 4px; }
.pos-badge {
  font-family: var(--font-mono); font-size: 10px; padding: 3px 6px;
  border-radius: var(--radius-sm); font-weight: 500;
}
.g-kl { background: hsl(45 80% 50% / .15); color: hsl(45 85% 60%); }
.g-df { background: hsl(205 75% 55% / .15); color: hsl(205 80% 65%); }
.g-os { background: hsl(140 55% 45% / .15); color: hsl(140 55% 58%); }
.g-fv { background: hsl(356 75% 55% / .16); color: hsl(356 85% 68%); }

/* ---------- season ---------- */
.season-wrap {
  max-width: 720px; margin: 0 auto; padding: 28px 22px 80px;
  display: flex; flex-direction: column; gap: 22px; align-items: center;
}
.xi-summary { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.xi-chip {
  font-family: var(--font-mono); font-size: var(--text-xs);
  padding: 6px 10px; border: 1px solid hsl(var(--border)); border-radius: var(--radius-sm);
  background: hsl(var(--card));
}
.xi-chip b { color: hsl(var(--accent)); }
.fixtures {
  width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.fx {
  font-family: var(--font-mono); font-size: var(--text-xs);
  padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  display: flex; justify-content: space-between; gap: 8px;
  opacity: 0; transform: translateY(4px); transition: all .25s;
  overflow: hidden; white-space: nowrap;
}
.fx.show { opacity: 1; transform: none; }
.fx.W { border-left: 3px solid hsl(140 60% 45%); }
.fx.D { border-left: 3px solid hsl(45 90% 55%); }
.fx.L { border-left: 3px solid hsl(var(--destructive)); }
.fx .opp { overflow: hidden; text-overflow: ellipsis; }

.season-result { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.season-result h2 { font-size: var(--text-4xl); }
.season-result .rec { font-family: var(--font-mono); font-size: var(--text-xl); color: hsl(var(--muted-foreground)); }
.season-result .perfect { color: hsl(var(--accent)); }
.share-box {
  font-family: var(--font-mono); font-size: var(--text-xs); text-align: left;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); padding: 14px 18px; white-space: pre-wrap;
}
.btn-ghost {
  font-family: var(--font-mono); font-size: var(--text-sm); padding: 10px 20px;
  background: transparent; color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius); cursor: pointer;
}
.btn-ghost:hover { border-color: hsl(var(--accent)); }
.btn-reroll { align-self: flex-start; margin-bottom: 4px; }
.start-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-free { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.daily-note { font-size: var(--text-sm); color: hsl(var(--muted-foreground)); max-width: 460px; text-align: center; }
.share-preview {
  width: min(100%, 380px); height: auto; border-radius: var(--radius);
  border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-lg);
}
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-wide { min-width: 240px; }
.place-in {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 14px; border: 1px dashed hsl(var(--accent) / .5);
  border-radius: var(--radius); background: hsl(var(--card));
}
.slot .dot { font-size: 10px; }
.slot.filled .dot { font-size: var(--text-sm); }


/* ---------- start page sections ---------- */
.btn-big { padding: 16px 34px; }
.settings-card {
  width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 20px;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius-lg);
  background: hsl(var(--card) / .6); padding: 22px 24px;
}
.howto-grid { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 16px; align-items: center; margin-top: 20px; }
.howto-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; width: 100%; }
.step {
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--card)); padding: 18px 16px; text-align: left;
  display: flex; flex-direction: column; gap: 8px;
}
.step b {
  font-family: var(--font-brand); font-size: var(--text-2xl); color: hsl(var(--accent));
  line-height: 1;
}
.step h3 { font-size: var(--text-base); font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.step p { font-size: var(--text-sm); color: hsl(var(--muted-foreground)); line-height: 1.5; }
.seo-block {
  max-width: 640px; text-align: left; display: flex; flex-direction: column; gap: 14px;
  margin-top: 28px; border-top: 1px solid hsl(var(--border)); padding-top: 32px;
}
.seo-block h2 { font-size: var(--text-2xl); }
.seo-block p { font-size: var(--text-base); color: hsl(var(--muted-foreground)); line-height: 1.7; }
.seo-block b { color: hsl(var(--foreground)); }
.site-footer {
  max-width: 640px; margin-top: 34px; padding-top: 22px;
  border-top: 1px solid hsl(var(--border));
  font-size: var(--text-xs); color: hsl(var(--muted-foreground) / .8); line-height: 1.7;
}
.fx-sc {
  display: block; width: 100%; font-size: 10px; color: hsl(var(--muted-foreground));
  overflow: hidden; text-overflow: ellipsis; margin-top: 3px;
}
.fx { flex-wrap: wrap; }

.bar-btn {
  font-family: var(--font-cond); font-weight: 600; cursor: pointer;
  color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: .05em;
}
.bar-btn:hover { color: hsl(var(--accent)); border-color: hsl(var(--accent)); }

/* wheel roll + landing */
.wheel-reel.roll { animation: rollIn .1s ease-out; }
@keyframes rollIn {
  0% { transform: translateY(-60%); opacity: .2; filter: blur(2px); }
  100% { transform: translateY(0); opacity: 1; filter: none; }
}
.wheel-reel.landed { animation: landBounce .45s cubic-bezier(.2, 2.2, .4, 1); }
@keyframes landBounce {
  0% { transform: translateY(60%) scale(.8); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.wheel-box.flash { animation: boxFlash .7s ease-out; }
@keyframes boxFlash {
  0% { box-shadow: 0 0 0 3px hsl(var(--accent)), 0 0 44px hsl(var(--accent) / .55); }
  100% { box-shadow: var(--shadow); }
}
.reel-wrap { position: relative; overflow: hidden; }
.reel-wrap::before, .reel-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; height: 20px; z-index: 2; pointer-events: none;
}
.reel-wrap::before { top: 0; background: linear-gradient(hsl(var(--card)), transparent); }
.reel-wrap::after { bottom: 0; background: linear-gradient(transparent, hsl(var(--secondary))); }

/* content pages */
.page-wrap { padding-top: 5vh; gap: 20px; }
.page-logo { text-decoration: none; color: hsl(var(--foreground)); }
.page-title { font-size: clamp(1.8rem, 6vw, 3rem); text-align: center; line-height: 1.15; }
.seo-block h2 { margin-top: 10px; }
.site-footer a { color: hsl(var(--accent)); }
