* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #79c4ff; font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; color: #1d1d1f; touch-action: none; -webkit-user-select: none; user-select: none; overscroll-behavior: none; }
canvas { display: block; position: fixed; inset: 0; }
.layer { position: fixed; inset: 0; pointer-events: none; }
.hidden { display: none !important; }
.panel { display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 30, 50, 0.35); pointer-events: auto; }
.card { width: 100%; max-width: 340px; background: #fff; border-radius: 22px; padding: 24px 22px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.logo { display: inline-block; font-weight: 900; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #1d1d1f; padding: 5px 12px; border-radius: 999px; }
h1 { font-size: 26px; margin: 14px 0 6px; line-height: 1.1; }
h2 { font-size: 16px; margin: 0; color: #666; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.rules { font-weight: 700; color: #d7263d; margin: 6px 0; }
.sub { color: #555; font-size: 14px; margin: 6px 0 16px; }
label { display: block; text-align: left; font-size: 13px; color: #555; margin-bottom: 6px; }
.phoneRow { display: flex; align-items: center; border: 2px solid #ddd; border-radius: 12px; padding: 0 12px; }
.phoneRow span { font-weight: 700; margin-right: 6px; }
.phoneRow input { flex: 1; border: 0; outline: 0; font-size: 20px; padding: 12px 0; width: 100%; background: transparent; }
.tiny { font-size: 12px; color: #777; margin: 8px 0 0; }
.tiny a { color: #0a84ff; }
.btn { width: 100%; margin-top: 16px; font-size: 18px; font-weight: 800; padding: 14px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #ff6b6b, #d7263d); box-shadow: 0 8px 20px rgba(215,38,61,.35); cursor: pointer; }
.btn:disabled { opacity: .6; }
.big { font-size: 64px; font-weight: 900; line-height: 1; margin: 6px 0; }
.rub { font-size: 20px; margin-bottom: 14px; }
.rub b { color: #d7263d; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 34px; font-weight: 800; letter-spacing: .18em; background: #fff4e5; border: 2px dashed #f0a04b; border-radius: 14px; padding: 12px; color: #1d1d1f; }
.code.pending { color: #aaa; }
.code.muted { font-size: 18px; letter-spacing: 0; color: #888; background: #f3f3f3; border-color: #ccc; }
#score { position: absolute; top: max(18px, env(safe-area-inset-top)); left: 0; right: 0; text-align: center; font-size: 56px; font-weight: 900; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.25), 0 0 12px rgba(0,0,0,.2); }
.hint { position: absolute; top: 58%; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; font-size: 18px; text-shadow: 0 2px 6px rgba(0,0,0,.4); animation: pulse 1.2s infinite; }
.warn { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 16px; right: 16px; text-align: center; background: rgba(215,38,61,.9); color: #fff; font-size: 12px; padding: 8px; border-radius: 10px; }
.shake { animation: shake .35s; }
@keyframes pulse { 50% { opacity: .5; } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.meta { margin-top: 8px; font-size: 13px; color: #444; font-weight: 600; font-variant-numeric: tabular-nums; }
