/* assets/style.css */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body.bg-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1f2937, #020617);
    color: #e5e7eb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */

.site-header {
    border-bottom: 1px solid rgba(148,163,184,.25);
    backdrop-filter: blur(16px);
    background: rgba(15,23,42,0.8);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo::before {
    content: "₿";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fef3c7, #f97316);
    color: #111827;
    font-size: 16px;
    box-shadow: 0 0 18px rgba(251,191,36,0.4);
}

.nav {
    display: flex;
    gap: 12px;
}

.nav-link {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: #9ca3af;
}

.nav-link--active {
    background: rgba(249,115,22,0.15);
    color: #fbbf24;
}

/* Main */

.site-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 32px 16px 40px;
}

.faucet-shell {
    width: 100%;
    max-width: 1120px;
    display: flex;
    justify-content: center;
}

.faucet-card,
.stats-card {
    width: 100%;
    max-width: 1024px;
    background: radial-gradient(circle at top left, rgba(248,113,113,0.18), transparent),
                radial-gradient(circle at bottom right, rgba(56,189,248,0.16), #020617);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: 0 24px 60px rgba(15,23,42,0.9);
}

/* Typography */

.title {
    font-size: 26px;
    margin: 0 0 8px;
}

.subtitle {
    margin: 0 0 18px;
    font-size: 14px;
    color: #9ca3af;
}

.accent {
    color: #facc15;
}

/* Form */

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label {
    font-size: 13px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #374151;
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    outline: none;
}

.input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249,115,22,0.4);
}

.btn {
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
}

.btn-primary {
    background: linear-gradient(90deg,#f97316,#facc15);
    color: #111827;
    width: 100%;
    margin-top: 8px;
}

.btn-secondary {
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
    border: 1px solid #4b5563;
    margin-top: 4px;
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.info {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 8px;
}

.ref-link {
    font-size: 12px;
    margin-top: 6px;
    word-break: break-all;
}

/* Captcha blocks */

.captcha-block {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(15,23,42,0.8);
    border: 1px dashed rgba(148,163,184,.6);
    font-size: 12px;
}

.iconcaptcha-container .helper {
    margin: 0;
    color: #9ca3af;
}

/* Ads & Game */

.ads-and-game {
    margin-top: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 16px;
}

.ads-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btc-game-wrapper {
    margin-top: 1rem;
}

/* Поле игры */
.btc-container {
    position: relative;
    width: 100%;
    min-height: 260px;
    border-radius: 1rem;
    background: radial-gradient(circle at 20% 20%, #111827, #020617);
    box-shadow: 0 16px 40px rgba(15,23,42,0.8);
    overflow: hidden;
    padding: 0.75rem;
}

/* Рекламные блоки внутри поля */
.btc-ad {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    border-radius: 0.6rem;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.4);
    font-size: 0.75rem;
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 25px rgba(15,23,42,0.8);
    pointer-events: auto;
    z-index: 3;
}

/* Верхний баннер — по центру */
.btc-ad--top {
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Левый нижний баннер */
.btc-ad--bottom-left {
    bottom: 8px;
    left: 8px;
}

/* Правый нижний баннер */
.btc-ad--bottom-right {
    bottom: 8px;
    right: 8px;
}

/* Кнопка старта внутри поля */
.btn-game-start {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    border-radius: 999px;
    background: linear-gradient(to right, #22c55e, #16a34a);
    border: none;
    color: #ecfdf5;
    font-weight: 600;
    box-shadow: 0 12px 35px rgba(16,185,129,0.8);
}

/* Иконка ₿ — как раньше (если ещё нет) */
.btc-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fef3c7, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #111827;
    box-shadow: 0 0 20px rgba(251,191,36,0.5);
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    transition:
        opacity .18s ease-out,
        transform .18s ease-out,
        box-shadow .18s ease-out;
    z-index: 4;
}

.btc-icon.visible {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.btc-icon.btc-icon--hit {
    transform: translate(-50%, -50%) scale(0.85);
    box-shadow: 0 0 30px rgba(251,191,36,0.8);
}

/* Статус под полем */
.btc-status {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #e5e7eb;
}

.btc-status--ok {
    color: #4ade80;
}

.btc-status--fail {
    color: #f97373;
}


.ad-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 4px;
}

.ad-body {
    font-size: 13px;
    color: #d1d5db;
}

/* Game */

.game-column {
    display: flex;
}

.btc-game {
    background: radial-gradient(circle at top, rgba(251,191,36,0.20), transparent),
                radial-gradient(circle at bottom, rgba(59,130,246,0.12), transparent);
    border-radius: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(249,115,22,0.4);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.btc-game-header {
    font-weight: 600;
    font-size: 14px;
}

.btc-game-text {
    font-size: 13px;
    color: #e5e7eb;
    margin: 6px 0 4px;
}


.btc-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fef3c7, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #111827;
    box-shadow: 0 0 20px rgba(251,191,36,0.5);
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    transition:
        opacity .18s ease-out,
        transform .18s ease-out,
        box-shadow .18s ease-out;
}

.btc-icon.visible {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.btc-icon.btc-icon--hit {
    transform: translate(-50%, -50%) scale(0.85);
    box-shadow: 0 0 30px rgba(251,191,36,0.8);
}

.btc-status {
    font-size: 12px;
    margin-top: 8px;
    min-height: 18px;
}

.btc-status--ok {
    color: #22c55e;
}

.btc-status--fail {
    color: #f97316;
}

/* Messages */

.message {
    font-size: 13px;
    margin-top: 8px;
}

.message-success {
    color: #22c55e;
}

.message-error {
    color: #f97316;
}
.message-warning {
    color: #fbbf24; /* жёлтый */
}


/* Stats */

.stats-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-top: 12px;
}

.stat-box {
    padding: 12px;
    border-radius: 14px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(75,85,99,0.8);
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
}

.stat-unit {
    font-size: 12px;
    color: #9ca3af;
}

.stats-section {
    margin-top: 20px;
}

.section-title {
    font-size: 16px;
    margin: 0 0 8px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th,
.table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(55,65,81,0.8);
    text-align: left;
}

.table--compact th,
.table--compact td {
    padding: 4px 6px;
}

.muted {
    font-size: 13px;
    color: #9ca3af;
}



/* Footer */

.site-footer {
    border-top: 1px solid rgba(148,163,184,0.25);
    background: rgba(15,23,42,0.95);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    margin-left: 10px;
}


a {
    color: #fbbf24 !important; /* BTC gold / amber-300 */
    text-decoration: none;
    transition: color .15s ease, text-shadow .2s ease;
}

a:hover {
    color: #fcd34d !important; /* amber-200 – чуть светлее */
    text-shadow: 0 0 6px rgba(251,191,36,0.7);
}

a:active,
a:visited {
    color: #f59e0b !important; /* amber-400 – чуть темнее */
}

/* underline only if explicitly needed */
.link-underline {
    text-decoration: underline;
}


/* Responsive */

@media (max-width: 768px) {
    .ads-and-game {
        grid-template-columns: minmax(0, 1fr);
    }
    .faucet-card,
    .stats-card {
        padding: 18px;
    }
}