:root {
  color-scheme: light;
  --background: #f3f1e8;
  --surface: #fffdf7;
  --ink: #14231d;
  --muted: #68736d;
  --line: #d8ded7;
  --accent: #176b52;
  --accent-dark: #0e4c3a;
  --accent-soft: #e1efe8;
  --lime: #bdd85b;
  --magenta: #4b9672;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(22, 55, 42, 0.07);
  --font-sans: Inter, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  background: radial-gradient(circle at 77% 5%, rgba(23, 107, 82, 0.1), transparent 25rem), var(--background);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.page-shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.site-header { display: flex; min-height: 112px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: baseline; gap: 5px; color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-flex; height: 22px; align-items: flex-end; gap: 3px; margin-right: 4px; }
.brand-mark span { width: 4px; border-radius: 3px; background: var(--ink); }
.brand-mark span:nth-child(1) { height: 7px; opacity: .28; }
.brand-mark span:nth-child(2) { height: 12px; opacity: .5; }
.brand-mark span:nth-child(3) { height: 17px; opacity: .72; }
.brand-mark span:nth-child(4) { height: 22px; background: var(--accent); }
.brand-name { font-size: 22px; font-weight: 750; letter-spacing: -.045em; }
.brand-suffix, .site-nav, .live-strip, .section-heading p, .card-meta, .card-footer span, .eyebrow, .site-footer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.brand-suffix { color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.site-nav { display: flex; gap: 32px; color: #395047; font-size: 13px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.metrics-row { display: flex; align-items: center; gap: 10px; }
.live-strip {
  display: inline-flex;
  max-width: 100%;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, .82);
  color: #53645c;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.live-strip strong { color: #344c42; font-weight: 600; }
.live-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(189, 216, 91, .18); }
.analytics-summary { flex: 0 1 auto; flex-wrap: wrap; overflow: visible; white-space: normal; }
.analytics-summary > span, .analytics-summary > strong { white-space: nowrap; }

.hero { padding: 38px 0 58px; }
.hero-copy { max-width: 780px; margin: 0; color: #5d6b65; font-size: clamp(18px, 2vw, 22px); font-weight: 400; line-height: 1.5; letter-spacing: -.015em; }
.hero-copy strong { color: var(--ink); font-weight: 700; }
.bid-controls { margin: 0 0 14px; padding: 34px 0 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 18px; }
.bid-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 42px; font-size: clamp(43px, 6.2vw, 72px); font-weight: 720; line-height: 1; letter-spacing: -.055em; }
.price-control { display: inline-flex; align-items: center; gap: 12px; }
.bid-value { display: inline-flex; min-width: 245px; align-items: baseline; justify-content: center; gap: .18em; color: var(--accent); font-weight: 720; }
.bid-price { width: 2ch; min-width: 2ch; max-width: 5ch; padding: 0; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; background: transparent; color: var(--accent); outline: none; appearance: textfield; font: inherit; font-variant-numeric: tabular-nums; text-align: left; white-space: nowrap; }
.bid-price::-webkit-inner-spin-button, .bid-price::-webkit-outer-spin-button { margin: 0; appearance: none; }
.bid-price:focus-visible { border-bottom-color: var(--lime); box-shadow: 0 5px 0 -3px rgba(23, 107, 82, .2); }
.bid-price[aria-invalid="true"] { border-bottom-color: #b42318; color: #b42318; }
.stepper { display: inline-grid; width: 44px; height: 44px; place-items: center; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--surface); color: var(--accent); box-shadow: 0 8px 22px rgba(22, 55, 42, .09); cursor: pointer; font-size: 28px; font-weight: 500; line-height: 1; }
.stepper:hover, .stepper:focus-visible { background: var(--accent-soft); outline: 3px solid rgba(23, 107, 82, .18); }
.stepper:disabled { cursor: not-allowed; opacity: .35; }
.bid-form { display: grid; grid-template-columns: auto minmax(0, 590px) auto; gap: 12px; max-width: 930px; }
.platform-picker { display: grid; width: 218px; min-height: 58px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid #ccd5cf; border-radius: 14px; background: rgba(255, 253, 247, .72); box-shadow: inset 0 1px 2px rgba(22, 55, 42, .04); }
.platform-choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.platform-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.platform-option { display: grid; min-height: 48px; place-items: center; padding: 0 14px; border-radius: 10px; color: #53645c; font-size: 13px; font-weight: 700; transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.platform-choice:hover .platform-option { background: rgba(225, 239, 232, .72); color: var(--accent-dark); }
.platform-radio:checked + .platform-option { background: var(--accent); color: #fff; box-shadow: 0 7px 16px rgba(23, 107, 82, .2); }
.platform-choice:hover .platform-radio:checked + .platform-option { background: var(--accent-dark); }
.platform-radio:focus-visible + .platform-option { outline: 3px solid rgba(23, 107, 82, .22); outline-offset: 2px; }
.platform-radio:active + .platform-option { transform: scale(.98); }
.input-wrap input { width: 100%; min-height: 58px; padding: 0 20px; border: 1px solid #ccd5cf; border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 17px; outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.input-wrap input::placeholder { color: #8d9791; }
.input-wrap input:hover { border-color: #9bada4; }
.input-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(23, 107, 82, .12); }
.input-wrap input[aria-invalid="true"] { border-color: #d73c5b; box-shadow: 0 0 0 4px rgba(215, 60, 91, .1); }
.primary-button { min-height: 58px; padding: 0 28px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; cursor: pointer; font-size: 17px; font-weight: 700; box-shadow: 0 14px 32px rgba(23, 107, 82, .2); transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.primary-button:hover, .primary-button:focus-visible { background: var(--accent-dark); box-shadow: 0 18px 38px rgba(23, 107, 82, .27); outline: none; transform: translateY(-2px); }
.primary-button:disabled { cursor: not-allowed; opacity: .62; transform: none; }
.form-error { min-height: 20px; margin: 8px 0 0; color: #b52343; font-size: 13px; }
.repeat-note { display: flex; align-items: flex-start; gap: 9px; margin: 13px 0 0; color: #5b6d65; font-size: 11px; line-height: 1.55; }
.repeat-note::before { content: "↗"; color: var(--accent); font-size: 13px; font-weight: 800; }
.resume-payment { min-height: 44px; margin: 14px 0 0 22px; padding: 0 16px; border: 1px solid #9ebbad; border-radius: 999px; background: var(--surface); color: var(--accent); cursor: pointer; font-weight: 700; }
.resume-payment[hidden] { display: none; }
.resume-payment:hover, .resume-payment:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: 3px solid rgba(23, 107, 82, .18); }

.board-section { padding: 0 0 80px; scroll-margin-top: 18px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 28px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.section-heading__copy { display: grid; gap: 8px; }
.section-heading h2 { margin: 0; font-size: clamp(38px, 6vw, 56px); font-weight: 720; line-height: .95; letter-spacing: -.055em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.section-heading > p span { margin: 0 6px; }
.section-heading .board-intro { max-width: 390px; color: #63716a; font-family: var(--font-sans); font-size: 14px; line-height: 1.45; }
#board-status { display: flex; min-height: 38px; align-items: center; gap: 2px; padding: 0 14px; border: 1px solid #cbdad2; border-radius: 999px; background: rgba(255, 253, 247, .78); white-space: nowrap; }
#board-status::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(189, 216, 91, .16); }
.section-heading button { padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; }
.section-heading button:hover, .section-heading button:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.podium { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1.02fr) minmax(0, .9fr); align-items: stretch; gap: 12px; margin-bottom: 14px; }
.podium[hidden] { display: none; }
.profile-card, .ranking-row { position: relative; overflow: hidden; }
.profile-card { display: flex; min-width: 0; min-height: 258px; flex-direction: column; padding: 23px 21px 20px; border: 1px solid #d3ddd7; border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 38px rgba(22, 55, 42, .055); transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.profile-card:hover, .profile-card:focus-within { border-color: #8db5a3; box-shadow: 0 18px 48px rgba(22, 55, 42, .11); transform: translateY(-2px); }
.profile-card--rank-1 { min-height: 318px; padding: 28px 25px 23px; }
.profile-card--rank-2 { min-height: 286px; margin-top: 18px; }
.profile-card--rank-3 { min-height: 260px; margin-top: 36px; padding: 20px 18px 18px; }
.profile-card--winner { border-color: #78a993; background: radial-gradient(circle at 90% 0, rgba(189, 216, 91, .28), transparent 9rem), #f5faf6; }
.card-meta, .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-meta { color: #77837d; font-size: 11px; }
.position { color: var(--accent); font-size: 15px; }
.click-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.profile-link { color: inherit; text-decoration: none; }
.profile-link:hover, .profile-link:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.profile-card .profile-title { display: flex; min-width: 0; align-items: flex-start; flex-direction: column; gap: 13px; margin-top: 20px; }
.profile-title h3, .row-profile h3 { min-width: 0; margin: 0; letter-spacing: -.04em; }
.profile-card .profile-title h3 { font-size: 20px; white-space: normal; }
.profile-card--rank-1 .profile-title h3 { font-size: 24px; }
.profile-card--rank-3 .profile-title h3 { font-size: 18px; }
.avatar { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: var(--accent-soft); box-shadow: 0 0 0 1px rgba(23, 22, 25, .08); color: var(--accent); font-size: 15px; font-weight: 800; }
.profile-card .avatar { width: 64px; height: 64px; }
.profile-card--rank-1 .avatar { width: 82px; height: 82px; }
.profile-card--rank-3 .avatar { width: 54px; height: 54px; }
.avatar img { position: absolute; width: 100%; height: 100%; inset: 0; border-radius: 50%; object-fit: cover; }
.profile-card > p { display: -webkit-box; margin: 15px 0 18px; overflow: hidden; color: #5f6e67; font-size: 13px; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.profile-card--rank-3 > p { font-size: 12px; -webkit-line-clamp: 2; }
.card-footer { margin-top: auto; }
.card-footer span { color: #78847e; font-size: 11px; }
.profile-followers { display: block; margin-top: 4px; color: #66766e; font-size: 11px; }
.card-footer strong { font-size: 27px; font-variant-numeric: tabular-nums; letter-spacing: -.055em; }
.profile-card--rank-1 .card-footer strong { font-size: 34px; }
.takeover-action { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; min-height: 48px; padding: 0 14px; border: 0; background: var(--accent); color: #fff; cursor: pointer; opacity: 0; transform: translateY(100%); transition: opacity 160ms ease, transform 160ms ease, background 160ms ease; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: -.01em; }
.profile-card:hover .takeover-action, .profile-card:focus-within .takeover-action, .ranking-row:hover .takeover-action, .ranking-row:focus-within .takeover-action, .takeover-action:focus-visible { opacity: 1; transform: translateY(0); }
.takeover-action:hover, .takeover-action:focus-visible { background: var(--accent-dark); outline: none; }
.ranking-list { display: grid; gap: 8px; margin-top: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.ranking-row { display: grid; grid-template-columns: 42px 64px minmax(0, 1fr) auto; gap: 14px; min-height: 98px; padding: 15px 20px; border: 1px solid #d6dfd9; border-radius: 16px; background: rgba(255, 253, 247, .94); box-shadow: 0 6px 22px rgba(22, 55, 42, .035); transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.ranking-row:hover { border-color: #a5b9ae; box-shadow: 0 16px 42px rgba(22, 55, 42, .08); transform: translateY(-2px); }
.row-position { color: #98929d; font-size: 22px; font-weight: 800; letter-spacing: -.05em; text-align: center; }
.ranking-row .avatar { width: 60px; height: 60px; }
.row-profile { min-width: 0; align-self: center; }
.row-profile .profile-link { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; }
.row-profile h3 { overflow: visible; font-size: 19px; text-overflow: clip; }
.profile-handle { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.row-profile p { margin: 7px 0 0; overflow: visible; color: #6f6974; font-size: 13px; line-height: 1.45; text-overflow: clip; white-space: normal; }
.row-value { display: grid; min-width: 80px; align-self: center; gap: 4px; text-align: right; }
.row-value span { color: #948e98; font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.row-bid { color: var(--ink); font-size: 25px; font-variant-numeric: tabular-nums; letter-spacing: -.05em; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .ranking-row .takeover-action { top: 0; left: auto; width: 128px; min-height: 100%; border-left: 1px solid rgba(255, 255, 255, .2); transform: translateX(100%); }
  .ranking-row:hover .takeover-action, .ranking-row:focus-within .takeover-action, .ranking-row .takeover-action:focus-visible { transform: translateX(0); }
}
.board-empty { margin: 14px 0 0; padding: 34px; border: 1px dashed #c9c2ce; border-radius: var(--radius); color: var(--muted); text-align: center; }
.ranking-disclosure { max-width: 720px; margin: 22px 0 0; color: #53645c; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.rules-document .page-shell { width: min(1080px, calc(100% - 48px)); }
.rules-document .site-header { border-bottom: 1px solid var(--line); }
.rules-document .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.rules-page { padding: 72px 0 100px; }
.rules-hero { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; padding-bottom: 72px; }
.rules-kicker { margin: 4px 0 18px; color: var(--accent); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.rules-hero h1 { margin: 0; font-size: clamp(68px, 10vw, 118px); font-weight: 720; line-height: .84; letter-spacing: -.075em; }
.rules-intro { color: #45574f; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; }
.rules-intro > p:first-child { margin: 0 0 28px; }
.rules-principle { margin: 0; padding: 28px 30px; border-radius: 20px; background: #11251d; color: #fff; font-weight: 650; letter-spacing: -.025em; }
.rules-sections { border-bottom: 1px solid var(--line); }
.rule-section { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 34px; padding: 52px 0 58px; border-top: 1px solid var(--line); }
.rule-index { display: grid; width: 42px; height: 42px; place-items: center; margin: 0; border: 1px solid #b9cec3; border-radius: 50%; color: var(--accent); font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.rule-section h2 { margin: 0 0 32px; font-size: clamp(32px, 4vw, 50px); font-weight: 680; line-height: 1; letter-spacing: -.05em; }
.rule-section div > p { max-width: 760px; margin: 0; color: #45574f; font-size: 16px; line-height: 1.65; }
.rule-section code { padding: 2px 5px; border-radius: 5px; background: var(--accent-soft); font-size: .9em; }
.rules-list { display: grid; gap: 0; margin: 0; padding: 0; counter-reset: rule-item; list-style: none; }
.rules-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid rgba(20, 35, 29, .1); color: #45574f; font-size: 16px; line-height: 1.55; counter-increment: rule-item; }
.rules-list li::before { content: counter(rule-item, decimal-leading-zero); color: var(--accent); font: 700 11px/1.9 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 0 0 32px; color: var(--muted); font-size: 11px; }
.site-footer a { color: var(--accent); }
.rules-footer a { color: var(--accent); text-decoration: none; }
.rules-footer a:hover, .rules-footer a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.bid-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 35px; border: 1px solid #d2ddd6; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 35px 90px rgba(16, 39, 29, .26); }
.bid-dialog::backdrop { background: rgba(20, 18, 25, .48); backdrop-filter: blur(7px); }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.bid-dialog h2 { margin: 0 0 18px; font-size: 37px; line-height: 1.04; letter-spacing: -.05em; }
.bid-dialog > p:not(.eyebrow) { color: #615c65; line-height: 1.5; }
.bid-dialog .dialog-note { margin: 22px 0; padding: 15px; border-radius: 12px; background: #edf5f0; font-size: 13px; }
.dialog-close { position: absolute; top: 17px; right: 17px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f0edf3; color: var(--ink); cursor: pointer; font-size: 23px; }
.dialog-action { width: 100%; }
.resolved-profile { display: grid; gap: 12px; margin: 20px 0; padding: 18px; border: 1px solid #d2ddd6; border-radius: 14px; background: #fafcfb; }
.resolved-profile[hidden] { display: none; }
.resolved-profile__header { display: flex; align-items: center; gap: 12px; }
.resolved-profile__header .avatar { width: 54px; height: 54px; }
.resolved-profile h3, .resolved-profile p { margin: 0; }
.resolved-profile h3 { color: var(--ink); font-size: 20px; letter-spacing: -.025em; }
.resolved-profile div p, .resolved-profile small { color: var(--muted); font-size: 12px; }
.resolved-profile > p { color: #5f6e67; font-size: 13px; line-height: 1.5; }
.payment-checkout { display: grid; gap: 8px; margin: 20px 0; }
.payment-checkout[hidden], .payment-result[hidden], .story-share[hidden] { display: none; }
.payment-checkout label, .payment-result label { color: var(--ink); font-size: 13px; font-weight: 750; }
.payment-checkout input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid #ccd5cf; border-radius: 12px; background: #fff; color: var(--ink); outline: none; }
.payment-checkout input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(23, 107, 82, .12); }
.payment-checkout input[aria-invalid="true"] { border-color: #b52343; }
.payment-checkout p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.checkout-attestation { display: grid; gap: 8px; margin: 10px 0 0; padding: 14px; border: 1px solid #c7d7cf; border-radius: 12px; }
.checkout-attestation legend { padding: 0 6px; color: var(--ink); font-size: 12px; font-weight: 750; }
.attestation-control { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: flex-start; min-height: 44px; cursor: pointer; font-size: 12px; line-height: 1.48; }
.attestation-control input { width: 22px; min-height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.attestation-control input:focus-visible { outline: 3px solid rgba(23, 107, 82, .22); outline-offset: 3px; }
.attestation-control input[aria-invalid="true"] { outline: 2px solid #b52343; outline-offset: 2px; }
.checkout-attestation a, .checkout-privacy-note a { color: var(--accent); font-weight: 700; }
.checkout-attestation a:focus-visible, .checkout-privacy-note a:focus-visible { outline: 3px solid rgba(23, 107, 82, .18); outline-offset: 2px; }
.field-error { min-height: 16px; color: #b52343 !important; font-weight: 650; }
.payment-result { display: grid; gap: 10px; margin: 20px 0; }
.payment-result img { width: min(240px, 100%); height: auto; justify-self: center; border: 10px solid #fff; border-radius: 15px; box-shadow: 0 8px 28px rgba(22, 55, 42, .1); }
.payment-result textarea { width: 100%; resize: none; padding: 12px; border: 1px solid #ccd5cf; border-radius: 10px; background: #f5f3ec; color: #344c42; font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.payment-result a { color: var(--accent); font-size: 12px; text-align: center; }
.story-share { display: grid; gap: 10px; margin: 20px 0; padding: 18px; border: 1px solid #b9cec3; border-radius: 14px; background: var(--accent-soft); }
.story-share h3, .story-share p { margin: 0; }
.story-share h3 { font-size: 21px; letter-spacing: -.025em; }
.story-share p { color: #45574f; font-size: 12px; line-height: 1.5; }
.story-share .story-share-kicker { color: var(--accent); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.story-share .secondary-button { width: 100%; background: var(--surface); }
.story-share-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.story-share-actions .secondary-button { display: grid; place-items: center; text-align: center; text-decoration: none; }
.story-share-preview { width: min(180px, 100%); height: auto; justify-self: center; border: 1px solid #b9cec3; border-radius: 12px; background: var(--surface); box-shadow: 0 10px 28px rgba(22, 55, 42, .12); }
.story-share [hidden] { display: none; }
.secondary-button { min-height: 44px; padding: 0 18px; border: 1px solid #9ebbad; border-radius: 11px; background: var(--surface); color: var(--accent); cursor: pointer; font-weight: 700; }
.secondary-button:hover, .secondary-button:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.payment-message { min-height: 20px; margin: 8px 0 14px; color: #53645c; font-size: 12px; line-height: 1.45; }
.payment-message.is-error { color: #b52343; }
.profile-card.is-payment-confirmed, .ranking-row.is-payment-confirmed { outline: 4px solid rgba(23, 107, 82, .28); outline-offset: 5px; box-shadow: 0 18px 55px rgba(23, 107, 82, .2); transition: outline-color 250ms ease, box-shadow 250ms ease; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; max-width: min(380px, calc(100% - 48px)); padding: 12px 16px; border-radius: 12px; background: #11251d; color: #fff; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease; font-size: 13px; box-shadow: 0 16px 38px rgba(16, 39, 29, .24); }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.founding-preview { background: radial-gradient(circle at 50% -8rem, rgba(23, 107, 82, .13), transparent 34rem), var(--background); }
.founding-preview .page-shell { width: min(880px, calc(100% - 48px)); }
.founding-preview .site-header { min-height: 88px; }
.founding-preview .brand-suffix { padding: 4px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.founding-preview .live-strip { width: auto; justify-content: center; border-color: #d0dbd4; background: rgba(255, 253, 247, .72); }
.founding-preview .hero { padding: 58px 0 54px; }
.founding-preview .hero-copy { max-width: 710px; font-size: clamp(19px, 2.6vw, 25px); }
.founding-preview .bid-heading { gap: 10px 18px; margin-bottom: 34px; font-size: clamp(46px, 7.4vw, 70px); }
.founding-preview .bid-value { min-width: 205px; }
.founding-preview .bid-form { grid-template-columns: minmax(0, 1fr) auto; max-width: none; }

@media (max-width: 900px) {
  .page-shell { width: min(100% - 36px, 720px); }
  .rules-hero { grid-template-columns: 1fr; gap: 42px; }
  .rules-hero h1 { font-size: clamp(72px, 15vw, 104px); }
}

@media (max-width: 700px) {
  .founding-preview .page-shell { width: calc(100% - 28px); }
  .founding-preview .live-strip { justify-content: flex-start; }
  .founding-preview .hero { padding: 42px 0 62px; }
  .founding-preview .bid-controls { padding: 30px 0 34px; }
  .founding-preview .bid-heading { align-items: flex-start; flex-direction: column; font-size: clamp(37px, 10.5vw, 44px); line-height: 1.02; }
  .founding-preview .bid-heading > span:first-child { white-space: nowrap; }
  .founding-preview .price-control { width: 100%; justify-content: space-between; }
  .founding-preview .bid-value { min-width: 0; }
  .founding-preview .bid-form { grid-template-columns: 1fr; }
  .platform-picker { width: 100%; }
  .founding-preview .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .founding-preview #board-status { min-height: 36px; white-space: normal; }
  .founding-preview .podium { grid-template-columns: 1fr; align-items: stretch; }
  .profile-card, .profile-card--rank-1, .profile-card--rank-2, .profile-card--rank-3 { min-height: 0; margin-top: 0; padding: 22px; }
  .profile-card--rank-1 { padding-top: 26px; }
  .profile-card .profile-title { align-items: center; flex-direction: row; }
  .ranking-row { grid-template-columns: 36px 58px minmax(0, 1fr) auto; gap: 10px; min-height: 108px; padding: 16px 14px; }
  .row-position { font-size: 17px; }
  .ranking-row .avatar { width: 56px; height: 56px; }
  .row-profile h3 { font-size: 15px; }
  .profile-handle { width: 100%; font-size: 10px; }
  .row-profile p { display: -webkit-box; margin-top: 5px; overflow: hidden; font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .row-value { min-width: 62px; }
  .row-value span { display: none; }
  .row-bid { font-size: 18px; }
}

@media (hover: none), (pointer: coarse) {
  .takeover-action { position: static; width: auto; min-height: 46px; opacity: 1; transform: none; }
  .profile-card .takeover-action { margin: 6px -22px -22px; }
  .profile-card--rank-1 .takeover-action { margin-right: -22px; margin-bottom: -22px; margin-left: -22px; }
  .ranking-row .takeover-action { grid-column: 1 / -1; margin: 4px -14px -16px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 90px; }
  .site-nav { gap: 18px; font-size: 11px; }
  .brand-name { font-size: 20px; }
  .brand-suffix { display: none; }
  .live-strip { padding: 11px 13px; font-size: 10px; }
  .analytics-summary { border-radius: 16px; line-height: 1.5; }
  .live-strip .separator, #status-detail { display: none; }
  .primary-button, .input-wrap input { min-height: 56px; }
  .rules-document .page-shell { width: calc(100% - 28px); }
  .rules-page { padding: 52px 0 72px; }
  .rules-hero { gap: 34px; padding-bottom: 54px; }
  .rules-hero h1 { font-size: clamp(64px, 23vw, 88px); }
  .rules-principle { padding: 24px; border-radius: 18px; }
  .rule-section { grid-template-columns: 1fr; gap: 22px; padding: 40px 0 46px; }
  .rule-section h2 { margin-bottom: 24px; }
  .rules-list li { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; font-size: 15px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .bid-dialog { padding: 30px 24px 24px; }
  .bid-dialog h2 { font-size: 31px; }
}

@media (max-width: 430px) {
  .ranking-row { grid-template-columns: 30px 52px minmax(0, 1fr); }
  .ranking-row .avatar { width: 50px; height: 50px; }
  .row-profile h3 { display: -webkit-box; overflow: hidden; line-height: 1.18; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .row-value { grid-column: 3; justify-self: start; margin-top: -4px; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
