/* torquetower.wevlu.com: the game's look on the web. Dusk sky, toy buttons with a hard lip, Lilita One. */
:root {
  --night: #0B0F2E;
  --dusk: #2A1A48;
  --ember: #7A3352;
  --ink: #152340;
  --deep: #04213A;
  --paper: #F3F6FF;
  --paper-lip: #9DAACB;
  --muted: #5A6688;
  --cyan: #3CD3FF;
  --cyan-lip: #1677B5;
  --gold: #FFD23F;
  --gold-lip: #C2860B;
  --coral: #FF6B6B;
  --violet: #9C7BFF;
  --pink: #FF8AD8;
  --text: #EAF0FF;
  --text-dim: #B9C3E6;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 700 17px/1.55 var(--body); color: var(--text); background: var(--night); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Dusk City sky: stars up top, the sunset glow low, a skyline along the bottom. */
.sky { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 55%, var(--ember) 100%); }
.sky::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.8;
  background-image: radial-gradient(1.5px 1.5px at 12% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 32%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 46% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 24%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 81% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 38%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 46%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 55% 44%, #fff 50%, transparent 51%); }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; color: #120A1E; }
.skyline svg { width: 100%; height: 100%; display: block; }

.title { color: #fff; text-shadow: 0 0.07em 0 var(--cyan-lip), 0 0.14em 0 var(--deep); letter-spacing: 0.02em; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 26px/1 var(--display); color: #fff; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 0 var(--deep); }
nav.links { display: flex; gap: 20px; font-weight: 900; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--text-dim); }
nav.links a:hover { color: #fff; }
@media (max-width: 600px) { nav.links { display: none; } }

/* Toy buttons: flat colour, a darker lip underneath, pressed = lip disappears. */
.btn { --c: var(--paper); --l: var(--paper-lip); --t: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 24px;
  border: 0; border-radius: 20px; background: var(--c); box-shadow: 0 6px 0 var(--l); color: var(--t);
  font: 400 21px/1 var(--display); letter-spacing: 0.03em; text-decoration: none; cursor: pointer; transition: transform 0.08s, box-shadow 0.08s; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--l); }
.btn.cyan { --c: var(--cyan); --l: var(--cyan-lip); --t: var(--deep); }
.btn.gold { --c: var(--gold); --l: var(--gold-lip); --t: #3A2600; }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn small { font: 900 12px/1 var(--body); background: rgba(4, 33, 58, 0.14); border-radius: 999px; padding: 5px 9px; letter-spacing: 0; white-space: nowrap; }
.btn[aria-disabled="true"] { cursor: default; }

.card { background: var(--paper); color: var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--paper-lip); }

/* A phone frame around a capture (393×852 screen). */
.phone { position: relative; width: 100%; aspect-ratio: 393 / 852; padding: 3.2%; border-radius: 14% / 6.5%; background: #050814;
  box-shadow: 0 0 0 3px #2C3558, 0 30px 60px -24px rgba(0, 0, 0, 0.7); }
.phone > img, .phone > video { width: 100%; height: 100%; object-fit: cover; border-radius: 11.5% / 5.3%; background: var(--night); }

footer.bottom { padding: 32px 0 40px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-size: 15px; color: var(--text-dim); }
footer.bottom a { font-weight: 900; color: #fff; }
footer.bottom .grow { flex: 1; min-width: 200px; }

:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
