:root {
  color-scheme: dark;
  --paper: #000;
  --surface: #131419;
  --raised: #1d1e26;
  --ink: #faf8f4;
  --muted: #b2b3c1;
  --line: #383947;
  --sea: #101525;
  --land: #484967;
  --accent: #dcff59;
  --selected: #ff70b6;
  --green: #59e6bc;
  --blue: #5bc8fa;
  --purple: #bd9cff;
  --rust: #ffa867;
  --claimed: #ffd23f;
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--body);
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.46;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.shell {
  width: min(1420px, calc(100% - 88px));
  margin-inline: auto;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.masthead .main-nav { margin-right: auto; margin-left: 12px; }
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 700 27px var(--display);
  text-decoration: none;
  white-space: nowrap;
}
.compass {
  color: var(--accent);
  font: 34px/1 var(--display);
}
nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
nav a {
  text-decoration: none;
}
.primary {
  background: var(--accent);
  color: #10140a;
  text-decoration: none;
  border-radius: 7px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 28px;
}
.hero h1 {
  font: 700 clamp(49px, 7vw, 105px) / 0.93 var(--display);
  letter-spacing: -0.068em;
  margin: 0;
}
.hero em {
  color: var(--accent);
  font-weight: 500;
}
.hero p {
  max-width: 500px;
  color: var(--muted);
  margin: 16px 0 0;
  font-size: 15px;
}
.how-widget {
  flex: 0 1 540px;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--raised);
  border-radius: 8px;
  padding: 10px 14px;
}
.how-head { min-width: 0; }
.how-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.how-widget h2 { font: 700 17px/1.2 var(--display); margin: 0; }
.hero .how-note.founding-note, .hero .how-note.free-note { grid-column: 1 / -1; margin: 0; color: var(--accent); font-weight: 650; text-wrap: pretty; }
.hero .how-note { margin: 2px 0 0; font-size: 14px; max-width: none; line-height: 1.3; }
.how-widget ol { grid-column: 1 / -1; list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.how-widget li { counter-increment: how; display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.25; }
.how-widget li::before {
  content: counter(how);
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 700;
}
.how-actions { display: flex; align-items: center; gap: 6px 16px; }
.how-actions .primary { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
.how-guide { color: var(--accent); font-size: 14px; white-space: nowrap; }
.atlas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.map-panel {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.map-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.map-caption span {
  color: var(--muted);
  font-size: 14px;
}
.map-inventory { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 10px; }
.map-inventory b { color: var(--ink); font-variant-numeric: tabular-nums; }
.map-inventory span:nth-child(2) b { color: var(--accent); }
.map-window {
  background: radial-gradient(ellipse at 47% 38%, #1b2340, var(--sea));
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
  overflow: hidden;
}
.map-window svg {
  width: 100%;
  display: block;
  touch-action: pan-y;
}
.map-window svg.zoomed {
  touch-action: none;
}
.graticule {
  fill: none;
  stroke: #566689;
  stroke-width: 0.45;
  opacity: 0.55;
  pointer-events: none;
}
.land {
  fill: var(--land);
  stroke: #a1a0bd;
  stroke-width: 0.53;
  stroke-linejoin: round;
}
.land[data-country],
.marker {
  cursor: pointer;
}
.land[data-country]:hover,
.land.is-selected {
  fill: var(--selected);
  stroke: #ffd7eb;
  stroke-width: 1.2;
}
.land.claimed:not(.is-selected) {
  fill: var(--claimed);
  stroke: #fff3b8;
  stroke-width: 0.9;
}
.land.claimed.is-selected {
  stroke: var(--selected);
  stroke-width: 2;
}
.marker .dot {
  fill: var(--accent);
  stroke: #141821;
  stroke-width: 1;
}
.marker:hover .dot,
.marker.is-selected .dot {
  fill: var(--selected);
  stroke-width: 2;
}
.profile {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(14px, 3vw, 24px);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 65px #192a3040;
}
.profile::backdrop { background: #192a3070; }
.profile-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.profile-heading h2 { font: 700 27px var(--display); margin: 0; }
.profile-close { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: 5px; font-size: 23px; }
.profile-link { display: inline-block; margin-top: 8px; font-size: 14px; }
.map-claim-hint {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  max-width: calc(100% - 8px);
  padding: 5px 9px;
  border-radius: 5px;
  background: var(--accent);
  color: #10140a;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}
#profile-claim-note { margin: -7px 0 14px; color: var(--muted); font-size: 14px; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; max-width: 760px; }
#profile-form { display: grid; gap: 9px; align-content: start; }
#profile-form label { display: grid; gap: 4px; font-weight: 650; }
#profile-form input { width: 100%; background: var(--raised); padding: 8px; border: 1px solid var(--line); border-radius: 5px; }
#profile-form button { justify-self: start; border: 0; }
#profile-form button.secondary { background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
#profile-form button.secondary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#profile-form button[hidden], #profile-form small[hidden] { display: none; }
#profile-form small { font-size: 14px; }
.profile-preview { overflow-wrap: anywhere; }
#preview-map { display: block; width: 100%; height: 190px; background: var(--sea); border-radius: 5px; }
#preview-logo { max-width: 120px; max-height: 100px; }
.preview-land { fill: #30324a; stroke: #484967; stroke-width: 0.5; vector-effect: non-scaling-stroke; }
.preview-country { fill: var(--blue); stroke: #a1a0bd; stroke-width: 0.5; vector-effect: non-scaling-stroke; }
.preview-ring { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.preview-dot { fill: var(--accent); stroke: #141821; stroke-width: 1; vector-effect: non-scaling-stroke; }
.preview-badge { fill: #faf8f4; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.map-actions {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  gap: 3px;
}
.map-actions button {
  width: 44px;
  height: 44px;
  border: 1px solid #aebdb8;
  background: var(--surface);
  border-radius: 5px;
  font-size: 19px;
  line-height: 1;
}
.map-control { position: relative; display: block; }
.map-tooltip {
  display: none;
  position: absolute;
  left: calc(100% + 7px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
}
.map-control:has(button:focus-visible) .map-tooltip { display: block; }
@media (hover: hover) {
  .map-control:hover .map-tooltip { display: block; }
}
.legend {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend small {
  margin-left: auto;
  font-size: 14px;
}
.swatch,
.country-state {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--land);
}
.swatch.claimed,
.country-state.claimed {
  background: var(--claimed);
}
.swatch.selected {
  background: var(--selected);
}
.side {
  grid-column: 2;
  grid-row: 1;
  border-left: 1px solid var(--line);
  padding: 15px 13px 12px;
  min-width: 0;
}
.side label {
  display: block;
  font-weight: 680;
  font-size: 14px;
  margin-bottom: 7px;
}
.country-tools { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 7px; }
.country-tools label { margin: 0; white-space: nowrap; }
.country-tools select { min-width: 0; max-width: 55%; padding: 3px 4px; background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; font: 14px var(--body); }
.side input {
  width: 100%;
  background: var(--raised);
  border: 1px solid var(--line);
  padding: 8px 9px;
  border-radius: 6px;
  font-size: 14px;
  min-height: 40px;
}
.country-list {
  margin: 7px 0 12px;
  max-height: 150px;
  overflow: auto;
}
.country-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 34px;
  padding: 5px 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font-size: 14px;
}
.country-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.country-row i {
  flex: none;
}
.country-row strong {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.country-row:hover,
.country-row[aria-current] {
  background: var(--raised);
}
.country-row:focus-visible {
  outline-offset: -3px;
}
.details {
  border: 1px solid var(--line);
  background: var(--raised);
  border-radius: 8px;
  padding: 12px;
}
.details h2 {
  font: 700 26px/1.05 var(--display);
  margin: 7px 0;
}
.details p {
  font-size: 14px;
  color: var(--muted);
  margin: 5px 0;
}
.status {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}
.details .price {
  font: 700 29px var(--display);
  color: var(--ink);
}
.details .price s { font-weight: 500; color: var(--muted); }
.price small {
  font: 650 14px var(--body);
}
.details .preview-note {
  color: var(--muted);
  margin-top: 8px;
  min-height: 21px;
}
.details a.profile-link {
  display: flex;
  width: 100%;
  margin-top: 10px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin: 20px 0 10px;
}
.section-heading h2,
.how h2 {
  font: 700 29px var(--display);
  margin: 0;
}
.section-heading p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.startup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.startup-card {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
}
.startup-card:hover {
  border-color: var(--accent);
}
.startup-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 5px;
  color: #11131d;
  background: var(--blue);
  font: 700 20px var(--display);
  flex: none;
}
.startup-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
}
.startup-card {
  color: inherit;
  text-decoration: none;
  font: inherit;
}
.startup-cta {
  grid-column: 1 / -1;
  justify-content: center;
  font-weight: 650;
  font-size: 16px;
  cursor: pointer;
}
.startup-card:focus-visible {
  outline: 2px solid var(--selected);
  outline-offset: 2px;
}
.startup-card strong,
.startup-card small {
  display: block;
}
.startup-card small {
  color: var(--muted);
  font-size: 14px;
}
.card-arrow {
  margin-left: auto;
  color: var(--muted);
}
.how {
  padding: 30px 0 24px;
  max-width: 530px;
}
.how p {
  color: var(--muted);
  font-size: 14px;
}
footer {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 960px) {
  .shell {
    width: calc(100% - 42px);
  }
  .atlas {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}
@media (max-width: 680px) {
  .shell {
    width: calc(100% - 26px);
  }
  .masthead {
    min-height: 60px;
  }
  .brand {
    font-size: 22px;
    gap: 4px;
  }
  .compass {
    font-size: 26px;
  }
  .masthead { flex-wrap: wrap; gap: 0 10px; padding-top: 6px; }
  .masthead .main-nav { margin-left: 0; order: 3; flex: 1 0 100%; gap: 4px; font-size: 15px; margin-bottom: 4px; }
  .main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px 16px; }
  .primary {
    font-size: 14px;
    padding: 8px 9px;
  }
  .hero {
    padding: 24px 0 19px;
  }
  .hero h1 {
    font-size: clamp(39px, 10vw, 67px);
  }
  .hero p {
    font-size: 14px;
    margin-top: 10px;
  }
  .hero { flex-direction: column; align-items: stretch; }
  .how-widget { flex: none; grid-template-columns: 1fr; }
  .how-actions { order: 3; }
  .how-widget ol { grid-template-columns: 1fr; gap: 6px; }
  .how-actions { flex-wrap: wrap; }
  .atlas {
    display: flex;
    flex-direction: column;
  }
  .map-window {
    min-height: 280px;
  }
  .map-actions {
    left: 8px;
    bottom: 8px;
    display: flex;
  }
  .map-panel { order: 1; }
  .side {
    order: 2;
    border-left: 0;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
  }
  /* The details panel comes right after the map, before the long country list. */
  #country-details { order: -1; margin-bottom: 12px; }
  .legend small {
    margin-left: 0;
  }
  .startup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-heading h2 {
    font-size: 24px;
  }
}
@media (max-width: 760px) {
  .country-row { min-height: 44px; }
  .country-list { max-height: 230px; }
  footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .report summary { min-height: 44px; display: flex; align-items: center; }
}
@media (min-width: 761px) and (min-height: 550px) {
  body {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 100dvh;
  }
  body { container-type: inline-size; }
  body:has(.egg-bar:not([hidden])) { grid-template-rows: auto auto minmax(0, 1fr) auto; }
  main.shell {
    --side-width: 260px;
    --shell-gutter: 88px;
    --atlas-max: calc((min(1420px, 100cqw - var(--shell-gutter)) - var(--side-width) - 2px) * 552 / 1040 + 63px);
    min-height: 0;
    display: grid;
    align-content: start;
    /* AC-130: the map keeps a floor of its own (400 px, 55 % of the height on short windows); the startups section moves below the fold instead of squeezing it. */
    --map-min: 400px;
    --map-chrome: 63px;
    --above-map: 300px; /* egg bar, masthead, hero and footer */
    grid-template-rows: auto max(min(calc(var(--map-min) + var(--map-chrome)), var(--atlas-max)), min(var(--atlas-max), calc(100dvh - var(--above-map)))) auto auto;
  }
  .masthead { min-height: 53px; }
  .hero { padding: 12px 0 11px; }
  .hero h1 { font-size: clamp(33px, min(4.8vw, 7.8vh), 76px); white-space: nowrap; }
  .hero p { max-width: none; margin-top: 7px; font-size: 14px; }
  .atlas, .map-panel, .map-window, .side { min-height: 0; }
  /* At zoom-out the viewport gets very tall: the panel height follows the map's
     native aspect ratio (1040x552) plus caption/legend chrome instead of filling
     the free height; the country list scrolls inside the side column. */
  .map-window svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .side { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
  .side > :not(.country-list) { flex: none; }
  .country-list { flex: 1 1 180px; max-height: none; min-height: 180px; }
  .map-caption { padding-block: 5px; }
  .legend { padding-block: 4px; }
  .startups .section-heading { margin: 12px 0 4px; }
  .startups .section-heading h2 { font-size: 17px; }
  .startup-card { padding: 4px 8px; }
  .startup-mark { width: 27px; height: 27px; font-size: 16px; }
  footer { padding: 3px 0; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .hero { flex-direction: column; align-items: stretch; }
  .how-widget { flex: none; }
}
@media (min-width: 761px) and (max-width: 960px) and (min-height: 550px) {
  main.shell { --side-width: 220px; --shell-gutter: 42px; }
}
@media (min-width: 761px) and (min-height: 550px) and (max-height: 740px) {
  .side { padding-block: 9px; }
  .country-list { margin-block: 4px; min-height: 180px; }
  #country-details { padding: 8px; }
  #country-details h2 { font-size: 20px; margin-block: 3px; }
  #country-details .price { font-size: 23px; }
  #country-details .placement-note { display: none; }
  .profile-link { margin-top: 3px; }
  /* Short windows: the map is only a few hundred pixels high, so the zoom controls run as a row instead of a stack and stay inside it. */
  .map-actions { display: flex; }
}
/* AC-121: short laptop windows (550-740 px high). The hero shrinks to one title row plus the offer line so the map keeps at least 55 % of the viewport height; the three steps live on /how-it-works (link stays in the hero). */
@media (min-width: 761px) and (min-height: 550px) and (max-height: 740px) {
  .masthead { min-height: 60px; }
  .hero > div { min-width: 0; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 2px 16px; padding: 6px 0 5px; }
  .hero h1 { font-size: clamp(26px, 4vw, 40px); }
  .hero > div > p { display: none; }
  .how-widget { display: contents; }
  .how-head { display: contents; }
  .how-title-row { grid-column: 2; grid-row: 1; flex-wrap: nowrap; align-items: baseline; }
  .how-widget h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* The caption and legend need about 90 px here (63 px normally), so the map can use its native aspect ratio. */
  main.shell { --atlas-max: calc((min(1420px, 100cqw - var(--shell-gutter)) - var(--side-width) - 2px) * 552 / 1040 + 92px); --map-min: 55dvh; --map-chrome: 92px; --above-map: 200px; }
  .how-actions { grid-column: 3; grid-row: 1; }
  .how-actions .primary { min-height: 34px; padding-block: 4px; }
  .how-widget ol { display: none; }
  .hero .how-note { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .how-head .how-note { display: none; }
  .how-widget:not(:has(.founding-note, .free-note)) .how-head .how-note { display: block; }
  .hero .how-note.founding-note, .hero .how-note.free-note { grid-row: 2; }
  .startups .section-heading { margin: 4px 0 2px; }
  .startups .section-heading h2 { font-size: 14px; }
  .legend { padding-block: 2px; }
  .map-caption { padding-block: 3px; }
}
@media (min-width: 761px) and (max-width: 960px) and (min-height: 550px) and (max-height: 740px) {
  main.shell { --side-width: 196px; }
  .hero h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.country-page { display: block; height: auto; }
main.shell.directory { display: block; padding-block: 24px; }
.directory h1 { font: 700 clamp(34px, 6vw, 62px)/1.05 var(--display); margin: 8px 0 12px; }
.directory .details { max-width: 540px; }
.directory-map { display: inline-block; margin-top: 14px; }
.directory-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; gap: 7px; }
.directory-list a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); text-decoration: none; }
.directory-list a:hover { border-color: var(--accent); }
.directory-list strong { color: var(--muted); white-space: nowrap; font-size: 14px; }

.claim { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.claim h3 { font: 700 22px var(--display); margin: 0 0 10px; }
/* The dialog title already names the action: the claim heading stays for screen readers and keeps focus (AC-116). */
#claim-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
#claim-form { display: grid; gap: 8px; }
#claim-form > :not(.claim-actions) { max-width: 420px; }
#claim-form label { font-weight: 650; font-size: 14px; }
#claim-company { width: 100%; background: var(--raised); padding: 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 16px; }
#claim-form .check { display: flex; align-items: center; gap: 8px; }
#claim-form .check input { width: 20px; height: 20px; margin: 0; }
#claim-form small, .claim-demo { font-size: 14px; color: var(--muted); }
.claim-price { font: 700 20px var(--display); margin: 4px 0; }
.claim-seasons { border: 0; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.claim-seasons legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
#claim-form .choice { display: flex; align-items: center; gap: 8px; }
#claim-form .choice input { width: 20px; height: 20px; margin: 0; }
.takeover-notice, .takeover-summary { margin: 8px 0; font-size: 14px; }
.takeover-note { font-size: 14px; color: var(--muted); }
.founding-badge { display: inline-block; margin: 4px 0; padding: 2px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 14px; font-weight: 700; }
.claim-founding { font-size: 14px; margin: 2px 0 6px; }
.claim-free { border: 1px solid var(--accent); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.claim-free p { font-size: 14px; margin: 0 0 8px; }
.claim-free .primary { min-height: 44px; display: inline-flex; align-items: center; border: 0; font-size: 15px; cursor: pointer; }
.claim-free .primary:disabled { opacity: 0.6; cursor: progress; }
.free-offer { font-size: 14px; font-weight: 650; color: var(--accent); margin: 8px 0; }
/* Free first (AC-111 owner feedback): while the free offer shows, the paid price and seasons read as secondary. */
#claim.free-first .claim-price, #claim.free-first .claim-seasons { font-size: 14px; color: var(--muted); }
#claim.free-first #claim-founding { display: none; }
.claim-price s { color: var(--muted); font-weight: 400; }
#claim-status { min-height: 5.2rem; margin: 0; font-size: 14px; }
#claim-logo-reason { margin: 0; }
.claim-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.claim-actions .primary, .claim-actions .secondary { min-height: 44px; display: inline-flex; align-items: center; border: 0; font-size: 15px; cursor: pointer; }
.claim-actions .primary:disabled { opacity: 0.6; cursor: progress; }
.renew-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; max-width: 100%; white-space: normal; text-align: center; overflow-wrap: anywhere; border: 0; font-size: 15px; cursor: pointer; margin-top: 8px; }
.profile-renewals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.profile-renewals[hidden] { display: none; }
.claim-actions .secondary { background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 10px 15px; }
.claim a:focus-visible, .claim button:focus-visible, .claim input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.details .claimed-by, .details .claimed-until { font-size: 14px; }
.watch { margin-top: 12px; }
.watch-button { min-height: 44px; padding: 10px 16px; font: inherit; font-weight: 700; border: 2px solid var(--accent); border-radius: 7px; background: transparent; color: var(--accent); cursor: pointer; }
.watch-button[aria-pressed="true"] { background: var(--accent); color: #101525; }
.watch-button:disabled { opacity: .6; cursor: progress; }
.watch-status { margin: 4px 0 0; min-height: 3em; font-size: 14px; }
.details a.sponsor-link { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--accent); }

.signin { max-width: 420px; }
.signin h3 { font: 700 22px var(--display); margin: 0 0 10px; }
#signin-form { display: grid; gap: 8px; }
#signin-form label { font-weight: 650; font-size: 14px; }
#signin-email { width: 100%; background: var(--raised); padding: 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 16px; }
#signin-form small, .profile-account { font-size: 14px; color: var(--muted); }
.human-check { display: grid; gap: 4px; }
.human-label { font-weight: 650; font-size: 14px; }
#signin-status { min-height: 1.4em; margin: 0; font-size: 14px; }
#signin-expired { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
#signin-form .primary { min-height: 44px; border: 0; font-size: 15px; cursor: pointer; }
#signin-form .primary:disabled { opacity: 0.6; cursor: progress; }
.profile-account { margin: -8px 0 14px; }
.link-button { background: none; border: 0; padding: 4px 2px; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.signin input:focus-visible, .signin button:focus-visible, .link-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Share step and live country pages */
#share-slot h3 { font: 700 18px var(--display); margin: 14px 0 6px; }
.share-text { font-size: 15px; margin: 0 0 10px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-link { min-height: 44px; display: inline-flex; align-items: center; font: inherit; font-size: 15px; cursor: pointer; text-decoration: none; background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 10px 15px; }
.share-link:hover { border-color: var(--accent); }
.share-card { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; white-space: normal; text-decoration: none; margin: 0 0 6px; }
.share-hint { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.share-confirm { font-size: 14px; color: var(--muted); min-height: 21px; margin: 6px 0 0; }
.share-own-link { overflow-wrap: anywhere; }
.share-badge { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; justify-items: start; }
.share-badge h4 { font: 700 16px var(--display); margin: 0; }
.share-badge .share-hint { margin: 0; }
.share-badge textarea { width: 100%; font: 13px ui-monospace, Consolas, monospace; }
.holder { display: grid; gap: 8px; justify-items: start; }
.holder h2, .holder p { margin: 0; }
.holder-logo { object-fit: contain; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.nearby { margin: 24px 0 8px; }
.nearby h2 { font-size: 20px; margin: 0 0 10px; }
.claim-link { display: inline-block; margin: 14px 10px 0 0; }
.legal { max-width: 720px; }
.legal h1 { font: 700 clamp(34px, 6vw, 52px)/1.05 var(--display); margin: 8px 0 12px; }
.legal h2 { font-size: 20px; margin: 24px 0 6px; }
.legal p, .legal li { line-height: 1.5; font-size: 16px; max-width: 68ch; }
/* The How-it-works article reuses the home page's .how section classes. Their
   desktop-only rules (min-width 761px and min-height 550px) turn .how into a
   flex row, which lays out the article's children side by side and makes the
   page wider than the viewport. Restore block flow for the article itself. */
.legal.how { display: block; max-width: 720px; padding: 30px 0 24px; }
.legal.how p { margin: 1em 0; }
.legal.how p, .legal.how li { font-size: 16px; max-width: 68ch; }
footer.shell { flex-wrap: wrap; gap: 6px 16px; }
/* AC-134: second footer row; absent entirely when the list is empty. */
.featured-on { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--muted); }
.featured-on a { display: inline-flex; align-items: center; min-height: 24px; max-width: 100%; }
.featured-on img { display: block; height: auto; max-height: 40px; max-width: 100%; width: auto; }

.report { margin-top: 12px; font-size: 14px; }
.report summary { cursor: pointer; min-height: 24px; color: var(--accent); }
.report form { display: grid; gap: 8px; margin-top: 8px; max-width: 520px; }
.report label { font-weight: 700; }
.report textarea { width: 100%; box-sizing: border-box; min-height: 120px; resize: vertical; font: inherit; font-size: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.report-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.report button { min-height: 44px; padding: 10px 18px; font: inherit; font-weight: 700; border: 0; border-radius: 7px; background: var(--accent); color: #10140a; cursor: pointer; }
.report-status { margin: 0; min-height: 21px; }

.main-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.how h3 { font-size: 18px; margin: 18px 0 4px; }
.how ol { padding-left: 22px; line-height: 1.5; }
.how li { margin-bottom: 6px; }
.how .primary { display: inline-block; margin-top: 12px; }

/* Wide screens: form and preview on the left, price and payment on the right, so the whole claim fits one screen. */
@media (min-width: 900px) {
  .profile:has(#claim:not([hidden])) { width: min(1080px, calc(100% - 28px)); padding: 12px 22px 10px; }
  .profile[open]:has(#claim:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 26px;
    align-content: start;
    grid-auto-flow: row;
  }
  .profile:has(#claim:not([hidden])) > :not(.profile-grid):not(.claim) { grid-column: 1 / -1; }
  .profile:has(#claim:not([hidden])) .profile-heading { margin-bottom: 2px; }
  .profile:has(#claim:not([hidden])) .profile-heading h2 { font-size: 24px; }
  .profile:has(#claim:not([hidden])) #profile-status { margin: 6px 0 0; }
  .profile:has(#claim:not([hidden])) #profile-claim-note { margin: 0 0 10px; }
  .profile:has(#claim:not([hidden])) > #profile-claim-note { grid-column: 1; }
  .profile:has(#claim:not([hidden])) > #profile-stats { grid-column: 2; margin: 0 0 10px; font-size: 14px; }
  .profile:has(#claim:not([hidden])) .profile-grid { grid-column: 1; grid-template-columns: 1fr; gap: 10px; max-width: none; }
  .profile:has(#claim:not([hidden])) #profile-form { gap: 6px; }
  .profile:has(#claim:not([hidden])) #profile-form label { gap: 2px; }
  .profile:has(#claim:not([hidden])) #profile-form input { padding: 6px 8px; }
  .profile:has(#claim:not([hidden])) .profile-preview { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 10px; margin: 0; }
  .profile:has(#claim:not([hidden])) .profile-preview > * { grid-column: 2; margin: 0 0 4px; }
  .profile:has(#claim:not([hidden])) .profile-preview > #preview-map { grid-column: 1; grid-row: 1 / span 5; height: 120px; }
  .profile:has(#claim:not([hidden])) .profile-preview > .status { grid-column: 2; }
  .profile:has(#claim:not([hidden])) #preview-logo { max-height: 48px; }
  .profile:has(#claim:not([hidden])) .claim { grid-column: 2; margin: 0; padding: 0 0 0 26px; border-top: 0; border-left: 1px solid var(--line); align-self: start; }
  .profile:has(#claim:not([hidden])) #profile-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .profile:has(#claim:not([hidden])) #profile-form > * { grid-column: 1 / -1; }
  .profile:has(#claim:not([hidden])) #profile-form > label:has(input[name=logo]) { grid-column: 1; }
  .profile:has(#claim:not([hidden])) #profile-form > #remove-logo { grid-column: 2; }
  .profile:has(#claim:not([hidden])) #claim-form > :not(.claim-actions) { max-width: none; }
  .profile:has(#claim:not([hidden])) #claim-company { padding: 7px 9px; }
}

/* Result states of the claim dialog: one component, colour plus icon plus headline. */
.outcome { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 2px solid; border-radius: 8px; color: #fff; }
.outcome-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 800 18px/1 var(--body); color: #0b0c10; }
.outcome-title { display: block; font: 700 18px/1.25 var(--display); }
.outcome p { margin: 4px 0 0; font-size: 15px; color: #fff; }
.outcome-success { background: #0e3a2b; border-color: var(--green); }
.outcome-success .outcome-icon { background: var(--green); }
.outcome-error { background: #4a1420; border-color: #ff8a97; }
.outcome-error .outcome-icon { background: #ff8a97; }
.outcome-info { background: #12304a; border-color: var(--blue); }
.outcome-info .outcome-icon { background: var(--blue); }
#claim-logo-reason:not([hidden]) + #claim-status { min-height: 0; }

/* Header account control (AC-81): rightmost element of the masthead. */
.account { position: relative; flex: 0 1 auto; min-width: 0; margin-left: 4px; }
.account[data-state="loading"] > * { visibility: hidden; }
.account-signin, .account-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; box-sizing: border-box;
  padding: 8px 16px; border: 2px solid var(--accent); border-radius: 7px; background: var(--accent); color: #10140a;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.account-signin[hidden], .account-user[hidden] { display: none; }
.account-user { min-width: 0; }
.account-button { background: var(--raised); color: var(--ink); border-color: var(--line); }
.account-button[aria-expanded="true"] { border-color: var(--accent); }
.account-email { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.account-signin:focus-visible, .account-button:focus-visible, .account-menu a:focus-visible, .account-menu button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; display: grid;
  padding: 6px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.account-menu[hidden] { display: none; }
.account-menu a, .account-menu button {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 6px; background: none;
  color: var(--ink); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer;
}
.account-menu a[hidden] { display: none; }
.account-menu a:hover, .account-menu button:hover { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 680px) {
  .account { order: 2; margin-left: auto; }
  .account-email { max-width: 38vw; }
  .account-signin, .account-button { padding: 8px 12px; }
}
@media (max-width: 480px) {
  .masthead { gap: 0 6px; }
  .account { margin-left: auto; }
  .account-email { max-width: 34vw; }
}

/* Signed out: the profile dialog only shows the sign-in form, so it is as narrow as that form. */
.profile:has(#profile-signin:not([hidden])):has(#profile-editor[hidden]):not(:has(#claim:not([hidden]))) { width: min(480px, calc(100% - 28px)); }

.profile-badge { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.profile-badge[hidden] { display: none; }
.profile-badge h3 { margin: 0 0 4px; font-size: 17px; }
.profile-badge p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.badge-country h4 { margin: 8px 0 6px; font-size: 15px; }
.badge-variant { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; margin: 0 0 12px; }
.badge-variant img { grid-row: 1 / span 2; max-width: 100%; height: auto; border-radius: 10px; }
.badge-variant label { grid-column: 2; font-size: 14px; }
.badge-variant textarea { grid-column: 2; width: 100%; box-sizing: border-box; font: 13px/1.4 ui-monospace, Consolas, monospace; background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; resize: vertical; }
.badge-variant button { grid-column: 3; grid-row: 1 / span 2; align-self: end; min-height: 44px; min-width: 44px; font-size: 15px; cursor: pointer; }
.badge-variant textarea:focus-visible, .badge-variant button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) {
  .badge-variant { grid-template-columns: minmax(0, 1fr); }
  .badge-variant img, .badge-variant label, .badge-variant textarea, .badge-variant button { grid-column: 1; grid-row: auto; }
  .badge-variant button { justify-self: end; }
}

/* Status notes stand out as boxes instead of small grey lines, so nobody has to look for them. */
#signin-status:not(:empty), #signin-expired:not([hidden]), #profile-status:not(:empty), .report-status:not(:empty) { padding: 10px 12px; border: 1px solid var(--accent); border-left-width: 4px; border-radius: 6px; background: var(--raised); color: var(--ink); font-size: 15px; font-weight: 600; }
#signin-status[data-tone="ok"] { border-color: var(--green); padding: 14px 16px; font-weight: 500; }
#signin-status[data-tone="ok"] strong { display: block; margin-bottom: 4px; font: 700 20px var(--display); color: var(--green); }

/* Hidden eggs page (AC-39): the guess form gets the same label and field look as the rest of the site. */
.egg-form { display: grid; gap: 10px; max-width: 34rem; margin-block: 16px; }
.egg-form label { font-weight: 650; font-size: 15px; }
.egg-form select { min-height: 44px; max-width: 100%; box-sizing: border-box; padding: 8px 10px; background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; font: 15px var(--body); }
.egg-form .actions { margin: 0; }
#egg-remaining, #egg-status { margin: 0; }
.egg-form button:focus-visible, .egg-form select:focus-visible, .egg-form a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Hidden eggs announcement (AC-39): a slim full-width bar above the header, shown only while the contest runs. */
.egg-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 12px; background: var(--accent); color: #000; font-size: 15px; line-height: 1.35; }
.egg-bar[hidden] { display: none; }
.egg-bar p { margin: 0; text-align: center; }
.egg-bar a { color: #000; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.egg-bar-close { flex: none; width: 44px; height: 44px; margin: -8px -4px -8px 0; border: 0; border-radius: 5px; background: transparent; color: #000; font-size: 24px; line-height: 1; cursor: pointer; }
.egg-bar-close[hidden] { display: none; }
.egg-bar a:focus-visible, .egg-bar-close:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.invite-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
.invite-row label { font-size: 14px; }
.invite-row input { min-width: 0; box-sizing: border-box; min-height: 44px; font: 14px/1.4 ui-monospace, Consolas, monospace; background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; }
.invite-row button { min-height: 44px; min-width: 44px; font-size: 15px; cursor: pointer; }
.invite-credits { margin: 8px 0 0; }
@media (max-width: 520px) { .invite-row { grid-template-columns: minmax(0, 1fr) auto; } .invite-row label { grid-column: 1 / -1; } }

/* Hidden eggs (AC-39): result line in the details panel and on country pages, shown after a country is opened. */
.egg-guess { margin-top: 12px; }
.egg-guess-line { margin: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.egg-guess-link { min-height: 44px; padding: 10px 16px; max-width: 100%; font: inherit; font-weight: 700; border: 2px solid var(--accent); border-radius: 7px; background: transparent; color: var(--accent); cursor: pointer; text-align: left; }
.egg-guess-link:focus-visible, .egg-guess a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.egg-found { padding: 12px; border: 2px solid var(--accent); border-radius: 7px; background: var(--raised); }
.egg-found .egg-guess-line { font-size: 15px; }
.egg-cta { margin-block: 16px; }

/* Claim first (AC-120): opened by a Claim action, the dialog shows the claim step only; the full editor is one link away. */
.profile[data-flow="claim"]:not([data-editor]) #profile-editor,
.profile[data-flow="claim"]:not([data-editor]) #profile-stats,
.profile[data-flow="claim"]:not([data-editor]) #profile-renewals,
.profile[data-flow="claim"]:not([data-editor]) #profile-badge,
.profile[data-flow="claim"]:not([data-editor]) #profile-invite,
.profile[data-flow="claim"]:not([data-editor]) #profile-claim-note { display: none !important; }
.profile[data-flow="claim"]:not([data-editor]) #claim { grid-column: 1 / -1 !important; max-width: 560px; border-left: 0 !important; padding-left: 0 !important; margin-top: 0; padding-top: 0; border-top: 0; }
/* The claim step is one column of at most 560 px: the dialog fits it instead of the 1080 px two-column claim layout (the right half stayed empty). */
.profile[data-flow="claim"]:not([data-editor]):has(#claim:not([hidden])) { width: min(624px, calc(100% - 28px)); display: block; }
#claim-title:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
#claim-status:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#claim-profile { display: grid; gap: 8px; max-width: 420px; }
#claim-profile p { margin: 0; }
#claim-profile label { font-weight: 650; font-size: 14px; }
#claim-profile input { width: 100%; box-sizing: border-box; background: var(--raised); padding: 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 16px; }
#claim-profile input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#claim-profile small { font-size: 14px; color: var(--muted); }
#claim-profile-status { min-height: 1.4em; font-size: 14px; }
#claim-add-logo { justify-self: start; min-height: 44px; }
#claim-add-logo:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* AC-122: social proof in the hero. Server-rendered, fixed row height, so nothing moves when it appears; hidden on short windows (AC-121) to keep the map tall. */
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; min-height: 32px; }
.proof-count { margin: 0; font-size: 14px; font-weight: 650; color: var(--accent); }
.proof-visits { display: block; margin: 4px 0 0; min-height: 20px; font-size: 14px; line-height: 20px; color: var(--muted); }
.proof-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; min-width: 0; }
.proof-item { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; box-sizing: border-box; padding: 3px 10px 3px 4px; max-width: 200px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); color: inherit; text-decoration: none; font-size: 14px; line-height: 1.2; }
.proof-item:hover { border-color: var(--accent); }
.proof-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.proof-logo, .proof-initial { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: contain; background: #fff; }
.proof-initial { display: inline-grid; place-items: center; font-size: 14px; font-weight: 700; background: var(--line); }
.proof-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 761px) and (min-height: 550px) and (max-height: 740px) {
  .hero-proof { display: none; }
  .proof-visits { display: none; }
}

/* AC-122 mobile: one row only (count, 3 pills from 360 px, 2 below, then "+N" to the startups section). Hidden pills use display: none, so they are out of the tab order. */
.proof-more { display: none; }
.proof-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .hero-proof { flex-wrap: nowrap; gap: 8px; margin-top: 8px; min-height: 32px; }
  .proof-count { flex: none; white-space: nowrap; }
  .proof-list { flex-wrap: nowrap; gap: 6px; overflow: hidden; }
  .proof-list li:nth-child(n + 4) { display: none; }
  .proof-item { padding: 3px; max-width: none; }
  .proof-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .proof-more { height: 32px; min-width: 32px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); color: inherit; font-size: 14px; font-weight: 650; text-decoration: none; }
  .proof-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .proof-more-2 { display: none; }
}
@media (max-width: 359px) {
  .proof-list li:nth-child(n + 3) { display: none; }
  .proof-more-3 { display: none; }
  .proof-more-2 { display: inline; }
}

/* AC-122: own-product label (small secondary text, 14 px minimum). */
.own-product { font-size: 14px; color: var(--muted); margin: 2px 0 0; }
.startup-card small.own-product { display: block; }

/* Confetti (AC-136): decoration only. Fixed, never takes clicks, no layout effect; popover puts it above the open dialog. */
.confetti-overlay {
  position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
  pointer-events: none; z-index: 2147483647;
}

/* Logo preview before sign-in (AC-150): local only, always marked as a preview */
.logo-preview[hidden], .claim-use-preview[hidden], .map-preview-note[hidden] { display: none; }
.logo-preview { display: grid; gap: 6px; max-width: 420px; margin: 0 0 16px; padding: 12px; border: 1px dashed var(--line); border-radius: 7px; }
.logo-preview label { font-weight: 650; font-size: 14px; }
.logo-preview input[type="file"] { width: 100%; font-size: 14px; }
.logo-preview small { font-size: 14px; color: var(--muted); }
.logo-preview input:focus-visible, .logo-preview button:focus-visible, .claim-use-preview input:focus-visible, .map-preview-note button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.logo-preview-chosen { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: 14px; }
.logo-preview-chosen.is-empty { visibility: hidden; }
.logo-preview-chosen img, .claim-use-preview img { object-fit: contain; background: #faf8f4; border-radius: 5px; flex: none; }
.logo-preview-chosen button, .map-preview-note button { min-height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--raised); color: var(--ink); padding: 8px 14px; font-size: 14px; cursor: pointer; }
#logo-preview-status { height: 2.8em; margin: 0; font-size: 14px; line-height: 1.4; overflow: hidden; }
.claim-use-preview { display: grid; gap: 4px; }
.claim-use-preview .check { font-weight: 650; }
.logo-preview-outline { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-preview-note { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 16px); padding: 4px 4px 4px 10px; border-radius: 7px; background: var(--surface); border: 1px solid var(--accent); color: var(--ink); font-size: 14px; font-weight: 650; }
.map-preview-note button { margin-left: 0; }

/* AC-160: placements still loading or failed; muted line, reserves the claim button's height so the panel does not jump. */
#country-details .availability-note { color: var(--muted); min-height: 48px; margin: 8px 0; }
#country-details .retry-button { background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
#country-details .retry-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
