:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #000;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.brand {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.experience {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.shape-stage {
  width: min(66vw, 36vh, 320px);
  width: min(66vw, 36svh, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.shape { background: #fff; }
.shape--square { width: 78%; height: 78%; }
.shape--rectangle { width: 100%; height: 52%; }
.shape--tall { width: 47%; height: 100%; }
.shape--wide { width: 100%; height: 25%; }
.shape--diamond { width: 68%; height: 68%; transform: rotate(45deg); }
.shape--oval { width: 100%; height: 40%; border-radius: 50%; }
.shape--parallelogram {
  width: 100%;
  height: 70%;
  clip-path: polygon(24% 0, 100% 0, 76% 100%, 0 100%);
}
.shape--trapezoid {
  width: 100%;
  height: 72%;
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
}
.shape--circle { width: 86%; height: 86%; border-radius: 50%; }
.shape-svg { display: block; width: 100%; height: 100%; fill: #fff; }

h1 {
  margin: 30px 0 24px;
  font-size: clamp(25px, 4.5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 700;
}

button {
  appearance: none;
  border: 1px solid #fff;
  border-radius: 0;
  background: #000;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.try-button {
  min-height: 52px;
  padding: 0 30px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

@media (hover: hover) {
  button:hover { background: #fff; color: #000; }
}

button:active { transform: translateY(1px); background: #fff; color: #000; }
button:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
::selection { background: #fff; color: #000; }

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
}

.counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  font-variant-numeric: tabular-nums;
}

.counters > span { white-space: nowrap; }

.contract {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.contract-label, .copy-button { flex-shrink: 0; }
.contract-address { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.copy-button { min-width: 70px; min-height: 44px; padding: 0 9px; font-size: 11px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  body { padding-right: max(20px, env(safe-area-inset-right)); padding-left: max(20px, env(safe-area-inset-left)); }
  footer { font-size: 11px; }
  .counters { column-gap: 18px; }
}

@media (max-height: 560px) {
  body { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  main { padding: 10px 0; }
  .shape-stage { width: min(44vw, 29vh, 180px); width: min(44vw, 29svh, 180px); }
  h1 { margin: 12px 0; font-size: 25px; }
  .try-button { min-height: 44px; }
  footer { gap: 8px; }
}
