@font-face {
  font-family: "Dorb Mono";
  src: url("assets/dorb-mono.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #bab4d8;
  --ink: #171514;
  --paper: #f4f0e7;
  --mono: "Dorb Mono", "Courier New", monospace;
  --hand: "Comic Sans MS", "Comic Sans", "Dorb Mono", cursive;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--background); }
body { margin: 0; color: var(--ink); background: var(--background); font-family: var(--mono); }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; }
button:focus-visible, a:focus-visible, code:focus-visible { outline: 3px solid #ffffff; outline-offset: 5px; box-shadow: 0 0 0 8px var(--ink); }
button:active:not(:disabled) { translate: 0 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -90px; z-index: 50; padding: 14px; background: var(--paper); border: 2px solid var(--ink); }
.skip-link:focus { top: 12px; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
}
.scene {
  position: relative;
  width: min(100vw, calc(100vh * 1.6));
  width: min(100vw, calc(100svh * 1.6));
  aspect-ratio: 8 / 5;
  container-type: inline-size;
  isolation: isolate;
}
.identity { position: absolute; top: 2.3%; left: 2.7%; width: 20.5%; z-index: 3; }
.identity h1 { margin: 0; line-height: 0; }
.wordmark { width: 100%; height: auto; display: block; }
.ticker { font-family: var(--hand); font-size: clamp(18px, 2.15cqw, 36px); margin: 0.16em 0 0; line-height: 1.2; letter-spacing: -0.065em; }
.twitter-link { position: absolute; top: 2.2%; right: 1.8%; z-index: 5; min-height: 44px; padding: 8px 0 8px 8px; font-size: clamp(16px, 1.65cqw, 28px); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.twitter-link:hover { text-decoration-style: wavy; }

.art { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.dorb-image { position: absolute; left: 5%; top: 2.5%; width: 90%; height: 90%; object-fit: contain; display: block; user-select: none; }
.speech { position: absolute; top: 13.5%; left: 66.2%; z-index: 3; padding: 0.15em 0.48em 0.22em; font-family: var(--hand); font-size: clamp(23px, 3cqw, 50px); line-height: 1.3; transform: rotate(-6deg); white-space: nowrap; }
.speech::before { content: ""; position: absolute; z-index: -1; inset: -4px -3px -3px -10px; background: var(--paper) url("assets/paper-grain.svg"); clip-path: polygon(5% 8%, 19% 2%, 31% 5%, 48% 0, 64% 4%, 82% 0, 91% 9%, 98% 29%, 96% 62%, 100% 87%, 73% 92%, 60% 100%, 38% 94%, 12% 99%, 13% 78%, 0 86%, 7% 61%, 4% 36%); }

.contract-paper {
  position: absolute;
  z-index: 5;
  top: 57%;
  left: 22.7%;
  width: 54.2%;
  min-height: 11.4%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1cqw;
  padding: 1cqw 1.4cqw;
  border: 2px solid var(--ink);
  border-radius: 5px 4px 7px 3px;
  background: var(--paper) url("assets/paper-grain.svg");
  box-shadow: 0 2px 1px #30201142;
}
.contract-reading { display: flex; gap: 0.55em; align-items: center; min-width: 0; }
.contract-prefix { font-size: clamp(15px, 2.4cqw, 38px); }
.contract-value { display: block; flex: 1; min-width: 0; font: 400 clamp(11px, 1.27cqw, 21px)/1.5 var(--mono); overflow-wrap: anywhere; user-select: all; }
.contract-value[data-empty="true"] { font-size: clamp(14px, 2.25cqw, 37px); line-height: 1.2; }
.copy-button { min-width: 6.4cqw; min-height: 44px; padding: 0.34em 0.58em; border: 2px solid var(--ink); border-radius: 3px 5px 2px 4px; background: var(--ink); color: var(--paper); font-family: var(--hand); font-size: clamp(16px, 2.3cqw, 38px); font-weight: 700; line-height: 1.25; }
.copy-button:hover { color: #fff; box-shadow: 2px 2px 0 #17151460; }
.copy-button:focus-visible { outline-color: var(--ink); outline-offset: 4px; box-shadow: 0 0 0 7px var(--paper); }
.contract-value:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: none; }

.buy-tag { position: absolute; top: 46.3%; left: 78%; width: 20%; min-height: 44px; z-index: 6; padding: 1.15cqw 0.85cqw 1.1cqw 2.2cqw; color: var(--paper); text-decoration: none; transform: rotate(14deg); transform-origin: 12% 23%; }
.buy-tag::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink) url("assets/tag-grain.svg"); clip-path: polygon(12% 0, 99% 1%, 100% 98%, 12% 100%, 0 50%); border-radius: 7px; }
.tag-hole { position: absolute; left: 7%; top: 39%; width: 0.8cqw; height: 0.8cqw; min-width: 7px; min-height: 7px; border-radius: 50%; background: #b66640; box-shadow: 0 0 0 2px #bfb4a991; }
.buy-title { display: block; font-family: var(--hand); font-size: clamp(20px, 3.1cqw, 50px); font-weight: 700; line-height: 1.1; text-align: center; white-space: nowrap; }
.buy-platform { display: block; font-family: var(--hand); font-size: clamp(15px, 2cqw, 33px); line-height: 1.2; text-align: center; margin-top: 0.2em; }
.buy-tag:hover { transform: rotate(10deg); }
.buy-tag:focus-visible { outline-offset: 4px; box-shadow: 0 0 0 8px var(--ink); }

.touch-area { position: absolute; z-index: 6; left: 2.7%; bottom: 5.7%; width: 16.2%; }
.dont-note { position: absolute; bottom: calc(100% + 1cqw); left: 4%; font-family: var(--hand); font-size: clamp(20px, 2.05cqw, 34px); transform: rotate(-7deg); }
.dont-note svg { display: block; width: 4.4cqw; min-width: 40px; margin-left: 1.2cqw; }
.dont-note path { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.touch-button { width: 100%; min-height: 44px; padding: 0.55em 0.65em; background: transparent; border: 2px solid var(--ink); border-radius: 2px 4px 1px 3px; font-family: var(--hand); font-size: clamp(16px, 1.9cqw, 31px); font-weight: 700; line-height: 1.2; white-space: nowrap; transform: rotate(-0.7deg); }
.touch-button:hover:not(:disabled) { background: #f4f0e757; }
.touch-button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.caption { position: absolute; left: 24%; right: 24%; bottom: 1.9%; margin: 0; text-align: center; font-size: clamp(14px, 1.45cqw, 23px); line-height: 1.4; }

.details-dialog { max-width: min(92vw, 450px); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); overflow: auto; overscroll-behavior: contain; padding: 0; border: 2px solid var(--ink); border-radius: 0; color: var(--ink); background: var(--paper) url("assets/paper-grain.svg"); box-shadow: 8px 9px 0 #17151470; }
.details-dialog::backdrop { background: #24203488; }
.details-dialog:not([open]) { display: none; }
.details-dialog[data-fallback="true"][open] { position: fixed; z-index: 100; inset: 50% auto auto 50%; margin: 0; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax #24203488, 8px 9px 0 #17151470; }
.dialog-paper { position: relative; padding: 38px 28px 26px; }
.dialog-close { position: absolute; right: 6px; top: 4px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; }
.dialog-eyebrow { font-size: 12px; margin: 0 30px 20px 0; }
.dialog-paper h2 { margin: 0 0 16px; font-family: var(--hand); font-size: 26px; line-height: 1.2; }
.dialog-paper p { line-height: 1.6; }
.dialog-footer { margin: 24px 0 0; font-size: 12px; opacity: 0.65; }
.noscript-note { position: relative; max-width: 650px; margin: 0 auto 16px; padding: 12px; font-size: 13px; text-align: center; }

@media (max-width: 760px) {
  .page { display: block; padding: max(12px, env(safe-area-inset-top)) 0 max(14px, env(safe-area-inset-bottom)); }
  .scene { --art-top: 84px; width: 100%; aspect-ratio: auto; height: calc(var(--art-top) + 107vw + 44px); min-height: 465px; max-height: none; }
  .identity { top: 0; left: 5%; width: 28%; }
  .wordmark { max-width: 156px; }
  .ticker { font-size: 16px; margin-top: 2px; letter-spacing: -0.06em; }
  .twitter-link { top: 0; right: 5%; font-size: 15px; padding-top: 8px; }
  .art { inset: auto; left: -25%; top: var(--art-top); width: 150%; height: 93.75vw; }
  .speech { top: calc(var(--art-top) + 8vw); left: auto; right: 8%; font-size: clamp(22px, 5vw, 32px); padding: 3px 10px 5px; }
  .contract-paper { top: calc(var(--art-top) + 53.44vw); left: 8.2%; width: 82%; min-height: 66px; padding: 8px; grid-template-columns: minmax(0, 1fr) 52px; gap: 8px; border-width: 1.5px; border-radius: 3px; }
  .contract-reading { gap: 5px; align-items: flex-start; }
  .contract-prefix { font-size: 13px; line-height: 1.45; }
  .contract-value { font-size: 12px; line-height: 1.45; }
  .contract-value[data-empty="true"] { font-size: clamp(11px, 3.3vw, 18px); line-height: 1.45; }
  .copy-button { min-width: 0; width: 52px; min-height: 44px; padding: 6px 2px; font-size: 13px; border-width: 1px; }
  .buy-tag { top: calc(var(--art-top) + 29vw); left: auto; right: 3.3%; width: 35%; padding: 9px 8px 10px 17px; transform: rotate(9deg); }
  .buy-title { font-size: clamp(17px, 4.6vw, 27px); }
  .buy-platform { font-size: clamp(12px, 3.6vw, 19px); margin-top: 2px; }
  .tag-hole { width: 6px; height: 6px; min-width: 6px; min-height: 6px; left: 7%; top: 40%; box-shadow: 0 0 0 1px #bfb4a991; }
  .touch-area { top: calc(var(--art-top) + 91vw); bottom: auto; left: 7%; width: 47%; max-width: 230px; }
  .touch-button { min-height: 48px; padding: 10px 8px; font-size: 17px; }
  .dont-note { bottom: 2px; left: calc(100% + 12px); width: 80px; font-size: 20px; transform: rotate(5deg); }
  .dont-note svg { width: 44px; min-width: 44px; margin-left: 0; transform: rotate(85deg); transform-origin: 24px 24px; }
  .dont-note span { display: block; margin-left: 27px; }
  .caption { left: 10%; right: 10%; bottom: 0; font-size: 13px; }
}

@media (max-width: 380px) {
  .scene { --art-top: 74px; height: calc(var(--art-top) + 107vw + 44px); }
  .identity { width: 30%; }
  .ticker { font-size: 14px; }
  .contract-paper { left: 7%; width: 85%; padding: 7px; gap: 6px; min-height: 67px; }
  .contract-value { font-size: 11px; }
  .contract-prefix { font-size: 12px; }
  .touch-button { font-size: 15px; }
}

@media (min-width: 761px) and (max-height: 540px) {
  .scene { width: min(100vw, calc(100svh * 1.6)); }
  .identity { width: 18%; }
  .contract-paper { gap: 5px; padding: 7px 9px; }
  .contract-value[data-empty="true"] { font-size: clamp(12px, 2cqw, 20px); }
  .copy-button { padding: 5px; font-size: 16px; }
  .touch-area { width: 20%; min-width: 136px; }
  .buy-tag { top: 28%; left: auto; right: 2%; width: 21%; min-width: 130px; padding: 8px 9px 8px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  button:active:not(:disabled) { translate: none; }
  .buy-tag:hover { transform: rotate(14deg); }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .buy-tag:hover { transform: rotate(9deg); }
}
