:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090b0f;
  color: #f5f2ea;
  --section-title-size: clamp(32px, 4vw, 48px);
  --section-title-tracking: -.025em;
  --section-title-line-height: 1;
  --section-divider-title-gap: 54px;
  --purchase-history-width: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(90% 65% at 88% -5%, rgba(71, 89, 125, .20), transparent 66%),
    radial-gradient(75% 52% at 6% 88%, rgba(100, 73, 119, .12), transparent 72%),
    linear-gradient(145deg, #080a0e 0%, #111720 52%, #080a0e 100%);
  background-attachment: fixed;
}

button, input { font: inherit; }

.game-page {
  width: min(1040px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.site-nav {
  position: fixed;
  z-index: 15;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 8px max(20px, calc((100vw - 1040px) / 2));
  border-bottom: 1px solid rgba(245, 242, 234, .12);
  background: rgba(9, 11, 15, .76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-nav-brand {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  min-width: 0;
  gap: 9px;
  color: #f5f2ea;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-logo {
  flex: 0 0 auto;
  display: block;
  width: 30px;
  height: 30px;
}

.site-nav-links { display: inline-flex; flex: 0 1 auto; min-width: 0; gap: 4px; }

.site-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  color: rgba(245, 242, 234, .7);
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  transition: color .16s ease, background .16s ease;
}

.site-nav-brand:hover,
.site-nav-brand:focus-visible { color: #d8c190; outline: 0; }

.site-nav-links a:hover,
.site-nav-links a:focus-visible {
  color: #f5f2ea;
  background: rgba(245, 242, 234, .1);
  outline: 0;
}

#global-stats,
#purchase-records,
#faq { scroll-margin-top: 72px; }

.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 84px 24px 6px;
  color: #f6f5f1;
  background: transparent;
  text-align: center;
}

.hero-inner { width: min(1120px, 100%); margin: 0 auto; }

.eyebrow {
  margin: 0 0 9px;
  color: #d8c190;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

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

.hero h1 {
  position: relative;
  left: 50%;
  width: max-content;
  max-width: calc(100vw - 48px);
  margin: 42px auto 34px;
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 780;
  letter-spacing: -.02em;
  line-height: .94;
  transform: translateX(-50%);
  white-space: nowrap;
}

.hero-copy {
  max-width: 1120px;
  margin: 0 auto;
  color: #a9abb3;
  font-size: clamp(18px, 2.1vw, 29px);
  font-weight: 470;
  letter-spacing: normal;
  line-height: 1.35;
}

.hero-sale-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  width: min(900px, 100%);
  margin: 56px auto 0;
}

.hero-sale-rule { margin: 22px auto 0; color: rgba(245, 242, 234, .55); font-size: 14px; font-weight: 700; line-height: 1.4; }

.hero-sale-slot {
  position: relative;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  border: 3px solid var(--brand-edge);
  border-radius: 22px;
  color: #fff;
  background: var(--brand-fill);
  box-shadow: inset 0 1px rgba(255, 255, 255, .24), 0 4px 0 #101722, 0 12px 22px color-mix(in srgb, var(--brand-fill) 24%, transparent);
  text-align: center;
}

.hero-sale-slot::before {
  content: "";
  position: absolute;
  top: 13%;
  right: 14%;
  left: 14%;
  height: 18%;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  pointer-events: none;
}

.hero-sale-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 6px;
  height: 100%;
  padding: 12px 5px;
  transition: opacity .16s ease;
}

.hero-sale-actions {
  position: absolute;
  z-index: 3;
  inset: 7px;
  display: grid;
  align-content: center;
  gap: 7px;
  border-radius: inherit;
  background: rgba(12, 17, 26, .1);
  backdrop-filter: blur(2px) saturate(1.04);
  -webkit-backdrop-filter: blur(2px) saturate(1.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.hero-sale-action {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  font: 800 clamp(11px, 1.05vw, 14px)/1 Inter, Arial, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s ease, filter .14s ease;
}

.hero-sale-action:hover { filter: brightness(1.07); transform: translateY(-1px); }
.hero-sale-action:focus-visible { outline: 3px solid rgba(245, 242, 234, .94); outline-offset: 2px; }
.hero-sale-action-primary { color: #fff; background: rgba(9, 14, 23, .82); }
.hero-sale-action-visit { color: #111722; background: rgba(245, 242, 234, .94); }

.hero-sale-title, .hero-sale-status, .hero-sale-owner {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 #101722, 0 -1px 0 #101722, 1px 0 0 #101722, -1px 0 0 #101722;
}
.hero-sale-title { font-size: clamp(12px, 1.25vw, 16px); line-height: 1; }
.hero-sale-status { font-size: clamp(22px, 2.5vw, 32px); line-height: .9; }
.hero-sale-owner { overflow: hidden; font-size: clamp(11px, 1.05vw, 13px); line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; opacity: .82; }
.hero-sale-slot:hover .hero-sale-actions, .hero-sale-slot:has(.hero-sale-action:focus-visible) .hero-sale-actions { opacity: 1; pointer-events: auto; }
.hero-sale-slot:hover .hero-sale-content, .hero-sale-slot:has(.hero-sale-action:focus-visible) .hero-sale-content { opacity: .7; }

.audience-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #dedfe3;
  font-size: clamp(13px, .95vw, 16px);
  font-weight: 490;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.audience-stats[hidden] { display: none; }

.audience-stats span { display: inline-flex; align-items: center; gap: 8px; }
.audience-stats strong { color: #ffffff; font-weight: 720; letter-spacing: -.01em; }
.audience-separator { color: #6d717b; font-weight: 700; }
.online-dot { width: 14px; height: 14px; border: 4px solid rgba(25, 166, 87, .17); border-radius: 999px; background: #16ab5b; box-shadow: 0 0 0 1px rgba(25, 166, 87, .10); }

.board-experience { display: grid; min-width: 0; gap: 0; }

.game-card {
  position: relative;
  width: 100%;
  min-width: 0;
  height: min(60vw, 620px);
  min-height: 620px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#match3-canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  touch-action: none;
  cursor: pointer;
  outline: none;
}

.brand-name-guide {
  width: min(780px, 100%);
  margin: 28px auto 4px;
  padding: var(--section-divider-title-gap) 0 30px;
  border-top: 1px solid rgba(245, 242, 234, .14);
  border-bottom: 1px solid rgba(245, 242, 234, .14);
  text-align: center;
}

.brand-name-guide-copy { max-width: 610px; margin: 0 auto; }
.brand-name-guide h2 { margin-bottom: 12px; font-size: var(--section-title-size); letter-spacing: var(--section-title-tracking); line-height: var(--section-title-line-height); }
.brand-name-guide-copy > p:last-child { margin-bottom: 0; color: rgba(245, 242, 234, .7); font-size: 16px; line-height: 1.45; }

.brand-name-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 620px;
  margin: 28px auto 24px;
}

.brand-name-example { margin: 0; }
.brand-name-example { display: grid; justify-items: center; }
.brand-name-example-link { display: block; border-radius: 13px; line-height: 0; }
.brand-name-example-link:focus-visible { outline: 3px solid rgba(245, 242, 234, .9); outline-offset: 4px; }
.brand-name-example-tile { display: block; width: 52px; margin: 0 auto 12px; }
.brand-name-example figcaption { display: grid; gap: 4px; }
.brand-name-example figcaption strong { color: #f5f2ea; font-size: 15px; }
.brand-name-example figcaption span { color: rgba(245, 242, 234, .65); font-size: 14px; line-height: 1.35; }
.brand-name-guide-note { margin: 0; color: rgba(245, 242, 234, .68); font-size: 14px; font-weight: 700; line-height: 1.4; }
.brand-preview-trigger { display: block; margin: 6px auto 0; border: 0; padding: 0; color: #f5f2ea; background: transparent; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.brand-preview-trigger:focus-visible { outline: 2px solid #f5f2ea; outline-offset: 3px; border-radius: 3px; }

.brand-preview-modal[hidden] { display: none !important; }
.brand-preview-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(3, 5, 9, .42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.brand-preview-dialog { position: relative; width: min(720px, 100%); max-height: min(860px, calc(100vh - 40px)); overflow: auto; padding: 38px; border: 1px solid rgba(245, 242, 234, .2); border-radius: 26px; background: linear-gradient(145deg, rgba(29, 37, 49, .98), rgba(9, 12, 18, .98)); box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.brand-preview-step[hidden] { display: none; }
.brand-preview-step { display: grid; gap: 20px; }
.brand-preview-input { display: block; width: 100%; border: 1px solid rgba(245, 242, 234, .22); border-radius: 12px; padding: 13px 14px; color: #f5f2ea; background: rgba(0, 0, 0, .24); font-size: 18px; font-weight: 700; }
.brand-preview-input:focus-visible { outline: 3px solid rgba(245, 242, 234, .72); outline-offset: 2px; }
.brand-preview-color-picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.brand-preview-color-option { appearance: none; position: relative; min-width: 0; display: grid; justify-items: center; gap: 7px; padding: 7px 2px 4px; border: 0; border-radius: 14px; color: rgba(245, 242, 234, .66); background: transparent; font-size: 12px; font-weight: 800; line-height: 1; cursor: pointer; transition: color .16s ease, background .16s ease; }
.brand-preview-color-option:hover, .brand-preview-color-option:focus-visible { color: #f5f2ea; background: rgba(245, 242, 234, .07); outline: 0; }
.brand-preview-color-option:focus-visible { box-shadow: 0 0 0 2px rgba(245, 242, 234, .68); }
.brand-preview-color-option.is-selected { color: #f5f2ea; background: rgba(245, 242, 234, .1); }
.brand-preview-color-option.is-selected::after { content: "✓"; position: absolute; top: 2px; right: 3px; display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid rgba(245, 242, 234, .78); border-radius: 50%; color: #101722; background: #f5f2ea; font-size: 12px; font-weight: 950; line-height: 1; }
.brand-preview-color-tile { display: block; width: min(100%, 66px); aspect-ratio: 1; transition: transform .16s cubic-bezier(.2, .9, .2, 1), filter .16s ease; }
.brand-preview-color-option.is-selected .brand-preview-color-tile { transform: scale(1.08); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.brand-preview-board { display: block; width: min(100%, 500px); max-width: 500px; margin: 0 auto; overflow: hidden; border: 1px solid rgba(245, 242, 234, .15); border-radius: 22px; background: rgba(11, 16, 24, .72); box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 14px 34px rgba(0, 0, 0, .28); }
.brand-preview-selection-copy { min-height: 20px; margin: -4px 0 0; color: rgba(245, 242, 234, .64); font-size: 14px; font-weight: 700; line-height: 1.4; text-align: center; }
.brand-preview-purchase-action { min-height: 50px; border: 1px solid #d8c190; border-radius: 13px; color: #17130d; background: #d8c190; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .18); font-size: 16px; font-weight: 900; cursor: pointer; transition: filter .16s ease, transform .16s ease; }
a.brand-preview-purchase-action { display: grid; place-items: center; text-decoration: none; }
.brand-preview-purchase-action:hover { filter: brightness(1.06); transform: translateY(-1px); }
.brand-preview-purchase-action:disabled { cursor: not-allowed; filter: saturate(.2) brightness(.65); transform: none; }
.brand-purchase-form { gap: 16px; }
.brand-purchase-back { justify-self: start; padding: 0; border: 0; color: rgba(245, 242, 234, .72); background: transparent; font-size: 14px; font-weight: 800; cursor: pointer; }
.brand-purchase-back:hover, .brand-purchase-back:focus-visible { color: #f5f2ea; outline: 0; }
.brand-purchase-heading { display: grid; gap: 7px; }
.brand-purchase-heading p { margin: 0; color: #d8c190; font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.brand-purchase-heading h2 { margin: 0; color: #f5f2ea; font-size: 31px; letter-spacing: -.035em; line-height: 1; }
.brand-purchase-color-summary { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; border: 1px solid rgba(245, 242, 234, .14); border-radius: 14px; background: rgba(0, 0, 0, .18); }
.brand-purchase-color { display: grid; justify-items: center; gap: 5px; color: rgba(245, 242, 234, .68); font-size: 11px; font-weight: 800; line-height: 1; }
.brand-purchase-color canvas { display: block; width: 54px; aspect-ratio: 1; }
.brand-purchase-founding-note { margin: 0; padding: 13px 15px; border: 1px solid rgba(216, 193, 144, .35); border-radius: 11px; color: rgba(245, 242, 234, .7); background: rgba(216, 193, 144, .08); font-size: 14px; font-weight: 700; line-height: 1.45; }
.brand-purchase-founding-note strong { color: #d8c190; }
.brand-purchase-founding-note[hidden] { display: none; }
.brand-purchase-field { display: grid; gap: 8px; color: rgba(245, 242, 234, .76); font-size: 14px; font-weight: 800; }
.brand-purchase-field > input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(245, 242, 234, .2); border-radius: 11px; color: #f5f2ea; background: rgba(0, 0, 0, .2); font-size: 16px; font-weight: 700; }
.brand-purchase-field > input:focus-visible { outline: 2px solid rgba(245, 242, 234, .7); outline-offset: 2px; }
.brand-purchase-url-control { --brand-purchase-url-bg: #283346; min-height: 50px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; overflow: hidden; border: 1px solid rgba(245, 242, 234, .2); border-radius: 11px; background: var(--brand-purchase-url-bg); transition: border-color .16s ease, box-shadow .16s ease; }
.brand-purchase-url-control:focus-within { border-color: rgba(245, 242, 234, .7); box-shadow: 0 0 0 2px rgba(245, 242, 234, .1); }
.brand-purchase-url-control.is-ready { border-color: rgba(104, 220, 170, .62); box-shadow: inset 0 0 0 1px rgba(104, 220, 170, .09); }
.brand-purchase-url-control input { width: 100%; min-width: 0; min-height: 48px; padding: 0 14px; border: 0; outline: 0; color: #f5f2ea; background: transparent; font-size: 16px; font-weight: 700; }
.brand-purchase-url-control input:-webkit-autofill,
.brand-purchase-url-control input:-webkit-autofill:hover,
.brand-purchase-url-control input:-webkit-autofill:focus { -webkit-text-fill-color: #f5f2ea; -webkit-box-shadow: 0 0 0 1000px var(--brand-purchase-url-bg) inset; caret-color: #f5f2ea; }
.brand-purchase-url-icon { width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; margin-left: 7px; border: 1px solid rgba(245, 242, 234, .16); border-radius: 9px; color: #f5f2ea; background: rgba(245, 242, 234, .08); text-decoration: none; }
.brand-purchase-url-icon[hidden] { display: none; }
.brand-purchase-url-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-purchase-url-fallback { font-size: 17px; font-weight: 900; line-height: 1; }
.brand-purchase-url-spinner { width: 17px; height: 17px; border: 2px solid rgba(245, 242, 234, .24); border-top-color: #d8c190; border-radius: 50%; animation: brand-purchase-url-spin .72s linear infinite; }
@keyframes brand-purchase-url-spin { to { transform: rotate(360deg); } }
.brand-purchase-bid-context { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid rgba(245, 242, 234, .14); border-bottom: 1px solid rgba(245, 242, 234, .14); }
.brand-purchase-bid-context div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; color: rgba(245, 242, 234, .6); font-size: 14px; font-weight: 700; }
.brand-purchase-bid-context [hidden] { display: none; }
.brand-purchase-bid-context strong { color: #f5f2ea; font-size: 16px; font-weight: 850; font-variant-numeric: tabular-nums; }
.brand-purchase-amount-field { min-height: 52px; display: grid; grid-template-columns: auto minmax(0, 1fr) 46px; align-items: center; overflow: hidden; border: 1px solid rgba(245, 242, 234, .2); border-radius: 11px; color: rgba(245, 242, 234, .62); background: rgba(0, 0, 0, .2); }
.brand-purchase-amount-field > b { padding-left: 15px; font-size: 18px; }
.brand-purchase-amount-field input { width: 100%; min-height: 50px; padding: 0 8px; border: 0; outline: 0; color: #f5f2ea; background: transparent; font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.brand-purchase-bid-stepper { align-self: stretch; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); border-left: 1px solid rgba(245, 242, 234, .16); }
.brand-purchase-bid-stepper button { min-width: 46px; padding: 0; border: 0; color: rgba(245, 242, 234, .72); background: rgba(245, 242, 234, .06); font-size: 11px; font-weight: 900; cursor: pointer; }
.brand-purchase-bid-stepper button:first-child { border-bottom: 1px solid rgba(245, 242, 234, .16); }
.brand-purchase-bid-stepper button:hover, .brand-purchase-bid-stepper button:focus-visible { color: #17130d; background: #d8c190; outline: 0; }
.brand-purchase-bid-stepper button:disabled { color: rgba(245, 242, 234, .28); background: transparent; cursor: not-allowed; }
.brand-purchase-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.brand-purchase-presets button { min-height: 58px; display: grid; place-items: center; gap: 3px; border: 1px solid rgba(245, 242, 234, .16); border-radius: 9px; color: rgba(245, 242, 234, .82); background: rgba(245, 242, 234, .05); cursor: pointer; }
.brand-purchase-presets strong { font-size: 18px; font-weight: 900; line-height: 1; }
.brand-purchase-presets span { color: rgba(245, 242, 234, .54); font-size: 11px; font-weight: 800; line-height: 1.2; }
.brand-purchase-presets button:hover, .brand-purchase-presets button:focus-visible { border-color: rgba(216, 193, 144, .74); color: #d8c190; background: rgba(216, 193, 144, .09); outline: 0; }
.brand-purchase-presets button:hover span, .brand-purchase-presets button:focus-visible span { color: rgba(216, 193, 144, .78); }
.brand-purchase-status { min-height: 18px; margin: 0; color: #f0b4ab; font-size: 13px; font-weight: 700; line-height: 1.4; }
.brand-purchase-status:empty { display: none; }
.brand-purchase-urgency { margin: 0; padding: 12px 14px; border-left: 3px solid #d8c190; color: rgba(245, 242, 234, .68); background: rgba(216, 193, 144, .07); font-size: 13px; font-weight: 700; line-height: 1.45; }
.brand-purchase-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; padding: 0; color: rgba(245, 242, 234, .62); font-size: 12px; font-weight: 700; line-height: 1.35; list-style: none; }
.brand-purchase-trust li { position: relative; padding-left: 18px; }
.brand-purchase-trust li::before { content: "✓"; position: absolute; left: 0; color: #d8c190; font-weight: 950; }
.brand-purchase-success { text-align: center; }
.brand-visit-notice { width: min(480px, 100%); margin: 0 auto; text-align: center; }
.brand-purchase-success-heading { display: grid; gap: 8px; }
.brand-purchase-success-heading p { margin: 0; color: #d8c190; font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.brand-purchase-success-heading h2 { margin: 0; font-size: clamp(30px, 5vw, 46px); letter-spacing: -.035em; line-height: 1; }
.brand-purchase-success-heading span { color: rgba(245, 242, 234, .68); font-size: 15px; font-weight: 700; line-height: 1.4; }
.brand-share-card { display: grid; justify-items: center; gap: 14px; padding: 22px; border: 1px solid rgba(245, 242, 234, .16); border-radius: 20px; background: radial-gradient(circle at 50% 45%, rgba(216, 193, 144, .12), transparent 60%), #0c111a; }
.brand-share-card > p { max-width: 600px; margin: 0; color: #f5f2ea; font-size: clamp(15px, 2vw, 20px); font-weight: 850; line-height: 1.3; }
.brand-share-card > p:last-of-type { color: rgba(245, 242, 234, .68); font-size: 14px; font-weight: 700; }
.brand-share-board { display: block; width: min(100%, 560px); border-radius: 18px; }
.brand-share-founding { padding: 7px 11px; border: 1px solid rgba(216, 193, 144, .48); border-radius: 999px; color: #d8c190; background: rgba(216, 193, 144, .08); font-size: 12px; letter-spacing: .04em; }
.brand-share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.brand-share-download { min-height: 50px; border: 1px solid rgba(245, 242, 234, .24); border-radius: 13px; color: #f5f2ea; background: rgba(245, 242, 234, .06); font-size: 15px; font-weight: 850; cursor: pointer; }
.brand-share-download:hover, .brand-share-download:focus-visible { border-color: #d8c190; color: #d8c190; outline: 0; }
.brand-purchase-success-close { justify-self: center; border: 0; padding: 4px; color: rgba(245, 242, 234, .56); background: transparent; font-size: 13px; font-weight: 800; cursor: pointer; }
.brand-purchase-success-close:hover, .brand-purchase-success-close:focus-visible { color: #f5f2ea; outline: 0; }
.game-status {
  position: absolute;
  right: 16px;
  bottom: 14px;
  max-width: calc(100% - 32px);
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(245, 242, 234, .84);
  background: rgba(4, 5, 7, .68);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 720;
}

.game-status:empty { display: none; }

.game-play-guide { width: min(760px, 100%); margin: -18px auto 22px; text-align: center; }
.game-play-guide p { margin: 0; color: rgba(245, 242, 234, .68); font-size: clamp(14px, 1.45vw, 17px); line-height: 1.45; }
.game-play-guide p + p { margin-top: 3px; color: rgba(245, 242, 234, .42); font-size: 13px; font-weight: 700; line-height: 1.4; }
.game-play-guide .game-round-color-war { margin-top: 3px; }

.placement-summary {
  padding: var(--section-divider-title-gap) 28px 28px;
  border-bottom: 1px solid rgba(245, 242, 234, .13);
}

.placement-summary-intro { display: grid; justify-items: center; gap: 14px; text-align: center; }
.placement-summary h2 { max-width: none; margin-bottom: 0; font-size: var(--section-title-size); letter-spacing: var(--section-title-tracking); line-height: var(--section-title-line-height); white-space: nowrap; }
.placement-summary-intro > p:last-child { max-width: 620px; margin-bottom: 0; color: rgba(245, 242, 234, .62); font-size: 16px; line-height: 1.5; }

.placement-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; }
.placement-facts article { min-width: 0; padding: 0 22px; }
.placement-facts article:first-child { padding-left: 0; }
.placement-facts article + article { border-left: 1px solid rgba(245, 242, 234, .12); }
.placement-facts span { display: block; margin-bottom: 14px; color: #d8c190; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.placement-facts h3 { margin-bottom: 7px; font-size: 17px; letter-spacing: -.015em; }
.placement-facts p { margin-bottom: 0; color: rgba(245, 242, 234, .58); font-size: 15px; line-height: 1.45; }
.founding-six { padding: var(--section-divider-title-gap) 0 42px; border-bottom: 1px solid rgba(245, 242, 234, .13); }
.founding-six-header { max-width: 680px; margin: 0 auto 30px; text-align: center; }
.founding-six h2 { margin-bottom: 11px; font-size: var(--section-title-size); letter-spacing: var(--section-title-tracking); line-height: var(--section-title-line-height); }
.founding-six-header p { margin: 0; color: rgba(245, 242, 234, .68); font-size: 17px; line-height: 1.45; }
.founding-six-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.founding-six-seat { min-width: 0; display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 13px; align-items: center; padding: 13px; border: 1px solid rgba(245, 242, 234, .13); border-radius: 16px; background: rgba(245, 242, 234, .035); }
.founding-six-seat.is-claimed { border-color: rgba(216, 193, 144, .32); background: rgba(216, 193, 144, .055); }
.founding-six-tile { display: block; width: 66px; aspect-ratio: 1; }
.founding-six-seat > div { min-width: 0; display: grid; gap: 3px; }
.founding-six-seat span { color: rgba(245, 242, 234, .52); font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.founding-six-seat strong, .founding-six-seat a { overflow: hidden; color: #f5f2ea; font-size: 15px; font-weight: 850; line-height: 1.2; text-decoration-color: rgba(216, 193, 144, .58); text-overflow: ellipsis; white-space: nowrap; }
.founding-six-seat a:hover, .founding-six-seat a:focus-visible { color: #d8c190; outline: 0; }
.founding-six-seat small { color: rgba(245, 242, 234, .44); font-size: 10px; font-weight: 700; line-height: 1.25; }
.founding-six-limit { margin: 22px 0 0; color: #d8c190; font-size: 14px; font-weight: 850; text-align: center; }
.founding-six-loading { grid-column: 1 / -1; margin: 0; padding: 22px; color: rgba(245, 242, 234, .52); text-align: center; }
.color-purchase-records {
  padding: 44px 0 6px;
}

.color-purchase-records-header {
  display: grid;
  justify-items: center;
  gap: 20px;
  margin-bottom: 26px;
  text-align: center;
}

.color-purchase-records-header > div:first-child { max-width: 620px; }
.color-purchase-records h2 { margin-bottom: 10px; font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.025em; line-height: 1; }
.color-purchase-records-header > div:first-child > p:not(.eyebrow) { margin-bottom: 0; color: rgba(245, 242, 234, .68); font-size: 16px; line-height: 1.45; }
.purchase-history-controls { display: flex; width: min(100%, var(--purchase-history-width)); align-items: center; gap: 14px; margin: -4px auto 22px; }
.purchase-history-controls[hidden] { display: none; }
.purchase-history-color-filter { position: relative; display: block; flex: 1 1 0; max-width: none; }
.purchase-history-color-filter::after { content: "⌄"; position: absolute; top: 50%; right: 20px; color: rgba(245, 242, 234, .76); font-size: 22px; line-height: 1; pointer-events: none; transform: translateY(-58%); }
.purchase-history-color-filter select { width: 100%; appearance: none; border: 1px solid rgba(245, 242, 234, .16); border-radius: 999px; padding: 14px 52px 14px 20px; color: #f5f2ea; background: rgba(245, 242, 234, .08); box-shadow: none; font-size: 18px; line-height: 1.1; cursor: pointer; }
.purchase-history-color-filter select:focus-visible { outline: none; border-color: rgba(245, 242, 234, .32); }
.purchase-history-sort { display: inline-flex; flex: 0 0 auto; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(245, 242, 234, .12); }
.purchase-history-sort button { border: 0; border-radius: 999px; padding: 11px 21px; color: rgba(245, 242, 234, .62); background: transparent; font-size: 17px; font-weight: 750; line-height: 1; cursor: pointer; }
.purchase-history-sort button[aria-pressed="true"] { color: #171a21; background: #f5f2ea; box-shadow: 0 2px 5px rgba(0, 0, 0, .24); }

.color-purchase-record-list { width: min(100%, var(--purchase-history-width)); margin: 0 auto; border-top: 1px solid rgba(245, 242, 234, .14); }
.color-purchase-record {
  display: grid;
  grid-template-columns: 64px minmax(120px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245, 242, 234, .14);
}

.color-purchase-record-tile { display: block; width: 64px; height: auto; aspect-ratio: 1; }
.color-purchase-record-url { min-width: 0; margin: 0; overflow-wrap: anywhere; color: rgba(245, 242, 234, .78); font-size: 17px; font-weight: 750; line-height: 1.25; text-decoration-color: rgba(245, 242, 234, .32); text-underline-offset: 4px; }
a.color-purchase-record-url:hover, a.color-purchase-record-url:focus-visible { color: #f5f2ea; text-decoration-color: #d8c190; outline: 0; }
.color-purchase-record-meta { display: grid; justify-items: end; gap: 5px; text-align: right; }
.color-purchase-record-price { margin: 0; color: #f5f2ea; font-size: 21px; font-weight: 850; line-height: 1; }
.color-purchase-record-time { color: rgba(245, 242, 234, .62); font-size: 15px; font-weight: 700; line-height: 1.35; }
.color-purchase-record-empty { margin: 0; padding: 30px 8px; color: rgba(245, 242, 234, .65); font-size: 16px; }

.match3-faq {
  padding: var(--section-divider-title-gap) 0 12px;
  border-top: 1px solid rgba(245, 242, 234, .14);
}

.match3-faq-header { max-width: 620px; margin: 0 auto 30px; text-align: center; }
.match3-faq h2 { margin-bottom: 10px; font-size: var(--section-title-size); letter-spacing: var(--section-title-tracking); line-height: var(--section-title-line-height); }
.match3-faq-header p { margin: 0; color: rgba(245, 242, 234, .68); font-size: 17px; line-height: 1.45; }
.match3-faq-list { width: min(100%, 760px); margin: 0 auto; border-top: 1px solid rgba(245, 242, 234, .14); }
.match3-faq-list details { border-bottom: 1px solid rgba(245, 242, 234, .14); }
.match3-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; color: #f5f2ea; font-size: 18px; font-weight: 800; line-height: 1.25; cursor: pointer; list-style: none; }
.match3-faq-list summary::-webkit-details-marker { display: none; }
.match3-faq-list summary::after { content: "+"; flex: 0 0 auto; color: #d8c190; font-size: 26px; font-weight: 500; line-height: 1; transition: transform .18s ease; }
.match3-faq-list details[open] summary::after { transform: rotate(45deg); }
.match3-faq-list details p { max-width: 640px; margin: -4px 0 20px; color: rgba(245, 242, 234, .68); font-size: 16px; line-height: 1.5; }

.builder-note {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: min(920px, 100%);
  max-width: 920px;
  margin: 42px auto 0;
  padding: 0 0 42px;
  border-bottom: 1px solid rgba(245, 242, 234, .2);
}

.builder-note-avatar { display: block; width: 68px; height: 68px; border: 2px solid rgba(245, 242, 234, .58); border-radius: 50%; object-fit: cover; }
.builder-note h2 { margin-bottom: 8px; font-size: clamp(21px, 2vw, 25px); letter-spacing: -.02em; line-height: 1.1; }
.builder-note p { max-width: 620px; margin: 0; color: rgba(245, 242, 234, .7); font-size: clamp(14px, 1.25vw, 16px); line-height: 1.45; }
.builder-note p + p { margin-top: 8px; }
.builder-note a { color: #f5f2ea; text-decoration-color: rgba(216, 193, 144, .78); text-underline-offset: 4px; }
.site-footer a { color: rgba(245, 242, 234, .5); text-decoration-color: rgba(245, 242, 234, .3); text-underline-offset: 4px; }
.builder-note a:hover, .site-footer a:hover { color: #d8c190; }

.site-footer { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 46px; color: rgba(245, 242, 234, .5); font-size: 15px; }
.site-footer nav { display: flex; gap: 28px; margin-bottom: 16px; }
.site-footer p { margin: 0; }

.color-race {
  padding: var(--section-divider-title-gap) 0 18px;
  border-top: 1px solid rgba(245, 242, 234, .14);
}

.color-race-header { max-width: 680px; margin: 0 auto 30px; text-align: center; }
.color-race h2 { margin-bottom: 11px; font-size: var(--section-title-size); letter-spacing: var(--section-title-tracking); line-height: var(--section-title-line-height); }
.color-race-copy { margin-bottom: 0; color: rgba(245, 242, 234, .68); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.4; }
.color-race-refresh { margin: 18px 0 0; color: rgba(245, 242, 234, .42); font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; }

.color-race-leaderboard { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.color-race-entry {
  display: grid;
  grid-template-columns: 60px minmax(0, 360px) 54px;
  gap: 10px;
  width: min(100%, 494px);
  margin: 0 auto;
  align-items: center;
  padding: 12px 8px;
}

.color-race-tile { display: block; width: 60px; }
.color-race-progress { width: 100%; height: 9px; overflow: hidden; border-radius: 999px; background: rgba(245, 242, 234, .1); }
.color-race-progress > span { position: relative; display: block; width: 0; height: 100%; overflow: hidden; border-radius: inherit; background: var(--brand-fill); box-shadow: 0 0 14px color-mix(in srgb, var(--brand-fill) 70%, transparent); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.color-race-progress > span::after { content: ""; position: absolute; inset: 0 auto 0 -42%; width: 34%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .48), transparent); transform: skewX(-18deg); animation: color-race-progress-flow 2.4s ease-in-out infinite; }
.color-race-count { justify-self: end; color: #f5f2ea; font-size: 19px; letter-spacing: -.02em; }

@keyframes color-race-progress-flow {
  from { translate: -40% 0; }
  to { translate: 430% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .color-race-progress > span { transition: none; }
  .color-race-progress > span::after { animation: none; }
  .brand-purchase-url-spinner { animation-duration: 1.6s; }
}

.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;
}

@media (max-width: 900px) {
  .site-nav { gap: 8px; }
  .site-nav-brand-text { display: none; }
  .site-nav-links { flex: 1 1 0; justify-content: flex-start; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
  .site-nav-links::-webkit-scrollbar { display: none; }
  .site-nav-links a { flex: 0 0 auto; padding-right: 11px; padding-left: 11px; }
}

@media (max-width: 720px) {
  .game-page { width: min(100% - 24px, 1040px); padding: 0 0 32px; gap: 16px; }
  .hero { padding: 64px 18px 6px; }
  .hero h1 { left: auto; width: auto; margin: 46px auto 22px; max-width: 620px; font-size: clamp(40px, 8.4vw, 64px); transform: none; white-space: normal; }
  .audience-stats { gap: 7px; font-size: 13px; }
  .online-dot { width: 12px; height: 12px; border-width: 3px; }
  .hero-sale-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(440px, 100%);
    margin-top: 40px;
  }
  .placement-summary { padding: var(--section-divider-title-gap) 0 23px; }
  .founding-six-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .placement-summary-intro { grid-template-columns: 1fr; gap: 13px; }
  .placement-facts { grid-template-columns: 1fr; margin-top: 25px; }
  .placement-facts article { padding: 16px 0; }
  .placement-facts article:first-child { padding-top: 0; }
  .placement-facts article + article { border-top: 1px solid rgba(245, 242, 234, .12); border-left: 0; }
  .placement-facts span { margin-bottom: 7px; }
  .brand-name-examples { gap: 18px; }
  .brand-preview-dialog { padding: 30px; }
  .brand-preview-color-picker { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 500px; margin-right: auto; margin-left: auto; }
  .brand-preview-color-tile { width: min(100%, 64px); }
  .color-purchase-records-header { display: grid; align-items: start; }
  .site-footer { width: min(920px, calc(100% - 24px)); }
  .color-race-entry { grid-template-columns: 52px minmax(0, 300px) 52px; gap: 8px; width: min(100%, 420px); }
  .color-race-tile { width: 52px; }
}

@media (max-width: 520px) {
  :root { --section-divider-title-gap: 42px; }
  .game-page { width: min(100% - 18px, 1040px); }
  .site-nav { min-height: 48px; padding: 6px 8px; }
  .site-nav-brand { gap: 6px; font-size: 12px; }
  .site-nav-logo { width: 25px; height: 25px; border-radius: 7px; font-size: 12px; }
  .site-nav-links { gap: 0; }
  .site-nav-links a { min-height: 36px; padding: 0 9px; font-size: 12px; }
  .hero { padding: 58px 16px 4px; }
  .hero h1 { white-space: normal; }
  .hero-copy { font-size: 16px; }
  .audience-stats { gap: 6px 8px; font-size: 12px; }
  .hero-sale-slots { gap: 8px; margin-top: 32px; }
  .hero-sale-slot { border-width: 2px; border-radius: 16px; box-shadow: inset 0 1px rgba(255, 255, 255, .24), 0 3px 0 #101722, 0 8px 16px color-mix(in srgb, var(--brand-fill) 20%, transparent); }
  .hero-sale-content { gap: 5px; padding: 7px 2px; }
  .hero-sale-actions { inset: 5px; gap: 5px; }
  .hero-sale-action { min-height: 29px; padding: 4px 6px; font-size: 11px; }
  .game-card { height: min(155vw, 720px); min-height: 590px; }
  .game-status { right: 9px; bottom: 9px; font-size: 12px; }
  .game-play-guide { margin: -16px auto 20px; }
  .game-play-guide p { font-size: 14px; }
  .placement-summary h2 { white-space: normal; }
  .founding-six-list { grid-template-columns: 1fr; }
  .founding-six-seat { width: min(100%, 320px); margin: 0 auto; }
  .brand-name-guide { margin-top: 24px; padding: var(--section-divider-title-gap) 0 26px; }
  .brand-name-guide-copy > p:last-child { font-size: 15px; }
  .brand-name-examples { gap: 10px; margin: 24px auto 20px; }
  .brand-name-example-tile { width: 46px; margin-bottom: 10px; }
  .brand-name-example figcaption strong { font-size: 13px; }
  .brand-name-example figcaption span, .brand-name-guide-note { font-size: 12px; }
  .brand-preview-dialog { padding: 25px 20px 22px; border-radius: 22px; }
  .brand-purchase-trust { grid-template-columns: 1fr; }
  .brand-share-actions { grid-template-columns: 1fr; }
  .brand-preview-color-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 280px; gap: 8px; }
  .brand-preview-color-option { font-size: 11px; }
  .brand-preview-color-tile { width: min(100%, 60px); }
  .color-purchase-records { padding-top: 34px; }
  .color-purchase-records h2 { font-size: 29px; }
  .purchase-history-controls { width: 100%; align-items: stretch; flex-direction: column; gap: 12px; }
  .purchase-history-color-filter { width: 100%; max-width: none; }
  .purchase-history-sort { align-self: center; }
  .color-purchase-record-list { width: 100%; }
  .color-purchase-record { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; }
  .color-purchase-record-tile { width: 54px; }
  .color-purchase-record-url { font-size: 15px; }
  .color-purchase-record-price { font-size: 19px; }
  .color-purchase-record-time { font-size: 14px; }
  .match3-faq-header { margin-bottom: 22px; }
  .match3-faq-list summary { padding: 18px 0; font-size: 17px; }
  .match3-faq-list details p { margin-bottom: 18px; font-size: 15px; }
  .builder-note { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; margin-top: 34px; padding-bottom: 32px; }
  .builder-note-avatar { width: 52px; height: 52px; }
  .builder-note h2 { margin-bottom: 6px; font-size: 19px; }
  .builder-note p { font-size: 14px; }
  .site-footer { width: min(920px, calc(100% - 18px)); padding-bottom: 34px; }
  .site-footer nav { gap: 22px; margin-bottom: 16px; }
  .color-race { padding-top: var(--section-divider-title-gap); }
  .color-race-entry { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; width: min(100%, 360px); padding: 12px 0; }
  .color-race-tile { width: 48px; }
  .color-race-progress { grid-column: 2 / -1; grid-row: 2; }
  .color-race-count { font-size: 17px; }
}

@media (max-width: 450px) {
  .site-nav-brand { flex: 0 0 auto; gap: 0; }
  .site-nav-brand-text, .site-nav-brand-text::after { display: none; content: none; }
  .site-nav-links { flex: 1 1 0; min-width: 0; justify-content: flex-start; }
  .site-nav-links a { padding-right: 4px; padding-left: 4px; font-size: 10px; }
}
