/* High Seas Rings: felt green and gold, after the Leekha app (src/theme.ts). */
:root {
  --night: #0a1a12;
  --felt-deep: #0e2418;
  --felt: #1e432b;
  --gold: #d4af37;
  --gold-bright: #f3d57a;
  --gold-deep: #8e6c16;
  --ivory: #fdf5e6;
  --text: #f4efe3;
  --muted: #c8d5cb;
  --dim: #8fa597;
  --red: #c62828;
  --line: rgba(212, 175, 55, 0.28);
  --radius: 18px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--night);
  background-image: radial-gradient(1200px 600px at 70% -10%, rgba(30, 67, 43, 0.85), transparent 70%);
  color: var(--text);
  font: 17px/1.6 var(--font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 850; color: var(--gold-bright); }
h3 { font-size: 1.3rem; font-weight: 850; }
p { margin: 0 0 1em; }
strong { color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(10, 26, 18, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.top-row nav { margin-left: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 850; font-size: 1.05rem; white-space: nowrap; }
.brand img { border-radius: 9px; border: 1px solid var(--line); }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 8px 10px; border-radius: 8px; }
.top nav a:not(.btn):hover, .top nav a[aria-current='page'] { color: var(--gold-bright); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #b8922a);
  border: 2px solid var(--gold-deep);
  color: #1c1405; font-weight: 850; text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn:hover { color: #1c1405; filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--gold-bright); border-color: var(--gold); box-shadow: none; }
.btn-ghost:hover { color: #fff; background: rgba(212, 175, 55, 0.12); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.92rem; }

/* Hero */
.hero { padding: 56px 0 24px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; margin-bottom: 0.8em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.note { color: var(--dim); font-size: 0.95rem; }

/* Phone frames around the screenshots */
.phone { margin: 0; background: #050c08; border: 1px solid rgba(212, 175, 55, 0.35); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(5, 12, 8, 0.9); }
.phone img { border-radius: inherit; }
.phone-tall { width: 100%; max-width: 300px; margin: 0 auto; padding: 8px; border-radius: 40px; }
.phone-tall img { border-radius: 32px; }
.phone-wide { padding: 8px; border-radius: 34px; }
.phone-wide img { border-radius: 26px; }

.band { padding: 32px 0 8px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: rgba(14, 36, 24, 0.7); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin-bottom: 32px; }
.split { display: grid; gap: 40px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 0.7em; color: var(--muted); }
.ticks li::before { content: '♦'; position: absolute; left: 4px; top: 0; color: var(--gold); }

/* The four games */
.cards4 { display: grid; gap: 16px; }
.game-card {
  display: block; padding: 22px; border-radius: var(--radius);
  background: rgba(14, 36, 24, 0.85); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: transform 0.15s, border-color 0.15s;
}
.game-card:hover { color: var(--text); transform: translateY(-3px); border-color: var(--gold); }
.game-card h3 { font-size: 1.6rem; margin: 10px 0 6px; }
.game-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.game-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 800; color: var(--gold-bright); border: 1px solid rgba(243, 213, 122, 0.4); }
.tag-green { background: #24653f; }
.tag-red { background: #8a2222; }
.tag-teal { background: #1d5862; }
.tag-purple { background: #463b86; }

.about { max-width: 780px; }
.about p { color: var(--muted); font-size: 1.08rem; }

/* Inner pages */
.page-head { padding: 56px 0 8px; }
.page-head .lead { max-width: 720px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--gold); text-decoration: none; font-weight: 800; }
.chips a:hover { background: rgba(212, 175, 55, 0.14); }

.game { padding: 56px 0; }
.game-alt { background: rgba(14, 36, 24, 0.7); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.game-grid { display: grid; gap: 32px; align-items: center; }
.game-text p { color: var(--muted); }
.game-meta { color: var(--gold) !important; font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4em; }
.facts { list-style: none; padding: 0; margin: 0 0 1em; }
.facts li { padding: 10px 14px; margin-bottom: 8px; border-radius: 12px; background: rgba(5, 12, 8, 0.55); border: 1px solid rgba(212, 175, 55, 0.18); color: var(--muted); }
.card-chip { display: inline-block; min-width: 2.4em; text-align: center; margin-right: 8px; padding: 1px 6px; border-radius: 6px; background: var(--ivory); color: #1c1c1c; font-weight: 900; }
.card-chip.red { color: var(--red); }

.cta { text-align: center; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }

/* Support */
.faq h2 { margin-top: 1.6em; }
.faq h2:first-child { margin-top: 0; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(14, 36, 24, 0.75); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* Privacy */
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }
.prose ul:not(.ticks) { padding-left: 1.3em; }
.prose ul:not(.ticks) li { margin-bottom: 0.4em; }
.summary { padding: 22px 24px 10px; border-radius: var(--radius); border: 1px solid var(--gold); background: rgba(14, 36, 24, 0.85); }
.summary h2 { margin-top: 0; }

/* Contact */
.contact-grid { display: grid; gap: 14px; }
.contact-card { display: block; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(14, 36, 24, 0.85); text-decoration: none; color: var(--text); }
.contact-card:hover { border-color: var(--gold); color: var(--text); }
.contact-card h2 { font-size: 1.25rem; margin-bottom: 0.3em; }
.contact-card p { color: var(--muted); margin-bottom: 0.6em; }
.contact-card span { color: var(--gold-bright); font-weight: 800; overflow-wrap: anywhere; }
.company { margin-top: 40px; }
.company h2 { font-size: 1.3rem; }
.company dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.company dt { color: var(--dim); font-weight: 700; }
.company dd { margin: 0; color: var(--muted); }

.not-found { padding-bottom: 120px; }

/* Footer */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); background: rgba(5, 12, 8, 0.6); }
.foot-grid { display: grid; gap: 24px; }
.foot p { color: var(--dim); font-size: 0.92rem; margin: 10px 0 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.foot nav a:hover { color: var(--gold-bright); }
.foot .legal { font-size: 0.82rem; }

/* Phones: the brand and Play now share the first row; the text links move under them. */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-row { flex-wrap: wrap; gap: 0; padding-top: 10px; padding-bottom: 4px; min-height: 0; }
  .top-row .btn-small { margin-left: auto; }
  .top-row nav { order: 3; width: 100%; margin: 6px 0 0 -10px; overflow-x: auto; }
  .hero { padding-top: 32px; }
  .section { padding: 52px 0; }
  .phone-wide { padding: 5px; border-radius: 22px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
  .phone-wide img { border-radius: 18px; }
  .company dl { grid-template-columns: 1fr; gap: 2px; }
  .company dd { margin-bottom: 10px; }
}
@media (min-width: 600px) {
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .split-flip { grid-template-columns: 0.9fr 1.1fr; }
  .game-grid { grid-template-columns: 1.25fr 1fr; }
  .game-alt .game-grid { grid-template-columns: 1fr 1.25fr; }
  .game-alt .phone { order: 2; }
  .foot-grid { grid-template-columns: 1fr auto; align-items: start; }
  .foot .legal { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .cards4 { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-card { transition: none; }
}
