Skip to content
VibeCodeBench
Back to the app

The code

The Most Uncomfortable Web Page by GPT-6.1 Sol

Exactly as the AI wrote it. Shown as text, so nothing runs on this page.

index.html

works · auto-checked (Checked by an automated pass. Not hand-played yet.)49.8 KB · 190 lines · no libraries
Download
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#f5f3eb">
<title>The Minor Inconvenience Department</title>
<style>
:root{--paper:#f5f3eb;--ink:#282b25;--muted:#73766a;--line:#d9dacf;--lime:#dfed9c;--light-lime:#edf2d9;--coral:#f2a38d;--lavender:#e5e0f3;--white:#fffef9;--mono:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;--sans:"Arial","Helvetica Neue",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid #6c69ab;outline-offset:5px}button:disabled{cursor:default}button{border:0}button svg{pointer-events:none}[hidden]{display:none!important}svg{display:block}::selection{background:var(--coral);color:var(--ink)}
.page{max-width:1240px;margin:auto;padding:0 42px}.header{min-height:106px;border-bottom:1px solid var(--ink);display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;gap:12px;align-items:center;font-size:16px;font-weight:800;letter-spacing:-.5px;line-height:1.05;background:none;text-align:left;padding:8px 0}.brand-mark{width:42px;height:42px;transform:rotate(-4deg)}.header-middle{font:10px/1.65 var(--mono);text-transform:uppercase;letter-spacing:1.6px;color:var(--muted);text-align:center}.header-actions{display:flex;align-items:center;gap:20px}.motion-button{background:none;padding:12px 0;font:11px var(--mono);color:var(--muted);display:flex;align-items:center;gap:7px;white-space:nowrap}.motion-dot{width:7px;height:7px;border-radius:50%;background:#76834d}.exit-button{background:var(--ink);color:var(--white);border:1px solid var(--ink);border-radius:6px;padding:14px 17px;font-size:12px;font-weight:700;min-height:46px;display:flex;align-items:center;gap:18px}.exit-button:hover{background:#454a3b}.hero{padding:43px 0 37px;display:grid;grid-template-columns:1fr 235px;gap:30px;align-items:center}.eyebrow{font:10px/1.4 var(--mono);letter-spacing:1.2px;text-transform:uppercase;display:flex;gap:9px;align-items:center}.small-star{font-size:18px;line-height:1}.hero h1{font-size:clamp(44px,5.8vw,78px);line-height:1.015;letter-spacing:-4.8px;margin:17px 0 16px;font-weight:800;max-width:850px}.hero h1 em{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-5px;position:relative;display:inline-block}.hero h1 em:after{content:"";position:absolute;left:0;right:-4px;bottom:-4px;height:5px;background:var(--coral);transform:rotate(-1.1deg);border-radius:60%}.hero p{font-size:14px;line-height:1.7;color:#66695e;margin:0;max-width:530px}.hero-note{position:relative;transform:rotate(4deg);background:var(--lime);padding:18px 18px 18px 23px;border:1px solid var(--ink);border-radius:3px;box-shadow:3px 3px 0 #d3d5c8;width:207px;justify-self:end;margin-right:4px}.hero-note:before{content:"";position:absolute;top:-11px;left:75px;width:58px;height:19px;background:#e7e2d0cc;transform:rotate(-10deg)}.note-top{font:9px var(--mono);letter-spacing:1.2px;text-transform:uppercase;display:flex;align-items:center;justify-content:space-between}.note-clock{width:35px;height:35px;margin:12px 0 6px}.hero-note strong{font-family:Georgia,"Times New Roman",serif;font-size:28px;font-weight:400;font-style:italic;line-height:1.05;display:block}.hero-note small{font:9px/1.5 var(--mono);display:block;margin-top:12px;opacity:.7}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 307px;gap:25px;align-items:start}.test-card{background:var(--white);border:1.5px solid var(--ink);border-radius:12px;box-shadow:5px 5px 0 var(--ink);overflow:hidden}.test-header{display:flex;justify-content:space-between;gap:10px;padding:17px 24px;border-bottom:1px solid var(--line);align-items:center;font:10px var(--mono);letter-spacing:1.2px}.live-tag{display:flex;align-items:center;gap:6px;color:#747867;font-size:9px;letter-spacing:.5px}.live-tag i{height:6px;width:6px;background:#88935d;border-radius:50%}.steps{display:grid;grid-template-columns:repeat(3,1fr);padding:0 24px;border-bottom:1px solid var(--line)}.step{padding:18px 0;display:flex;gap:8px;align-items:center;color:#9b9d91;font-size:12px;position:relative;white-space:nowrap}.step span{font:9px var(--mono);border:1px solid #dcded2;border-radius:50%;height:23px;width:23px;display:grid;place-items:center;flex-shrink:0}.step.active{color:var(--ink);font-weight:700}.step.active:after{position:absolute;content:"";height:3px;left:0;right:20px;bottom:-1px;background:var(--ink)}.step.active span{background:var(--lime);border-color:var(--ink)}.step.done{color:#69764b}.step.done span{background:var(--light-lime);border-color:#c1caaa}.stage{padding:27px 25px 21px}.stage-heading{display:flex;justify-content:space-between;gap:12px;align-items:start}.stage h2{font-size:29px;font-weight:700;letter-spacing:-1.2px;margin:0 0 8px;line-height:1.15}.stage-description{font-size:12px;color:var(--muted);line-height:1.6;margin:0}.stage-number{font:10px var(--mono);padding-top:5px;color:#949789}.dodge-field{height:205px;border:1px solid #d1d9b8;border-radius:6px;background-color:var(--light-lime);background-image:radial-gradient(#acb58a69 .75px,transparent .75px);background-size:16px 16px;position:relative;margin-top:22px;overflow:hidden}.field-label{position:absolute;left:14px;top:12px;font:8px var(--mono);color:#8a9276;letter-spacing:1.3px;pointer-events:none}.corner{position:absolute;width:12px;height:12px;border-color:#b4be98;border-style:solid;pointer-events:none}.corner.tl{left:9px;top:9px;border-width:1px 0 0 1px}.corner.br{right:9px;bottom:9px;border-width:0 1px 1px 0}.dodger{position:absolute;left:50%;top:51%;transform:translate(-50%,-50%) rotate(-3deg);border:1.5px solid var(--ink);border-radius:7px;background:var(--coral);padding:15px 22px;font-size:15px;font-weight:700;min-height:53px;min-width:151px;box-shadow:3px 4px 0 var(--ink);transition:left .24s ease,top .24s ease,transform .24s ease;z-index:2;white-space:nowrap}.dodger:hover{background:#f6b8a6}.dodger.settled{transform:translate(-50%,-50%) rotate(0)}.field-arrow{position:absolute;left:16%;bottom:15px;width:112px;height:58px;pointer-events:none;color:#8d9771}.field-caption{position:absolute;right:14px;bottom:12px;color:#8a9276;font:8px var(--mono);letter-spacing:.3px}.stage-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:15px;font:9px/1.5 var(--mono);color:#878a7d;text-transform:uppercase;letter-spacing:.6px}.stage-feedback{min-height:20px;margin:15px 0 0;font-size:12px;line-height:1.5;color:#646c52;display:flex;gap:7px;align-items:center}.feedback-dot{width:5px;height:5px;background:#8b9674;flex-shrink:0;border-radius:50%}.small-print{padding:19px 2px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;font:9px/1.6 var(--mono);color:#8b8e80}.small-print span:first-child{transform:rotate(-.4deg)}.one-pixel{position:relative;top:1px}.receipt{position:relative;padding:23px 24px 27px;background:var(--white);border:1px solid #d7d8cd;box-shadow:2px 3px 0 #e3e2d6;transform:rotate(1.1deg);margin:2px 3px 0 0}.receipt:after{content:"";height:9px;position:absolute;bottom:-5px;left:-1px;right:-1px;background:linear-gradient(135deg,var(--white) 25%,transparent 25%) -5px 0/10px 10px,linear-gradient(225deg,var(--white) 25%,transparent 25%) -5px 0/10px 10px;filter:drop-shadow(0 1px 0 #d7d8cd)}.receipt-top{font:8px var(--mono);letter-spacing:1.7px;text-align:center;margin-bottom:10px}.receipt h3{text-align:center;font-size:20px;font-weight:700;letter-spacing:-.8px;margin:0 0 8px}.receipt-id{text-align:center;font:8px var(--mono);color:#929587}.perforation{border-top:1px dashed #c9cbbc;margin:19px 0}.receipt-row{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font:10px/1.6 var(--mono);margin:11px 0;color:#797e6e}.receipt-row strong{font-size:10px;font-weight:400;color:var(--ink);text-align:right}.receipt-total{display:flex;justify-content:space-between;gap:12px;align-items:center}.receipt-total span{font:9px var(--mono);letter-spacing:1px}.receipt-total strong{font:italic 20px Georgia,serif}.stamp{width:max-content;color:#9c6657;border:1.5px solid #b78071;padding:5px 12px;transform:rotate(-8deg);font:10px var(--mono);letter-spacing:2.4px;margin:22px auto 16px;box-shadow:inset 0 0 0 2px var(--white),inset 0 0 0 3px #b7807144}.receipt-bottom{text-align:center;font:8px/1.6 var(--mono);color:#999c8f}.barcode{height:20px;max-width:113px;margin:12px auto 0;opacity:.4;background:repeating-linear-gradient(90deg,var(--ink) 0 1px,transparent 1px 3px,var(--ink) 3px 5px,transparent 5px 8px,var(--ink) 8px 9px,transparent 9px 12px)}.cookie-stack{position:relative;margin-top:27px;padding-top:7px}.cookie-stack:before,.cookie-stack:after{content:"";position:absolute;left:5px;right:5px;top:4px;height:60px;background:#eeeccf;border:1px solid #d0d1b7;transform:rotate(-2deg);border-radius:7px;z-index:0}.cookie-stack:after{left:8px;right:2px;top:8px;transform:rotate(2deg)}.cookie-card{position:relative;z-index:1;background:#efefdc;border:1px solid #d0d1b7;border-radius:7px;padding:17px 16px 13px;transform:rotate(-1deg)}.cookie-title{display:flex;align-items:center;gap:11px}.cookie-icon{width:34px;height:34px;flex-shrink:0}.cookie-title strong{font-size:12px;line-height:1.4;display:block}.cookie-title p{margin:2px 0 0;font-size:10px;color:#797d68;line-height:1.5}.cookie-actions{display:flex;gap:7px;margin-top:13px}.cookie-actions button{padding:10px 12px;border:1px solid #969c80;min-height:44px;border-radius:4px;font-size:10px;font-weight:700;background:transparent;flex:1}.cookie-actions button:first-child{background:var(--ink);border-color:var(--ink);color:var(--white)}.cookie-note{font:8px/1.5 var(--mono);color:#858a73;min-height:12px;margin:10px 0 0}.cookie-copies{display:grid;gap:6px}.cookie-copy{border:1px dashed #b5b99e;padding:9px 10px;border-radius:3px;margin-top:7px;display:flex;align-items:center;gap:7px;background:#f9f8e9;animation:arrive .3s ease}.cookie-copy p{font-size:10px;line-height:1.45;margin:0;flex:1}.cookie-copy button{background:transparent;min-width:44px;min-height:44px;border:1px solid #ccd0b7;border-radius:4px;font:9px var(--mono);padding:4px}.cookie-copy:last-child{transform:rotate(.7deg)}.cookie-accepted{font-size:12px;line-height:1.6;padding-top:12px}.cookie-reset{font:9px var(--mono);text-decoration:underline;min-height:44px;background:none;padding:8px 0;color:#787c68}.footer{border-top:1px solid #d2d4c7;margin:34px 0 0;padding:20px 0 23px;display:flex;justify-content:space-between;align-items:center;gap:20px}.footer-left{display:flex;align-items:center;gap:10px;font-size:10px;color:#808573}.footer-left svg{width:17px;height:17px;flex-shrink:0}.demo-button{font:10px var(--mono);background:transparent;padding:12px 0;min-height:44px;text-decoration:underline;text-underline-offset:4px}.footer-right{display:flex;align-items:center;gap:22px}.sound-label{font:8px var(--mono);color:#959a88;text-transform:uppercase;letter-spacing:.8px}.demo-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 15px;background:var(--lavender);border:1px solid #c8bfdc;border-top:0;border-radius:0 0 6px 6px;font:10px/1.5 var(--mono)}.demo-banner strong{font-weight:500}.demo-banner button{background:transparent;min-height:44px;padding:5px 7px;text-decoration:underline;font:10px var(--mono)}.demo-progress{height:2px;background:#bdb1d4;flex:1;max-width:120px;overflow:hidden}.demo-progress span{height:100%;display:block;background:#6c5f84;width:0}.demo-cursor{position:absolute;left:50%;top:51%;width:29px;height:33px;z-index:4;pointer-events:none;transform:translate(17px,14px);transition:left .4s ease,top .4s ease;filter:drop-shadow(1px 2px 0 #2223)}.demo-cursor svg{width:100%;height:100%}.loading-board{margin-top:22px;background:var(--light-lime);border:1px solid #d1d9b8;border-radius:6px;padding:24px 22px 21px;min-height:205px;display:flex;flex-direction:column;justify-content:center}.loading-top{display:flex;justify-content:space-between;align-items:baseline;gap:14px}.loading-top>span{font:9px var(--mono);letter-spacing:1.2px;color:#7c8667}.loading-number{font-size:49px;font-weight:800;letter-spacing:-3px;line-height:1}.loading-number small{font-size:22px;letter-spacing:-1px;font-weight:400;margin-left:3px}.progress-track{height:18px;border:1.5px solid var(--ink);padding:3px;background:#f8faee;border-radius:3px;margin:17px 0 13px;overflow:hidden}.progress-fill{height:100%;width:0;background:var(--ink);border-radius:1px;transition:width .12s linear}.loading-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;font:9px/1.5 var(--mono);color:#788563}.rollback-pill{padding:4px 6px;background:#e5b09a66;border-radius:3px;color:#886351;white-space:nowrap}.continue-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:16px;min-height:44px}.continue-row p{font-size:11px;line-height:1.5;color:var(--muted);margin:0;max-width:260px}.solid-button{border:1px solid var(--ink);background:var(--ink);color:var(--white);padding:13px 17px;min-height:46px;border-radius:5px;font-size:12px;font-weight:700;white-space:nowrap}.solid-button:disabled{background:#e8e9e0;border-color:#d9dccf;color:#9b9f8b}.solid-button:not(:disabled):hover{background:#484d3d}.close-board{position:relative;min-height:205px;border-radius:6px;margin-top:22px;background:var(--lavender);border:1px solid #d5cde3;padding:20px;overflow:hidden}.window-notice{background:var(--white);border:1px solid var(--ink);border-radius:5px;box-shadow:3px 3px 0 #bcb4ce;max-width:360px;margin:auto;transform:rotate(-1deg)}.window-bar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dedde0;padding:11px 13px;font:9px var(--mono);letter-spacing:.5px}.window-dots{display:flex;gap:4px}.window-dots i{display:block;width:5px;height:5px;background:#b9b6be;border-radius:50%}.window-content{padding:16px}.window-content p{font-size:13px;margin:0 0 13px;line-height:1.6}.close-buttons{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.close-clone{font:11px var(--mono);padding:12px 13px;min-height:44px;min-width:76px;border:1px solid var(--ink);border-radius:4px;background:var(--coral)}.close-clone:nth-child(2){transform:rotate(3deg);background:var(--lime)}.close-clone:nth-child(3){transform:translateY(2px) rotate(-2deg);background:var(--lavender)}.notice-cleared{display:grid;place-items:center;min-height:162px;text-align:center;gap:8px;align-content:center}.notice-cleared svg{width:38px;height:38px}.notice-cleared strong{font-size:16px;letter-spacing:-.3px}.notice-cleared p{font-size:11px;color:#7d748b;margin:0}.finish{padding:42px 0 0}.finish-card{position:relative;border:1.5px solid var(--ink);background:var(--white);box-shadow:6px 6px 0 var(--ink);border-radius:12px;padding:49px 54px 43px;overflow:hidden}.finish-card:before{content:"";position:absolute;right:-65px;top:-70px;width:365px;height:365px;background:var(--light-lime);border-radius:50%}.finish-eyebrow{font:10px var(--mono);letter-spacing:1.4px;position:relative;display:flex;align-items:center;gap:8px}.finish-eyebrow span{background:var(--lime);border:1px solid #9da976;width:19px;height:19px;display:grid;place-items:center;border-radius:50%;font-size:11px}.finish-main{display:grid;grid-template-columns:1fr 220px;gap:22px;align-items:center;position:relative;margin-top:25px}.finish h1{font-size:clamp(44px,5.5vw,74px);line-height:1.05;letter-spacing:-3.7px;margin:0 0 22px;font-weight:800}.finish h1 em{font-family:Georgia,serif;font-weight:400}.finish-description{font-size:14px;line-height:1.8;color:#737969;max-width:470px;margin:0}.finish-medal{width:206px;height:230px;transform:rotate(8deg)}.finish-metrics{display:grid;grid-template-columns:repeat(3,1fr);margin-top:35px;border-top:1px dashed #c7cbbc;border-bottom:1px dashed #c7cbbc;padding:24px 0;gap:20px;position:relative}.finish-metrics span{display:block;font:9px var(--mono);color:#8a907e;letter-spacing:.9px;text-transform:uppercase}.finish-metrics strong{display:block;font-size:29px;font-weight:500;letter-spacing:-1.5px;margin-top:10px}.finish-metrics small{font:10px var(--mono);color:#7f8771;letter-spacing:0}.finish-actions{display:flex;align-items:center;flex-wrap:wrap;gap:13px;margin-top:27px;position:relative}.outline-button{border:1px solid #c4cabb;background:transparent;min-height:46px;border-radius:5px;padding:12px 15px;font-size:11px}.finish-micro{font:9px/1.6 var(--mono);color:#929783;margin-top:23px}.finish-punchline{font:11px/1.6 var(--mono);margin:15px 0 0;color:#6f7b53;min-height:18px}.finish-note{display:flex;align-items:center;justify-content:center;gap:10px;padding:29px 10px 0;font:10px/1.6 var(--mono);color:#858c76}.finish-note span{font-size:17px;transform:rotate(-8deg)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.calm *,.calm *:before,.calm *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@keyframes arrive{from{opacity:0;translate:0 -5px}to{opacity:1;translate:0 0}}
@media(min-width:1400px){.page{max-width:1320px;padding:0 54px}.hero{padding-top:49px;padding-bottom:43px}.hero h1{font-size:82px}.dodge-field,.loading-board,.close-board{min-height:224px}.dodge-field{height:224px}.stage{padding-top:30px;padding-bottom:24px}.workspace{grid-template-columns:minmax(0,1fr) 322px}}
@media(max-width:1000px){.page{padding:0 28px}.header-middle{display:none}.header-actions{gap:16px}.workspace{grid-template-columns:minmax(0,1fr) 275px;gap:22px}.hero h1{font-size:60px;letter-spacing:-3.5px}.hero-note{width:190px}.hero{grid-template-columns:1fr 205px;gap:20px}.stage{padding:24px 20px 20px}.test-header{padding-left:20px;padding-right:20px}.steps{padding:0 20px}.step{font-size:10px;gap:6px}.receipt{padding:21px 18px}.stage h2{font-size:26px}.finish-card{padding:40px}.finish-main{grid-template-columns:1fr 180px}.finish-medal{width:175px;height:auto}.field-caption{font-size:7px}.sound-label{display:none}}
@media(max-width:760px){.page{max-width:600px;padding:0 20px}.header{min-height:86px;gap:12px}.brand{font-size:13px;gap:8px}.brand-mark{width:34px;height:34px}.motion-button{font-size:0;min-width:44px;min-height:44px;justify-content:center;border:1px solid #d3d7c7;border-radius:5px;padding:8px}.motion-button .motion-dot{width:9px;height:9px}.header-actions{gap:8px}.exit-button{font-size:10px;padding:11px 12px;gap:11px;min-height:44px}.hero{padding:33px 0 28px;grid-template-columns:1fr;gap:0}.hero h1{font-size:clamp(46px,9.5vw,65px);letter-spacing:-3px;margin:16px 0}.hero h1 em{letter-spacing:-3px}.hero p{font-size:12px;max-width:365px}.eyebrow{font-size:8px;letter-spacing:.9px}.hero-note{display:none}.workspace{grid-template-columns:1fr;gap:27px}.stage{padding:25px 20px 19px}.stage h2{font-size:28px}.dodge-field{height:211px}.test-header{padding:15px 19px;font-size:9px}.steps{padding:0 19px}.step{padding:16px 0;font-size:11px}.step.active:after{right:13px}.small-print{font-size:8px;padding-top:17px}.small-print span:last-child{display:none}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-items:start}.receipt{padding:21px 15px 25px;margin:0;transform:rotate(.8deg)}.receipt-top{font-size:6px;letter-spacing:.7px}.receipt h3{font-size:17px}.receipt-id{font-size:6px}.receipt-row{font-size:8px;margin:10px 0}.receipt-row strong{font-size:8px}.receipt-row.optional{display:none}.receipt-total{flex-direction:column;align-items:start;gap:9px}.receipt-total strong{font-size:21px}.receipt-total span{font-size:8px}.perforation{margin:16px 0}.stamp{font-size:7px;letter-spacing:1.2px;padding:5px 8px;margin:18px auto 13px}.receipt-bottom{font-size:6px}.barcode{max-width:90px;height:16px}.cookie-stack{margin-top:0}.cookie-card{padding:16px 12px 12px}.cookie-title{display:block}.cookie-icon{width:29px;height:29px;margin-bottom:10px}.cookie-title strong{font-size:12px}.cookie-title p{font-size:9px}.cookie-actions{flex-direction:column;gap:6px}.cookie-actions button{font-size:10px;min-height:44px}.cookie-note{font-size:7px}.cookie-copy{padding:6px;gap:4px;display:block}.cookie-copy p{font-size:9px;margin-bottom:5px}.cookie-copy button{width:100%;min-height:44px}.footer{margin-top:29px;gap:8px;padding:15px 0}.footer-left{font-size:8px;max-width:200px;line-height:1.5;gap:7px}.footer-right{gap:0}.demo-button{font-size:9px}.demo-banner{font-size:8px;padding:8px 10px}.demo-banner button{font-size:9px;white-space:nowrap}.demo-progress{max-width:55px}.finish{padding-top:29px}.finish-card{padding:29px 24px 25px}.finish-card:before{width:240px;height:240px;right:-125px;top:-100px}.finish-eyebrow{font-size:8px;letter-spacing:.7px}.finish-main{display:block;margin-top:23px}.finish h1{font-size:49px;letter-spacing:-2.8px;position:relative}.finish-description{font-size:12px;position:relative;max-width:340px}.finish-medal{position:relative;width:118px;height:130px;margin:22px auto 0}.finish-metrics{gap:10px;margin-top:20px;padding:20px 0}.finish-metrics span{font-size:7px;letter-spacing:.2px;line-height:1.5}.finish-metrics strong{font-size:25px;margin-top:8px}.finish-metrics small{display:block;font-size:8px;line-height:1.6}.finish-actions{align-items:stretch;flex-direction:column;gap:9px;margin-top:22px}.finish-actions button{white-space:normal;font-size:11px}.finish-micro{font-size:8px}.finish-note{font-size:8px;padding-top:24px}.loading-board{padding:24px 17px;min-height:211px}.loading-number{font-size:45px}.loading-top>span{font-size:8px}.loading-bottom{font-size:8px}.continue-row p{font-size:10px;max-width:155px}.solid-button{font-size:11px;padding:12px 13px}.close-board{min-height:211px;padding:18px 13px}.window-content{padding:14px}.window-content p{font-size:12px}.close-clone{font-size:10px;min-width:68px;padding:11px}.stage-foot{font-size:8px}.field-caption{font-size:7px}}
@media(max-width:365px){.page{padding:0 14px}.brand{font-size:11px}.brand-mark{width:29px;height:29px}.exit-button{font-size:9px;padding:10px;gap:7px}.hero h1{font-size:43px}.step{font-size:10px}.step span{width:20px;height:20px;font-size:8px}.stage h2{font-size:25px}.sidebar{gap:11px}.receipt{padding-left:11px;padding-right:11px}.receipt h3{font-size:16px}.finish h1{font-size:43px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
</style>
</head>
<body>
<div class="page">
<header class="header">
<button class="brand" id="brandButton" aria-label="Start the Minor Inconvenience Department again">
<svg class="brand-mark" viewBox="0 0 48 48" fill="none" aria-hidden="true"><rect x="5" y="5" width="31" height="31" rx="3" fill="#dfed9c" stroke="#282b25" stroke-width="1.6"/><rect x="13" y="13" width="31" height="31" rx="3" fill="#f5f3eb" stroke="#282b25" stroke-width="1.6"/><path d="M21 28h15M30 22l6 6-6 6" stroke="#282b25" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></svg>
<span>the minor<br>inconvenience dept.</span>
</button>
<div class="header-middle">MAKING SIMPLE THINGS<br>SLIGHTLY LESS SO. SINCE JUST NOW.</div>
<div class="header-actions"><button class="motion-button" id="motionButton" aria-pressed="false" title="Reduce movement"><span class="motion-dot"></span><span id="motionLabel">Wiggles: on</span></button><button class="exit-button" id="exitButton"><span id="exitLabel">The sensible exit</span><span aria-hidden="true">↗</span></button></div>
</header>
<div class="demo-banner" id="demoBanner" hidden><strong>AUTOPILOT · A 20-second tour. Touch anything to take over.</strong><div class="demo-progress" aria-hidden="true"><span id="demoProgress"></span></div><button id="stopDemoButton">Take over ↗</button></div>
<main>
<div id="experience">
<section class="hero" aria-labelledby="heroTitle">
<div><div class="eyebrow"><span class="small-star" aria-hidden="true">✳</span> A SMALL EXERCISE IN UNNECESSARY DIFFICULTY</div><h1 id="heroTitle">A little<br><em>inconvenience.</em></h1><p>Nothing scary. Nothing urgent. Just a few perfectly simple things,<br> made slightly more annoying than they need to be.</p></div>
<aside class="hero-note" aria-label="Estimated time: just one more second. Estimates are emotionally accurate."><div class="note-top"><span>Estimated time</span><span>↗</span></div><svg class="note-clock" viewBox="0 0 40 40" fill="none" aria-hidden="true"><circle cx="20" cy="21" r="14" stroke="currentColor" stroke-width="1.5"/><path d="M20 12v10l7 3M16 3h8M20 3v4M32 8l3 3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/><circle cx="20" cy="21" r="1.5" fill="currentColor"/></svg><strong>just one<br>more second.*</strong><small>*Emotionally accurate.<br>Mathematically questionable.</small></aside>
</section>
<div class="workspace">
<div>
<section class="test-card" aria-label="The patience test">
<div class="test-header"><span>THE PATIENCE TEST</span><span class="live-tag"><i aria-hidden="true"></i> ALL SYSTEMS ALMOST GO</span></div>
<div class="steps" aria-label="Your progress"><div class="step active" id="step1" aria-current="step"><span>01</span>The button</div><div class="step" id="step2"><span>02</span>The wait</div><div class="step" id="step3"><span>03</span>The exit</div></div>
<section class="stage" id="stage1" aria-labelledby="stage1Title">
<div class="stage-heading"><div><h2 id="stage1Title" tabindex="-1">Go on. Press it.</h2><p class="stage-description">One button. One click. What could possibly go sideways?</p></div><span class="stage-number">01 / 03</span></div>
<div class="dodge-field" id="dodgeField"><span class="field-label">DESIGNATED CLICKING AREA</span><span class="corner tl"></span><span class="corner br"></span><button class="dodger" id="dodgeButton">Continue <span aria-hidden="true">↗</span></button><svg class="field-arrow" viewBox="0 0 120 60" fill="none" aria-hidden="true"><path d="M5 46c45 17 72-1 81-30M77 20l10-7 4 13" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/><text x="1" y="29" fill="currentColor" stroke="none" font-family="Georgia,serif" font-size="12" font-style="italic">right here. ish.</text></svg><span class="field-caption" id="fieldCaption">DEFINITELY STAYING PUT.</span><div class="demo-cursor" id="demoCursor" hidden><svg viewBox="0 0 28 34" aria-hidden="true"><path d="M3 2v25l7-6 5 10 5-3-5-9h10z" fill="#fffef9" stroke="#282b25" stroke-width="1.5" stroke-linejoin="round"/></svg></div></div>
<div class="stage-foot"><span>DODGES: <strong id="dodgeCount">00</strong> / 03</span><span>YES, THIS IS INTENTIONAL.</span></div><p class="stage-feedback"><span class="feedback-dot"></span><span id="dodgeFeedback">It's a very normal, very cooperative button.</span></p>
</section>
<section class="stage" id="stage2" aria-labelledby="stage2Title" hidden>
<div class="stage-heading"><div><h2 id="stage2Title" tabindex="-1">Just one more percent.</h2><p class="stage-description">We're doing something incredibly important. Probably.</p></div><span class="stage-number">02 / 03</span></div>
<div class="loading-board"><div class="loading-top"><span>PREPARING TO BE READY</span><div class="loading-number"><span id="progressNumber">0</span><small>%</small></div></div><div class="progress-track" id="progressTrack" role="progressbar" aria-label="Unnecessarily indecisive progress" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-fill" id="progressFill"></div></div><div class="loading-bottom"><span id="loadingMessage">Locating the last little bit…</span><span class="rollback-pill" id="rollbackPill" hidden>minor setback ↙</span></div></div>
<div class="continue-row"><p id="waitingHint">You're doing great at doing nothing.</p><button class="solid-button" id="waitContinue" disabled>Still waiting…</button></div><p class="stage-feedback"><span class="feedback-dot"></span><span id="waitFeedback">Estimated time remaining: yes.</span></p>
</section>
<section class="stage" id="stage3" aria-labelledby="stage3Title" hidden>
<div class="stage-heading"><div><h2 id="stage3Title" tabindex="-1">One last tiny formality.</h2><p class="stage-description">Simply close the notice. A classic, reliable interaction.</p></div><span class="stage-number">03 / 03</span></div>
<div class="close-board"><div class="window-notice" id="windowNotice"><div class="window-bar"><span>A NOTICE ABOUT THIS NOTICE</span><span class="window-dots" aria-hidden="true"><i></i><i></i><i></i></span></div><div class="window-content"><p id="closeNoticeText">This notice can be closed by clicking Close. We believe in you.</p><div class="close-buttons" id="closeButtons"></div></div></div><div class="notice-cleared" id="noticeCleared" hidden><svg viewBox="0 0 40 40" fill="none" aria-hidden="true"><circle cx="20" cy="20" r="17" fill="#dfed9c" stroke="#282b25" stroke-width="1.3"/><path d="m12 20 6 6 11-12" stroke="#282b25" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg><strong>Notice: no more notices.</strong><p>What a beautiful, empty little space.</p></div></div>
<div class="continue-row"><p id="closeHint">A very short goodbye. Allegedly.</p><button class="solid-button" id="finishButton" disabled>Close the notice first</button></div><p class="stage-feedback"><span class="feedback-dot"></span><span id="closeFeedback">There is currently one Close button. Cherish this moment.</span></p>
</section>
</section>
<div class="small-print"><span>Everything is <span class="one-pixel">one pixel</span> off. You're welcome.</span><span>YOUR PATIENCE IS APPRECIATED*</span></div>
</div>
<aside class="sidebar" aria-label="Your receipt and an entirely optional distraction">
<section class="receipt"><div class="receipt-top">MINOR INCONVENIENCE DEPARTMENT</div><h3>Your patience receipt</h3><div class="receipt-id">NO. 000001 · CUSTOMER: STILL HERE</div><div class="perforation"></div><div class="receipt-row"><span>Tasks survived</span><strong id="receiptTasks">0 / 3</strong></div><div class="receipt-row"><span>Time invested</span><strong id="receiptTime">00:00</strong></div><div class="receipt-row optional"><span>Sense of urgency</span><strong>unwarranted</strong></div><div class="receipt-row"><span>Actual cookies</span><strong>0</strong></div><div class="perforation"></div><div class="receipt-total"><span>TOTAL DUE</span><strong>one deep breath</strong></div><div class="stamp" id="receiptStamp">STILL WAITING</div><div class="receipt-bottom">Please keep for absolutely no reason.<div class="barcode" aria-hidden="true"></div></div></section>
<section class="cookie-stack" aria-label="Imaginary cookie notices"><div class="cookie-card"><div class="cookie-title"><svg class="cookie-icon" viewBox="0 0 42 42" fill="none" aria-hidden="true"><path d="M33 9a7 7 0 0 0 4 11 17 17 0 1 1-16-16 6 6 0 0 0 12 5Z" fill="#e6d8a8" stroke="#555c43" stroke-width="1.5"/><path d="m13 13 3 1-1 3-3-1zm10 8 3-1 1 3-3 1zm-10 7 2-1 1 3-2 1zm15 3 2-2 2 2-2 2z" fill="#72794f"/><circle cx="9" cy="22" r="1.5" fill="#72794f"/></svg><div><strong>We use cookies.</strong><p>They're completely imaginary.</p></div></div><div class="cookie-actions" id="cookieActions"><button id="declineCookies">No thanks</button><button id="acceptCookies">Fine, one cookie</button></div><div class="cookie-copies" id="cookieCopies"></div><div id="cookieAccepted" class="cookie-accepted" hidden>All sorted. Zero real cookies, zero tracking, one questionable metaphor.<br><button class="cookie-reset" id="cookieReset">Have second thoughts ↗</button></div><p class="cookie-note" id="cookieNote">Your preferences are almost important to us.</p></div></section>
</aside>
</div>
</div>
<section class="finish" id="finishScreen" aria-labelledby="finishTitle" hidden>
<div class="finish-card"><div class="finish-eyebrow"><span aria-hidden="true">✓</span> ALL UNNECESSARY DIFFICULTIES COMPLETED</div><div class="finish-main"><div><h1 id="finishTitle" tabindex="-1">Thank you for<br>your <em>patience.</em></h1><p class="finish-description" id="finishDescription">The button has settled down. The loading bar has made peace with itself. You can finally, officially stop trying.</p></div><svg class="finish-medal" viewBox="0 0 220 245" fill="none" role="img" aria-label="A reasonably deserved award for patience"><path d="m70 151-15 80 41-19 18 26 8-83M123 154l21 78 19-28 38 12-40-79" fill="#f2a38d" stroke="#282b25" stroke-width="1.5" stroke-linejoin="round"/><path d="m110 8 15 9 18-2 10 15 18 5 4 18 15 10-2 18 9 16-9 15 2 18-15 10-4 18-18 5-10 15-18-2-15 9-16-9-18 2-10-15-18-5-4-18-15-10 2-18-9-15 9-16-2-18 15-10 4-18 18-5 10-15 18 2z" fill="#dfed9c" stroke="#282b25" stroke-width="1.5" stroke-linejoin="round"/><circle cx="110" cy="96" r="65" stroke="#84915a" stroke-dasharray="2 4"/><path d="m104 44 3 7 8 1-6 5 1 8-6-4-7 4 2-8-6-5 8-1z" fill="#282b25"/><text x="110" y="108" text-anchor="middle" fill="#282b25" font-size="40" font-weight="700" font-family="Arial,sans-serif" letter-spacing="-3">A−</text><text x="110" y="129" text-anchor="middle" fill="#282b25" font-size="8" font-family="monospace" letter-spacing="2">FOR PATIENCE</text><text x="110" y="143" text-anchor="middle" fill="#727d55" font-size="6" font-family="monospace">(GRADING IS ARBITRARY)</text></svg></div><div class="finish-metrics"><div><span>Time well… spent</span><strong id="finishTime">00:00</strong></div><div><span>Buttons outsmarted</span><strong id="finishDodges">0 <small>of 3 possible dodges</small></strong></div><div><span>Cookies consumed</span><strong>0 <small>as promised</small></strong></div></div><div class="finish-actions"><button class="solid-button" id="goodButton">A button that just works ✓</button><button class="outline-button" id="replayButton">Do it again, for some reason ↺</button></div><p class="finish-punchline" id="finishPunchline" role="status"></p><div class="finish-micro">Your certificate is unofficial. Your relief is real. No follow-up survey. You're welcome.</div></div><div class="finish-note"><span aria-hidden="true">✳</span> You may now return to your regularly scheduled, slightly less annoying internet.</div>
</section>
</main>
<footer class="footer"><div class="footer-left"><svg viewBox="0 0 20 20" fill="none" aria-hidden="true"><path d="M10 2v16M2 10h16M4.4 4.4l11.2 11.2M4.4 15.6 15.6 4.4" stroke="currentColor" stroke-width="1.2"/></svg><span>Made with care. And a few questionable decisions.</span></div><div class="footer-right"><span class="sound-label">No sound. You're welcome.</span><button class="demo-button" id="demoButton">Watch the 20s demo ↗</button></div></footer>
</div>
<div class="sr-only" id="announcer" role="status" aria-live="polite" aria-atomic="true"></div>
<script>
(function(){
'use strict';
const $ = id => document.getElementById(id);
const media = window.matchMedia('(prefers-reduced-motion: reduce)');
let calm = media.matches;
let stage = 1, dodges = 0, tasks = 0, cookieCount = 0, cookieAccepted = false;
let closeGeneration = 0, closeRemaining = 1, closeSolved = false, finished = false;
let startedAt = Date.now(), endedAt = null, loaderFrame = 0, loaderToken = 0, suppressClickUntil = 0;
let demoActive = false, demoTimers = [], demoFrame = 0, demoStartedAt = 0;
const positions = [[75,31],[25,70],[70,71]];
const dodgeMessages = ['Just giving you a little personal space.','Oops. That spot felt more button-y.','Fine. You win. I’m staying right here.'];
const elapsed = () => Math.max(0, Math.floor(((endedAt || Date.now())-startedAt)/1000));
function formatTime(seconds){return String(Math.floor(seconds/60)).padStart(2,'0')+':'+String(seconds%60).padStart(2,'0');}
function announce(message){$('announcer').textContent = message;}
function focusHeading(id){if(!demoActive){const el=$(id);try{el.focus({preventScroll:true});}catch(e){el.focus();}}}
function refreshTasks(){ $('receiptTasks').textContent=tasks+' / 3'; }
function applyCalm(){document.documentElement.classList.toggle('calm',calm);$('motionButton').setAttribute('aria-pressed',String(calm));$('motionLabel').textContent=calm?'Wiggles: off':'Wiggles: on';$('motionButton').title=calm?'Turn gentle movement on':'Reduce movement';$('motionButton').setAttribute('aria-label',calm?'Turn gentle movement on':'Reduce movement');}
function setStage(next, shouldFocus){stage=next;for(let i=1;i<=3;i++){ $('stage'+i).hidden=i!==next;const step=$('step'+i);step.classList.toggle('active',i===next);step.classList.toggle('done',i<next);if(i===next)step.setAttribute('aria-current','step');else step.removeAttribute('aria-current');step.querySelector('span').textContent=i<next?'✓':String(i).padStart(2,'0'); }if(shouldFocus)focusHeading('stage'+next+'Title');}
function dodge(force){
 if(stage!==1||finished||dodges>=3)return false;
 if(calm&&!force){dodges=3;$('dodgeCount').textContent='03';$('dodgeButton').classList.add('settled');$('dodgeFeedback').textContent='Movement is off. This button has agreed to cooperate.';$('fieldCaption').textContent='A RARE MOMENT OF COOPERATION.';return false;}
 const pos=positions[dodges];dodges++;
 const field=$('dodgeField'),button=$('dodgeButton');
 const minX=button.offsetWidth/2+14,maxX=field.clientWidth-button.offsetWidth/2-14;
 const minY=button.offsetHeight/2+15,maxY=field.clientHeight-button.offsetHeight/2-15;
 button.style.left=Math.max(minX,Math.min(maxX,field.clientWidth*pos[0]/100))+'px';
 button.style.top=Math.max(minY,Math.min(maxY,field.clientHeight*pos[1]/100))+'px';
 $('dodgeCount').textContent=String(dodges).padStart(2,'0');$('dodgeFeedback').textContent=dodgeMessages[dodges-1];
 $('fieldCaption').textContent=dodges===3?'OKAY. ACTUALLY STAYING PUT.':'A SMALL CHANGE OF PLANS.';
 if(dodges===3)button.classList.add('settled');
 if(demoActive){$('demoCursor').style.left=button.style.left;$('demoCursor').style.top=button.style.top;}
 announce(dodgeMessages[dodges-1]);return true;
}
function completeButton(){if(stage!==1||finished)return;tasks=1;refreshTasks();setStage(2,true);startLoading();announce('Button acquired. Now for a very indecisive progress bar.');}
function loadingAt(t){if(t<2500)return Math.round(98*Math.pow(t/2500,.72));if(t<3300)return 99;if(t<3900)return Math.round(99-27*(t-3300)/600);if(t<5500)return Math.round(72+27*(t-3900)/1600);if(t<6100)return 99;if(t<6600)return Math.round(99-12*(t-6100)/500);return Math.min(100,Math.round(87+13*(t-6600)/1300));}
function stopLoading(){loaderToken++;if(loaderFrame)cancelAnimationFrame(loaderFrame);loaderFrame=0;}
function startLoading(){
 stopLoading();const token=loaderToken;const start=performance.now();let lastPaint=-100,lastPhase=-1;
 $('waitContinue').disabled=true;$('waitContinue').textContent='Still waiting…';$('rollbackPill').hidden=true;
 function tick(now){if(token!==loaderToken||finished||stage!==2)return;const t=now-start;
 if(t-lastPaint>=70||t>=7900){lastPaint=t;const value=loadingAt(t);$('progressNumber').textContent=value;$('progressFill').style.width=value+'%';$('progressTrack').setAttribute('aria-valuenow',String(value));
 let phase=t<2500?0:t<3300?1:t<3900?2:t<5500?3:t<6100?4:t<6600?5:t<7900?6:7;
 if(phase!==lastPhase){lastPhase=phase;const messages=['Locating the last little bit…','99%. Basically there.','The last 1% has stepped out.','Recovering our composure…','There it is. Any second now.','A small administrative wobble.','Trying a little optimism…','100%. Actually. We checked.'];$('loadingMessage').textContent=messages[phase];$('rollbackPill').hidden=phase!==2&&phase!==5;
 if(phase===2){$('waitFeedback').textContent='Progress is a journey. Occasionally backwards.';announce('99 percent. A minor setback. Back to 72.');}
 if(phase===5){$('waitFeedback').textContent='The loading bar would like to revise its earlier statement.';announce('A second small setback. It really will finish.');}}
 if(t>=7900){$('waitContinue').disabled=false;$('waitContinue').textContent='Finally. Continue →';$('waitingHint').textContent='Look at you. An accomplished waiter.';$('waitFeedback').textContent='All that waiting has really paid off. Probably.';tasks=2;refreshTasks();announce('Loading actually complete. You can continue.');loaderFrame=0;return;}}
 loaderFrame=requestAnimationFrame(tick);
 }loaderFrame=requestAnimationFrame(tick);
}
function beginClose(){if(finished)return;stopLoading();tasks=Math.max(tasks,2);refreshTasks();setStage(3,true);renderCloseButtons();announce('One last notice to close.');}
function renderCloseButtons(){
 const box=$('closeButtons');box.replaceChildren();
 for(let i=0;i<closeRemaining;i++){const button=document.createElement('button');button.type='button';button.className='close-clone';button.textContent='Close ×';button.setAttribute('aria-label','Close notice, button '+(i+1)+' of '+closeRemaining);button.addEventListener('click',()=>closeNotice(true));box.appendChild(button);}
}
function closeNotice(userAction){
 if(stage!==3||closeSolved||finished)return;
 if(closeGeneration<2){closeGeneration++;closeRemaining=closeGeneration+1;$('closeNoticeText').textContent=closeGeneration===1?'Closing this notice has generated two additional ways to close it. Convenient.':'Good news: you now have three Close buttons. That’s choice.';$('closeFeedback').textContent=closeGeneration===1?'One door closes. Two little doors open.':'We have reached peak Close. They’ll disappear now. Promise.';}
 else{closeRemaining--;$('closeFeedback').textContent=closeRemaining?('Only '+closeRemaining+' Close button'+(closeRemaining===1?'':'s')+' left. We are actually making progress.'):'You did it. The goodbye has finally said goodbye.';}
 renderCloseButtons();
 if(closeRemaining===0){closeSolved=true;tasks=3;refreshTasks();$('windowNotice').hidden=true;$('noticeCleared').hidden=false;$('finishButton').disabled=false;$('finishButton').textContent='Collect my thank you →';$('closeHint').textContent='There really is a finish line.';announce('All notices closed. Your thank you is ready.');if(userAction&&!demoActive)$('finishButton').focus({preventScroll:true});}
 else{announce($('closeFeedback').textContent);if(userAction&&!demoActive){const first=$('closeButtons').querySelector('button');if(first)first.focus({preventScroll:true});}}
}
function renderCookies(){
 $('cookieCopies').replaceChildren();$('cookieActions').hidden=cookieAccepted;$('cookieAccepted').hidden=!cookieAccepted;
 if(cookieAccepted){$('cookieNote').textContent='Thank you for your imaginary consent.';return;}
 for(let i=0;i<cookieCount;i++){const copy=document.createElement('div');copy.className='cookie-copy';const text=document.createElement('p');const lines=['A notice about your cookie preferences.','A notice about the previous notice.','We noticed you noticing the notices.'];text.textContent=lines[i];const button=document.createElement('button');button.type='button';button.textContent='Nope';button.setAttribute('aria-label','Decline additional imaginary cookie notice '+(i+1));button.addEventListener('click',()=>multiplyCookies(button));copy.append(text,button);$('cookieCopies').appendChild(copy);}
 $('cookieNote').textContent=cookieCount===0?'Your preferences are almost important to us.':cookieCount<3?(cookieCount+1)+' notices. Still zero actual cookies.':'Maximum bureaucracy reached. “Fine” clears them all.';
}
function multiplyCookies(source){
 if(cookieAccepted||finished)return;
 const hadCopyFocus=source&&source!==$('declineCookies');if(cookieCount<3){cookieCount++;renderCookies();announce('Your refusal has produced another imaginary cookie notice. '+(cookieCount+1)+' notices in total.');if(hadCopyFocus&&!demoActive){const buttons=$('cookieCopies').querySelectorAll('button');if(buttons.length)buttons[buttons.length-1].focus({preventScroll:true});}}
 else{$('cookieNote').textContent='Your “no” is officially heard. “Fine” clears this paperwork.';announce('No more notices will be created. Accept imaginary cookies to clear them.');}
}
function acceptCookies(){cookieAccepted=true;cookieCount=0;renderCookies();announce('Imaginary cookies accepted. No storage or tracking was used.');if(!demoActive)$('cookieReset').focus({preventScroll:true});}
function resetCookies(){cookieAccepted=false;cookieCount=0;renderCookies();}
function showFinish(skipped){
 if(finished)return;stopLoading();finished=true;endedAt=Date.now();$('experience').hidden=true;$('finishScreen').hidden=false;$('exitLabel').textContent='Start again';$('finishTime').textContent=formatTime(elapsed());$('finishDodges').replaceChildren(document.createTextNode(String(dodges)+' '));const small=document.createElement('small');small.textContent='of 3 possible dodges';$('finishDodges').appendChild(small);$('finishDescription').textContent=skipped?'You found the sensible exit. An excellent use of your time. Patience is a virtue; knowing when to leave is also a virtue.':'The button has settled down. The loading bar has made peace with itself. You can finally, officially stop trying.';$('finishPunchline').textContent='';$('goodButton').textContent='A button that just works ✓';$('receiptStamp').textContent='PATIENCE VERIFIED';focusHeading('finishTitle');announce('Thank you for your patience. You made it to the real finish line.');if(!demoActive){try{window.scrollTo({top:0,behavior:calm?'instant':'smooth'});}catch(e){window.scrollTo(0,0);}}
}
function resetExperience(){
 stopLoading();stage=1;dodges=0;tasks=0;finished=false;startedAt=Date.now();endedAt=null;closeGeneration=0;closeRemaining=1;closeSolved=false;suppressClickUntil=0;
 $('experience').hidden=false;$('finishScreen').hidden=true;$('exitLabel').textContent='The sensible exit';$('dodgeButton').style.left='50%';$('dodgeButton').style.top='51%';$('dodgeButton').classList.remove('settled');$('dodgeCount').textContent='00';$('dodgeFeedback').textContent='It’s a very normal, very cooperative button.';$('fieldCaption').textContent='DEFINITELY STAYING PUT.';
 $('progressNumber').textContent='0';$('progressFill').style.width='0%';$('progressTrack').setAttribute('aria-valuenow','0');$('loadingMessage').textContent='Locating the last little bit…';$('rollbackPill').hidden=true;$('waitContinue').disabled=true;$('waitContinue').textContent='Still waiting…';$('waitingHint').textContent='You’re doing great at doing nothing.';$('waitFeedback').textContent='Estimated time remaining: yes.';
 $('windowNotice').hidden=false;$('noticeCleared').hidden=true;$('closeNoticeText').textContent='This notice can be closed by clicking Close. We believe in you.';$('closeHint').textContent='A very short goodbye. Allegedly.';$('closeFeedback').textContent='There is currently one Close button. Cherish this moment.';$('finishButton').disabled=true;$('finishButton').textContent='Close the notice first';$('receiptStamp').textContent='STILL WAITING';$('receiptTime').textContent='00:00';refreshTasks();setStage(1,false);renderCloseButtons();resetCookies();$('demoCursor').style.left='50%';$('demoCursor').style.top='51%';
}
function stopDemo(){
 if(!demoActive)return;demoActive=false;demoTimers.forEach(clearTimeout);demoTimers=[];cancelAnimationFrame(demoFrame);demoFrame=0;$('demoBanner').hidden=true;$('demoCursor').hidden=true;$('demoButton').textContent='Watch the 20s demo ↗';announce('Autopilot off. You’re in charge now.');
}
function demoAfter(time,fn){demoTimers.push(setTimeout(()=>{if(demoActive)fn();},time));}
function startDemo(){
 stopDemo();resetExperience();demoActive=true;demoStartedAt=performance.now();$('demoBanner').hidden=false;$('demoCursor').hidden=false;$('demoButton').textContent='Restart the demo ↺';$('demoProgress').style.width='0%';
 demoAfter(700,()=>dodge(true));demoAfter(1600,()=>dodge(true));demoAfter(2500,()=>dodge(true));demoAfter(3400,()=>{$('demoCursor').hidden=true;completeButton();});
 demoAfter(4800,()=>multiplyCookies());demoAfter(5600,()=>multiplyCookies());demoAfter(6400,()=>multiplyCookies());demoAfter(10100,()=>acceptCookies());demoAfter(11500,()=>beginClose());
 demoAfter(12300,()=>closeNotice(false));demoAfter(13200,()=>closeNotice(false));demoAfter(14100,()=>closeNotice(false));demoAfter(15000,()=>closeNotice(false));demoAfter(15900,()=>closeNotice(false));demoAfter(17100,()=>showFinish(false));demoAfter(20000,()=>startDemo());
 function demoTick(now){if(!demoActive)return;$('demoProgress').style.width=Math.min(100,(now-demoStartedAt)/200)+'%';demoFrame=requestAnimationFrame(demoTick);}demoFrame=requestAnimationFrame(demoTick);
}
$('dodgeButton').addEventListener('pointerenter',event=>{if(event.pointerType==='mouse'&&!demoActive)dodge(false);});
$('dodgeButton').addEventListener('pointerdown',event=>{if(event.pointerType!=='mouse'&&event.pointerType!==''&&dodges<3&&!calm){if(dodge(false)){suppressClickUntil=performance.now()+550;event.preventDefault();}}});
$('dodgeButton').addEventListener('click',()=>{if(performance.now()<suppressClickUntil)return;completeButton();});
$('waitContinue').addEventListener('click',()=>{if(!$('waitContinue').disabled)beginClose();});
$('finishButton').addEventListener('click',()=>{if(closeSolved)showFinish(false);});
$('declineCookies').addEventListener('click',()=>multiplyCookies($('declineCookies')));
$('acceptCookies').addEventListener('click',acceptCookies);
$('cookieReset').addEventListener('click',()=>{resetCookies();$('declineCookies').focus({preventScroll:true});});
$('motionButton').addEventListener('click',()=>{calm=!calm;applyCalm();announce(calm?'Gentle movement is off. Buttons will cooperate.':'Gentle movement is on.');});
$('exitButton').addEventListener('click',()=>{stopDemo();if(finished){resetExperience();focusHeading('stage1Title');}else showFinish(true);});
$('brandButton').addEventListener('click',()=>{stopDemo();resetExperience();focusHeading('stage1Title');});
$('replayButton').addEventListener('click',()=>{stopDemo();resetExperience();focusHeading('stage1Title');try{window.scrollTo({top:0,behavior:calm?'instant':'smooth'});}catch(e){window.scrollTo(0,0);}});
$('goodButton').addEventListener('click',()=>{$('goodButton').textContent='It worked. First try. ✓';$('finishPunchline').textContent='No catch. No extra steps. Strange feeling, isn’t it?';});
$('demoButton').addEventListener('click',startDemo);$('stopDemoButton').addEventListener('click',stopDemo);
function takeOver(event){if(event.isTrusted&&demoActive)stopDemo();}
window.addEventListener('pointerdown',takeOver,{capture:true,passive:true});window.addEventListener('touchstart',takeOver,{capture:true,passive:true});window.addEventListener('keydown',takeOver,{capture:true});
window.addEventListener('hashchange',()=>{if(location.hash==='#demo')startDemo();else stopDemo();});
setInterval(()=>{if(!finished)$('receiptTime').textContent=formatTime(elapsed());},1000);
applyCalm();resetExperience();if(location.hash==='#demo')startDemo();
})();
</script>
</body>
</html>