:root {
  --bg: #0f1115;
  --surface: #181b22;
  --text: #f4f5f7;
  --muted: #9aa1ad;
  --land-a: #ff5a5f;
  --land-b: #00a699;
  --land-c: #ffb400;
  --land-d: #7b61ff;
  --accent: #9b87ff;
  --ink-a: #ffffff;
  --ink-b: #ffffff;
  --ink-c: #1d1a12;
  --ink-d: #ffffff;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

.icon {
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

* { touch-action: manipulation; }

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.top {
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid #ffffff14;
  position: relative;
  z-index: 2;
}

.top { flex-wrap: wrap; row-gap: 8px; cursor: pointer; }
.top input { cursor: text; }

.total {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

.total:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 6px; }

.total-value {
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.total-label {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
}

a, img, svg, .leader { -webkit-user-drag: none; -webkit-touch-callout: none; }
a[data-held-href] { cursor: pointer; }

.viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  overflow: clip;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-touch-callout: none;
  cursor: grab;
}

.viewport:active { cursor: grabbing; }
.page-zoomed .viewport { touch-action: manipulation; }
body.match-view .viewport { touch-action: pan-y; cursor: default; }
.page-zoomed body.match-view .viewport, .page-zoomed .reels { touch-action: manipulation; }

.world {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}

.world.moving { will-change: transform; }

.world.instant .land, .world.instant .land-more { transition: none !important; }

.dots {
  position: absolute;
  pointer-events: none;
}

.edge-tiles {
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
  background-repeat: repeat;
  background-origin: content-box;
  background-clip: border-box;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

@property --corner { syntax: "<length>"; inherits: false; initial-value: 14px; }
@property --gap { syntax: "<length>"; inherits: true; initial-value: 2px; }
@property --rim { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --z { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --pop { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --fade { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --grow { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --face-w { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --face-h { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --origin-share { syntax: "<number>"; inherits: false; initial-value: .16; }

.land {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  background: var(--color);
  color: var(--ink);
  border-radius: var(--corner);
  clip-path: inset(var(--gap) round max(0px, calc(var(--corner) - var(--gap))));
  isolation: isolate;
  opacity: var(--fade);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.land-face {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--face-w);
  height: var(--face-h);
  transform: translate(calc((1 - var(--grow)) * var(--face-w) * var(--z) / 2), calc((1 - var(--grow)) * var(--face-h) * var(--z) / 2)) scale(calc(var(--z) * var(--grow)));
  transform-origin: 0 0;
  contain: strict;
  container-type: size;
}

.land-tap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
}

.land-count, .land-rank { transition: opacity .2s var(--ease), visibility .2s; }
.land.no-count .land-count { visibility: hidden; opacity: 0; }
.land.nameless .land-name { display: none; }

.land-skin { --corner: inherit; position: absolute; inset: calc(-1 * var(--pop)); z-index: -1; overflow: hidden; border-radius: inherit; background: var(--color); pointer-events: none; transition: background-color .15s; }
.land.popping { z-index: 2; overflow: visible; clip-path: none; }

.land-ring {
  position: absolute;
  z-index: 1;
  border: 1.25px solid #0f1115;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2.5px #fff, inset 0 0 0 3.75px #0f1115;
  pointer-events: none;
}

.land-ring[hidden] { display: none; }

.land-visit {
  position: absolute;
  top: calc(max(.45em, var(--rim) + .15em) + var(--chip-shift, 0px));
  right: calc(max(.45em, var(--rim) + .15em) + var(--chip-shift, 0px));
  display: flex;
  align-items: center;
  min-height: 2em;
  padding: 0 .75em;
  border-radius: 999px;
  background: #0f1115a6;
  color: #fff;
  font-size: calc(var(--visit-size, var(--rank-size, 12px)) * .8);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s var(--ease);
}

@starting-style {
  .land-visit, .land.roomy .land-rank { opacity: 0; }
}

#reels .land-visit, #reels .land.roomy .land-rank { transition: none; }

.land-visit:hover { background: #0f1115e6; }
.land-visit[hidden] { display: none; }
.land-visit { z-index: 3; pointer-events: auto; }
.land-visit:focus-visible { outline: .12em solid #fff; outline-offset: .12em; }

.land.entering { opacity: 0; transform: scale(.85); }
.land.supporting { box-shadow: inset 0 0 0 calc(var(--gap) + 3px) #fff, inset 0 0 0 calc(var(--gap) + 6px) #0f111559; }
.land.moved, .land-ring.moved { z-index: 3; animation: found .6s var(--ease) 3; }

@keyframes found {
  0%, 100% { box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px #0f111559, 0 0 0 0 #ffffff00; }
  45% { box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 8px #0f111580, 0 0 0 6px #ffffffb3; }
}
.land.spotlight .land-skin { animation: spotlight 1.2s var(--ease); }
.land.here { animation: here 1.6s var(--ease); }
.land.visited .land-visit { box-shadow: inset 0 0 0 .12em #3ddc97; }
.land.visited .land-visit .icon { color: #3ddc97; }
.land-tap:focus-visible { outline: none; }
.land:has(.land-tap:focus-visible) { outline: 3px solid var(--text); outline-offset: calc(-5px - var(--gap)); }

.land.pressed .land-skin { background: rgb(from var(--color) calc(r * 1.12) calc(g * 1.12) calc(b * 1.12)); }

.land-name {
  max-width: 100%;
  overflow: hidden;
  white-space: pre;
  text-align: center;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: var(--size, 32px);
}

.land-count {
  position: relative;
  margin-top: .15em;
  line-height: 1.1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: .85;
  font-size: var(--rank-size, 12px);
}

.land-badge {
  order: 1;
  margin-top: .4em;
  padding: .3em .7em;
  border-radius: 999px;
  background: #0f1115cc;
  color: #fff;
  font-size: calc(var(--size, 32px) * .3);
  font-weight: 700;
  white-space: nowrap;
  display: none;
}

.land.featured .land-badge { display: block; }

.land-rank {
  position: absolute;
  top: calc(max(.55em, var(--rim) + .15em) + var(--chip-shift, 0px));
  left: calc(max(.7em, var(--rim) + .15em) + var(--chip-shift, 0px));
  font-size: var(--rank-size, 12px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  opacity: 0;
}

.land-rank-number { position: relative; display: inline-block; }
.land-rank-text { display: inline-block; transform-origin: 0 60%; }
.land-rank-reel {
  position: absolute;
  left: 0;
  top: -1.15em;
  height: 3.45em;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #0005 26%, #000 42%, #000 58%, #0005 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #0005 26%, #000 42%, #000 58%, #0005 74%, transparent 100%);
}
.land-rank-roll { position: relative; display: flex; flex-direction: column; padding-top: 1.15em; }
.land-rank-roll > span { height: 1.15em; line-height: 1.15em; white-space: nowrap; }
.land.roomy .land-rank { opacity: 1; }
.land.roomy .land-rank-number { opacity: .72; }
.land.roomy:is(.verified.deed, .reward, .dueling) .land-rank-number { opacity: 1; }
.land-origin {
  --origin: calc(100cqmin * var(--origin-share, .16));
  position: absolute;
  z-index: 4;
  right: calc(100cqmin * .07 + var(--rim));
  bottom: calc(100cqmin * .07 + var(--rim));
  display: flex;
  box-sizing: border-box;
  width: var(--origin);
  height: var(--origin);
  padding: calc(var(--origin) * .1);
  border-radius: 50%;
  background: #0f1115b3;
  box-shadow: 0 0 0 calc(var(--origin) * .04) #ffffff2e;
  pointer-events: none;
}
.land-origin[hidden] { display: none; }
.land-origin-flag { display: block; width: 100%; height: 100%; border-radius: 50%; }

.land-reward, .land-duel { display: none; }

.land-visit-platform {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  pointer-events: none;
}
.land.visited .land-visit .land-visit-platform { color: #3ddc97; }


.land.roomy.dueling .land-duel {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
  display: inline-block;
  box-sizing: border-box;
  width: 1.47em;
  height: 1.47em;
  margin-left: .24em;
  padding: .24em;
  border: .06em solid #ffffff59;
  border-radius: 50%;
  background: #0f1115 padding-box;
  overflow: visible;
  color: #fff;
  stroke-width: 2.4;
  vertical-align: -.385em;
  vertical-align: calc(.5cap - .735em);
  box-shadow: 0 .06em .12em #0000004d;
}

.land.roomy.reward .land-reward {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
  display: inline-block;
  box-sizing: border-box;
  width: 1.47em;
  height: 1.47em;
  margin-left: .24em;
  padding: .22em;
  border: .06em solid #0f111573;
  border-radius: 50%;
  background: #ffb400 padding-box;
  overflow: visible;
  color: #0f1115;
  stroke-width: 2.4;
  vertical-align: -.385em;
  vertical-align: calc(.5cap - .735em);
  box-shadow: 0 .06em .12em #0000004d;
}

.land.roomy.badged .land-tap::after {
  content: "";
  position: absolute;
  left: calc(max(.7em, var(--rim) + .15em) + var(--chip-shift, 0px));
  bottom: calc(max(.55em, var(--rim) + .15em) + var(--chip-shift, 0px));
  width: 1.15em;
  height: 1.15em;
  font-size: var(--rank-size, 12px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%23fff'/%3E%3Crect x='5' y='5' width='12' height='22' rx='2.5' fill='%23ff5a5f'/%3E%3Crect x='19' y='5' width='8' height='10' rx='2' fill='%2300a699'/%3E%3Crect x='19' y='17' width='8' height='5' rx='1.5' fill='%23ffb400'/%3E%3Crect x='19' y='24' width='8' height='3' rx='1' fill='%237b61ff'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bars {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.land.roomy:is(.mine, .verified) .land-rank-number::after {
  content: "";
  display: inline-block;
  width: .95em;
  height: .95em;
  margin-left: .3em;
  vertical-align: -.12em;
  background: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.3'/%3E%3Cpath d='m7.6 12.4 3 3 5.8-6.2'/%3E%3C/svg%3E");
}

.land.roomy.verified .land-rank-number::after {
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.5a10.5 10.5 0 1 0 0 21 10.5 10.5 0 0 0 0-21zm5.1 8.2-6 6.5a1.2 1.2 0 0 1-1.7 0l-3-3a1.2 1.2 0 1 1 1.7-1.7l2.1 2.1 5.2-5.6a1.2 1.2 0 0 1 1.7 1.7z'/%3E%3C/svg%3E");
}

.land.roomy.verified.deed .land-rank-number::after {
  width: 1.35em;
  height: 1.35em;
  margin-left: .25em;
  vertical-align: -.325em;
  vertical-align: calc(.5cap - .675em);
  background: var(--deed-seal) center / contain no-repeat;
  filter: drop-shadow(0 0 .04em rgba(0, 0, 0, .55)) drop-shadow(0 .06em .1em rgba(0, 0, 0, .3));
  -webkit-mask: none;
  mask: none;
}

.section-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.section-label.pinned { box-shadow: 0 4px 12px #0008; }
.section-name { overflow: hidden; text-overflow: ellipsis; }
.section-count { flex: none; color: var(--muted); font-weight: 700; letter-spacing: .02em; text-transform: none; }
.section-count:empty { display: none; }
.section-label:hover .section-count { color: var(--text); }
.section-label:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }

.land-more {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1em;
  padding: 0;
  border: 2px solid var(--bg);
  border-radius: var(--radius);
  background: var(--surface) repeating-linear-gradient(135deg, #ffffff0a 0 8px, transparent 8px 16px);
  color: var(--text);
  font: inherit;
  font-size: var(--size, 18px);
  line-height: 1;
  overflow: hidden;
  cursor: pointer;
}

.land-more:hover { background-color: #1f232c; }
.land-more:focus-visible { outline: 3px solid var(--text); outline-offset: -5px; }
.more-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1em;
}

.more-count { font-weight: 900; font-variant-numeric: tabular-nums; }
.more-label { color: var(--muted); font-size: max(.5em, 10px); font-weight: 700; }
.land-more.tiny .more-label { display: none; }
.land-more.wide .more-inner { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: .4em; padding: 0 16px; top: 50%; bottom: auto; transform: translateY(-50%); }
.land-more.wide .more-label { font-size: max(.75em, 10px); }

.zoom {
  position: absolute;
  left: 10px;
  bottom: calc(env(safe-area-inset-bottom) + 10px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.zoom.idle:not(:hover, :has(:focus-visible)) {
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
}

.zoom[hidden] { display: none; }

@media (pointer: coarse) {
  #zoom-in, #zoom-out { display: none; }
}

.zoom-button {
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff26;
  border-radius: 12px;
  background: #0f1115d9;
  color: var(--text);
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.zoom-button:hover { background: #1f232ce6; }
.zoom-button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.category-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #ffffff26;
  border-radius: 12px;
  background: #ffffff0d;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.category-chip:hover { background: #ffffff1a; }
.category-chip.current { background: var(--text); color: var(--bg); border-color: var(--text); }
.category-chip:disabled { opacity: .6; }
.category-chip:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.sparks {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}

.ghost {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1.1;
}

.ghost.ringed { box-shadow: 0 0 0 1.25px #0f1115, 0 0 0 3.75px #fff, 0 0 0 5px #0f1115; }
.ghost-name { font-weight: 900; white-space: pre; text-align: center; }

.spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.energy {
  display: flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.energy[hidden] { display: none; }
.energy.low { color: #ffd166; border-color: #ffd16666; }
.energy.empty { color: #ff5a5f; border-color: #ff5a5f80; }
.energy.shake { animation: shake .3s var(--ease); }
.energy-streak { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; padding-left: 6px; border-left: 1px solid #ffffff26; color: var(--muted); }
.energy-streak[hidden] { display: none; }
.energy-streak .icon { width: 15px; height: 15px; }
.energy-streak.kept { color: #ff9f43; }
.energy-streak.pop { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }

.ticker {
  order: 10;
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 28px;
}

.ticker[hidden] { display: none; }

.duel {
  order: 11;
  flex: 1 0 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  cursor: default;
}

.duel[hidden] { display: none; }
.duel-card.empty { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; border-style: dashed; border-color: #ffffff38; background: transparent; }
.duel-card-empty-title { min-width: 0; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.duel-card-empty-note { flex: none; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.duel-card.offer { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; border-style: dashed; border-color: #ffffff38; }
.duel-card-offer-pair { display: flex; align-items: baseline; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.duel-card-offer-name { min-width: 0; overflow: hidden; color: var(--side, var(--text)); font-size: 13px; font-weight: 800; text-overflow: ellipsis; filter: brightness(1.2); }
.duel-card-offer-vs { flex: none; color: var(--muted); font-size: 11px; font-weight: 700; }
.duel-card-offer-go { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--text); color: #0f1115; font-size: 11px; font-weight: 800; white-space: nowrap; }

.duel-share {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}

.duel-share:focus-visible { outline: 2px solid var(--text); }
.duel-reel { position: relative; height: 46px; overflow: hidden; overflow: clip; border-radius: 10px; }
.duel-reel[hidden] { display: none; }
.duel-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid #ffffff1f; border-radius: 10px; background: #0f1115; color: var(--text); font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.duel-card:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.duel-card-line { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); width: 100%; align-items: baseline; gap: 6px; min-width: 0; }
.duel-card-side { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.duel-card-side[data-side="1"] { justify-content: flex-end; }
.duel-card-name { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.duel-card-score { flex: none; color: var(--side, var(--text)); font-size: 14px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; filter: brightness(1.2); }
.duel-card-side.mine .duel-card-name { color: var(--text); text-decoration: underline 2px var(--side); text-underline-offset: 3px; }
.duel-card-bar { display: block; flex: none; width: 100%; height: 5px; overflow: hidden; border-radius: 999px; background: var(--b, #ffffff1a); }
.duel-card-fill { display: block; width: calc(var(--share, .5) * 100%); height: 100%; background: var(--a, var(--text)); transition: width .4s var(--ease); }
.duel-card-tag { flex: none; display: inline-flex; align-items: center; align-self: center; gap: 3px; color: #ff5a5f; font-size: 9px; font-weight: 900; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
.duel-card-live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ff5a5f; box-shadow: 0 0 0 3px #ff5a5f33; animation: live 1.6s ease-in-out infinite; }
.duel-card-tag-text:empty { display: none; }
.duel-card.final .duel-card-tag { padding: 2px 6px; border-radius: 999px; background: #ffffff1f; color: var(--text); font-size: 10px; letter-spacing: .08em; }
.duel-card.final .duel-card-live { display: none; }
.duel-card-trophy { display: none; flex: none; width: 13px; height: 13px; align-self: center; color: #ffd166; }
.duel-card.final .duel-card-side.won .duel-card-trophy { display: inline-block; }
.duel-card.final .duel-card-side.won .duel-card-name { color: var(--text); }
.duel.won .duel-card-side.mine { animation: duel-won .9s var(--ease); }
.reel-ghost { pointer-events: none; }
.swipe-tail { position: absolute; left: 0; right: 0; top: 0; z-index: 7; pointer-events: none; color: var(--text); font-size: 34px; font-weight: 800; letter-spacing: 0.02em; line-height: 1; text-align: center; will-change: opacity, translate; }
.reels { position: absolute; inset: 0; overflow-x: hidden; overflow-y: scroll; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; touch-action: pan-y; }
.reels::-webkit-scrollbar { display: none; }
.reels.dragging { scroll-snap-type: none; cursor: grabbing; }
.reel-track { position: relative; }
.reel-snap { height: var(--reel-size); scroll-snap-align: start; scroll-snap-stop: always; }
.reel-page { position: absolute; left: 0; right: 0; top: 0; height: var(--reel-size); overflow: hidden; overflow: clip; }
.reel-page[hidden] { display: none; }
.feed-card { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
.feed-kicker { flex: none; display: flex; align-items: center; height: var(--reel-bar); margin: 0; padding: 0 12px 0 52px; border-bottom: 1px solid #ffffff1f; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.feed-sides { position: relative; flex: 1; min-height: 0; display: grid; grid-template-rows: 1fr 1fr; gap: 4px; padding: 4px; }
.feed-sides.empty { grid-template-rows: 1fr; background: radial-gradient(circle at 50% 40%, #ffffff14, transparent 60%); }
.feed-side { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0 16px; border-radius: var(--radius); font-size: clamp(22px, 7vw, 44px); font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; text-align: center; }
.feed-vs { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 4px var(--bg); font-size: 15px; font-weight: 800; text-transform: uppercase; }
.feed-actions { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; max-width: 440px; margin: 0 auto; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
.feed-note { margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.4; text-align: center; }
.feed-go, .feed-own { min-height: 48px; border: 0; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.feed-go { background: var(--text); color: var(--bg); }
.feed-own { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px #ffffff33; }
.feed-go:active, .feed-own:active { transform: scale(.98); }
.feed-own.link-button { align-self: center; min-height: 40px; padding: 0 12px; border-radius: 8px; box-shadow: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.feed-side { position: relative; cursor: pointer; }
.feed-side .result-mini-platform { box-sizing: border-box; width: 1.1em; height: 1.1em; margin-right: .3em; padding: .17em; border-radius: 50%; background: #ffffffeb; fill: var(--side); vertical-align: 0; }
.feed-go.nudge { animation: feed-nudge 520ms cubic-bezier(.3, 1.5, .5, 1); }
@keyframes feed-nudge { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 #ffffff00; } 35% { transform: scale(1.06); box-shadow: 0 0 0 6px #ffffff40; } }
@media (prefers-reduced-motion: reduce) { .feed-go.nudge { animation-name: feed-nudge-still; } @keyframes feed-nudge-still { 35% { box-shadow: 0 0 0 6px #ffffff40; } } }

@keyframes duel-won {
  30% { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .duel.won .duel-card-side.mine { animation: none; }
  .duel-card-fill { transition: none; }
  .duel-card-live { animation: none; }
}

.ticker-window {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent);
}

.ticker-belt {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.ticker-track {
  flex: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.tick {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  margin-right: var(--tick-space, 18px);
  padding: 0 10px 0 6px;
  border: 1px solid #ffffff14;
  border-radius: 999px;
  background: #ffffff0a;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.tick:hover { background: #ffffff1a; }
.tick:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.tick-mine { border-color: #ffffff4d; }
.tick-riser { color: #3ddc97; }
.tick-duel { color: #ff8a8d; border-color: #ff5a5f66; }
.tick-pass { color: #ffd166; }
.tick-top { color: #ffd166; border-color: #ffd16666; }
.tick-crown { color: #1a1300; background: #ffd166; border-color: #ffd166; font-weight: 700; }
.tick-crown:hover { background: #ffe08a; }
.tick-featured { color: #9b8cff; }
.tick-finished { color: #ffd166; border-color: #ffd16666; }
.tick-summit { border-color: #ffd16680; background: #ffd1661f; color: #ffd166; }
.tick-icon { width: 13px; height: 13px; }

.today-energy { display: flex; flex-direction: column; gap: 8px; }
.today-left { margin: 0; font-size: 15px; font-weight: 700; color: var(--muted); }
.today-count { color: var(--text); font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; }
.today-streak { margin: 0; padding: 10px 12px; border-radius: 12px; background: #ff8a3d1f; color: #ffb27a; font-size: 14px; font-weight: 700; }
.today-streak[hidden] { display: none; }
.today-streak:not(.kept) { background: #ffffff0d; color: var(--muted); }
.today-freeze { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin: 0; padding: 10px 12px; border-radius: 12px; background: #5ec8ff1a; }
.today-freeze[hidden] { display: none; }
.today-freeze-text { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; margin: 0; color: #a8e1ff; font-size: 14px; }
.today-freeze-text .icon { flex: none; width: 18px; height: 18px; }
.today-streak, .today-earn { display: flex; align-items: center; gap: 8px; }
.today-streak .icon, .today-earn .icon { width: 18px; height: 18px; }
.streak-next { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-size: 12px; font-weight: 700; opacity: .75; white-space: nowrap; font-variant-numeric: tabular-nums; }
.today-streak .streak-next .icon { width: 13px; height: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.today-heading { margin: 6px 0 0; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.today-earn { margin: 0; font-size: 14px; font-weight: 600; }
.earn-done { color: var(--muted); text-decoration: line-through; }

.meter {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #ffffff14;
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3ddc97, #ffd166);
  transition: width .4s var(--ease);
}

.quests { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }

.quest {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #ffffff08;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s var(--ease), transform .15s var(--ease);
}

.quest:hover { background: #ffffff12; }
.quest:active { transform: scale(.98); }
.quest:focus-visible { outline: 2px solid #3ddc97; outline-offset: 2px; }
.quest .meter { height: 4px; }
.quest .meter > span { background: #3ddc97; }

.quest-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #ffffff33;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.quest.done .quest-check { border-color: #3ddc97; background: #3ddc97; color: #0f1f18; }
.quest.done .quest-text { color: var(--muted); text-decoration: line-through; }
.quest-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.quest-text { font-size: 14px; font-weight: 700; }
.quest-reward { color: #ffd166; font-weight: 900; font-variant-numeric: tabular-nums; }

.today-featured { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: #9b8cff1a; }
.today-featured[hidden] { display: none; }
.today-featured-title { margin: 0; font-size: 14px; font-weight: 600; }
.today-featured .hint { margin: 0; }

.fx {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.burst { width: 0; height: 0; }
.burst i { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: currentColor; }
.burst i:nth-child(3n + 2) { background: var(--heat, #fff); }
.burst i:nth-child(3n) { background: #fff; }

.plus {
  width: 120px;
  height: 36px;
  margin: -18px 0 0 -60px;
  text-align: center;
  font-weight: 900;
  font-size: 22px;
  line-height: 36px;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 0 #000a, 0 2px 8px #000b;
}

.plus.combo {
  font-size: 30px;
  color: #ffd166;
  letter-spacing: -.02em;
  text-shadow: 0 2px 10px #000b, 0 0 18px #ff9f4399;
}

.ring {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

.controls {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.controls [hidden] { display: none; }

.search {
  position: relative;
  min-width: 0;
}

.search-form {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid #ffffff26;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}

.search-form:focus-within { border-color: #ffffff66; }
.search-form.call { animation: search-call 700ms ease-out; }
@keyframes search-call { 0% { box-shadow: 0 0 0 0 #ffffff80; } 30% { transform: scale(1.04); } 100% { box-shadow: 0 0 0 12px #ffffff00; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .search-form.call { animation-name: search-call-still; } @keyframes search-call-still { 0% { box-shadow: 0 0 0 3px #ffffff80; } 100% { box-shadow: 0 0 0 3px #ffffff00; } } }

.search-icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: 12px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.search-input {
  width: 240px;
  min-width: 0;
  min-height: 34px;
  padding: 0 4px 0 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}

.search-input::placeholder { color: #9aa1ad99; }

.search-kbd {
  display: none;
  flex: none;
  margin-right: 4px;
  padding: 2px 6px;
  border: 1px solid #ffffff26;
  border-radius: 6px;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .search-input:placeholder-shown:not(:focus) + .search-kbd { display: block; }
}

.search-submit {
  flex: none;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  margin: 2px;
  background: #ffffff1a;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.search-submit.ready { background: var(--text); color: var(--bg); }
.search-submit:disabled { opacity: .6; }
.search-submit:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 280px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #ffffff1f;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 48px #000b;
  z-index: 30;
}

.search-results[hidden] { display: none; }

.search-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.search-result[aria-selected="true"], .search-result:hover { background: #ffffff14; }

.result-lead {
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--color, #ffffff1a);
  color: #0f1115;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.search-result:is(.country, .category) .result-lead { display: grid; place-items: center; padding: 0; background: none; color: var(--text); }
.search-result.add .result-lead { background: var(--text); font-size: 16px; line-height: 1; }
.search-result.add .result-lead:has(.result-platform) { display: grid; place-items: center; min-height: 26px; }
.result-platform { width: 16px; height: 16px; fill: #0f1115; }
.result-name { display: flex; flex-direction: column; min-width: 0; font-weight: 700; }
.result-name > span { overflow-wrap: anywhere; }
.result-name small { color: var(--muted); font-size: 11px; font-weight: 600; }
.search-result.add .result-name { color: var(--text); }
.search-result.add .result-meta { padding: 5px 12px; border-radius: 999px; background: var(--text); color: #0f1115; font-size: 12px; font-weight: 800; }
.result-meta { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.result-meta:has(.recent-icon) { display: inline-flex; align-items: center; gap: 6px; }
.recent-icon { width: 14px; height: 14px; }
.search-heading { padding: 6px 10px 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.search-result.clear { grid-template-columns: 1fr; min-height: 40px; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.search-result.clear .result-name { align-items: center; }

.hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px;
  text-align: center;
}

.hero[hidden] { display: none; }

.hero-title {
  margin: 0;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(420px, 100%);
  margin-top: 8px;
}

.hero-input {
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid #ffffff33;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  user-select: text;
  -webkit-user-select: text;
}

.hero-input::placeholder { color: #9aa1ad80; }
.hero-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.toast {
  position: fixed;
  inset: auto;
  margin: 0;
  border: 0;
  overflow: visible;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  left: 50%;
  z-index: 20;
  width: max-content;
  max-width: min(calc(100vw - 32px), 640px);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 700;
  transform: translateX(-50%);
  box-shadow: 0 12px 32px #0009;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.toast.tucked { transform: translateX(-50%) scale(0.9); transform-origin: 50% 100%; opacity: 0.85; transition: transform 160ms var(--ease), opacity 160ms var(--ease); }

.toast-text { flex: 1 1 200px; line-height: 1.35; }
.toast-accent { color: #d62f36; font-weight: 800; }

.toast-icon { width: 18px; height: 18px; margin-right: -4px; }
.toast-flag { flex: none; border-radius: 50%; }
.toast-inline-flag { display: inline-block; width: 1.05em; height: 1.05em; margin: 0 .2em; border-radius: 50%; vertical-align: -.16em; box-shadow: 0 0 0 1px #0000001f; }
.toast-spinner { width: 16px; height: 16px; margin-right: -4px; }

.toast-actions {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 720px) {
  .toast-actions { gap: 6px; }
  .toast .toast-action { padding: 0 10px; }
}

.toast-action {
  flex: none;
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-action-quiet { background: transparent; color: var(--bg); opacity: 0.7; }
.toast-action-quiet:hover { opacity: 1; }

.toast-action:focus-visible { outline: 2px solid var(--bg); outline-offset: 2px; }
.toast-action-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; padding: 0; }
.toast .toast-action-icon { padding: 0; }
.toast-action-icon .icon { width: 16px; height: 16px; }

.toast[hidden] { display: none; }
.toast.show { animation: toast .25s var(--ease); }

@media (max-width: 720px) {
  .top { flex-wrap: wrap; row-gap: 8px; column-gap: 6px; }
  .total { flex: 1; min-width: 0; }
  .controls { display: contents; }
  .search { order: 3; flex: 1 0 100%; }
  .search-input { flex: 1; width: auto; }
  .search-results { min-width: 0; }
  .ticker { order: 4; }
  .duel { order: 5; }
}

@media (max-width: 420px) {
  .top .control { padding: 6px 10px; min-height: 34px; font-size: 12px; }
  .control-label { display: none; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .top { flex-wrap: nowrap; gap: 10px; padding: calc(env(safe-area-inset-top) + 6px) max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left)); }
  .top:has(.duel:not([hidden])), .top:has(.match-bar:not([hidden])) { flex-wrap: wrap; row-gap: 6px; }
  .total { flex: none; min-width: 0; }
  .total-value { font-size: 22px; }
  .total-label { margin-top: 2px; font-size: 9px; }
  .controls { display: flex; order: 2; flex: none; gap: 6px; }
  .search { order: 0; flex: none; }
  .search-input { width: clamp(72px, 18vw - 24px, 200px); min-height: 30px; }
  .search-submit { min-height: 30px; padding: 0 12px; }
  .top .control { padding: 6px 10px; min-height: 32px; font-size: 12px; }
  .control-label { display: none; }
  .ticker { order: 1; flex: 1 1 0; height: 26px; }
}

.control {
  padding: 8px 14px;
  border: 1px solid #ffffff26;
  border-radius: 999px;
  background: #0f1115e6;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  min-height: 36px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

.control:hover { background: #1f232ce6; }
.control:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes here {
  0%, 100% { box-shadow: inset 0 0 0 0 #3ddc9700; }
  30% { box-shadow: inset 0 0 0 6px #3ddc97, 0 0 0 4px #3ddc9759; }
}
@keyframes spotlight {
  0%, 100% { filter: none; }
  25%, 75% { filter: brightness(1.35); }
  50% { filter: brightness(1.1); }
}
@keyframes toast {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .land, .land-skin, .land-count, .land-rank, .land-visit { transition: none; }
  .land.spotlight .land-skin, .land.here, .toast.show, .energy.shake, .energy-streak.pop { animation: none; }
  .fx { display: none; }
}

.status { color: var(--muted); }
.total-row { display: flex; align-items: center; gap: 10px; }
.env-chip { padding: 4px 8px; border-radius: 6px; background: #ff8a00; color: #0f1115; font-size: 12px; font-weight: 800; line-height: 1; letter-spacing: .1em; text-transform: uppercase; }
.env-chip[hidden] { display: none; }
.status.live { color: #3ddc97; }
.status.frozen { color: #8ecbff; }
.frozen-bar {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  left: 50%;
  z-index: 19;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border: 1px solid #8ecbff55;
  border-radius: 12px;
  background: #13202ef2;
  color: #dcefff;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 12px 32px #0009;
  pointer-events: none;
}
.frozen-bar[hidden] { display: none; }
.frozen-bar span { color: #9fc3e3; }
.map-frozen .toast { bottom: calc(env(safe-area-inset-bottom) + 100px); }
.frozen-bar.nudge { animation: frozen-nudge .45s var(--ease); }
@keyframes frozen-nudge {
  0%, 100% { transform: translateX(-50%); }
  25% { transform: translateX(calc(-50% - 6px)); }
  50% { transform: translateX(calc(-50% + 6px)); }
  75% { transform: translateX(calc(-50% - 3px)); }
}
@media (prefers-reduced-motion: reduce) { .frozen-bar.nudge { animation: none; border-color: #8ecbff; } }
.status.unverified { color: #ffb454; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; pointer-events: auto; }
.status.live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  animation: live 2s ease-in-out infinite;
}

.sheet {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: auto auto calc(env(safe-area-inset-bottom) + 16px);
  padding: 0;
  border: 1px solid #ffffff1f;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 64px #000a;
}

.sheet[open] { animation: rise .28s var(--ease); }
.sheet.typing {
  max-height: calc(var(--kb-height) - 16px);
  margin: calc(var(--kb-top) + 8px) auto auto;
}
.sheet::backdrop { background: #05060acc; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

.sheet-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-title { margin: 0; font-size: 20px; font-weight: 800; }
.sheet-lead { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.match-by-you { display: grid; gap: 6px; }
.match-by-you-label { color: var(--muted); font-size: 13px; }
.match-by-preview { padding: 10px 12px; border-radius: 12px; background: #ffffff0f; }
.match-by-preview .match-by { color: var(--text); opacity: 1; }
.feed-actions .match-by-preview { flex: none; justify-content: center; }
.match-by-preview .match-by-edit { width: 32px; min-height: 32px; margin: -6px -8px -6px -4px; border: 0; border-radius: 8px; background: transparent; color: var(--text); }
.match-by-preview .match-by-edit .icon { width: 16px; height: 16px; }
.home-steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 22px; color: var(--text); font-size: 14px; line-height: 1.45; }
.home-steps li::marker { color: var(--muted); font-weight: 700; }
.home-steps li[hidden] { display: none; }
.home-steps .link-button { padding: 2px; }
#reminder-how[hidden] { display: none; }
.fans-visit { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.fans-visit:not([hidden])::before { content: "·"; display: inline-block; margin: 0 6px; color: var(--muted); text-decoration: none; }
.fans-visit[hidden] { display: none; }
#fans-list { gap: 3px; }
#fans-list .leader { padding: 7px 12px; }
#fans-me { padding: 8px 12px; }
.fans-actions { display: flex; gap: 8px; }
.fans-actions > * { flex: 1 1 0; min-width: 0; min-height: 44px; padding-inline: 10px; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.fans-actions > [hidden] { display: none; }
.fans-offer { align-self: flex-start; margin: 0; padding: 3px 10px; border-radius: 999px; background: rgba(61, 220, 132, .14); color: #3ddc84; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.fans-offer[hidden] { display: none; }
.fans-reward { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding: 12px 14px; border: 1px solid rgba(255, 196, 0, .35); border-radius: 14px; background: rgba(255, 196, 0, .08); }
.fans-reward[hidden], .fans-reward-code[hidden] { display: none; }
.fans-reward.earned { border-color: rgba(61, 220, 132, .5); background: rgba(61, 220, 132, .1); }
.fans-reward-title { margin: 0; color: var(--text); font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.fans-reward-title::before { content: "🎁 "; }
.fans-reward-note { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.fans-reward-code { align-self: flex-start; min-height: 40px; padding: 8px 14px; border: 1px dashed #3ddc84; border-radius: 10px; background: transparent; color: #3ddc84; font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .02em; cursor: pointer; overflow-wrap: anywhere; text-align: left; }
.sheet-status { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.sheet-status[hidden] { display: none; }
.sheet-status.done { color: var(--text); }
.status-done, .sheet-status.done .spinner { display: none; }
.sheet-status.done .status-done { display: block; flex: none; width: 16px; height: 16px; color: #3ddc84; stroke-width: 3; }
.spinner { flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

.name-row { display: flex; align-items: center; gap: 8px; }
.name-avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; margin-right: 4px; border-radius: 50%; background: #ffffff10; color: var(--text); }
.name-avatar .icon { width: 26px; height: 26px; }
.name-avatar-flag { width: 100%; height: 100%; border-radius: 50%; }
.name-avatar:has(.name-avatar-flag:not([hidden])) { background: none; }
.name-avatar:has(.name-avatar-flag:not([hidden])) .icon { display: none; }
.name-avatar[hidden], #name-sheet.editing .name-avatar { display: none; }
.sheet-title.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.name-row .icon-button[hidden], #name-sheet .hint[hidden], #name-sheet .primary[hidden] { display: none; }
#name-sheet.editing .keep-progress { display: none; }
#name-sheet {
  max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--keyboard, 0px));
  margin-bottom: calc(env(safe-area-inset-bottom) + 16px + var(--keyboard, 0px));
}
#name-sheet[style*="--visible"] { max-height: calc(var(--visible) - 16px); }
@media (pointer: coarse) {
  #name-sheet.editing {
    max-height: calc(var(--visible, 100dvh) - env(safe-area-inset-top) - 24px);
    margin: calc(env(safe-area-inset-top) + 12px + var(--scrolled, 0px)) auto auto;
  }
  #name-sheet.editing[open] { animation: none; }
}
#name-form:focus { outline: none; }
#board-body:focus { outline: none; }
.name-input[readonly] { padding: 0; border-color: transparent; background: transparent; font-size: 22px; cursor: pointer; }
.name-input[readonly]:focus-visible { outline: none; }

.name-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #ffffff26;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  user-select: text;
  -webkit-user-select: text;
}

.name-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.icon-button {
  flex: none;
  width: 48px;
  min-height: 48px;
  border: 1px solid #ffffff26;
  border-radius: 12px;
  background: #ffffff0d;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.icon-button, .zoom-button { display: inline-grid; place-items: center; }
.icon-button .icon, .zoom-button .icon { width: 20px; height: 20px; }
.control .icon { width: 15px; height: 15px; vertical-align: -3px; }
.quest-check .icon { width: 14px; height: 14px; stroke-width: 3; }
.land-visit { gap: .3em; }
.land-visit .icon { width: 1.1em; height: 1.1em; }
.land-visit.icon-only { top: calc(max(.3em, var(--rim) + .15em) + var(--chip-shift, 0px)); right: calc(max(.3em, var(--rim) + .15em) + var(--chip-shift, 0px)); width: 1.9em; min-height: 1.9em; padding: 0; justify-content: center; }
.land-visit.icon-only .land-visit-text { display: none; }
.icon-button:hover { background: #ffffff1a; }
.icon-button:disabled { opacity: .5; }
#fans-side:disabled { opacity: .6; cursor: default; }
#fans-side.your-team { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding-block: 4px; line-height: 1.2; }
.your-team-go { color: var(--text); font-size: 15px; font-weight: 700; }
#fans-side.your-team { color: var(--muted); font-size: 13px; font-weight: 600; }
#fans-side[hidden] { display: none; }
.jersey-offer { display: flex; align-items: center; justify-content: center; gap: 6px; border-color: #4ea8ff66; }
.jersey-offer:disabled { opacity: .6; cursor: default; }
.jersey-offer[hidden] { display: none; }
#team-jersey { width: 100%; margin-top: 8px; }
.jersey-stage { display: grid; place-items: center; padding: 4px 0; }
.jersey-art { width: min(220px, 58vw); height: auto; filter: drop-shadow(0 14px 28px #000a); font-family: inherit; }
.jersey-lead { text-align: center; color: var(--text); font-size: 17px; font-weight: 800; }
.shield-mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-right: 10px; border-radius: 10px; background: #16324a; color: #cfe8ff; }
.shield-mark .icon { width: 24px; height: 24px; }
.shield-sheet .sheet-title { flex: 1; min-width: 0; margin-right: 12px; overflow-wrap: anywhere; }
.shield-state { margin: 0; color: var(--text); font-size: 16px; font-weight: 800; }
.shield-state[hidden], #shield-go[hidden] { display: none; }
.heist-team-search { width: 100%; }
.heist-team-list { position: static; min-width: 0; max-height: min(46vh, 340px); margin: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; box-shadow: none; background: none; padding: 0; }
.heist-team-list .search-result { grid-template-columns: auto 1fr auto; }
.heist-team-state { margin: 0; }
.heist-team-state[hidden] { display: none; }
.team-entry { display: flex; align-items: center; gap: 12px; width: 100%; padding: 4px 2px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.team-entry:focus-visible { outline: 2px solid var(--muted); outline-offset: 2px; border-radius: 8px; }
.team-entry > .icon:last-child { width: 16px; height: 16px; color: var(--muted); transform: rotate(-90deg); flex: none; }
.team-entry > .icon { width: 22px; height: 22px; color: var(--muted); flex: none; }
.icon-button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.feature-text { min-height: 112px; padding: 12px 14px; font-size: 16px; font-weight: 500; line-height: 1.4; resize: vertical; }
.feature-email { font-size: 16px; font-weight: 500; }
.sheet-foot { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }
.link-button, .contact-link { padding: 6px 2px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:focus-visible, .contact-link:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }

.about-tabs { display: flex; gap: 2px; padding: 4px; overflow-x: auto; border-radius: 14px; background: var(--bg); scrollbar-width: none; }
.about-tabs::-webkit-scrollbar { display: none; }
.about-tab { flex: 1 0 auto; min-height: 40px; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.about-tab[aria-selected="true"] { background: #ffffff1a; color: var(--text); }
.about-tab:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
@media (max-width: 440px) { .about-tabs { gap: 0; } .about-tab { padding: 0 4px; font-size: 12px; } }
@media (max-width: 379px) {
  .about-tab { padding: 0 3px; font-size: 11px; }
  .search-icon { margin-left: 9px; }
  .search-input { padding: 0 2px 0 6px; }
  .search-submit { padding: 0 8px; }
}
@media (max-width: 339px) { .about-tab { padding: 0 1px; font-size: 10px; } }
.about-track { display: flex; align-items: flex-start; margin: 0 -20px; overflow-x: auto; overflow-y: hidden; transition: height .25s var(--ease); overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.about-track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .about-track { transition: none; } }
.about-pane[hidden] { display: none; }
.about-pane { flex: 0 0 100%; display: flex; flex-direction: column; gap: 12px; padding: 2px 20px; scroll-snap-align: start; scroll-snap-stop: always; }

.hint { margin: -4px 0 0; font-size: 12px; color: var(--muted); }
.hint.error { color: var(--land-a); }

.primary {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.primary:disabled { opacity: .6; }
.primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.leaders {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leader {
  display: grid;
  grid-template-columns: minmax(28px, calc(var(--rank-digits, 2) * 1.15ch + 4px)) 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ffffff08;
  font-variant-numeric: tabular-nums;
}

.leader[data-rank="1"] .leader-rank { color: #ffd166; }
.leader[data-rank="2"] .leader-rank { color: #d9dde3; }
.leader[data-rank="3"] .leader-rank { color: #e09f6b; }
.leader.mine { background: #ffffff1a; outline: 1px solid #ffffff33; }
#leaders .leader:not(.mine) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: background-color .2s var(--ease), transform .5s var(--ease); }
#leaders .leader.pressing { background: #ffffff14; transform: scale(.98); }

.leader-rank { font-weight: 800; color: var(--muted); }
.leader-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-taps { font-weight: 700; }
.leader-tag { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #ffd16626; color: #ffd166; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.streak-tag { display: inline-flex; align-items: center; gap: 2px; background: #ff8a3d26; color: #ff9f43; }
.streak-tag .icon { width: 11px; height: 11px; }
.leader-link { width: 100%; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s var(--ease); }
.leader-link:hover { background: #ffffff14; }
.leader-link:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.leader-group { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: normal; }
.leader-group .country-flag, .leader-group .category-icon { width: 20px; height: 20px; }
.leader-label { min-width: 0; line-height: 1.2; overflow-wrap: break-word; }
.board-note { margin: 0; }
.board-top { display: flex; align-items: center; gap: 8px; }
.board-top .about-tabs { flex: 1; min-width: 0; }
.board-top .icon-button { flex: none; width: 42px; min-height: 42px; }
.board-place { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 17px; font-weight: 800; text-align: left; cursor: pointer; }
.board-place::before { content: "‹"; font-size: 1.5em; line-height: 0; margin-right: 2px; }
.board-place .country-flag { width: 22px; height: 22px; }
.board-place[hidden], .board-body[hidden], .board-countries[hidden] { display: none; }
.board-place:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.board-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
#lands-body, #duels-body { flex: 1 1 auto; }
#board-sheet.in-place .leagues { display: none; }
.board-countries { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 2px 4px; scrollbar-width: thin; }
.about-tabs[hidden], .about-track[hidden], .sheet-foot[hidden] { display: none; }
.board-chips { display: flex; gap: 6px; margin: 0 -20px; padding: 2px 20px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.board-chips::-webkit-scrollbar { display: none; }
.board-chips[hidden] { display: none; }
.board-chip { flex: none; display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid #ffffff26; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.board-chip .country-flag, .board-chip .category-icon { width: 16px; height: 16px; }
.board-chip[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.board-chip:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.board-lands { max-height: min(56dvh, 560px); overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 2px 4px; }
.board-lands > li { content-visibility: auto; contain-intrinsic-size: auto 42px; }
.board-lands .leader-link { text-decoration: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; transition: transform .15s var(--ease), background-color .15s var(--ease); }
.board-lands .leader-link.pressing { background: #ffffff14; transform: scale(.98); }
.board-lands .leader.mine { outline-offset: -1px; }
.land-swatch { flex: none; width: 14px; height: 14px; border-radius: 4px; }
.board-lands-me { width: 100%; color: inherit; font: inherit; font-weight: 700; text-align: left; background: none; cursor: pointer; }
.board-lands-me[hidden], .icon-button[hidden] { display: none; }
.board-lands .leader-label, .board-lands-me { overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.me-row {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed #ffffff26;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.me-row:empty { display: none; }
#board-sheet { height: min(680px, calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); }
#board-sheet .sheet-body { height: 100%; }
.board-track { flex: 1; min-height: 0; }
.board-track .about-pane { height: var(--pane-height, 100%); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.board-track .about-pane > * { flex-shrink: 0; }
#board-lands-pane > .board-countries, #board-lands-pane > .board-body, #board-duels > .board-countries, #board-duels > .board-body { flex-shrink: 1; }
#board-tappers > .board-countries { overflow: visible; }
#board-duels { overflow: hidden; }
#board-duels .duel-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#board-lands-pane { overflow: hidden; }
#board-sheet .board-lands { flex: 1; min-height: 0; max-height: none; }
.board-foot { margin-top: auto; padding-top: 8px; }
#me-row.unnamed .me-text { color: var(--muted); font-weight: 600; }
#me-row { display: flex; align-items: center; gap: 8px; padding-block: 4px; padding-right: 4px; }
.me-text { flex: 1; cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-team { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: .85em; font-weight: 600; }
.me-edit { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; color: inherit; background: none; cursor: pointer; }
.me-edit:hover, .me-edit:focus-visible { background: #ffffff14; }
.me-edit svg { width: 18px; height: 18px; }

.leader.renamed, .me-row.renamed { animation: renamed 1.6s ease-out; }

@keyframes renamed {
  0%, 30% { background: #ffd16655; box-shadow: 0 0 0 2px #ffd166; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.challenge {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%);
  z-index: 10;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes live { 50% { opacity: .35; } }

@keyframes place-forward {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: none; }
}

@keyframes place-back {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: none; }
}

.place-forward { animation: place-forward .32s var(--ease) both; }
.place-back { animation: place-back .32s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .sheet[open], .status.live::before, .leader.renamed, .me-row.renamed, .place-forward, .place-back { animation: none; }
}

.search { display: flex; align-items: center; gap: 6px; }
.search-form { flex: 1; }

.country-button {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
}

.country-button:hover { border-color: #ffffff66; }
.country-button.active { border-color: var(--text); }
.country-button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.country-button .country-flag { width: 26px; height: 26px; }

.country-flag {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #ffffff26;
}


.country-list {
  right: auto;
  width: max-content;
  min-width: 260px;
  max-width: min(340px, calc(100vw - 32px));
  max-height: min(420px, 60dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.country-option { grid-template-columns: auto 1fr; gap: 12px; }

.hero.dock {
  inset: auto 0 0;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px 16px calc(env(safe-area-inset-bottom) + 16px);
}

.hero.dock .hero-title { font-size: clamp(20px, 4vw, 28px); }
.hero.dock .hero-lead { font-size: 14px; }
.hero.dock .hero-form { flex-direction: row; margin-top: 6px; }
.hero.dock .hero-input { flex: 1; min-width: 0; min-height: 48px; font-size: 17px; }
.hero.dock .primary { flex: none; padding: 0 24px; }

.escape {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 16px;
  background: #1d9bf01f;
  border-bottom: 1px solid #1d9bf04d;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.escape[hidden] { display: none; }
.escape-text { margin: 0; }

.escape-open {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.escape-close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: -8px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.escape-close .icon { width: 18px; height: 18px; }
.escape-hint { grid-column: 1 / -1; margin: 0; color: var(--muted); }


.noscript {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: auto;
  padding: 24px 16px;
  background: #0f1115;
  color: #f4f5f7;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.noscript a {
  color: #9b87ff;
}

.land-history { margin: -6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.land-history[hidden] { display: none; }
.deed-line { color: #ffd166; font-weight: 700; }
.deed-line::before { content: ""; display: inline-block; width: 1.35em; height: 1.35em; margin-right: .35em; vertical-align: -.325em; vertical-align: calc(.5cap - .675em); background: var(--deed-seal) center / contain no-repeat; }
.keep-progress { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border: 1px solid #ffffff12; border-radius: 16px; background: #ffffff06; }
#club-row { padding: 0; border: 0; background: none; }
#name-lead[hidden] { display: none; }
.top-lands { display: flex; flex-direction: column; gap: 8px; }
.top-lands[hidden] { display: none; }
.top-lands-title { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.top-lands-list { display: flex; gap: 6px; margin: 0 -20px; padding: 0 20px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; list-style: none; }
.top-lands-list::-webkit-scrollbar { display: none; }
.top-lands-list > li { flex: none; }
.top-land { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border: 1px solid #ffffff1a; border-radius: 999px; background: #ffffff0a; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.top-land:hover { background: #ffffff14; }
.top-land:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.top-land-rank { flex: none; color: #ffd166; font-weight: 700; font-variant-numeric: tabular-nums; }
.top-land-name { white-space: nowrap; }
.profile-group { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ffffff12; border-radius: 16px; background: #ffffff06; }
.profile-group:not(:has(> .keep-progress:not([hidden]))) { display: none; }
#name-sheet.editing :is(.profile-group, .top-lands) { display: none; }
.profile-group > .keep-progress { padding: 12px 16px; border: 0; border-radius: 0; background: none; box-shadow: 0 -1px 0 #ffffff12; }
.profile-group > #team-row { order: 1; }
.profile-group > #reminder-row, .profile-group > #mail-row { order: 2; }
.profile-group > .keep-card[data-view="saved"] { order: 3; flex-direction: row; align-items: center; gap: 12px; }
.profile-group .keep-card[data-view="saved"] .keep-head { flex: 1; min-width: 0; gap: 12px; padding-left: 2px; }
.profile-group .keep-card[data-view="saved"] .keep-badge { width: 22px; height: 22px; border-radius: 0; background: none; }
.profile-group .keep-card[data-view="saved"] .keep-head-text b { font-size: 15px; }
.profile-group .keep-card[data-view="saved"] #keep-lead.synced { color: var(--muted); font-weight: 500; }
.profile-group .keep-card[data-view="saved"] .keep-view[data-view="saved"] { flex: none; }
.switch-row > .icon, .team-entry > .icon:first-child { flex: none; width: 22px; height: 22px; color: var(--muted); }
.switch-row > .switch-label { flex: 1; }
.switch-row { gap: 12px; }
.keep-card { align-items: stretch; gap: 12px; padding: 16px; }
.keep-head { display: flex; align-items: center; gap: 12px; }
.keep-badge { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #ffffff10; color: var(--muted); }
.keep-badge .icon { width: 22px; height: 22px; }
.keep-badge-done, .keep-card[data-view="saved"] .keep-badge-open { display: none; }
.keep-card[data-view="saved"] .keep-badge { background: #3ddc9724; color: #3ddc97; }
.keep-card[data-view="saved"] .keep-badge-done { display: block; }
.keep-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.keep-head-text b { font-size: 16px; }
.keep-head-text .sheet-lead { font-size: 13px; overflow-wrap: anywhere; }
.keep-view { display: none; flex-direction: column; gap: 8px; }
.keep-card[data-view="choose"] .keep-view[data-view="choose"],
.keep-card[data-view="switch"] .keep-view[data-view="switch"],
.keep-card[data-view="email"] .keep-view[data-view="email"],
.keep-card[data-view="code"] .keep-view[data-view="code"],
.keep-card[data-view="saved"] .keep-view[data-view="saved"] { display: flex; }
.keep-wide { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; border-radius: 14px; font-size: 15px; }
.keep-wide .icon { width: 18px; height: 18px; vertical-align: 0; }
.keep-wide.control { font-size: 15px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.keep-wide.control:hover { background: #ffffff0d; }
.keep-wide:disabled { opacity: .55; cursor: progress; }
.keep-link { align-self: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.keep-link:hover { color: var(--text); }
.keep-link:disabled { cursor: default; text-decoration: none; opacity: .7; }
.keep-back { display: none; }
.keep-card:is([data-view="switch"], [data-view="email"], [data-view="code"]) .keep-back { display: block; }
.keep-card .keep-back[hidden] { display: none; }
.keep-field { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #ffffff26; border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; font-size: 17px; }
.keep-field:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.keep-field::placeholder { color: #ffffff4d; }
.keep-code { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: 10px; font-variant-numeric: tabular-nums; padding-left: 24px; }
.keep-code::placeholder { letter-spacing: 8px; }
#name-sheet .keep-hint { margin: 0; text-align: center; font-size: 13px; line-height: 1.4; }
.keep-progress[hidden], .keep-progress [hidden] { display: none; }
.switch-row { white-space: nowrap; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: min(15px, 4.2vw); font-weight: 600; text-align: left; cursor: pointer; }
.switch-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.switch-row:disabled { cursor: progress; opacity: .6; }
.notice-kinds { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.notice-kinds[hidden] { display: none; }
.reminder-more { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: min(14px, 3.9vw); font-weight: 500; text-align: left; cursor: pointer; }
.reminder-more[hidden] { display: none; }
.reminder-more > span:first-child { flex: 1; }
.reminder-more:hover { color: var(--text); }
.reminder-more:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 8px; }
.reminder-count { font-variant-numeric: tabular-nums; }
.reminder-more .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.reminder-more[aria-expanded="true"] .icon { transform: rotate(180deg); }
.notice-kinds .switch-row { white-space: normal; min-height: 40px; font-size: min(14px, 3.9vw); font-weight: 500; color: var(--muted); }
.notice-kinds .switch-row[aria-checked="true"] { color: var(--text); }
.switch-row:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 8px; }
.switch-track { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: #ffffff2e; transition: background .2s var(--ease); }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0006; transition: transform .2s var(--ease); }
.switch-row[aria-checked="true"] .switch-track { background: #3ddc97; }
.switch-row[aria-checked="true"] .switch-track::after { transform: translateX(18px); }
@media (prefers-reduced-motion: reduce) { .switch-track, .switch-track::after { transition: none; } }
#keep-lead.synced { color: var(--text); font-weight: 600; }
.keep-note { margin: 0; }
.keep-mail-note { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center; }
.keep-note .link-button { padding: 2px; }
#keep-switch { padding: 2px 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.fair-count { margin: 0; padding: 12px 14px; border-radius: 12px; background: #ffffff0d; color: var(--text); font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.fair-count[hidden] { display: none; }

.club-entry { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid #7b61ff66; border-radius: 14px; background: linear-gradient(135deg, #7b61ff26, #7b61ff0d); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.club-entry:hover { background: #7b61ff33; }
.club-entry:focus-visible { outline: 2px solid #c3b6ff; outline-offset: 2px; }
.club-entry > .icon:first-child { width: 22px; height: 22px; color: #c3b6ff; }
.club-entry > .icon:last-child { width: 16px; height: 16px; color: var(--muted); transform: rotate(-90deg); }
.club-entry-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.club-entry-text b { font-size: 15px; }
.club-entry-text span { color: var(--muted); font-size: 13px; }

.club-perks { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.club-perk { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #ffffff0a; }
.club-perk > .icon { width: 22px; height: 22px; margin-top: 1px; color: #c3b6ff; }
.club-perk.got > .icon { color: #3ddc97; }
.club-perk-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.club-perk-title { font-size: 15px; font-weight: 800; }
.club-perk-detail { color: var(--muted); font-size: 13px; line-height: 1.4; }
.club-name { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 10px; border-radius: 999px; background: #ffffff0f; font-size: 13px; font-weight: 700; width: fit-content; max-width: 100%; }
.club-name .club-tag { margin-left: 0; }
.club-frame-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
.club-frame-pick .club-name { margin-top: 0; }
.club-swatches { display: flex; flex-wrap: wrap; gap: 8px; max-width: 232px; }
.club-swatch { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--frame); box-shadow: inset 0 0 0 2px #0006; cursor: pointer; transition: transform .15s var(--ease); }
.club-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg, #111), 0 0 0 4px var(--frame); transform: scale(1.05); }
.club-swatch:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.club-fair { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 13px; }
.club-fair[hidden] { display: none; }
.club-fair .icon { width: 16px; height: 16px; color: #3ddc97; }

.club-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.club-plans:empty { display: none; }
.club-plan { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 2px solid #ffffff1f; border-radius: 14px; background: #ffffff08; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.club-plan[aria-checked="true"] { border-color: #7b61ff; background: #7b61ff1f; }
.club-plan:focus-visible { outline: 2px solid #c3b6ff; outline-offset: 2px; }
.club-plan-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.club-plan-amount { display: flex; align-items: baseline; gap: 6px; }
.club-plan-price { font-size: 20px; font-weight: 800; }
.club-plan-per { color: var(--muted); font-size: 13px; font-weight: 600; }
.club-plan-was { color: var(--muted); font-size: 13px; font-weight: 600; }
.club-plan-note { margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #3ddc9726; color: #3ddc97; font-size: 11px; font-weight: 800; }
.club-plan-spots { margin-top: 2px; color: #ffd166; font-size: 12px; font-weight: 700; }

.club-sheet .primary { background: #7b61ff; color: #ffffff; }
.club-sheet[data-mode="member"] .primary, .club-sheet[data-mode="welcome"] .primary { background: var(--text); color: var(--bg); }
.club-waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }

body.untapped .ticker,
body.untapped .country-button,
body.untapped .section-label.soon { visibility: hidden; }

.match-bar { order: 11; flex: 1 0 100%; display: flex; flex-direction: column; gap: 6px; min-width: 0; cursor: default; }
.match-bar[hidden] { display: none; }
body.match-view .ticker, body.match-view .duel, body.match-view .country-button, body.match-view .country-list { display: none; }
html.duel-boot .ticker, html.duel-boot .duel, html.duel-boot .viewport > * { visibility: hidden; }
html.duel-boot .viewport { background: linear-gradient(#ffffff0f 0 0) 2px 2px / calc(100% - 4px) calc(50% - 4px) no-repeat, linear-gradient(#ffffff0f 0 0) 2px calc(100% - 2px) / calc(100% - 4px) calc(50% - 4px) no-repeat; }
.match-top { display: flex; align-items: center; gap: 8px; min-width: 0; container: duel-top / inline-size; }
.match-back { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #ffffff14; color: var(--text); cursor: pointer; }
.match-back .icon { width: 16px; height: 16px; }
.match-back:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.match-meta { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.match-scope { flex: 0 1 auto; display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.match-scope-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.match-scope .country-flag { flex: none; width: 14px; height: 14px; }
.match-by { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 600; opacity: .8; text-overflow: ellipsis; white-space: nowrap; }
@container duel-top (max-width: 560px) {
  .match-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); grid-template-areas: "scope clock" "by by"; align-items: center; row-gap: 3px; column-gap: 6px; }
  .match-scope { grid-area: scope; }
  .match-scope-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .match-clock { grid-area: clock; justify-self: start; max-width: 100%; min-width: 0; overflow: hidden; padding: 1px 7px; font-size: 11px; text-overflow: ellipsis; }
  .match-by { grid-area: by; }
}
.match-clock { flex: none; padding: 2px 8px; border-radius: 999px; background: #ff5a5f26; color: #ff7a7e; font-variant-numeric: tabular-nums; }
.match-bar.done .match-clock, .match-top.done .match-clock { background: #ffd16626; color: #ffd166; }
body.match-view .world { top: var(--reel-bar); }
.match-bar:not(:has(> :not([hidden]))) { display: none; }
.reel-page > .match-top { position: absolute; top: 0; left: 0; right: 0; z-index: 1; height: var(--reel-bar); padding: 0 12px 0 52px; border-bottom: 1px solid #ffffff1f; background: var(--bg); }
.match-own { flex: none; min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font: inherit; font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; touch-action: manipulation; }
.match-own[hidden], body:has(#duel-kickoff:not([hidden])) .match-own { display: none; }
.match-own:active { transform: scale(.98); }
.match-own:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.viewport > .match-back { position: absolute; top: calc((var(--reel-bar) - 28px) / 2); left: 12px; z-index: 6; background: #262a33; box-shadow: 0 0 0 1px #ffffff1f; }
.reel-nav { display: none; }
@media (hover: hover) and (pointer: fine) {
  .reel-nav { position: absolute; left: 10px; bottom: calc(env(safe-area-inset-bottom) + 10px); z-index: 6; display: flex; flex-direction: column; gap: 6px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
}
.reel-nav.idle:not(:hover, :has(:focus-visible)) { opacity: 0; transform: translateX(-8px); pointer-events: none; }
body.match-view .zoom { display: none; }
.reel-step { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #ffffff26; border-radius: 12px; background: #0f1115d9; color: var(--text); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.reel-step:hover { background: #1f232ce6; }
.reel-step:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.reel-step .icon { width: 20px; height: 20px; }
.reel-step .icon.flip { transform: rotate(180deg); }

.duel-states { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; border-radius: 12px; background: var(--bg); }
.duel-state { min-height: 36px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.duel-state[aria-pressed="true"] { background: #ffffff1a; color: var(--text); }
.duel-state:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.duel-start { padding-bottom: 12px; border-bottom: 1px solid #ffffff14; }
.duel-start[hidden], .duel-empty[hidden], #tappers-empty[hidden] { display: none; }
.duel-empty, #tappers-empty { margin: 0; }
.duel-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; row-gap: 6px; padding-inline: 10px; width: 100%; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: background-color .2s var(--ease), transform .3s var(--ease); }
.duel-row:hover { background: #ffffff14; }
.duel-row:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.duel-row-lines { display: grid; gap: 4px; min-width: 0; }
.duel-row-middle { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.duel-row.done .duel-row-join { display: none; }
.duel-row-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px; min-width: 0; }
.duel-row-name { min-width: 0; overflow: hidden; color: var(--muted); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.duel-row-points { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 2.6em; }
.duel-row-score { color: var(--side, var(--text)); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; filter: brightness(1.2); }
.duel-row-side:is(.leads, .won) .duel-row-name { color: var(--text); font-weight: 800; }
.duel-row-side:is(.leads, .won) .duel-row-score { font-weight: 900; }
.duel-row-side.lost { opacity: .5; }
.duel-row-side.won .duel-row-score { color: #ffd166; filter: none; }
.duel-row-join { flex: none; padding: 5px 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 900; line-height: 1.2; }
.duel-row-status { flex: none; color: var(--muted); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.duel-row-status:empty { display: none; }
.duel-row-trophy { flex: none; align-self: center; width: 14px; height: 14px; color: #ffd166; }
.duel-row-trophy[hidden] { display: none; }
.land.duel-lost { opacity: .45; transition: filter .15s, transform .35s var(--ease); }

.match-sheet .sheet-lead { margin-top: -4px; }
.match-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.match-choice { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon name name" "price price change"; align-items: center; gap: 4px 8px; min-width: 0; padding: 12px 14px; border: 2px solid #ffffff1f; border-radius: 14px; background: #ffffff08; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.match-choice .icon, .match-choice .country-flag { grid-area: icon; width: 20px; height: 20px; }
.match-choice-name { grid-area: name; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.match-choice-price { grid-area: price; color: var(--muted); font-size: 13px; font-weight: 700; }
.match-choice[aria-checked="true"] { border-color: var(--text); background: #ffffff14; }
.match-choice[aria-checked="true"] .match-choice-price { color: var(--text); }
.match-choice-change { grid-area: change; display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 12px; font-weight: 600; }
.match-choice-change .icon { width: 14px; height: 14px; }
.match-choice:disabled .match-choice-change { visibility: hidden; }
.match-choice:disabled { cursor: default; opacity: .6; }
.match-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.match-country { position: relative; display: grid; gap: 8px; }
.match-country[hidden], .match-status[hidden], .match-country-panel[hidden] { display: none; }
.match-country-chevron { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.match-choice[aria-expanded="true"] .match-country-chevron { transform: rotate(180deg); }
.match-country-panel { display: grid; gap: 6px; padding: 8px; border: 1px solid #ffffff1f; border-radius: 14px; background: #0f1115; }
.match-country-search { width: 100%; }
.match-country-list { position: static; max-height: min(40vh, 300px); margin: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; box-shadow: none; }
.match-country-list .search-result[aria-selected="true"] { background: #ffffff14; }
.match-country-list .search-result.active { outline: 2px solid var(--text); outline-offset: -2px; }
.match-status { margin: 0; font-size: 13px; font-weight: 600; }
.match-picks { display: flex; flex-direction: column; gap: 6px; }
.match-pick { position: relative; display: flex; flex-direction: column; gap: 6px; }
.match-input { width: 100%; font-size: 16px; }
.match-field { position: relative; }
.match-mark { position: absolute; top: 50%; left: 14px; display: flex; transform: translateY(-50%); pointer-events: none; }
.match-mark .result-mini-platform { width: 18px; height: 18px; margin: 0; }
.match-input.marked, .match-input.marked[readonly] { padding-left: 42px; }
.match-input[readonly] { min-height: 48px; padding: 0 14px; border-color: #ffffff14; background: var(--bg); font-size: 16px; cursor: default; }
.match-results { top: calc(48px + 4px); min-width: 0; max-height: 260px; overflow-y: auto; }
.match-results .search-result { grid-template-columns: auto 1fr; }
.match-results .icon { width: 16px; height: 16px; }
.match-state { margin: 0; }
.match-state:empty { display: none; }
.match-vs { align-self: center; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.day-stat { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; }
.day-taps { margin: 0; color: var(--muted); font-size: 15px; font-weight: 700; }
.day-count { color: var(--text); font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.day-streak { display: flex; align-items: center; gap: 6px; margin: 0; color: #ffb27a; font-size: 14px; font-weight: 700; }
.day-streak .icon { width: 16px; height: 16px; }
.day-streak[hidden], .day-team[hidden], .day-score[hidden], .day-tomorrow[hidden], .day-actions > [hidden] { display: none; }
.day-team { margin: 0; font-size: 14px; font-weight: 700; }
.day-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #ffffff0d; font-variant-numeric: tabular-nums; }
.day-side { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.day-side:last-child { align-items: flex-end; text-align: right; }
.day-side b { color: var(--text); font-size: 18px; font-weight: 900; }
.day-side.mine { color: var(--text); }
.day-side span { overflow-wrap: anywhere; }
.day-vs { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.day-actions { display: flex; flex-direction: column; gap: 8px; }
.day-actions .control { min-height: 44px; font-size: 15px; }
.day-actions .control:disabled { opacity: .6; }

.land-flag {
  --flag-size: calc(100cqmin * .26);
  position: absolute;
  z-index: 3;
  bottom: calc(100cqmin * .05 + var(--rim));
  width: var(--flag-size);
  height: var(--flag-size);
  padding: 0;
  border: 0;
  background: none;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 calc(var(--flag-size) * .04) calc(var(--flag-size) * .06) #0f111566);
  transition: opacity .2s;
}
.land-flag[hidden] { display: none; }
.land-flag { left: calc(100cqmin * .05 + var(--rim)); }
.land-flag svg { display: block; width: 100%; height: 100%; overflow: visible; }
.land-flag-pole { fill: #f4f5f7; stroke: #0f1115; stroke-width: .9; }
.land-flag-cloth { transform-box: fill-box; transform-origin: 0 50%; animation: flag-wave 2.4s ease-in-out infinite; }
.land-flag-cloth path { fill: var(--flag-color); stroke: #0f1115; stroke-width: .9; stroke-linejoin: round; }
.land-flag-cloth text { fill: var(--flag-ink); font-size: 8.5px; font-weight: 900; }
.land-flag:focus-visible { outline: .1em solid #fff; outline-offset: .1em; border-radius: 4px; }
@keyframes flag-wave {
  0%, 100% { transform: skewY(0deg) scaleX(1); }
  50% { transform: skewY(-5deg) scaleX(.93); }
}
@media (prefers-reduced-motion: reduce) {
  .land-flag-cloth { animation: none; }
}

.flag-winner { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; cursor: pointer; }
.flag-facts { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.flag-left, .flag-series { margin: 0; color: var(--text); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.flag-series { color: var(--muted); font-weight: 600; }
.flag-other { white-space: pre-line; }
.flag-other[hidden] { display: none; }
.flag-duel { min-height: 48px; border: 1px solid #ffffff26; border-radius: 14px; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.flag-duel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.duel-kickoff { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); padding: 14px; border-radius: 20px; background: #11141aeb; box-shadow: 0 12px 32px #0008; transform: translateX(-50%); }
.duel-kickoff[hidden] { display: none; }
.duel-kickoff-go { min-height: 52px; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.duel-kickoff-go:disabled { opacity: .7; cursor: default; }
.duel-kickoff-go[hidden] { display: none; }
.duel-kickoff-go.quiet { background: none; color: var(--text); box-shadow: inset 0 0 0 1px #ffffff40; }
.duel-kickoff-go:active { transform: scale(.98); }
.duel-kickoff-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; text-align: center; }
.duel-kickoff.ready .duel-kickoff-note { order: 3; }
.result-mini-platform { flex: none; width: 14px; height: 14px; margin-right: 6px; fill: currentColor; vertical-align: -2px; }

.heist-button { display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; color: #ffb3b6; border-color: #ff5a5f66; }
.heist-button[hidden] { display: none; }
.heist-button.live { background: #c8232c; color: #fff; border-color: #ff8a8f; animation: heist-pulse 1.6s var(--ease) infinite; }
.heist-button.live.active { animation: none; background: #0f1115e6; color: #ff8a8f; }
@keyframes heist-pulse { 50% { box-shadow: 0 0 0 6px #ff5a5f33; } }
.heist-bar {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  left: 50%;
  z-index: 19;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: #c8232c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  transform: translateX(-50%);
  box-shadow: 0 6px 24px #0008;
  white-space: nowrap;
}
.heist-bar[hidden] { display: none; }
.heist-bar-title { display: inline-flex; align-items: center; gap: 6px; }
.heist-bar .icon { width: 16px; height: 16px; }
.heist-bar-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.heist-bag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #0f1115b3; font-variant-numeric: tabular-nums; }
.heist-bag.got { animation: heist-got .3s var(--ease); }
@keyframes heist-got { 40% { transform: scale(1.1); } }
.heist-exit { min-height: 30px; padding: 4px 12px; border: 0; border-radius: 999px; background: #fff; color: #c8232c; font: inherit; font-weight: 700; cursor: pointer; }
.heist-minus { position: fixed; z-index: 21; color: #ff5a5f; font-weight: 800; font-size: 18px; pointer-events: none; text-shadow: 0 1px 4px #000; }
body.heist-mode .land { --color: #5c1a1f !important; --ink: #ffd6d8 !important; }
body.heist-mode .land.heist-locked { --color: #23262d !important; --ink: #8b919c !important; }
body.heist-mode .land.heist-locked[data-heist]::after { content: attr(data-heist); position: absolute; left: 50%; bottom: 6%; z-index: 4; max-width: 92%; overflow: hidden; padding: 1px 6px; border-radius: 999px; background: #0f1115cc; color: #e6e8ec; font-size: clamp(8px, 1.1em, 12px); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
body.heist-mode .land.heist-open::before { content: ""; position: absolute; inset: var(--gap); z-index: 1; border: 2px solid #ff5a5f; border-radius: inherit; pointer-events: none; }
body.heist-mode .land.heist-revenge { --color: #5a4300 !important; --ink: #ffe08a !important; }
body.heist-mode .land.heist-revenge::before { border: 3px solid #ffc83d; box-shadow: inset 0 0 18px #ffc83d80; }
body.heist-mode .land.heist-revenge[data-heist]::after { content: attr(data-heist); position: absolute; left: 50%; bottom: 6%; z-index: 4; max-width: 92%; overflow: hidden; padding: 1px 6px; border-radius: 999px; background: #ffc83d; color: #2a1f00; font-size: clamp(8px, 1.1em, 12px); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.land.heist-shield::before { content: ""; position: absolute; inset: var(--gap); z-index: 1; border: 3px solid #7cc4ff; border-radius: inherit; box-shadow: inset 0 0 18px #7cc4ff80; pointer-events: none; }
body.heist-mode .land.heist-shield { --color: #16324a !important; --ink: #cfe8ff !important; }
body.heist-mode .ticker, body.heist-mode .match-bar { opacity: .35; }
body.heist-mode .land-visit { display: none; }
body.heist-mode .land :is(.land-flag, .land-reward, .land-duel, .land-badge), body.heist-mode .land .land-tap::after, body.heist-mode .land .land-rank-number::after { filter: grayscale(1) !important; }
.heist-cta { display: none; }
body.heist-mode .toast { bottom: calc(env(safe-area-inset-bottom) + 64px); }
body.heist-mode .zoom { bottom: calc(env(safe-area-inset-bottom) + 64px); }
@media (max-width: 720px) {
  .top .heist-button { order: 4; flex: 1 0 100%; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 14px; font-size: 13px; letter-spacing: .02em; }
  .top .heist-button .control-label { display: inline; font-weight: 800; text-transform: uppercase; }
  .top .heist-button .heist-cta { display: inline; margin-left: auto; font-weight: 800; }
  .top .heist-button .heist-cta::after { content: " ›"; }
  .top .heist-button .icon { width: 16px; height: 16px; }
  body:not(.heist-mode) .top:has(.heist-button:not([hidden])) .ticker { display: none; }
  body.heist-mode .top .heist-button { display: none; }
}
.fans-heist { display: grid; gap: 4px; margin: 8px 0 12px; padding: 12px; border: 1px solid #ff5a5f55; border-radius: 12px; background: #1a0b0d; }
.fans-heist[hidden] { display: none; }
.heist-title { margin: 0 0 4px; color: #ff8a8f; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.heist-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.heist-row.lost, .heist-row.won { color: var(--text); font-weight: 700; }
.heist-row.lost b { color: #ff5a5f; }
.heist-row.won b { color: #5ad18a; }
.heist-go { margin-top: 8px; min-height: 40px; border: 0; border-radius: 999px; background: #c8232c; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.heist-go:disabled { background: #2a2d34; color: var(--muted); cursor: default; }
.heist-call, .heist-duel { min-height: 40px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.heist-call { border: 0; background: #ffd6d8; color: #5c1a1f; }
.heist-duel { border: 1px solid #3a3e47; background: transparent; color: var(--text); }

.duel-burst { position: fixed; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 16px; box-sizing: border-box; pointer-events: none; animation: duel-burst-in .3s cubic-bezier(.2, .9, .3, 1.3) both; }
.duel-burst::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at center, #0009 0, #0006 35%, #0000 70%); }
.duel-burst.leaving { animation: duel-burst-out .4s ease-in both; }
.duel-burst-mark { display: grid; place-items: center; width: clamp(120px, 22vmin, 200px); aspect-ratio: 1; border: 4px solid #fff; border-radius: 50%; background: #0f1115; color: #fff; box-shadow: 0 0 0 clamp(14px, 2.6vmin, 24px) #ff8a3d55, 0 0 0 clamp(30px, 5.6vmin, 52px) #22d3ee33, 0 12px 40px #000a; }
.duel-burst-mark .icon { width: 56%; height: 56%; }
.duel-burst-title { color: #fff; font-size: clamp(36px, 7vmin, 56px); font-weight: 800; line-height: 1; text-shadow: 0 2px 12px #000; }
.duel-burst-names { max-width: 100%; overflow: hidden; padding: 8px 16px; border-radius: 999px; background: #0f1115e6; color: #fff; font-size: clamp(16px, 3vmin, 22px); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
@keyframes duel-burst-in { from { opacity: 0; transform: scale(.6); } }
@keyframes duel-burst-out { to { opacity: 0; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .duel-burst, .duel-burst.leaving { animation-name: duel-burst-fade; } @keyframes duel-burst-fade { from { opacity: 0; } } .duel-burst.leaving { animation-direction: reverse; } }
.duel-burst.flying::before { animation: duel-burst-fade-out .3s ease-out both; }
.duel-burst.flying :is(.duel-burst-title, .duel-burst-names) { animation: duel-burst-fade-out .2s ease-in both; }
@keyframes duel-burst-fade-out { to { opacity: 0; } }
.duel.landed { animation: duel-landed .6s var(--ease); }
@keyframes duel-landed { 40% { transform: scale(1.03); box-shadow: 0 0 0 3px #fff, 0 0 24px #ffffff80; } }
@media (prefers-reduced-motion: reduce) { .duel.landed { animation: none; } }

.tick-parts { display: inline-flex; align-items: center; gap: 0; white-space: pre; }
.tick-flag { display: inline-block; flex: none; width: 15px; height: 15px; margin: 0 .2em; border-radius: 50%; box-shadow: 0 0 0 1px #ffffff26; }
.tick-parts > .tick-flag:first-child { margin-left: 0; }
