MiniMax M3.1 Flash
by MiniMaxReasoningClean
Running live in a sandboxed frame. Click inside it before using the keyboard.
How it went
- Total time
- 27.3 s
- Cost
- $0.0032
- Output tokens
- 5,196
- Spent thinking
- 0 tokens
- Speed
- 195.3 tok/s
- Console errors
- 0
- First token after
- 691 ms
- First visible text after
- 691 ms
- Prompt tokens
- 681
- Code size
- 15.2 KB
- Finish reason
- stop
- Served by
- Fireworks
- Model id
minimax/minimax-m3.1-flash- Reasoning sent
{"effort":"medium"}- Max output
- 64,000 tokens
- Generated
- Nov 11, 2026
What it was asked
The prompt
Create a set of four animated weather cards (sunny, rainy, snowy, stormy), made with HTML and CSS only. Requirements: - Absolutely no JavaScript: the file must not contain any <script> tag or inline event handler. - No images, no SVG, no icon fonts: every weather icon is built from HTML elements and pseudo-elements styled with CSS. - Each card shows an animated icon (rotating sun rays, falling rain drops, drifting snowflakes, flashing lightning), a city name, a temperature and a short description. - Each card has its own background gradient matching the weather. - The cards are displayed in a responsive grid (4 per row on desktop, stacked on mobile) and lift up on hover. - Smooth infinite animations using @keyframes, and respect prefers-reduced-motion.
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 · 531 lines
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Weather Cards</title>
<style>
:root {
--radius: 22px;
--card-shadow: 0 10px 30px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
min-height: 100%;
}
body {
font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
background:
radial-gradient(1200px 700px at 12% -10%, #26314d 0%, transparent 60%),
radial-gradient(1000px 700px at 95% 110%, #2c2a45 0%, transparent 60%),
linear-gradient(160deg, #10131f 0%, #171b2b 55%, #0d1018 100%);
color: #fff;
padding: 34px 20px 56px;
display: flex;
flex-direction: column;
align-items: center;
}
header {
text-align: center;
margin-bottom: 30px;
max-width: 720px;
}
header h1 {
margin: 0 0 8px;
font-size: clamp(1.6rem, 4vw, 2.5rem);
letter-spacing: .5px;
background: linear-gradient(90deg, #ffd66b, #8fd3ff, #c9b6ff);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
header p {
margin: 0;
color: #9aa6c4;
font-size: clamp(.85rem, 2.2vw, 1rem);
}
.grid {
width: 100%;
max-width: 1180px;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 22px;
}
/* ---------------- Card shell ---------------- */
.card {
position: relative;
border-radius: var(--radius);
padding: 26px 22px 24px;
min-height: 340px;
display: flex;
flex-direction: column;
align-items: center;
overflow: hidden;
isolation: isolate;
box-shadow: var(--card-shadow);
transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
transform: translateY(0);
will-change: transform;
}
.card::before {
/* soft vignette / glass */
content: "";
position: absolute;
inset: 0;
background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.18), rgba(255,255,255,0) 60%);
pointer-events: none;
z-index: 0;
}
.card::after {
/* glossy sweep on hover */
content: "";
position: absolute;
top: -60%;
left: -80%;
width: 60%;
height: 220%;
background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent);
transform: rotate(12deg);
transition: left .7s ease;
pointer-events: none;
z-index: 0;
}
.card:hover {
transform: translateY(-12px);
box-shadow: 0 22px 45px rgba(0,0,0,.5);
}
.card:hover::after { left: 125%; }
.card > * { position: relative; z-index: 1; }
/* ---------------- Card text ---------------- */
.city {
margin-top: 18px;
font-size: 1.15rem;
font-weight: 600;
letter-spacing: .6px;
text-transform: uppercase;
}
.temp {
margin-top: 4px;
font-size: 2.6rem;
font-weight: 700;
line-height: 1.05;
text-shadow: 0 3px 12px rgba(0,0,0,.35);
}
.temp small {
font-size: 1.1rem;
font-weight: 600;
vertical-align: super;
opacity: .85;
}
.desc {
margin-top: 8px;
text-align: center;
font-size: .9rem;
line-height: 1.45;
opacity: .9;
max-width: 22ch;
}
.badge {
margin-top: 14px;
font-size: .72rem;
letter-spacing: 1.4px;
text-transform: uppercase;
padding: 6px 12px;
border-radius: 999px;
background: rgba(255,255,255,.16);
border: 1px solid rgba(255,255,255,.28);
backdrop-filter: blur(4px);
}
/* ---------------- Icon stage ---------------- */
.stage {
position: relative;
width: 140px;
height: 130px;
display: flex;
align-items: center;
justify-content: center;
margin-top: 6px;
}
/* ================= SUNNY ================= */
.sunny .stage { --r: 34px; }
.sun-core {
position: relative;
width: 68px;
height: 68px;
border-radius: 50%;
background: radial-gradient(circle at 32% 30%, #fff6c2, #ffd23f 45%, #f7a613 100%);
box-shadow: 0 0 24px 6px rgba(255,196,60,.55), 0 0 60px 14px rgba(255,170,40,.25);
animation: sunPulse 3.2s ease-in-out infinite;
}
@keyframes sunPulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.07); }
}
.rays {
position: absolute;
inset: 0;
animation: spin 14s linear infinite;
}
.ray {
position: absolute;
top: 50%;
left: 50%;
width: 5px;
height: 20px;
margin-left: -2.5px;
border-radius: 3px;
background: linear-gradient(180deg, rgba(255,225,120,.95), rgba(255,180,60,.25));
transform-origin: 50% 0;
box-shadow: 0 0 8px rgba(255,210,90,.55);
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* ================= RAINY ================= */
.rainy .stage { --r: 30px; }
.cloud {
position: relative;
width: 96px;
height: 46px;
background: linear-gradient(180deg, #dfe8f6, #a9b9d2);
border-radius: 40px;
box-shadow: 0 6px 14px rgba(0,0,0,.28);
animation: drift 5s ease-in-out infinite;
}
.cloud::before,
.cloud::after {
content: "";
position: absolute;
background: linear-gradient(180deg, #eaf1fb, #b6c5db);
border-radius: 50%;
}
.cloud::before { width: 52px; height: 52px; top: -24px; left: 12px; }
.cloud::after { width: 40px; height: 40px; top: -16px; right: 10px; }
@keyframes drift {
0%, 100% { transform: translateX(-5px); }
50% { transform: translateX(5px); }
}
.drop {
position: absolute;
top: 0;
width: 4px;
height: 16px;
border-radius: 3px;
background: linear-gradient(180deg, rgba(190,230,255,0), #9fd4ff);
box-shadow: 0 0 6px rgba(140,200,255,.6);
animation: fall 1.1s linear infinite;
}
@keyframes fall {
0% { transform: translateY(-22px); opacity: 0; }
12% { opacity: 1; }
100% { transform: translateY(126px); opacity: 0; }
}
.drop.d1 { left: 22px; animation-delay: 0s; animation-duration: 1.05s; }
.drop.d2 { left: 40px; animation-delay: .22s; animation-duration: 1.25s; height: 13px; }
.drop.d3 { left: 58px; animation-delay: .1s; animation-duration: 1.15s; }
.drop.d4 { left: 76px; animation-delay: .38s; animation-duration: .95s; height: 19px; }
.drop.d5 { left: 31px; animation-delay: .55s; animation-duration: 1.3s; }
.drop.d6 { left: 67px; animation-delay: .7s; animation-duration: 1.1s; }
.splash {
position: absolute;
bottom: 8px;
width: 14px;
height: 5px;
border-radius: 50%;
border: 1.5px solid rgba(180,225,255,.8);
border-top-color: transparent;
opacity: 0;
animation: splash 1.3s ease-out infinite;
}
.splash.s1 { left: 30px; animation-delay: .15s; }
.splash.s2 { left: 62px; animation-delay: .65s; }
@keyframes splash {
0% { transform: scale(.2); opacity: 0; }
20% { opacity: .9; }
100% { transform: scale(1.1); opacity: 0; }
}
/* ================= SNOWY ================= */
.snowy .stage { --r: 30px; }
.snowy .cloud {
background: linear-gradient(180deg, #ffffff, #d8e6f4);
}
.snowy .cloud::before { background: linear-gradient(180deg, #ffffff, #e3eefb); }
.snowy .cloud::after { background: linear-gradient(180deg, #ffffff, #e3eefb); }
.snowy .cloud { animation-duration: 6.5s; }
.flake {
position: absolute;
top: 0;
width: 8px;
height: 8px;
background: #fff;
border-radius: 50%;
box-shadow: 0 0 8px rgba(255,255,255,.85);
animation: snowfall linear infinite;
}
.flake.big { width: 11px; height: 11px; }
@keyframes snowfall {
0% { transform: translate(0, -20px) scale(.7); opacity: 0; }
10% { opacity: 1; }
50% { transform: translate(10px, 60px) scale(1); }
100% { transform: translate(-6px, 130px) scale(.6); opacity: 0; }
}
.flake.f1 { left: 20px; animation-duration: 3.2s; animation-delay: 0s; }
.flake.f2 { left: 44px; animation-duration: 4.1s; animation-delay: .6s; }
.flake.f3 { left: 66px; animation-duration: 3.6s; animation-delay: 1.2s; }
.flake.f4 { left: 84px; animation-duration: 4.6s; animation-delay: .3s; }
.flake.f5 { left: 32px; animation-duration: 3.9s; animation-delay: 1.8s; }
.flake.f6 { left: 74px; animation-duration: 4.4s; animation-delay: 2.4s; }
/* ground snow */
.snowbank {
position: absolute;
bottom: 6px;
left: 50%;
transform: translateX(-50%);
width: 118px;
height: 16px;
border-radius: 50% 50% 40% 40% / 100% 100% 0 0;
background: linear-gradient(180deg, #ffffff, #cfe0f0);
opacity: .9;
}
/* ================= STORMY ================= */
.stormy .stage { --r: 30px; }
.stormy .cloud {
background: linear-gradient(180deg, #8b93ab, #4d5468);
}
.stormy .cloud::before { background: linear-gradient(180deg, #949cb4, #565d72); }
.stormy .cloud::after { background: linear-gradient(180deg, #828aa2, #4a5164); }
.stormy .cloud { animation-duration: 4s; }
.bolt {
position: absolute;
top: 44px;
left: 50%;
width: 26px;
height: 44px;
margin-left: -13px;
background: linear-gradient(180deg, #fff3a8, #ffc400);
clip-path: polygon(58% 0%, 12% 55%, 46% 55%, 30% 100%, 88% 40%, 52% 40%);
filter: drop-shadow(0 0 10px rgba(255,210,60,.9));
animation: flash 3.4s ease-out infinite;
}
@keyframes flash {
0%, 62%, 70%, 78%, 100% { opacity: 0; transform: scale(.9) rotate(0deg); }
64% { opacity: 1; transform: scale(1.08) rotate(-3deg); }
72% { opacity: .2; }
74% { opacity: 1; transform: scale(1.04) rotate(2deg); }
80% { opacity: 0; }
}
.stormy .stage::after {
content: "";
position: absolute;
inset: -10px -14px;
border-radius: 50%;
background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,0) 65%);
opacity: 0;
animation: glow 3.4s ease-out infinite;
pointer-events: none;
}
@keyframes glow {
0%, 60%, 72%, 100% { opacity: 0; }
64% { opacity: .55; }
74% { opacity: .18; }
}
.storm-drop {
position: absolute;
top: 0;
width: 3px;
height: 14px;
border-radius: 2px;
background: linear-gradient(180deg, rgba(200,220,255,0), #b9c8e8);
animation: fall 1s linear infinite;
}
.storm-drop.e1 { left: 14px; animation-delay: 0s; }
.storm-drop.e2 { left: 30px; animation-delay: .35s; }
.storm-drop.e3 { left: 90px; animation-delay: .15s; }
.storm-drop.e4 { left: 108px; animation-delay: .55s; }
/* ---------------- Gradients ---------------- */
.sunny {
background: linear-gradient(160deg, #ff9a3c 0%, #ff6f3c 45%, #ff4d6d 100%);
}
.rainy {
background: linear-gradient(160deg, #4f7ca8 0%, #3d6288 45%, #2b4260 100%);
}
.snowy {
background: linear-gradient(160deg, #a9c9e8 0%, #7ea3cc 45%, #5b7fb0 100%);
color: #16233a;
}
.snowy .desc { opacity: .82; }
.snowy .badge { background: rgba(255,255,255,.35); border-color: rgba(255,255,255,.6); color: #16233a; }
.snowy .temp { text-shadow: 0 3px 10px rgba(255,255,255,.4); }
.stormy {
background: linear-gradient(160deg, #3b3f57 0%, #262a3d 45%, #171a28 100%);
}
.sunny .badge { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); }
.rainy .badge { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); }
.stormy .badge { background: rgba(255,210,90,.16); border-color: rgba(255,210,90,.4); color: #ffe9a8; }
/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
body { padding: 22px 14px 40px; }
.grid { grid-template-columns: 1fr; gap: 18px; }
.card { min-height: 320px; padding: 22px 18px 22px; }
}
/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: .001ms !important;
animation-iteration-count: 1 !important;
transition-duration: .001ms !important;
}
.rays { transform: rotate(24deg); }
.bolt { opacity: 1; }
.stormy .stage::after { opacity: .12; }
}
</style>
</head>
<body>
<header>
<h1>Weather Cards</h1>
<p>Four conditions, four gradients — icons drawn entirely with HTML & CSS, animated with @keyframes.</p>
</header>
<main class="grid">
<!-- ============ SUNNY ============ -->
<article class="card sunny">
<div class="stage">
<div class="rays">
<span class="ray" style="transform: rotate(0deg) translateY(-58px);"></span>
<span class="ray" style="transform: rotate(45deg) translateY(-58px);"></span>
<span class="ray" style="transform: rotate(90deg) translateY(-58px);"></span>
<span class="ray" style="transform: rotate(135deg) translateY(-58px);"></span>
<span class="ray" style="transform: rotate(180deg) translateY(-58px);"></span>
<span class="ray" style="transform: rotate(225deg) translateY(-58px);"></span>
<span class="ray" style="transform: rotate(270deg) translateY(-58px);"></span>
<span class="ray" style="transform: rotate(315deg) translateY(-58px);"></span>
</div>
<div class="sun-core"></div>
</div>
<div class="city">Seville</div>
<div class="temp">31<small>°C</small></div>
<p class="desc">Golden sun blazing over the rooftops. Cool drinks and shade all day.</p>
<span class="badge">Sunny</span>
</article>
<!-- ============ RAINY ============ -->
<article class="card rainy">
<div class="stage">
<div class="cloud"></div>
<span class="drop d1"></span>
<span class="drop d2"></span>
<span class="drop d3"></span>
<span class="drop d4"></span>
<span class="drop d5"></span>
<span class="drop d6"></span>
<span class="splash s1"></span>
<span class="splash s2"></span>
</div>
<div class="city">Bergen</div>
<div class="temp">14<small>°C</small></div>
<p class="desc">Steady drizzle with grey skies. Take the coat, skip the umbrella — it won't last.</p>
<span class="badge">Rainy</span>
</article>
<!-- ============ SNOWY ============ -->
<article class="card snowy">
<div class="stage">
<div class="cloud"></div>
<span class="flake f1"></span>
<span class="flake f2 big"></span>
<span class="flake f3"></span>
<span class="flake f4 big"></span>
<span class="flake f5"></span>
<span class="flake f6"></span>
<span class="snowbank"></span>
</div>
<div class="city">Tromsø</div>
<div class="temp">−6<small>°C</small></div>
<p class="desc">Soft snowflakes drifting down onto a quiet white blanket. Bundle up.</p>
<span class="badge">Snowy</span>
</article>
<!-- ============ STORMY ============ -->
<article class="card stormy">
<div class="stage">
<div class="cloud"></div>
<span class="storm-drop e1"></span>
<span class="storm-drop e2"></span>
<span class="storm-drop e3"></span>
<span class="storm-drop e4"></span>
<div class="bolt"></div>
</div>
<div class="city">Miami</div>
<div class="temp">26<small>°C</small></div>
<p class="desc">Dark clouds, thunder rolls and lightning splits the sky. Stay indoors.</p>
<span class="badge">Stormy</span>
</article>
</main>
</body>
</html>