/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root {
  --ad-width: 300px;
}
@media (min-width: 1100px) and (max-width: 1249px) {
  :root {
    --ad-width: 160px;
  }
}
@media (min-width: 1250px) {
  :root {
    --ad-width: 300px;
  }
}
@media (max-width: 1099px) {
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
  background: linear-gradient(160deg, #1a1b2e 0%, #16213e 50%, #0f3460 100%);
  color: #e8e8e8;
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.page-content > .main-grid--home:first-child {
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .page-content > .main-grid--home:first-child { margin-top: 0.65rem; }
}

/* ===== Accessibility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.875rem 1.25rem;
  width: 100%;
  background: rgba(15, 20, 40, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-sizing: border-box;
}
.header .logo {
  justify-self: start;
}
.header .nav {
  justify-self: center;
}
.header .header-actions {
  justify-self: end;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
  background: transparent url(../assets/logo-wheel-icon.svg) center/contain no-repeat;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.nav-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
}
.nav-link:hover { color: #fff; }
.nav-link.active {
  color: #4dabf7;
  font-weight: 600;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #4dabf7;
  border-radius: 1px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lang-select {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}
.lang-caret { font-size: 0.65rem; opacity: 0.8; }
.header-search { display: flex; align-items: center; }
.search-input {
  padding: 0.4rem 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  min-width: 180px;
}
.search-input::placeholder { color: rgba(255,255,255,0.4); }
.search-input:focus {
  outline: none;
  border-color: rgba(77, 171, 247, 0.5);
}
@media (max-width: 768px) {
  .header-search { display: none; }
}

/* ===== Ad Banners ===== */
.ad-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  background: rgba(0,0,0,0.25);
  margin: 0 auto;
  border-radius: 4px;
  gap: 0.25rem;
}
.ad-banner.ad-728x90 { width: 728px; max-width: 100%; }
.page-content > .ad-banner { padding: 0 24px; box-sizing: border-box; }
.ad-banner.mobile-bottom-ad {
  display: none;
}
.lang-switcher {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.lang-link {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
}
.lang-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.header .lang-link.active,
.lang-switcher .lang-link.active {
  background: #ff8a00;
  color: #fff;
  border-radius: 6px;
}
.header .lang-link.active:hover,
.lang-switcher .lang-link.active:hover {
  background: #ffa94d;
  color: #fff;
}
.wheel-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}
.main-grid--home .wheel-actions-row {
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}
.wheel-actions-row .btn-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
}
.wheel-actions-row .btn-save-share {
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-save-share {
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
}
.btn-save-share:hover {
  background: rgba(77, 171, 247, 0.2);
  border-color: rgba(77, 171, 247, 0.45);
  color: #fff;
}
.save-share-hint {
  text-align: center;
  color: #69db7c;
  font-size: 0.88rem;
  margin: 0;
  width: 100%;
}
.seo-article-section .content-inner {
  max-width: 720px;
}
.seo-article.prose h1.seo-article-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.seo-article.prose h2 {
  margin: 1.35rem 0 0.65rem;
  font-size: 1.22rem;
  color: #fff;
}
.seo-article.prose h2:first-of-type { margin-top: 0.85rem; }
.seo-article.prose h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.95);
}
.seo-article.prose p {
  margin: 0 0 0.65rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  font-size: 0.98rem;
}
.seo-article.prose ul {
  margin: 0 0 0.85rem 1.15rem;
  padding: 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  font-size: 0.98rem;
}
.seo-article.prose li { margin-bottom: 0.35rem; }
.seo-article.prose a { color: #74c0fc; }
.seo-article.prose a:hover { text-decoration: underline; }
.seo-article.prose code {
  font-size: 0.88em;
  background: rgba(0,0,0,0.25);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.ad-label { font-size: 0.7rem; color: rgba(255,255,255,0.4); text-transform: uppercase; }
.ad-size { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.ad-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  width: var(--ad-width);
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  gap: 0.25rem;
}
.ad-side.left {
  align-self: flex-start;
  position: sticky;
  top: 120px;
  width: var(--ad-width);
  margin-left: 0;
}

/* ===== Main Grid ===== */
.main-grid {
  display: grid;
  grid-template-columns: var(--ad-width) 1fr 1.2fr;
  column-gap: 32px;
  row-gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
  justify-items: stretch;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.main-grid.main-grid--home {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  width: 100%;
}

/* MOD 1 — 1100–1199: yan paneller yok, çark üstte tam genişlik (≥ mobil) */
@media (min-width: 1100px) and (max-width: 1199px) {
  .main-grid.main-grid--home {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 1320px;
    row-gap: 1rem;
    column-gap: 0;
    padding: 0 20px;
  }
  .main-grid.main-grid--home .wheel-section {
    order: 1;
    width: 100%;
    max-width: 820px;
    min-width: 0;
    margin: 0 auto;
  }
  .main-grid.main-grid--home .entries-panel {
    order: 2;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    min-width: 0 !important;
  }
  .main-grid.main-grid--home .ad-side.left {
    order: 3;
    display: none !important;
  }
  .main-grid.main-grid--home .seo-article-section {
    order: 4;
  }
}

/* Masaüstü — ana sayfa 3 sütunlu düzen (ghost column simetrisi) */
@media (min-width: 1200px) {
  .main-grid.main-grid--home {
    display: grid;
    grid-template-columns: var(--ad-width) minmax(0, 1fr) var(--ad-width);
    column-gap: 32px;
    align-items: start;
  }
}

@media (max-width: 1099px) {
  .main-grid.main-grid--home {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    gap: 2rem;
  }
  .main-grid.main-grid--home .wheel-section {
    order: 1;
    width: 100%;
    max-width: min(820px, 100%);
    margin: 0 auto;
    min-width: 0;
    padding-top: 0.35rem;
  }
  .main-grid.main-grid--home .entries-panel {
    order: 2;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }
  .main-grid.main-grid--home .ad-side {
    order: 3;
    display: flex;
    position: static;
    align-self: center;
    width: 100%;
    max-width: 300px;
    min-height: 250px;
    margin: 0 auto;
  }
  .main-grid.main-grid--home .mobile-bottom-ad {
    display: none;
  }
  .main-grid.main-grid--home .seo-article-section {
    order: 4;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 2rem;
  }
}

.main-grid--home .wheel-section {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0.25rem;
  gap: 0.35rem;
  max-width: 100%;
  align-self: start;
}
.main-grid--home .wheel-container {
  width: min(820px, 100%);
  max-width: 820px;
}
.main-grid--home .wheel-center {
  width: 110px;
  height: 110px;
  font-size: 1.35rem;
}
html[data-page="home"] .wheel-section {
  max-width: min(820px, 100%);
}

/* ===== Homepage-only UX (personal wheel; data-page=home) ===== */
/* Overlay: single block above wheel, no layout shift (pointer top ≈ -12px; gap below badge ≈ 5px) */
html[data-page="home"] .main-grid--home .wheel-container,
html[data-page="wheel"] .main-grid--home .wheel-container {
  position: relative;
  overflow: visible;
}
html[data-page="home"] .main-grid--home .wheel-container > #wheelCanvas,
html[data-page="wheel"] .main-grid--home .wheel-container > #wheelCanvas {
  transition: box-shadow 0.5s ease;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.06),
    0 10px 32px rgba(0, 0, 0, 0.38),
    0 0 38px rgba(77, 171, 247, 0.12),
    0 0 64px rgba(77, 171, 247, 0.05);
}
html[data-page="home"] .main-grid--home .wheel-container.wheel-glow--spinning > #wheelCanvas,
html[data-page="wheel"] .main-grid--home .wheel-container.wheel-glow--spinning > #wheelCanvas {
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.1),
    0 16px 52px rgba(0, 0, 0, 0.48),
    0 0 78px rgba(77, 171, 247, 0.58),
    0 0 110px rgba(116, 192, 252, 0.28),
    0 0 64px rgba(255, 200, 100, 0.14);
}
html[data-page="home"] .home-wheel-overlay {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, calc(-100% - 17px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: min(20rem, calc(100% - 0.5rem));
  z-index: 4;
  pointer-events: none;
  text-align: center;
}
html[data-page="home"] .home-wheel-hint {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  max-width: 100%;
}
html[data-page="home"] .home-starter-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 146, 43, 0.14);
  border: 1px solid rgba(255, 186, 120, 0.32);
  color: rgba(255, 224, 194, 0.95);
  white-space: nowrap;
}
@media (max-width: 600px) {
  html[data-page="home"] .home-wheel-overlay {
    gap: 6px;
    transform: translate(-50%, calc(-100% - 15px));
    width: min(18rem, calc(100vw - 1.25rem));
  }
  html[data-page="home"] .home-wheel-hint {
    font-size: 0.875rem;
  }
  html[data-page="home"] .home-starter-badge {
    font-size: 0.68rem;
    padding: 0.24rem 0.55rem;
  }
}
@media (max-width: 400px) {
  html[data-page="home"] .home-wheel-overlay {
    transform: translate(-50%, calc(-100% - 14px));
  }
}
html[data-page="home"] .entries-add--home {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
html[data-page="home"] .entries-add-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
html[data-page="home"] .entries-add-row .entry-input {
  flex: 1;
}
html[data-page="home"] .home-input-hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.48);
  padding: 0 0.1rem;
}
html[data-page="home"] .entries-panel-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
html[data-page="home"] .entry-input--home {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}
html[data-page="home"] .entry-input--home:focus {
  outline: none;
  border-color: rgba(116, 192, 252, 0.8);
  box-shadow:
    0 0 0 2px rgba(77, 171, 247, 0.38),
    0 0 26px rgba(77, 171, 247, 0.32);
  transform: scale(1.02);
}
html[data-page="home"] .entry-input--home.entry-input--cta-focus {
  outline: none;
  border-color: rgba(116, 192, 252, 0.95);
  box-shadow:
    0 0 0 3px rgba(77, 171, 247, 0.48),
    0 0 34px rgba(77, 171, 247, 0.42);
  transform: scale(1.02);
}
@keyframes home-add-row-glow {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 0 rgba(77, 171, 247, 0), 0 0 10px rgba(77, 171, 247, 0.12);
  }
  50% {
    border-color: rgba(116, 192, 252, 0.65);
    box-shadow:
      0 0 0 2px rgba(77, 171, 247, 0.38),
      0 0 24px rgba(77, 171, 247, 0.32);
  }
}
@keyframes home-add-btn-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(77, 171, 247, 0.2);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 18px rgba(77, 171, 247, 0.45);
  }
}
html[data-page="home"] .entries-add--cta-pulse .entry-input--home:not(:focus) {
  animation: home-add-row-glow 2.4s ease-in-out infinite;
}
html[data-page="home"] .entries-add--cta-pulse .btn-add {
  animation: home-add-btn-pulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  html[data-page="home"] .entries-add--cta-pulse .entry-input--home:not(:focus),
  html[data-page="home"] .entries-add--cta-pulse .btn-add {
    animation: none;
  }
}
@keyframes entries-list-shake-home {
  0%,
  100% {
    transform: translateX(0);
  }
  18% {
    transform: translateX(-6px);
  }
  36% {
    transform: translateX(6px);
  }
  54% {
    transform: translateX(-4px);
  }
  72% {
    transform: translateX(4px);
  }
}
html[data-page="home"] .entries-list.entries-list--shake {
  animation: entries-list-shake-home 0.5s ease;
}
html[data-page="home"] .main-grid--home .wheel-center.spin-btn-home {
  width: 122px;
  height: 122px;
  font-size: 1.32rem;
  letter-spacing: 0.08em;
  background: linear-gradient(155deg, #5cace8 0%, #3b8ae6 38%, #2563c9 72%, #1a4a9e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 8px rgba(0, 0, 0, 0.12),
    0 3px 14px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 22px rgba(77, 171, 247, 0.32),
    0 0 40px rgba(37, 99, 201, 0.1);
  transition: transform 0.22s ease, box-shadow 0.28s ease;
}
html[data-page="home"] .main-grid--home .wheel-center.spin-btn-home:hover:not(.spinning) {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -2px 8px rgba(0, 0, 0, 0.14),
    0 8px 28px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 40px rgba(116, 192, 252, 0.55),
    0 0 72px rgba(59, 138, 230, 0.22);
}
html[data-page="home"] .main-grid--home .wheel-center.spin-btn-home:active {
  transform: translate(-50%, -50%) scale(0.98);
}
@media (prefers-reduced-motion: reduce) {
  html[data-page="home"] .entries-list.entries-list--shake {
    animation: none;
  }
}
html[data-page="home"] .main-grid--home .wheel-actions-row .btn-browse {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
  box-sizing: border-box;
}
html[data-page="home"] .main-grid--home .wheel-actions-row .btn-browse:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
html[data-page="home"] .main-grid--home .wheel-actions-row .btn-save-share {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
html[data-page="home"] .main-grid--home .wheel-actions-row .btn-save-share:hover {
  background: rgba(77, 171, 247, 0.14);
  border-color: rgba(77, 171, 247, 0.38);
  color: #fff;
}

/* ===== Wheel Section ===== */
.wheel-page-heading {
  margin: 0 0 1.25rem;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  font-weight: 700;
  text-align: center;
  color: #fff;
  max-width: 28rem;
  line-height: 1.3;
}
.wheel-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  margin-top: 1.5rem;
  min-height: 0;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  justify-self: center;
}
.wheel-container {
  position: relative;
  width: min(625px, 100%);
  max-width: 625px;
  margin: 0 auto;
  aspect-ratio: 1;
  box-sizing: border-box;
}
#wheelCanvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.08),
    0 12px 40px rgba(0,0,0,0.4),
    0 0 50px rgba(77, 171, 247, 0.18),
    0 0 90px rgba(77, 171, 247, 0.08);
}
.wheel-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(145deg, #339af0, #228be6);
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.3), 0 4px 16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: 0.05em;
  transition: transform 0.1s, box-shadow 0.2s;
}
.wheel-center:hover {
  transform: translate(-50%, -50%) scale(1.02);
  box-shadow: inset 0 2px 8px rgba(255,255,255,0.35), 0 6px 20px rgba(0,0,0,0.35);
}
.wheel-center:active { transform: translate(-50%, -50%) scale(0.98); }
.wheel-center.spinning { pointer-events: none; opacity: 0.9; }
.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 28px solid #e6b422;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  z-index: 2;
  pointer-events: none;
  transition: transform 0.1s ease;
}
.wheel-pointer.pointer-bounce {
  transform: translateX(-50%) translateY(4px);
}
/* ===== Winner popup (modal) ===== */
.winner-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.winner-popup[hidden] { display: none !important; }
.winner-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.winner-popup-content {
  position: relative;
  background: linear-gradient(160deg, #2b3544 0%, #1a222d 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 2rem 2.25rem 1.75rem;
  max-width: min(420px, 92vw);
  min-width: 280px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
}
.winner-popup-close {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(0,0,0,0.2);
  color: rgba(255,255,255,0.88);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.winner-popup-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}
.winner-popup-close:focus-visible {
  outline: 2px solid rgba(100, 180, 255, 0.85);
  outline-offset: 2px;
}
.winner-popup-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.winner-popup-emoji {
  display: block;
  font-size: 2.35rem;
  line-height: 1;
  margin-bottom: 0.65rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}
.winner-popup-label {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.winner-popup-name {
  margin: 0;
  font-size: clamp(1.85rem, 6.5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  color: #7bed9f;
  text-shadow: 0 0 40px rgba(105, 219, 124, 0.35);
  word-break: break-word;
}
.btn-primary {
  padding: 0.6rem 1.1rem;
  background: linear-gradient(145deg, #339af0, #228be6);
  border: none;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(34, 139, 230, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.06);
}
.winner-popup-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 0;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.winner-popup-actions .btn {
  cursor: pointer;
}
.winner-popup-actions .btn-winner-spin-again {
  order: -1;
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(34, 139, 230, 0.48);
}
.winner-popup-actions .btn-winner-spin-again:hover {
  filter: brightness(1.07);
  box-shadow: 0 8px 28px rgba(34, 139, 230, 0.55);
}
.winner-popup-actions .btn-winner-remove {
  width: 100%;
  box-sizing: border-box;
  align-self: center;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0.45rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: normal;
  text-align: center;
  color: #fff;
  border-radius: 8px;
  border: 1px solid rgba(255, 120, 120, 0.45);
  background: linear-gradient(145deg, #e03131, #c92a2a);
  box-shadow: 0 3px 12px rgba(201, 42, 42, 0.35);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.winner-popup-actions .btn-winner-remove:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(201, 42, 42, 0.45);
}

/* ===== Confetti container ===== */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  animation: confetti-fall 1.35s ease-out forwards;
}
@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
  }
}

/* ===== Entry disabled (removed from wheel) ===== */
.entries-list li.entry-disabled .entry-item-text {
  opacity: 0.5;
  text-decoration: line-through;
  text-decoration-color: #ff4d4d;
  transition: opacity 0.24s ease, text-decoration-color 0.24s ease;
}
.entry-restore-btn,
.entry-delete-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
}
.entry-restore-btn:hover,
.entry-delete-btn:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset;
  transform: translateY(-1px);
}
.entry-restore-btn:hover {
  color: #69db7c;
  background: rgba(105, 219, 124, 0.15);
}
.entry-delete-btn {
  color: #ff4d4d;
}
.entry-delete-btn:hover {
  color: #ff6b6b;
  background: rgba(255, 77, 77, 0.14);
}

.btn-browse {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(145deg, #339af0, #228be6);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(34, 139, 230, 0.4);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-browse:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 139, 230, 0.5);
}

/* Secondary CTA on wheel page — matches pill row (not .btn-secondary / entries panel) */
.wheel-actions-row .btn-more-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  box-sizing: border-box;
  min-height: 44px;
}
.wheel-actions-row .btn-more-category:hover {
  background: rgba(77, 171, 247, 0.22);
  border-color: rgba(116, 192, 252, 0.5);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34, 139, 230, 0.25);
}

/* ===== Entries Panel ===== */
.entries-panel {
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  min-width: 0;
  width: 100%;
  justify-self: end;
}
.entries-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.entries-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.entries-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  background: rgba(77, 171, 247, 0.25);
  color: #74c0fc;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
html[data-page="home"] .entries-count {
  min-width: 2.1rem;
  padding: 0 0.42rem;
  font-size: 0.75rem;
}
.icon-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { color: #fff; }
.entries-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(116, 192, 252, 0.55) rgba(255,255,255,0.06);
}
.entries-list::-webkit-scrollbar {
  width: 10px;
}
.entries-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
}
.entries-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(116, 192, 252, 0.8), rgba(52, 152, 219, 0.6));
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0);
  background-clip: padding-box;
}
.entries-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(116, 192, 252, 0.95), rgba(52, 152, 219, 0.75));
}
.entries-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.46rem 0.55rem;
  margin-bottom: 0.24rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.9);
  transition: background-color 0.22s ease, opacity 0.22s ease, transform 0.2s ease;
}
.entries-list li:hover { background: rgba(255,255,255,0.05); }
.entries-list li.entry-item {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.entries-list li.entry-item.entry-sortable-drag {
  cursor: grabbing;
}
.entries-list li.entry-item .entry-delete-btn,
.entries-list li.entry-item .entry-restore-btn,
.entries-list li.entry-item button {
  cursor: pointer;
}
.entries-reorder-hint {
  margin: -0.15rem 0 0.45rem;
  padding: 0 0.1rem;
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.36);
  line-height: 1.35;
}
.entry-sortable-ghost {
  opacity: 0.38;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 24px rgba(0, 0, 0, 0.35);
}
.entry-sortable-drag {
  cursor: grabbing !important;
  opacity: 0.92;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.entry-item-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.entry-item-text::before {
  content: "▶";
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.entry-delete-btn {
  flex-shrink: 0;
}
.entry-actions-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  margin-left: 0.35rem;
}
.entry-delete-btn svg {
  width: 16px;
  height: 16px;
}
.entries-add {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.entry-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 64px;
}
.entry-input::placeholder { color: rgba(255,255,255,0.4); }
.entry-input:focus {
  outline: none;
  border-color: rgba(77, 171, 247, 0.5);
  box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.2);
}
.btn-add {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(77, 171, 247, 0.25);
  color: #74c0fc;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}
.btn-add:hover {
  background: rgba(77, 171, 247, 0.4);
  color: #fff;
}

.entries-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}
.entries-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: min-content;
  max-width: 100%;
  width: auto;
  padding: 8px 12px;
  white-space: nowrap;
  box-sizing: border-box;
}
.btn-secondary {
  width: auto;
  min-width: 0;
  padding: 0.56rem 0.62rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.95);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 5px 12px rgba(0,0,0,0.14);
  transition: all 0.2s ease;
  line-height: 1.2;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 18px rgba(0,0,0,0.22);
}
.entries-actions #shuffleBtn {
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.18);
}
.entries-actions #shuffleBtn:hover {
  border-color: rgba(133, 123, 255, 0.48);
  background: rgba(84, 98, 168, 0.46);
}
.entries-actions #clearAllBtn {
  flex-basis: 100%;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.95);
}
.entries-actions #clearAllBtn:hover {
  border-color: rgba(255, 107, 107, 0.52);
  background: rgba(95, 40, 45, 0.46);
}
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

/* ===== Below tool ad ===== */
.below-tool { margin: 1rem auto 0; }

/* ===== Structured content (SEO) ===== */
.structured-content {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 24px 2rem;
  box-sizing: border-box;
}
.structured-content .content-inner {
  background: rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
}
html[data-page="home"] .main-grid.main-grid--home .seo-article-section,
html[data-page="preset"] .main-grid.main-grid--home .seo-article-section,
html[data-page="wheel"] .main-grid.main-grid--home .seo-article-section {
  grid-column: 2 / 3;
  align-self: flex-start;
  margin-top: 2.5rem;
}
html[data-page="preset"] .main-grid.main-grid--home .related-wheels,
html[data-page="wheel"] .main-grid.main-grid--home .related-wheels {
  grid-column: 2 / 3;
  align-self: flex-start;
}

.wheel-page-lead {
  margin: 0 0 1rem;
  max-width: 28rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.45;
}
@media (min-width: 1100px) and (max-width: 1199px) {
  .main-grid.main-grid--home .related-wheels {
    order: 5;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
  }
}
@media (max-width: 1099px) {
  .main-grid.main-grid--home .related-wheels {
    order: 5;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 2rem;
  }
}
.structured-content h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #fff;
}
.structured-content h2:not(:first-child) {
  margin-top: 1.25rem;
}
.structured-lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
}
.structured-content h3 { margin: 1rem 0 0.5rem; font-size: 1.1rem; color: rgba(255,255,255,0.95); }
.structured-content p { margin: 0 0 0.5rem; color: rgba(255,255,255,0.8); line-height: 1.6; }
.structured-content a { color: #74c0fc; text-decoration: none; }
.structured-content a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  width: 100%;
  background: rgba(15, 20, 40, 0.95);
  border-top: 1px solid rgba(255,255,255,0.06);
  box-sizing: border-box;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}
.footer .logo { font-size: 1rem; }
.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: #fff; }
.footer .sep { color: rgba(255,255,255,0.35); font-size: 0.85rem; }
.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-changelog {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.footer-changelog:hover { color: #fff; }

/* ===== Ready Wheels Page ===== */
.page-ready-wheels .page-content {
  overflow-x: clip;
}
.ready-wheels-shell {
  position: relative;
  display: grid;
  grid-template-columns: var(--ad-width) minmax(0, 1fr) var(--ad-width);
  column-gap: 32px;
  align-items: flex-start;
  width: 100%;
  max-width: 1600px;
  margin: 1.5rem auto 0;
  padding: 0 24px;
  box-sizing: border-box;
}
.ready-wheels-main {
  min-width: 0;
  grid-column: 2;
  text-align: center;
  box-sizing: border-box;
}
.ready-wheels-main > * {
  width: 100%;
  max-width: 100%;
}
.page-ready-wheels .ad-side.left {
  grid-column: 1;
}
.ready-wheels-spacer {
  grid-column: 3;
  width: var(--ad-width);
  min-width: var(--ad-width);
}
.page-ready-wheels .main-grid {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-ready-wheels .ready-wheels-main .structured-content.seo-article-section {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1099px) {
  .ready-wheels-shell {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 16px;
  }
  .ready-wheels-shell .ready-wheels-main {
    order: 1;
  }
  .page-ready-wheels .ad-side {
    order: 3;
    display: flex;
    position: static;
    align-self: center;
    width: 100%;
    max-width: 300px;
    min-height: 250px;
    margin: 0 auto;
  }
  .page-ready-wheels .ready-wheels-spacer {
    display: none !important;
  }
  .page-ready-wheels .ready-wheels-main .structured-content.seo-article-section {
    order: 4;
    margin-top: 0;
  }
}
.ready-hero {
  text-align: center;
  padding: 1.75rem 0 0;
  margin: 0 auto;
  max-width: 42rem;
}
.ready-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.ready-hero p {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
}
.ready-cat-heading,
.ready-grid-heading {
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
  text-align: center;
  width: 100%;
}
.ready-cat-heading {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
}
.ready-grid-heading {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: #fff;
}
.ready-grid-error {
  text-align: center;
  color: #ff8787;
  padding: 1.5rem 1rem;
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Ready Wheels: SEO article swap feedback */
#seo-article-root.seo-article-fade {
  animation: seoArticleFadeIn 0.42s ease-out forwards;
}
@keyframes seoArticleFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ready-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 0 1.25rem;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.filter-btn {
  white-space: normal;
  flex-shrink: 0;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.15s, transform 0.1s;
}
.filter-btn:hover { background: rgba(255,255,255,0.14); }
.filter-btn.active {
  background: #fd7e14;
  color: #fff;
  box-shadow: 0 2px 12px rgba(253, 126, 20, 0.35);
}
.filter-btn.active:hover {
  background: #ff922b;
}
.ready-filters--wrap {
  max-width: 900px;
}
.ready-category-links {
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 900px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}
.ready-category-links a {
  color: #74c0fc;
  text-decoration: none;
}
.ready-category-links a:hover {
  text-decoration: underline;
}
.ready-category-back {
  text-align: center;
  margin: 0 auto 1rem;
  max-width: 900px;
}
.page-category-wheels .ready-hero .structured-lead {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.related-wheels {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.related-wheels .content-inner {
  max-width: 720px;
  margin: 0 auto;
}
.related-wheels-title {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.95);
}
.related-wheels-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}
.related-wheels-list a {
  color: #74c0fc;
  text-decoration: none;
  font-weight: 500;
}
.related-wheels-list a:hover {
  text-decoration: underline;
}
.wheels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 22px;
  padding: 0.25rem 0 1.5rem;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.wheel-card {
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wheel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}
.wheel-card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.wheel-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #e03131;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.wheel-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #fff;
}
.wheel-card-desc {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  flex: 1;
}
.wheel-card .btn-open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #c92a2a 0%, #a61e1e 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: auto;
  transition: opacity 0.2s, transform 0.1s;
}
.wheel-card .btn-open:hover { opacity: 0.95; transform: translateX(2px); }
.sponsored-block {
  max-width: 800px;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}
.sponsored-block .sponsored-title {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}
.sponsored-block p { margin: 0 0 1rem; color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.sponsored-block .btn-unlock {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #fd7e14, #e8590c);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}
.sponsored-block .btn-unlock:hover { opacity: 0.95; color: #fff; }

/* ===== Wheel page (single) ===== */
/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .page-ready-wheels .wheels-grid {
    gap: 16px;
  }
  .main-grid:not(.main-grid--home) {
    grid-template-columns: 1fr minmax(0, 420px);
    column-gap: 36px;
    justify-items: stretch;
  }
  .main-grid:not(.main-grid--home) .wheel-section {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    max-width: 640px;
  }
  .main-grid:not(.main-grid--home) .entries-panel { grid-column: 2; justify-self: stretch; }
  .main-grid:not(.main-grid--home) .ad-side.left { display: none !important; }
  .page-ready-wheels .wheels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}
@media (max-width: 768px) {
  .header {
    padding: 0.75rem 1rem;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .header .logo {
    grid-column: 1;
    grid-row: 1;
  }
  .header .header-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .header .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.15rem;
    gap: 0.75rem 1rem;
  }
  .main-grid {
    grid-template-columns: 1fr;
    row-gap: 2rem;
    column-gap: 0;
    padding: 0 16px;
    margin: 1rem auto 1.5rem;
    justify-items: stretch;
  }
  .main-grid.main-grid--home {
    padding: 0 16px;
    margin: 0.5rem auto 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  html[data-page="home"] .page-content {
    overflow-x: hidden;
  }
  .wheel-section { max-width: 100%; }
  .wheel-container {
    width: min(380px, 92vw);
    max-width: 100%;
  }
  .main-grid--home .wheel-container {
    width: 100%;
    max-width: 100%;
  }
  #wheelCanvas { width: 100%; height: 100%; }
  .ad-banner.ad-728x90 { min-height: 90px; }
  .page-ready-wheels .ready-wheels-shell {
    padding-left: 16px;
    padding-right: 16px;
    margin-top: 1rem;
  }
  .page-ready-wheels .ready-hero {
    padding-top: 1.25rem;
  }
  .page-ready-wheels .wheels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 1.25rem;
  }
  .wheel-card { min-width: 0; }
  .footer-inner { flex-direction: column; text-align: center; padding: 1.5rem 24px; }
}
@media (max-width: 480px) {
  .header .nav { gap: 0.5rem 0.75rem; }
}
