/* Uklad i wyglad klienta: wymiary przeniesione z klienta Robloxa (roblox/src/ClimateGuesserClient.luau). */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: var(--w-regular);
  font-size: 14px;
  line-height: 1.25;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- przyciski */

.btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  font-weight: var(--w-bold);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s ease-out, filter 0.12s ease-out, background-color 0.12s ease-out;
}
.btn:hover:not(:disabled) {
  transform: scale(1.04);
  filter: brightness(1.08);
}
.btn:active:not(:disabled) {
  transform: scale(0.99);
}
.btn:focus-visible,
.switch:focus-visible,
input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
.btn:disabled {
  cursor: default;
}
.btn--outline {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
}
.btn--outline-mint {
  box-shadow: inset 0 0 0 1px var(--mint-deep);
}
.btn--mint {
  background: var(--mint);
  color: var(--ink);
}
.btn--mint-shade {
  background: var(--mint-shade);
  color: var(--mint);
  box-shadow: inset 0 0 0 1px var(--mint-deep);
}
.btn--square {
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
}
.btn--small-text {
  font-size: 14px;
}
.btn--wide {
  width: 100%;
  height: 46px;
  font-size: 15px;
  font-weight: var(--w-black);
}

.eyebrow {
  font-size: 12px;
  font-weight: var(--w-bold);
  color: var(--muted);
  letter-spacing: 0;
}
.eyebrow--small {
  font-size: 11px;
}

.pills {
  display: grid;
  gap: 8px;
}
.pills .btn {
  height: 40px;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
}
.pills .btn.is-active {
  background: var(--mint);
  color: var(--ink);
  box-shadow: none;
}
.pills .btn:disabled:not(.is-active) {
  color: var(--faint);
}
.pills--mode {
  grid-template-columns: repeat(3, 158px);
}
.pills--difficulty {
  grid-template-columns: repeat(4, 116px);
}
.pills--two {
  grid-template-columns: repeat(2, 1fr);
}

/* ---------------------------------------------------------------- glob */

.globe {
  position: absolute;
  inset: 0;
}
.globe .maplibregl-canvas {
  outline: none;
}
.globe .maplibregl-ctrl-attrib {
  background: rgb(17 19 24 / 60%);
  color: var(--faint);
  font: 10px var(--font);
  border-radius: 6px 0 0 0;
}
.globe .maplibregl-ctrl-attrib a {
  color: var(--muted);
}

.globe--menu .maplibregl-marker,
.globe--menu .maplibregl-ctrl-attrib {
  display: none;
}

.pin {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pin, var(--amber));
  box-shadow: 0 0 0 2px #101014, 0 0 0 11px color-mix(in srgb, var(--pin, var(--amber)) 22%, transparent);
  pointer-events: none;
}
.pin__tag {
  position: absolute;
  left: 22px;
  top: -2px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgb(17 19 24 / 78%);
  color: var(--text);
  font-size: 12px;
  font-weight: var(--w-bold);
  line-height: 20px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- menu */

.menu {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 72% 45%, #172033 0%, var(--bg) 62%);
}
.menu__globe {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Przyciemnienie od lewej, zeby tekst menu czytal sie na tle globu. */
.menu__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(17 19 24 / 97%) 0%, rgb(17 19 24 / 78%) 38%, rgb(17 19 24 / 0%) 70%),
    linear-gradient(0deg, rgb(17 19 24 / 90%) 0%, rgb(17 19 24 / 0%) 34%);
}
.menu__stack {
  position: absolute;
  left: 7%;
  top: 50%;
  width: 560px;
  transform: translateY(-50%);
}
.menu__kicker {
  font-size: 14px;
  font-weight: var(--w-bold);
  color: var(--mint);
}
.menu__logo {
  margin: 2px 0 0 -4px;
  font-size: 96px;
  font-weight: var(--w-black);
  line-height: 0.86;
  letter-spacing: -0.01em;
}
.menu__logo span {
  display: block;
  width: fit-content;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.menu__tagline {
  width: 500px;
  margin: 18px 0 20px;
  font-size: 20px;
  color: var(--muted);
}
.menu__stack .eyebrow {
  margin: 0 0 6px;
}
.menu__stack .pills {
  margin-bottom: 14px;
}
.menu__description {
  width: 500px;
  min-height: 40px;
  margin: -6px 0 12px;
  font-size: 14px;
  color: color-mix(in srgb, var(--text) 85%, transparent);
}
.menu__row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.menu__row .btn {
  width: 170px;
  height: 48px;
}
.menu__row--two .btn {
  width: 275px;
}
.menu__row--play {
  gap: 12px;
  margin-bottom: 12px;
}
.menu__row .btn--play {
  width: 364px;
  height: 68px;
  background: linear-gradient(180deg, var(--mint), #51b9a5);
  color: var(--ink);
  font-size: 30px;
  font-weight: var(--w-black);
}
.menu__row .btn--quit {
  width: 184px;
  height: 68px;
  color: var(--coral);
  font-size: 16px;
}
.menu__credits {
  position: absolute;
  left: 7%;
  bottom: 28px;
  font-size: 12px;
  color: var(--faint);
}
/* Wyciszanie: zawsze widoczne w prawym gornym rogu menu. */
.menu__sound {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
}
.menu__sound svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu__sound[aria-pressed="true"] .menu__sound-off,
.menu__sound[aria-pressed="false"] .menu__sound-on {
  display: none;
}
.menu__artist {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}
.menu__artist a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-underline-offset: 3px;
}
.menu__artist a:hover {
  color: var(--mint);
  text-decoration-color: currentColor;
}

/* Okno po prawej: instrukcja, ustawienia, party, wyzwania dnia. */
.menu-panel {
  position: absolute;
  right: 7%;
  top: 50%;
  display: flex;
  flex-direction: column;
  width: 520px;
  max-height: calc(100% - 60px);
  transform: translateY(-50%);
  border-radius: 10px;
  background: rgb(25 28 35 / 96%);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px rgb(0 0 0 / 45%);
}
.menu-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 12px 28px;
}
.menu-panel__head h2 {
  font-size: 24px;
  font-weight: var(--w-black);
}
.menu-panel__head .btn {
  font-size: 16px;
}
.menu-panel__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 6px 28px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.how {
  display: grid;
  gap: 18px;
  margin-bottom: 14px;
  list-style: none;
}
.how li {
  display: flex;
  gap: 16px;
}
.how__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint-shade);
  color: var(--mint);
  font-size: 20px;
  font-weight: var(--w-black);
}
.how h3 {
  font-size: 17px;
  font-weight: var(--w-bold);
}
.how p {
  margin-top: 4px;
  color: var(--muted);
}

.setting {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 14px;
}
.setting--stack {
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.setting h3 {
  font-size: 18px;
  font-weight: var(--w-bold);
}
.setting p {
  margin-top: 6px;
  color: var(--muted);
}
.setting--stack p {
  margin: 0;
}
.switch {
  flex: none;
  position: relative;
  width: 56px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: var(--line);
  cursor: pointer;
  transition: background-color 0.12s ease-out;
}
.switch span {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.12s ease-out;
}
.switch[aria-checked="true"] {
  background: var(--mint);
}
.switch[aria-checked="true"] span {
  transform: translateX(26px);
}
.name-form {
  display: flex;
  gap: 8px;
}
.name-form input,
.join-form input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101217;
  color: var(--text);
  font: inherit;
  font-weight: var(--w-bold);
}
.name-form .btn,
.join-form .btn {
  width: 96px;
  height: 40px;
}

/* ---- zawartosc paneli party i wyzwan dnia (budowana w JS) */

.panel-note {
  color: var(--muted);
}
.panel-note--faint {
  color: var(--faint);
}
.panel-note--amber {
  color: var(--amber);
}
.panel-note--coral {
  color: var(--coral);
}
.panel-heading {
  margin-top: 6px;
  font-size: 11px;
  font-weight: var(--w-bold);
  color: var(--muted);
}
.panel-actions {
  display: flex;
  gap: 10px;
  height: 46px;
}
.panel-actions .btn {
  flex: 1;
  font-size: 15px;
}
.panel-actions .btn--mint {
  font-weight: var(--w-black);
}
.panel-actions .panel-wait {
  flex: 1.5;
  align-self: center;
  color: var(--amber);
  font-weight: var(--w-bold);
}
.panel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 6px 0 12px;
  border-radius: 8px;
  background: var(--panel-strong);
  font-weight: var(--w-bold);
}
.panel-row span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-row .btn {
  flex: none;
  width: 88px;
  height: 28px;
  background: var(--panel);
  font-size: 12px;
}
.panel-row .btn--mint {
  background: var(--mint);
}
.panel-pills {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
}
.panel-pills .btn {
  height: 34px;
  font-size: 13px;
}
.panel-pills .btn.is-active {
  background: var(--mint);
  color: var(--ink);
}
.panel-pills .btn:disabled:not(.is-active) {
  color: var(--faint);
}
.btn--add-bot {
  align-self: flex-start;
  width: 140px;
  height: 34px;
  font-size: 13px;
}
.invite {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 6px 10px 12px;
  border-radius: 8px;
  background: var(--mint-shade);
  box-shadow: inset 0 0 0 1px var(--mint-deep);
}
.invite__code {
  font-size: 22px;
  font-weight: var(--w-black);
  letter-spacing: 0.18em;
  color: var(--mint);
}
.invite__link {
  flex: 1;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invite .btn {
  width: 110px;
  height: 32px;
  font-size: 13px;
}
.join-form {
  display: flex;
  gap: 8px;
}
.join-form input {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.daily-card {
  position: relative;
  padding: 14px 16px 12px;
  border-radius: 10px;
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.daily-card__top {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 78px;
}
.daily-card__title {
  font-size: 12px;
  font-weight: var(--w-bold);
  color: var(--mint);
}
.daily-card__blurb {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}
.daily-card .btn--mint {
  flex: none;
  width: 130px;
  height: 44px;
  font-size: 16px;
  font-weight: var(--w-black);
}
.daily-card__score {
  flex: none;
  width: 140px;
  text-align: right;
}
.daily-card__score strong {
  display: block;
  font-size: 28px;
  font-weight: var(--w-black);
  color: var(--mint);
}
.daily-card__score strong.is-unfinished {
  font-size: 16px;
  color: var(--faint);
}
.daily-card__score span {
  font-size: 11px;
  color: var(--faint);
}
.daily-card ol {
  margin-top: 6px;
  list-style: none;
}
.daily-card li {
  display: flex;
  justify-content: space-between;
  height: 22px;
  font-size: 13px;
}
.daily-card li span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.daily-card li span:last-child {
  color: var(--muted);
  font-weight: var(--w-bold);
}
.daily-card li.is-top span:first-child {
  font-weight: var(--w-bold);
}
.daily-card li.is-mine span {
  color: var(--mint);
}

/* ---------------------------------------------------------------- ekran gry */

.game {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #171d29 0%, var(--bg) 45%);
}
.topbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 16px 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgb(25 28 35 / 85%);
}
.topbar__menu {
  flex: none;
  width: 120px;
  height: 36px;
  font-size: 13px;
}
.topbar__title {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar__brand {
  font-size: 11px;
  font-weight: var(--w-bold);
  color: var(--mint);
}
.topbar__city {
  overflow: hidden;
  font-size: 26px;
  font-weight: var(--w-black);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar__right {
  flex: none;
  display: flex;
  gap: 12px;
}
.topbar__edu {
  width: 180px;
  height: 36px;
}
.topbar__edu.is-on {
  background: var(--mint-shade);
  color: var(--mint);
}
.topbar__new {
  width: 168px;
  height: 36px;
}
.topbar__sound {
  width: 120px;
  height: 36px;
}
.chip {
  display: flex;
  align-items: center;
  height: 36px;
  border-radius: 10px;
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
  font-weight: var(--w-bold);
}
.chip--game {
  width: 170px;
  padding: 0 8px 0 12px;
  font-size: 16px;
}
.chip__label {
  width: 50px;
  font-size: 11px;
  color: var(--muted);
}
.chip__round {
  width: 44px;
}
.chip__score {
  flex: 1;
  color: var(--mint);
  text-align: right;
}
.chip--difficulty {
  justify-content: center;
  width: 160px;
}

.body {
  flex: 1;
  display: grid;
  grid-template-columns: 276px 470px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding: 12px 14px;
}

/* ---- lewa kolumna */

.guess {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.readout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 72px;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #101217;
  box-shadow: inset 0 0 0 1px var(--line);
}
.readout__kicker {
  font-size: 11px;
  font-weight: var(--w-bold);
  color: var(--muted);
}
.readout__value {
  font-size: 17px;
  font-weight: var(--w-bold);
  color: var(--faint);
  white-space: pre-line;
}
.readout.is-set {
  background: var(--mint-shade);
  box-shadow: inset 0 0 0 1px var(--mint);
}
.readout.is-set .readout__value {
  color: var(--text);
}
.guess__hint {
  min-height: 32px;
  margin: 6px 0 4px;
  font-size: 12px;
  color: var(--amber);
}
.btn--guess {
  flex: none;
  height: 46px;
  font-size: 16px;
  font-weight: var(--w-black);
  background: var(--mint);
  color: var(--ink);
}
.btn--guess:disabled {
  background: var(--panel-strong);
  color: var(--faint);
}
.score {
  margin-top: 14px;
}
.score__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  margin-bottom: 0;
}
.score__row + .score__row {
  padding-top: 0;
}
.score__title {
  font-size: 11px;
  font-weight: var(--w-bold);
  color: var(--muted);
}
.score__value {
  font-size: 20px;
  font-weight: var(--w-bold);
}
.score__row--total .score__title {
  color: var(--text);
}
.score__row--total .score__value {
  font-size: 28px;
  font-weight: var(--w-black);
  color: var(--mint);
}
.btn--again {
  flex: none;
  height: 46px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: var(--w-black);
}

.hud {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 96px;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
.hud__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 22px;
  padding: 0 2px;
}
.hud__timer {
  font-size: 15px;
  font-weight: var(--w-black);
  color: var(--amber);
}
.hud__timer.is-urgent {
  color: var(--coral);
}
.hud__rows {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-top: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.hud__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px 0 8px;
  border-radius: 6px;
  background: var(--panel-strong);
  font-size: 13px;
  font-weight: var(--w-bold);
}
.hud__row--duel {
  height: 40px;
  padding-bottom: 10px;
}
.hud__swatch {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hud__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hud__status {
  flex: none;
  font-size: 12px;
}
.hud__hp {
  position: absolute;
  left: 24px;
  right: 10px;
  bottom: 6px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
}
.hud__hp span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--mint);
}
.hud__hp span.is-low {
  background: var(--coral);
}

/* ---- srodkowa kolumna */

.charts {
  min-height: 0;
}
.charts__pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.intro {
  display: grid;
  place-items: center;
  height: 150px;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
  color: var(--muted);
  font-size: 16px;
  font-weight: var(--w-bold);
}
.chart-card text {
  font-family: var(--font);
}

/* ---- prawa kolumna */

.mapside {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.result-head {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 220px);
  height: 62px;
}
.result-head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.result-head__value {
  font-size: 28px;
  font-weight: var(--w-black);
  line-height: 1.2;
}
.result-head__value--mint {
  color: var(--mint);
}
.result-head__value--amber {
  color: var(--amber);
}
.result-head__value--coral {
  color: var(--coral);
}
.mapside__row {
  position: relative;
  flex: 1;
  display: flex;
  gap: 12px;
  min-height: 0;
}
.map-shell {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 45%, #141c2c 0%, #0a0c10 75%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
}
.map-host {
  position: absolute;
  inset: 0;
}
.map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  gap: 4px;
}
.mapside__legend {
  flex: none;
  height: 20px;
  margin-top: 6px;
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edu {
  flex: none;
  width: 400px;
  overflow-y: auto;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent);
  font-size: 13px;
  line-height: 1.4;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.edu__kicker {
  font-size: 11px;
  font-weight: var(--w-bold);
  color: var(--mint);
}
.edu__place {
  margin: 6px 0 8px;
  font-size: 20px;
  font-weight: var(--w-black);
  line-height: 1.2;
}
.edu__code {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.edu__code strong {
  flex: none;
  width: 72px;
  font-size: 28px;
  font-weight: var(--w-black);
  line-height: 1.2;
  color: var(--coral);
}
.edu__code span {
  padding-top: 4px;
  font-size: 14px;
  font-weight: var(--w-bold);
}
.edu__section {
  margin: 16px 0 8px;
  font-size: 11px;
  font-weight: var(--w-bold);
  color: var(--muted);
}
.edu__letter {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}
.edu__letter b {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--mint-shade);
  color: var(--mint);
  font-size: 15px;
  font-weight: var(--w-black);
}
.edu__letter span {
  padding-top: 3px;
}
.edu ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.edu li {
  position: relative;
  padding-left: 16px;
}
.edu li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.edu__guess {
  color: var(--muted);
}

/* ---- podsumowanie partii */

.summary {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100% - 24px));
  height: min(500px, calc(100% - 24px));
  padding: 18px 24px 20px;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px rgb(0 0 0 / 50%);
}
.summary__kicker {
  font-size: 11px;
  font-weight: var(--w-bold);
  color: var(--mint);
}
.summary__title {
  margin: 2px 0 10px;
  font-size: 22px;
  font-weight: var(--w-black);
}
.summary__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 52px;
}
.summary__metrics span {
  display: block;
  font-size: 10px;
  font-weight: var(--w-bold);
  color: var(--muted);
}
.summary__metrics strong {
  font-size: 26px;
  font-weight: var(--w-black);
}
.summary__metrics div:first-child strong {
  color: var(--mint);
}
.summary__hint {
  height: 16px;
  margin: 4px 0 6px;
  font-size: 12px;
  color: var(--amber);
}
.summary__rounds {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.summary__round {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 5px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.summary__round:hover {
  filter: brightness(1.12);
}
.summary__round.is-selected {
  background: var(--mint-shade);
  box-shadow: inset 0 0 0 1px var(--mint);
}
.summary__round div {
  flex: 1;
  min-width: 0;
}
.summary__round b,
.summary__round small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.summary__round b {
  font-size: 13px;
  font-weight: var(--w-bold);
}
.summary__round small {
  font-size: 12px;
  color: var(--muted);
}
.summary__round strong {
  font-size: 18px;
  font-weight: var(--w-black);
  color: var(--mint);
}
.summary__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.summary__actions .btn {
  height: 44px;
  font-size: 16px;
}
.summary__actions .btn--mint {
  font-weight: var(--w-black);
}

/* ---------------------------------------------------------------- samouczek */

.tutorial {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
.tutorial__shade {
  position: absolute;
  background: rgb(0 0 0 / 62%);
  pointer-events: auto;
}
.tutorial__spotlight {
  position: absolute;
  border: 2px solid var(--mint);
  border-radius: 12px;
}
.coach {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 380px;
  min-height: 196px;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px rgb(0 0 0 / 50%);
  pointer-events: auto;
}
.coach__step {
  font-size: 11px;
  font-weight: var(--w-bold);
  color: var(--mint);
}
.coach__title {
  margin: 4px 0 6px;
  font-size: 19px;
  font-weight: var(--w-black);
}
.coach__body {
  flex: 1;
  color: var(--muted);
}
.coach__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.coach__actions .btn {
  width: 120px;
  height: 36px;
}
.coach__actions .btn--outline {
  width: 130px;
  font-size: 13px;
}
.coach__wait {
  color: var(--amber);
  font-size: 13px;
  font-weight: var(--w-bold);
}

/* ---------------------------------------------------------------- komunikaty i przejscia */

.toasts {
  position: absolute;
  left: 50%;
  top: 76px;
  z-index: 40;
  display: grid;
  gap: 8px;
  width: min(460px, calc(100% - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px var(--mint-deep), 0 12px 30px rgb(0 0 0 / 45%);
  font-weight: var(--w-bold);
  pointer-events: auto;
}
.toast__actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.toast__actions .btn {
  width: 130px;
  height: 32px;
  background: var(--panel);
  font-size: 13px;
}
.toast__actions .btn:first-child {
  background: var(--mint);
  color: var(--ink);
}

.fade {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}
.fade.is-dark {
  opacity: 1;
  pointer-events: auto;
}
.fade.is-lightening {
  transition: opacity 0.32s ease-in;
}

.blocker {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgb(10 12 16 / 82%);
}
.blocker__card {
  width: min(420px, calc(100% - 32px));
  padding: 24px;
  border-radius: 10px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.blocker__card h2 {
  font-size: 22px;
  font-weight: var(--w-black);
}
.blocker__card p {
  margin: 8px 0 18px;
  color: var(--muted);
}
.blocker__card .btn {
  width: 100%;
  height: 46px;
  font-size: 16px;
  font-weight: var(--w-black);
}

/* ---------------------------------------------------------------- wezsze okna */

@media (max-width: 1420px) {
  .topbar__edu {
    width: 150px;
  }
  .chip--difficulty {
    width: 130px;
  }
  .topbar__new {
    width: 120px;
  }
  .body {
    grid-template-columns: 250px 400px minmax(0, 1fr);
  }
  .edu {
    width: 320px;
  }
  .result-head {
    grid-template-columns: repeat(3, minmax(0, 200px));
  }
}

@media (max-height: 760px) {
  .menu__logo {
    font-size: 72px;
  }
  .menu__tagline {
    margin: 12px 0 14px;
    font-size: 17px;
  }
  .menu__row .btn--play,
  .menu__row .btn--quit {
    height: 56px;
  }
  .menu__credits {
    bottom: 12px;
  }
  .score__row {
    height: 40px;
    padding-bottom: 8px;
  }
}

/* Tablet i telefon: jedna kolumna, mapa na gorze, calosc przewijana. */
@media (max-width: 1100px) {
  body {
    overflow: auto;
  }
  .menu,
  .game {
    position: relative;
    min-height: 100%;
  }
  .menu {
    padding: 32px 20px 72px;
  }
  .menu__sound {
    top: 12px;
    right: 12px;
  }
  .menu__stack,
  .menu-panel {
    position: relative;
    inset: auto;
    z-index: 1;
    width: min(560px, 100%);
    max-height: none;
    margin: 0 auto;
    transform: none;
  }
  .menu__globe {
    opacity: 0.45;
  }
  .menu-panel {
    margin-top: 20px;
  }
  .menu__logo {
    font-size: clamp(54px, 15vw, 96px);
  }
  .menu__tagline,
  .menu__description {
    width: auto;
  }
  .pills--mode,
  .pills--difficulty {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
  .menu__row {
    flex-wrap: wrap;
  }
  .menu__row .btn {
    flex: 1 1 150px;
    width: auto;
  }
  .menu__credits {
    position: relative;
    inset: auto;
    z-index: 1;
    width: min(560px, 100%);
    margin: 20px auto 0;
  }
  .topbar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 12px;
  }
  .topbar__right {
    flex-wrap: wrap;
    width: 100%;
  }
  .topbar__edu,
  .topbar__new,
  .chip--game,
  .chip--difficulty {
    flex: 1 1 130px;
    width: auto;
  }
  .body {
    display: flex;
    flex-direction: column;
  }
  .mapside {
    order: -1;
  }
  .mapside__row {
    flex: none;
    flex-direction: column;
  }
  .map-shell {
    flex: none;
    height: 58vh;
    min-height: 320px;
  }
  .edu {
    width: auto;
    max-height: 60vh;
  }
  .result-head {
    grid-template-columns: repeat(3, 1fr);
  }
  .result-head__value {
    font-size: 22px;
  }
  .mapside__legend {
    height: auto;
    white-space: normal;
  }
  .charts__pane {
    height: auto;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .switch,
  .switch span,
  .fade {
    transition: none;
  }
}
