/* Tie Breaker Games: colours from brand/BRAND.md. The tie red is only ever the tie: never use it for UI. */
:root {
  --night: #12141a; --ink: #161a24; --paper: #f2f2f4; --yellow: #ffc531;
  --muted: #b4b8c6; --line: #2a2e3a; --panel: #1a1d26;
  --sky: #6fc3ff;   /* Fly The Umbrella accent (game pages only) */
  --sky-deep: #12306a; --sky-mid: #2468b4;
  --gutter: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--night); color: var(--paper); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--paper); }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .display { font-family: "Bungee", Impact, system-ui, sans-serif; font-weight: 400; letter-spacing: .01em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(26px, 5vw, 38px); }
h3 { font-size: 20px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 800; z-index: 10; }
.skip:focus { top: 8px; }

/* header and footer */
header.top { padding: 14px 0; position: relative; z-index: 2; }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; }
header.top .logo { display: block; line-height: 0; }
header.top .logo img { height: 30px; width: auto; display: block; }
nav { display: flex; gap: 0; margin-right: -8px; }
nav a { color: var(--paper); text-decoration: none; font-weight: 700; font-size: 16px; padding: 12px 7px; border-radius: 8px; min-height: 44px; }
nav a:hover { color: var(--yellow); }
nav a[aria-current="page"] { color: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 44px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer a { color: var(--paper); padding: 8px 0; display: inline-block; }
footer a:hover { color: var(--yellow); }
footer .copy { margin-right: auto; }

/* buttons: primary yellow with a hard ink offset (like the logo), secondary a paper outline */
.btn { text-align: center; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border-radius: 12px; font: 400 16px/1.15 "Bungee", Impact, system-ui, sans-serif; letter-spacing: .02em; text-decoration: none; margin: 10px 14px 0 0; transition: transform .08s, box-shadow .08s; }
.btn.primary { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink), 5px 5px 0 1px rgba(242,242,244,.28); }
.btn.primary:hover { color: var(--ink); transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink), 2px 2px 0 1px rgba(242,242,244,.28); }
.btn.secondary { border: 3px solid var(--paper); color: var(--paper); background: transparent; }
.btn.secondary:hover { background: var(--paper); color: var(--ink); }
.btn.small { min-height: 44px; font-size: 15px; padding: 8px 16px; }

/* home hero: a faint hex grid drawn in SVG */
.hero { padding: 40px 0 36px; position: relative; }
.hero.hex::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; opacity: .5;
  background: radial-gradient(ellipse at 20% 0, rgba(255,197,49,.10), transparent 60%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cg fill='none' stroke='%232a2e3a' stroke-width='2'%3E%3Cpath d='M28 2l26 15v30L28 62 2 47V17z'/%3E%3Cpath d='M28 62v33M2 47L-24 62M54 47l26 15' /%3E%3C/g%3E%3C/svg%3E"); }
.hero h1.studio { margin: 0 0 22px; text-shadow: none; line-height: 0; }
.hero h1.studio img { width: min(540px, 100%); height: auto; display: block; }
.hero h1 { font-size: clamp(38px, 9.5vw, 76px); margin: 0 0 18px; text-shadow: .06em .06em 0 #8a6a12; }
.lead { font-size: clamp(18px, 2.6vw, 22px); color: var(--muted); max-width: 640px; margin: 0; }
.hero .lead { margin-bottom: 14px; }
.note { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.note strong { color: var(--paper); }
section.block { padding: 44px 0 0; }
section.block > h2 { margin-bottom: 18px; }

/* cards */
.card { display: grid; grid-template-columns: 1fr; gap: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--yellow); color: inherit; transform: translateY(-2px); }
.card img { width: 100%; display: block; }
.card .body { padding: 0 20px 24px; }
.card h2 { margin: 0 0 8px; font-size: 28px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card .btn { margin-top: 6px; }

/* the game page: the game's sky blue and a sky gradient (procedural) */
.sky { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky-deep) 0%, var(--sky-mid) 78%, #2f7fcf 100%); }
.sky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, transparent, var(--night)); pointer-events: none; }
.cloud { position: absolute; border-radius: 999px; background: rgba(255,255,255,.14); filter: blur(1px); }
.cloud.a { width: 220px; height: 44px; left: -50px; top: 120px; }
.cloud.b { width: 300px; height: 56px; right: -90px; top: 60px; background: rgba(255,255,255,.10); }
.cloud.c { width: 180px; height: 36px; left: 38%; bottom: 120px; background: rgba(255,255,255,.09); }
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floaters svg { position: absolute; fill: rgba(111,195,255,.22); stroke: rgba(255,255,255,.25); stroke-width: 2; }
.floaters .f1 { width: 70px; right: 8%; top: 22%; animation: bob 7s ease-in-out infinite; }
.floaters .f2 { width: 44px; left: 6%; bottom: 22%; animation: bob 9s ease-in-out -3s infinite; }
.floaters .f3 { width: 28px; right: 26%; bottom: 14%; animation: bob 6s ease-in-out -1s infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.sky .wrap { position: relative; z-index: 1; }
.game-hero { display: grid; gap: 28px; padding: 28px 0 72px; align-items: center; }
.game-hero h1 { font-size: clamp(40px, 10vw, 72px); text-shadow: .05em .05em 0 var(--ink); margin: 0 0 16px; }
.game-hero .lead { color: #eaf4ff; }
.game-hero .art img { border-radius: 16px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); display: block; width: 100%; }
.sky .btn.primary { box-shadow: 5px 5px 0 var(--ink); }
.sky .btn.primary:hover { box-shadow: 2px 2px 0 var(--ink); }
.sky .note { color: #eaf4ff; }
.sky .note strong { color: #fff; }
.sky a:not(.btn) { color: #fff; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 8px var(--gutter) 22px; margin: 0 calc(var(--gutter) * -1); scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; }
.shots img { height: 440px; width: auto; border-radius: 14px; scroll-snap-align: start; flex: none; border: 2px solid var(--line); }
.feat { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.feat li { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--sky); border-radius: 12px; padding: 16px 18px; }
.feat b { display: block; color: var(--paper); margin-bottom: 2px; }
.feat span { color: var(--muted); }
.cta { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px 20px 30px; text-align: left; }
.cta h2 { margin-bottom: 10px; }

/* prose pages: support, press, 404 */
.page { padding-top: 28px; }
.page h1 { font-size: clamp(34px, 8vw, 56px); margin: 0 0 14px; text-shadow: .06em .06em 0 #8a6a12; }
.page h2 { margin: 40px 0 14px; }
.page h3 { margin: 24px 0 8px; }
.prose p, .prose li { max-width: 68ch; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
details[open] { border-color: #3c4152; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; gap: 12px; align-items: baseline; justify-content: space-between; min-height: 52px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 24px/1 "Bungee", Impact, sans-serif; color: var(--yellow); flex: none; }
details[open] summary::after { content: "\2212"; }
details .answer { padding: 0 18px 16px; color: var(--muted); }
details .answer p { margin: 0 0 10px; } details .answer li { margin: 4px 0; }
details .answer strong { color: var(--paper); }
.toc { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 10px 14px; border: 2px solid var(--line); border-radius: 999px; color: var(--paper); text-decoration: none; font-weight: 700; font-size: 15px; }
.toc a:hover { border-color: var(--yellow); color: var(--yellow); }
.contact-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 22px 0 0; }
.contact-box p { margin: 0 0 6px; }
.facts { display: grid; grid-template-columns: 1fr; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.facts dt { background: var(--panel); padding: 12px 16px 0; color: var(--yellow); font: 400 14px/1.3 "Bungee", Impact, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.facts dd { margin: 0; background: var(--panel); padding: 2px 16px 12px; border-bottom: 1px solid var(--line); }
.facts dd:last-child { border-bottom: 0; }
.copyblock { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px 6px; }
.copyblock p { max-width: 68ch; }
.dl { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0; margin: 0; list-style: none; }
.dl li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.dl .thumb { border-radius: 10px; display: flex; align-items: center; justify-content: center; min-height: 120px; overflow: hidden; }
.dl .thumb img { max-height: 160px; width: auto; max-width: 100%; display: block; }
.dl .thumb.dark { background: var(--night); border: 1px solid var(--line); }
.dl .thumb.light { background: var(--paper); }
.dl b { display: block; }
.dl small { color: var(--muted); display: block; }
.dl .links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dl .links a { padding: 8px 0; font-weight: 700; }
.shotgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0; margin: 0; list-style: none; }
.shotgrid li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.shotgrid img { width: 100%; border-radius: 8px; display: block; }
.shotgrid a { display: inline-block; padding: 8px 4px 2px; font-weight: 700; font-size: 15px; }

@media (min-width: 680px) {
  :root { --gutter: 28px; }
  header.top .logo img { height: 42px; }
  nav a { padding: 12px 10px; }
  .btn { font-size: 18px; }
  nav { gap: 6px; margin-right: 0; }
  .card { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 0; }
  .card .body { padding: 28px; }
      .feat { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 220px 1fr; }
  .facts dt { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .facts dd { padding: 14px 16px; }
  .facts dt:last-of-type { border-bottom: 0; }
  .dl { grid-template-columns: 1fr 1fr; }
  .shotgrid { grid-template-columns: repeat(3, 1fr); }
  .cta { padding: 36px; }
}
@media (min-width: 900px) {
  .game-hero { grid-template-columns: 1fr 1.05fr; gap: 48px; padding: 40px 0 96px; }
  .dl { grid-template-columns: repeat(3, 1fr); }
  .shotgrid { grid-template-columns: repeat(6, 1fr); }
  .shots img { height: 520px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .floaters svg { animation: none !important; } .btn, .card { transition: none; } }
.prose .toc, .prose .shotgrid, .prose .dl { padding-left: 0; }
