:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-soft: #f0ece3;
  --text: #171717;
  --muted: #6d6a63;
  --line: #ded9cf;
  --accent: #ff5b36;
  --accent-dark: #db4322;
  --dark: #171717;
  --success: #16803c;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
.hidden { display: none !important; }
.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;
}

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 18px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 12px;
  z-index: 20;
}
.brand {
  color: var(--text); text-decoration: none; font-weight: 900;
  letter-spacing: -.04em; display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.brand-icon { font-size: 1.25rem; }
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav-button {
  border: 0; background: transparent; color: var(--muted); padding: 9px 12px;
  border-radius: 10px; font-weight: 700;
}
.nav-button:hover { background: var(--surface-soft); color: var(--text); }
.nav-button.active { background: var(--dark); color: #fff; }

.hero {
  width: min(1180px, calc(100% - 32px)); margin: 34px auto 0; min-height: 440px; padding: 72px;
  border-radius: 32px;
  background: radial-gradient(circle at 82% 30%, rgba(255,91,54,.28), transparent 24%), linear-gradient(135deg,#1a1a1a,#2b2927);
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 40px; overflow: hidden;
}
.hero-content { max-width: 700px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .16em; }
.hero .eyebrow { color: #ff9a83; }
.hero h1 { margin: 0; font-size: clamp(3rem,8vw,6.5rem); line-height: .9; letter-spacing: -.07em; }
.hero h1 span { display: block; color: var(--accent); }
.hero-text { max-width: 600px; margin: 24px 0 0; color: #d0ccc6; font-size: 1.1rem; line-height: 1.7; }
.hero-note { color: #aaa6a0; font-size: .9rem; margin: 18px 0 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.primary-button, .secondary-button, .game-button {
  border: 0; border-radius: 14px; padding: 14px 20px; font-weight: 900; text-decoration: none;
}
.primary-button, .game-button { background: var(--accent); color: #fff; }
.primary-button:hover, .game-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.secondary-button { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.hero-orb {
  width: 180px; height: 180px; flex: 0 0 180px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.08); font-size: 5rem; transform: rotate(-10deg);
}

.stats-section {
  width: min(1180px, calc(100% - 32px)); margin: 20px auto 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px;
}
.stat-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-card strong { display: block; font-size: 2rem; letter-spacing: -.06em; }
.stat-card span { color: var(--muted); font-size: .9rem; }

.daily-section {
  width: min(1180px, calc(100% - 32px)); margin: 20px auto 0; padding: 28px 30px;
  background: var(--dark); color: #fff; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.daily-section h2 { margin: 0; font-size: clamp(1.6rem,4vw,2.4rem); letter-spacing: -.05em; }
.daily-section p:not(.eyebrow) { color: #c9c5bf; margin: 8px 0 0; line-height: 1.55; }
.daily-section .eyebrow { margin-bottom: 8px; }

.activities-section, .popular-section, .faq-section { width: min(1180px, calc(100% - 32px)); margin: 90px auto 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2, .popular-section h2, .faq-section h2, .about-card h2, .how-card h2 { margin: 0; font-size: clamp(2rem,5vw,3.5rem); letter-spacing: -.06em; }
.section-subtitle { color: var(--muted); margin: 8px 0 0; }
.search-wrapper input {
  width: min(330px,100%); padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); outline: none;
}
.search-wrapper input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,91,54,.12); }

.activity-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.activity-card {
  min-height: 260px; padding: 22px; position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cec7ba; }
.activity-icon { font-size: 2.5rem; }
.activity-card h3 { margin: 18px 0 8px; font-size: 1.2rem; letter-spacing: -.03em; }
.activity-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.activity-tag { display: inline-block; margin-top: 16px; padding: 6px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.activity-favorite {
  position: absolute; top: 13px; right: 13px; z-index: 3; border: 0; background: var(--surface-soft);
  width: 38px; height: 38px; border-radius: 50%; font-size: 1.35rem; color: var(--muted);
}
.activity-favorite:hover { color: var(--text); }
.activity-favorite.active { color: #d79200; }
.activity-open { position: absolute; inset: 0; border: 0; background: transparent; z-index: 1; border-radius: var(--radius); }
.activity-card h3, .activity-card p, .activity-card .activity-icon, .activity-card .activity-tag { position: relative; z-index: 2; pointer-events: none; }
.empty-state { padding: 70px 20px; text-align: center; }
.empty-state > div { font-size: 3rem; }
.empty-state h3 { margin-bottom: 6px; }

.about-section { width: min(1180px, calc(100% - 32px)); margin: 90px auto 0; display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; }
.about-card, .how-card { padding: 42px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.about-card p:not(.eyebrow), .how-card li { color: var(--muted); line-height: 1.75; }
.how-card ol { padding-left: 20px; }

.popular-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.popular-link { padding: 12px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-weight: 800; }
.popular-link:hover { border-color: var(--accent); }

.faq-section { margin-bottom: 90px; }
.faq-section details { margin-top: 12px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq-section summary { cursor: pointer; font-weight: 800; }
.faq-section p { color: var(--muted); line-height: 1.7; }

.site-footer { padding: 40px max(24px, calc((100% - 1180px)/2)); background: var(--dark); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer p { color: #aaa; margin-bottom: 0; }
.footer-random { padding: 12px 16px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 900; }

.modal { position: fixed; inset: 0; z-index: 100; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(5px); }
.modal-panel { position: relative; z-index: 1; width: min(700px, calc(100% - 30px)); max-height: calc(100vh - 40px); overflow: auto; margin: 20px auto; padding: 38px; background: var(--surface); border-radius: 26px; }
.close-button { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; font-size: 2rem; line-height: 1; }
.game-title { margin: 0; font-size: 2rem; letter-spacing: -.05em; padding-right: 30px; }
.game-description { color: var(--muted); line-height: 1.6; }
.game-area { margin-top: 30px; }
.game-center { text-align: center; }
.big-number { margin: 22px 0; font-size: clamp(3rem,10vw,6rem); font-weight: 900; letter-spacing: -.08em; }
.game-input { width: min(360px,100%); padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-align: center; outline: none; }
.choice-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.choice-button { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 800; }
.choice-button:hover { border-color: var(--accent); }
.game-result { min-height: 28px; margin-top: 20px; font-weight: 800; }
.game-small { color: var(--muted); }
.progress-track { width: min(400px,100%); height: 12px; margin: 0 auto; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.progress-bar { width: 0; height: 100%; background: var(--accent); transition: width .8s linear; }
.target-zone { position: relative; height: 220px; margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.target-button { position: absolute; width: 45px; height: 45px; border: 0; border-radius: 50%; background: var(--dark); color: #fff; font-size: 20px; }
.odd-grid { display: grid; grid-template-columns: repeat(3,70px); gap: 10px; justify-content: center; }

@media (max-width: 950px) { .activity-grid { grid-template-columns: repeat(3,1fr); } .hero { padding: 52px; } }
@media (max-width: 720px) {
  .site-header { position: relative; top: auto; flex-direction: column; align-items: stretch; }
  .brand { justify-content: center; }
  .main-nav { justify-content: center; }
  .hero { min-height: auto; padding: 46px 28px; }
  .hero-orb { display: none; }
  .stats-section { grid-template-columns: 1fr; }
  .daily-section { flex-direction: column; align-items: stretch; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search-wrapper input { width: 100%; }
  .activity-grid { grid-template-columns: repeat(2,1fr); }
  .about-section { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .activity-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 3.4rem; }
  .hero-actions { flex-direction: column; }
  .primary-button, .secondary-button { text-align: center; }
  .modal-panel { padding: 34px 20px; }
}
