:root {
  --lime: #6fd43a;
  --leaf: #1e7a1a;
  --leaf-d: #0f4a10;
  --sun: #fff6b0;
  --yolk: #ffd23f;
  --wood: #8a5428;
  --wood-l: #b9783d;
  --wood-d: #4a2a12;
  --wood-dd: #2b1708;
  --paper: #f8efc9;
  --paper-d: #e8d595;
  --ink: #3a2210;
  --ink-soft: #6a4a2a;
  --cream: #fff3d1;
  --bad: #a8221a;
  --bad-bg: #ffe3dc;
  --good: #1b6b26;
  --good-bg: #e0f6d2;
  --focus: #1a4fd6;
  --font: "Trebuchet MS", "Avenir Next", "Segoe UI", Roboto, system-ui, sans-serif;
  --header-h: 56px;
  --font-title: "Arial Rounded MT Bold", "Avenir Next Condensed", "Trebuchet MS", "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr-h, 60px) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: #35b72c radial-gradient(120% 75% at 50% 0, #fff9b0 0, #c8ee5a 22%, #5fcf36 52%, #2fa526 100%) fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-conic-gradient(from -8deg at 50% -12%, rgba(255, 255, 255, 0.2) 0 7deg, transparent 7deg 16deg);
  -webkit-mask-image: linear-gradient(#000, transparent 72%);
  mask-image: linear-gradient(#000, transparent 72%);
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

img {
  max-width: 100%;
}

a {
  color: #0b4f8a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.skip {
  position: absolute;
  left: 8px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 700;
  transition: top 0.15s;
}

.skip:focus {
  top: 8px;
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus);
}

.title {
  margin: 0 0 0.45em;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.06;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--yolk);
  -webkit-text-stroke: 0.13em var(--wood-dd);
  paint-order: stroke fill;
  text-shadow: 0 0.07em 0 var(--wood-dd), 0 0.14em 0.25em rgba(0, 0, 0, 0.4);
}

.title--sec {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-align: center;
}

.title--card {
  font-size: 1.35rem;
}

.board {
  position: relative;
  padding: clamp(18px, 3vw, 34px);
  color: var(--cream);
  background: linear-gradient(rgba(43, 23, 8, 0.38), rgba(43, 23, 8, 0.38)), var(--wood) url(/img/web/ui/wood.webp) center / cover;
  border: 4px solid var(--wood-dd);
  border-radius: 18px;
  box-shadow: inset 0 0 0 3px rgba(215, 154, 90, 0.35), inset 0 -12px 26px rgba(0, 0, 0, 0.25), 0 6px 0 var(--wood-dd), 0 18px 28px rgba(0, 0, 0, 0.35);
}

.board a {
  color: #ffe9a8;
}

.paper {
  color: var(--ink);
  background: linear-gradient(#fcf5d6, #f0e2ab);
  border: 3px solid #7a4a22;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), 0 4px 0 rgba(43, 23, 8, 0.55), 0 10px 18px rgba(0, 0, 0, 0.22);
}

.frame {
  position: relative;
  margin: 0;
  padding: 8px;
  background: linear-gradient(rgba(43, 23, 8, 0.3), rgba(43, 23, 8, 0.3)), var(--wood) url(/img/web/ui/wood-s.webp) center / cover;
  border: 4px solid var(--wood-dd);
  border-radius: 18px;
  box-shadow: inset 0 0 0 2px rgba(215, 154, 90, 0.4), 0 6px 0 var(--wood-dd), 0 16px 26px rgba(0, 0, 0, 0.35);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 3px solid var(--wood-dd);
}

.tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 2px 12px;
  font: 900 0.85rem var(--font-title);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood-dd);
  background: var(--yolk);
  border: 3px solid var(--wood-dd);
  border-radius: 999px;
  transform: rotate(4deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0.55em 1.35em;
  font: 900 1rem var(--font-title);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 6px rgba(0, 0, 0, 0.35);
  background: linear-gradient(#58bf2b 0, #2a8517 50%, #1f6f12 100%);
  border: 3px solid #0f3d0c;
  border-radius: 12px;
  box-shadow: inset 0 2px 0 rgba(217, 255, 176, 0.65), 0 4px 0 #0f3d0c, 0 9px 14px rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: transform 0.08s, filter 0.15s;
}

.btn:hover {
  filter: brightness(1.1);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px 0 rgba(217, 255, 176, 0.65), 0 1px 0 #0f3d0c;
}

.btn:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 8px var(--focus);
}

.btn[disabled],
.btn[aria-busy="true"] {
  filter: grayscale(0.5) brightness(0.9);
  cursor: progress;
}

.btn--wood {
  background: linear-gradient(#b9783d 0, #8a5428 50%, #6a3b19 100%);
  border-color: var(--wood-dd);
  box-shadow: inset 0 2px 0 rgba(240, 197, 138, 0.6), 0 4px 0 var(--wood-dd), 0 9px 14px rgba(0, 0, 0, 0.32);
}

.btn--danger {
  background: linear-gradient(#e0553d 0, #b02a18 50%, #8c1d10 100%);
  border-color: #4b0c05;
  box-shadow: inset 0 2px 0 rgba(255, 201, 190, 0.6), 0 4px 0 #4b0c05, 0 9px 14px rgba(0, 0, 0, 0.32);
}

.btn--big {
  min-height: 58px;
  padding: 0.7em 1.9em;
  font-size: 1.25rem;
}

.btn--small {
  min-height: 40px;
  padding: 0.3em 0.95em;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font: 900 1rem var(--font-title);
  color: var(--wood-dd);
  background: var(--yolk);
  border: 2px solid var(--wood-dd);
  border-radius: 50%;
}

.zl-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.zl-header {
  position: sticky;
  top: 0;
  z-index: 60;
  flex: none;
  color: var(--cream);
  background: linear-gradient(rgba(43, 23, 8, 0.5), rgba(43, 23, 8, 0.5)), var(--wood-d) url(/img/web/ui/wood-s.webp) center / auto 220%;
  border-bottom: 3px solid var(--wood-l);
  box-shadow: 0 3px 0 var(--wood-dd), 0 8px 18px rgba(0, 0, 0, 0.35);
  container: hdr / inline-size;
}

.zl-header [hidden] {
  display: none !important;
}

.zl-header__in {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1320px;
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 14px;
}

.zl-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  text-decoration: none;
}

.zl-brand__icon {
  border-radius: 9px;
  border: 2px solid var(--wood-dd);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.zl-brand__name {
  font: 900 1.3rem var(--font-title);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--yolk);
  -webkit-text-stroke: 0.14em var(--wood-dd);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 var(--wood-dd);
}

.zl-nav {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
  margin-right: auto;
}

.zl-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--cream);
  text-decoration: none;
  border-radius: 10px;
}

.zl-nav a:hover {
  background: rgba(255, 243, 209, 0.16);
}

.zl-nav a[aria-current="page"] {
  color: var(--wood-dd);
  background: var(--yolk);
  box-shadow: inset 0 -3px 0 rgba(43, 23, 8, 0.22);
}

.zl-nav a[aria-current="page"]:hover {
  background: #ffe27a;
}

.zl-nav svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.zl-nav__txt {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.zl-badge-n {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font: 900 0.72rem/20px var(--font-title);
  text-align: center;
  color: #fff;
  background: var(--bad);
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--wood-dd);
}

.zl-nav .zl-badge-n {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.66rem;
  line-height: 18px;
  white-space: nowrap;
}

.zl-cta {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.zl-cta .btn {
  min-height: 38px;
  white-space: nowrap;
}

.zl-lang,
.zl-account {
  position: relative;
  flex: none;
}

.zl-lang > summary,
.zl-account > summary {
  list-style: none;
  cursor: pointer;
}

.zl-lang > summary::-webkit-details-marker,
.zl-account > summary::-webkit-details-marker {
  display: none;
}

.zl-lang__btn,
.zl-account__btn {
  display: inline-flex;
  align-items: center;
  color: var(--cream);
  background: rgba(43, 23, 8, 0.55);
  border: 2px solid var(--wood-dd);
  border-radius: 999px;
}

.zl-lang__btn:hover,
.zl-account__btn:hover,
.zl-lang[open] .zl-lang__btn,
.zl-account[open] .zl-account__btn {
  background: rgba(255, 243, 209, 0.18);
}

.zl-lang__btn {
  gap: 6px;
  height: 38px;
  padding: 0 11px;
  font: 800 0.8rem var(--font);
  letter-spacing: 0.04em;
}

.zl-lang__btn svg {
  flex: none;
  width: 17px;
  height: 17px;
}

.zl-account__btn {
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 4px;
  font-weight: 800;
  font-size: 0.92rem;
}

.zl-account__btn[aria-current="page"] {
  border-color: var(--yolk);
}

.zl-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  aspect-ratio: 1 / 1;
  font: 900 1rem/1 var(--font-title);
  color: var(--cream);
  background: var(--wood);
  border: 2px solid var(--yolk);
  border-radius: 50%;
}

.zl-avatar--lg {
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
}

.zl-account__name {
  display: none;
  min-width: 0;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zl-account__chev {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}

.zl-account[open] .zl-account__chev {
  transform: rotate(180deg);
}

.zl-menu,
.zl-lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 70;
  margin: 0;
  padding: 6px;
  color: var(--ink);
  background: linear-gradient(#fcf5d6, #f0e2ab);
  border: 3px solid #7a4a22;
  border-radius: 14px;
  box-shadow: 0 8px 0 rgba(43, 23, 8, 0.5), 0 16px 26px rgba(0, 0, 0, 0.35);
}

.zl-menu {
  width: min(310px, calc(100vw - 16px));
  padding: 8px;
}

.zl-lang__menu {
  min-width: 180px;
  list-style: none;
}

.zl-menu__who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 10px;
  margin-bottom: 6px;
  border-bottom: 2px solid rgba(122, 74, 34, 0.25);
}

.zl-menu__id {
  min-width: 0;
}

.zl-menu__id b,
.zl-menu__id span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zl-menu__id span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.zl-menu__list a,
.zl-lang__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 9px;
}

.zl-menu__list a:hover,
.zl-lang__menu a:hover {
  background: rgba(122, 74, 34, 0.14);
}

.zl-menu__list a:focus-visible,
.zl-lang__menu a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
  box-shadow: none;
  background: rgba(122, 74, 34, 0.14);
}

.zl-menu__list svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--wood);
}

.zl-menu__list hr {
  margin: 6px 0;
  border: 0;
  border-top: 2px solid rgba(122, 74, 34, 0.25);
}

.zl-menu__cta {
  color: var(--wood-dd) !important;
  background: var(--yolk);
  margin-bottom: 4px;
}

.zl-menu__cta:hover {
  background: #ffe27a !important;
}

.zl-menu__list .zl-menu__danger,
.zl-menu__list .zl-menu__danger svg {
  color: var(--bad);
}

.zl-menu .zl-badge-n {
  margin-left: auto;
  box-shadow: none;
}

.zl-lang__menu a {
  justify-content: space-between;
  gap: 16px;
}

.zl-lang__menu a[aria-current="true"] {
  color: var(--wood-dd);
  background: var(--yolk);
}

.zl-lang__code {
  font: 800 0.75rem var(--font);
  opacity: 0.7;
}

.zl-hud {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  overflow: hidden;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zl-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 6px;
  color: var(--cream);
  background: linear-gradient(#6a3f1e, #3b2210);
  border: 2px solid #24130a;
  border-radius: 999px;
}

.zl-pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.zl-pill b {
  min-width: 2ch;
  font: 900 0.92rem var(--font-title);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  color: var(--yolk);
}

.zl-ibtn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--cream);
  background: linear-gradient(#8a5428, #5a3112);
  border: 2px solid var(--wood-dd);
  border-radius: 10px;
  box-shadow: inset 0 2px 0 rgba(240, 197, 138, 0.45), 0 2px 0 var(--wood-dd);
  cursor: pointer;
}

.zl-ibtn:hover {
  filter: brightness(1.12);
}

.zl-ibtn svg .mute {
  display: none;
}

.zl-ibtn[aria-pressed="false"] svg .wave {
  display: none;
}

.zl-ibtn[aria-pressed="false"] svg .mute {
  display: inline;
}

.zl-header--game {
  position: relative;
  z-index: 40;
  border-bottom-width: 3px;
}

.zl-header--game .zl-header__in {
  gap: 8px;
  min-height: 52px;
  max-width: none;
  padding-left: max(14px, env(safe-area-inset-left));
  padding-right: max(14px, env(safe-area-inset-right));
}

.zl-header--game .zl-nav {
  display: none;
}

.zl-header--game .zl-nav__txt {
  position: absolute;
}

@container hdr (min-width: 68rem) {
  .zl-header--guest .zl-nav a {
    padding: 0 12px;
  }

  .zl-header--guest .zl-nav__txt {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }
}

@container hdr (min-width: 70rem) {
  .zl-header--user:not(.zl-header--game) .zl-nav a {
    padding: 0 12px;
  }

  .zl-header--user:not(.zl-header--game) .zl-nav__txt {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }

  .zl-header--user:not(.zl-header--game) .zl-nav .zl-badge-n {
    position: static;
    min-width: 20px;
    height: 20px;
    margin-left: 2px;
    padding: 0 6px;
    font-size: 0.72rem;
    line-height: 20px;
  }
}

@container hdr (min-width: 72rem) {
  .zl-header--game .zl-nav {
    display: flex;
  }

  .zl-header--game .zl-menu__narrow {
    display: none;
  }
}

@container hdr (min-width: 85rem) {
  .zl-account__name {
    display: block;
  }
}

@container hdr (max-width: 56rem) {
  .zl-header--game .zl-brand__name {
    display: none;
  }
}

@container hdr (max-width: 44rem) {
  .zl-header--game .zl-hud {
    gap: 4px;
  }

  .zl-header--game .zl-pill {
    gap: 4px;
    height: 30px;
    padding: 0 8px 0 4px;
  }

  .zl-header--game .zl-pill b {
    font-size: 0.85rem;
  }
}

@container hdr (max-width: 46rem) {
  .zl-header:not(.zl-header--game) .zl-header__in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand lang account" "nav nav nav";
    column-gap: 8px;
    row-gap: 0;
    padding: 4px 8px 2px;
  }

  .zl-header--guest:not(.zl-header--game) .zl-header__in {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand brand lang" "nav nav cta";
  }

  .zl-header--guest:not(.zl-header--game) .zl-lang,
  .zl-header--guest:not(.zl-header--game) .zl-cta {
    justify-self: end;
  }

  .zl-header--guest:not(.zl-header--game) .zl-cta .btn {
    padding: 0.3em 0.75em;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }

  .zl-header:not(.zl-header--game) .zl-brand {
    grid-area: brand;
    justify-self: start;
  }

  .zl-header:not(.zl-header--game) .zl-lang {
    grid-area: lang;
  }

  .zl-header:not(.zl-header--game) .zl-account {
    grid-area: account;
  }

  .zl-header:not(.zl-header--game) .zl-cta {
    grid-area: cta;
  }

  .zl-header:not(.zl-header--game) .zl-nav {
    grid-area: nav;
    margin: 0;
  }

  .zl-header--user:not(.zl-header--game) .zl-nav {
    justify-content: space-between;
  }

  .zl-header--user:not(.zl-header--game) .zl-nav a {
    flex: 1 1 0;
  }
}

@container hdr (max-width: 40rem) {
  .zl-header--game #chip-level,
  .zl-header--game #btn-fullscreen {
    display: none;
  }
}

@container hdr (max-width: 31rem) {
  .zl-header--game .zl-header__in {
    gap: 4px;
    min-height: 46px;
    padding-left: max(6px, env(safe-area-inset-left));
    padding-right: max(6px, env(safe-area-inset-right));
  }

  .zl-header--game .zl-brand__icon {
    width: 30px;
    height: 30px;
  }

  .zl-header--game .zl-hud {
    gap: 3px;
  }

  .zl-header--game .zl-ibtn {
    width: 34px;
    height: 34px;
  }

  .zl-header--game .zl-lang__btn {
    height: 34px;
    padding: 0 8px;
    gap: 4px;
  }

  .zl-header--game .zl-account__btn {
    height: 34px;
    padding: 0 3px;
  }

  .zl-header--game .zl-account__chev {
    display: none;
  }

  .zl-header--game .zl-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }

  .zl-header--game .zl-pill {
    gap: 3px;
    height: 28px;
    padding: 0 6px 0 3px;
  }

  .zl-header--game .zl-pill img {
    width: 16px;
    height: 16px;
  }

  .zl-header--game .zl-pill b {
    min-width: 0;
    font-size: 0.78rem;
  }
}

@container hdr (max-width: 21rem) {
  .zl-brand__name {
    display: none;
  }

  .zl-header--game .zl-lang__btn svg {
    display: none;
  }
}

.zl-hud[data-tight] .zl-pill img {
  display: none;
}

.zl-hud[data-tight] .zl-pill {
  padding: 0 7px;
}

.foot {
  margin-top: 48px;
  color: var(--cream);
  background: linear-gradient(rgba(43, 23, 8, 0.55), rgba(43, 23, 8, 0.55)), var(--wood-d) url(/img/web/ui/wood-s.webp) center / auto 220%;
  border-top: 4px solid var(--wood-dd);
}

.foot__in {
  display: grid;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px 34px;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.foot__brand img {
  border-radius: 12px;
  border: 2px solid var(--wood-dd);
}

.foot__brand p,
.foot__small {
  margin: 0;
  font-size: 0.92rem;
}

.foot__small {
  opacity: 0.85;
}

.foot__help {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.foot__help a {
  color: #ffe9a8;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.foot__links a {
  color: #ffe9a8;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
}

.field label,
.field legend {
  font-weight: 800;
  color: var(--ink);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 0.55em 0.85em;
  font: inherit;
  color: var(--ink);
  background: #fffdf3;
  border: 3px solid #7a4a22;
  border-radius: 10px;
  box-shadow: inset 0 3px 0 rgba(122, 74, 34, 0.16);
}

.field input[aria-invalid="true"] {
  border-color: var(--bad);
  background: #fff4f1;
}

.field .hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.field .err {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bad);
}

.pw {
  position: relative;
}

.pw input {
  padding-right: 5.6em !important;
}

.pw__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  min-height: 36px;
  padding: 0 12px;
  font: 800 0.85rem var(--font);
  color: var(--ink);
  background: var(--paper-d);
  border: 2px solid #7a4a22;
  border-radius: 8px;
  transform: translateY(-50%);
  cursor: pointer;
}

.alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-weight: 700;
  border: 3px solid;
  border-radius: 12px;
}

.alert--bad {
  color: var(--bad);
  background: var(--bad-bg);
  border-color: var(--bad);
}

.alert--good {
  color: var(--good);
  background: var(--good-bg);
  border-color: var(--good);
}

.alert--info {
  color: #0b3b66;
  background: #dcecff;
  border-color: #1d5c9c;
}

.policy {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 0.92rem;
}

.policy li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: var(--ink-soft);
}

.policy li::before {
  content: "\25CB";
  flex: none;
  width: 1.1em;
  font-weight: 900;
}

.policy li[data-ok="true"] {
  color: var(--good);
  font-weight: 700;
}

.policy li[data-ok="true"]::before {
  content: "\2714";
}

.policy li[data-ok="false"] {
  color: var(--bad);
}

.policy li[data-ok="false"]::before {
  content: "\2716";
}

.meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.meter i {
  height: 8px;
  background: rgba(122, 74, 34, 0.22);
  border-radius: 4px;
}

.meter[data-score="1"] i:nth-child(-n + 1) {
  background: #d33a28;
}

.meter[data-score="2"] i:nth-child(-n + 2) {
  background: #e08a14;
}

.meter[data-score="3"] i:nth-child(-n + 3) {
  background: #7fb81c;
}

.meter[data-score="4"] i:nth-child(-n + 4) {
  background: #2a9a24;
}

.meter__label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(92vw, 460px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--cream);
  background: var(--wood-d);
  border: 3px solid var(--wood-dd);
  border-radius: 12px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 12px 22px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.toast[data-type="error"] {
  background: #7c1a12;
}

.toast[data-type="success"] {
  background: #1d5a1a;
}

.toast button {
  margin-left: auto;
  min-width: 32px;
  min-height: 32px;
  font-size: 1.2rem;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.spinner {
  width: 1em;
  height: 1em;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  .paper,
  .board,
  .frame {
    border-width: 5px;
  }

  .field input {
    border-color: #000 !important;
  }
}

@media (forced-colors: active) {
  .btn,
  .board,
  .paper,
  .frame {
    border: 3px solid CanvasText;
  }

  .zl-nav a[aria-current="page"] {
    outline: 3px solid CanvasText;
  }

  .zl-pill,
  .zl-lang__btn,
  .zl-account__btn,
  .zl-ibtn {
    border: 2px solid CanvasText;
  }

  .zl-menu,
  .zl-lang__menu {
    border: 3px solid CanvasText;
  }

  .zl-lang__menu a[aria-current="true"] {
    outline: 3px solid CanvasText;
    outline-offset: -3px;
  }
}
