Back to the app
The code
The Most Uncomfortable Web Page by GPT-6.1 Terra
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.)<!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="#f6f1e5">
<title>The Department of Mild Inconvenience</title>
<style>
:root { --ink:#252a2b; --paper:#f6f1e5; --cream:#fffdf6; --coral:#f47c5e; --mint:#d9e6d9; --yellow:#f2dd91; --line:#2c302e; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:Arial, Helvetica, sans-serif; -webkit-font-smoothing:antialiased; }
button { font:inherit; color:inherit; cursor:pointer; }
button:focus-visible { outline:3px solid #376e9e; outline-offset:4px; }
.shell { max-width:1320px; margin:0 auto; padding:0 46px; }
.site-header { min-height:89px; display:flex; align-items:center; justify-content:space-between; gap:20px; border-bottom:1.5px solid var(--line); }
.brand { display:flex; align-items:center; gap:11px; font-size:10px; line-height:1.2; font-weight:900; letter-spacing:.1em; }
.brand-mark { display:grid; place-items:center; flex:none; width:42px; height:42px; background:var(--ink); color:var(--paper); font-family:Georgia, serif; font-size:25px; line-height:1; transform:rotate(-4deg); }
.header-right { display:flex; align-items:center; gap:28px; }
.header-note, .eyebrow, .micro, .card-kicker, .ticket-kicker, .footer, .demo-chip { font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.header-note { color:#686c65; }
.official { border:1.5px solid var(--ink); border-radius:99px; padding:10px 14px; font-size:9px; font-weight:900; letter-spacing:.09em; transform:rotate(2deg); white-space:nowrap; }
.official span { display:inline-block; width:7px; height:7px; border-radius:50%; background:#7eac83; margin-right:7px; }
.demo-chip { background:var(--yellow); border:1px solid var(--ink); padding:8px 10px; text-align:center; line-height:1.4; }
.hero { padding:48px 0 37px; }
.eyebrow { display:flex; align-items:center; gap:9px; color:#5d625c; }
.eyebrow .star { color:#e46c50; font-size:19px; line-height:1; }
.hero-body { display:flex; align-items:end; justify-content:space-between; gap:35px; margin-top:18px; }
h1 { margin:0; max-width:840px; font-family:Georgia, 'Times New Roman', serif; font-size:clamp(60px, 7.9vw, 108px); line-height:.9; letter-spacing:-.065em; font-weight:700; }
h1 em { position:relative; color:#e66c50; font-weight:400; letter-spacing:-.075em; }
.hero-copy { max-width:250px; flex:none; padding:0 4px 5px 0; }
.hero-copy p { margin:9px 0 14px; font-size:14px; line-height:1.55; color:#515750; }
.hero-copy .arrow { font-size:29px; line-height:1; }
.hero-copy .micro { font-size:9px; color:#81837a; }
.content-grid { display:grid; grid-template-columns:minmax(0, 1.85fr) minmax(255px, .9fr); gap:28px; align-items:start; }
.challenge { min-height:333px; background:var(--cream); border:1.5px solid var(--line); box-shadow:6px 6px 0 var(--ink); position:relative; }
.card-head { min-height:49px; padding:0 23px; border-bottom:1px solid #c8c8bb; display:flex; justify-content:space-between; gap:12px; align-items:center; }
.card-kicker { color:#64685f; font-size:9px; }
.card-kicker b { color:var(--ink); }
.card-index { font-size:10px; font-weight:900; letter-spacing:.1em; white-space:nowrap; }
.card-content { padding:28px 32px 24px; }
.card-content h2 { margin:0 0 10px; font-family:Georgia, 'Times New Roman', serif; font-size:clamp(27px, 3vw, 38px); line-height:1.12; letter-spacing:-.035em; }
.card-content p { max-width:540px; margin:0; color:#62665f; font-size:14px; line-height:1.55; }
.dodge-zone { position:relative; display:flex; justify-content:center; align-items:center; min-height:105px; margin:13px 0 0; border-bottom:1px solid #e0dfd3; }
.primary { min-height:55px; border:1.5px solid var(--ink); background:var(--coral); box-shadow:3px 3px 0 var(--ink); padding:13px 20px; display:inline-flex; justify-content:center; align-items:center; gap:15px; font-weight:800; font-size:14px; line-height:1.2; transition:transform .38s ease, box-shadow .2s ease; }
.primary:active { box-shadow:1px 1px 0 var(--ink); }
.dodge-button { width:min(76%, 290px); min-width:170px; transform:translateX(var(--shift, 0px)) rotate(-1deg); touch-action:manipulation; }
.button-arrow { margin-left:auto; font-size:19px; line-height:1; }
.card-foot { min-height:43px; padding-top:14px; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.hint { display:flex; align-items:center; gap:8px; color:#74786e; font-size:11px; line-height:1.4; }
.hint-icon { font-size:18px; color:#e77c5e; line-height:1; }
.foot-code { font-size:9px; font-weight:800; letter-spacing:.1em; color:#9b9d91; white-space:nowrap; }
.rail { display:grid; gap:19px; }
.ticket { position:relative; border:1.5px solid var(--line); background:var(--mint); padding:22px 24px 20px; transform:rotate(1deg); }
.ticket:before, .ticket:after { content:''; position:absolute; top:145px; width:13px; height:24px; background:var(--paper); border:1.5px solid var(--line); }
.ticket:before { left:-2px; border-left:0; border-radius:0 20px 20px 0; }
.ticket:after { right:-2px; border-right:0; border-radius:20px 0 0 20px; }
.ticket-top { display:flex; justify-content:space-between; align-items:start; gap:10px; }
.ticket-kicker { line-height:1.6; }
.ticket-symbol { font-family:Georgia, serif; font-size:32px; line-height:.7; transform:rotate(-12deg); }
.queue-number { font-family:Georgia, 'Times New Roman', serif; font-size:clamp(56px, 6vw, 78px); letter-spacing:-.08em; font-weight:700; line-height:1; margin:11px 0 12px; }
.queue-label { font-size:12px; color:#555e56; }
.ticket-rule { border:0; border-top:1.5px dashed #8a9a8a; margin:25px -4px 18px; }
.rail-row { display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:10px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.rail-track, .progress-track { overflow:hidden; border:1px solid var(--ink); background:rgba(255,255,255,.56); }
.rail-track { height:10px; margin-top:11px; }
.rail-fill { height:100%; width:33%; background:var(--ink); transition:width .45s ease; }
.ticket-small { color:#657167; font-size:11px; line-height:1.4; margin:12px 0 0; }
.aside-note { display:flex; align-items:flex-start; gap:13px; padding:2px 7px; color:#686b63; font-size:12px; line-height:1.45; }
.aside-note .asterisk { font-family:Georgia, serif; color:#e66c50; font-size:33px; line-height:.7; }
.aside-note p { margin:0; }
.aside-note b { color:var(--ink); }
.footer { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-top:43px; padding:19px 0 26px; border-top:1px solid #c9c8bb; color:#85877c; font-size:9px; line-height:1.5; }
.footer strong { color:#5f625b; }
.progress-box { margin-top:23px; }
.progress-line { display:flex; justify-content:space-between; align-items:end; gap:15px; margin-bottom:9px; }
.progress-line span:first-child { font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.progress-number { font-family:Georgia, serif; font-size:29px; font-weight:700; line-height:1; }
.progress-track { height:19px; }
.progress-fill { width:0; height:100%; background:var(--coral); transition:width .25s ease; }
.progress-detail { min-height:23px; margin-top:9px !important; font-size:12px !important; }
.stage-action { margin-top:12px; }
.notice-box { margin-top:19px; padding:15px; border:1px solid var(--ink); background:#f5f1e3; transform:rotate(-.35deg); }
.notice-box p { font-size:13px; margin-bottom:12px; }
.secondary { min-height:45px; padding:10px 14px; border:1.5px solid var(--ink); background:var(--cream); font-weight:800; font-size:12px; line-height:1.3; }
.secondary:disabled { cursor:default; color:#76796f; border-color:#a4a79b; }
.extra-close { margin-top:12px; padding-top:12px; border-top:1px dashed #a5a79b; }
.extra-close p { margin-bottom:10px; }
.finish-layout { display:flex; align-items:flex-start; gap:20px; }
.seal { flex:none; width:64px; height:64px; display:grid; place-items:center; border:1.5px solid var(--ink); border-radius:50%; background:var(--yellow); font-size:30px; transform:rotate(-9deg); }
.finish-layout p { max-width:500px; }
.cookie-root { position:fixed; right:23px; bottom:22px; z-index:20; width:min(355px, calc(100vw - 42px)); }
.cookie-back { position:absolute; inset:8px -7px -7px 8px; background:var(--yellow); border:1.5px solid var(--ink); transform:rotate(2deg); }
.cookie { position:relative; background:#fffdf6; border:1.5px solid var(--ink); box-shadow:4px 4px 0 var(--ink); padding:15px 16px 14px; }
.cookie-top { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.cookie-title { font-size:10px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.cookie-close { width:37px; height:37px; flex:none; display:grid; place-items:center; border:1px solid var(--ink); background:transparent; font-size:19px; line-height:1; }
.cookie p { margin:7px 0 11px; font-size:12px; color:#63665d; line-height:1.45; }
.cookie-actions { display:flex; gap:8px; flex-wrap:wrap; }
.cookie-actions button { min-height:43px; flex:1 1 110px; border:1px solid var(--ink); padding:8px 10px; background:var(--yellow); font-size:11px; font-weight:800; }
.cookie-actions button + button { background:var(--cream); }
@media (max-width:760px) {
.shell { padding:0 20px; }
.site-header { min-height:75px; }
.header-right { gap:10px; }
.header-note { display:none; }
.official { font-size:8px; padding:9px; }
.hero { padding:36px 0 29px; }
.hero-body { display:block; margin-top:18px; }
h1 { font-size:clamp(49px, 11vw, 77px); }
.hero-copy { max-width:410px; margin-top:21px; display:flex; align-items:flex-start; gap:11px; }
.hero-copy p { margin:0; font-size:13px; }
.hero-copy .micro { display:none; }
.hero-copy .arrow { font-size:25px; }
.content-grid { grid-template-columns:1fr; gap:23px; }
.challenge { min-height:0; box-shadow:4px 4px 0 var(--ink); }
.card-content { padding:25px 22px 21px; }
.card-head { padding:0 20px; }
.ticket { transform:rotate(.5deg); }
.ticket:before, .ticket:after { top:143px; }
.rail { gap:15px; }
.footer { margin-top:31px; }
.cookie-root { right:16px; bottom:16px; width:min(355px, calc(100vw - 38px)); }
}
@media (max-width:370px) {
.shell { padding:0 15px; }
h1 { font-size:47px; }
.official { display:none; }
.card-content { padding-left:17px; padding-right:17px; }
.footer { align-items:flex-start; flex-direction:column; gap:5px; }
}
@media (prefers-reduced-motion:reduce) { *, *:before, *:after { scroll-behavior:auto !important; transition-duration:.01ms !important; } }
</style>
</head>
<body>
<div class="shell">
<header class="site-header">
<div class="brand" aria-label="Department of Mild Inconvenience">
<span class="brand-mark" aria-hidden="true">✳</span>
<span>DEPARTMENT OF<br>MILD INCONVENIENCE</span>
</div>
<div class="header-right">
<span class="demo-chip" id="demo-chip" hidden>Demo playing · touch to take over</span>
<span class="header-note">An unnecessarily official website</span>
<span class="official"><span></span>HERE TO HELP, SORT OF</span>
</div>
</header>
<main>
<section class="hero" aria-labelledby="page-title">
<div class="eyebrow"><span class="star" aria-hidden="true">✳</span> A VERY OFFICIAL EXPERIENCE <span aria-hidden="true"> / </span> ISSUE NO. 01</div>
<div class="hero-body">
<h1 id="page-title">A little<br><em>inconvenient.</em></h1>
<div class="hero-copy">
<span class="arrow" aria-hidden="true">↘</span>
<div><p>A tiny obstacle course for your patience. Everything is under control, give or take.</p><span class="micro">Estimated time: eventually</span></div>
</div>
</div>
</section>
<div class="content-grid">
<section id="challenge" class="challenge" aria-label="The patience test" aria-live="polite">
<div class="card-content"><h2>One moment, please.</h2><p>This experience needs JavaScript to run.</p></div>
</section>
<aside class="rail" aria-label="Your place in line">
<div class="ticket">
<div class="ticket-top"><div class="ticket-kicker">YOUR PLACE<br>IN LINE</div><span class="ticket-symbol" aria-hidden="true">✳</span></div>
<div class="queue-number" id="ticket-number">0001</div>
<div class="queue-label" id="queue-label">Now serving: almost you.</div>
<hr class="ticket-rule">
<div class="rail-row"><span>Patience journey</span><span id="rail-stage">01 / 03</span></div>
<div class="rail-track" aria-hidden="true"><div class="rail-fill" id="rail-fill"></div></div>
<p class="ticket-small" id="rail-state">Please remain pleasantly available.</p>
</div>
<div class="aside-note"><span class="asterisk" aria-hidden="true">*</span><p><b>A small note.</b> Your time is very important to us. That's why we're spending so much of it.</p></div>
</aside>
</div>
</main>
<footer class="footer"><span>© THE DEPARTMENT OF MILD INCONVENIENCE</span><span><strong>MADE WITH CARE</strong> & A SLIGHT LACK OF PRECISION</span></footer>
</div>
<div id="cookie-root" class="cookie-root" aria-live="polite"></div>
<script>
(() => {
'use strict';
const challenge = document.getElementById('challenge');
const cookieRoot = document.getElementById('cookie-root');
const demoChip = document.getElementById('demo-chip');
const ticketNumber = document.getElementById('ticket-number');
const queueLabel = document.getElementById('queue-label');
const railStage = document.getElementById('rail-stage');
const railFill = document.getElementById('rail-fill');
const railState = document.getElementById('rail-state');
let stage = 1;
let dodges = 0;
let swallowClick = false;
let progressInterval = null;
let progressPause = null;
let demoRunning = false;
let demoTimers = [];
function stopProgress() {
clearInterval(progressInterval);
clearTimeout(progressPause);
progressInterval = null;
progressPause = null;
}
function setRail(step) {
const numbers = ['0001', '0002', '0003', 'YOU!'];
const messages = ['Please remain pleasantly available.', 'Calculating a very reasonable amount of progress.', 'One last completely necessary formality.', 'Your patience has been officially appreciated.'];
ticketNumber.textContent = numbers[step - 1];
queueLabel.textContent = step === 4 ? 'Now serving: definitely you.' : 'Now serving: almost you.';
railStage.textContent = step === 4 ? '03 / 03' : `0${step} / 03`;
railFill.style.width = [33, 66, 99, 100][step - 1] + '%';
railState.textContent = messages[step - 1];
}
function cardHead(label, index) {
return `<div class="card-head"><span class="card-kicker">THE PATIENCE TEST <b> / ${label}</b></span><span class="card-index">${index} / 03</span></div>`;
}
function showStart() {
stopProgress();
stage = 1;
dodges = 0;
swallowClick = false;
setRail(1);
challenge.innerHTML = cardHead('THE FIRST HURDLE', '01') + `
<div class="card-content">
<h2>Let's get this over with.</h2>
<p>All you have to do is press the button. We've made it almost perfectly easy.</p>
<div class="dodge-zone" id="dodge-zone">
<button class="primary dodge-button" type="button" data-action="dodge">Continue, probably <span class="button-arrow" aria-hidden="true">↗</span></button>
</div>
<div class="card-foot"><span class="hint"><span class="hint-icon" aria-hidden="true">☺</span><span id="dodge-hint">A little persistence goes a long way.</span></span><span class="foot-code">FORM 01-A</span></div>
</div>`;
}
function dodge() {
if (stage !== 1 || dodges >= 2) return;
const button = challenge.querySelector('[data-action="dodge"]');
const zone = document.getElementById('dodge-zone');
if (!button || !zone) return;
dodges += 1;
const distance = Math.max(0, Math.floor((zone.clientWidth - button.offsetWidth) / 2) - 6);
button.style.setProperty('--shift', (dodges === 1 ? distance : -distance) + 'px');
document.getElementById('dodge-hint').textContent = dodges === 1 ? 'Oh. Try that one more time.' : 'Fine, it promises to stay put now.';
if (dodges === 2) button.innerHTML = `Okay, I'll stay put <span class="button-arrow" aria-hidden="true">↗</span>`;
}
function showProgress() {
if (stage !== 1) return;
stopProgress();
stage = 2;
setRail(2);
challenge.innerHTML = cardHead('THE WAITING PART', '02') + `
<div class="card-content">
<h2>You're making progress. Ish.</h2>
<p>We're carefully processing your patience. Please enjoy this entirely necessary wait.</p>
<div class="progress-box">
<div class="progress-line"><span>Processing patience</span><span class="progress-number" id="progress-number">0%</span></div>
<div class="progress-track" id="progress-track" role="progressbar" aria-label="Processing patience" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-fill" id="progress-fill"></div></div>
<p class="progress-detail" id="progress-detail">Doing some very important calculating...</p>
<button class="primary stage-action" type="button" data-action="next" id="progress-next" hidden>Continue to the final step <span aria-hidden="true">↗</span></button>
</div>
</div>`;
let amount = 0;
let backedUp = false;
const paint = () => {
const fill = document.getElementById('progress-fill');
const number = document.getElementById('progress-number');
const track = document.getElementById('progress-track');
if (!fill || !number || !track) return;
fill.style.width = amount + '%';
number.textContent = amount + '%';
track.setAttribute('aria-valuenow', String(amount));
};
const tick = () => {
if (stage !== 2) { stopProgress(); return; }
if (!backedUp && amount >= 99) {
clearInterval(progressInterval);
backedUp = true;
amount = 87;
paint();
document.getElementById('progress-detail').textContent = 'Just checking that you were paying attention.';
progressPause = setTimeout(() => { if (stage === 2) progressInterval = setInterval(tick, 100); }, 500);
return;
}
amount = Math.min(backedUp ? 100 : 99, amount + 4);
paint();
if (amount === 100) {
stopProgress();
document.getElementById('progress-detail').textContent = 'Done! That took almost exactly as long as it took.';
document.getElementById('progress-next').hidden = false;
}
};
progressInterval = setInterval(tick, 100);
}
function showClose() {
if (stage !== 2) return;
stopProgress();
stage = 3;
setRail(3);
challenge.innerHTML = cardHead('ONE LAST THING', '03') + `
<div class="card-content">
<h2>Just a tiny formality.</h2>
<p>To finish, please close the following very important notice.</p>
<div class="notice-box">
<p><b>Important notice:</b> You have almost finished a thing.</p>
<button class="secondary" type="button" data-action="close">Close this notice ×</button>
<div id="extra-close"></div>
</div>
</div>`;
}
function spawnClose() {
if (stage !== 3) return;
const first = challenge.querySelector('[data-action="close"]');
const extra = document.getElementById('extra-close');
if (!first || !extra || first.disabled) return;
first.disabled = true;
first.textContent = 'Closed, apparently ✓';
extra.className = 'extra-close';
extra.innerHTML = `<p>The close button would also like to be closed.</p><button class="primary" type="button" data-action="finish">Close this too ↗</button>`;
}
function showFinish() {
if (stage !== 3) return;
stopProgress();
stage = 4;
setRail(4);
challenge.innerHTML = cardHead('OFFICIALLY COMPLETE', '03') + `
<div class="card-content">
<div class="finish-layout"><div class="seal" aria-hidden="true">✓</div><div><h2>Thank you for your patience.</h2><p>You made it through. Please accept this extremely unofficial certificate of mild perseverance.</p></div></div>
<button class="secondary stage-action" type="button" data-action="restart">Do it all again, for some reason ↗</button>
<div class="card-foot"><span class="hint"><span class="hint-icon" aria-hidden="true">✳</span> You were very good at waiting.</span><span class="foot-code">FORM 03-Z</span></div>
</div>`;
}
function showCookie() {
cookieRoot.innerHTML = `<div class="cookie"><div class="cookie-top"><span class="cookie-title">A little cookie notice</span><button class="cookie-close" type="button" data-cookie="more" aria-label="Close cookie notice">×</button></div><p>We use imaginary cookies to make this page a little more complicated. No actual cookies are used.</p><div class="cookie-actions"><button type="button" data-cookie="more">Sounds fine</button><button type="button" data-cookie="more">I'd rather not</button></div></div>`;
}
function multiplyCookie() {
if (!cookieRoot.firstElementChild) return;
cookieRoot.innerHTML = `<div class="cookie-back" aria-hidden="true"></div><div class="cookie"><div class="cookie-top"><span class="cookie-title">One more cookie notice</span><button class="cookie-close" type="button" data-cookie="done" aria-label="Close both cookie notices">×</button></div><p>Your imaginary cookie comes with an imaginary receipt. Thanks for bearing with us.</p><div class="cookie-actions"><button type="button" data-cookie="done">Got it, finally</button></div></div>`;
}
function dismissCookie() { cookieRoot.innerHTML = ''; }
challenge.addEventListener('pointerdown', (event) => {
const button = event.target.closest('[data-action="dodge"]');
if (!button) return;
swallowClick = false;
if (stage === 1 && dodges < 2) {
event.preventDefault();
swallowClick = true;
dodge();
}
});
challenge.addEventListener('click', (event) => {
const button = event.target.closest('button[data-action]');
if (!button) return;
const action = button.dataset.action;
if (action === 'dodge') {
if (event.detail !== 0 && swallowClick) { swallowClick = false; return; }
swallowClick = false;
if (dodges < 2) dodge(); else showProgress();
} else if (action === 'next') showClose();
else if (action === 'close') spawnClose();
else if (action === 'finish') showFinish();
else if (action === 'restart') { showStart(); showCookie(); }
});
cookieRoot.addEventListener('click', (event) => {
const button = event.target.closest('button[data-cookie]');
if (!button) return;
if (button.dataset.cookie === 'more') multiplyCookie();
else dismissCookie();
});
function cancelDemo() {
if (!demoRunning) return;
demoRunning = false;
demoTimers.forEach(clearTimeout);
demoTimers = [];
demoChip.hidden = true;
}
document.addEventListener('pointerdown', (event) => { if (event.isTrusted) cancelDemo(); }, {capture:true, passive:true});
document.addEventListener('touchstart', (event) => { if (event.isTrusted) cancelDemo(); }, {capture:true, passive:true});
document.addEventListener('keydown', (event) => { if (event.isTrusted) cancelDemo(); }, true);
function demoAfter(delay, callback) {
demoTimers.push(setTimeout(() => { if (demoRunning) callback(); }, delay));
}
function demoCycle() {
if (!demoRunning) return;
demoTimers = [];
showStart();
showCookie();
demoAfter(1000, multiplyCookie);
demoAfter(2500, dismissCookie);
demoAfter(3500, dodge);
demoAfter(4900, dodge);
demoAfter(6200, showProgress);
demoAfter(10500, showClose);
demoAfter(12500, spawnClose);
demoAfter(14500, showFinish);
demoAfter(17500, () => { showStart(); showCookie(); });
demoAfter(20000, demoCycle);
}
showStart();
showCookie();
if (location.hash === '#demo') {
demoRunning = true;
demoChip.hidden = false;
demoCycle();
}
})();
</script>
</body>
</html>
