:root { color-scheme:dark; --pink:#ff20a5; --hot:#ff5cbd; --red:#ff2846; --ink:#21021a; --cream:#fff5fb; --glow-one:rgba(255,92,189,.54); --glow-two:rgba(255,40,70,.54); --bg-start:#28001f; --bg-middle:#65002e; --bg-end:#28000f; --title-shadow:#b40053; --button-depth:#9d003d; --button-text:#fff; }
:root[data-theme="dark"] { --hot:#9d2946; --red:#4b0719; --glow-one:rgba(140,32,61,.36); --glow-two:rgba(47,4,17,.45); --bg-start:#08050a; --bg-middle:#260b19; --bg-end:#030204; --title-shadow:#5f1028; --button-depth:#3f0616; }
:root[data-theme="silver"] { --hot:#d2d6db; --red:#79828d; --glow-one:rgba(225,229,235,.33); --glow-two:rgba(128,139,151,.35); --bg-start:#1d2229; --bg-middle:#4d5661; --bg-end:#15191f; --title-shadow:#69737e; --button-depth:#535b65; --button-text:#13171c; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { min-height:100vh; min-height:100dvh; margin:0; color:var(--cream); font-family:Arial,Helvetica,sans-serif; background:radial-gradient(circle at 15% 20%,var(--glow-one),transparent 27rem),radial-gradient(circle at 84% 82%,var(--glow-two),transparent 26rem),linear-gradient(135deg,var(--bg-start),var(--bg-middle) 48%,var(--bg-end)); transition:background .35s ease; }
.site-shell { width:100%; min-height:100dvh; display:grid; justify-items:center; align-content:center; gap:.75rem; padding:1.25rem 0; }
.theme-hud { position:absolute; z-index:10; top:.8rem; right:.8rem; display:flex; padding:3px; border:1px solid rgba(255,255,255,.44); border-radius:999px; background:rgba(19,3,16,.62); box-shadow:0 8px 24px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.2); backdrop-filter:blur(10px); }
.theme-hud__indicator { position:absolute; inset:3px auto 3px 3px; z-index:0; width:38px; border-radius:999px; background:rgba(255,255,255,.2); transition:transform .2s ease; }
.theme-hud[data-active-theme="dark"] .theme-hud__indicator { transform:translateX(38px); }
.theme-hud[data-active-theme="silver"] .theme-hud__indicator { transform:translateX(76px); }
.theme-hud__button { position:relative; z-index:1; display:grid; place-items:center; min-width:38px; min-height:38px; padding:0; border:0; background:transparent; box-shadow:none; }
.theme-hud__button:hover { transform:none; box-shadow:none; }
.theme-hud__button:active { transform:none; box-shadow:none; }
.theme-dot { width:15px; height:15px; border:1px solid rgba(255,255,255,.7); border-radius:50%; box-shadow:inset 0 1px rgba(255,255,255,.4),0 1px 4px rgba(0,0,0,.45); }
.theme-dot--fuchsia { background:#ff20a5; }
.theme-dot--dark { background:#260b19; }
.theme-dot--silver { background:#cfd4da; }
.banner-reserve { display:grid; place-items:center; width:min(92vw,728px); height:90px; border:1px dashed rgba(255,255,255,.58); border-radius:12px; color:#fff0f8; font-size:.76rem; font-weight:900; letter-spacing:.2em; text-transform:uppercase; background:rgba(255,255,255,.1); }
.card { position: relative; width: min(92vw,720px); margin: 1.25rem; padding: clamp(1.25rem,3.8vw,2.6rem); overflow: hidden; border: 1px solid rgba(255,255,255,.5); border-radius: 32px; background: linear-gradient(145deg,rgba(255,255,255,.22),rgba(255,255,255,.07)); box-shadow: 0 24px 70px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.35); backdrop-filter: blur(18px); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg,rgba(255,255,255,.22),transparent 30%,transparent 74%,rgba(255,255,255,.08)); }
.eyebrow,.note,h1,.intro,form,.result,.saved { position: relative; }
.eyebrow { margin: 0 0 .5rem; color: #ffd1ec; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia,serif; font-size: clamp(2.35rem,7vw,4.6rem); font-style: italic; line-height: .9; text-shadow: 0 3px 0 var(--title-shadow),0 9px 25px var(--glow-one); }
.intro { max-width: 48ch; margin: 1rem 0 1.35rem; color: #ffe8f6; font-size: .94rem; line-height: 1.45; }
form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
label { display: grid; gap: .45rem; color: #fff0f9; font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
select,button { font: inherit; }
select { width: 100%; min-height: 48px; padding: .82rem 1rem; border: 1px solid rgba(255,255,255,.55); border-radius: 13px; outline: none; color: var(--ink); background: rgba(255,255,255,.92); box-shadow: inset 0 2px 3px rgba(0,0,0,.12); }
select:focus-visible,button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
button { min-height:48px; padding:1rem 1.35rem; touch-action:manipulation; cursor:pointer; border:1px solid #ffd4ed; border-radius:999px; color:var(--button-text); font-weight:900; letter-spacing:.07em; text-transform:uppercase; background:linear-gradient(135deg,var(--hot),var(--red)); box-shadow:0 7px 0 var(--button-depth),0 14px 28px rgba(70,0,35,.45),inset 0 1px rgba(255,255,255,.6); transition:transform .16s ease,box-shadow .16s ease,background .25s ease; }
@media (hover:hover) { button:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--button-depth),0 17px 30px rgba(70,0,35,.48),inset 0 1px rgba(255,255,255,.6); } }
button:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--button-depth); }
.primary { grid-column: 1 / -1; margin-top: .55rem; }
.secondary { padding: .58rem .9rem; font-size: .72rem; background: rgba(255,255,255,.13); box-shadow: inset 0 1px rgba(255,255,255,.35); }
.result { min-height: 8.7rem; margin-top: 1.35rem; padding: 1rem 1.35rem; border: 1px solid rgba(255,255,255,.65); border-radius: 20px; text-align: center; background: rgba(49,0,31,.48); box-shadow: inset 0 1px rgba(255,255,255,.16); }
.result small { display: block; color: #ffc5e6; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
output { display: block; margin-top: .48rem; font-family: Georgia,serif; font-size: clamp(2rem,6vw,4.2rem); font-style: italic; font-weight: 700; line-height: 1.08; text-shadow: 0 2px var(--title-shadow),0 6px 16px var(--glow-one); }
.result.reveal output { animation: reveal .5s cubic-bezier(.2,1.4,.4,1); }
.tagline { min-height: 1.4rem; margin: .5rem 0 1rem; color: #ffe0f2; font-size: .86rem; }
.result-actions { display: flex; justify-content: center; gap: .7rem; }
.saved { margin-top: 1.05rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.24); }
.saved h2 { margin: 0 0 .7rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.saved ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.saved li { display: flex; align-items: center; gap: .3rem; max-width: 100%; padding: .25rem .25rem .25rem .65rem; border-radius: 999px; color: #ffe5f4; font-family: Georgia,serif; background: rgba(255,255,255,.12); }
.saved li button { min-height: 28px; min-width: 28px; padding: .2rem; border: 0; background: transparent; box-shadow: none; color: #fff; font-size: 1rem; line-height: 1; }
.clear-button { min-height: 34px; margin-top: .7rem; padding: .38rem .7rem; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); box-shadow: none; color: #ffe0f0; font-size: .67rem; }
.is-rolling { pointer-events:none; }
.note { margin: .9rem 0 0; color: #ffd8ed; font-size: .7rem; text-align: center; }
.possibilities { margin: .45rem 0 0; color: #fff0f8; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-align: center; }
.visit-count { margin:.35rem 0 0; color:rgba(255,240,248,.8); font-size:.72rem; text-align:center; }
@keyframes reveal { from { opacity: 0; transform: scale(.72) rotate(-2deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@media (max-width:600px) { body { background:linear-gradient(160deg,var(--bg-start),var(--bg-middle) 48%,var(--bg-end)); } .site-shell { display:block; padding:0; } .theme-hud { top:.55rem; right:.55rem; } .banner-reserve { width:100%; height:50px; border-right:0; border-left:0; border-radius:0; } .card { width:100%; min-height:100dvh; margin:0; padding:max(4.4rem,env(safe-area-inset-top)) max(1rem,env(safe-area-inset-right)) max(1.8rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left)); border-right:0; border-left:0; border-radius:0; } h1 { font-size:clamp(2.7rem,15vw,4.3rem); } .intro { margin-bottom:1.1rem; } form { grid-template-columns:1fr; gap:.85rem; } label { gap:.35rem; font-size:.86rem; } .secondary { min-height:46px; padding:.7rem 1rem; } .primary { margin-top:.25rem; } .result { min-height:8.4rem; margin-top:1.15rem; padding:1rem; } output { overflow-wrap:anywhere; font-size:clamp(2rem,11vw,3.4rem); } .saved { margin-top:1rem; } .saved ol { gap:.38rem; } .saved li { max-width:100%; overflow-wrap:anywhere; } }
@media (max-width:360px) { .card { padding-right: .8rem; padding-left: .8rem; } .result-actions { display: block; } .result-actions button { width: 100%; } }
@media (max-height:620px) and (orientation:landscape) { .card { margin: 0; padding: 1.25rem; } .intro { margin: 1rem 0; } .result { margin-top: 1.25rem; } }
@media (prefers-reduced-motion:reduce) { *,*::before { animation: none !important; transition: none !important; } }
