/* =========================================================================
   Tycoon Mania — shared styles
   Light, modern, premium. A calm near-white canvas, confident near-black
   typography, and blue used as a considered accent — not a candy gradient.
   Each game contributes its own colour as a soft glow behind its icon.
   ========================================================================= */

:root {
  /* brand */
  --brand: #1f44dd;          /* deep, considered blue */
  --brand-ink: #1735b6;      /* links / hover / text on light */
  --brand-tint: #eef1fe;
  --brand-glow: rgba(31, 68, 221, .20);

  /* surfaces & text */
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0b1220;
  --ink-2: #45526a;
  --muted: #6c7889;
  --muted-2: #9aa4b4;
  --line: #e7eaf1;
  --line-strong: #d9dee9;

  /* per-app accents (used as glows / small marks) */
  --accent-hollywood: #f0a01e;
  --accent-bingetown: #ff2d92;
  --accent-alchemists: #7c5cf0;
  --accent-suguru: #2f7d5b;

  --maxw: 1120px;
  --radius: 22px;
  --radius-btn: 13px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05), 0 4px 12px rgba(11, 18, 32, .05);
  --shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 14px 34px rgba(11, 18, 32, .09);
  --shadow-lg: 0 2px 6px rgba(11, 18, 32, .06), 0 30px 60px rgba(11, 18, 32, .14);

  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-body);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand); }

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

/* ---- refined ambient backdrop --------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% -10%, rgba(43, 87, 246, .10), transparent 60%),
    radial-gradient(40% 40% at 85% 0%, rgba(124, 92, 240, .06), transparent 70%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 60%);
  pointer-events: none;
  z-index: 0;
}
/* faint grain for depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .022;
  pointer-events: none;
  z-index: 0;
}
.wrap, header.site, footer.site { position: relative; z-index: 1; }

/* ---- header ---------------------------------------------------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(16px);
  background: rgba(250, 251, 253, .8);
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: block;
  box-shadow: 0 4px 12px rgba(43, 87, 246, .32);
}
header.site nav { display: flex; gap: 30px; align-items: center; }
header.site nav a {
  color: var(--ink-2);
  font-size: .94rem;
  font-weight: 500;
}
header.site nav a:hover { color: var(--brand); }
header.site nav a.lang {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 10px;
  font-weight: 600;
  font-size: .82rem;
  color: var(--ink-2);
  letter-spacing: .02em;
}
header.site nav a.lang:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }

/* ---- hero ------------------------------------------------------------ */
.hero { text-align: center; padding: 104px 0 64px; }
.hero .kicker {
  display: inline-block;
  color: var(--brand-ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .7rem;
  font-weight: 700;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.04;
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  color: var(--ink);
}
.hero p.lead {
  color: var(--ink-2);
  font-size: clamp(1.1rem, 2.3vw, 1.3rem);
  font-weight: 400;
  max-width: 620px;
  margin: 26px auto 0;
  line-height: 1.55;
}

/* value chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  padding: 9px 17px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

/* ---- section headings ------------------------------------------------ */
section { padding: 60px 0; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 46px;
  font-size: 1.04rem;
}

/* ---- game bands (landing, full-bleed 21:9) -------------------------- */
.bands { display: flex; flex-direction: column; }
.band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(340px, 40vw, 600px);
  overflow: hidden;
  isolation: isolate;
}
.band::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--img);
  background-size: cover;
  background-position: center right;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease;
  will-change: transform;
}
.band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,10,18,.92) 0%, rgba(8,10,18,.66) 32%, rgba(8,10,18,.2) 56%, rgba(8,10,18,0) 78%),
    linear-gradient(0deg, rgba(8,10,18,.5) 0%, rgba(8,10,18,0) 40%);
  transition: opacity .5s ease;
}
.band:hover::before { transform: scale(1.06); filter: brightness(1.08) saturate(1.12); }
.band:hover::after { opacity: .8; }
.band-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 44px 24px; }
.band-text { max-width: 480px; color: #fff; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.band:hover .band-text { transform: translateX(9px); }
.band-text h3 {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: -.035em;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  color: #fff; line-height: 1.02;
}
.band-tag {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 10px 0 18px;
  color: rgba(255,255,255,.82); font-size: 1.05rem; font-weight: 500;
}
.band-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent, var(--brand));
  box-shadow: 0 0 12px 1px var(--accent, var(--brand));
}
.band .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.band .badge {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
  backdrop-filter: blur(4px);
  font-weight: 500;
}
.band-cta {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fff; font-weight: 600; font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  transition: background .16s ease, gap .16s ease, border-color .16s ease;
}
.band:hover .band-cta {
  background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.55); gap: 14px;
  box-shadow: 0 8px 30px color-mix(in srgb, var(--accent, var(--brand)) 45%, transparent);
}
.band-cta .arrow { transition: transform .16s ease; }
.band:hover .band-cta .arrow { transform: translateX(3px); }

@media (max-width: 560px) {
  .band { min-height: 420px; align-items: flex-end; }
  .band::before { background-position: center; }
  .band::after {
    background:
      linear-gradient(0deg, rgba(8,10,18,.94) 4%, rgba(8,10,18,.55) 42%, rgba(8,10,18,.15) 78%),
      linear-gradient(90deg, rgba(8,10,18,.4), rgba(8,10,18,0) 70%);
  }
  .band-inner { padding: 30px 22px 34px; }
}

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 28px 28px;
  text-align: center;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow);
}
.app-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.app-card .icon {
  width: 96px; height: 96px;
  border-radius: 22px;
  margin: 0 auto 20px;
  box-shadow:
    0 10px 26px color-mix(in srgb, var(--accent, var(--brand)) 30%, transparent),
    0 4px 10px rgba(11, 18, 32, .12);
}
.app-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.app-card .tag {
  color: var(--muted); margin: 6px 0 18px; font-size: .98rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.app-card .tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent, var(--brand));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--brand)) 18%, transparent);
}
.app-card .badges { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-bottom: 24px; }
.badge {
  font-size: .74rem; font-weight: 500; letter-spacing: 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  padding: 5px 11px; border-radius: 999px;
}
.app-card .spacer { flex: 1; }

/* buttons — flat, crisp, no gloss */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  letter-spacing: -.01em;
  font-size: .95rem;
  box-shadow: 0 1px 2px rgba(11, 18, 32, .14), 0 5px 14px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { color: #fff; background: var(--brand-ink); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11, 18, 32, .16), 0 9px 20px var(--brand-glow); }
.btn:active { transform: translateY(0); }
.btn.accent { background: var(--brand); }
.btn.ghost {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--muted-2); }
.btn.block { display: block; }
.btn.disabled { background: var(--surface-2); color: var(--muted-2); border: 1px solid var(--line); box-shadow: none; cursor: default; pointer-events: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---- values strip ---------------------------------------------------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}
.value { text-align: center; padding: 22px 16px; border-radius: 16px; transition: background .18s ease; }
.value:hover { background: var(--surface-2); }
.value .big {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); font-size: 1.12rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.value .big::before {
  content: "✓";
  color: var(--brand);
  font-size: .8rem; font-weight: 800;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-tint);
  display: inline-grid; place-items: center;
}
.value .small { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* ---- app detail page: cinematic banner header ----------------------- */
.app-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 52vw, 660px);
  overflow: hidden;
  isolation: isolate;
}
.app-banner::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--img);
  background-size: cover;
  background-position: center right;
}
.app-banner::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,10,18,.95) 0%, rgba(8,10,18,.72) 34%, rgba(8,10,18,.28) 60%, rgba(8,10,18,.05) 84%),
    linear-gradient(0deg, rgba(8,10,18,.62) 0%, rgba(8,10,18,0) 46%);
}
.app-banner-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 44px 24px; }
.ab-content { max-width: 600px; color: #fff; }
.app-banner .back { color: rgba(255,255,255,.72); margin-bottom: 16px; }
.app-banner .back:hover { color: #fff; }
.ab-head { display: flex; align-items: center; gap: 20px; }
.ab-icon { width: 88px; height: 88px; border-radius: 20px; flex: none; box-shadow: 0 14px 32px rgba(0,0,0,.5); }
.app-banner h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.03; }
.ab-tagline { color: rgba(255,255,255,.86); font-weight: 600; font-size: clamp(1.05rem, 2.2vw, 1.35rem); margin-top: 8px; letter-spacing: -.02em; }
.app-banner .badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.app-banner .badge {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
  backdrop-filter: blur(4px);
  font-weight: 500;
}
.app-banner .btn-row { justify-content: flex-start; }
.app-banner .btn.ghost {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.38);
  color: #fff;
  backdrop-filter: blur(6px);
}
.app-banner .btn.ghost:hover { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.6); }
.app-banner .meta { color: rgba(255,255,255,.74); margin-top: 16px; font-size: .95rem; }
.app-banner .meta a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.app-banner .soon { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }

@media (max-width: 560px) {
  .app-banner { min-height: 500px; align-items: flex-end; }
  .app-banner::before { background-position: center; }
  .app-banner::after {
    background:
      linear-gradient(0deg, rgba(8,10,18,.95) 6%, rgba(8,10,18,.55) 48%, rgba(8,10,18,.15) 82%),
      linear-gradient(90deg, rgba(8,10,18,.45), rgba(8,10,18,0) 72%);
  }
  .app-banner-inner { padding: 30px 22px 36px; }
  .ab-head { gap: 14px; }
  .ab-icon { width: 64px; height: 64px; border-radius: 15px; }
}

/* ---- app detail page ------------------------------------------------- */
.app-hero { padding: 88px 0 52px; text-align: center; position: relative; }
.app-hero .icon-lg {
  width: 150px; height: 150px; border-radius: 34px;
  margin: 0 auto 28px;
  box-shadow:
    0 20px 50px color-mix(in srgb, var(--accent, var(--brand)) 32%, transparent),
    0 8px 20px rgba(11, 18, 32, .16);
}
.app-hero h1 { color: var(--ink); }
.app-hero .tagline { color: var(--ink-2); font-weight: 600; font-size: 1.3rem; margin-top: 16px; letter-spacing: -.02em; }
.app-hero .meta { color: var(--muted); margin-top: 16px; font-size: .95rem; }
.app-hero .badges { justify-content: center; margin: 26px 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }

.feature-list { list-style: none; max-width: 700px; margin: 0 auto; }
.feature-list li {
  position: relative;
  padding: 15px 0 15px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.feature-list li::before {
  content: "";
  position: absolute; left: 4px; top: 21px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent, var(--brand));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, var(--brand)) 16%, transparent);
}
.feature-list li strong { color: var(--ink); font-weight: 600; }

.prose { max-width: 700px; margin: 0 auto; color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; }
.prose p { margin-bottom: 18px; }
.prose h2 { font-family: var(--font-display); color: var(--ink); font-weight: 700; letter-spacing: -.03em; margin: 36px 0 14px; font-size: 1.55rem; }
.prose h3 { color: var(--ink); font-weight: 600; margin: 26px 0 8px; font-size: 1.1rem; }
.prose ul { margin: 0 0 18px 20px; }
.prose li { margin-bottom: 7px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent, var(--brand));
  padding: 18px 22px;
  border-radius: 4px 14px 14px 4px;
  margin: 26px 0;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

/* coming soon banner */
.soon {
  display: inline-block;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent-bingetown) 45%, var(--line));
  color: #d61585;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

/* back link */
.back { display: inline-block; color: var(--muted); font-weight: 500; font-size: .9rem; margin-bottom: 10px; }
.back:hover { color: var(--brand); }

/* ---- footer ---------------------------------------------------------- */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 60px;
  padding: 54px 0;
  color: var(--muted);
  font-size: .92rem;
}
footer.site .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}
footer.site .brand { margin-bottom: 10px; }
footer.site nav { display: flex; flex-direction: column; gap: 9px; }
footer.site nav a { color: var(--muted); }
footer.site nav a:hover { color: var(--brand); }
footer.site nav strong { color: var(--ink); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
footer.site .legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted-2); }

/* ---- guide / article ------------------------------------------------- */
.toc {
  max-width: 700px;
  margin: 0 auto 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; color: var(--ink-2); }
.toc li { margin: 7px 0; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.prose .lead-in { font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.article-meta { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 10px; }

/* ---- utilities ------------------------------------------------------- */
.center { text-align: center; }
.mt40 { margin-top: 40px; }
.divider { height: 1px; background: var(--line); margin: 10px 0; border: 0; }

@media (max-width: 640px) {
  .hero { padding: 68px 0 44px; }
  header.site nav { gap: 20px; }
  header.site nav a.hide-sm { display: none; }
  .app-card { padding: 32px 22px 24px; }
}
