/* Kuup, peidetud mängu ülekate. Laetakse ainult kontaktilehel. */

/* Pikslinupp päises: sama pill, tekst asendatud sümbolitega. */
.pill .pill__pixels { display: block; height: .9rem; width: auto; }
.hdr__cta--game { padding: .75rem 1rem; cursor: pointer; border: 0; font: inherit; }

.game[hidden] { display: none !important; }
.game {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: clamp(.75rem, 3vw, 2rem);
}
.game__backdrop { position: absolute; inset: 0; background: rgba(9, 20, 33, .82); border: 0; }
.game__box {
  position: relative;
  width: min(100%, 60rem);
  background: var(--ink-deep);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
}
.game__bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1rem .85rem 1.25rem;
  border-bottom: 1px solid rgba(198,211,223,.16);
}
.game__title {
  font-family: var(--font-micro); font-size: .72rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--yellow);
}
.game__hint {
  font-family: var(--font-micro); font-size: .72rem; color: #8FA6BB;
  margin-right: auto;
}
.game__close {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid rgba(198,211,223,.3); background: transparent;
  color: #C6D3DF; font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.game__close:hover { background: var(--yellow); color: var(--ink-deep); border-color: var(--yellow); }
.game__canvas {
  display: block; width: 100%; height: min(48vh, 20rem);
  touch-action: manipulation; cursor: pointer; background: var(--ink-deep);
}
.game__scores {
  display: flex; gap: 1.75rem;
  padding: .8rem 1.25rem;
  border-top: 1px solid rgba(198,211,223,.16);
  font-family: var(--font-micro); font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; color: #8FA6BB;
}
.game__scores b { color: var(--cream); font-weight: 500; }
.game :focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* Ekraanilugeja tekst, visuaalselt peidus */
.game__status {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (max-width: 860px) {
  /* Muud päise nupud on mobiilis peidus, aga see on kitsas ja mahub ära. */
  .hdr__cta--game { display: inline-flex; }
  .game__hint { display: none; }
  .game__canvas { height: min(42vh, 15rem); }
}
