/* Ludo Lantern website */
@font-face { font-family: "Lilita One"; src: url(fonts/lilita-one-latin.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito-latin.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --bg: #1f0b3a; --bg-2: #2b1052; --panel: #3a1868; --panel-2: #4a2182; --edge: #170629;
  --gold: #ffcf4d; --gold-2: #f59a1c; --text: #ffffff; --muted: #d6c6f2; --line: rgba(255, 255, 255, 0.12);
  --red: #ef4545; --green: #22b35e; --yellow: #f7b818; --blue: #2f86ea;
  --display: "Lilita One", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px; --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(1200px 800px at 50% -200px, #6a2fb0 0%, var(--bg-2) 50%, transparent 100%) no-repeat, linear-gradient(var(--bg-2), var(--bg) 900px); color: var(--text); font: 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: rgba(31, 11, 58, 0.72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 3px 0 var(--edge); }
.nav { margin-inline-start: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 800; padding: 8px 12px; border-radius: 999px; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
@media (max-width: 720px) { .nav { display: none; } .nav.open { display: flex; position: absolute; top: 64px; inset-inline: 0; flex-direction: column; padding: 8px 16px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); } .menu-btn { display: grid !important; } }
.menu-btn { display: none; margin-inline-start: auto; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--panel); color: #fff; font-size: 1.3rem; cursor: pointer; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero .actions { justify-content: center; } .phones { max-width: 420px; margin-inline: auto; } }
.logo-word { font-family: var(--display); font-size: clamp(3rem, 8vw, 5.2rem); line-height: 1; margin: 0 0 12px; letter-spacing: 0.01em; text-shadow: 0 5px 0 var(--edge); }
.logo-word .l1 { color: #ff6b6b; } .logo-word .l2 { color: #4fd18b; } .logo-word .l3 { color: var(--gold); } .logo-word .l4 { color: #5fb6ff; }
.lead { font-size: 1.25rem; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.hero .wrap > div:first-child .lead { margin-inline: auto 0; }
@media (min-width: 861px) { .hero .lead { margin-inline: 0; } }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 16px; background: #0f0620; border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; text-decoration: none; min-width: 190px; }
.store svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.store small { display: block; font-size: 0.72rem; color: var(--muted); line-height: 1.1; }
.store b { display: block; font-size: 1.1rem; line-height: 1.2; }
.store.soon { opacity: 0.85; cursor: default; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.phones { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.phone { border-radius: 28px; overflow: hidden; border: 6px solid #120424; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); background: #120424; }
.phone:nth-child(2) { transform: translateY(40px); }

/* sections */
section { padding: 56px 0; }
.section-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 8px; text-align: center; }
.section-lead { text-align: center; color: var(--muted); margin: 0 auto 32px; max-width: 40em; }
.grid { display: grid; gap: 16px; }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: linear-gradient(var(--panel-2), var(--panel)); border-radius: var(--radius); padding: 22px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 5px 0 var(--edge); }
.card h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 1.45rem; }
.card p { margin: 0; color: var(--muted); }
.mode { position: relative; overflow: hidden; }
.mode::after { content: ""; position: absolute; inset: auto -30px -30px auto; width: 110px; height: 110px; border-radius: 50%; opacity: 0.25; }
.mode.q::after { background: #9a6cff; } .mode.g::after { background: var(--gold-2); } .mode.t::after { background: #ff7aa2; } .mode.b::after { background: #52c8ff; }
.mode .tag { display: inline-block; margin-bottom: 10px; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 900; background: rgba(255, 255, 255, 0.12); }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(255, 255, 255, 0.1); }
.feature h3 { font-size: 1.2rem; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 220px; scroll-snap-align: center; }
.shots img { border-radius: 22px; border: 5px solid #120424; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.shots figcaption { text-align: center; color: var(--muted); font-weight: 800; font-size: 0.9rem; margin-top: 10px; }

/* faq */
details { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 900; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p, details ul { color: var(--muted); margin: 10px 0 0; }
.faq { max-width: 820px; margin: 0 auto; }

/* documents (privacy, terms, rules) */
.doc { padding: 40px 0 64px; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin: 36px 0 8px; color: var(--gold); }
.doc h3 { margin: 22px 0 6px; font-size: 1.15rem; }
.doc p, .doc li { color: #efe8fb; }
.doc ul, .doc ol { padding-inline-start: 1.3em; }
.doc li { margin: 4px 0; }
.box { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 18px 0; }
.box.gold { border-color: rgba(255, 207, 77, 0.5); background: rgba(255, 207, 77, 0.08); }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.95rem; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-weight: 900; }
.table-wrap { overflow-x: auto; }
.toc { columns: 2 220px; padding: 16px 20px 16px 40px; background: rgba(255, 255, 255, 0.05); border-radius: 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 16px; font-weight: 900; text-decoration: none; background: linear-gradient(#ffd76a, var(--gold-2)); color: #4a1d05; box-shadow: 0 4px 0 #b0600a; }
.btn:hover { color: #4a1d05; filter: brightness(1.05); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; margin-top: 24px; background: rgba(0, 0, 0, 0.18); }
.foot .wrap { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } }
.foot h4 { margin: 0 0 10px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.foot a { display: block; color: #fff; text-decoration: none; margin: 6px 0; font-weight: 700; }
.foot a:hover { color: var(--gold); }
.foot p { color: var(--muted); margin: 8px 0; font-size: 0.92rem; }

/* ---------- phone mockup ---------- */
/* .device sets the size; everything inside scales with it (cqw = % of the phone's width). */
.device { container-type: inline-size; width: 100%; }
.device .body { position: relative; aspect-ratio: 390 / 880; padding: 3.2cqw; border-radius: 13cqw; background: linear-gradient(145deg, #3a3a44, #121216 45%, #26262e); box-shadow: 0 0 0 2px #4a4a55, 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.device .body::before, .device .body::after { content: ""; position: absolute; width: 1.2cqw; border-radius: 1cqw; background: #2e2e36; }
.device .body::before { left: -1.1cqw; top: 18%; height: 9%; }
.device .body::after { right: -1.1cqw; top: 24%; height: 13%; }
.screen { position: relative; height: 100%; border-radius: 10.2cqw; overflow: hidden; background: #43197a; display: flex; flex-direction: column; }
.screen img { width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top; }
.statusbar { flex: none; height: 10cqw; display: flex; align-items: center; justify-content: space-between; padding: 0 8cqw 0 9cqw; color: #fff; font: 700 4.3cqw/1 system-ui, -apple-system, sans-serif; background: #4a1c7e; }
.statusbar i { display: flex; gap: 1.4cqw; align-items: center; }
.statusbar svg { height: 3.3cqw; fill: #fff; }
.island { position: absolute; top: 2.6cqw; left: 50%; transform: translateX(-50%); width: 27%; height: 6.6cqw; border-radius: 4cqw; background: #000; z-index: 2; }

/* hero phones */
.hero-phones { position: relative; height: 560px; }
.hero-phones .device { position: absolute; width: 250px; }
.hero-phones .device.front { left: 8%; top: 0; z-index: 2; transform: rotate(-4deg); }
.hero-phones .device.back { right: 4%; top: 60px; transform: rotate(6deg); filter: brightness(0.92); }
@media (max-width: 860px) { .hero-phones { height: 470px; max-width: 420px; margin: 16px auto 0; } .hero-phones .device { width: 205px; } }
@media (max-width: 420px) { .hero-phones { height: 400px; } .hero-phones .device { width: 175px; } }

/* screenshot slider */
.slider { position: relative; outline: none; }
.stage { position: relative; height: 620px; touch-action: pan-y; user-select: none; }
.slide { position: absolute; left: 50%; top: 10px; width: 270px; margin-left: -135px; transition: transform 0.55s cubic-bezier(.2, .8, .2, 1), opacity 0.55s, filter 0.55s; cursor: pointer; }
.slide[data-pos="0"] { transform: none; z-index: 3; cursor: default; }
.slide[data-pos="-1"] { transform: translateX(-78%) scale(0.82); opacity: 0.75; filter: brightness(0.65); z-index: 2; }
.slide[data-pos="1"] { transform: translateX(78%) scale(0.82); opacity: 0.75; filter: brightness(0.65); z-index: 2; }
.slide[data-pos="-2"] { transform: translateX(-140%) scale(0.66); opacity: 0.35; filter: brightness(0.5); z-index: 1; }
.slide[data-pos="2"] { transform: translateX(140%) scale(0.66); opacity: 0.35; filter: brightness(0.5); z-index: 1; }
.slide[data-pos="hidden"] { transform: scale(0.5); opacity: 0; pointer-events: none; }
.slider .arrow { position: absolute; top: 280px; z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 1.6rem; cursor: pointer; backdrop-filter: blur(6px); }
.slider .arrow:hover { background: rgba(255, 255, 255, 0.22); }
.slider .prev { left: calc(50% - 300px); } .slider .next { right: calc(50% - 300px); }
.slide-caption { text-align: center; min-height: 86px; }
.slide-title { font-family: var(--display); font-size: 1.6rem; margin: 6px 0 2px; }
.slide-text { color: var(--muted); margin: 0 auto; max-width: 30em; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, 0.25); cursor: pointer; transition: width 0.3s, background 0.3s; }
.dots button[aria-current="true"] { width: 28px; background: var(--gold); }
@media (max-width: 700px) {
  .stage { height: 520px; }
  .slide { width: 225px; margin-left: -112px; }
  .slide[data-pos="-1"] { transform: translateX(-62%) scale(0.78); } .slide[data-pos="1"] { transform: translateX(62%) scale(0.78); }
  .slide[data-pos="-2"], .slide[data-pos="2"] { opacity: 0; }
  .slider .arrow { top: 230px; width: 44px; height: 44px; } .slider .prev { left: 0; } .slider .next { right: 0; }
}

/* ---------- support tickets ---------- */
.ticket-form { display: grid; gap: 14px; }
.ticket-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .ticket-form .two { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 0.95rem; }
.field small { font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-weight: 600; color: #fff; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; padding: 12px 14px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select, .field textarea:focus { outline: none; border-color: var(--gold); }
.field select option { color: #000; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; margin: 0; font-weight: 800; }
.form-msg.err { color: #ff8b8b; } .form-msg.ok { color: #8be09a; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 900; }
button.btn[disabled] { opacity: 0.6; cursor: default; }
.thread { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); }
.bubble.staff { align-self: flex-end; background: rgba(255, 207, 77, 0.12); border-color: rgba(255, 207, 77, 0.35); }
.bubble .who { font-size: 0.8rem; color: var(--muted); font-weight: 800; margin-bottom: 4px; }
.bubble p { margin: 0; white-space: pre-wrap; color: #fff; }
.status-pill { display: inline-block; padding: 3px 12px; border-radius: 99px; font-size: 0.85rem; font-weight: 900; background: rgba(255, 255, 255, 0.12); vertical-align: middle; }
.status-pill.answered { background: var(--gold); color: #3a1d05; } .status-pill.closed { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.my-tickets { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.my-tickets a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); text-decoration: none; color: #fff; font-weight: 800; }
.my-tickets a:hover { background: rgba(255, 255, 255, 0.1); }
#screens, .hero { overflow-x: clip; }
.support-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 28px; }
@media (max-width: 720px) { .support-top { grid-template-columns: 1fr; } }
.support-top .card h3 { margin-bottom: 6px; }
.check-row { display: flex; gap: 10px; margin-top: 12px; }
.check-row input { flex: 1; min-width: 0; font: inherit; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; padding: 12px 14px; }
.ticket-number { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 20px; margin-bottom: 18px; border-radius: 18px; background: rgba(255, 207, 77, 0.1); border: 1px solid rgba(255, 207, 77, 0.45); }
.ticket-number small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.ticket-number b { font-family: var(--display); font-weight: 400; font-size: 2.6rem; letter-spacing: 0.08em; color: var(--gold); }
.ticket-number span { color: #efe8fb; max-width: 36em; }
