/* Shared by every game's affiliate pages. Each game's colours come from /<game>/theme.css; these
   are the fallbacks for pages without a game (the index). Figtree, as in the Act Normal app. */

@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(/fonts/Figtree_400Regular.ttf) format('truetype'); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(/fonts/Figtree_600SemiBold.ttf) format('truetype'); }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: url(/fonts/Figtree_800ExtraBold.ttf) format('truetype'); }
@font-face { font-family: Figtree; font-weight: 900; font-display: swap; src: url(/fonts/Figtree_900Black.ttf) format('truetype'); }

:root {
  --background: #FFFFFF; --text: #1C1A24; --muted: #5F5A6E; --line: #DCD8E6; --field: #F3F1F7;
  --highlight: #F2B705; --button: #FFD60A; --button-text: #1C1A24; --error: #C8105A;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000; --text: #FFFFFF; --muted: #9DA1AD; --line: #3A3D48; --field: #1A1B21;
    --highlight: #FFD60A; --button: #FFD60A; --button-text: #1C1A24; --error: #FF5C9A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 17px/1.45 Figtree, system-ui, -apple-system, sans-serif;
}
main {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
a { color: inherit; }

.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.brand img { border-radius: 22%; }
.wordmark { margin: 0; font-weight: 800; letter-spacing: 0.06em; font-size: 15px; }

h1 {
  margin: 6px 0 0;
  font-weight: 900;
  font-size: clamp(34px, 9.5vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.highlight { color: var(--highlight); display: block; }
h2 { margin: 0; font-weight: 800; font-size: 24px; letter-spacing: -0.01em; }
.lead { margin: 0; font-size: 18px; }
.small { margin: 0; font-size: 14px; color: var(--muted); }

.perks { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.perks li {
  position: relative;
  padding: 12px 14px 12px 44px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-weight: 600;
}
.perks li::before {
  content: '';
  position: absolute; left: 14px; top: 50%;
  width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%;
  background: var(--button);
}

form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; text-align: left; }
form h2 { text-align: center; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
input[type=text], input[type=email], input[type=url], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 50px;
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--button); outline-offset: 1px; border-color: transparent; }
.invalid input, .invalid select, .invalid textarea { border-color: var(--error); }
.error, .summary { margin: 0; color: var(--error); font-weight: 600; font-size: 14px; }
.summary { text-align: center; font-size: 15px; }
.check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--button); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

button, .button {
  display: block;
  width: 100%;
  font: 800 19px/1.2 Figtree, system-ui, sans-serif;
  color: var(--button-text);
  background: var(--button);
  border: 2px solid var(--button);
  border-radius: 14px;
  padding: 15px 18px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button.outline { background: transparent; color: var(--text); border-color: var(--text); }
button:focus-visible, .button:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.games { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.games a { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; text-decoration: none; }
.games img { border-radius: 22%; flex: none; }
