Models 44

MiniMax M3

by MiniMaxreasoning defaultClean
Open in new window

Running live in a sandboxed frame. Click inside it before using the keyboard.

How it went

Total time
12.8 s
Cost
$0.0034
Output tokens
3,408
Spent thinking
0 tokens
Speed
300.8 tok/s
Console errors
0
First token after
1.4 s
First visible text after
1.4 s
Prompt tokens
517
Code size
9.7 KB
Finish reason
stop
Served by
GMICloud
Model id
minimax/minimax-m3
Reasoning sent
model default
Max output
512,000 tokens
Generated
Nov 13, 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 · 353 lines

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pure CSS Like Button</title>
<style>
  :root {
    color-scheme: dark;
    --bg: #090912;
    --panel: rgba(255, 255, 255, 0.07);
    --pink: #ff3f87;
    --red: #ff1744;
    --purple: #8b5cf6;
    --cyan: #22d3ee;
    --yellow: #ffd43b;
  }

  * { box-sizing: border-box; }

  html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
  }

  body {
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 24px;
    color: white;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
      radial-gradient(circle at 20% 20%, rgba(255, 63, 135, 0.18), transparent 34%),
      radial-gradient(circle at 80% 75%, rgba(34, 211, 238, 0.14), transparent 32%),
      linear-gradient(145deg, #080811, #101022 52%, #07070e);
  }

  body::before {
    content: "";
    position: fixed;
    inset: -30%;
    background-image:
      radial-gradient(circle, rgba(255,255,255,.42) 1px, transparent 1.5px),
      radial-gradient(circle, rgba(255,63,135,.32) 1px, transparent 1.5px);
    background-position: 0 0, 35px 25px;
    background-size: 70px 70px, 90px 90px;
    opacity: .18;
    animation: drift 16s linear infinite;
    pointer-events: none;
  }

  .stage {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    padding: 34px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
    box-shadow: 0 30px 90px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.15);
    backdrop-filter: blur(18px);
    text-align: center;
  }

  .eyebrow {
    margin: 0 0 10px;
    color: #ff8ab6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
  }

  h1 {
    margin: 0;
    font-size: clamp(30px, 7vw, 58px);
    line-height: .98;
    letter-spacing: -.055em;
  }

  .intro {
    max-width: 510px;
    margin: 18px auto 30px;
    color: rgba(255,255,255,.68);
    font-size: clamp(14px, 2.4vw, 17px);
    line-height: 1.55;
  }

  .like-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 170px;
    height: 170px;
    isolation: isolate;
  }

  .halo {
    position: absolute;
    inset: 10px;
    z-index: -3;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,23,68,.45), rgba(255,23,68,0) 68%);
    filter: blur(9px);
    opacity: .55;
    transition: transform .45s ease, opacity .45s ease;
  }

  .ring {
    position: absolute;
    inset: 25px;
    z-index: -2;
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 50%;
    transition: transform .35s ease, border-color .35s ease;
  }

  .like {
    position: relative;
    display: grid;
    place-items: center;
    width: 126px;
    height: 126px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    outline: none;
    background: linear-gradient(145deg, #ff5b9c, #ff1744 58%, #cf0060);
    box-shadow:
      0 12px 32px rgba(255,23,68,.42),
      inset 0 2px 4px rgba(255,255,255,.45),
      inset 0 -10px 20px rgba(91,0,29,.35);
    transition: transform .22s cubic-bezier(.2,.9,.25,1.25), box-shadow .22s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .like::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: inherit;
    opacity: .7;
  }

  .like::after {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: -1;
    border-radius: inherit;
    background: var(--pink);
    filter: blur(18px);
    opacity: .65;
    transition: transform .3s ease, opacity .3s ease;
  }

  .heart {
    position: relative;
    width: 62px;
    height: 55px;
    transform: rotate(-45deg);
    filter: drop-shadow(0 5px 7px rgba(95,0,30,.4));
    transition: transform .35s cubic-bezier(.2,.8,.2,1.2);
  }

  .heart::before,
  .heart::after {
    content: "";
    position: absolute;
    width: 36px;
    height: 54px;
    border-radius: 50% 50% 0 50%;
    background: white;
  }

  .heart::before { top: -23px; left: 0; transform: rotate(-45deg); transform-origin: 0 100%; }
  .heart::after { top: -8px; left: 25px; transform: rotate(45deg); transform-origin: 0 100%; }

  .label {
    margin-top: 15px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .04em;
  }

  .count {
    display: inline-block;
    min-width: 70px;
    margin-left: 5px;
    color: white;
    font-variant-numeric: tabular-nums;
  }

  .spark {
    --x: 0px;
    --y: 0px;
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 18px;
    border-radius: 9px;
    background: var(--yellow);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 13px currentColor;
  }

  .spark:nth-child(1) { --x: -78px; --y: -54px; background: #ff4d8d; transform: rotate(-25deg); }
  .spark:nth-child(2) { --x: 70px; --y: -65px; background: var(--yellow); transform: rotate(35deg); }
  .spark:nth-child(3) { --x: -92px; --y: 12px; background: var(--cyan); transform: rotate(-75deg); }
  .spark:nth-child(4) { --x: 92px; --y: 8px; background: var(--purple); transform: rotate(78deg); }
  .spark:nth-child(5) { --x: -48px; --y: -86px; background: white; transform: rotate(-5deg); }
  .spark:nth-child(6) { --x: 48px; --y: -88px; background: #ff8a3d; transform: rotate(8deg); }
  .spark:nth-child(7) { --x: 0px; --y: -100px; background: var(--pink); transform: rotate(0); }
  .spark:nth-child(8) { --x: 0px; --y: 96px; background: var(--cyan); transform: rotate(0); }

  .like:active { transform: scale(.9) rotate(-5deg); }
  .like:focus-visible { outline: 4px solid white; outline-offset: 6px; }

  .like:checked ~ .ring {
    border-color: rgba(255,255,255,.55);
    transform: scale(1.45);
    animation: ring-out .75s ease-out;
  }

  .like:checked ~ .halo {
    opacity: 1;
    transform: scale(1.7);
    animation: halo-pop .8s ease-out;
  }

  .like:checked ~ .spark {
    animation: explode .75s cubic-bezier(.15,.75,.2,1) forwards;
    animation-delay: calc((var(--i, 0)) * 18ms);
  }

  .like:checked .heart {
    animation: heart-pop .8s cubic-bezier(.18,.85,.25,1.35);
  }

  .like:checked::after {
    transform: scale(1.45);
    opacity: .95;
  }

  .like:checked + .label .count { animation: number-pop .65s ease-out; }

  @keyframes heart-pop {
    0% { transform: rotate(-45deg) scale(.75); }
    35% { transform: rotate(-45deg) scale(1.65) rotate(8deg); }
    55% { transform: rotate(-45deg) scale(.85) rotate(-8deg); }
    72% { transform: rotate(-45deg) scale(1.2) rotate(3deg); }
    100% { transform: rotate(-45deg) scale(1); }
  }

  @keyframes explode {
    0% { opacity: 1; translate: 0 0; scale: .25; }
    65% { opacity: 1; }
    100% { opacity: 0; translate: var(--x) var(--y); scale: 1.15; }
  }

  @keyframes ring-out {
    0% { transform: scale(.8); opacity: 0; }
    25% { opacity: 1; }
    100% { transform: scale(1.65); opacity: 0; }
  }

  @keyframes halo-pop {
    0% { transform: scale(.8); opacity: .5; }
    35% { transform: scale(2.2); opacity: .9; }
    100% { transform: scale(1.7); opacity: 1; }
  }

  @keyframes number-pop {
    0% { transform: scale(.7); color: var(--yellow); }
    55% { transform: scale(1.35); color: var(--yellow); }
    100% { transform: scale(1); color: white; }
  }

  @keyframes drift {
    to { transform: rotate(8deg) translate(70px, 50px); }
  }

  @media (max-width: 520px) {
    body { padding: 14px; }
    .stage { padding: 28px 16px 30px; border-radius: 24px; }
    .intro { margin-bottom: 20px; }
    .like-wrap { width: 145px; height: 145px; }
    .like { width: 108px; height: 108px; }
    .heart { transform: rotate(-45deg) scale(.84); }
    .like:checked .heart { animation-name: heart-pop-small; }
    .spark:nth-child(1) { --x: -65px; --y: -45px; }
    .spark:nth-child(2) { --x: 61px; --y: -52px; }
    .spark:nth-child(3) { --x: -70px; --y: 8px; }
    .spark:nth-child(4) { --x: 70px; --y: 7px; }
    .spark:nth-child(5) { --x: -42px; --y: -70px; }
    .spark:nth-child(6) { --x: 42px; --y: -70px; }
    .spark:nth-child(7) { --x: 0; --y: -78px; }
    .spark:nth-child(8) { --x: 0; --y: 75px; }
  }

  @keyframes heart-pop-small {
    0% { transform: rotate(-45deg) scale(.7); }
    35% { transform: rotate(-45deg) scale(1.55); }
    55% { transform: rotate(-45deg) scale(.82); }
    72% { transform: rotate(-45deg) scale(1.12); }
    100% { transform: rotate(-45deg) scale(.84); }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
  }
</style>
</head>
<body>
  <main class="stage">
    <p class="eyebrow">Pure CSS • No JavaScript</p>
    <h1>Give it some love.</h1>
    <p class="intro">Tap the heart and watch the reaction explode. Click again to replay the animation.</p>

    <div class="like-wrap">
      <input class="like" type="checkbox" id="like" aria-label="Like this post" />
      <span class="halo"></span>
      <span class="ring"></span>
      <span class="heart" aria-hidden="true"></span>

      <span class="spark" style="--i:0"></span>
      <span class="spark" style="--i:1"></span>
      <span class="spark" style="--i:2"></span>
      <span class="spark" style="--i:3"></span>
      <span class="spark" style="--i:4"></span>
      <span class="spark" style="--i:5"></span>
      <span class="spark" style="--i:6"></span>
      <span class="spark" style="--i:7"></span>

      <label class="label" for="like">Liked <span class="count">12.8K</span></label>
    </div>
  </main>
</body>
</html>