Models 44

GPT-6 Luna

by OpenAIReasoningClean
Open in new window

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

How it went

Total time
21.5 s
Cost
$0.0015
Output tokens
2,930
Spent thinking
0 tokens
Speed
150.3 tok/s
Console errors
0
First token after
2.0 s
First visible text after
2.0 s
Prompt tokens
498
Code size
8.6 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
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 · 325 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 {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #101827;
    color: #fff;
  }

  * { box-sizing: border-box; }

  body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 48px;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(73, 102, 155, .19), transparent 55%),
      #101827;
  }

  .weather {
    width: min(1120px, 100%);
  }

  .eyebrow {
    margin: 0 0 12px;
    color: #9babc3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
  }

  h1 {
    margin: 0 0 30px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -.045em;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .card {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.15);
    transition: transform .28s ease, box-shadow .28s ease;
    isolation: isolate;
  }

  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 42px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.2);
  }

  .sunny { background: linear-gradient(155deg, #f5b84c, #e98155 55%, #c85d65); }
  .rainy { background: linear-gradient(155deg, #527d9c, #3e6382 55%, #384f71); }
  .snowy { background: linear-gradient(155deg, #8cb8d1, #638caf 55%, #526d9b); }
  .stormy { background: linear-gradient(155deg, #555c83, #41476e 55%, #302f54); }

  .topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
  }

  .label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.78);
  }

  .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,.9);
    opacity: .85;
  }

  .icon-area {
    height: 132px;
    display: grid;
    place-items: center;
    position: relative;
  }

  /* Sun */
  .sun {
    width: 62px;
    height: 62px;
    position: relative;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff6b2, #ffd75b);
    box-shadow: 0 0 28px 8px rgba(255,225,117,.45);
    animation: glow 3s ease-in-out infinite alternate;
  }

  .rays {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, #ffe487 0deg 8deg, transparent 8deg 45deg);
    -webkit-mask: radial-gradient(circle, transparent 0 39px, #000 40px 54px, transparent 55px);
    mask: radial-gradient(circle, transparent 0 39px, #000 40px 54px, transparent 55px);
    animation: rotate 18s linear infinite;
  }

  /* Shared cloud */
  .cloud {
    position: absolute;
    width: 92px;
    height: 31px;
    left: 50%;
    top: 57px;
    transform: translateX(-50%);
    border-radius: 28px;
    background: #f0f6fa;
    box-shadow: 0 8px 15px rgba(30,48,75,.14);
    z-index: 2;
  }

  .cloud::before, .cloud::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: inherit;
  }

  .cloud::before {
    width: 42px;
    height: 42px;
    left: 14px;
    top: -21px;
  }

  .cloud::after {
    width: 32px;
    height: 32px;
    right: 12px;
    top: -14px;
  }

  .rain-cloud { background: #d9e7ef; }
  .storm-cloud { background: #b9c1db; }

  .drop {
    position: absolute;
    width: 3px;
    height: 13px;
    top: 92px;
    border-radius: 5px;
    background: #b9e9ff;
    opacity: .9;
    animation: rain 1s linear infinite;
  }

  .drop:nth-of-type(2) { left: calc(50% - 27px); animation-delay: -.25s; }
  .drop:nth-of-type(3) { left: calc(50% - 7px); animation-delay: -.65s; }
  .drop:nth-of-type(4) { left: calc(50% + 14px); animation-delay: -.1s; }
  .drop:nth-of-type(5) { left: calc(50% + 33px); animation-delay: -.45s; }

  /* Snow */
  .snow-cloud { background: #edf7fc; }
  .flake {
    position: absolute;
    top: 96px;
    color: #fff;
    font: 20px/1 Georgia, serif;
    animation: snow 3s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(255,255,255,.6);
  }
  .flake::before { content: "✳"; }
  .flake:nth-of-type(2) { left: calc(50% - 32px); animation-delay: -.4s; }
  .flake:nth-of-type(3) { left: calc(50% - 4px); animation-delay: -1.5s; font-size: 15px; }
  .flake:nth-of-type(4) { left: calc(50% + 24px); animation-delay: -.9s; font-size: 17px; }

  /* Lightning */
  .bolt {
    position: absolute;
    z-index: 3;
    left: calc(50% - 10px);
    top: 80px;
    width: 23px;
    height: 43px;
    background: #ffe66d;
    clip-path: polygon(52% 0, 100% 0, 68% 39%, 94% 39%, 25% 100%, 43% 52%, 10% 52%);
    filter: drop-shadow(0 0 9px rgba(255,237,114,.9));
    animation: flash 2.6s steps(1, end) infinite;
  }

  .city {
    margin: 0;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -.02em;
  }

  .temp {
    margin: 8px 0 4px;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -.06em;
  }

  .description {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 12px;
  }

  .sunny .icon-area { overflow: visible; }

  @keyframes rotate { to { transform: rotate(360deg); } }
  @keyframes glow { from { transform: scale(.97); } to { transform: scale(1.04); } }
  @keyframes rain {
    0% { transform: translateY(-3px); opacity: 0; }
    20% { opacity: .95; }
    100% { transform: translateY(28px); opacity: 0; }
  }
  @keyframes snow {
    0%, 100% { transform: translate(0, -2px) rotate(0); opacity: .45; }
    50% { transform: translate(7px, 20px) rotate(90deg); opacity: 1; }
  }
  @keyframes flash {
    0%, 13%, 16%, 54%, 57%, 100% { opacity: 0; }
    14%, 15%, 55%, 56% { opacity: 1; }
  }

  @media (max-width: 900px) {
    body { padding: 34px 24px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 500px) {
    body { padding: 28px 18px; }
    h1 { margin-bottom: 22px; }
    .grid { grid-template-columns: 1fr; gap: 14px; }
    .card { min-height: 270px; }
    .icon-area { height: 112px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: .01ms !important;
    }
  }
</style>
</head>
<body>
  <main class="weather">
    <p class="eyebrow">Tuesday · Local forecast</p>
    <h1>Weather, at a glance.</h1>

    <section class="grid" aria-label="Weather forecast">
      <article class="card sunny">
        <div class="topline"><span class="label">Clear skies</span><span class="dot"></span></div>
        <div class="icon-area" aria-hidden="true">
          <div class="sun"><div class="rays"></div></div>
        </div>
        <h2 class="city">Lisbon</h2>
        <p class="temp">24°</p>
        <p class="description">Bright and beautifully warm</p>
      </article>

      <article class="card rainy">
        <div class="topline"><span class="label">Light rain</span><span class="dot"></span></div>
        <div class="icon-area" aria-hidden="true">
          <div class="cloud rain-cloud"></div>
          <i class="drop"></i><i class="drop"></i><i class="drop"></i><i class="drop"></i>
        </div>
        <h2 class="city">Seattle</h2>
        <p class="temp">13°</p>
        <p class="description">A little drizzle in the air</p>
      </article>

      <article class="card snowy">
        <div class="topline"><span class="label">Snow showers</span><span class="dot"></span></div>
        <div class="icon-area" aria-hidden="true">
          <div class="cloud snow-cloud"></div>
          <span class="flake"></span><span class="flake"></span><span class="flake"></span>
        </div>
        <h2 class="city">Reykjavík</h2>
        <p class="temp">−2°</p>
        <p class="description">Soft flakes drifting down</p>
      </article>

      <article class="card stormy">
        <div class="topline"><span class="label">Thunderstorm</span><span class="dot"></span></div>
        <div class="icon-area" aria-hidden="true">
          <div class="cloud storm-cloud"></div>
          <div class="bolt"></div>
        </div>
        <h2 class="city">Chicago</h2>
        <p class="temp">18°</p>
        <p class="description">Thunder rolling through</p>
      </article>
    </section>
  </main>
</body>
</html>