:root {
  --bg: #0F172A; --card: #152038; --card-2: #1C2844; --field: #0C1324;
  --line: rgba(255, 253, 245, 0.08); --line-2: rgba(255, 253, 245, 0.16);
  --text: #FFFDF5; --muted: #A3A9B9; --dim: #6B7387;
  --accent: #FFD400; --err: #ff6b5e; --ok: #34c759;
  --title: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  --hand: "Mynerve", cursive;
  --read: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --r: 0.028em; --r2: 0.0242em; --r3: 0.014em;
  --ring: var(--r) 0 0 currentColor, calc(var(--r) * -1) 0 0 currentColor, 0 var(--r) 0 currentColor, 0 calc(var(--r) * -1) 0 currentColor,
    var(--r2) var(--r3) 0 currentColor, calc(var(--r2) * -1) var(--r3) 0 currentColor, var(--r2) calc(var(--r3) * -1) 0 currentColor, calc(var(--r2) * -1) calc(var(--r3) * -1) 0 currentColor,
    var(--r3) var(--r2) 0 currentColor, calc(var(--r3) * -1) var(--r2) 0 currentColor, var(--r3) calc(var(--r2) * -1) 0 currentColor, calc(var(--r3) * -1) calc(var(--r2) * -1) 0 currentColor;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { min-height: 100vh; background: radial-gradient(900px 420px at 80% -10%, #22305A 0%, transparent 60%), var(--bg); color: var(--text); font-family: var(--read); font-size: 15.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding: calc(22px + env(safe-area-inset-top)) 16px 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; margin-bottom: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px 22px; display: grid; gap: 20px; }
.head { display: grid; gap: 10px; }
.kk { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.rh { font-family: var(--title); font-weight: 300; text-shadow: var(--ring); }
.combo { --s: clamp(46px, 13vw, 64px); display: flex; flex-direction: column; align-items: flex-start; line-height: .92; font-weight: 300; }
.combo .big { font-size: var(--s); text-transform: uppercase; }
.combo .hand { font-family: var(--hand); color: var(--accent); font-size: calc(var(--s) * .52); margin: calc(var(--s) * .04) 0 0 calc(var(--s) * .04); transform: rotate(-3deg); transform-origin: left; padding: 0 .2em .12em 0; }
.combo.center { align-items: center; text-align: center; }
.combo.center .hand { transform-origin: center; margin-left: 0; }
.sub { color: var(--muted); }

.stars-field { border: 0; display: grid; gap: 8px; }
.stars-field legend, .field > span { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field > span small, .field small.help { color: var(--dim); }
.stars { display: flex; gap: 6px; }
.star { flex: 1; aspect-ratio: 1; max-width: 64px; border: 1px solid var(--line-2); background: var(--field); border-radius: 16px; display: grid; place-items: center; cursor: pointer; transition: transform .12s, background .15s, border-color .15s; }
.star svg { width: 58%; height: 58%; fill: none; stroke: var(--dim); stroke-width: 1.6; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.star.on { background: rgba(255, 212, 0, .12); border-color: rgba(255, 212, 0, .55); }
.star.on svg { fill: var(--accent); stroke: var(--accent); }
.star:active { transform: scale(.94); }
.star:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stars-label { font-size: 14px; color: var(--muted); min-height: 21px; }
.stars-label b { color: var(--text); }

.field { display: grid; gap: 0; }
input, textarea { width: 100%; background: var(--field); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .2s; }
textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
input:focus, textarea:focus { border-color: rgba(255, 212, 0, .6); }
.count { justify-self: end; margin-top: 6px; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.help { margin-top: 6px; font-size: 12.5px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.row2 > * { min-width: 0; }

.drop { display: grid; place-items: center; min-height: 120px; border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--field); cursor: pointer; overflow: hidden; text-align: center; padding: 14px; transition: border-color .2s; }
.drop:hover { border-color: rgba(255, 212, 0, .6); }
.drop img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; }
.drop-txt { font-size: 14px; color: var(--muted); }
.link { justify-self: start; margin-top: 8px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--accent); padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; border-radius: 99px; border: 0; background: var(--accent); color: var(--bg); font-weight: 700; font-size: 16.5px; cursor: pointer; text-decoration: none; box-shadow: 0 0 0 1px rgba(255, 212, 0, .5), 0 10px 40px rgba(255, 212, 0, .22); transition: transform .15s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: none; border: 1px solid var(--line-2); padding: 0 20px; font-weight: 600; font-size: 15px; }
.msg { min-height: 20px; font-size: 14px; text-align: center; color: var(--muted); }
.msg.err { color: var(--err); }

.done { text-align: center; justify-items: center; padding: 34px 22px; }
.ok { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--bg); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255, 212, 0, .14), 0 0 40px rgba(255, 212, 0, .35); }
.ok svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.foot { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--dim); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
