/* Little Tippler Studio — official site. Night indigo base, amber / foam / maple accents. */
:root {
  --night: #17142e;
  --night-2: #221d40;
  --night-3: #2e2752;
  --amber: #f2a23a;
  --amber-deep: #c9761a;
  --foam: #fff4df;
  --maple: #d9482b;
  --ink-soft: rgba(255, 244, 223, 0.74);
  --ink-faint: rgba(255, 244, 223, 0.5);
  --line: rgba(255, 244, 223, 0.14);
  --display: "Fredoka", "ZCOOL KuaiLe", "PingFang SC", system-ui, sans-serif;
  --body: "Nunito Sans", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--foam);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ── header ─────────────────────────────────────────────── */
.top {
  position: absolute; inset: 0 0 auto; z-index: 10;
  padding: 18px 0;
}
.top .wrap { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 46px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)); }
.brand-name { font: 600 20px/1.05 var(--display); letter-spacing: 0.01em; }
.brand-name small { display: block; font: 500 12px/1.3 var(--body); color: var(--ink-soft); letter-spacing: 0.04em; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a, .lang {
  font: 600 15px/1 var(--body); text-decoration: none; color: var(--foam);
  padding: 10px 14px; border-radius: 999px;
}
.nav a:hover { background: rgba(255, 244, 223, 0.1); }
.lang { border: 1px solid var(--line); background: rgba(23, 20, 46, 0.4); cursor: pointer; backdrop-filter: blur(6px); }
.lang:hover { border-color: var(--amber); }
@media (max-width: 640px) {
  .nav a { display: none; }
  .brand-name small { display: none; }
}

/* ── hero (the one loud thing) ──────────────────────────── */
.hero {
  position: relative; min-height: min(100svh, 980px);
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 20, 46, 0.92) 0%, rgba(23, 20, 46, 0.78) 30%, rgba(23, 20, 46, 0.35) 52%, rgba(23, 20, 46, 0) 70%),
    linear-gradient(0deg, var(--night) 0%, rgba(23, 20, 46, 0) 34%);
}
.hero-copy { padding-bottom: clamp(56px, 10vh, 120px); padding-top: 120px; max-width: 580px; }
.hero h1 {
  font: 600 clamp(44px, 7.4vw, 96px)/0.95 var(--display);
  margin: 0 0 22px; letter-spacing: -0.015em; text-wrap: balance;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}
.hero p.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); margin: 0 0 30px; max-width: 34em; text-wrap: pretty; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) {
  .hero { align-items: flex-end; min-height: 92svh; }
  .hero-art img { object-position: 70% 50%; }
  .hero::after { background: linear-gradient(0deg, var(--night) 4%, rgba(23, 20, 46, 0.7) 45%, rgba(23, 20, 46, 0.1) 80%); }
}

/* the hero title settles in once on load */
.hero h1, .hero .lede, .hero .actions { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .lede { animation-delay: 0.12s; }
.hero .actions { animation-delay: 0.22s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 16px/1 var(--body); text-decoration: none;
  padding: 15px 22px; border-radius: 14px; border: 0; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-amber { background: var(--amber); color: #2b1608; box-shadow: 0 6px 0 var(--amber-deep); }
.btn-amber:hover { background: #ffb24d; }
.btn-ghost { background: rgba(255, 244, 223, 0.1); color: var(--foam); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 244, 223, 0.18); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .sub { display: block; font: 500 12px/1.2 var(--body); opacity: 0.75; margin-top: 3px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; box-shadow: none; }

/* ── sections ───────────────────────────────────────────── */
section { padding: clamp(64px, 9vw, 120px) 0; }
h2 { font: 600 clamp(32px, 4.4vw, 52px)/1.05 var(--display); margin: 0 0 16px; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font: 600 22px/1.2 var(--display); margin: 0 0 8px; }
.intro { color: var(--ink-soft); max-width: 36em; margin: 0 0 40px; font-size: 18px; }

/* game banner on the home page */
.game-card {
  position: relative; display: grid; grid-template-columns: 1.25fr 1fr;
  border-radius: 28px; overflow: hidden; background: var(--night-2);
  text-decoration: none; min-height: 440px;
}
.game-card .art { position: relative; overflow: hidden; }
.game-card .art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transition: transform 0.6s ease; }
.game-card:hover .art img { transform: scale(1.03); }
.game-card .info { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.game-card .title { font: 600 clamp(36px, 4vw, 52px)/1 var(--display); color: var(--amber); margin: 0; }
.game-card p { margin: 0; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li { font: 600 13px/1 var(--body); padding: 8px 12px; border-radius: 999px; background: rgba(242, 162, 58, 0.14); color: var(--amber); }
.tags li.live { background: rgba(217, 72, 43, 0.18); color: #ff8a6e; }
.game-card .go { font: 700 16px/1 var(--body); color: var(--foam); margin-top: 8px; }
.game-card .go span { display: inline-block; transition: transform 0.2s ease; }
.game-card:hover .go span { transform: translateX(4px); }
@media (max-width: 820px) {
  .game-card { grid-template-columns: 1fr; }
  .game-card .art { aspect-ratio: 16 / 9; }
}
.more-games { margin-top: 18px; padding: 22px 26px; border: 1px dashed var(--line); border-radius: 20px; color: var(--ink-faint); }

/* how it works — a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--night-3); }
.steps li::before { content: counter(step); display: block; font: 600 44px/1 var(--display); color: var(--amber); margin-bottom: 14px; }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.band { background: var(--night-2); }

/* ── game page ──────────────────────────────────────────── */
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-soft); font-size: 15px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts strong { color: var(--foam); font-weight: 700; }

.downloads { display: flex; flex-wrap: wrap; gap: 12px; }
.downloads .btn { padding: 14px 20px; min-width: 230px; }
.dl-note { color: var(--ink-faint); font-size: 14px; margin: 14px 0 0; max-width: 40em; }

.gifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.gift {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start;
  padding: 18px; border-radius: 18px; background: var(--night-2); border: 1px solid transparent;
}
.gift .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: var(--night-3); }
.gift h3 { font-size: 19px; margin: 2px 0 4px; }
.gift p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.gift.big { border-color: rgba(242, 162, 58, 0.45); background: linear-gradient(160deg, rgba(242, 162, 58, 0.16), var(--night-2) 60%); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shots figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--night-2); aspect-ratio: 16 / 9; }
.shots img { width: 100%; height: 100%; object-fit: cover; }
.shots figure:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shots figure:first-child { grid-column: span 2; grid-row: auto; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.plain { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.plain li { margin: 6px 0; }
.plain code, .code {
  font: 500 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--night-3); padding: 2px 6px; border-radius: 6px; color: var(--foam); word-break: break-all;
}

/* ── footer ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer .brand img { width: 34px; height: 34px; }
footer .brand-name { font-size: 16px; color: var(--foam); }
footer a { color: var(--ink-soft); }
footer .fine { width: 100%; margin: 0; }
.more-head { margin-top: 40px; }
.notfound { padding-top: 180px; padding-bottom: 120px; }
.notfound h1 { font: 600 clamp(40px, 6vw, 72px)/1 var(--display); margin: 0 0 16px; }

/* Maple key art is bright on the left (sunset), so its title needs a deeper wash */
.game-maple .hero::after {
  background:
    linear-gradient(90deg, rgba(23, 20, 46, 0.94) 0%, rgba(23, 20, 46, 0.84) 30%, rgba(23, 20, 46, 0.4) 50%, rgba(23, 20, 46, 0) 64%),
    linear-gradient(0deg, var(--night) 0%, rgba(23, 20, 46, 0) 34%);
}
.hero .lede { text-shadow: 0 2px 14px rgba(23, 20, 46, 0.8); }
@media (max-width: 700px) {
  .game-maple .hero::after { background: linear-gradient(0deg, var(--night) 8%, rgba(23, 20, 46, 0.82) 50%, rgba(23, 20, 46, 0.15) 82%); }
}
