/* Mahjong Winds — static site (privacy, terms, landing).
   Same felt-and-brass palette as the game so the pages feel like the product,
   not a legal appendix bolted on. No build step, no fonts to fetch. */

:root {
  --felt: #0d4a37;
  --felt-dk: #0a3a2b;
  --panel: #0e3123;
  --brass: #c9a24b;
  --gold: #f0d68a;
  --cream: #f5f0dc;
  --muted: #9fc9b0;
  --bone: #f2e9d2;
  --line: rgba(201,162,75,.22);
  --jade: #69d6ad;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #081d14;
  color: var(--cream);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 0 20px 64px;
}

.wrap { max-width: 720px; margin: 0 auto; }

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0 18px;
  flex-wrap: wrap;
}

.logo {
  width: 40px; height: 52px; border-radius: 7px;
  background: linear-gradient(180deg, #faf4e3, #f2e9d2 55%, #dfd2b2);
  box-shadow: 0 4px 0 #b9a77f, 0 8px 16px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; font-weight: 900; color: #a4262e;
  transform: rotate(-5deg);
  flex: none;
}

header .name { font-size: 19px; font-weight: 800; letter-spacing: .3px; }
.headright { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
header nav { display: flex; gap: 14px; flex-wrap: wrap; }
header nav a { color: var(--brass); font-size: 14px; font-weight: 600; }

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

h1 { font-size: 27px; font-weight: 800; margin: 8px 0 4px; text-wrap: balance; }
h2 {
  font-size: 17px; font-weight: 800; color: var(--gold);
  margin: 28px 0 6px; text-wrap: balance;
}
p, li { color: var(--cream); }
.lede { color: var(--muted); font-size: 15.5px; }
.updated { color: var(--muted); font-size: 13px; margin: 0 0 6px; }

ul { padding-left: 20px; }
li { margin: 5px 0; }

/* The point of the whole document: what we do NOT take. */
.callout {
  background: linear-gradient(180deg, #10382a, var(--panel));
  border: 1px solid rgba(201,162,75,.4);
  border-left: 3px solid var(--brass);
  border-radius: 10px;
  padding: 13px 16px;
  margin: 16px 0;
}
.callout.good { border-left-color: var(--jade); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.scroll { overflow-x: auto; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(201,162,75,.22); vertical-align: top; }
th { color: var(--brass); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }

/* Compact header language switch — a plain "TR · EN" text toggle, the way
   normal sites do it, not big pill tabs sitting in the content. Hidden until
   lang.js runs (see the .js rules below). */
.langbar { align-items: center; gap: 6px; }
.langbar button {
  background: none; border: 0; padding: 2px 2px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.langbar button:hover { color: var(--cream); }
.langbar button[aria-pressed="true"] { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.langsep { color: var(--muted); opacity: .5; }

footer {
  margin-top: 44px; padding-top: 18px;
  border-top: 1px solid rgba(201,162,75,.25);
  color: var(--muted); font-size: 13.5px;
}

/* Progressive enhancement: with no JavaScript BOTH language sections show,
   which is correct-but-long rather than a blank page. `js` is set by lang.js
   the moment it runs, and only then does one-at-a-time kick in. A privacy
   policy that renders nothing without JS is a policy Google cannot read. */
.js section[lang] { display: none; }
.js section[lang].on { display: block; }
.langbar { display: none; }
.js .langbar { display: flex; }

/* ═══════════════ landing page ═══════════════ */
/* the landing uses a WIDE container — the legal pages' 720px was the cramping
   culprit; keep 720 for text, 1080 here for a real hero */
.wrap.wide { max-width: 1080px; }
/* felt-table glow behind the whole landing (legal pages keep the flat ground) */
body.landing {
  background:
    radial-gradient(120% 80% at 82% -5%, #1a6b50 0%, rgba(26,107,80,0) 46%),
    radial-gradient(90% 60% at 10% 0%, #10402f 0%, rgba(16,64,47,0) 40%),
    #06170f;
  background-attachment: fixed;
}

/* hero */
.hero { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center; padding: 44px 0 36px; }
.watermark { position: absolute; right: -30px; top: -34px; font-size: 360px; line-height: 1; color: rgba(240,214,138,.055); font-weight: 900; pointer-events: none; user-select: none; z-index: 0; }
.hero-copy { position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-copy h1 { font-size: 48px; line-height: 1.04; letter-spacing: -.02em; font-weight: 900; color: var(--bone); margin: 0 0 16px; text-wrap: balance; }
.hero-copy h1 .em { color: var(--gold); }
.hero-copy .lede { font-size: 18px; color: var(--muted); max-width: 42ch; margin: 0 0 26px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 11px; color: #241a06; font-weight: 900; font-size: 15px;
  background: linear-gradient(180deg,#ffe9a8,#d9b45e 55%,#b98f39); border: 1.5px solid #f6e2a4; border-radius: 13px;
  padding: 12px 20px; box-shadow: 0 8px 22px rgba(0,0,0,.4), inset 0 1px 0 #fff8; }
.store .lab { display: flex; flex-direction: column; line-height: 1.15; }
.store .lab small { font-weight: 700; font-size: 10.5px; opacity: .82; }
.seelink { color: var(--gold); font-weight: 700; font-size: 14.5px; }
.micro { margin: 20px 0 0; font-size: 12.5px; color: var(--muted); opacity: .85; }

/* device bezel — LIGHT, because the screenshots already carry the game's own
   wood rail; a heavy frame would double it */
.hero-shot { position: relative; z-index: 1; justify-self: end; width: 100%; }
.hero-shot::before { content: ""; position: absolute; inset: -10% -8% -14% -8%;
  background: radial-gradient(60% 60% at 55% 45%, rgba(240,214,138,.26), rgba(240,214,138,0) 70%); filter: blur(8px); z-index: 0; }
.device { position: relative; z-index: 1; padding: 8px; border-radius: 20px;
  background: linear-gradient(158deg,#221a0f,#0d0906 72%); border: 1px solid rgba(240,214,138,.16);
  box-shadow: 0 26px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); }
.shot { display: block; width: 100%; height: auto; border-radius: 12px; }

/* winds divider band, tying to the name */
.winds { display: flex; justify-content: center; gap: 30px; padding: 24px 0; margin: 4px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.winds span { font-size: 24px; font-weight: 900; color: rgba(240,214,138,.30); }
.winds .cap { align-self: center; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); font-weight: 800; }

/* feature rows */
.features { display: flex; flex-direction: column; gap: 56px; padding: 52px 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.feature:nth-child(even) .feature-shot { order: -1; }
.feature .eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); font-weight: 800; margin: 0 0 10px; }
.feature h2 { font-size: 29px; line-height: 1.1; letter-spacing: -.01em; font-weight: 800; color: var(--cream); margin: 0 0 12px; text-wrap: balance; }
.feature p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 44ch; }

/* responsiveness showcase — landscape gameplay phone + portrait menu phone */
.showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; padding: 52px 0; border-top: 1px solid var(--line); }
.showcase .eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); font-weight: 800; margin: 0 0 10px; }
.showcase h2 { font-size: 29px; line-height: 1.1; letter-spacing: -.01em; font-weight: 800; color: var(--cream); margin: 0 0 12px; text-wrap: balance; }
.showcase p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 42ch; }
.devices { display: flex; align-items: flex-end; justify-content: center; gap: 20px; }
.ph { padding: 6px; border-radius: 24px; background: linear-gradient(158deg,#221a0f,#0d0906 72%);
  border: 1px solid rgba(240,214,138,.2); box-shadow: 0 24px 50px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07); }
.ph .scr { overflow: hidden; border-radius: 15px; }
.ph .scr img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph.land { width: 300px; }
.ph.land .scr { aspect-ratio: 16/9; }
.ph.port { width: 124px; margin-bottom: 8px; }
.ph.port .scr { aspect-ratio: 9/19; }
.devwrap { position: relative; }
.devwrap .tag { display: block; text-align: center; margin-top: 12px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* three pillars — a small brass diamond marker (the game's tier motif), no emoji */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 4px 0; }
.pillar { background: linear-gradient(180deg,#10382a,var(--panel)); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; }
.pillar .mk { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); margin-bottom: 14px; }
.pillar h3 { font-size: 16.5px; margin: 0 0 6px; color: var(--cream); }
.pillar p { margin: 0; font-size: 14px; color: var(--muted); }

/* not-gambling — a slim left-ruled line, not a big box */
.note-line { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; margin: 44px 0 0;
  border-left: 2px solid var(--brass); background: rgba(201,162,75,.06); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 14px; }
.note-line b { color: var(--cream); }

/* closing */
.closing { text-align: center; padding: 68px 0 36px; }
.closing h2 { font-size: 32px; font-weight: 900; letter-spacing: -.01em; color: var(--bone); margin: 0 0 12px; }
.closing p { color: var(--muted); margin: 0 0 20px; }

@media (prefers-reduced-motion: no-preference) {
  body.landing .hero-copy > * { animation: rise .6s cubic-bezier(.2,.7,.3,1) both; }
  body.landing .hero-copy h1 { animation-delay: .06s; }
  body.landing .hero-copy .lede { animation-delay: .14s; }
  body.landing .hero-copy .cta-row { animation-delay: .22s; }
  body.landing .hero-shot { animation: rise .7s .18s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 30px 0; }
  .hero-copy h1 { font-size: 38px; }
  .watermark { font-size: 220px; right: -14px; top: -6px; }
  .hero-shot { max-width: 520px; width: 100%; margin: 0 auto; }
  .feature { grid-template-columns: 1fr; gap: 18px; }
  .feature:nth-child(even) .feature-shot { order: 0; }
  .showcase { grid-template-columns: 1fr; gap: 30px; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .devices { gap: 12px; }
  .ph.land { width: 210px; }
  .ph.port { width: 92px; }
}
