/* Shared look for all Oqrai games – matches the homepage.
   Each game sets its own page colour with --page on <body>. */
@font-face {
  font-family: "Bricolage";
  src: url("bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
:root {
  --blue: #2979FF;
  --pink: #FF3D8B;
  --sun: #FFD60A;
  --tang: #FF7A1A;
  --grape: #1B0F3B;
  --milk: #FFFDF8;
  --line: 3px solid var(--grape);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  font-family: "Bricolage", -apple-system, "Helvetica Neue", sans-serif;
  font-optical-sizing: auto;
  color: var(--grape);
  background: var(--page, var(--blue));
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
button { font: inherit; color: inherit; }

.wrap { width: min(600px, 100% - 32px); margin: 0 auto; padding: 22px 0 48px; display: flex; flex-direction: column; gap: 20px; }

/* top bar */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.home {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px 8px; font-weight: 800; font-size: 18px; letter-spacing: -.3px;
  color: var(--grape); text-decoration: none; background: var(--milk);
  border: var(--line); border-radius: 999px; box-shadow: 3px 3px 0 var(--grape);
  transition: transform .12s, box-shadow .12s;
}
.home:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--grape); }
.home:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--grape); }
.sticker {
  padding: 6px 14px; font-weight: 800; font-size: 14px; white-space: nowrap;
  background: var(--sun); border: var(--line); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--grape); transform: rotate(4deg);
}

/* big title */
.title {
  font-size: clamp(56px, 15vw, 104px); line-height: .85; font-weight: 800; font-stretch: 75%;
  letter-spacing: -2px; text-transform: lowercase; color: var(--milk);
  text-shadow: 4px 4px 0 var(--grape);
}
.title .tilt { display: inline-block; transform: rotate(-4deg); }

/* milk card */
.card {
  background: var(--milk); border: var(--line); border-radius: 24px;
  box-shadow: 8px 8px 0 var(--grape); padding: 16px;
}

/* pill group (difficulty, side, mode) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 7px 16px 8px; font-weight: 700; font-size: 15px; cursor: pointer;
  background: var(--milk); border: var(--line); border-radius: 999px;
  box-shadow: 0 3px 0 var(--grape); transition: transform .1s, box-shadow .1s;
}
.pill:active { transform: translateY(3px); box-shadow: 0 0 0 var(--grape); }
.pill[aria-pressed="true"] { background: var(--sun); }

/* toy-plastic button */
.blob {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px 14px; font: 800 17px/1 "Bricolage", sans-serif; cursor: pointer;
  text-decoration: none; color: var(--grape);
  background: linear-gradient(180deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 45%), var(--c, var(--sun));
  border: var(--line); border-radius: 999px;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), 0 5px 0 var(--grape);
  transition: transform .12s, box-shadow .12s;
}
.blob:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), 0 7px 0 var(--grape); }
.blob:active:not(:disabled) { transform: translateY(4px); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 1px 0 var(--grape); }
.blob:disabled { opacity: .45; cursor: default; }
.blob.milk { --c: var(--milk); }
.blob.small { padding: 9px 16px 11px; font-size: 15px; }

.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; }

.status { font-weight: 800; font-size: 22px; line-height: 1.1; }
.muted { opacity: .7; font-size: 15px; }
.label { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--milk); margin-bottom: 8px; }

.foot { color: var(--milk); opacity: .85; font-size: 14px; text-align: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
