@font-face {
  font-family: "Rebellion Squad";
  src: url("/assets/rebellion-squad.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Rajdhani;
  src: url("/assets/rajdhani-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Rajdhani;
  src: url("/assets/rajdhani-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Rajdhani;
  src: url("/assets/rajdhani-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: #edd4a8;
  --surface: #f0d6a8;
  --raised: #e4c48e;
  --recess: #d6b47a;
  --ink: #203b2a;
  --muted: #334f3d;
  --line: #eec889;
  --lime: #cdd10f;
  --blue: #3dc0cf;
  --coral: #c27a51;
  --white: #f4e4c0;
  --font-display: "Rebellion Squad", Impact, "Arial Black", sans-serif;
  --font-ui: Rajdhani, "Segoe UI", Arial, sans-serif;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--ink);
  color-scheme: light;
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: -20px;
  z-index: -1;
  background:
    linear-gradient(180deg, #edd4a861, #edd4a81a 45%, #edd4a86b),
    url("/assets/arena.webp") center/cover;
  filter: blur(2px);
  pointer-events: none;
}
button,
input,
output {
  font: inherit;
  color: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.58;
}
p,
h1,
h2 {
  margin: 0;
}
button,
a,
summary,
input {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid var(--ink);
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 82px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 4%;
  border-bottom: 1px solid #203b2a12;
  background: #edd4a87a;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand > span {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.6px;
  line-height: 1;
}
.brand small {
  display: block;
  font: 700 12px var(--font-ui);
  letter-spacing: 4px;
  margin-top: 7px;
}
.brand img {
  filter: drop-shadow(0 2px 0 #c27a5150);
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 16px;
  font-weight: 700;
}
.site-header nav a {
  color: var(--muted);
}
.site-header nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.nav-current {
  background: #e4c48e80;
  border: 1px solid #d6b47a70;
  border-radius: 9px;
  padding: 9px 15px;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-network {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
}
.header-network i,
.network-badge i,
.wallet-network > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.button {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid #203b2a80;
  background: var(--raised);
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
  box-shadow:
    0 3px 0 #c27a5180,
    inset 0 1px 0 #ffffff60;
}
.button:hover:enabled {
  background: var(--white);
}
.button:active:enabled {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--coral);
}
.button.primary {
  background: var(--lime);
  box-shadow:
    0 4px 0 var(--coral),
    inset 0 1px 0 #ffffffa0;
}
.button.primary:hover:enabled {
  background: #dce13a;
}
main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 22px 16px 12px;
}
.buy-stage {
  width: min(100%, 454px);
}
.party-art {
  display: block;
  width: calc(100% - 18px);
  height: auto;
  aspect-ratio: 5/2;
  object-fit: contain;
  margin: 0 auto -9px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 7px 8px #203b2a12);
}
.sale-card {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 23px 22px 22px;
  box-shadow:
    inset 0 0 0 3px #f4e4c080,
    0 5px 0 #c27a5180,
    0 18px 55px #203b2a16;
}
.sale-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
}
h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.13;
  margin-top: 4px;
  letter-spacing: 0.1px;
}
.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #203b2a20;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: #e4c48e70;
}
.amount-field {
  background: var(--white);
  border: 1px solid #d6b47aaa;
  border-radius: 14px;
  padding: 12px 14px;
}
.amount-top,
.amount-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.amount-top {
  font-size: 15px;
}
.amount-top label {
  font-weight: 700;
}
.amount-top > span {
  font-size: 13px;
  color: var(--muted);
}
.amount-main {
  margin-top: 6px;
  min-height: 38px;
}
.amount-main input,
.amount-main output {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.amount-main input:focus {
  outline: 0;
}
.amount-field:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px #203b2a16;
}
.currency-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 17px;
  font-weight: 700;
}
.bnb-icon {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f1cb42;
  color: #715619;
  font-size: 18px;
  border: 2px solid #f8df83;
  text-shadow: 0 1px #fff7;
}
.quick-amounts {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.quick-amounts button {
  min-height: 26px;
  padding: 3px 12px;
  border-radius: 6px;
  background: #e4c48e60;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
}
.quick-amounts button:hover {
  background: var(--raised);
}
.quick-amounts button.selected {
  background: #cdd10f3d;
  border-color: #8b912b60;
}
.receive-field {
  background: #e9d7a3;
  padding-top: 13px;
  padding-bottom: 15px;
}
.receive-field output {
  font-size: 36px;
}
.exchange-divider {
  height: 8px;
  position: relative;
  display: grid;
  place-items: center;
  z-index: 1;
}
.exchange-divider > span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 4px solid var(--surface);
  border-radius: 10px;
  background: var(--raised);
  font-weight: 700;
  font-size: 18px;
  top: -11px;
}
.rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  margin: 13px 1px;
}
.rate-row strong {
  font-weight: 700;
}
.fixed-badge {
  font-size: 12px;
  background: #e4c48e90;
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--muted);
}
.purchase-button {
  width: 100%;
  min-height: 49px;
  font-size: 17px;
  margin-top: 18px;
  margin-bottom: 8px;
}
.stage-caption {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 18px 0 0;
  letter-spacing: 0.3px;
}
.site-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px 20px 21px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
dialog {
  width: min(430px, calc(100% - 32px));
  max-height: calc(100svh - 40px);
  overflow: auto;
  margin: auto;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 3px #f4e4c080,
    0 6px 0 #c27a5180,
    0 25px 80px #203b2a30;
}
dialog::backdrop {
  background: #203b2a65;
  backdrop-filter: blur(7px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 31px;
  margin-bottom: 15px;
}
.close-button {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  border: 1px solid #203b2a18;
  background: #e4c48e80;
  color: var(--muted);
  font-size: 23px;
  line-height: 1;
}
.close-button:hover {
  background: var(--raised);
}
.dialog-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: var(--lime);
  font-size: 34px;
  border: 1px solid #203b2a50;
  box-shadow: 0 3px 0 #c27a5180;
}
dialog h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.1px;
}
.dialog-description {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}
.wallet-network {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin: 22px 0 18px;
  background: #e4c48e65;
  border: 1px solid #d6b47a80;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}
.wallet-network small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}
.wallet-network > i {
  margin-left: auto;
  background: #5e8a38;
}
.connected-wallet {
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid #203b2a20;
  border-radius: 12px;
  background: #f4e4c070;
  font-size: 14px;
}
.connected-wallet strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 15px;
}
#wallet-options {
  display: grid;
  gap: 9px;
}
.wallet-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 13px;
  border: 1px solid #d6b47aaa;
  background: var(--white);
  text-align: left;
  min-height: 67px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.wallet-option:hover {
  background: #f9eacb;
  border-color: var(--ink);
}
.wallet-option-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: #3dc0cf25;
  color: var(--ink);
  border: 1px solid #203b2a14;
  font-size: 21px;
  font-weight: 700;
}
.wallet-option-copy {
  display: grid;
  gap: 3px;
}
.wallet-option-copy strong {
  font-size: 16px;
}
.wallet-option-copy small {
  font-size: 13px;
  color: var(--muted);
}
.wallet-option-arrow {
  margin-left: auto;
  font-size: 19px;
  color: var(--muted);
}
.disconnect-option {
  background: transparent;
  min-height: 42px;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.wallet-help {
  padding: 17px;
  background: #f4e4c090;
  border: 1px dashed #203b2a45;
  border-radius: 12px;
  line-height: 1.7;
  font-size: 15px;
}
.wallet-help p {
  font-size: 14px;
  margin-top: 5px;
}
.wallet-footnote {
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #d6b47a70;
}
.purchase-error {
  font-size: 14px;
  line-height: 1.65;
  background: #c27a5116;
  border: 1px solid #c27a5170;
  padding: 10px 12px;
  border-radius: 9px;
  margin: 13px 0;
  overflow-wrap: anywhere;
}
.purchase-status {
  font-size: 14px;
  line-height: 1.65;
  margin: 4px 0 10px;
  text-align: center;
  font-weight: 700;
}
.purchase-status.done {
  color: #3a6b2a;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-200%);
  z-index: 20;
  padding: 12px;
  background: var(--lime);
  border-radius: 8px;
}
.skip-link:focus {
  transform: translateY(0);
}
.noscript-message {
  padding: 20px;
  text-align: center;
  background: var(--white);
}
@media (min-height: 950px) and (min-width: 700px) {
  main {
    padding-top: 10px;
    padding-bottom: 35px;
  }
  .party-art {
    width: calc(100% + 22px);
    max-width: none;
    margin-left: -11px;
    margin-bottom: -10px;
  }
}
@media (max-width: 800px) {
  .site-header {
    gap: 25px;
    padding: 0 24px;
    height: 74px;
  }
  .header-network {
    display: none;
  }
  .site-header nav {
    gap: 18px;
  }
  .header-actions {
    gap: 0;
  }
  .brand > span {
    font-size: 21px;
  }
  .brand img {
    width: 33px;
    height: 38px;
  }
}
@media (max-width: 680px) {
  .site-header {
    height: 70px;
    padding: 0 16px;
    gap: 15px;
  }
  .brand {
    gap: 6px;
  }
  .brand > span {
    font-size: 19px;
  }
  .brand small {
    font-size: 10px;
    letter-spacing: 3px;
    margin-top: 6px;
  }
  .brand img {
    width: 29px;
    height: 34px;
  }
  .site-header nav {
    gap: 14px;
    margin-left: auto;
    font-size: 14px;
  }
  .nav-current {
    display: none;
  }
  .header-actions {
    margin-left: 0;
  }
  .wallet-trigger {
    padding: 9px 11px;
    min-height: 37px;
    font-size: 13px;
    border-radius: 8px;
  }
  .site-header nav a:last-child {
    display: none;
  }
  main {
    padding: 18px 14px 5px;
    display: block;
  }
  .buy-stage {
    margin: 0 auto;
  }
  .party-art {
    width: calc(100% - 26px);
    margin-bottom: -7px;
  }
  .sale-card {
    border-radius: 19px;
    padding: 21px 17px 18px;
  }
  .sale-heading {
    margin-bottom: 17px;
  }
  h1 {
    font-size: 34px;
  }
  .stage-caption {
    margin-top: 17px;
  }
  .site-footer {
    padding-top: 17px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    gap: 15px;
    font-size: 12px;
  }
  dialog {
    padding: 22px;
  }
  .amount-main input,
  .amount-main output {
    font-size: 32px;
  }
  .currency-label {
    font-size: 16px;
  }
}
@media (max-width: 360px) {
  h1 {
    font-size: 32px;
  }
  .site-header {
    gap: 10px;
    padding: 0 12px;
  }
  .site-header nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .sale-card {
    padding-left: 15px;
    padding-right: 15px;
  }
  .currency-label {
    font-size: 15px;
    gap: 4px;
  }
  .amount-main input,
  .amount-main output {
    font-size: 30px;
  }
  .quick-amounts button {
    padding: 3px 10px;
  }
  .eyebrow {
    font-size: 11px;
  }
  .network-badge {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Shared game typography, icons, and motion. */
html {
  scrollbar-gutter: stable;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--blue) #e4c48e70;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #e4c48e60;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--blue);
  border: 2px solid var(--surface);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a9aa8;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.ui-icon {
  width: 18px;
  height: 18px;
  flex: none;
  display: block;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}
.bnb-icon {
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 1px;
  object-fit: contain;
}
.wallet-option-icon.branded-wallet {
  background: #ffffff55;
  border-color: #203b2a10;
}
.branded-wallet img {
  object-fit: contain;
  width: 28px;
  height: 28px;
}
.wallet-option-arrow .ui-icon {
  width: 17px;
  height: 17px;
}
.dialog-symbol .ui-icon {
  width: 24px;
  height: 24px;
}
.exchange-divider {
  height: 10px;
}
.exchange-divider > span {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--surface);
  border: 4px solid var(--surface);
  box-shadow: inset 0 0 0 1px #d6b47a99;
  top: -13px;
}
.exchange-divider .ui-icon {
  width: 17px;
  height: 17px;
  color: var(--ink);
}
dialog {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition:
    opacity 0.22s ease,
    transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1),
    display 0.26s allow-discrete,
    overlay 0.26s allow-discrete;
}
dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}
dialog::backdrop {
  opacity: 0;
  transition:
    opacity 0.22s ease,
    display 0.26s allow-discrete,
    overlay 0.26s allow-discrete;
}
dialog[open]::backdrop {
  opacity: 1;
}
@starting-style {
  dialog[open] {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  dialog[open]::backdrop {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  dialog,
  dialog[open] {
    transform: none;
  }
}
