@font-face{font-family:KH Teka;src:url('/assets/teka.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{
  color-scheme:light;
  --blue:#005ff5;
  --blue-hover:#0048c3;
  --red:#fa1f34;
  --red-text:#b5162d;
  --red-light:#fff0f3;
  --red-line:#ffbac6;
  --ink:#102544;
  --muted:#465b77;
  --subtle:#526b8c;
  --canvas:#f3f7ff;
  --surface:#fff;
  --tint:#e8f0ff;
  --tint-hover:#d9e7ff;
  --line:#d4e2f8;
  --white-muted:#e8f1ff;
  --on-blue-line:#ffffff48;
  --page-width:1240px;
  --page-gutter:24px;
  --topbar:74px;
  font-family:KH Teka,"Noto Sans SC","Noto Sans TC","Noto Sans JP","Noto Sans KR","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",Arial,sans-serif;
  color:var(--ink);
  background:var(--canvas);
  font-synthesis:none;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;min-width:280px}
button,input{font:inherit}
button{color:inherit;cursor:pointer}
a{color:inherit}
svg{flex-shrink:0;vertical-align:middle}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.skip-link{position:fixed;top:8px;left:12px;z-index:20;padding:10px;background:#fff;transform:translateY(-150%)}
.skip-link:focus{transform:none}
.app { display: flex; flex-direction: column; min-height: 100svh; }
.site-header {
  position: sticky;
  z-index: 4;
  top: 0;
  background: var(--blue);
  color: white;
  box-shadow: 0 1px 0 #003c9c30, 0 4px 12px #10254412;
}
.site-header-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  min-height: var(--topbar);
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.site-header :focus-visible { outline-color: white; }
.brand { position: relative; display: block; width: 157px; height: 47px; overflow: hidden; }
.brand img { position: absolute; top: 50%; left: 50%; width: 160%; height: auto; transform: translate(-50%, -45%); }
.header-links { min-width: 0; padding-inline-start: 17px; border-inline-start: 1px solid #ffffff42; }
.header-whitepaper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: white;
  font-size: 13px;
  white-space: nowrap;
}
.header-whitepaper { text-decoration: none; }
.header-whitepaper:hover { text-decoration: underline; }
.header-whitepaper small { color: var(--white-muted); font-size: 12px; font-weight: 400; }
.icon-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
}
.icon-button:hover { background: var(--tint); }
.header-sign-in {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #ffffff8a;
  border-radius: 6px;
  background: transparent;
  color: white;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.header-sign-in:hover { background: #ffffff24; }
.eyebrow { margin: 0; color: var(--subtle); font-size: 11px; font-weight: 560; line-height: 16px; letter-spacing: .085em; text-transform: uppercase; }
main { flex: 1; scroll-margin-top: calc(var(--topbar) + 8px); }
.site-footer {
  display: flex;
  width: 100%;
  max-width: var(--page-width);
  justify-content: space-between;
  gap: 16px;
  margin: 20px auto 0;
  padding: 16px var(--page-gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.legal { padding: 0; border: 0; background: none; }
.legal:hover { text-decoration: underline; }
.mint-wrap, .paper-wrap { max-width: var(--page-width); margin: 0 auto; padding: 24px var(--page-gutter); }
.mint-wrap { display: grid; gap: 20px; padding-top: 24px; }

.mint-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 128px;
  padding: 20px clamp(16px, 3vw, 30px);
  overflow: hidden;
  border-radius: 10px;
  background: var(--blue);
  color: white;
}
.mint-banner::before, .mint-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.mint-banner::before {
  background: url('/assets/genesis-skyline.png') center 55% / cover no-repeat;
}
.mint-banner::after { background: linear-gradient(90deg, #004cc6 0%, #0054dbf2 24%, #005be6b3 61%, #005ff582 100%); }
.mint-banner .eyebrow { color: var(--white-muted); }
.mint-banner h1 { margin: 5px 0 0; font-size: clamp(24px, 3vw, 38px); font-weight: 560; line-height: 1.1; letter-spacing: -.035em; }

.mint-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(265px, 1fr); gap: 20px; align-items: start; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.mint-layout .panel { border-radius: 10px; box-shadow: 0 2px 8px #10254408; }
.allocation, .checker { padding: clamp(16px, 2.2vw, 26px); }
.allocation-head, .checker-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.mint-layout h2 { margin: 5px 0 0; font-size: clamp(26px, 2.8vw, 39px); font-weight: 550; letter-spacing: -.045em; line-height: 1.06; }
.allocation-count { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.allocation-count strong { color: var(--blue-hover); }
.allocation-grid {
  display: grid;
  grid-template-columns: repeat(40, minmax(0, 1fr));
  gap: clamp(2px, .21vw, 4px);
  margin-top: 16px;
}
.allocation-grid span {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--tint);
}
.allocation-grid .allocated { background: var(--blue); border-color: var(--blue); }
.allocation-foot { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.legend, .legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend { gap: 11px; color: var(--muted); font-size: 12px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--blue); }
.legend span+span i { background: var(--tint); border: 1px solid var(--line); }

.checker-top { margin-bottom: 14px; }
.checker h2 { margin-bottom: 9px; }
.checker #check { min-height: 44px; border-radius: 6px; font-size: 14px; font-weight: 550; }
.checker > p:not(.check-feedback) { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.checker-account { display: block; margin: 10px 0 0; padding: 4px 0; border: 0; background: transparent; color: var(--blue-hover); font-size: 13px; }
.checker-account:hover { text-decoration: underline; }
.checker-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.45; }
.checker-foot p { margin: 0; }
.button{display:inline-flex;min-height:40px;align-items:center;justify-content:center;gap:7px;padding:7px 14px;border:1px solid transparent;border-radius:4px;font-size:16px;font-weight:432;text-decoration:none;line-height:1.3;text-align:center}
.button.full{width:100%}
.button.primary{color:#fff;background:var(--blue)}
.button.primary:hover{background:var(--blue-hover)}
.button.secondary{background:var(--tint)}
.button.secondary:hover{background:var(--tint-hover)}
.check-feedback{margin:12px 0 0;padding:13px;border-radius:4px;background:var(--tint);color:var(--blue-hover);font-size:13px;line-height:1.4}
.checker #check:disabled { background: var(--tint); color: var(--blue-hover); cursor: default; }
dialog{position:fixed;max-height:calc(100svh - 32px);width:min(368px,calc(100% - 32px));max-width:none;margin:auto;transform:translateY(-14px);padding:31px 24px 23px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--ink);box-shadow:0 8px 26px #09234d20;text-align:center;overflow:auto}
dialog::backdrop{background:#09234d63;backdrop-filter:blur(3px)}
.has-dialog{overflow:hidden}
.dialog-x{position:absolute;top:15px;right:15px;color:var(--muted)}
.dialog-x svg{stroke-width:2.4}
dialog h2{margin:0;font-size:24px;font-weight:432;letter-spacing:0;line-height:1.28}
.utility-dialog>p:not(.eyebrow){margin:7px auto 0;max-width:296px;color:var(--muted);font-size:13px;line-height:20px}
.dialog-actions{display:grid;gap:8px;margin-top:24px}
.utility-dialog{width:min(412px,calc(100% - 32px))}
.utility-dialog>.eyebrow{margin-bottom:6px}
.application-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: calc(100svh - 32px);
  transform: none;
  padding: clamp(18px, 4vw, 34px);
  border-top: 4px solid var(--blue);
  border-radius: 12px;
  text-align: left;
  overscroll-behavior: contain;
}
.application-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-right: 30px;
  padding-bottom: 22px;
}
.application-heading h2 { margin-top: 5px; font-size: clamp(23px, 4vw, 31px); font-weight: 560; letter-spacing: -.04em; }
.application-heading h2:focus { outline: none; }
.application-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.application-step:last-child { padding-bottom: 0; }
.application-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--blue-hover);
  font-size: 12px;
  font-weight: 580;
  font-variant-numeric: tabular-nums;
}
.application-step h3 { margin: 2px 0 6px; font-size: 19px; font-weight: 560; letter-spacing: -.025em; }
.application-step p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.application-step .button { font-size: 13px; font-weight: 530; border-radius: 6px; }
.application-social-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.application-social-actions .button { min-height: 36px; }
.application-announcement { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; color: var(--blue-hover); font-size: 12px; text-underline-offset: 3px; }
.application-step .application-connected { margin: 9px 0 0; color: var(--blue-hover); font-weight: 550; }
.application-field { display: grid; gap: 6px; margin-top: 13px; font-size: 13px; font-weight: 550; }
.application-field small { color: var(--muted); font-size: 11px; font-weight: 400; }
.application-field input, .application-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.application-field textarea { min-height: 75px; resize: vertical; }
.application-submit { margin-top: 14px; }
.application-submit:disabled { background: var(--tint); color: var(--subtle); cursor: default; }
@media (max-width: 460px) {
  .application-step { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding-block: 15px; }
  .application-number { width: 26px; height: 26px; font-size: 11px; }
  .application-heading { padding-bottom: 16px; }
}
.editorial-cover {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.editorial-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(21px, 4vw, 58px); }
.cover-kicker { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--blue-hover); }
.cover-kicker span:first-child { padding-right: 12px; border-right: 2px solid var(--red); }
.editorial-cover h1 {
  max-width: 14ch;
  margin: 17px 0 14px;
  font-size: clamp(38px, 5.1vw, 68px);
  font-weight: 570;
  line-height: 1.01;
  letter-spacing: -.055em;
}
.cover-lede { max-width: 35ch; margin: 0; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5; }
.cover-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--blue-hover); font-size: 14px; font-weight: 560; text-decoration: none; }
.cover-link:hover { text-decoration: underline; }
.cover-image { position: relative; isolation: isolate; margin: 0; overflow: hidden; background: #0052d5; }
.cover-image img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.cover-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, #005ff53d, #00276b22 40%, #03193bc4); }
.cover-image figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 17px;
  padding: 6px 9px;
  border: 1px solid #ffffff6b;
  border-radius: 4px;
  background: #09234dba;
  color: white;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.paper-reading { display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); gap: 20px; margin-top: 18px; }
.paper-body { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.paper-notice {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 13px clamp(14px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: var(--tint);
  color: var(--muted);
  font-size: 12px;
}
.paper-notice a { color: var(--blue-hover); text-decoration: none; }
.paper-notice a:hover { text-decoration: underline; }
.paper-article { padding: 0 clamp(14px, 3vw, 32px); font-size: 16px; line-height: 1.65; }
.paper-article section {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 11px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--topbar) + 16px);
}
.section-index { padding-top: 4px; color: var(--blue-hover); font-variant-numeric: tabular-nums; }
.paper-article h2 { margin: 0 0 13px; font-size: clamp(23px, 3vw, 38px); font-weight: 550; letter-spacing: -.04em; line-height: 1.12; }
.paper-article p:not(.eyebrow) { margin: 0 0 12px; }
.paper-article p:last-child { margin-bottom: 0; }
.paper-article a, .paper-foot a { color: var(--blue-hover); text-underline-offset: 4px; }
.paper-article table { width: 100%; margin: 15px 0 6px; border-collapse: collapse; font-size: 14px; overflow-wrap: anywhere; }
.paper-article th, .paper-article td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.paper-article th { background: var(--tint); font-weight: 600; }
.paper-article figure { margin: 18px 0; }
.paper-article figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.paper-article figcaption { padding-top: 6px; color: var(--muted); font-size: 12px; }
.paper-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.paper-stats div, .equation { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); }
.paper-stats strong, .paper-stats span { display: block; }
.paper-stats strong { font-size: clamp(18px, 3vw, 26px); font-weight: 550; }
.paper-stats span { color: var(--muted); font-size: 12px; }
.paper-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px clamp(14px, 3vw, 32px); font-size: 13px; }
.toc {
  position: sticky;
  top: calc(var(--topbar) + 16px);
  align-self: start;
  max-height: calc(100svh - var(--topbar) - 30px);
  overflow: auto;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.toc > p { padding-inline: 7px; }
.toc ol, .toc-small ol { margin: 9px 0 0; padding: 0; list-style: none; }
.toc a, .toc-small a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
}
.toc a:hover, .toc a[aria-current], .toc-small a:hover { background: var(--tint); color: var(--blue-hover); }
.toc a small, .toc-small a small { color: var(--blue-hover); font-size: 11px; font-variant-numeric: tabular-nums; }
.toc-small { display: none; }

@media (max-width: 900px) {
  :root { --topbar: 62px; }
  .site-header-inner { gap: 8px; }
  .paper-reading { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-small { display: block; padding: 13px 14px; border-bottom: 1px solid var(--line); }
  .toc-small summary { cursor: pointer; color: var(--blue-hover); font-weight: 550; }
  .toc-small ol { columns: 2; }
  .toc-small li { break-inside: avoid; }
}
@media (max-width: 720px) {
  :root { --page-gutter: 12px; }
  .brand { width: 112px; height: 38px; }
  .header-links { padding-inline-start: 0; border-inline-start: 0; }
  .header-whitepaper { flex-direction: column; align-items: flex-start; gap: 1px; }
  .mint-wrap, .paper-wrap { padding-block: 16px; }
  .mint-layout { grid-template-columns: minmax(0, 1fr); }
  .checker { grid-row: 1; }
  .allocation-grid { gap: 2px; }
  .allocation-grid span { border-radius: 1px; }
  .editorial-cover { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cover-image { min-height: 175px; }
  .cover-image img { object-position: center 43%; }
  .cover-link { margin-top: 16px; }
  .paper-article section { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 22px 0; }
  .paper-article th, .paper-article td { padding: 7px; }
}
@media (max-width: 390px) {
  .paper-stats div { padding: 8px; }
}
@media (max-width: 350px) {
  .site-header-inner { gap: 6px; }
  .brand { width: 85px; height: 33px; }
  .header-sign-in { padding-inline: 11px; font-size: 13px; }
}
@media (max-height:460px) { dialog { transform:none; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition-duration:0s!important; } }

.legal-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: calc(100svh - 32px);
  transform: none;
  padding: 22px 18px 20px;
  text-align: left;
  overscroll-behavior: contain;
}
.legal-dialog .dialog-x {
  position: sticky;
  top: -8px;
  z-index: 2;
  float: right;
  margin: -6px -6px 8px 12px;
  background: #fff;
}
.legal-dialog h2 {
  margin: 0 0 10px;
  padding-right: 12px;
  font-size: clamp(22px, 4.5vw, 28px);
  font-weight: 560;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.legal-dialog h2:focus { outline: none; }
.legal-dialog h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.legal-dialog p,
.legal-dialog li {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.legal-dialog ul,
.legal-dialog ol {
  margin: 0 0 10px;
  padding-left: 1.25em;
}
.legal-dialog a { color: var(--blue-hover); text-decoration: underline; word-break: break-word; }
.legal-dialog code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  padding: 0 4px;
  border-radius: 3px;
  background: var(--tint);
  word-break: break-word;
}
.legal-dialog .legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 14px;
  -webkit-overflow-scrolling: touch;
}
.legal-dialog table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.4;
}
.legal-dialog th,
.legal-dialog td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.legal-dialog th { background: var(--tint); font-weight: 550; }
.legal-dialog .dialog-actions { margin-top: 20px; clear: both; }
@media (max-width: 480px) {
  .legal-dialog { width: calc(100% - 16px); padding: 18px 14px 16px; }
  .legal-dialog p,
  .legal-dialog li { font-size: 13px; }
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-admin {
  color: white;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.header-admin:hover { text-decoration: underline; }
.header-sign-in.has-user { display: inline-flex; align-items: center; gap: 8px; padding-inline: 8px 12px; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.user-avatar.small { width: 20px; height: 20px; }
.user-avatar.large { width: 44px; height: 44px; }
.account-summary { display: flex; align-items: center; gap: 10px; text-align: left; }
.account-summary strong { display: block; }
.account-summary p { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.application-connected.account-summary { margin: 0; }
.checker-account { display: inline-flex; align-items: center; gap: 8px; }
.button.success { background: #e8f8ee; color: #0d7a3b; }
.button.success:hover { background: #d9f3e3; }
.button.verifying { color: var(--blue-hover); }
.action-spinner {
  width: 13px;
  height: 13px;
  border: 1.65px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: action-spin .65s linear infinite;
}
@keyframes action-spin { to { transform: rotate(360deg); } }
.action-status { margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--blue-hover); }
.action-status.error { color: var(--red-text); }
.action-status.ok { color: #0d7a3b; }
.application-step [data-post-reply] { margin-top: 10px; }

.application-submit:disabled { cursor: not-allowed; }
.application-submit.is-locked:disabled { background: var(--blue); color: white; opacity: .45; cursor: not-allowed; }
@media (max-width: 720px) {
  .header-admin { display: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.card-dialog {
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100% - 28px));
  max-height: calc(100svh - 32px);
  transform: none;
  padding: 10px clamp(16px, 4vw, 28px) 22px;
  border-top: 4px solid var(--blue);
  border-radius: 12px;
  text-align: center;
  overscroll-behavior: contain;
}
/* Keep the close control in its own row above the card so it never overlaps the image, including on narrow phones. */
.card-dialog .dialog-x {
  position: relative;
  top: auto;
  right: auto;
  align-self: flex-end;
  flex: 0 0 auto;
  margin: 0 0 8px auto;
}
.card-dialog .card-preview {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1229 / 1536;
  border-radius: 10px;
  background: #0b3a9c;
  box-shadow: 0 8px 24px #1025441f;
}
.list-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin: 24px 0;
  text-align: left;
}
.list-status-icon {
  display: grid;
  place-items: center;
  align-self: stretch;
  box-sizing: border-box;
  width: 48px;
  height: auto;
  border-radius: 8px;
}
.list-status-icon svg {
  display: block;
  width: 46%;
  height: 46%;
}
.list-status.is-pending .list-status-icon {
  background: #1a1a18;
  border: 1px solid #111;
  color: #fff;
}
.list-status.is-on .list-status-icon {
  background: #e3e8dc;
  border: 1px solid #ccd1c2;
  color: #4d5840;
}
.list-status-copy { min-width: 0; }
.list-status-copy .eyebrow {
  margin: 0 0 5px;
  color: #6b6b69;
  letter-spacing: .12em;
}
.list-status-copy h3 {
  margin: 0;
  color: #1a1a18;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 560;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.list-status-copy h3:focus { outline: none; }
.list-status-copy p:not(.eyebrow) {
  margin: 6px 0 0;
  color: #6b6b69;
  font-size: 13px;
  line-height: 1.45;
}
.card-dialog .dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 0;
}
.card-dialog .dialog-actions .button { min-height: 44px; font-size: 14px; font-weight: 550; border-radius: 6px; }
.card-copy-status { margin: 10px 0 0; min-height: 1.2em; font-size: 13px; }
.card-copy-status.ok { color: #0d7a3b; }
.card-copy-status.error { color: var(--red-text); }
.check-feedback.is-error { background: var(--red-light); color: var(--red-text); }
@media (max-width: 640px) {
  .list-status { margin: 18px 0; }
}
@media (max-width: 400px) {
  .card-dialog .dialog-actions { grid-template-columns: 1fr; }
  .list-status { gap: 12px; margin: 18px 0; }
  .list-status-copy .eyebrow { letter-spacing: .08em; }
  .list-status-copy p:not(.eyebrow) { font-size: 12.5px; line-height: 1.4; }
}

/* Checker: card, list status, wallet, nomination, secure a spot. */
.spot-wrap { max-width: 560px; margin: 0 auto; padding: 28px 16px 40px; }
.spot-panel { text-align: left; }
.spot-panel > .spot-intro { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.spot-panel #check { min-height: 44px; border-radius: 6px; font-size: 14px; font-weight: 550; }
.checker .spot-panel .list-status:first-child { margin-top: 14px; }
.spot-title { margin: 8px 0 8px; font-size: clamp(30px, 8vw, 40px); font-weight: 560; letter-spacing: -.035em; line-height: 1.05; }
.spot-lede { margin: 0 auto 20px; max-width: 340px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.spot-panel .card-preview { display: block; width: 100%; height: auto; aspect-ratio: 1229 / 1536; border-radius: 10px; background: #0b3a9c; box-shadow: 0 8px 24px #1025441f; }
.spot-panel .list-status { margin: 20px 0 6px; }
.list-status.is-secured .list-status-icon { background: #e8f8ee; border: 1px solid #bfe6cc; color: #0d7a3b; }
.spot-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.spot-label { display: block; margin: 0 0 7px; color: var(--subtle); font-size: 11px; font-weight: 560; line-height: 16px; letter-spacing: .085em; text-transform: uppercase; }
.spot-field { margin-top: 0; }
.spot-field input { font-size: 16px; }
.spot-field input[aria-invalid="true"] { border-color: var(--red); outline-color: var(--red); }
.spot-wallet { display: flex; align-items: center; gap: 10px; }
.spot-wallet code { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.spot-wallet code .full { display: none; }
.spot-change { flex: 0 0 auto; min-height: 42px; border-radius: 6px; font-size: 14px; font-weight: 550; }
.spot-inline-actions { display: flex; gap: 8px; margin-top: 10px; }
.spot-inline-actions .button { min-height: 40px; border-radius: 6px; font-size: 14px; font-weight: 550; }
.spot-nominee { margin: 0; font-size: 15px; font-weight: 550; }
.spot-nominee a { color: var(--blue-hover); text-decoration: none; }
.spot-nominee a:hover { text-decoration: underline; }
.spot-error { margin: 14px 0 0; padding: 9px 11px; border-radius: 6px; font-size: 13px; text-align: left; }
.spot-cta { min-height: 48px; margin-top: 18px; border-radius: 6px; font-size: 15px; font-weight: 550; }
.spot-cta:disabled, .spot-inline-actions .button:disabled { opacity: .7; cursor: default; }
.spot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.spot-actions .button { min-height: 46px; font-size: 14px; font-weight: 550; border-radius: 6px; }
.spot-panel .card-copy-status { text-align: center; }
.spot-loading { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.spot-account { margin: 18px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.spot-link { padding: 0; border: 0; background: none; color: var(--blue-hover); font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 400px) {
  .spot-wrap { padding: 16px 12px 28px; }
}

/* v2: bigger, livelier "You're on the list" / "Secured" status. */
.spot-panel .list-status.is-on, .spot-panel .list-status.is-secured { align-items: center; gap: 16px; margin-top: 22px; }
.spot-panel .list-status.is-on .list-status-copy h3, .spot-panel .list-status.is-secured .list-status-copy h3 { font-size: clamp(28px, 8vw, 36px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; color: var(--ink); }
.spot-panel .list-status.is-on .list-status-copy p { margin-top: 8px; font-size: 13.5px; }
.spot-panel .list-status.is-on .list-status-icon, .spot-panel .list-status.is-secured .list-status-icon {
  position: relative;
  width: 64px; height: 64px; min-width: 64px; align-self: center;
  border-radius: 16px;
  animation: spot-pop .55s cubic-bezier(.2, 1.6, .4, 1) both;
}
.spot-panel .list-status.is-on .list-status-icon svg, .spot-panel .list-status.is-secured .list-status-icon svg { width: 58%; height: 58%; }
.spot-panel .list-status.is-on .list-status-icon svg path, .spot-panel .list-status.is-secured .list-status-icon svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: spot-draw .45s ease-out .3s forwards; }
.spot-panel.is-secured .list-status { justify-content: center; grid-template-columns: auto auto; margin: 22px 0 4px; }
@keyframes spot-pop { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes spot-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .spot-panel .list-status-icon, .spot-panel .list-status-icon svg path { animation: none !important; stroke-dashoffset: 0 !important; }
}
@media (max-width: 400px) {
  .spot-panel .list-status.is-on .list-status-icon, .spot-panel .list-status.is-secured .list-status-icon { width: 56px; height: 56px; min-width: 56px; border-radius: 14px; }
}
.spot-panel.is-on .list-status, .spot-panel.is-loading .list-status { margin-top: 14px; }

/* Modal: "Are you in?" flow over the blurred page until the spot is secured. */
body.spot-locked { overflow: hidden; }
.spot-modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow-y: auto; overscroll-behavior: contain;
  background: #0b1b3a59;
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}
.spot-modal[hidden] { display: none; }
.spot-modal-card {
  width: min(440px, 100%);
  margin: auto;
  padding: clamp(18px, 4.5vw, 28px);
  border: 0; border-top: 4px solid var(--blue); border-radius: 14px;
  box-shadow: 0 24px 64px #0b1b3a4d, 0 2px 8px #10254414;
  animation: spot-modal-in .28s ease-out both;
}
@keyframes spot-modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.spot-modal .spot-panel.is-loading-session { min-height: 180px; }
.spot-panel.is-signed-out { text-align: center; padding-block: 10px 4px; }
.spot-panel.is-signed-out .spot-cta { margin-top: 0; }
.spot-modal .spot-panel .list-status:first-child { margin-top: 0; }
.checker.is-secured #checker-title { display: none; }
.checker.is-secured .spot-panel .card-preview { margin-top: 4px; }
@media (max-width: 520px) {
  .spot-modal { place-items: start center; padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  .spot-modal-card { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .spot-modal-card { animation: none; } }

/* Secured: big check + "Secured" stamp centered on the card. */
.spot-card { position: relative; margin-top: 4px; }
.checker.is-secured .spot-panel .spot-card .card-preview { margin-top: 0; }
/* On-page "APPROVED" rubber stamp across the photo and name (not exported). */
.spot-stamp {
  position: absolute; left: 50%; top: 50%; width: 84%;
  margin: 0; pointer-events: none;
  color: #e8423f; opacity: .85;
  font-family: KH Teka, "Arial Black", Impact, Arial, sans-serif;
  transform: translate(-50%, -50%) rotate(-22deg);
  animation: spot-stamp .4s cubic-bezier(.2, 1.4, .4, 1) .1s both;
}
.spot-stamp svg { display: block; width: 100%; height: auto; overflow: visible; }
.spot-stamp:focus { outline: none; }
.spot-panel.is-secured .spot-actions { margin-top: 16px; }
@keyframes spot-stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-22deg) scale(1.4); } 100% { opacity: .85; transform: translate(-50%, -50%) rotate(-22deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .spot-stamp { animation: none !important; } }
