/* Public site pages: main page, terms, privacy, contact. No framework, no web fonts. */
:root {
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --brand-soft: #eef2ff;
    --accent: #f59e0b;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
    --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: #fff; padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

[id] { scroll-margin-top: 80px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--brand); margin-bottom: .5em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800;
    font-size: 1.15rem; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--brand); font-weight: inherit; }
.site-nav { margin-left: auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: var(--text); font-weight: 500; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.site-nav a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit;
    font-weight: 600; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
    cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .3); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Hero */
.hero { padding: 72px 0 56px; background:
    radial-gradient(900px 400px at 85% -10%, rgba(79, 70, 229, .14), transparent 60%),
    radial-gradient(700px 360px at 0% 110%, rgba(245, 158, 11, .12), transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none;
    color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 6px; }
.hero-art { border-radius: 24px; background: #fff; box-shadow: var(--shadow); padding: 24px; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-rooms { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.card .icon svg { width: 22px; height: 22px; }

.room { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600;
    transition: border-color .15s, box-shadow .15s, transform .15s; }
.room:hover { text-decoration: none; border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.room .badge { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
    color: #fff; font-weight: 800; background: var(--c, var(--brand)); }
.room small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }

.app-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    padding: 32px; border-radius: 20px; color: #fff;
    background: linear-gradient(135deg, var(--brand), #7c3aed); }
.app-cta h2 { color: #fff; margin-bottom: .25em; }
.app-cta p { margin: 0; opacity: .9; }

.rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.rules li { position: relative; padding-left: 30px; }
.rules li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 5px;
    background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%234f46e5'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-8 8a1 1 0 0 1-1.4 0l-4-4a1 1 0 1 1 1.4-1.4L8 12.6l7.3-7.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center/14px no-repeat; }

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .35em; }

.ad { margin: 32px auto; text-align: center; min-height: 90px; }
.ad:empty, .ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* Legal and contact pages */
.page-hero { padding: 56px 0 32px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); margin: 0; }
.doc { padding: 48px 0 64px; }
.doc .prose { background: #fff; }
.notice { padding: 14px 18px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); margin-bottom: 24px; }

.form { display: grid; gap: 16px; }
.form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form input, .form textarea { width: 100%; font: inherit; color: var(--ink); padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .15); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: start; }

/* Footer */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 40px 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: #e2e8f0; }
.site-footer .social { margin-left: auto; display: flex; gap: 10px; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); }
.site-footer .social a:hover { background: var(--brand); text-decoration: none; }
.site-footer .social svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 900px) {
    .hero .wrap, .contact-grid { grid-template-columns: 1fr; }
    .hero-art { order: -1; max-width: 520px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .section { padding: 48px 0; }
    .hero { padding: 40px 0; }
    .grid-3, .rules { grid-template-columns: 1fr; }
    .site-header .wrap { flex-wrap: wrap; gap: 4px 12px; min-height: 0; padding-top: 10px; padding-bottom: 6px; }
    .site-nav { margin-left: -12px; width: calc(100% + 12px); }
    .grid-rooms { grid-template-columns: 1fr 1fr; gap: 10px; }
    .room { padding: 12px; gap: 10px; font-size: .95rem; }
    .room .badge { width: 34px; height: 34px; }
    [id] { scroll-margin-top: 110px; }
    .brand { font-size: 1rem; }
    .site-footer .social { margin-left: 0; }
    .app-cta { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .room { transition: none; }
}
