:root{--bg:#0c0b10;--night:#15131d;--coral:#ff5a36;--cobalt:#2340ff;--sun:#ffd23f;--pink:#ff6ec7;--lime:#c6f432;--mint:#3be0b0;--amber:#f59e3b}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{background:var(--bg);font-family:Archivo,ui-sans-serif,system-ui,sans-serif;display:grid;place-items:center;overflow:hidden;-webkit-font-smoothing:antialiased}
.deck{position:relative;width:min(440px,100vw);height:min(880px,100dvh);border-radius:22px;overflow:hidden;user-select:none}
@media (max-width:480px){.deck{border-radius:0}}
.top{position:absolute;inset:12px 14px auto;z-index:10}
.bars{display:flex;gap:4px}
.bars i{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.35);overflow:hidden}
.dark .bars i{background:rgba(0,0,0,.2)}
.bars b{display:block;height:100%;width:0;background:currentColor}
.meta{display:flex;justify-content:space-between;align-items:center;margin-top:14px;font-weight:700;font-size:13px}
.pause{width:34px;height:34px;border-radius:50%;border:0;background:rgba(0,0,0,.25);color:inherit;font:700 12px Archivo;cursor:pointer}
.card{position:absolute;inset:0;padding:96px 28px 40px;display:flex;flex-direction:column;justify-content:center;visibility:hidden;overflow:hidden}
.card.on{visibility:visible}
.card .in{position:relative;z-index:2}
.card .in>*{opacity:0;transform:translateY(26px)}
.card.on .in>*{animation:up .7s cubic-bezier(.2,.9,.2,1) forwards}
.card.on .in>*:nth-child(2){animation-delay:.12s}.card.on .in>*:nth-child(3){animation-delay:.24s}
.card.on .in>*:nth-child(4){animation-delay:.36s}.card.on .in>*:nth-child(5){animation-delay:.48s}
@keyframes up{to{opacity:1;transform:none}}
.lead{font-weight:500;font-size:19px;margin-bottom:10px}
.mega{font-weight:900;font-size:clamp(84px,27vw,124px);line-height:.88;letter-spacing:-.045em}
.mega.sm{font-size:clamp(62px,19vw,92px)}
h2{font-weight:900;font-size:clamp(32px,9.5vw,42px);line-height:.98;letter-spacing:-.03em;margin-top:12px}
p{font-weight:500;font-size:17px;line-height:1.38;margin-top:20px;max-width:34ch}
p b{font-weight:900}
.shape{position:absolute;border-radius:50%;z-index:1;transform:scale(0);transition:transform 1s cubic-bezier(.2,1.3,.3,1)}
.card.on .shape{transform:scale(1)}
.ring{background:none!important;border:16px solid}
ol{list-style:none;margin-top:22px}
ol li{display:flex;align-items:baseline;gap:12px;padding:10px 0;border-bottom:2px solid currentColor;font-weight:700;font-size:20px}
ol li:last-child{border:0}
ol li .n{font-weight:900;width:24px}
ol li .v{margin-left:auto;font-weight:500;font-size:15px;opacity:.8}

.hist{display:flex;align-items:flex-end;gap:3px;height:170px;margin-top:26px}
.hist div{flex:1;background:currentColor;opacity:.3;border-radius:3px 3px 0 0;transform-origin:bottom;transform:scaleY(0)}
.card.on .hist div{animation:grow .8s cubic-bezier(.2,.9,.2,1) forwards}
.hist div.pk{opacity:1}
@keyframes grow{to{transform:none}}
.axis{display:flex;justify-content:space-between;font-size:12px;font-weight:700;margin-top:8px;opacity:.75}
.cal{display:grid;grid-template-rows:repeat(7,1fr);grid-auto-flow:column;gap:3px;margin-top:24px}
.cal i{aspect-ratio:1;border-radius:50%;background:currentColor;opacity:.15}
.cal i.h{opacity:1}
.dots{position:absolute;left:24px;right:24px;bottom:28px;display:flex;flex-wrap:wrap;gap:5px;z-index:2}
.dots i{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.35}
.dots i.h{opacity:1}
.cols{display:flex;align-items:flex-end;gap:8px;margin-top:26px;height:180px}
.cols>div{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.cols .st{width:100%;display:flex;flex-direction:column-reverse;gap:3px}
.cols i{width:100%;height:8px;border-radius:3px;background:currentColor;opacity:.3}
.cols>div.pk i{opacity:1}
.cols span{font-size:11px;font-weight:700;margin-top:6px;opacity:.8}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px 14px;margin-top:24px}
.grid2 b{display:block;font-weight:900;font-size:34px;letter-spacing:-.03em;line-height:1}
.grid2 span{font-weight:500;font-size:13px}
.tag{display:inline-block;padding:7px 14px;border-radius:99px;background:currentColor;margin-top:20px}
.tag span{font-weight:900;font-size:15px;filter:invert(1);mix-blend-mode:difference}
.foot{font-size:12px;opacity:.7;margin-top:22px}
.nav{position:absolute;inset:80px 0 0;display:flex;z-index:5}
.nav div{flex:1;cursor:pointer}.nav div+div{flex:2}
.replay{margin-top:24px;border:0;background:#000;color:#fff;font:900 15px Archivo;padding:13px 20px;border-radius:99px;cursor:pointer;position:relative;z-index:6}

.actions{display:flex;flex-direction:column;gap:10px;margin-top:22px;position:relative;z-index:6}
.btn{border:0;background:#000;color:#fff;font:900 15px Archivo,sans-serif;padding:14px 20px;border-radius:99px;cursor:pointer;text-align:center;text-decoration:none}
.btn.ghost{background:transparent;color:inherit;box-shadow:inset 0 0 0 2px currentColor}
.loading{color:#fff;font-weight:700;opacity:.6}
/* story page layout: deck centered, an about line underneath for people and agents */
body.story{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:100dvh;overflow:auto;padding:12px 0}
.about{max-width:440px;padding:0 16px;color:#ffffff99;font:500 12px/1.5 Archivo,sans-serif;text-align:center}
.about p+p{margin-top:6px}.about a{color:#ffffffcc}.about q{color:#fff}
.dragging .deck{outline:3px dashed var(--lime);outline-offset:6px}
@media (max-width:480px){body.story{padding:0}.about{padding-bottom:20px}}

/* head to head */
body.vs{display:block;overflow:auto;color:#fff}
body.vs .page{max-width:560px;margin:0 auto;min-height:100dvh;background:var(--night)}
body.vs .hero{background:var(--coral);color:#120a06;padding:40px 26px 30px;position:relative;overflow:hidden}
body.vs .hero .c1{position:absolute;width:240px;height:240px;border-radius:50%;background:var(--sun);right:-80px;top:-110px}
body.vs .hero .k{font-weight:700;font-size:13px;position:relative}
body.vs .hero h1{font-weight:900;font-size:clamp(44px,13vw,66px);line-height:.9;letter-spacing:-.04em;margin-top:14px;position:relative}
body.vs .hero p{position:relative;font-weight:500;font-size:16px;margin-top:14px;max-width:36ch}
body.vs .names{display:grid;grid-template-columns:1fr 50px 1fr;padding:24px 22px 10px;align-items:end}
body.vs .names div{font-weight:900;font-size:22px;letter-spacing:-.02em;line-height:1.05;overflow-wrap:anywhere}
body.vs .names div:last-child{text-align:right}
body.vs .names .vs{text-align:center;font-size:12px;opacity:.5}
body.vs .a{color:var(--mint)}
body.vs .b{color:var(--pink)}
body.vs .row{display:grid;grid-template-columns:1fr 92px 1fr;align-items:center;padding:12px 22px;border-top:1px solid #ffffff1c}
body.vs .row .v{font-weight:900;font-size:clamp(17px,5.4vw,24px);letter-spacing:-.03em;overflow-wrap:anywhere}
body.vs .row .v:last-child{text-align:right}
body.vs .row .l{text-align:center;font-weight:700;font-size:10px;text-transform:uppercase;letter-spacing:.08em;opacity:.65}
body.vs .row .lose{opacity:.35}
body.vs .row .win.a::after{content:" ●";font-size:11px;vertical-align:middle}
body.vs .row .win.b::before{content:"● ";font-size:11px;vertical-align:middle}
body.vs .score{background:var(--lime);color:#0d1204;padding:28px 24px 30px}
body.vs .score .big{font-weight:900;font-size:64px;letter-spacing:-.04em;line-height:.9}
body.vs .score p{font-weight:500;font-size:16px;line-height:1.4;margin-top:12px}
body.vs .score .actions .btn:not(.ghost){background:#0d1204}
body.vs .foot{font-size:12px;opacity:.7;margin-top:16px}
body.vs .panel{padding:26px 24px 34px}
body.vs .panel h2{font-size:28px}
body.vs .panel ol{counter-reset:s;list-style:none;margin-top:18px}
body.vs .panel ol>li{border:0;display:block;font-weight:500;font-size:16px;padding:0 0 18px}
body.vs .panel ol>li b{font-weight:900}
body.vs pre{background:#000;color:var(--lime);font:500 12.5px/1.5 ui-monospace,Menlo,monospace;padding:14px;border-radius:12px;white-space:pre-wrap;word-break:break-all;margin-top:10px;position:relative}
body.vs .copy{position:absolute;right:8px;top:8px;background:#ffffff22;color:#fff;border:0;border-radius:99px;font:700 11px Archivo;padding:6px 10px;cursor:pointer}
body.vs .tabs{display:flex;gap:6px;margin-top:10px}
body.vs .tabs button{border:0;background:#ffffff18;color:#fff;font:700 13px Archivo;padding:7px 12px;border-radius:99px;cursor:pointer}
body.vs .tabs button.on{background:#fff;color:#000}
body.vs input{width:100%;margin-top:10px;padding:14px;border-radius:12px;border:0;font:500 14px Archivo;background:#fff;color:#000}
body.vs .err{color:var(--coral);font-weight:700;font-size:14px;margin-top:8px;min-height:1em}
body.vs .drop{margin-top:14px;border:2px dashed #ffffff55;border-radius:14px;padding:22px;text-align:center;font-weight:700;cursor:pointer}
body.vs.dragging .drop{border-color:var(--lime);color:var(--lime)}
body.vs .page{padding-bottom:30px}
body.story .deck{flex-shrink:0;height:min(860px,calc(100dvh - 130px));min-height:600px}
@media (max-width:480px){body.story .deck{height:100dvh;min-height:0}}
