:root {
  color-scheme: light;
  --ink: #171719;
  --muted: #66666f;
  --line: #e7e7eb;
  --soft: #f6f6f8;
  --paper: #ffffff;
  --night: #101114;
  --coral: #f15b4e;
  --blue: #3559e8;
  --yellow: #f4c441;
  --mint: #93dfbe;
  --accent: #f15b4e;
  --shadow: 0 18px 50px rgba(19, 21, 29, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  color: #fff;
  background: rgba(13, 14, 17, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 850;
}

.brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #171719;
  background: var(--yellow);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.13);
}

.topbar nav { display: flex; align-items: center; gap: 20px; }

.topbar nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 750;
}

.topbar nav a:hover { color: #fff; }

.topbar .nav-play {
  padding: 9px 13px;
  color: #171719;
  background: #fff;
  border-radius: 6px;
}

main:not(.home-main),
.games-section,
.ad-slot,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.home-main { width: 100%; }

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 68px));
  display: flex;
  align-items: stretch;
  color: #fff;
  background: #0c0d10 url('/assets/media/poll2day-hero.jpg') center / cover no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 9, 12, 0.98) 0%, rgba(8, 9, 12, 0.91) 37%, rgba(8, 9, 12, 0.28) 70%, rgba(8, 9, 12, 0.1) 100%);
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 54px;
}

.hero-copy { max-width: 720px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--yellow); }

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 880;
  line-height: 0.96;
  text-wrap: balance;
}

.hero h1 span { color: var(--yellow); }

.hero-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.hero-actions { display: flex; align-items: center; gap: 24px; }

.hero-actions > span { display: grid; gap: 2px; }
.hero-actions strong { font-size: 13px; }
.hero-actions small { color: rgba(255, 255, 255, 0.56); }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 0;
  border-radius: 7px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button b { font-size: 19px; }

.primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 14px 34px rgba(241, 91, 78, 0.3);
}

.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.hero-proof {
  max-width: 700px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.hero-proof strong { color: #fff; margin-right: 4px; }

.hero-proof span {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.ad-slot { display: none; }
.ad-slot.live { display: grid; min-height: 96px; margin-block: 22px; }

.games-section { padding: 76px 0 88px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.section-head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
}

.section-head > p {
  max-width: 380px;
  margin: 0 0 5px;
  color: var(--muted);
  line-height: 1.55;
}

.category-filter {
  display: flex;
  gap: 8px;
  padding-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-filter::-webkit-scrollbar { display: none; }

.filter-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  color: #5e5e67;
  background: #fff;
  border: 1px solid #dadae0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  color: #fff;
  background: var(--night);
  border-color: var(--night);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.game-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.game-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 20, 26, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 22px 46px rgba(20, 20, 26, 0.12);
}

.game-card[hidden] { display: none; }

.game-art {
  position: relative;
  min-height: 174px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 88%, #171719);
}

.game-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 400ms ease;
}

.game-art i {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(180deg, transparent 58%, rgba(10, 10, 13, 0.38));
  pointer-events: none;
}

.game-card:hover .game-art img { transform: scale(1.035); }

.game-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 18px;
}

.badge {
  align-self: flex-start;
  color: color-mix(in srgb, var(--accent) 78%, #171719);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-card strong {
  font-size: 25px;
  font-weight: 850;
  line-height: 1.04;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.game-card em {
  margin-top: auto;
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.game-card em b { margin-left: 4px; font-size: 16px; }

.game-card.featured {
  grid-column: span 2;
  min-height: 330px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
}

.game-card.featured .game-art { min-height: 100%; }
.game-card.featured .game-content { padding: 26px; }
.game-card.featured strong { font-size: clamp(30px, 3vw, 42px); }
.game-card.featured p { font-size: 15px; }

.home-content {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(40px, 8vw, 100px);
  margin: 0 auto 88px;
  padding: clamp(34px, 6vw, 68px);
  color: #fff;
  background: var(--night);
  border-radius: 8px;
}

.home-content h2,
.game-editorial h2 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.02;
}

.home-content p:not(.eyebrow) { color: rgba(255, 255, 255, 0.7); font-size: 16px; line-height: 1.7; }
.text-link { display: inline-block; margin-top: 10px; color: var(--yellow); font-weight: 850; }
.home-content ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.home-content li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.home-content li:first-child { padding-top: 0; }
.home-content li:last-child { border-bottom: 0; }
.home-content li b { grid-row: span 2; color: var(--yellow); font-size: 13px; }
.home-content li strong { font-size: 18px; }
.home-content li span { color: rgba(255, 255, 255, 0.62); font-size: 14px; line-height: 1.5; }

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  padding: 46px 0 72px;
}

.play-card,
.legal,
.admin,
.share-panel {
  padding: clamp(24px, 5vw, 46px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.play-card { padding: 0; overflow: hidden; }

.play-cover {
  position: relative;
  aspect-ratio: 16 / 7;
  margin: 0;
  overflow: hidden;
  background: var(--night);
}

.play-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(9, 10, 13, 0.28));
}

.play-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.play-card-body { padding: clamp(24px, 5vw, 46px); }

.back-link { color: var(--muted); font-size: 14px; font-weight: 800; }

.play-heading {
  margin-top: 28px;
}

.play-card h1,
.legal h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
}

.play-card-body > p {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.quiz-form { display: grid; gap: 16px; max-width: 560px; margin-top: 28px; }

label { display: grid; gap: 8px; color: #494950; font-size: 14px; font-weight: 800; }

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fafafd;
  border: 1px solid #d8d8de;
  border-radius: 7px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--accent);
}

.form-note { color: #8a8a91; text-align: center; }

.game-editorial {
  padding: 10px 0 84px;
}

.editorial-intro {
  max-width: 850px;
  margin-bottom: 44px;
}

.editorial-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.editorial-grid article {
  min-height: 260px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.editorial-grid article > span { color: var(--accent); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.editorial-grid h3 { margin: 10px 0 12px; font-size: 23px; line-height: 1.1; }
.editorial-grid p,
.editorial-grid li { color: var(--muted); font-size: 15px; line-height: 1.65; }
.editorial-grid ul { margin: 0; padding-left: 19px; }

.faq-section { max-width: 850px; margin-top: 64px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 20px 34px 20px 0; font-size: 17px; font-weight: 850; cursor: pointer; }
.faq-list details p { margin: -5px 0 20px; color: var(--muted); line-height: 1.65; }

.not-found {
  padding-top: clamp(70px, 10vw, 130px);
  padding-bottom: 90px;
}

.not-found > h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.94;
}

.not-found > p:not(.eyebrow) {
  max-width: 660px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.not-found .game-grid { margin-top: 70px; }

.side-rail h2 { margin: 10px 0 14px; font-size: 20px; }

.side-game {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.side-game > i { width: 8px; height: 38px; background: var(--accent); border-radius: 4px; }
.side-game > span { flex: 1; display: grid; gap: 2px; font-weight: 800; }
.side-game small { color: var(--muted); font-weight: 600; }
.side-game > b { font-size: 18px; }

.result-layout { padding: 44px 0 76px; }

.result-kicker { margin: 0 0 18px; color: var(--muted); font-size: 13px; font-weight: 850; text-transform: uppercase; }

.result-stage {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(300px, 1fr);
  gap: 30px;
  align-items: center;
}

.result-card {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(32px, 6vw, 52px);
  overflow: hidden;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 82%, #15151a);
  border-radius: 8px;
  box-shadow: 0 30px 70px color-mix(in srgb, var(--accent) 22%, transparent);
  isolation: isolate;
}

.result-card::before,
.result-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.result-card::before { width: 320px; height: 420px; right: -120px; top: -100px; transform: rotate(20deg); border-radius: 50%; }
.result-card::after { inset: 18px; border-radius: 6px; }

.result-card span,
.result-card small { color: rgba(255, 255, 255, 0.76); font-size: 12px; font-weight: 850; text-transform: uppercase; }

.result-card h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.result-card p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 18px; line-height: 1.5; }
.result-card small { margin-top: 14px; display: flex; align-items: center; gap: 8px; }
.result-card small b { width: 30px; height: 30px; display: grid; place-items: center; color: #171719; background: var(--yellow); border-radius: 6px; }

.share-panel { box-shadow: none; }
.share-panel h2 { margin: 0; font-size: clamp(34px, 5vw, 50px); line-height: 1; }
.share-panel > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }

.share-caption {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--soft);
}

.share-caption span,
.reading-points span {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.share-caption p { margin: 0; color: #34343a; font-size: 14px; line-height: 1.55; }
.share-note { display: block; margin: -2px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.share-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0 14px; }

.result-reading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(36px, 7vw, 90px);
  margin: 28px 0 72px;
  padding: clamp(30px, 5vw, 56px);
  color: #fff;
  background: var(--night);
  border-radius: 8px;
}

.reading-intro h2 { max-width: 700px; margin: 0 0 18px; font-size: clamp(36px, 5vw, 58px); line-height: 1; }
.reading-intro > p:not(.eyebrow) { margin: 0; color: rgba(255, 255, 255, 0.76); font-size: 18px; line-height: 1.7; }
.reading-intro > small { display: block; margin-top: 20px; color: rgba(255, 255, 255, 0.48); line-height: 1.5; }
.reading-points { display: grid; align-content: center; }
.reading-points article { padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.reading-points article:last-child { border-bottom: 0; }
.reading-points strong { display: block; font-size: 18px; line-height: 1.45; }

.share {
  min-height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 7px;
  font-weight: 850;
  cursor: pointer;
}

.fb { background: #1877f2; }
.wa { background: #128c4f; }
.tw { background: #171719; }
.copy { background: #6c4de6; }

.legal { max-width: 860px; margin: 42px auto; }
.legal h2 { margin: 32px 0 8px; font-size: 24px; }
.legal p { color: var(--muted); font-size: 17px; line-height: 1.72; }

.admin { width: min(1100px, calc(100% - 40px)); margin: 32px auto; }
.admin textarea { min-height: 70vh; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.notice { color: var(--coral); font-weight: 850; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 0;
  padding: 30px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer p { margin: 0; }
.footer a { margin-left: 14px; color: var(--ink); font-weight: 750; }

.footer-link {
  margin-left: 14px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: inherit;
  font-weight: 750;
  cursor: pointer;
}

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 50;
  width: min(860px, calc(100% - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px;
  color: #fff;
  background: #171719;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
}

.consent-banner[hidden] { display: none; }
.consent-banner strong { display: block; margin-bottom: 5px; font-size: 18px; }
.consent-banner p { margin: 0 0 6px; color: rgba(255, 255, 255, 0.72); font-size: 14px; line-height: 1.5; }
.consent-banner a { color: #fff; font-size: 13px; font-weight: 800; text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions .button { min-height: 44px; white-space: nowrap; }
.consent-actions .secondary { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.34); }

@media (max-width: 980px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-content { grid-template-columns: 1fr; }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-grid article { min-height: 0; }
  .play-layout,
  .result-stage { grid-template-columns: 1fr; }
  .result-reading { grid-template-columns: 1fr; }
  .side-rail { display: contents; }
  .result-stage { max-width: 680px; margin-inline: auto; }
}

@media (max-width: 680px) {
  .topbar { height: 62px; padding-inline: 16px; }
  .brand span { width: 34px; height: 34px; }
  .topbar nav > a:first-child { display: none; }
  .topbar .nav-play { padding: 8px 11px; }

  main:not(.home-main),
  .games-section,
  .ad-slot,
  .footer { width: min(100% - 28px, 1180px); }

  .hero { min-height: 650px; background-position: 64% center; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 9, 12, 0.92), rgba(8, 9, 12, 0.72) 62%, rgba(8, 9, 12, 0.94)); }
  .hero-inner { width: calc(100% - 32px); padding: 52px 0 28px; }
  .hero h1 { max-width: 520px; font-size: 47px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero-actions > span { display: none; }
  .hero-proof { gap: 7px; }
  .hero-proof strong { width: 100%; }

  .games-section { padding: 54px 0 66px; }
  .section-head { display: block; }
  .section-head h2 { font-size: 38px; }
  .section-head > p { margin-top: 14px; }

  .game-grid,
  .game-grid.compact { grid-template-columns: 1fr; }
  .game-card,
  .game-card.featured { min-height: 0; display: grid; grid-template-columns: 132px minmax(0, 1fr); }
  .game-card.featured { grid-column: auto; }
  .game-art,
  .game-card.featured .game-art { min-height: 214px; }
  .game-content,
  .game-card.featured .game-content { padding: 17px; }
  .game-card strong,
  .game-card.featured strong { font-size: 23px; }
  .game-card p { display: none; }

  .play-layout { padding: 20px 0 48px; }
  .play-cover { aspect-ratio: 16 / 9; }
  .play-card-body { padding: 22px; }
  .play-heading { margin-top: 24px; }
  .play-card h1,
  .legal h1 { font-size: 40px; }
  .play-heading .eyebrow { margin-bottom: 8px; }

  .home-content { width: calc(100% - 28px); margin-bottom: 64px; padding: 28px 22px; }
  .home-content h2,
  .game-editorial h2 { font-size: 36px; }
  .game-editorial { padding-bottom: 64px; }
  .editorial-intro > p:not(.eyebrow) { font-size: 16px; }
  .faq-section { margin-top: 48px; }

  .result-layout { padding-top: 26px; }
  .result-card { width: 100%; }
  .share-buttons { grid-template-columns: 1fr; }
  .result-reading { margin-bottom: 56px; padding: 28px 22px; }
  .reading-intro h2 { font-size: 36px; }
  .reading-intro > p:not(.eyebrow) { font-size: 16px; }
  .footer { flex-direction: column; }
  .footer a { margin: 0 12px 0 0; }
  .footer-link { margin: 0; }
  .consent-banner { grid-template-columns: 1fr; gap: 15px; bottom: 10px; padding: 18px; }
  .consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent-actions .button { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
