Exploding like buttonOne-line
GPT-6 Luna
by OpenAIReasoningClean
Running live in a sandboxed frame. Click inside it before using the keyboard.
How it went
- Total time
- 22.2 s
- Cost
- $0.0016
- Output tokens
- 3,031
- Spent thinking
- 0 tokens
- Speed
- 144.8 tok/s
- Console errors
- 0
- First token after
- 1.2 s
- First visible text after
- 1.2 s
- Prompt tokens
- 356
- Code size
- 8.5 KB
- Finish reason
- stop
- Served by
- OpenAI
- Model id
openai/gpt-6-luna- Reasoning sent
{"effort":"none"}- Max output
- 64,000 tokens
- Generated
- Nov 10, 2026
What it was asked
The prompt
“a "like" button in pure CSS, no JavaScript, that does a crazy animation when you click it”
System prompt, sent with every prompt
You are generating a self-contained web demo. It will be rendered automatically in a sandboxed iframe and compared side by side with the output of other AI models given the exact same task. Output rules: - Reply with exactly ONE fenced code block containing the complete file: ```html (or ```svg when the task asks for an SVG). No text before or after the code block. - Everything must be inline: CSS in <style>, JavaScript in <script>. No external files, images, fonts or network requests, except the CDN URLs explicitly allowed by the task. - Do not use localStorage, sessionStorage, cookies, IndexedDB, alert(), confirm(), prompt() or window.open(): they are blocked in the sandbox and will throw. - The page must look right in a 1280×800 viewport and adapt gracefully down to 375px wide. No horizontal scrollbar. - Something meaningful must be visible on first paint: a screenshot is taken automatically about 3 seconds after load, without any interaction. - Everything that makes the demo interesting must be visible within the first seconds: nothing hidden behind a high score, a later level or a long play session. - Games must start in a self-playing demo mode (a simple AI plays) behind a "Click or press a key to start" message, so the game can be judged in action without playing. - The iframe only receives keyboard events after the user clicks it: if the demo uses the keyboard, display a clear "Click or press a key to start" message. - The code must run with zero errors in the console of the latest Chrome.
Code run-1.html · 275 lines
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Like Button — Pure CSS</title>
<style>
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
overflow: hidden;
color: #fff;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background:
radial-gradient(ellipse at 50% 42%, rgba(69, 34, 101, .48), transparent 40%),
radial-gradient(ellipse at 16% 85%, rgba(16, 105, 132, .22), transparent 38%),
#0b0a12;
}
.stage {
width: min(100%, 760px);
padding: 48px 24px;
text-align: center;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 9px;
margin-bottom: 18px;
color: #a99cb8;
font-size: 11px;
font-weight: 750;
letter-spacing: .2em;
text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after {
content: "";
width: 22px;
height: 1px;
background: #64546f;
}
h1 {
margin: 0;
font-size: clamp(34px, 7vw, 62px);
letter-spacing: -.055em;
line-height: 1;
font-weight: 800;
}
.sub {
margin: 17px 0 0;
color: #a79eaf;
font-size: 15px;
}
.button-wrap {
position: relative;
display: inline-grid;
place-items: center;
margin-top: 68px;
isolation: isolate;
}
.like-input {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
pointer-events: none;
}
.like-button {
position: relative;
z-index: 2;
display: flex;
align-items: center;
gap: 15px;
min-width: 232px;
justify-content: center;
padding: 19px 29px;
border: 1px solid #ffffff28;
border-radius: 999px;
color: #ede8f1;
background: linear-gradient(135deg, #282331, #191722);
box-shadow: 0 14px 38px #0007, inset 0 1px #ffffff12;
cursor: pointer;
user-select: none;
transition: transform .2s, background .35s, border-color .35s, box-shadow .35s;
-webkit-tap-highlight-color: transparent;
}
.like-button:hover { transform: translateY(-3px); box-shadow: 0 20px 44px #0009, inset 0 1px #ffffff18; }
.like-button:active { transform: scale(.94); }
.like-input:focus-visible + .like-button {
outline: 3px solid #f46b9b;
outline-offset: 5px;
}
.heart {
width: 30px;
height: 30px;
fill: none;
stroke: currentColor;
stroke-width: 2.2;
stroke-linecap: round;
stroke-linejoin: round;
overflow: visible;
transition: color .3s;
}
.button-text {
min-width: 76px;
font-size: 16px;
font-weight: 750;
letter-spacing: .01em;
}
.count {
min-width: 28px;
padding-left: 13px;
border-left: 1px solid #ffffff2c;
color: #b5aebe;
font-variant-numeric: tabular-nums;
font-size: 14px;
font-weight: 650;
}
.count .liked-count { display: none; }
.like-input:checked + .like-button {
color: #fff;
border-color: #ff6c9c8c;
background: linear-gradient(135deg, #e9427a, #a82467);
box-shadow: 0 14px 45px #e3326a55, inset 0 1px #ffffff4d;
}
.like-input:checked + .like-button .heart {
fill: #fff;
stroke: #fff;
animation: heart-pop .7s cubic-bezier(.2,1.8,.45,1) both;
}
.like-input:checked + .like-button .button-text { animation: text-flash .45s ease-out; }
.like-input:checked + .like-button .count { color: #ffe6ef; border-color: #ffffff5a; }
.like-input:checked + .like-button .normal-count { display: none; }
.like-input:checked + .like-button .liked-count { display: inline; }
.burst {
position: absolute;
z-index: 1;
inset: 50% auto auto 50%;
width: 10px;
height: 10px;
pointer-events: none;
opacity: 0;
}
.burst i {
--angle: 0deg;
--distance: 100px;
--particle: #ff598c;
position: absolute;
top: 0;
left: 0;
width: 11px;
height: 11px;
background: var(--particle);
border-radius: 3px;
opacity: 0;
transform: rotate(var(--angle)) translateY(0) scale(.2);
}
.burst i:nth-child(1) { --angle: 0deg; --distance: 120px; --particle: #ff527f; }
.burst i:nth-child(2) { --angle: 45deg; --distance: 90px; --particle: #ffc65b; width: 8px; height: 8px; }
.burst i:nth-child(3) { --angle: 90deg; --distance: 120px; --particle: #a78bfa; }
.burst i:nth-child(4) { --angle: 135deg; --distance: 94px; --particle: #ff80a9; width: 7px; height: 7px; }
.burst i:nth-child(5) { --angle: 180deg; --distance: 116px; --particle: #ffd06d; }
.burst i:nth-child(6) { --angle: 225deg; --distance: 92px; --particle: #64e3d2; width: 8px; height: 8px; }
.burst i:nth-child(7) { --angle: 270deg; --distance: 125px; --particle: #ff598c; }
.burst i:nth-child(8) { --angle: 315deg; --distance: 100px; --particle: #b69cff; width: 7px; height: 7px; }
.burst i:nth-child(9) { --angle: 22deg; --distance: 76px; --particle: #fff; width: 5px; height: 5px; border-radius: 50%; }
.burst i:nth-child(10) { --angle: 112deg; --distance: 81px; --particle: #fff; width: 5px; height: 5px; border-radius: 50%; }
.burst i:nth-child(11) { --angle: 202deg; --distance: 78px; --particle: #fff; width: 5px; height: 5px; border-radius: 50%; }
.burst i:nth-child(12) { --angle: 292deg; --distance: 82px; --particle: #fff; width: 5px; height: 5px; border-radius: 50%; }
.like-input:checked ~ .burst { opacity: 1; }
.like-input:checked ~ .burst i { animation: shoot .8s cubic-bezier(.18,.7,.25,1) both; }
.orbit {
position: absolute;
z-index: 0;
width: 315px;
height: 315px;
border: 1px solid #f7639940;
border-radius: 50%;
opacity: 0;
transform: scale(.15);
pointer-events: none;
}
.orbit::before, .orbit::after {
content: "";
position: absolute;
inset: 18px;
border: 1px dashed #ffc16d55;
border-radius: 50%;
}
.orbit::after { inset: 38px; border-color: #b49bff50; }
.like-input:checked ~ .orbit { animation: ring .9s ease-out both; }
.hint {
margin-top: 42px;
color: #776e80;
font-size: 12px;
letter-spacing: .03em;
}
.hint span { color: #b4a9bf; }
.css-note {
position: fixed;
bottom: 22px;
left: 0;
right: 0;
color: #585262;
text-align: center;
font-size: 11px;
letter-spacing: .12em;
text-transform: uppercase;
}
@keyframes heart-pop {
0% { transform: scale(.2) rotate(-35deg); }
38% { transform: scale(1.6) rotate(12deg); }
58% { transform: scale(.78) rotate(-8deg); }
78% { transform: scale(1.23) rotate(4deg); }
100% { transform: scale(1) rotate(0); }
}
@keyframes text-flash {
0% { transform: translateY(7px); opacity: 0; }
100% { transform: translateY(0); opacity: 1; }
}
@keyframes shoot {
0% { opacity: 0; transform: rotate(var(--angle)) translateY(0) scale(.15); }
15% { opacity: 1; }
75% { opacity: 1; }
100% { opacity: 0; transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1)) scale(.8) rotate(130deg); }
}
@keyframes ring {
0% { opacity: 0; transform: scale(.15) rotate(-30deg); }
18% { opacity: .9; }
100% { opacity: 0; transform: scale(1.12) rotate(50deg); }
}
@media (max-width: 500px) {
.stage { padding: 35px 18px; }
.sub { font-size: 14px; }
.button-wrap { margin-top: 58px; }
.orbit { width: 270px; height: 270px; }
.hint { margin-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
</style>
</head>
<body>
<main class="stage">
<div class="eyebrow">A little appreciation</div>
<h1>Make it count.</h1>
<p class="sub">One click. An unreasonable amount of joy.</p>
<div class="button-wrap">
<input class="like-input" type="checkbox" id="like">
<label class="like-button" for="like" aria-label="Like this">
<svg class="heart" viewBox="0 0 24 24" aria-hidden="true">
<path d="M20.8 8.8c0 5.4-8.8 11-8.8 11s-8.8-5.6-8.8-11a4.7 4.7 0 0 1 8.8-2.2 4.7 4.7 0 0 1 8.8 2.2Z"/>
</svg>
<span class="button-text">Like</span>
<span class="count"><span class="normal-count">128</span><span class="liked-count">129</span></span>
</label>
<div class="burst" aria-hidden="true">
<i></i><i></i><i></i><i></i><i></i><i></i>
<i></i><i></i><i></i><i></i><i></i><i></i>
</div>
<div class="orbit" aria-hidden="true"></div>
</div>
<div class="hint"><span>Click the button</span> to unleash the confetti</div>
</main>
<div class="css-note">100% CSS · 0% restraint</div>
</body>
</html>