From 4454df9c3bdbb528670e21f9e6bcb73fe481f4d7 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Sat, 13 Jun 2026 10:57:12 +0000 Subject: [PATCH] S3 pas 3: restyle complet 5 stiluri (din STYLES.md) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Classic: fundal radial spotlight, card cu glow accent, tile-uri 44px bouncy, progres bar 10px cu neon glow. Terminal: FIX WCAG critic .line.dim (#1f9c4a→ #2ecc71, 3.1:1→6.1:1) + bordura CRT + flicker cu motion guard + #cmd 44px. Arcade: canvas border neon violet, dpad butoane fizice 56x52px, titlu neon, fundal radial. Chat: header frosted-glass (backdrop-filter), bule NPC distincte (#1e2d45) cu shadow, tile reward bouncy. Point: fundal distinct fata de arcade, fix contrast .note (#a89fd4), usa cu glow pulsant. prefers-reduced-motion peste tot. Toate 5 demo-urile regenerate. Smoke 21/21 + capturi vizuale pe fiecare stil. S3 COMPLET (Bomberman + Overworld + restyle). Board: TODOS.md S3 [x]. Co-Authored-By: Claude Opus 4.8 (1M context) --- TODOS.md | 8 ++- escape-builder.html | 132 +++++++++++++++++++++++------------------- exemplu-arcade.html | 19 +++--- exemplu-chat.html | 32 +++++----- exemplu-clasic.html | 40 +++++++------ exemplu-point.html | 20 ++++--- exemplu-terminal.html | 21 ++++--- 7 files changed, 152 insertions(+), 120 deletions(-) diff --git a/TODOS.md b/TODOS.md index 4e0e98a..81d9f6e 100644 --- a/TODOS.md +++ b/TODOS.md @@ -39,7 +39,7 @@ portează în `escape-builder.html` (un singur fișier, integrare secvențială) - [x] **S2c — `STYLES.md`** — direcție restyle pentru cele 5 stiluri (GATA, 775 linii). Top 3 impact/efort: terminal `.line.dim` fix WCAG (3.1:1→6.1:1); classic card glow + progres bar; chat header `backdrop-filter` + bulă NPC distinctă. Consumat de S3. -- [~] **S3 — integrare în `escape-builder.html`** *(secvențial: Bomberman → Overworld → restyle; smoke după fiecare)* +- [x] **S3 — integrare în `escape-builder.html`** *(GATA — toate 3 pas-urile; smoke 21/21)* Portează prototipurile (template literals → DUBLEAZĂ backslash-urile) + regenerează demo-urile. Pas 1: Bomberman → `gameArcade`. Pas 2: Overworld → `gameCampaign`. Pas 3: restyle 5 stiluri. - [x] Pas 1 — Bomberman în `gameArcade` (GATA). Păstrează `openPuzzle`/`onDoorSolved`/`showFinal`/ @@ -49,7 +49,11 @@ portează în `escape-builder.html` (un singur fișier, integrare secvențială) coridorul; intro→`showOverworld(0)`, nextRoom/skip/resume→`showOverworld`. Contractul (mountRoom/nextRoom/roomReady/roomError/timeout/finale) NESCHIMBAT. Cod coridor șters. Cele 8 teste campanie rescrise (`enterRoom`/`waitOverworld`/`__ow`). Smoke 21/21 + captură. - - [ ] Pas 3 — restyle 5 stiluri (din `STYLES.md`). + - [x] Pas 3 — restyle 5 stiluri din `STYLES.md` (GATA, toate 5). Classic spotlight+card glow+ + tile 44px; Terminal fix WCAG `.dim` #2ecc71 + bordură CRT + flicker; Arcade canvas neon + + dpad fizic; Chat header frosted + bule distincte + tile reward; Point fundal distinct + + fix contrast `.note` + ușă glow. `prefers-reduced-motion` peste tot. Toate 5 demo-uri + regenerate. Smoke 21/21 + capturi pe fiecare stil. - [!] **S4 — extinde `tests/smoke.mjs`** *(blocat de S3)* — bomberman, hartă, audio, regresie. **Stare la 2026-06-13:** PR1 livrat (`a42c960`, suita 21/21). Iterația 2 = neîncepută; diff --git a/escape-builder.html b/escape-builder.html index dbb7b66..2fe4473 100644 --- a/escape-builder.html +++ b/escape-builder.html @@ -452,44 +452,46 @@ function gameClassic(cfg) { * { box-sizing: border-box; } body { margin: 0; min-height: 100vh; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; - color: #fff; display: flex; align-items: center; justify-content: center; padding: 16px; - background: linear-gradient(160deg, #14092e 0%, #2a1257 55%, #14092e 100%); + color: #f1f0ff; display: flex; align-items: center; justify-content: center; padding: 16px; + background: radial-gradient(ellipse at 50% 30%, #2a0e5e 0%, #0e0622 70%); } .card { - width: 100%; max-width: 560px; background: rgba(255,255,255,.07); - border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 26px; - backdrop-filter: blur(6px); box-shadow: 0 18px 50px rgba(0,0,0,.45); + width: 100%; max-width: 560px; background: #1a0e3d; + border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 26px; + backdrop-filter: blur(6px); + box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.55), 0 0 40px rgba(109,40,217,.35); } h1 { margin: 0 0 6px; font-size: 26px; text-align: center; } .story { color: rgba(255,255,255,.8); text-align: center; line-height: 1.5; } .screen { display: none; } - .screen.on { display: block; animation: pop .35s ease; } - @keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } } - .progress { height: 7px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; margin: 14px 0 4px; } - .progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s ease; } + .screen.on { display: block; animation: pop .35s cubic-bezier(.22,1,.36,1); } + @keyframes pop { from { transform: scale(.94) translateY(6px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } } + .progress { height: 10px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; margin: 14px 0 4px; } + .progress i { display: block; height: 100%; background: var(--accent); width: 0; box-shadow: 0 0 8px var(--accent); transition: width .5s cubic-bezier(.22,1,.36,1); } .meta { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 14px; } .letters { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 14px 0; } .tile { - width: 34px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; - font-weight: 800; font-size: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); + width: 44px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; + font-weight: 800; font-size: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.35); } - .tile.won { background: var(--accent); color: #fff; border-color: transparent; animation: flip .5s ease; } + .tile.won { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 0 12px var(--accent); animation: flip .5s cubic-bezier(.34,1.56,.64,1); } @keyframes flip { from { transform: rotateX(90deg); } to { transform: rotateX(0); } } .qtitle { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-light); font-weight: 700; } - .question { font-size: 19px; line-height: 1.45; margin: 8px 0 18px; } + .question { font-size: 21px; line-height: 1.5; margin: 8px 0 18px; color: #f1f0ff; } input[type=text] { width: 100%; font: inherit; font-size: 18px; padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); color: #fff; text-align: center; } - input:focus { outline: 2px solid var(--accent); border-color: transparent; } + input:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; } button { font: inherit; cursor: pointer; border: none; border-radius: 10px; padding: 12px 18px; - font-weight: 700; background: var(--accent); color: #fff; width: 100%; margin-top: 10px; + font-weight: 700; background: var(--accent); color: #fff; width: 100%; margin-top: 10px; min-height: 44px; } button:hover { filter: brightness(1.12); } - button.opt { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-weight: 600; text-align: left; } - button.opt:hover { background: rgba(255,255,255,.18); } + button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } + button.opt { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-weight: 600; text-align: left; min-height: 48px; transition: background .15s, border-color .15s; } + button.opt:hover { background: rgba(255,255,255,.16); border-color: var(--accent); } button.hint { background: none; border: none; color: rgba(255,255,255,.55); font-weight: 600; font-size: 13px; width: auto; display: block; margin: 12px auto 0; } button.hint:hover { color: #fff; } .hinttext { background: rgba(255,255,255,.1); border-radius: 9px; padding: 10px 12px; font-size: 14px; margin-top: 10px; white-space: pre-line; display: none; } @@ -506,6 +508,10 @@ function gameClassic(cfg) { } .confetti { position: fixed; top: -12px; width: 9px; height: 14px; z-index: 5; animation: fall linear forwards; } @keyframes fall { to { transform: translateY(105vh) rotate(720deg); } } + @media (prefers-reduced-motion: reduce) { + .screen.on, .tile.won, .bigword span, .shake { animation: none; } + .progress i { transition: none; } + } @@ -870,21 +876,24 @@ function gameTerminal(cfg) { ${esc(cfg.title)} -
+
>
@@ -1004,18 +1013,19 @@ function gameArcade(cfg) { ${esc(cfg.title)} @@ -1416,21 +1428,23 @@ function gamePoint(cfg) { ${esc(cfg.title)} diff --git a/exemplu-arcade.html b/exemplu-arcade.html index f8d7d29..af6efbe 100644 --- a/exemplu-arcade.html +++ b/exemplu-arcade.html @@ -6,18 +6,19 @@ Comoara ascunsa diff --git a/exemplu-point.html b/exemplu-point.html index 29dddfa..21eca13 100644 --- a/exemplu-point.html +++ b/exemplu-point.html @@ -6,21 +6,23 @@ Comoara ascunsa -
+
>