/* Golunex Games — the logo's violet night, lit by its crescent: violet, magenta and orange.
   Layout: mobile first; one centred column (max 1120px), full-width bands, cards only where they group content. */
:root {
  --bg: #120A2C;          /* page: the logo's night */
  --bg-deep: #0B0620;     /* bands, footer */
  --surface: #1C1142;     /* cards */
  --surface-2: #26175A;
  --line: rgba(196, 170, 255, 0.16);
  --text: #F5F2FF;
  --muted: #B9AEDB;
  --violet: #A855F7;
  --magenta: #E5489B;
  --orange: #FF8A3D;
  --gold: #FFC857;
  --brand: linear-gradient(120deg, #A855F7 0%, #E5489B 52%, #FF8A3D 100%);
  --display: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #FFE08F; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-weight: 900; font-size: clamp(2.3rem, 8vw, 4.2rem); letter-spacing: -0.015em; }
h2 { font-weight: 900; font-size: clamp(1.7rem, 5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-weight: 900; font-size: 1.3rem; }
p { margin: 0; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { display: inline-block; font-weight: 900; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 36em; }

/* ------------------------------------------------------------ header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(18, 10, 44, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand .compact { display: none; }
.nav { display: flex; gap: 4px; font-weight: 800; font-size: 0.98rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: rgba(255, 255, 255, 0.07); }
@media (max-width: 520px) {
  .brand .full { display: none; }
  .brand .compact { display: block; }
  .nav { font-size: 0.92rem; }
  .nav a { padding: 8px 10px; }
}

/* ------------------------------------------------------------ backdrop glow */
.glow { position: relative; isolation: isolate; overflow: hidden; }
.glow::before, .glow::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.glow::before { width: 520px; height: 520px; left: -160px; top: -180px; background: radial-gradient(circle, #7C3AED, transparent 70%); opacity: .55; }
.glow::after { width: 460px; height: 460px; right: -140px; top: 60px; background: radial-gradient(circle, #E5489B, transparent 70%); opacity: .35; }

/* ------------------------------------------------------------ buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 12px 24px; border-radius: 999px; font-weight: 900; font-size: 1rem; text-decoration: none;
  background: var(--brand); color: #1A0B33; box-shadow: 0 10px 30px rgba(229, 72, 155, 0.35);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: #1A0B33; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(229, 72, 155, 0.45); }
.btn.ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255, 200, 87, .6); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 520px) { .actions { width: 100%; } .actions .btn { flex: 1 1 100%; } }

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 104px); }
.hero .wrap { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; }
.hero .copy { display: grid; gap: 22px; justify-items: start; }
.hero .art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 360px; }
.hero .art .moon { position: absolute; width: min(420px, 90%); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: .35; filter: blur(1px); }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }

/* phone frame around screenshots */
.phone {
  position: relative; width: min(250px, 66vw); aspect-ratio: 9 / 16; border-radius: 36px; padding: 9px; flex-shrink: 0;
  background: linear-gradient(160deg, #3A2479, #140A30); box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 0 0 1.5px rgba(255, 255, 255, .1);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; }
.hero .phone { transform: rotate(4deg); }
.hero .phone.back { position: absolute; transform: translateX(-42%) rotate(-9deg) scale(.82); opacity: .7; }
@media (max-width: 520px) { .hero .phone.back { display: none; } .hero .art { min-height: 0; } }

.badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 14px; border-radius: 999px;
  font-weight: 900; font-size: 0.85rem; color: var(--gold); background: rgba(255, 200, 87, .1); box-shadow: inset 0 0 0 1px rgba(255, 200, 87, .35);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 200, 87, .2); }

/* ------------------------------------------------------------ sections */
section { padding-block: clamp(56px, 9vw, 96px); }
.band { background: var(--bg-deep); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 44em; }
.section-head p { color: var(--muted); }

/* featured game */
.feature { border-radius: 28px; padding: 1.5px; background: var(--brand); box-shadow: 0 30px 80px rgba(124, 58, 237, .25); }
.feature-in {
  border-radius: 27px; background: linear-gradient(160deg, #1E3A6E 0%, #101C3C 55%, #0C1430 100%);
  display: grid; gap: 28px; padding: clamp(22px, 4vw, 40px); overflow: hidden;
}
.feature .info { display: grid; gap: 18px; justify-items: start; }
.feature .head { display: flex; gap: 18px; align-items: center; }
.feature .icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); flex-shrink: 0; }
.feature .sub { color: #FFB347; font-weight: 900; }
.feature p.desc { color: #C8D6EE; max-width: 56ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 0.88rem; color: #E1EAF7; background: rgba(188, 211, 243, .1); box-shadow: inset 0 0 0 1px rgba(188, 211, 243, .2); }
@media (min-width: 900px) { .feature-in { grid-template-columns: 1.05fr 1fr; align-items: center; } }

.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; scrollbar-width: thin; scrollbar-color: rgba(188,211,243,.3) transparent; }
.shots .phone { width: min(190px, 52vw); scroll-snap-align: start; }

/* value tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tile p { color: var(--muted); }
.ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.ic svg { width: 28px; height: 28px; }
.ic.violet { background: rgba(168, 85, 247, .18); color: #C9A2FF; }
.ic.magenta { background: rgba(229, 72, 155, .18); color: #FF8CC6; }
.ic.orange { background: rgba(255, 138, 61, .18); color: #FFB37A; }
.ic.blue { background: rgba(188, 211, 243, .14); color: #BCD3F3; }
.ic.amber { background: rgba(255, 179, 71, .16); color: #FFB347; }

/* facts list */
.facts { display: grid; margin: 0; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 22px; }
.facts div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
@media (max-width: 420px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.about { display: grid; gap: 32px; }
.about .copy p { color: var(--muted); }
.about .copy p + p { margin-top: 14px; }
@media (min-width: 860px) { .about { grid-template-columns: 1.15fr 1fr; align-items: start; } }

/* contact band */
.cta {
  border-radius: 28px; padding: clamp(28px, 5vw, 52px); display: grid; gap: 18px; justify-items: start;
  background: radial-gradient(120% 140% at 0% 0%, rgba(168, 85, 247, .55), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(255, 138, 61, .45), transparent 55%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cta p { color: #E6DEFF; max-width: 40em; }

/* Twicetold page: the game's own night blue and amber */
.tw-hero { background: linear-gradient(180deg, #102048 0%, var(--bg) 100%); }
.tw-hero.glow::before { background: radial-gradient(circle, #2C5291, transparent 70%); opacity: .9; }
.tw-hero.glow::after { background: radial-gradient(circle, #FFB347, transparent 70%); opacity: .22; }
.tw-hero .eyebrow { color: #FFB347; }
.tw-hero h1 .amber { color: #FFB347; }
.app-icon { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 24px 24px 24px 78px; border-radius: var(--radius); background: rgba(28, 49, 92, .55); box-shadow: inset 0 0 0 1px rgba(188, 211, 243, .14); }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; color: #10203F; background: #FFB347;
}
.step strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.step span { color: #C8D6EE; }

/* ------------------------------------------------------------ legal pages */
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 40px; margin-bottom: 10px; }
.legal p, .legal li { color: #DDD6F5; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal .meta { color: var(--muted); margin-top: 10px; }
.legal .box { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border-radius: 18px; padding: 18px 20px; margin-top: 18px; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--muted); font-weight: 800; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
.lang-switch { display: flex; gap: 8px; margin-top: 18px; }
.lang-switch a { padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 800; color: var(--text); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 64px 0; }

/* ------------------------------------------------------------ footer */
footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
footer .who { display: flex; align-items: center; gap: 12px; }
footer .who img { width: 36px; height: 36px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ------------------------------------------------------------ 2026-11 redesign: two games on the home page */
.section-head p { max-width: 52ch; }
.home-hero .copy { gap: 20px; }
.hero-games { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-games a {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; text-decoration: none; color: var(--text);
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, transform .15s;
}
.hero-games a:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-2px); }
.hero-games img { width: 44px; height: 44px; border-radius: 12px; }
.hero-games span { display: grid; line-height: 1.2; }
.hero-games strong { font-weight: 900; }
.hero-games small { color: var(--muted); font-weight: 700; font-size: 0.8rem; }
/* two phones side by side: Twicetold's night and Wiserio's day */
.art.duo { min-height: 440px; gap: 12px; max-width: 100%; }
.art.duo .phone { width: min(230px, 38vw); position: relative; }
.art.duo .phone.tw { transform: rotate(-7deg) translateY(28px); z-index: 1; }
.art.duo .phone.ws { transform: rotate(6deg) translate(-26px, -18px); z-index: 2; }
.art.duo .moon { opacity: .5; }
@media (max-width: 520px) { .art.duo { min-height: 330px; gap: 8px; } .art.duo .phone { width: 38vw; } .art.duo .phone.ws { transform: rotate(6deg) translate(-10px, -14px); } }

/* feature cards: each game in its own colours */
.feature + .feature { margin-top: 28px; }
.feature.day { background: linear-gradient(120deg, #FF6B4A, #FFB83D); box-shadow: 0 30px 80px rgba(255, 107, 74, .22); }
.feature.day .feature-in { background: linear-gradient(170deg, #FFF4E4 0%, #FFE2C4 55%, #FFC89A 100%); color: #2A2238; }
.feature.day h3 { color: #2A2238; }
.feature.day .sub { color: #E8502F; }
.feature.day p.desc { color: #4A3D55; }
.feature.day .chip { background: rgba(42, 34, 56, .08); color: #2A2238; box-shadow: inset 0 0 0 1px rgba(42, 34, 56, .14); }
.feature.day .badge { color: #B23A1C; background: rgba(232, 80, 47, .1); box-shadow: inset 0 0 0 1px rgba(232, 80, 47, .35); }
.feature.day .badge::before { background: #E8502F; box-shadow: 0 0 0 4px rgba(232, 80, 47, .18); }
.feature.day .btn { background: #FF6B4A; color: #fff; box-shadow: 0 10px 26px rgba(255, 107, 74, .35); }
.feature.day .btn:hover { color: #fff; background: #F25C3B; }
.feature.day .btn.ghost { background: rgba(42, 34, 56, .07); color: #2A2238; box-shadow: inset 0 0 0 1.5px rgba(42, 34, 56, .18); }
.feature.day .btn.ghost:hover { color: #2A2238; box-shadow: inset 0 0 0 1.5px rgba(42, 34, 56, .4); }
.feature.day .phone { background: linear-gradient(160deg, #5A2A28, #2A2238); box-shadow: 0 24px 50px rgba(90, 42, 40, .35), inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.feature.day .shots::-webkit-scrollbar-thumb { background: rgba(42, 34, 56, .2); }

/* four promises */
@media (min-width: 700px) { .tiles.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles.four { grid-template-columns: repeat(4, 1fr); } }
footer .sep { color: var(--line); }

/* Wiserio page: the game's own paper and coral */
.ws-hero { background: linear-gradient(180deg, #2A1D36 0%, var(--bg) 100%); }
.ws-hero.glow::before { background: radial-gradient(circle, #FF6B4A, transparent 70%); opacity: .55; }
.ws-hero.glow::after { background: radial-gradient(circle, #FFB83D, transparent 70%); opacity: .35; }
.ws-hero .eyebrow { color: #FFB37A; }
.coral { color: #FF8A5C; }
.ws-hero .badge { color: #FFB37A; background: rgba(255, 138, 92, .12); box-shadow: inset 0 0 0 1px rgba(255, 138, 92, .4); }
.ws-hero .badge::before { background: #FF8A5C; box-shadow: 0 0 0 4px rgba(255, 138, 92, .2); }
.ws-hero .btn { background: linear-gradient(120deg, #FF6B4A, #FFB83D); color: #2A2238; }
.ws-hero .btn:hover { color: #2A2238; }
.ws-hero .phone { background: linear-gradient(160deg, #5A2A28, #2A2238); box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 0 0 1.5px rgba(255, 200, 154, .3); }
@media (max-width: 520px) { .nav { gap: 0; font-size: 0.9rem; } .nav a { padding: 8px 9px; } .nav .extra { display: none; } }
