:root { --green: #2f9e5b; --dark: #2a6b45; --bg: #f6fbf6; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: #1f1f1f; }
main { flex: 1; width: 100%; position: relative; max-width: 440px; margin: 0 auto; padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.brand { font-size: 24px; font-weight: 800; color: var(--dark); letter-spacing: .5px; }
h1 { margin: 8px 0 0; font-size: 24px; line-height: 1.25; }
p { margin: 0; }
.plant { height: 200px; align-self: center; }
.tag { align-self: center; padding: 6px 14px; border-radius: 16px; background: #fff; border: 1px solid #cfe5d5; font-weight: 600; color: var(--dark); }
.msg { font-style: italic; color: #555; }
form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
input, select { padding: 12px; font-size: 17px; border: 1px solid #bbb; border-radius: 10px; background: #fff; color: inherit; }
.btn { display: block; width: 100%; padding: 16px; border: 0; border-radius: 28px; background: var(--green); color: #fff; font-size: 18px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: default; }
h2 { margin: 12px 0 0; font-size: 18px; color: var(--dark); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.q { font-size: 20px; font-weight: 700; }
.opts, .imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opts button, .imgs button, .palette button { border: 2px solid #dbe9de; border-radius: 14px; background: #fff; color: inherit; font: inherit; cursor: pointer; }
.opts button { padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.opts span { font-size: 36px; }
.imgs button { position: relative; padding: 8px; aspect-ratio: 1; }
.imgs button:disabled { cursor: default; }
.imgs svg { display: block; width: 100%; height: auto; }
.target::after { content: "⭐"; position: absolute; top: 4px; right: 6px; font-size: 20px; }
.guess { border-style: dashed !important; border-color: var(--green) !important; border-width: 3px !important; }
/* 7 columnas: en Mitades queda una fila llena de animales, una de cosas y una de lugares (Escenas trae 7 de cada uno) */
.palette { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.palette button { padding: 4px 0; border-width: 1px; font-size: 22px; }
.sel { border-color: var(--green) !important; background: #e3f4e8 !important; }
.signal { font-size: 40px; min-height: 48px; }
.pair { display: flex; justify-content: center; gap: 40px; }
.pair div, .world { display: flex; flex-direction: column; align-items: center; }
.pair span { font-size: 52px; }
.world div { display: flex; gap: 18px; font-size: 26px; }
.world span { display: flex; flex-direction: column; align-items: center; }
.world b { font-size: 14px; color: #555; }
.tomorrow { font-size: 22px; font-weight: 700; color: var(--dark); }
.plant-box svg { display: block; height: 180px; width: auto; max-width: 100%; margin: 0 auto; }
.grow svg { animation: grow 1s ease-out; transform-origin: 50% 100%; }
@keyframes grow { from { transform: scale(.9); opacity: .6; } }
.opening > g { transform-box: fill-box; transform-origin: center; animation: open 1.8s ease-out; }
@keyframes open { from { transform: scale(.1) rotate(-120deg); } }
/* Cuando aciertan en Mitades: el mensaje en grande y la imagen acertada con fondo verde; solo el de hoy se anima */
.win { font-size: 24px; font-weight: 800; color: var(--dark); }
#now .win { animation: win .7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes win { from { transform: scale(.5); opacity: 0; } }
.imgs .target.guess { background: #e3f4e8; }
@media (prefers-reduced-motion: reduce) { .grow svg, .opening > g, #now .win { animation: none; } }
.count { font-weight: 700; color: var(--dark); }
.note { padding: 10px 14px; border-radius: 14px; background: #eaf1fb; color: #3d5a80; }
.bloom { padding: 16px; border-radius: 16px; background: #fff; }
.btn.soft { background: #fff; color: var(--green); border: 2px solid var(--green); }
label small { font-weight: 400; color: #666; }
.ejemplo { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.ejemplo .imgs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ejemplo .imgs button { padding: 3px; border-radius: 10px; }
.ejemplo .target::after { top: 0; right: 2px; font-size: 13px; }
.link { align-self: center; padding: 6px; border: 0; background: none; font: inherit; font-size: 13px; color: #666; text-align: center; cursor: pointer; }
.danger { color: #c92a2a; }
.code { font-size: 32px; font-weight: 800; letter-spacing: 4px; color: var(--dark); }
.policy { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 12px; text-align: left; line-height: 1.45; }
body::after { content: "Powered by Quanter"; padding: 0 0 16px; text-align: center; font-size: 12px; color: #999; }
.corner { position: absolute; top: 18px; width: 40px; height: 40px; display: grid; place-items: center; }
.corner img { width: 32px; height: 32px; }
.corner.left { left: 12px; }
.corner.left img { width: 46px; height: 46px; } /* la maceta tiene aire alrededor en su dibujo */
.corner.right { right: 12px; }
.ico { height: 1.4em; vertical-align: -.35em; margin-inline-end: 8px; }
.garden { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.tile { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 2px solid transparent; border-radius: 14px; background: #fff; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.tile.turn { border-color: var(--green); }
.tile .thumb svg, .tile .thumb img { display: block; width: 64px; height: 64px; }
.tile b { overflow-wrap: anywhere; }
.tile small { color: #666; font-size: 12px; line-height: 1.3; }
.badge { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; }
