/* Elevate Spicy Safety — the Elevate Spicy look: black, the fine honeycomb, rose-gold headings, purple-to-chilli buttons. Phone first. */
:root {
  --gold: #d9a878; --gold-hi: #f6e4cf; --gold-lo: #b47f52; --gold-line: rgba(216, 168, 120, .26);
  --gold-grad: linear-gradient(180deg, #f6e4cf, #d9a878 56%, #b47f52);
  --cta: linear-gradient(100deg, #7c3aed 0%, #a12bd6 46%, #d4212b 100%);
  --purple: #8d3dff; --chilli: #d4212b; --ok: #2fb36d; --warn: #e3a23a; --bad: #e0475b;
  --font: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif; --serif: 'Cormorant Garamond', Georgia, serif;
}
:root[data-theme="dark"] {
  --bg: #060309; --panel: rgba(255, 255, 255, .05); --ink: #f3ecff; --muted: rgba(243, 236, 255, .68); --line: rgba(243, 236, 255, .12); --field: rgba(255, 255, 255, .06);
  --hex: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2756%27%20height=%27100%27%3E%3Cpath%20d=%27M28%2066L0%2050L0%2016L28%200L56%2016L56%2050L28%2066L28%20100L28%20132L56%20116L56%2084L28%20100L28%2066L0%2084L0%20116L28%20132L28%20100%27%20fill=%27none%27%20stroke=%27%23a074e8%27%20stroke-opacity=%27.07%27%20stroke-width=%271.1%27/%3E%3C/svg%3E");
  --glow-a: rgba(116, 74, 206, .13); --glow-b: rgba(212, 33, 43, .10); --heading: var(--gold-grad); --tabs: rgba(10, 6, 14, .92);
}
:root[data-theme="light"] {
  --bg: #f7f3ee; --panel: rgba(255, 255, 255, .86); --ink: #1f1620; --muted: #5f525e; --line: rgba(31, 22, 32, .13); --field: #fffdfb;
  --hex: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20width=%2756%27%20height=%27100%27%3E%3Cpath%20d=%27M28%2066L0%2050L0%2016L28%200L56%2016L56%2050L28%2066L28%20100L28%20132L56%20116L56%2084L28%20100L28%2066L0%2084L0%20116L28%20132L28%20100%27%20fill=%27none%27%20stroke=%27%236b3fb8%27%20stroke-opacity=%27.09%27%20stroke-width=%271%27/%3E%3C/svg%3E");
  --glow-a: rgba(124, 58, 237, .07); --glow-b: rgba(212, 33, 43, .05); --heading: linear-gradient(180deg, #b47f52, #8a5a36 70%, #6e4426); --tabs: rgba(255, 255, 255, .95);
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); font-size: 1.0625rem; line-height: 1.5; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
.honey { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(70vmax 55vmax at 88% 12%, var(--glow-a), transparent 62%), radial-gradient(70vmax 55vmax at 92% 92%, var(--glow-b), transparent 64%), var(--hex) 0 0 / 84px 150px repeat; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold); }
.top { display: flex; align-items: center; gap: .75rem; padding: calc(.75rem + env(safe-area-inset-top)) 1rem .75rem; max-width: 40rem; margin: 0 auto; }
.top .wm { height: 2.4rem; width: auto; }
.top-title, h1, h2 { font-family: var(--serif); font-weight: 600; background: var(--heading); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-title { font-size: 1.5rem; flex: 1; }
h1 { font-size: 2rem; line-height: 1.15; margin: .25rem 0 .5rem; }
h2 { font-size: 1.45rem; margin: 1.25rem 0 .5rem; }
.icon-btn { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--gold-line); background: var(--field); cursor: pointer; }
main { max-width: 40rem; margin: 0 auto; padding: 0 1rem 1rem; outline: none; }
.card { background: var(--panel); border: 1px solid var(--gold-line); border-radius: 20px; padding: 1.25rem; margin: .9rem 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card.alarm { border-color: var(--bad); box-shadow: 0 0 0 2px rgba(224, 71, 91, .35) inset; }
.muted { color: var(--muted); } .center { text-align: center; } .pad { padding: 2rem 0; } .small { font-size: .9rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.25rem; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; background: var(--cta); color: #fff; text-decoration: none; }
.btn.ghost { background: var(--field); color: var(--ink); border: 1px solid var(--gold-line); }
.btn.ok { background: linear-gradient(100deg, #1f9d5a, #2fb36d); }
.btn.danger { background: linear-gradient(100deg, #b31b2a, #e0475b); }
.btn.big { width: 100%; min-height: 3.6rem; font-size: 1rem; }
.btn.sm { min-height: 2.4rem; padding: .45rem .9rem; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible, .tabs a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; } .row > .btn { flex: 1 1 auto; }
.stack > * + * { margin-top: .6rem; }
label.lab { display: block; font-weight: 500; margin: .9rem 0 .35rem; }
.in { width: 100%; min-height: 3rem; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--field); }
textarea.in { min-height: 5rem; resize: vertical; }
.in:focus { outline: 2px solid var(--gold-line); border-color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 2.6rem; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--field); cursor: pointer; }
.chip.on { border-color: var(--gold); background: rgba(216, 168, 120, .16); }
.opt { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem; border: 1px solid var(--line); border-radius: 14px; margin: .5rem 0; cursor: pointer; background: var(--field); }
.opt.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.opt input { margin-top: .35rem; accent-color: #a12bd6; width: 1.15rem; height: 1.15rem; }
.opt b { display: block; }
.timer { font-family: var(--font); font-variant-numeric: tabular-nums lining-nums; font-size: 3rem; font-weight: 600; text-align: center; line-height: 1; margin: .5rem 0; }
.status { text-align: center; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.status.bad { color: var(--bad); } .status.warn { color: var(--warn); } .status.good { color: var(--ok); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.alert { padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--line); margin: .55rem 0; background: var(--field); }
.alert.urgent { border-color: var(--bad); background: rgba(224, 71, 91, .12); }
.alert.new { box-shadow: 0 0 0 2px var(--gold-line) inset; }
.alert b { display: block; } .alert time { font-size: .85rem; color: var(--muted); }
.codebox { font-family: ui-monospace, Menlo, monospace; font-size: 1.5rem; letter-spacing: .12em; text-align: center; padding: .8rem; border: 1px dashed var(--gold); border-radius: 14px; user-select: all; word-break: break-all; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; background: var(--tabs); border-top: 1px solid var(--gold-line); padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom)); z-index: 5; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tabs a { position: relative; display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 4.5rem; padding: .3rem; color: var(--muted); text-decoration: none; font-size: .72rem; letter-spacing: .08em; font-weight: 600; }
.tabs a.on { color: var(--gold); } .tabs .ti { font-size: 1.25rem; line-height: 1.2; }
.tabs .dot { position: absolute; top: .2rem; right: 1.2rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--bad); }
.toast { position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(1rem); opacity: 0; transition: .25s; background: #1d1424; color: #fff; padding: .7rem 1.1rem; border-radius: 14px; border: 1px solid var(--gold-line); max-width: calc(100vw - 2rem); z-index: 9; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); } .toast.bad { border-color: var(--bad); }
.hero-wm { display: block; width: min(22rem, 86%); margin: 1rem auto .25rem; }
.terms p, .terms li { color: var(--muted); }
@media (min-width: 48rem) { h1 { font-size: 2.4rem; } .card { padding: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
