:root { --bg: #1a0b1e; --surface: #2a1430; --line: #43234b; --text: #fbeff5; --muted: #c2a6bd; --accent: #ff4d8d; --c: #ff4d8d; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(120% 80% at 50% 0%, #3a1240 0%, var(--bg) 60%); background-color: var(--bg); color: var(--text); font-family: Outfit, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; }
.page { padding: calc(20px + env(safe-area-inset-top, 0px)) 18px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; min-height: 100dvh; }
.center { text-align: center; justify-content: center; align-items: stretch; }
h1 { margin: 0; font-size: 1.9rem; font-weight: 800; } h2 { margin: 10px 0 0; font-size: 1.2rem; }
.lead { font-size: 1.1rem; margin: 0; } .muted { color: var(--muted); margin: 0; } .small { font-size: .85rem; }
.logo { font-size: 4rem; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 6px 16px; text-align: left; }
.btn { font: inherit; font-weight: 600; font-size: 1.05rem; padding: 15px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.btn.primary { background: linear-gradient(135deg, #ff4d8d, #b5179e); border: 0; box-shadow: 0 8px 24px rgba(255, 77, 141, .3); }
.wide { width: 100%; }
.link { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.lbl { font-weight: 600; color: var(--muted); margin-bottom: -8px; }
.field { font: inherit; font-size: 1.1rem; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.deck { flex: 1; display: grid; place-items: center; min-height: 340px; }
.card { position: relative; width: 100%; min-height: 340px; border-radius: 26px; padding: 28px 22px; background: linear-gradient(160deg, var(--c), #2a1430 85%); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; touch-action: none; user-select: none; cursor: grab; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.card .icon { font-size: 4.5rem; } .card h2 { font-size: 1.6rem; margin-top: 12px; }
.tag { position: absolute; top: 16px; left: 16px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.3); padding: 5px 10px; border-radius: 99px; }
.stamp { position: absolute; top: 22px; font-weight: 800; font-size: 1.8rem; padding: 2px 12px; border: 4px solid; border-radius: 10px; opacity: 0; transition: opacity .15s; }
.stamp.yes { right: 18px; color: #4ade80; transform: rotate(12deg); } .stamp.no { left: 18px; color: #f87171; transform: rotate(-12deg); }
.card.lean-yes .stamp.yes, .card.lean-no .stamp.no { opacity: 1; } .card.lean-yes .tag, .card.lean-no .tag { opacity: 0; }
.choices { display: flex; justify-content: center; gap: 22px; }
.round { width: 68px; height: 68px; border-radius: 50%; font-size: 1.7rem; border: 2px solid; background: var(--surface); cursor: pointer; }
.round.no { color: #f87171; } .round.maybe { color: #fbbf24; width: 56px; height: 56px; align-self: center; } .round.yes { color: #4ade80; }
.list, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; padding: 10px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.chip.on, .chip[aria-pressed="true"] { border-color: var(--accent); background: rgba(255, 77, 141, .18); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mat { font: inherit; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.mat span { font-size: 1.5rem; } .mat[aria-pressed="true"] { border-color: var(--accent); background: rgba(255, 77, 141, .18); }
.stages { display: flex; gap: 6px; } .stages i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); } .stages i.on { background: var(--c); }
.stage-new { margin: 0; text-align: center; font-weight: 800; color: var(--c); letter-spacing: .04em; animation: pop .5s; }
.task { position: relative; flex: 1; border-radius: 26px; padding: 56px 22px 24px; background: linear-gradient(170deg, color-mix(in srgb, var(--c) 55%, #2a1430), #2a1430 80%); display: flex; flex-direction: column; justify-content: center; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.4); animation: pop .35s; }
.task .who { margin: 0; color: var(--muted); font-weight: 600; } .task .text { margin: 0; font-size: 1.45rem; line-height: 1.4; }
.timer { align-self: flex-start; background: rgba(0,0,0,.25); } .timer.running { border-color: var(--c); }
.row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
#toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 40px); opacity: 0; background: #000; color: #fff; padding: 10px 16px; border-radius: 12px; transition: .2s; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
