@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800;900&family=Source+Serif+4:wght@400;600;700;800&display=swap");

:root {
  color-scheme: light;
  --surface: #f4eee4;
  --cream: #f7f1e7;
  --card: #fffaf1;
  --ink: #23201a;
  --muted: #817765;
  --faint: #b4aa96;
  --line: #ded4c1;
  --line-strong: #c7baa3;
  --land: #ded5c4;
  --amber: #dda01f;
  --amber-soft: #f6c244;
  --route: #caa15a;
  --green: #3f8a52;
  --warm: #d98a2b;
  --red: #b95643;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--surface);
}

body {
  color: var(--ink);
  overflow: hidden;
}

button {
  font: inherit;
}

h1,
h2,
p {
  margin-top: 0;
}

.app-shell,
.game-panel {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--surface);
}

.topbar {
  position: absolute;
  z-index: 5;
  top: 1.05rem;
  right: 1.75rem;
  left: 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
  pointer-events: none;
}

.brand-lockup {
  position: absolute;
  top: 0;
  left: 50%;
  justify-self: center;
  text-align: center;
  line-height: 1;
  transform: translate(-50%, -0.08rem);
}

h1 {
  margin-bottom: 0.22rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.36rem, 1.78vw, 1.68rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.54rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.label {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.nav-link {
  justify-self: start;
  min-height: auto;
  border: 0;
  padding: 0;
  color: rgba(35, 32, 26, 0.92);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.daily-chip {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0.36rem 0.42rem 0.36rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 1px 2px rgba(60, 50, 30, 0.05);
  pointer-events: auto;
}

.daily-chip span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.daily-chip strong {
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  color: var(--ink);
  background: var(--cream);
  font-size: 0.72rem;
  font-weight: 800;
}

.header-actions {
  position: absolute;
  z-index: 5;
  top: 0.72rem;
  right: 1.75rem;
  display: grid;
  justify-items: end;
  gap: 0.36rem;
  pointer-events: none;
}

.daily-games-switcher {
  display: none;
}

.profile-link {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: rgba(35, 32, 26, 0.62);
  background: transparent;
  text-decoration: none;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
  transition:
    color 150ms ease,
    opacity 150ms ease;
}

.profile-link:hover {
  color: var(--ink);
  opacity: 0.9;
}

.profile-link svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-strip {
  display: flex;
  gap: 0.36rem;
  pointer-events: none;
}

.status-strip div {
  min-width: 4.55rem;
  padding: 0.42rem 0.58rem 0.48rem;
  border: 1px solid rgba(202, 189, 166, 0.62);
  border-radius: 4px;
  background: rgba(255, 250, 241, 0.56);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.48) inset;
  backdrop-filter: blur(3px);
}

.status-strip strong {
  display: block;
  margin-top: 0.18rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.34rem;
  font-weight: 700;
  line-height: 0.95;
}

.more-games {
  position: absolute;
  z-index: 5;
  top: 5.1rem;
  left: 1.75rem;
  width: 11.6rem;
  max-height: calc(100vh - 8rem);
  overflow: hidden;
  color: var(--ink);
  pointer-events: auto;
}

.more-games::before {
  display: block;
  width: 8.95rem;
  border-top: 1px solid rgba(188, 175, 151, 0.42);
  content: "";
}

.more-games h2 {
  margin: 0;
  padding: 0.58rem 0 0.36rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.game-link {
  position: relative;
  display: grid;
  gap: 0.04rem;
  padding: 0.42rem 0;
  color: inherit;
  text-decoration: none;
}

.game-link::after {
  position: absolute;
  right: 2.65rem;
  bottom: 0;
  left: 0;
  border-bottom: 1px solid rgba(188, 175, 151, 0.28);
  content: "";
}

.game-link span {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.08;
}

.game-link small {
  color: rgba(129, 119, 101, 0.86);
  font-size: 0.58rem;
  font-weight: 720;
  line-height: 1.2;
}

.game-link:hover span {
  color: var(--amber);
}

.map-wrap {
  position: absolute;
  inset: 0;
  background: var(--surface);
}

.map-wrap::before {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 16.5rem;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(247, 241, 231, 0.98) 0%,
    rgba(247, 241, 231, 0.94) 68%,
    rgba(247, 241, 231, 0) 100%
  );
}

.map-wrap::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.5) 0%, rgba(255, 251, 243, 0.08) 18%, rgba(255, 251, 243, 0) 68%, rgba(190, 176, 148, 0.18) 100%),
    radial-gradient(120% 90% at 50% 34%, rgba(255, 251, 243, 0) 56%, rgba(185, 171, 143, 0.2) 100%),
    repeating-linear-gradient(115deg, rgba(92, 82, 64, 0.018) 0 1px, transparent 1px 7px);
  mix-blend-mode: multiply;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.map-badge {
  display: none;
}

.map-toast {
  position: absolute;
  z-index: 4;
  top: 3.78rem;
  left: 50%;
  width: min(32rem, calc(100vw - 33rem));
  min-width: 20rem;
  border: 0;
  border-top: 1px solid rgba(188, 175, 151, 0.56);
  border-bottom: 1px solid rgba(188, 175, 151, 0.32);
  padding: 0.52rem 0 0.56rem;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(247, 241, 231, 0), rgba(247, 241, 231, 0.66) 16%, rgba(247, 241, 231, 0.66) 84%, rgba(247, 241, 231, 0));
  box-shadow: none;
  font-family: var(--serif);
  font-size: clamp(0.9rem, 1.14vw, 1.12rem);
  font-weight: 600;
  line-height: 1.24;
  transform: translateX(-50%);
}

.airport-popover {
  position: absolute;
  z-index: 8;
  width: min(15rem, calc(100vw - 1.5rem));
  border: 1px solid rgba(160, 146, 120, 0.44);
  border-radius: 6px;
  padding: 0.68rem 0.78rem 0.72rem;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 10px 30px rgba(74, 60, 36, 0.15);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.airport-popover::before {
  position: absolute;
  bottom: -0.38rem;
  left: 1rem;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1px solid rgba(160, 146, 120, 0.44);
  border-bottom: 1px solid rgba(160, 146, 120, 0.44);
  background: rgba(255, 250, 241, 0.94);
  content: "";
  transform: rotate(45deg);
}

.airport-popover__meta {
  margin-bottom: 0.26rem;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.airport-popover strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.12;
}

.airport-popover span {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.airport-popover__hint {
  display: flex !important;
  align-items: center;
  gap: 0.34rem;
  color: rgba(35, 32, 26, 0.86) !important;
  font-size: 0.66rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.airport-popover__hint .direction-arrow {
  flex: 0 0 auto;
}

.controls {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 7rem;
  width: min(38rem, calc(100vw - 31rem));
  min-width: 23rem;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: translateX(-50%);
}

.has-ads .controls {
  bottom: 9.35rem;
}

.adhesion-ad {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.4rem;
  border-top: 1px solid rgba(210, 200, 180, 0.5);
  color: rgba(138, 129, 112, 0.72);
  background: rgba(250, 246, 238, 0.82);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.guess-form {
  display: grid;
  gap: 0.42rem;
  padding: 0.44rem 0;
  background: linear-gradient(90deg, rgba(247, 241, 231, 0), rgba(247, 241, 231, 0.34) 20%, rgba(247, 241, 231, 0.34) 80%, rgba(247, 241, 231, 0));
}

.guess-form label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guess-form label::after {
  display: none;
  content: none;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.45rem;
  gap: 0.42rem;
}

.guess-input-wrap {
  position: relative;
  min-width: 0;
}

.guess-entry {
  width: 100%;
  min-width: 0;
  height: 2.38rem;
  border: 1.4px solid rgba(35, 32, 26, 0.95);
  border-radius: 8px;
  padding: 0.5rem 0.68rem;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--serif);
  font-size: 0.84rem;
  line-height: 1.2;
  outline: none;
  overflow: hidden;
  white-space: nowrap;
}

.guess-entry:empty::before {
  content: attr(data-placeholder);
  color: var(--faint);
  pointer-events: none;
}

.guess-entry:focus {
  box-shadow: 0 0 0 3px rgba(234, 164, 0, 0.18);
}

.guess-entry.is-invalid {
  border-color: #b84a34;
  animation: invalid-guess 180ms ease-in-out 2;
  box-shadow: 0 0 0 3px rgba(184, 74, 52, 0.16);
}

@keyframes invalid-guess {
  0%,
  100% {
    transform: translateX(0);
  }

  35% {
    transform: translateX(-3px);
  }

  70% {
    transform: translateX(3px);
  }
}

.suggestion-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  left: 0;
  z-index: 12;
  max-height: 17rem;
  overflow: auto;
  border: 1px solid rgba(228, 221, 205, 0.95);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 14px 34px rgba(70, 55, 30, 0.18);
}

.suggestion-option {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0.68rem 0.82rem;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.suggestion-option + .suggestion-option {
  border-top: 1px solid var(--line);
}

.suggestion-option:hover,
.suggestion-option.is-active {
  background: var(--cream);
}

.suggestion-code {
  min-width: 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
}

.suggestion-details {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.suggestion-city {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-name {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button {
  min-height: 2.38rem;
  border: 0;
  border-radius: 8px;
  padding: 0 1.2rem;
  color: var(--cream);
  background: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.guess-form button {
  width: 100%;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.icon-button {
  width: 100%;
  margin-top: 0.65rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
}

.icon-button:disabled {
  display: none;
}

.is-solved .controls {
  display: none;
}

.is-solved .icon-button {
  display: block;
  margin-top: 0;
  border-color: rgba(35, 32, 26, 0.88);
  color: var(--cream);
  background: var(--ink);
  box-shadow: 0 8px 24px rgba(64, 52, 32, 0.1);
}

.clue-panel {
  position: absolute;
  z-index: 6;
  top: 7.35rem;
  right: 1.75rem;
  width: min(17rem, calc(100vw - 2.2rem));
  min-width: 0;
  display: grid;
  gap: 0.38rem;
  border: 0;
  background: transparent;
}

.clue-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1.05rem 1rem;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 6px 24px rgba(70, 55, 30, 0.08);
}

.clue-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.48rem;
  color: var(--amber);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.clue-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.clue-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clue-list li {
  display: grid;
  gap: 0.72rem;
}

.clue-copy {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.45;
}

.clue-progress {
  display: flex;
  gap: 0.28rem;
}

.clue-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--line);
}

.clue-dot.unlocked {
  background: rgba(234, 164, 0, 0.42);
}

.clue-dot.active {
  background: var(--amber);
}

.guess-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guess-list:empty {
  display: none;
}

.guess-list li {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) auto auto;
  align-items: center;
  justify-content: end;
  max-width: 100%;
  gap: 0.42rem;
  padding: 0.24rem 0.48rem 0.28rem;
  border: 1px solid rgba(202, 189, 166, 0.44);
  border-radius: 0;
  background: rgba(247, 241, 231, 0.58);
  backdrop-filter: blur(3px);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 0.76rem;
  line-height: 1.1;
}

.guess-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guess-list strong {
  font-family: var(--sans);
  font-size: 0.72rem;
}

.guess-meta {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.2rem;
  color: rgba(129, 119, 101, 0.78);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.direction-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.72rem;
  height: 0.72rem;
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1;
  transform-origin: 50% 50%;
}

.guess-list .miss {
  color: var(--warm);
}

.guess-list .hit {
  color: var(--green);
}

.result-panel {
  position: absolute;
  z-index: 9;
  top: 50%;
  left: 50%;
  width: min(25rem, calc(100vw - 3rem));
  border: 1px solid rgba(160, 146, 120, 0.44);
  border-top-color: rgba(255, 250, 241, 0.82);
  border-radius: 8px;
  padding: 1.05rem 1.12rem 1.12rem;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.98), rgba(247, 241, 231, 0.96));
  box-shadow:
    0 18px 60px rgba(72, 57, 32, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.68) inset;
  transform: translate(-50%, -46%);
  backdrop-filter: blur(10px);
}

.result-panel[hidden] {
  display: none;
}

.result-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  margin-bottom: 0.55rem;
  color: var(--green);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-eyebrow::after {
  flex: 1;
  height: 1px;
  background: rgba(63, 138, 82, 0.28);
  content: "";
}

.result-panel h2 {
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 0.95;
}

.result-panel p {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.36;
}

.score-line {
  margin-bottom: 0.9rem !important;
  color: var(--green) !important;
  font-size: 1.02rem !important;
  font-weight: 900 !important;
}

.result-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
}

.result-actions .icon-button {
  margin-top: 0;
  border-color: rgba(35, 32, 26, 0.88);
  color: var(--cream);
  background: var(--ink);
}

.result-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.38rem;
  border: 1px solid rgba(202, 189, 166, 0.72);
  border-radius: 8px;
  padding: 0 0.95rem;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.74);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.result-link:hover {
  border-color: rgba(35, 32, 26, 0.5);
}

@media (max-width: 900px) {
  .app-shell,
  .game-panel {
    min-height: 100svh;
    height: 100svh;
  }

  .topbar {
    top: 0.48rem;
    right: 1.05rem;
    left: 1.05rem;
    align-items: center;
  }

  .nav-link {
    font-size: 0.74rem;
    font-weight: 780;
  }

  h1 {
    margin-bottom: 0.08rem;
    font-size: 1.28rem;
    line-height: 0.88;
  }

  .kicker {
    font-size: 0.45rem;
  }

  .daily-chip {
    min-height: 1.85rem;
    padding-left: 0.6rem;
  }

  .daily-chip span {
    display: none;
  }

  .header-actions {
    top: 0.42rem;
    right: 1rem;
    left: 1rem;
    gap: 0.2rem;
    justify-items: end;
  }

  .profile-link {
    width: 1.9rem;
    height: 1.9rem;
  }

  .profile-link svg {
    width: 0.96rem;
    height: 0.96rem;
  }

  .status-strip {
    position: absolute;
    top: 2.76rem;
    right: auto;
    left: 50%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(18.5rem, calc(100vw - 3rem));
    gap: 0;
    border: 0;
    border-top: 1px solid rgba(202, 189, 166, 0.46);
    border-bottom: 1px solid rgba(202, 189, 166, 0.34);
    border-radius: 0;
    background:
      linear-gradient(90deg, transparent, rgba(255, 250, 241, 0.44) 16%, rgba(255, 250, 241, 0.44) 84%, transparent);
    backdrop-filter: none;
    transform: translateX(-50%);
  }

  .daily-games-switcher {
    position: absolute;
    z-index: 6;
    top: 5.98rem;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.38rem;
    overflow-x: auto;
    padding: 0.24rem 1rem;
    border-top: 1px solid rgba(202, 189, 166, 0.34);
    border-bottom: 1px solid rgba(202, 189, 166, 0.26);
    background:
      linear-gradient(90deg, rgba(244, 238, 228, 0.72), rgba(255, 250, 241, 0.62) 50%, rgba(244, 238, 228, 0.72));
    box-shadow: 0 1px 0 rgba(255, 250, 241, 0.44) inset;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .daily-games-switcher::-webkit-scrollbar {
    display: none;
  }

  .daily-games-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    flex: 0 0 auto;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 850;
  }

  .daily-segments {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
  }

  .daily-segments span {
    width: 0.48rem;
    height: 0.16rem;
    border-radius: 999px;
    background: rgba(202, 189, 166, 0.58);
  }

  .daily-segments span.is-played {
    background: var(--amber);
  }

  .daily-count {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.62rem;
    font-weight: 800;
  }

  .daily-divider {
    flex: 0 0 auto;
    width: 1px;
    height: 0.9rem;
    background: rgba(160, 146, 120, 0.38);
  }

  .daily-games-switcher a {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex: 0 0 auto;
    min-height: 1.32rem;
    border: 1px solid rgba(160, 146, 120, 0.38);
    border-radius: 999px;
    padding: 0 0.58rem;
    color: var(--muted);
    background: rgba(255, 250, 241, 0.58);
    font-size: 0.66rem;
    font-weight: 780;
    text-decoration: none;
  }

  .daily-games-switcher a[aria-current="page"] {
    border-color: var(--amber);
    color: var(--ink);
    background: var(--amber);
  }

  .daily-games-switcher a span {
    width: 0.34rem;
    height: 0.34rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    opacity: 0.5;
  }

  .daily-games-switcher a.is-played span {
    border: 0;
    background: var(--green);
    opacity: 1;
  }

  .status-strip div {
    min-width: 0;
    padding: 0.26rem 0.34rem 0.28rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
  }

  .status-strip div + div {
    border-left: 1px solid rgba(202, 189, 166, 0.36);
  }

  .status-strip strong {
    margin-top: 0.04rem;
    font-size: 0.98rem;
  }

  .more-games {
    display: none;
  }

  .map-wrap::before {
    display: none;
  }

  .map-toast {
    top: 8.2rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0.28rem 0 0.3rem;
    font-size: 0.74rem;
    text-align: center;
    transform: none;
  }

  .controls {
    top: auto;
    right: 0;
    bottom: max(4.8rem, calc(4.8rem + env(safe-area-inset-bottom)));
    left: 0;
    width: auto;
    min-width: 0;
    padding: 0.48rem 0.9rem;
    transform: none;
  }

  .is-solved .controls {
    right: 1rem;
    bottom: calc(5.1rem + env(safe-area-inset-bottom));
    left: 1rem;
    width: auto;
    min-width: 0;
    padding: 0;
  }

  .is-solved.has-ads .controls {
    bottom: calc(8.85rem + env(safe-area-inset-bottom));
  }

  .has-ads .controls {
    bottom: calc(8.65rem + env(safe-area-inset-bottom));
  }

  .suggestion-list {
    bottom: calc(100% + 0.55rem);
    max-height: min(16rem, 42vh);
  }

  .suggestion-option {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    padding: 0.54rem 0.68rem;
    gap: 0.52rem;
  }

  .suggestion-code {
    font-size: 0.86rem;
  }

  .suggestion-city {
    font-size: 0.92rem;
  }

  .suggestion-name {
    font-size: 0.68rem;
  }

  .adhesion-ad {
    height: 4.4rem;
  }

  .clue-panel {
    top: auto;
    right: 1rem;
    bottom: calc(10.9rem + env(safe-area-inset-bottom));
    left: 1rem;
    width: auto;
    min-width: 0;
    gap: 0.45rem;
  }

  .has-ads .clue-panel {
    bottom: calc(14.3rem + env(safe-area-inset-bottom));
  }

  .clue-row {
    padding: 0.7rem 0.85rem 0.8rem;
  }

  .clue-copy {
    font-size: 0.9rem;
  }

  .guess-list {
    display: flex;
    align-items: stretch;
    max-height: 2.42rem;
    overflow: hidden;
    gap: 0;
    border-top: 1px solid rgba(202, 189, 166, 0.32);
    border-bottom: 1px solid rgba(255, 250, 241, 0.4);
    background:
      linear-gradient(90deg, transparent, rgba(247, 241, 231, 0.28) 14%, rgba(247, 241, 231, 0.28) 86%, transparent);
  }

  .guess-list:empty {
    display: none;
  }

  .guess-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.38rem;
    padding: 0.3rem 0.58rem 0.34rem;
    border: 0;
    border-bottom: 1px solid rgba(202, 189, 166, 0.28);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    font-size: 0.72rem;
  }

  .guess-list li:not(:last-child) {
    display: none;
  }

  .guess-list strong {
    font-size: 0.66rem;
  }

  .guess-meta {
    font-size: 0.56rem;
    letter-spacing: 0.02em;
    opacity: 0.82;
  }

  .airport-popover {
    position: fixed;
    right: 0.8rem !important;
    bottom: calc(9.35rem + env(safe-area-inset-bottom));
    left: 0.8rem !important;
    top: auto !important;
    width: auto;
    border: 0;
    border-top: 1px solid rgba(160, 146, 120, 0.34);
    border-bottom: 1px solid rgba(255, 250, 241, 0.46);
    border-radius: 0;
    padding: 0.66rem 0.78rem 0.72rem;
    background:
      linear-gradient(90deg, transparent, rgba(255, 250, 241, 0.78) 12%, rgba(255, 250, 241, 0.78) 88%, transparent);
    box-shadow: none;
    backdrop-filter: blur(7px);
  }

  .has-ads .airport-popover {
    bottom: calc(13rem + env(safe-area-inset-bottom));
  }

  .airport-popover::before {
    display: none;
  }

  .airport-popover strong {
    font-size: 0.92rem;
  }

  .result-panel {
    top: auto;
    right: 1rem;
    bottom: calc(5.4rem + env(safe-area-inset-bottom));
    left: 1rem;
    width: auto;
    padding: 0.95rem 1rem 1rem;
    transform: none;
  }

  .has-ads .result-panel {
    bottom: calc(8.95rem + env(safe-area-inset-bottom));
  }

  .result-panel h2 {
    font-size: 1.7rem;
  }

  .result-panel p {
    font-size: 0.86rem;
  }

  .score-line {
    font-size: 0.92rem !important;
  }

  .result-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .kicker {
    font-size: 0.43rem;
    letter-spacing: 0.09em;
  }

  .status-strip {
    top: 2.68rem;
    width: min(17.7rem, calc(100vw - 2.6rem));
  }

  .status-strip .label {
    font-size: 0.43rem;
    letter-spacing: 0.075em;
  }

  .status-strip strong {
    font-size: 0.96rem;
  }

  .input-row {
    grid-template-columns: minmax(0, 1fr) 5.7rem;
    gap: 0.36rem;
  }

  button {
    width: 100%;
  }

  .guess-form {
    gap: 0.48rem;
  }

  .guess-form label {
    font-size: 0.66rem;
  }

  .guess-entry,
  button {
    min-height: 2.34rem;
    height: 2.34rem;
  }

  .controls {
    padding: 0.48rem 0.82rem;
  }

  .suggestion-list {
    max-height: min(14rem, 38vh);
  }
}
