:root {
  --bg: #241a15;
  --backdrop: rgba(28, 19, 15, 0.72);
  --surface: #33261f;
  --surface2: #43332b;
  --border: #5a463b;
  --border-bright: #7a6252;
  --text: #f6ede0;
  --text-dim: #cbb8a4;
  --text-muted: #96826f;
  --ink: #241a15;
  --act: #f2b63d;
  --act-pressed: #d9a02f;
  --act-shelf: #a87a1e;
  --wait: #8b7c6e;
  --drink: #e2583a;
  --done: #8fae5a;
  --card-face: #ffffff;
  --suit-red: #d2321e;
  --suit-black: #17130f;
  --card-back: #43332b;
  --card-back-stripe: rgba(246,237,224,0.14);
}

/*
 * Huikka's web pages, in the app's own look: flat colour on a warm near-black
 * ground, Outfit for display and Manrope for text, and one action colour.
 * Mustard (--act) is what can be tapped, here as in the app, so every link is
 * mustard and nothing else is.
 *
 * The colour tokens are not written here. The build puts them in front of
 * this file from the app's theme (constants/theme.ts), named after it:
 * textDim is --text-dim, surface2 is --surface2.
 */

@font-face {
  font-family: 'Outfit';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Outfit-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Outfit-ExtraBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/Manrope-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/Manrope-ExtraBold.ttf') format('truetype');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

::selection {
  background: var(--act);
  color: var(--ink);
}

a {
  color: var(--act);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

strong,
b {
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
}

/* The bar across the top: a small wordmark, and the languages the page is in. */

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px;
}

.mini-mark {
  display: inline-block;
  padding: 2px 12px 4px;
  background: var(--drink);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-decoration: none;
  transform: rotate(-4deg);
}

.languages {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
  font-size: 15px;
}

.languages a {
  text-decoration: none;
}

.languages a:hover {
  text-decoration: underline;
}

.languages .current {
  color: var(--text);
  font-weight: 800;
}

/* A page of text: the legal texts, support, deleting your data. */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

.doc h1 {
  margin: 20px 0 12px;
  font-weight: 800;
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.doc h2 {
  margin: 36px 0 10px;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}

.doc p,
.doc li {
  margin: 0 0 14px;
  color: var(--text-dim);
}

.doc strong {
  color: var(--text);
}

.doc .lead {
  color: var(--text);
  font-size: 19px;
  line-height: 1.55;
}

.updated {
  font-size: 15px;
}

.doc .updated {
  color: var(--text-muted);
}

/* A setting named the way the app names it: Asetukset → Tietoa → Ota yhteyttä. */
.ui b {
  color: var(--text);
  white-space: nowrap;
}

.numbered {
  margin: 0 0 14px;
  padding-left: 1.5em;
}

.numbered li::marker {
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
}

/* The landing: the app's own home screen, a band running off both edges. */

.band-wrap {
  overflow: hidden;
  /* Room for the tilt: a band 124vw wide turned by 7° rises and falls 7.6vw
     past its own height at either end. */
  padding: calc(8vw + 8px) 0 calc(8vw + 14px);
}

.band {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(124px, 30vw, 240px);
  margin: 0 -12vw;
  background: var(--drink);
  color: var(--text);
  font-weight: 800;
  font-size: clamp(72px, 17vw, 140px);
  line-height: 1;
  letter-spacing: -0.035em;
  transform: rotate(-7deg);
}

.stripe {
  height: clamp(18px, 3.4vw, 28px);
  margin: clamp(10px, 1.8vw, 14px) -12vw 0;
  background: var(--act);
  transform: rotate(-7deg);
}

.tagline {
  margin: 4px 16px 0;
  color: var(--text-dim);
  font-size: clamp(17px, 2.6vw, 21px);
  line-height: 1.45;
  text-align: center;
}

.availability {
  margin: 14px 16px 0;
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

.wrap h2 {
  margin: 40px 0 14px;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 14px 16px 14px 56px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text-dim);
  line-height: 1.45;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 9px;
  left: 18px;
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
}

.games {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
}

/* The thumb is part of the mark: every card cuts itself out of --surface2. */
.thumb {
  flex: none;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface2);
}

.thumb svg {
  display: block;
}

.game h3 {
  margin: 2px 0 4px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}

.game p {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.45;
}

.game .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface2);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.chip.free {
  color: var(--done);
}

.pricing {
  margin: 18px 0 0;
  color: var(--text-dim);
}

.note {
  margin: 32px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* The foot of every page. */

.foot {
  border-top: 1px solid var(--border);
}

.foot-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  color: var(--text-muted);
  font-size: 15px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 10px;
}

.provider {
  margin: 0;
}

@media (min-width: 640px) {
  .games {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .bar,
  .doc,
  .wrap,
  .foot-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
