@font-face {
  font-family: 'Fraunces';
  src: local('Fraunces');
}

:root {
  --ink: #0E2318;
  --ink-soft: #4A5C4F;
  --paper: #F6F8F2;
  --card: #ECF1E4;
  --card-hover: #E2EAD8;
  --line: #D8E3D0;
  --green-deep: #0B6B39;
  --green-mid: #1E9450;
  --green-bright: #7ED957;
  --white: #FFFFFF;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --sidebar-w: 236px;
  --ease: cubic-bezier(.22, .68, 0, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Shell ---------- */

.shell {
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.sidebar {
  background: var(--ink);
  color: #DCE8DF;
  padding: 22px 14px 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 22px;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand span {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--white);
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
}

.nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6C8172;
  padding: 6px 12px 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: #B9CBBB;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

.nav-link .icon { font-size: 17px; color: #6C8172; transition: color 0.18s var(--ease); }

.nav-link:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  transform: translateX(2px);
}
.nav-link:hover .icon { color: var(--green-bright); }

.nav-link.active {
  background: var(--green-deep);
  color: var(--white);
}
.nav-link.active .icon { color: var(--green-bright); }

.sidebar-spacer { flex: 1; }

.nav-foot {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link.logout { color: #E6A2A2; }
.nav-link.logout .icon { color: #C97676; }
.nav-link.logout:hover { background: rgba(210,90,90,0.12); color: #FFC9C9; }
.nav-link.logout:hover .icon { color: #FFC9C9; }

/* ---------- Main ---------- */

.main {
  margin-left: var(--sidebar-w);
  padding: 26px 40px 60px;
  max-width: calc(1240px + var(--sidebar-w));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  width: 280px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.search:focus-within { border-color: var(--green-mid); background: var(--white); }
.search input {
  border: none; background: transparent; outline: none;
  font: inherit; color: var(--ink); width: 100%;
}
.search .icon { font-size: 16px; color: var(--ink-soft); flex-shrink: 0; }

.section-search {
  width: 100%;
  max-width: 340px;
  margin-bottom: 16px;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-title img { width: 22px; height: 22px; border-radius: 6px; }
.topbar-title span {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease);
}

.btn-primary {
  background: var(--green-deep);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(11,107,57,0.2);
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--green-mid); color: var(--green-deep); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
}
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-deep); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 13px;
}
.user-chip .bal { font-weight: 600; font-size: 14px; }
.user-chip .bal small { color: var(--ink-soft); font-weight: 500; margin-right: 3px; }

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

/* ---------- Sections ---------- */

.section {
  margin-bottom: 46px;
}

.hero {
  position: relative;
  background: var(--green-deep);
  background-image: url('../assets/hero-pattern.svg');
  background-size: 140px 140px;
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  margin-bottom: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-text h1 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 8px;
  max-width: 30ch;
}

.hero-text p {
  color: #C9E4D3;
  font-size: 14.5px;
  margin: 0;
  max-width: 42ch;
}

.hero-mark {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  opacity: 0.9;
}
.hero-mark img { width: 100%; height: 100%; }

.section-sub {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin: -12px 0 16px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-nav {
  display: flex;
  gap: 8px;
}

.round-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.16s var(--ease);
}
.round-btn:hover { border-color: var(--green-mid); color: var(--green-deep); transform: translateY(-1px); }
.round-btn .icon { font-size: 15px; }
.round-btn.prev .icon { transform: rotate(180deg); }
.round-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.round-btn:disabled:hover { transform: none; }

/* ---------- Game grid ---------- */

.grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.grid::-webkit-scrollbar { display: none; }

.tile {
  position: relative;
  flex: 0 0 260px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.1;
  background: var(--card);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.6s var(--ease) forwards;
  border: 1px solid rgba(11,35,20,0.06);
  box-shadow: 0 8px 20px -16px rgba(11,35,20,0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -14px rgba(11,35,20,0.35);
}

.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.tile img.bleed { transform: scale(1.08); }
.tile:hover img.bleed { transform: scale(1.12); }
.tile:hover img { transform: scale(1.04); }

.tile-label {
  position: absolute;
  z-index: 1;
  left: 16px; bottom: 14px;
  right: 12px;
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-tag {
  position: absolute;
  z-index: 1;
  top: 12px; right: 12px;
  background: rgba(14,35,24,0.55);
  backdrop-filter: blur(4px);
  color: var(--green-bright);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,35,22,0.68) 0%, rgba(11,35,22,0) 46%);
  pointer-events: none;
}

.tile.locked img { opacity: 0.62; filter: saturate(0.85); }
.tile.locked .tile-label { color: rgba(255,255,255,0.88); font-weight: 600; font-family: 'Schibsted Grotesk', sans-serif; font-size: 14px; }

.grid .tile:nth-child(1) { animation-delay: 0.02s; }
.grid .tile:nth-child(2) { animation-delay: 0.08s; }
.grid .tile:nth-child(3) { animation-delay: 0.14s; }
.grid .tile:nth-child(4) { animation-delay: 0.2s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .tile { flex-basis: 220px; }
  .search { width: 200px; }
}

@media (max-width: 720px) {
  :root { --sidebar-w: 200px; }
  .sidebar { padding: 18px 10px 16px; }
  .nav-link { padding: 9px 10px; font-size: 13.5px; gap: 10px; }
  .brand span { font-size: 17px; }
  .main { padding: 18px 16px 40px; }
  .grid { gap: 10px; }
  .tile { flex-basis: 200px; }
  .topbar { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 520px) {
  :root { --sidebar-w: 148px; }
  .sidebar { padding: 14px 8px; }
  .nav-link { font-size: 12.5px; padding: 8px; }
  .brand { padding: 2px 6px 16px; gap: 7px; }
  .brand span { font-size: 15px; }
  .brand img { width: 24px; height: 24px; }
  .main { padding: 14px 10px 32px; }
  .grid { gap: 8px; }
  .tile { flex-basis: 160px; border-radius: 14px; }
  .tile-label { font-size: 13px; left: 10px; bottom: 10px; right: 8px; }
  .section-head h2 { font-size: 18px; }
}

/* ---------- Settings ---------- */

.view[hidden] { display: none; }

.settings-wrap {
  max-width: 620px;
}

.settings-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 18px;
}

.settings-section h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 4px;
}

.settings-desc {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0 0 18px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.settings-row:first-of-type { border-top: none; padding-top: 0; }

.settings-row-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-row-label .title { font-weight: 600; font-size: 14.5px; }
.settings-row-label .sub { font-size: 12.5px; color: var(--ink-soft); }

/* Toggle switch */

.switch {
  position: relative;
  width: 42px;
  height: 25px;
  flex-shrink: 0;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.switch .track {
  position: absolute;
  inset: 0;
  background: #CBD8C7;
  border-radius: 999px;
  transition: background 0.18s var(--ease);
}
.switch .thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 19px; height: 19px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.18s var(--ease);
}
.switch input:checked + .track { background: var(--green-deep); }
.switch input:checked + .track .thumb { transform: translateX(17px); }
.switch input:focus-visible + .track { outline: 2px solid var(--green-mid); outline-offset: 2px; }

/* Range slider */

input[type="range"].volume {
  -webkit-appearance: none;
  appearance: none;
  width: 160px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
}
input[type="range"].volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--green-deep);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
input[type="range"].volume::-moz-range-thumb {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--green-deep);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Select */

.select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}
.select:focus { border-color: var(--green-mid); }

/* Reduced motion opt-in from Settings */

body.reduce-motion .tile {
  opacity: 1;
  transform: none;
  animation: none;
}
body.reduce-motion .tile:hover {
  transform: none;
  box-shadow: none;
}
body.reduce-motion .tile img,
body.reduce-motion .tile:hover img {
  transform: none;
}

/* ---------- Toasts ---------- */

.gf-toast-stack {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}

.gf-toast {
  background: var(--ink);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 14px 32px -12px rgba(11,35,20,0.5);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.gf-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand img { width: 18px; height: 18px; border-radius: 5px; }
.footer-brand span {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  font-size: 13px;
  color: var(--ink-soft);
  transition: color 0.16s var(--ease);
}
.footer-links a:hover { color: var(--green-deep); }

.footer-note {
  width: 100%;
  font-size: 12px;
  color: #8CA090;
  margin: 4px 0 0;
}

@media (max-width: 720px) {
  .hero { flex-direction: column; align-items: flex-start; padding: 24px; }
  .hero-mark { width: 44px; height: 44px; }
  .hero-text h1 { font-size: 21px; }
}

/* ---------- Towers ---------- */

.towers-wrap {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.towers-panel {
  flex: 0 0 300px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.towers-panel h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 8px;
}

.towers-sub {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin: 0 0 22px;
  line-height: 1.5;
}

.towers-field { margin-bottom: 18px; }
.towers-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.seg {
  display: flex;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.seg-btn.active { background: var(--green-deep); color: var(--white); }
.seg-btn:disabled { cursor: default; }

.towers-diff-note {
  margin: 8px 2px 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.towers-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 13px;
  font: inherit;
  font-size: 14px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}
.towers-input:focus { border-color: var(--green-mid); }
.towers-input:disabled { opacity: 0.6; }

.towers-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.towers-balance strong {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  color: var(--ink);
}

.towers-action {
  width: 100%;
  padding: 13px 0;
}
.towers-action:disabled { opacity: 0.5; cursor: default; transform: none; }

.towers-status {
  min-height: 18px;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.towers-status.good { color: var(--green-deep); }
.towers-status.bad { color: #B4453F; }

.towers-rtp {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: #8CA090;
  line-height: 1.5;
}

.towers-board-wrap {
  flex: 1 1 420px;
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.towers-ladder {
  flex: 0 0 84px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ladder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
}
.ladder-row .ladder-level { font-weight: 600; }
.ladder-row .ladder-mult { font-family: 'Fraunces', serif; font-weight: 700; }
.ladder-row.past { opacity: 0.55; }
.ladder-row.current {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
}
.ladder-row.current .ladder-mult { color: var(--green-bright); }

.towers-board {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
}

.tw-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.tw-tile {
  flex: 0 0 168px;
  height: 58px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(11,35,20,0.035);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  transition: transform 0.14s var(--ease), background 0.14s var(--ease), border-color 0.14s var(--ease), box-shadow 0.14s var(--ease);
}
.tw-tile .icon { font-size: 19px; }

.tw-tile.locked {
  color: transparent;
  cursor: default;
}

.tw-tile.active {
  background: var(--white);
  border-color: var(--green-mid);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(30,148,80,0.12);
  animation: tw-pop-in 0.32s var(--ease) both;
}
.tw-row .tw-tile.active:nth-child(1) { animation-delay: 0s; }
.tw-row .tw-tile.active:nth-child(2) { animation-delay: 0.05s; }
.tw-row .tw-tile.active:nth-child(3) { animation-delay: 0.1s; }

.tw-tile.active:hover {
  background: var(--green-deep);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px rgba(11,35,20,0.4);
}
.tw-tile.active:active { transform: translateY(-1px); }

.tw-tile.resolved { cursor: default; }
.tw-tile.safe {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
}
.tw-tile.safe.dim {
  background: transparent;
  border: 1px dashed var(--green-mid);
  color: var(--green-mid);
}
.tw-tile.mine {
  background: var(--ink);
  border-color: var(--ink);
  color: #EFC15C;
}

.tw-tile.reveal-safe { animation: tw-reveal-safe 0.42s var(--ease) both; }
.tw-tile.reveal-mine { animation: tw-reveal-mine 0.5s ease both; }

@keyframes tw-pop-in {
  from { opacity: 0; transform: scale(0.86) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes tw-reveal-safe {
  0% { opacity: 0.4; transform: scale(0.7) rotate(-8deg); background: rgba(11,35,20,0.035); }
  55% { opacity: 1; transform: scale(1.1) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes tw-reveal-mine {
  0% { transform: translateX(0) scale(0.9); }
  15% { transform: translateX(-6px) scale(1.02); }
  35% { transform: translateX(6px); }
  55% { transform: translateX(-4px); }
  75% { transform: translateX(3px); }
  100% { transform: translateX(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .tw-tile.active,
  .tw-tile.reveal-safe,
  .tw-tile.reveal-mine {
    animation: none;
  }
}

@media (max-width: 720px) {
  .towers-panel { flex-basis: 100%; }
  .towers-board-wrap { flex-basis: 100%; padding: 14px; gap: 10px; }
  .towers-ladder { flex-basis: 64px; }
  .ladder-row { padding: 6px 8px; font-size: 11px; }
  .tw-tile { flex-basis: 118px; height: 46px; }
  .tw-tile .icon { font-size: 15px; }
}

@media (max-width: 400px) {
  .tw-tile { flex-basis: 86px; height: 40px; border-radius: 9px; }
  .tw-row { gap: 6px; }
}
