﻿@import url("https://fonts.googleapis.com/css2?family=Arvo:wght@700&family=Space+Grotesk:wght@400;600&display=swap");

:root {
  --bg: #0e0b16;
  --accent: #ff6a3d;
  --accent-2: #8ef6e4;
  --ink: #f4f4f7;
  --muted: #a7a7bb;
  --panel: rgba(20, 18, 32, 0.72);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #231942, var(--bg));
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.7;
  z-index: 0;
}

.orb-a {
  background: radial-gradient(circle, rgba(255, 106, 61, 0.8), transparent 65%);
  top: -120px;
  left: -80px;
  animation: float 10s ease-in-out infinite;
}

.orb-b {
  background: radial-gradient(circle, rgba(142, 246, 228, 0.7), transparent 60%);
  bottom: -140px;
  right: -60px;
  animation: float 12s ease-in-out infinite reverse;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.08'/></svg>");
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

.app {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  gap: 28px;
}

.hero {
  display: grid;
  gap: 10px;
  animation: fadeUp 0.8s ease-out;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 12px;
  color: var(--accent-2);
  margin: 0;
}

h1 {
  font-family: "Arvo", serif;
  font-size: clamp(36px, 6vw, 64px);
  margin: 0;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  font-size: 12px;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.panel {
  background: var(--panel);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeUp 0.9s ease-out;
}

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

.panel-top h2 {
  margin: 0;
  font-size: 24px;
}

.section-intro {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.about-grid,
.policy-grid {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.about-card,
.policy-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-card h3,
.policy-card h3 {
  margin: 0 0 8px;
}

.about-card p,
.policy-card p {
  margin: 0;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lookup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.input-group input {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  width: 150px;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(142, 246, 228, 0.2);
}

.btn {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #1f0f0a;
  box-shadow: 0 12px 24px rgba(255, 106, 61, 0.4);
}

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

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.draws {
  display: grid;
  gap: 16px;
  margin: 28px 0 18px;
}

.draw-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 16px;
}

.ball {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02));
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--ink);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.ball::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 60%);
  opacity: 0.4;
}

.ball.placeholder {
  color: rgba(255, 255, 255, 0.3);
}

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

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: var(--muted);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.toggle input {
  accent-color: var(--accent);
}

.history-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.history-item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.history-item span {
  color: var(--muted);
  font-size: 13px;
}

.history-balls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.history-balls .ball {
  width: 46px;
  height: 46px;
  font-size: 16px;
  box-shadow: none;
}

.history-balls .ball.match {
  border-color: #f6d365;
  background: radial-gradient(circle at 30% 30%, #fff4b0, #f6d365 70%);
  color: #4a2c00;
  box-shadow: 0 0 12px rgba(246, 211, 101, 0.6);
  animation: glowPulse 1.6s ease-in-out infinite;
}

.rank-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(246, 211, 101, 0.2);
  color: #f6d365;
  font-size: 12px;
  font-weight: 600;
}

.winning {
  margin: 22px 0 8px;
  display: grid;
  gap: 14px;
}

.winning-empty {
  margin: 0;
  color: var(--muted);
}

.winning-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 12px;
}

.winning-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.winning-header h3 {
  margin: 0;
  font-size: 20px;
}

.winning-meta {
  font-size: 13px;
  color: var(--muted);
}

.winning-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.winning-balls .ball {
  width: 56px;
  height: 56px;
  font-size: 18px;
  box-shadow: none;
}

.bonus-plus {
  font-weight: 700;
  color: var(--muted);
  margin: 0 4px;
}

.link {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 13px;
}

.link:hover {
  text-decoration: underline;
}

.tips-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tips-grid h3 {
  margin: 0 0 6px;
}

.tips-grid p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item h3 {
  margin: 0;
  font-size: 16px;
}

.faq-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.policy-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.comment-guidelines {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-guidelines h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.side-ad {
  position: fixed;
  top: 140px;
  width: 160px;
  z-index: 2;
}

.side-ad-left {
  left: 16px;
}

.side-ad-right {
  right: 16px;
}

.side-ad-slot {
  width: 160px;
  min-height: 600px;
  display: grid;
  place-items: center;
}

.ad-panel {
  display: grid;
  gap: 16px;
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 6px 0;
  overflow-x: auto;
}

.ad-slot > * {
  max-width: 100%;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 4px 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.comment-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.comment-field textarea {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  resize: vertical;
  min-height: 88px;
}

.comment-field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(142, 246, 228, 0.2);
}

.comment-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.comment-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  display: grid;
  gap: 6px;
  position: relative;
  padding-bottom: 32px;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.comment-time {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 12px;
  color: var(--muted);
}

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

.comment-delete {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
}

.comment-delete:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.4);
}

.comment-like {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
}

.comment-like:hover {
  border-color: rgba(142, 246, 228, 0.6);
}

.comment-name {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40vw;
}

.comment-text {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(246, 211, 101, 0.5);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 0 18px rgba(246, 211, 101, 0.9);
    transform: translateY(-1px);
  }
}

@media (max-width: 720px) {
  .draw-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    justify-items: center;
    gap: 8px;
  }

  .ball {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .input-group input {
    width: 120px;
  }

  .winning-balls .ball {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .panel {
    padding: 22px;
  }

  .comment-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .comment-name {
    max-width: 100%;
  }

  .comment-actions {
    width: 100%;
    justify-content: space-between;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .ad-slot {
    justify-content: flex-start;
  }
}

@media (max-width: 1500px) {
  .side-ad {
    display: none;
  }
}
