@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Nunito:wght@500;700;800;900&display=swap');

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    color: #fff;
    display: flex;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
    background: #05060d;
}

/* repeating ROBUX wordmark backdrop */
.bg-pattern {
    position: fixed;
    inset: -10% -20%;
    z-index: 0;
    pointer-events: none;
    transform: rotate(-9deg);
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0.9;
}
.bg-pattern-row {
    white-space: nowrap;
    font-family: 'Russo One', sans-serif;
    font-size: 34px;
    letter-spacing: 2px;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(58, 160, 255, 0.3);
}
.bg-pattern-row:nth-child(even) {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.07);
    color: rgba(255,255,255,0.04);
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(8, 14, 32, 0) 0%, #05060d 78%),
        linear-gradient(180deg, rgba(5,8,20,0.35), rgba(5,6,13,0.88));
}

.glow-orb {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
}
.glow-orb.orb1 { width: 280px; height: 280px; top: -80px; left: -60px; background: #1d4ed8; }
.glow-orb.orb2 { width: 240px; height: 240px; bottom: -60px; right: -60px; background: #06b6d4; }

.bg-cube {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02));
    border: 2px solid rgba(120,170,255,0.18);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: float 7s ease-in-out infinite;
}
.bg-cube.c3 { width: 50px; height: 50px; bottom: 10%; left: 6%; transform: rotate(10deg); animation-delay: 1s; background: linear-gradient(145deg, rgba(58,160,255,0.4), rgba(58,160,255,0.05)); }
.bg-cube.c5 { width: 32px; height: 32px; top: 10%; right: 10%; transform: rotate(-16deg); animation-delay: 2s; background: linear-gradient(145deg, rgba(6,182,212,0.4), rgba(6,182,212,0.05)); }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(10deg); }
    50% { transform: translateY(-14px) rotate(10deg); }
}

/* ---------- Плавающие персонажи на фоне ---------- */
.floaty-card {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    width: 150px;
    height: 150px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(58,160,255,0.4);
    background: linear-gradient(160deg, rgba(58,160,255,0.1), rgba(6,10,24,0.3));
    box-shadow: 0 0 0 4px rgba(58,160,255,0.08), 0 20px 30px rgba(0,0,0,0.5), 0 0 30px rgba(58,160,255,0.25);
    opacity: 0.8;
}
.floaty-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.floaty-card.f1 { top: 4%; left: -34px; animation: card-float 6s ease-in-out infinite; }
.floaty-card.f2 { bottom: 16%; right: -30px; width: 130px; height: 130px; animation: card-float 6.5s ease-in-out infinite 1s; }
.floaty-card.f2.flip img { transform: scaleX(-1); }
.floaty-card.f3 { bottom: 3%; left: -24px; width: 120px; height: 120px; border-color: rgba(6,182,212,0.45); box-shadow: 0 0 0 4px rgba(6,182,212,0.08), 0 20px 30px rgba(0,0,0,0.5), 0 0 30px rgba(6,182,212,0.25); animation: card-float 5.5s ease-in-out infinite 0.4s; }

@keyframes card-float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-14px) rotate(3deg); }
}

@media (max-width: 480px) {
    .floaty-card.f1 { width: 100px; height: 100px; top: 1%; left: -22px; }
    .floaty-card.f2 { width: 88px; height: 88px; bottom: 15%; right: -18px; }
    .floaty-card.f3 { width: 80px; height: 80px; bottom: 2%; left: -16px; }
}

/* ---------- Монеты Robux на фоне ---------- */
.mini-coin {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff7cf, #ffd23f 45%, #e2a300 80%, #8a5e00 100%);
    box-shadow: 0 0 0 2px #4f3700, 0 8px 16px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    color: #6b4900;
}
.mini-coin::after { content: "R$"; }
.mini-coin.m1 { width: 30px; height: 30px; font-size: 10px; top: 16%; right: 8%; animation: coin-float 4.5s ease-in-out infinite, spin-coin 3s linear infinite; }
.mini-coin.m2 { width: 22px; height: 22px; font-size: 7px; top: 38%; left: 6%; animation: coin-float 5.5s ease-in-out infinite 0.6s, spin-coin 3.6s linear infinite; }
.mini-coin.m3 { width: 26px; height: 26px; font-size: 8px; bottom: 30%; right: 14%; animation: coin-float 5s ease-in-out infinite 1.1s, spin-coin 3.3s linear infinite; }
.mini-coin.m4 { width: 18px; height: 18px; font-size: 6px; top: 64%; right: 4%; animation: coin-float 4.8s ease-in-out infinite 0.3s, spin-coin 2.8s linear infinite; }

@keyframes coin-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.app {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.coin {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle at 35% 30%, #fff7cf, #ffd23f 45%, #e2a300 80%, #8a5e00 100%);
    box-shadow: 0 0 0 3px #4f3700, 0 6px 14px rgba(0,0,0,0.45);
    animation: spin-coin 3.2s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    color: #6b4900;
    font-size: 15px;
    letter-spacing: -0.5px;
}
.coin::after { content: "R$"; }
@keyframes spin-coin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.brand h1 {
    font-family: 'Russo One', sans-serif;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 3px 0 #1342b3, 0 6px 18px rgba(58,160,255,0.45);
}

.card {
    background: rgba(13, 18, 36, 0.86);
    border: 1px solid rgba(120,170,255,0.18);
    border-radius: 22px;
    padding: 24px 20px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.55), 0 0 30px rgba(29,78,216,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.step { display: none; }
.step.active { display: block; animation: pop-in 0.25s ease; }

@keyframes pop-in {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.center { text-align: center; }

.card h2 {
    font-family: 'Russo One', sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 0 0 8px;
    font-size: 20px;
    text-shadow: 0 2px 0 rgba(0,0,0,0.4);
}

.card p.hint {
    color: #93a0c2;
    font-size: 13px;
    margin: 0 0 16px;
}

label {
    display: block;
    font-size: 13px;
    color: #c6cfec;
    margin-bottom: 6px;
    font-weight: 800;
}

input[type=text], textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid rgba(120,170,255,0.22);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 14px;
}
textarea { min-height: 80px; resize: vertical; }

input[type=text]:focus, textarea:focus {
    outline: none;
    border-color: #3aa0ff;
    box-shadow: 0 0 0 3px rgba(58,160,255,0.22);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #3aa0ff, #1d4ed8);
    color: #fff;
    font-family: 'Russo One', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 6px 0 #0e2c80, 0 10px 22px rgba(29,78,216,0.4);
    transition: transform 0.05s;
    margin-bottom: 12px;
    display: block;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.btn:last-child { margin-bottom: 0; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #0e2c80; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.alt {
    background: linear-gradient(180deg, #232a40, #161b2c);
    box-shadow: 0 6px 0 #090c16, 0 8px 18px rgba(0,0,0,0.4);
}

.btn.support-btn {
    background: linear-gradient(180deg, #06b6d4, #0e7490);
    box-shadow: 0 6px 0 #0a4655, 0 8px 18px rgba(0,0,0,0.4);
}

.btn.secondary {
    background: linear-gradient(180deg, #232a40, #161b2c);
    box-shadow: 0 6px 0 #090c16, 0 8px 18px rgba(0,0,0,0.4);
    margin-top: 4px;
}

.howto-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(120,170,255,0.12);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}
.howto-item .num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(180deg, #3aa0ff, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Russo One', sans-serif;
    font-size: 13px;
}

.link-card {
    display: block;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(120,170,255,0.2);
    border-radius: 12px;
    padding: 14px;
    color: #7dd3fc;
    text-decoration: none;
    font-weight: 800;
    margin-bottom: 16px;
}

.instruction-box {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 14px;
    font-size: 13.5px;
    line-height: 1.6;
    white-space: pre-wrap;
    margin-bottom: 16px;
    border: 1px solid rgba(120,170,255,0.14);
    color: #dbe2f5;
}

.status-msg {
    text-align: center;
    font-size: 14px;
    margin: 10px 0;
    min-height: 18px;
    font-weight: 700;
}
.status-msg.error { color: #ff8d8d; }
.status-msg.success { color: #5eead4; }

.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid rgba(255,255,255,0.15);
    border-top-color: #3aa0ff;
    border-radius: 50%;
    margin: 14px auto;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 14px;
    border-radius: 18px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.result-icon span { transform: rotate(-45deg); font-size: 30px; }
.result-icon.ok { background: rgba(6, 182, 212, 0.18); border: 2px solid #06b6d4; }
.result-icon.fail { background: rgba(220, 60, 60, 0.2); border: 2px solid #dc3c3c; }

.link-box {
    word-break: break-all;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 10px;
    font-size: 12.5px;
    margin-bottom: 14px;
    color: #7dd3fc;
}

.support-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.22);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 14px;
}
.support-row .ico { font-size: 18px; }

.tag { padding: 2px 8px; border-radius: 8px; font-size: 11px; }
.tag.free { background: rgba(6,182,212,0.2); color: #5eead4; }
.tag.used { background: rgba(220,60,60,0.2); color: #ff8d8d; }
