:root {
  --butter: #ffe066;
  --cream: #fff6d6;
  --ink: #2b1a0e;
  --ink-2: #6b4a2e;
  --tomato: #ff5a36;
  --leaf: #2f9e5b;
  --sky: #7fd0ff;
  --display: 'Titan One', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;

  --kit-bg: var(--cream);
  --kit-fg: var(--ink);
  --kit-muted: var(--ink-2);
  --kit-accent: var(--tomato);
  --kit-accent-fg: #fff;
  --kit-line: var(--ink);
  --kit-radius: 18px;
  --kit-font: var(--body);
  --kit-mono: var(--mono);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--butter); color: var(--ink); font: 17px/1.55 var(--body); }
a { color: inherit; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-2); }

.kit-modal { border-width: 3px !important; box-shadow: 6px 6px 0 var(--ink) !important; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; gap: 12px; }
.logo { font: 400 24px var(--display); text-decoration: none; }
.logo b { font: 500 14px var(--mono); background: var(--ink); color: var(--butter); padding: 3px 8px; border-radius: 8px; margin-left: 6px; vertical-align: 4px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.demo { font: 500 12px var(--mono); border: 2px dashed var(--ink); border-radius: 99px; padding: 3px 10px; }
button { font: inherit; }
.connect {
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 9px 16px;
  font: 800 15px var(--body); cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.connect:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.connect.is-connected { font-family: var(--mono); font-weight: 500; }
.connect.is-wrong-net { background: #ffd0c4; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 26px 0 48px; }
h1 { font: 400 clamp(44px, 6.4vw, 84px)/.95 var(--display); margin: 0 0 20px; letter-spacing: -.01em; }
h1 span { color: var(--tomato); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.lede { font-size: 19.5px; max-width: 46ch; margin: 0 0 28px; }

.clock-card { background: var(--ink); color: var(--butter); border-radius: 26px; padding: 18px 24px 20px; max-width: 440px; box-shadow: 8px 8px 0 var(--tomato); }
.label { margin: 0; font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.label.small { margin-top: 8px; font-size: 12px; }
.clock { margin: 2px 0 12px; font: 400 clamp(64px, 9vw, 104px)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.clock.hot { color: var(--tomato); animation: throb .6s infinite; }
@keyframes throb { 50% { opacity: .7; } }
.heat { height: 14px; background: #4a3220; border-radius: 99px; overflow: hidden; }
.heat i { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, #ffd166, var(--tomato)); border-radius: 99px; transition: width .6s; }

.hero-right { text-align: center; }
.potato-wrap { position: relative; }
#potato { width: min(100%, 420px); height: auto; overflow: visible; animation: wobble 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
#potato.hot { animation-duration: .5s; }
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-4px); } }
#potato.snatched { animation: snatch .5s ease-out; }
@keyframes snatch { 30% { transform: scale(1.12) rotate(-12deg) translateY(-24px); } }
.steam path { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; opacity: 0; }
.hot .steam path, .warm .steam path { animation: steam 1.6s ease-out infinite; }
.steam path:nth-child(2) { animation-delay: .4s !important; }
.steam path:nth-child(3) { animation-delay: .8s !important; }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-16px); } }
#sweat { opacity: 0; transition: opacity .3s; }
.hot #sweat { opacity: 1; animation: drip 1s infinite; }
@keyframes drip { to { transform: translateY(14px); opacity: 0; } }
.holder { display: inline-flex; flex-direction: column; background: var(--cream); border: 3px solid var(--ink); border-radius: 16px; padding: 8px 18px; margin-top: -8px; box-shadow: 4px 4px 0 var(--ink); }
.holder span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.holder b { font: 500 18px var(--mono); }
.holder small { font-size: 13px; color: var(--ink-2); }
.grab {
  display: block; width: min(100%, 420px); margin: 26px auto 0; padding: 20px; border: 4px solid var(--ink); border-radius: 22px; background: var(--tomato); color: #fff;
  font: 400 30px var(--display); letter-spacing: .01em; cursor: pointer; box-shadow: 7px 7px 0 var(--ink); transition: transform .08s, box-shadow .08s;
  text-shadow: 2px 2px 0 var(--ink);
}
.grab:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.grab:active { transform: translate(5px, 5px); box-shadow: 2px 2px 0 var(--ink); }
.grab-note { font: 500 13px var(--mono); color: var(--ink-2); margin: 14px 0 0; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border: 3px solid var(--ink); border-radius: 22px; background: var(--cream); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.numbers div { padding: 18px 20px; border-left: 3px solid var(--ink); display: flex; flex-direction: column; }
.numbers div:first-child { border-left: 0; }
.numbers span { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.numbers b { font: 400 32px/1.15 var(--display); font-variant-numeric: tabular-nums; }
.numbers small { font-size: 13px; color: var(--ink-2); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 40px 0; }
.panel { background: var(--cream); border: 3px solid var(--ink); border-radius: 22px; padding: 22px 24px; box-shadow: 6px 6px 0 var(--ink); }
.panel h2 { font: 400 26px var(--display); margin: 0 0 14px; }
.panel h2.mt { margin-top: 24px; }
.handoffs { list-style: none; margin: 0; padding: 0; }
.handoffs li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 2px dashed rgba(43, 26, 14, .25); font-size: 15px; animation: slide .35s ease-out; }
.handoffs li:first-child { font-weight: 800; }
.handoffs li:last-child { border-bottom: 0; }
.handoffs code { font: 500 14px var(--mono); }
.handoffs em { font-style: normal; color: var(--ink-2); font: 500 13px var(--mono); }
@keyframes slide { from { opacity: 0; transform: translateX(-8px); } }
.cuts { list-style: none; margin: 0; padding: 0; }
.cuts li { display: flex; gap: 14px; align-items: baseline; padding: 6px 0; }
.cuts b { font: 400 24px var(--display); min-width: 64px; color: var(--tomato); }
.bar { display: flex; height: 46px; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; font: 500 13px var(--mono); margin-bottom: 10px; }
.bar span { display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.bar span:nth-child(1) { background: var(--butter); }
.bar span:nth-child(2) { background: var(--tomato); color: #fff; border-left: 3px solid var(--ink); }
.bar span:nth-child(3) { background: var(--sky); border-left: 3px solid var(--ink); }

.past { margin-bottom: 40px; }
.past-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.past-grid div { display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; background: #fff; }
.past-grid b { font: 400 22px var(--display); }
.past-grid span { font: 500 13px var(--mono); }
.past-grid em { font-style: normal; font-weight: 800; margin-top: 6px; }
.past-grid small { color: var(--ink-2); }

.faq { margin-bottom: 40px; }
.faq details { border-bottom: 3px solid var(--ink); padding: 14px 0; }
.faq summary { cursor: pointer; font: 400 21px var(--display); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ' +'; }
.faq details[open] summary::after { content: ' –'; }
.faq p { margin: 8px 0 0; max-width: 66ch; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px 0 40px; font: 500 13px var(--mono); color: var(--ink-2); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { order: 2; }
  .clock-card { max-width: none; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers div:nth-child(3) { border-left: 0; }
  .numbers div:nth-child(n+3) { border-top: 3px solid var(--ink); }
  .two { grid-template-columns: 1fr; }
  .past-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .demo { display: none; }
  .logo { font-size: 20px; }
  .numbers b { font-size: 24px; }
  .grab { font-size: 24px; }
}

[data-connect] { white-space: nowrap; }
