:root {
  --ink: #2c2026;
  --muted: #745b62;
  --paper: #fff8f6;
  --paper-deep: #f9e4df;
  --coral: #ee8789;
  --coral-light: #f6aaa7;
  --coral-deep: #cf5f68;
  --rose: #f4b7b4;
  --gold: #ae7d4e;
  --line: rgba(79, 47, 54, .2);
  --shadow: rgba(75, 36, 45, .22);
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: #f6b1af;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.78) 0 10%, rgba(255,255,255,0) 38%),
    linear-gradient(140deg, #ef9e9d 0%, #f8c1bd 47%, #e98a91 100%);
  color: var(--ink);
  overflow-x: hidden;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 8px;
  display: flex; align-items: center; justify-content: center;
}
.wordmark { color: var(--ink); text-decoration: none; font: 700 .82rem/1 "Manrope", sans-serif; letter-spacing: .2em; display: flex; gap: .48rem; }
.wordmark span:nth-child(2) { color: var(--coral-deep); border: 1px solid currentColor; padding: .15rem .22rem; margin-top: -.16rem; }
.hero { padding: 34px 20px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
h1 { margin: 0 0 28px; font: 600 clamp(2.5rem, 5.7vw, 4.9rem)/.96 "Manrope", sans-serif; letter-spacing: -.06em; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--coral-deep); }

.machine-wrap { position: relative; width: min(792px, calc(100vw - 88px)); height: 278px; display: grid; place-items: center; padding-right: 66px; }
.machine-shadow { position: absolute; z-index: 0; width: 72%; height: 60px; left: 13%; bottom: 7px; background: rgba(91,43,53,.22); filter: blur(24px); border-radius: 50%; }
.machine {
  position: relative; z-index: 2; width: min(720px, 100%); height: 242px; padding: 34px 58px;
  border: 2px solid rgba(112,51,58,.3); border-radius: 78px 52px 52px 78px;
  background: linear-gradient(180deg, #f5a29e 0%, #e7777b 45%, #e37076 72%, #c95865 100%);
  box-shadow: inset 0 6px 4px rgba(255,255,255,.45), inset 0 -9px 15px rgba(120,42,53,.24), 0 22px 50px var(--shadow);
}
.machine::before { content: ""; position: absolute; inset: 16px 42px; border-radius: 45px 30px 25px 45px; border: 2px solid rgba(88,42,47,.28); box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 1px 0 rgba(255,255,255,.35); }
.machine::after { content: ""; position: absolute; z-index: 3; right: -21px; top: 50%; width: 22px; height: 28px; transform: translateY(-50%); border: 1px solid rgba(112,69,34,.45); border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #e7c978 0%, #bd9141 57%, #88662b 100%); box-shadow: inset 0 2px 2px rgba(255,255,255,.38), 0 3px 6px rgba(80,35,43,.14); }
.machine-topline { position: absolute; top: 20px; left: 80px; right: 68px; height: 5px; background: linear-gradient(90deg, transparent, #7e4c37 14%, #d2a46e 30%, #7b4636 70%, transparent); border-radius: 50%; opacity: .78; }
.machine-cap { position: absolute; top: 27px; bottom: 27px; width: 62px; z-index: 4; border: 1px solid rgba(103,40,48,.25); background: linear-gradient(90deg, #c95b65, #f59894 45%, #d8646c); box-shadow: inset 5px 0 8px rgba(255,255,255,.23), inset -7px 0 8px rgba(105,35,43,.18); }
.cap-left { left: -2px; border-radius: 62px 22px 22px 62px; transform: skewY(-3deg); }
.cap-right { right: -2px; border-radius: 15px 45px 45px 15px; transform: skewY(3deg); }
.pointer { position: absolute; top: 109px; z-index: 8; width: 0; height: 0; border-top: 13px solid transparent; border-bottom: 13px solid transparent; filter: drop-shadow(0 2px 1px rgba(0,0,0,.18)); }
.pointer-left { left: 41px; border-right: 0; border-left: 22px solid var(--ink); }
.pointer-right { right: 42px; border-left: 0; border-right: 22px solid var(--ink); }

.reel-window { position: relative; z-index: 5; width: 100%; height: 174px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 5px solid #8f5e45; border-left-width: 6px; border-right-width: 6px; border-radius: 10px; background: #fffaf4; box-shadow: inset 0 4px 18px rgba(53,31,29,.24), 0 3px 0 #d3a066, 0 -3px 0 #6f4438; }
.reel { position: relative; overflow: hidden; color: var(--ink); background: linear-gradient(90deg, #eadfd8 0%, #fffdf8 13%, #fffdf9 84%, #e8dcd3 100%); }
.reel + .reel { border-left: 3px solid #93664d; box-shadow: -2px 0 0 #d7a56e; }
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; z-index: 2; }
.reel::before { top: 0; background: linear-gradient(#cdbeb4, transparent); }
.reel::after { bottom: 0; background: linear-gradient(transparent, #d7cbc2); }
.reel-track { will-change: transform; }
.reel.moving .reel-track { filter: blur(1.35px); }
.reel-item { height: 164px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 13px; padding: 13px 9px; }
.reel-kicker { color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .16em; }
.reel-value { min-height: 62px; display: grid; place-items: center; font: 700 clamp(.95rem, 1.9vw, 1.35rem)/1.02 "Manrope", sans-serif; letter-spacing: -.05em; text-align: center; text-transform: uppercase; text-wrap: balance; }
.reel-value.accent { color: var(--coral-deep); }
.glass-shine { position: absolute; inset: 0; pointer-events: none; z-index: 10; background: linear-gradient(175deg, rgba(255,255,255,.46) 0 13%, rgba(255,255,255,0) 32% 72%, rgba(255,255,255,.2)); }
.lever { position: absolute; z-index: 3; top: 13px; right: -2px; width: 108px; height: 252px; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.lever-mount { display: none; }
.lever-track { position: absolute; z-index: 1; top: 46px; right: 2px; width: 49px; height: 160px; border-radius: 22px; background: linear-gradient(90deg, #b94d59, #ee8c8f 45%, #c45a63); border: 2px solid rgba(101,37,45,.28); box-shadow: inset 6px 0 8px rgba(255,255,255,.18), 6px 10px 18px rgba(80,35,43,.17); }
.lever-arm { position: absolute; left: 50%; bottom: 50%; width: 7px; height: 118px; border-radius: 8px; transform: translateX(-50%); background: linear-gradient(90deg, #6e4731, #d3a663 46%, #795239); box-shadow: 1px 1px 3px rgba(44,23,22,.32); transition: height .5s cubic-bezier(.3,.75,.3,1); }
.lever-knob { position: absolute; left: 50%; top: -17px; width: 38px; height: 38px; transform: translateX(-50%); border-radius: 50%; border: 2px solid #77482e; background: radial-gradient(circle at 36% 28%, #fff1ba 0 7%, #e2ae64 18%, #996536 68%, #5d3c2b 100%); box-shadow: inset 2px 2px 4px rgba(255,255,255,.35), 1px 5px 8px rgba(61,29,31,.3); }
.lever-label { position: absolute; right: 10px; bottom: 3px; width: 44px; font-size: .57rem; font-weight: 700; letter-spacing: .15em; transform: rotate(90deg); opacity: .6; }
.lever:hover .lever-knob { filter: brightness(1.08); }
.lever:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 26px; }
.lever.pulled .lever-arm { height: 15px; }
.machine.settle { animation: machineThump .24s ease-out; }

.pull-hint { margin: 13px 0 0; color: var(--muted); font-size: .82rem; }
.pull-hint > span { color: var(--ink); font-weight: 700; }
kbd { border: 1px solid rgba(44,32,38,.25); border-bottom-width: 2px; border-radius: 5px; padding: 2px 6px; background: rgba(255,255,255,.32); font: inherit; font-size: .7rem; }
.sound-toggle { margin-left: 12px; border: 0; border-bottom: 1px solid currentColor; padding: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: .75rem; }

.result { width: min(1040px, calc(100% - 40px)); margin: 0 auto 14px; background: rgba(255,250,247,.91); border: 1px solid rgba(86,45,51,.18); box-shadow: 0 30px 70px rgba(80,39,47,.18); backdrop-filter: blur(14px); }
.result[hidden] { display: none; }
.result.reveal { animation: resultReveal .55s cubic-bezier(.2,.8,.2,1); }
.result-index { padding: 18px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .67rem; font-weight: 700; letter-spacing: .18em; }
.result-grid { display: grid; grid-template-columns: .92fr 1.08fr; }
.result-grid article { padding: clamp(28px, 5vw, 62px); }
.claim-panel { border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(244,183,180,.21), transparent 70%); }
.panel-label { margin-bottom: 21px; color: var(--coral-deep); font-size: .68rem; font-weight: 700; letter-spacing: .17em; }
.claim-panel h2 { margin: 0 0 25px; font: 600 clamp(1.55rem, 3vw, 2.6rem)/1.04 "Manrope", sans-serif; letter-spacing: -.04em; }
blockquote { margin: 0; font: 400 clamp(1.08rem, 2vw, 1.45rem)/1.48 Georgia, serif; }
.truth-panel > p { margin: 0; font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.72; }
.result-footer { min-height: 56px; padding: 13px 20px 13px 24px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .72rem; }
.sound-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.about-strip { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 45px; border-top: 1px solid rgba(44,32,38,.18); display: flex; justify-content: space-between; gap: 35px; align-items: flex-end; }
.about-strip p { max-width: 720px; margin: 0; font: 500 clamp(1.35rem, 3vw, 2.35rem)/1.2 "Manrope", sans-serif; letter-spacing: -.04em; }
.about-strip span { color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .16em; writing-mode: vertical-rl; }

@keyframes machineThump { 0% { transform: translateY(0); } 38% { transform: translateY(7px) scaleX(1.005); } 100% { transform: translateY(0); } }
@keyframes resultReveal { from { opacity: .55; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 780px) {
  .hero { padding-top: 30px; padding-bottom: 24px; }
  h1 { margin-bottom: 24px; }
  .machine-wrap { width: calc(100vw - 34px); height: 244px; padding-right: 45px; }
  .machine { height: 215px; padding: 29px 39px; border-radius: 58px 39px 39px 58px; }
  .machine::before { inset: 13px 29px; }
  .machine-cap { width: 43px; top: 23px; bottom: 26px; }
  .machine-topline { left: 55px; right: 50px; }
  .reel-window { height: 150px; border-width: 4px; }
  .reel-item { height: 142px; gap: 10px; padding-inline: 5px; }
  .reel-kicker { font-size: .45rem; letter-spacing: .09em; }
  .reel-value { font-size: clamp(.88rem, 4vw, 1.35rem); min-height: 53px; }
  .pointer { top: 96px; border-top-width: 9px; border-bottom-width: 9px; }
  .pointer-left { left: 28px; border-left-width: 15px; }
  .pointer-right { right: 29px; border-right-width: 15px; }
  .lever { right: -10px; top: -1px; transform: scale(.82); transform-origin: right center; }
  .result-grid { grid-template-columns: 1fr; }
  .claim-panel { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .site-header { width: calc(100% - 30px); }
  .hero { padding-inline: 11px; }
  .machine-wrap { width: 100%; padding-right: 37px; }
  .machine { padding-left: 31px; padding-right: 31px; }
  .machine::before { left: 23px; right: 23px; }
  .reel-value { font-size: .82rem; }
  .pull-hint { font-size: .72rem; }
  .result { width: calc(100% - 22px); }
  .result-footer { align-items: flex-start; gap: 12px; }
  .about-strip { width: calc(100% - 30px); }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.reel-track):not(.lever-arm), *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
