:root {
  --ink: #F3EFE7; --ink2: #FBF9F5; --ink3: #E9E3D8; --line: #D8D1C5;
  --paper: #07070A; --muted: #5F5A66; --dim: #8A8590;
  --g: linear-gradient(90deg, #FF6A3D 0%, #FF3D7F 45%, #7B5CFF 100%);
  --hot: #FF6A3D; --pink: #FF3D7F; --violet: #7B5CFF;
}
* { box-sizing: border-box; margin: 0; }
html, body { background: var(--ink); color: var(--paper); font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.it { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.g { background: var(--g); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--pink); }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--g); box-shadow: 0 0 12px rgba(255,61,127,.5); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(.7); opacity: .6; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
.rise { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- phone ---------- */
.phone { min-height: 100dvh; display: flex; flex-direction: column; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.phone header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.chip { font-size: 12px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.phone main { flex: 1; display: flex; flex-direction: column; padding-top: 28px; }
.phone .label { font-size: 12px; color: var(--muted); }
.phone h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; margin: 12px 0 24px; font-weight: 650; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { box-shadow: 0 1px 0 rgba(7,7,10,.03); display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--ink2); font-size: 18px; line-height: 1.25; transition: border-color .2s, background .2s, transform .1s; }
.opt:active { transform: scale(.98); }
.opt .k { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid #B9B1A4; display: grid; place-items: center; font-family: 'Geist Mono', monospace; font-size: 14px; }
.opt.sel { border-color: var(--pink); background: #FCE8EE; }
.opt.sel .k { background: var(--g); border: 0; color: #07070A; font-weight: 700; }
.opt.right { border-color: #1F9D5C; }
.opt .bar { position: relative; height: 6px; border-radius: 3px; background: var(--ink3); margin-top: 8px; overflow: hidden; }
.opt .bar i { position: absolute; inset: 0 auto 0 0; background: var(--g); border-radius: 3px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.opt .grow { flex: 1; }
.opt .pc { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--muted); }
.note { margin-top: 18px; font-size: 15px; color: var(--muted); text-align: center; }
.ok { color: #1F9D5C; }
.cta { margin-top: 18px; width: 100%; padding: 17px; border-radius: 999px; background: var(--g); color: #07070A; font-weight: 700; font-size: 17px; }
.cta[disabled] { opacity: .35; }
input.word, textarea, input.short { width: 100%; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--ink2); color: var(--paper); font: inherit; font-size: 18px; outline: none; }
input.word:focus, textarea:focus, input.short:focus { border-color: var(--violet); }
textarea { min-height: 120px; resize: vertical; font-size: 16px; }
.mywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mywords span { padding: 8px 14px; border-radius: 999px; background: var(--ink3); font-size: 15px; }
.field { padding: 18px 0; border-top: 1px solid var(--line); }
.field h2 { font-size: 17px; font-weight: 600; margin-bottom: 12px; line-height: 1.3; }
.stars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stars button { padding: 12px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--ink2); font-family: 'Geist Mono', monospace; font-size: 16px; }
.stars button.sel { background: var(--g); color: #07070A; border-color: transparent; font-weight: 700; }
.scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink2); font-size: 15px; }
.pills button.sel { border-color: var(--pink); background: #FCE8EE; }
.wait { flex: 1; display: grid; place-items: center; text-align: center; }
.rings { position: relative; width: 180px; height: 180px; margin: 0 auto 28px; }
.rings i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--pink); animation: ring 2.4s ease-out infinite; opacity: 0; }
.rings i:nth-child(2) { animation-delay: .8s; border-color: var(--violet); }
.rings i:nth-child(3) { animation-delay: 1.6s; border-color: var(--hot); }
.rings b { position: absolute; inset: 72px; border-radius: 50%; background: var(--g); box-shadow: 0 0 40px rgba(255,61,127,.45); }
@keyframes ring { from { transform: scale(.3); opacity: .9; } to { transform: scale(1); opacity: 0; } }
.wait h1 { margin: 0 0 8px; }
.err { position: fixed; left: 16px; right: 16px; bottom: 16px; padding: 14px 16px; border-radius: 14px; background: #FDE2E4; color: #B4233A; font-size: 14px; text-align: center; }
.foot { text-align: center; font-size: 11px; color: var(--dim); margin-top: 24px; }
