:root {
  --ink: #18140f;
  --paper: #fff1c8;
  --acid: #38e6eb;
  --pink: #ff66ad;
  --blue: #75c7ff;
  --yellow: #ffe657;
  --green: #66e475;
  --red: #ff654f;
  --muted: #746b61;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, sans-serif; }
button, a { font: inherit; }
button { color: inherit; }

header{
  display:flex;align-items:center;justify-content:space-between;
  min-height:78px;padding:14px 40px;background:var(--paper);position:sticky;top:0;z-index:200;
  border-bottom:4px solid var(--ink);
}
.logo-wrap{display:flex;align-items:center;}
.logo-wrap img{height:38px;width:auto;max-width:none;display:block;}
nav.main-nav{display:flex;align-items:center;gap:6px;}
nav.main-nav a{
  font-family:ui-monospace,"SF Mono","Courier New",monospace;
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--ink);
  padding:10px 14px;border:2px solid transparent;border-radius:999px;text-decoration:none;
}
nav.main-nav a:hover,
nav.main-nav a.active{
  border-color:var(--ink);background:var(--acid);box-shadow:2px 2px 0 var(--ink);
}
.header-right{display:flex;align-items:center;gap:12px;}
.btn-pill{
  font-family:ui-monospace,"SF Mono","Courier New",monospace;
  font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;
  background:var(--yellow);color:var(--ink);padding:13px 22px;text-decoration:none;
  border-radius:999px;border:3px solid var(--ink);box-shadow:4px 4px 0 var(--ink);
  display:inline-flex;align-items:center;gap:8px;
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn-pill:hover{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--ink);}
.hamburger{
  display:none;width:38px;height:38px;border:2px solid var(--ink);border-radius:50%;
  background:var(--paper);align-items:center;justify-content:center;flex-direction:column;gap:4px;cursor:pointer;
}
.hamburger span{width:16px;height:2px;background:var(--ink);display:block;transition:transform .2s ease, opacity .2s ease;}
.hamburger.open span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}
.mobile-nav{
  display:none;
  position:fixed;top:78px;left:0;right:0;bottom:0;z-index:190;
  background:var(--paper);padding:26px 28px;
  flex-direction:column;gap:0;
  transform:translateY(-12px);opacity:0;pointer-events:none;transition:opacity .2s ease, transform .2s ease;
}
.mobile-nav.open{display:flex;opacity:1;transform:translateY(0);pointer-events:auto;}
.mobile-nav a{
  font-family:Impact,"Arial Black",sans-serif;font-size:28px;text-transform:uppercase;
  color:var(--ink);padding:16px 0;border-bottom:2px solid rgba(24,20,15,.24);text-decoration:none;
}
.mobile-nav a.active{color:var(--pink);}
.mobile-nav .btn-pill{margin-top:26px;align-self:flex-start;}
@media (max-width:1000px){
  nav.main-nav{display:none;}
  .hamburger{display:flex;}
  .header-right{display:none;}
  header{padding:12px 20px;}
}

.pill, .small-button { cursor: pointer; border: 3px solid var(--ink); border-radius: 999px; background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); text-transform: uppercase; font: 900 11px ui-monospace, monospace; }
.pill { padding: 13px 20px; }
.pill.connected { background: var(--green); }
.small-button { padding: 10px 15px; background: white; box-shadow: 3px 3px 0 var(--ink); }
.pill:hover, .small-button:hover, .forge-button:hover:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }

.demo-banner { padding: 10px 20px; text-align: center; background: var(--ink); color: white; font: 800 12px/1.4 ui-monospace, monospace; }
.demo-banner span { margin-right: 10px; padding: 3px 8px; background: var(--yellow); color: var(--ink); text-transform: uppercase; }

.hero { min-height: 570px; padding: clamp(46px, 8vw, 92px) max(28px, 7vw); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; position: relative; overflow: hidden; background: linear-gradient(164deg, var(--blue) 0 61%, var(--pink) 61% 100%); border-bottom: 5px solid var(--ink); }
.hero::before { content: "FORGE\A THE\A FUTURE"; white-space: pre; position: absolute; right: -2vw; top: 8%; color: #fff5; -webkit-text-stroke: 3px #18140f77; text-shadow: 7px 7px 0 #ff66ad88; transform: rotate(7deg); font: 900 clamp(48px, 9vw, 132px)/.73 Impact, "Arial Black", sans-serif; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; }
.sticker, .step { display: inline-block; margin: 0; padding: 8px 12px; border: 3px solid var(--ink); background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); text-transform: uppercase; font: 900 11px ui-monospace, monospace; }
h1 { margin: 20px 0 0; color: var(--paper); -webkit-text-stroke: 3px var(--ink); text-shadow: 8px 8px 0 var(--ink); letter-spacing: -.025em; font: 900 clamp(64px, 10vw, 142px)/.73 Impact, "Arial Black", sans-serif; }
h1 em { color: var(--pink); font-style: normal; }
.intro { max-width: 690px; margin: 28px 0 0; padding: 18px 22px; border: 3px solid var(--ink); background: #fff1c8ed; box-shadow: 7px 7px 0 var(--ink); font-weight: 800; font-size: 18px; line-height: 1.45; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero-stats span { padding: 9px 12px; border: 2px solid var(--ink); border-radius: 999px; background: white; font: 800 11px ui-monospace, monospace; }
.hero-stats span:nth-child(2) { background: var(--yellow); }
.hero-stats span:nth-child(3) { background: var(--green); }
.hero-note {
  max-width: 690px; margin: 18px 0 0; color: #241e17; font: 800 13px/1.45 Arial, sans-serif;
  opacity: .88;
}
.hero-art { min-height: 330px; position: relative; z-index: 2; display: grid; place-items: center; }
.burst { position: absolute; top: 0; right: 4%; padding: 15px; transform: rotate(9deg); background: var(--yellow); border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); font: 900 32px Impact, sans-serif; }
.fren-face { width: min(330px, 78vw); aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; place-items: center; position: relative; border: 7px solid var(--ink); border-radius: 47% 53% 44% 56%; background: var(--acid); box-shadow: 15px 15px 0 var(--ink); transform: rotate(-4deg); }
.fren-face i { width: 60px; aspect-ratio: 1; display: block; border: 6px solid var(--ink); border-radius: 50%; background: white; box-shadow: inset 18px 0 0 var(--pink); }
.fren-face b { position: absolute; bottom: 54px; font: 900 80px/1 Impact, sans-serif; transform: rotate(90deg); }

.forge-area { padding: 54px max(22px, 5vw) 70px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); align-items: start; gap: 28px; background-color: var(--yellow); background-image: radial-gradient(circle at 1px 1px, #18140f24 1.2px, transparent 1.5px); background-size: 8px 8px; }
.forge-column { display: grid; gap: 25px; }
.panel { padding: clamp(20px, 3vw, 30px); border: 4px solid var(--ink); border-radius: 27px 8px 24px 11px; background: var(--paper); box-shadow: 9px 9px 0 var(--ink); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
h2 { margin: 11px 0 0; text-transform: uppercase; letter-spacing: -.01em; font: 900 clamp(30px, 4vw, 48px)/.95 Impact, "Arial Black", sans-serif; }
.status-chip { padding: 8px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--green); text-transform: uppercase; white-space: nowrap; font: 900 10px ui-monospace, monospace; }

.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.recipe { min-height: 155px; padding: 17px; cursor: pointer; text-align: left; border: 3px solid var(--ink); border-radius: 18px 6px 16px 8px; background: white; box-shadow: 5px 5px 0 var(--ink); transition: transform .12s ease; }
.recipe:hover { transform: translateY(-3px); }
.recipe.active { background: var(--acid); box-shadow: 7px 7px 0 var(--pink); transform: rotate(-1deg); }
.recipe.locked { opacity: .55; cursor: not-allowed; background: #ece7dc; }
.recipe.locked:hover { transform: none; }
.recipe-number { display: block; font: 900 11px ui-monospace, monospace; }
.recipe strong { display: block; margin-top: 14px; text-transform: uppercase; font: 900 27px Impact, sans-serif; }
.recipe small { display: block; margin-top: 8px; font-weight: 800; line-height: 1.35; }
.recipe-cap { display: inline-block; margin-top: 11px; padding: 4px 7px; border: 2px solid var(--ink); background: var(--yellow); font: 900 9px ui-monospace, monospace; }
.recipe.locked .recipe-cap { background: white; }

.helper { margin: -5px 0 18px; color: #494139; font-weight: 700; }
.holdings-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.holdings-grid { min-height: 190px; display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 13px; }
.empty-wallet { grid-column: 1/-1; min-height: 180px; display: grid; place-items: center; padding: 28px; border: 3px dashed var(--ink); border-radius: 18px; background: #fff8; text-align: center; font-weight: 800; line-height: 1.45; }
.token-card { padding: 0; overflow: hidden; cursor: pointer; border: 3px solid var(--ink); border-radius: 17px 6px 15px 8px; background: white; box-shadow: 4px 4px 0 var(--ink); text-align: left; }
.token-card:disabled { cursor: not-allowed; opacity: .58; filter: grayscale(.25); }
.token-card.selected { outline: 5px solid var(--pink); background: var(--yellow); transform: translateY(-3px); }
.token-card.forged-new {
  outline: 5px solid var(--green);
  background: #e8ffe8;
  animation: forged-pop .9s ease, forged-glow 1.6s ease 2;
  scroll-margin-top: 120px;
}
.token-art { height: 118px; position: relative; overflow: hidden; display: block; background: #ddd; border-bottom: 3px solid var(--ink); }
.token-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.token-tier-badge {
  position: absolute; left: 8px; top: 8px; padding: 3px 7px; border: 2px solid var(--ink);
  border-radius: 999px; background: var(--paper); text-transform: uppercase;
  font: 900 9px ui-monospace, monospace; box-shadow: 2px 2px 0 var(--ink);
}
.token-tier-badge.fren { background: var(--paper); }
.token-tier-badge.rare { background: var(--acid); }
.token-tier-badge.legendary { background: var(--yellow); }
.token-tier-badge.grail { background: var(--pink); }
@keyframes forged-pop {
  0% { transform: scale(.92); }
  45% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@keyframes forged-glow {
  0%, 100% { box-shadow: 4px 4px 0 var(--ink); }
  50% { box-shadow: 0 0 0 6px #38e6eb88, 8px 8px 0 var(--ink); }
}
.token-details { display: block; padding: 10px; }
.token-details small { display: block; text-transform: uppercase; font: 900 9px ui-monospace, monospace; }
.token-details strong { display: block; margin-top: 4px; font: 900 20px Impact, sans-serif; }

.action-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; background: var(--pink); }
.selection-summary { min-width: 230px; }
.selection-summary span { display: block; text-transform: uppercase; font: 900 10px ui-monospace, monospace; }
.selection-summary strong { display: block; margin-top: 4px; font: 900 26px Impact, sans-serif; }
.meter { width: 230px; max-width: 100%; height: 13px; margin-top: 8px; overflow: hidden; border: 2px solid var(--ink); border-radius: 999px; background: white; }
.meter i { display: block; width: 0; height: 100%; background: var(--green); transition: width .2s ease; }
.forge-button { min-width: 245px; padding: 16px 22px; cursor: pointer; border: 3px solid var(--ink); border-radius: 999px; background: var(--acid); box-shadow: 5px 5px 0 var(--ink); text-transform: uppercase; font: 900 12px ui-monospace, monospace; }
.forge-button b { margin-left: 13px; }
.forge-button:disabled { cursor: not-allowed; opacity: .48; }
.action-message { flex-basis: 100%; margin: 0; font-size: 12px; font-weight: 800; }

.forged-panel {
  background:
    linear-gradient(135deg, #38e6eb 0%, #7dffd4 42%, #ffe657 100%);
  scroll-margin-top: 110px;
}
.forged-panel .panel-heading { margin-bottom: 12px; }
.forged-panel .status-chip { background: var(--pink); }
.forged-help { margin: 0 0 16px; }
.forged-grid { min-height: 140px; }
.forged-grid .empty-wallet {
  min-height: 120px;
  background: #ffffffd0;
  border-style: solid;
}
.forged-grid .token-card {
  cursor: default;
  background: white;
}
.forged-grid .token-card.forged-new {
  outline: 5px solid var(--ink);
  background: #fff7ad;
}

.education-panel { position: sticky; top: 105px; background: var(--ink); color: white; }
.education-panel h2 { color: var(--pink); }
.education-panel ol { margin: 25px 0; padding: 0; list-style: none; counter-reset: steps; }
.education-panel li { position: relative; min-height: 55px; padding: 0 0 18px 54px; counter-increment: steps; }
.education-panel li::before { content: counter(steps); width: 35px; height: 35px; display: grid; place-items: center; position: absolute; left: 0; top: 0; border: 2px solid white; border-radius: 50%; background: var(--pink); color: var(--ink); font: 900 14px ui-monospace, monospace; }
.education-panel li:not(:last-child)::after { content: ""; width: 3px; height: 20px; position: absolute; left: 16px; top: 38px; background: var(--yellow); }
.education-panel li b, .education-panel li span { display: block; }
.education-panel li b { text-transform: uppercase; font: 900 12px ui-monospace, monospace; }
.education-panel li span { margin-top: 4px; color: #e9dfd5; font-size: 13px; line-height: 1.4; }
.supply-card { padding: 18px; border: 3px solid white; background: var(--yellow); color: var(--ink); box-shadow: 5px 5px 0 var(--pink); }
.supply-card span, .supply-card small { display: block; text-transform: uppercase; font: 900 10px ui-monospace, monospace; }
.supply-card strong { display: block; margin: 4px 0; font: 900 44px Impact, sans-serif; }

footer.site-footer{
  background:var(--pink);color:var(--ink);padding:26px 40px;border-top:4px solid var(--ink);
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;
}
.footer-logo img{height:22px;width:auto;max-width:none;display:block;}
.footer-social{display:flex;gap:12px;}
.footer-social .icon-btn{
  width:32px;height:32px;border-radius:50%;border:2px solid var(--ink)!important;
  background:var(--paper)!important;color:var(--ink)!important;text-decoration:none;
  display:flex;align-items:center;justify-content:center;font-size:13px;
}
.footer-copy{
  font-family:ui-monospace,"SF Mono","Courier New",monospace;font-size:11px;font-weight:800;
  width:100%;text-align:center;margin-top:4px;
}

.review-dialog { width: min(610px, calc(100% - 28px)); padding: 0; border: 4px solid var(--ink); border-radius: 25px 8px 22px 10px; background: var(--paper); box-shadow: 12px 12px 0 var(--ink); }
.review-dialog::backdrop { background: #18140fba; }
.review-dialog form { padding: 29px; position: relative; }
.dialog-close { width: 38px; height: 38px; position: absolute; top: 18px; right: 18px; z-index: 2; cursor: pointer; border: 3px solid var(--ink); border-radius: 50%; background: white; font-weight: 900; font-size: 22px; }
.dialog-close:disabled { opacity: .35; cursor: not-allowed; }
.dialog-equation { margin: 24px 0; padding: 20px; border: 3px solid var(--ink); background: var(--blue); box-shadow: 5px 5px 0 var(--pink); text-align: center; font: 900 clamp(18px, 4vw, 26px) Impact, sans-serif; line-height: 1.35; }
.dialog-equation small { display: block; margin-bottom: 10px; font: 900 clamp(16px, 3.5vw, 22px)/1.4 Impact, sans-serif; }
.warning-box { padding: 16px; border: 3px solid var(--ink); background: var(--yellow); }
.warning-box + .warning-box { margin-top: 12px; }
.warning-box.random-note { background: var(--acid); }
.warning-box b, .warning-box span { display: block; }
.warning-box b { text-transform: uppercase; font: 900 12px ui-monospace, monospace; }
.warning-box span { margin-top: 6px; font-weight: 700; line-height: 1.4; }
.review-dialog menu { margin: 25px 0 0; padding: 0; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 14px; }
.forge-stage[hidden] { display: none !important; }

.burn-stage { margin-top: 18px; text-align: center; }
.burn-cauldron {
  position: relative; min-height: 190px; margin: 0 auto 16px; padding: 24px 18px 36px;
  border: 4px solid var(--ink); border-radius: 24px 10px 40% 40%;
  background: linear-gradient(180deg, #2a2118 0%, #18140f 70%);
  box-shadow: 8px 8px 0 var(--pink); overflow: hidden;
}
.burn-flame {
  position: absolute; bottom: 18px; width: 34px; height: 56px;
  border-radius: 50% 50% 20% 20%;
  background: linear-gradient(180deg, #ffe657, #ff66ad 55%, #ff3b1f);
  animation: flame-dance .45s ease-in-out infinite alternate;
  filter: blur(.2px);
}
.burn-flame.f1 { left: 22%; animation-delay: 0s; }
.burn-flame.f2 { left: 46%; height: 70px; width: 42px; animation-delay: .12s; }
.burn-flame.f3 { left: 68%; animation-delay: .22s; }
.burn-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; position: relative; z-index: 1; }
.burn-chip {
  padding: 8px 10px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--acid); font: 900 12px Impact, sans-serif;
  animation: chip-sink 1.6s ease forwards;
  box-shadow: 3px 3px 0 #0008;
}
.burn-chip:nth-child(2n) { animation-delay: .12s; background: var(--yellow); }
.burn-chip:nth-child(3n) { animation-delay: .22s; background: var(--pink); }
.burn-status { margin: 0 0 12px; font-weight: 900; }
.burn-meter {
  width: min(320px, 100%); height: 14px; margin: 0 auto; overflow: hidden;
  border: 3px solid var(--ink); border-radius: 999px; background: white;
}
.burn-meter i {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--acid));
  transition: width .2s linear;
}

#stageReveal { position: relative; overflow: hidden; }
.boom-burst {
  position: absolute; top: -6px; left: 12px; z-index: 1;
  padding: 10px 14px; transform: rotate(-8deg) scale(.4);
  border: 3px solid var(--ink); background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink); font: 900 28px Impact, sans-serif;
  animation: boom-pop .55s cubic-bezier(.2,1.4,.4,1) .05s forwards;
}
.success-reveal {
  margin: 18px auto 14px; position: relative; overflow: hidden;
  width: max-content; max-width: 100%;
  border: 4px solid var(--ink); border-radius: 18px 8px 16px 10px;
  background: var(--paper); box-shadow: 8px 8px 0 var(--ink);
  animation: reveal-slam .55s cubic-bezier(.2,1.3,.3,1) .2s both;
}
.success-reveal img {
  width: 100%; max-width: 100%; aspect-ratio: 1; object-fit: contain; display: block;
  vertical-align: top;
}
.success-reveal .token-tier-badge {
  left: auto; right: 12px; top: 12px; padding: 6px 10px; font-size: 11px;
}
.success-copy {
  margin: 0; padding: 14px 16px; border: 3px solid var(--ink);
  background: var(--green); font-weight: 800; line-height: 1.4;
}
#stageReveal menu { justify-content: stretch; }
#stageReveal .forge-button { width: 100%; min-width: 0; }

@keyframes flame-dance {
  from { transform: translateY(0) scaleY(1); }
  to { transform: translateY(-10px) scaleY(1.12); }
}
@keyframes chip-sink {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  70% { opacity: .85; }
  100% { transform: translateY(88px) rotate(18deg) scale(.55); opacity: 0; }
}
@keyframes boom-pop {
  0% { transform: rotate(-8deg) scale(.2); opacity: 0; }
  60% { transform: rotate(-8deg) scale(1.18); opacity: 1; }
  100% { transform: rotate(-8deg) scale(1); opacity: 1; }
}
@keyframes reveal-slam {
  0% { transform: scale(.55) rotate(-4deg); opacity: 0; }
  70% { transform: scale(1.06) rotate(1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.toast { max-width: min(470px, calc(100% - 28px)); padding: 15px 18px; position: fixed; right: 22px; bottom: 22px; z-index: 50; transform: translateY(140%); border: 3px solid var(--ink); background: var(--green); box-shadow: 5px 5px 0 var(--ink); font-weight: 900; transition: transform .25s ease; }
.toast.show { transform: translateY(0); }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .forge-area { grid-template-columns: 1fr; }
  .education-panel { position: static; }
}
@media (max-width: 650px) {
  .wallet-button { padding: 11px 13px; }
  .demo-banner span { display: table; margin: 0 auto 6px; }
  .hero { min-height: 500px; padding: 44px 22px 60px; }
  h1 { font-size: clamp(58px, 22vw, 93px); }
  .intro { font-size: 15px; }
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe { min-height: auto; }
  .holdings-actions { width: 100%; justify-content: stretch; }
  .holdings-actions .pill, .holdings-actions .small-button { flex: 1; justify-content: center; text-align: center; }
  .action-panel, .forge-button { width: 100%; }
  footer.site-footer { padding: 20px; }

  /* iOS-safe forge popup: size to content, cap height, never collapse */
  .review-dialog {
    width: calc(100% - 16px);
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    margin: auto;
    border-width: 3px;
    border-radius: 18px 6px 16px 8px;
    box-shadow: 6px 6px 0 var(--ink);
    overflow: visible;
    padding: 0;
  }
  .review-dialog[open] {
    display: block;
  }
  .review-dialog form {
    display: block;
    height: auto;
    max-height: 90vh;
    max-height: 90dvh;
    padding: 14px 14px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  .forge-stage {
    display: block;
    min-height: 0;
    overflow: visible;
  }
  .forge-stage[hidden] { display: none !important; }
  .dialog-close {
    width: 32px;
    height: 32px;
    top: 10px;
    right: 10px;
    font-size: 18px;
  }
  .review-dialog .step { margin: 0; font-size: 10px; }
  .review-dialog h2 {
    margin: 6px 0 0;
    padding-right: 36px;
    font-size: clamp(22px, 7vw, 30px);
    line-height: .95;
  }
  .dialog-equation {
    margin: 10px 0;
    padding: 10px 12px;
    border-width: 2px;
    box-shadow: 3px 3px 0 var(--pink);
    font-size: clamp(14px, 4.2vw, 18px);
  }
  .dialog-equation small {
    margin-bottom: 4px;
    font-size: clamp(12px, 3.6vw, 15px);
  }
  .warning-box {
    padding: 8px 10px;
    border-width: 2px;
  }
  .warning-box + .warning-box { margin-top: 8px; }
  .warning-box b { font-size: 10px; }
  .warning-box span {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.3;
  }
  .review-dialog menu {
    margin: 10px 0 0;
    gap: 8px;
  }
  .review-dialog .small-button,
  .review-dialog .forge-button {
    padding: 11px 14px;
    min-width: 0;
    flex: 1;
    font-size: 11px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .burn-stage { margin-top: 8px; }
  .burn-cauldron {
    min-height: 120px;
    max-height: 140px;
    margin: 0 auto 8px;
    padding: 12px 12px 22px;
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--pink);
  }
  .burn-flame { width: 22px; height: 36px; bottom: 10px; }
  .burn-flame.f2 { width: 28px; height: 46px; }
  .burn-chip { padding: 5px 7px; font-size: 11px; }
  .burn-status { margin: 0 0 8px; font-size: 12px; }
  .burn-meter { height: 10px; border-width: 2px; }

  .boom-burst {
    top: 0;
    left: 6px;
    padding: 6px 8px;
    font-size: 16px;
    box-shadow: 3px 3px 0 var(--ink);
  }
  .success-reveal {
    margin: 8px auto;
    width: max-content;
    max-width: 100%;
    max-height: none;
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--ink);
    background: var(--paper);
  }
  .success-reveal img {
    width: auto;
    height: auto;
    max-width: min(100%, 72vw);
    max-height: 36vh;
    max-height: 36dvh;
    aspect-ratio: auto;
    object-fit: contain;
  }
  .success-reveal .token-tier-badge {
    top: 8px;
    right: 8px;
    padding: 4px 7px;
    font-size: 9px;
  }
  .success-copy {
    padding: 8px 10px;
    border-width: 2px;
    font-size: 11px;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .success-reveal,
  .boom-burst,
  .burn-flame,
  .burn-chip,
  .token-card.forged-new {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
