/* ===== My Airport Tycoon: Idle Empire - devbynight =====
   The game's own look: a bright airport sky, and the in-game VIP card for
   everything you read - cream paper, gold rim, red ribbon, chunky lipped
   buttons. Lilita One and Fredoka are the fonts the game uses. */

:root {
  --sky:      #1F8FEA;
  --sky-deep: #0D5FBF;
  --sky-pale: #DDF0FF;
  --cream:    #FFF8E8;
  --cream-2:  #FBEFD3;
  --gold:     #F2A922;
  --gold-lit: #FFD86B;
  --gold-rim: #B8720A;
  --red:      #D93A2B;
  --red-rim:  #99231A;
  --green:    #5CC93E;
  --green-rim:#3B8F27;
  --ink:      #3A2A1A;
  --ink-70:   rgba(58, 42, 26, 0.78);
  --rule:     #EAD9B5;
  --navy:     #10294A;
  --maxw:     940px;
  --font-head: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Fredoka", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sky-pale);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sky-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.nav {
  background: linear-gradient(180deg, var(--sky), var(--sky-deep));
  box-shadow: 0 4px 0 rgba(16, 41, 74, 0.25);
  position: sticky; top: 0; z-index: 10;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; flex-wrap: wrap; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 21px; color: #fff; text-decoration: none;
  text-shadow: 0 2px 0 rgba(16, 41, 74, 0.45);
}
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 2px solid #fff; }
.brand:hover { color: #fff; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 6px 12px; border-radius: 999px;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255, 255, 255, 0.24); color: #fff; }

/* ---------- hero (landing page) ---------- */
.hero {
  position: relative; text-align: center; color: #fff;
  padding: 44px 0 300px;
  background:
    linear-gradient(180deg, rgba(13, 95, 191, 0.92) 0%, rgba(31, 143, 234, 0.55) 45%, rgba(31, 143, 234, 0) 72%),
    url("hero.jpg") center bottom / cover no-repeat;
}
.hero img.logo { width: min(460px, 86%); height: auto; margin: 0 auto; filter: drop-shadow(0 8px 10px rgba(16, 41, 74, 0.4)); }
.hero h1 {
  font-family: var(--font-head); font-weight: 400; font-size: clamp(25px, 5vw, 38px);
  line-height: 1.15; margin: 16px 0 8px; text-shadow: 0 3px 0 rgba(16, 41, 74, 0.45);
}
.hero p { font-size: 19px; font-weight: 500; max-width: 590px; margin: 0 auto; text-shadow: 0 1px 3px rgba(16, 41, 74, 0.7); }
.btn {
  display: inline-block; margin-top: 22px; padding: 11px 28px; border-radius: 16px;
  font-family: var(--font-head); font-size: 20px; color: #fff; text-decoration: none;
  background: linear-gradient(var(--green), #45AE2C);
  border: 3px solid #fff; box-shadow: 0 5px 0 var(--green-rim);
}
.btn:hover { color: #fff; transform: translateY(2px); box-shadow: 0 3px 0 var(--green-rim); }

/* ---------- landing sections ---------- */
.ribbon {
  display: table; margin: 44px auto 22px; padding: 7px 26px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 400; font-size: 24px; color: #fff; text-align: center;
  background: linear-gradient(#EE5244, var(--red));
  box-shadow: 0 4px 0 var(--red-rim);
  text-shadow: 0 2px 0 var(--red-rim);
  scroll-margin-top: 84px;
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; }
.card {
  background: var(--cream); border-radius: 20px; padding: 20px 22px;
  border: 3px solid var(--gold); box-shadow: 0 5px 0 var(--gold-rim);
}
.card h3 { font-family: var(--font-head); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--sky-deep); margin-bottom: 6px; }
.card p { font-size: 16px; color: var(--ink-70); }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.shots img { width: 100%; height: auto; border-radius: 16px; border: 3px solid #fff; box-shadow: 0 4px 0 rgba(16, 41, 74, 0.2); }

.plain { max-width: 680px; margin: 0 auto 12px; text-align: center; }
.tail { padding-bottom: 56px; }

/* ---------- legal / support pages ---------- */
.legal { padding: 36px 0 56px; }
.legal .sheet {
  background: var(--cream); border-radius: 26px; padding: 34px 30px;
  border: 3px solid var(--gold); box-shadow: 0 6px 0 var(--gold-rim);
}
.eyebrow { font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; }
.legal h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(32px, 6vw, 44px); line-height: 1.1; margin: 4px 0; }
.updated { color: var(--ink-70); font-size: 15px; margin-bottom: 22px; }
.legal h2 {
  font-family: var(--font-head); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--sky-deep);
  margin: 34px 0 10px; scroll-margin-top: 84px;
}
.legal h3 { font-size: 18px; font-weight: 700; margin: 18px 0 6px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 14px 22px; }
.legal li { margin-bottom: 6px; }

.intro {
  background: #FFF0C2;
  border: 3px solid var(--gold); border-radius: 18px; padding: 18px 20px; margin-bottom: 22px;
}
.toc {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px 18px;
  background: var(--cream-2); border-radius: 18px; padding: 16px 20px; margin-bottom: 8px; font-size: 15px;
}
.toc strong { grid-column: 1 / -1; margin-bottom: 4px; }
.toc a { text-decoration: none; }

.table-scroll { overflow-x: auto; margin: 6px 0 16px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid var(--rule); }
table.data th { background: var(--cream-2); font-weight: 700; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: rgba(255, 255, 255, 0.82); padding: 26px 0; font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: #fff; text-decoration: none; }
.foot-links a:hover { color: var(--gold-lit); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 210px; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .legal .sheet { padding: 24px 18px; border-radius: 20px; }
  .nav .wrap { padding-top: 8px; padding-bottom: 8px; }
}
