/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body.app-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #e5e7eb;
    background: #020617;
    position: relative;
    overflow-x: hidden;
}

/* Animated background */
.app-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(56,189,248,0.18), transparent 55%),
        radial-gradient(circle at 90% 10%, rgba(244,114,182,0.16), transparent 55%),
        radial-gradient(circle at 50% 80%, rgba(129,140,248,0.18), transparent 55%);
    filter: blur(8px);
    z-index: -2;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(15,23,42,0.9), rgba(15,23,42,0.7), transparent);
    backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 12px;
}
.ad {
    margin: 18px auto;
    text-align: center;
}

.ad-300x250 {
    width: 300px;
    height: 250px;
}

.ad-728x90 {
    width: 728px;
    height: 90px;
}

.ad-468x60 {
    width: 468px;
    height: 60px;
}


.ad-wrapper-728 {
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
}

.ad-728x90 {
    width: 728px;
    height: 90px;
}

/* Адаптация под мобильные */
@media (max-width: 760px) {
    .ad-728x90 {
        transform: scale(0.75);
        transform-origin: top center;
        width: 728px;
        height: 90px;
    }
}

@media (max-width: 600px) {
    .ad-728x90 {
        transform: scale(0.60);
        transform-origin: top center;
    }
}

@media (max-width: 480px) {
    .ad-728x90 {
        transform: scale(0.50);
        transform-origin: top center;
    }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .ad-728x90,
    .ad-468x60 {
        transform: scale(0.8);
        transform-origin: top center;
    }
}

@media (max-width: 480px) {
    .ad-728x90,
    .ad-468x60 {
        transform: scale(0.65);
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hit-callout {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.hit-head {
    color: #f97316;
    background: rgba(248, 113, 113, 0.15);
}

.hit-body {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.18);
}

.hit-legs {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.18);
}


.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, #f97316, #a855f7);
    color: #0b1120;
    font-size: 16px;
    box-shadow: 0 0 16px rgba(248, 113, 113, 0.8);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.brand-sub {
    font-size: 11px;
    color: #9ca3af;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-link {
    font-size: 13px;
    color: #cbd5f5;
    text-decoration: none;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #38bdf8, #a855f7);
    transition: width 0.15s ease-out;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main/footers */
.site-main {
    padding: 26px 0 40px;
}

.site-footer {
    border-top: 1px solid rgba(148,163,184,0.35);
    padding: 14px 0 22px;
    background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.98));
}

.footer-inner {
    display: flex;
    justify-content: center;
    font-size: 12px;
    color: #94a3b8;
}

/* Buttons */
.btn-primary,
.btn-ghost,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    background: none;
    color: inherit;
    transition: transform 0.1s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    color: #f9fafb;
    box-shadow: 0 10px 30px rgba(129, 140, 248, 0.55);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(129, 140, 248, 0.8);
}

.btn-ghost {
    border-color: rgba(148,163,184,0.7);
    color: #e5e7eb;
    background: rgba(15,23,42,0.7);
}

.btn-ghost:hover {
    background: rgba(30,64,175,0.75);
    box-shadow: 0 8px 20px rgba(15,23,42,0.7);
}

.btn-danger {
    border-color: rgba(248,113,113,0.7);
    color: #fecaca;
    background: rgba(30,15,15,0.8);
}

.btn-danger:hover {
    background: rgba(127,29,29,0.85);
}

/* Hero on index */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 36px;
}

.hero-tagline {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #a5b4fc;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
    text-shadow: 0 0 18px rgba(94,234,212,0.45);
}

.hero-title span.accent {
    background: linear-gradient(90deg, #38bdf8, #a855f7, #f97316);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin-top: 10px;
    font-size: 15px;
    color: #cbd5e1;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(129,140,248,0.6);
    color: #e2e8f0;
    box-shadow: 0 0 10px rgba(129,140,248,0.5);
}

.hero-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Anime character card */
.hero-art-card {
    position: relative;
    border-radius: 26px;
    padding: 18px;
    background: radial-gradient(circle at 20% 0%, rgba(248,250,252,0.18), rgba(15,23,42,0.98));
    border: 1px solid rgba(148,163,184,0.55);
    box-shadow:
      0 18px 60px rgba(15,23,42,0.9),
      0 0 30px rgba(96,165,250,0.6);
}

.hero-art-tag {
    font-size: 11px;
    color: #a5b4fc;
    margin-bottom: 8px;
}

.hero-art-image-wrap {
    display: flex;
    justify-content: center;
    margin: 6px 0 10px;
}

.hero-art-image {
    width: 100%;
    max-width: 260px;
    border-radius: 999px;
    box-shadow:
      0 16px 40px rgba(15,23,42,0.9),
      0 0 25px rgba(236,72,153,0.6);
    animation: floaty 4s ease-in-out infinite;
}

.hero-art-note {
    font-size: 12px;
    color: #e5e7eb;
    opacity: 0.8;
}

@keyframes floaty {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Panels / cards */
.panel {
    background: rgba(15,23,42,0.94);
    border-radius: 22px;
    border: 1px solid rgba(148,163,184,0.6);
    padding: 18px 18px 20px;
    box-shadow: 0 12px 40px rgba(15,23,42,0.9);
    margin-bottom: 18px;
}

.panel-glass {
    background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(15,23,42,0.9));
    border-color: rgba(129,140,248,0.6);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.panel-title {
    font-size: 15px;
    font-weight: 600;
}

.panel-sub {
    font-size: 12px;
    color: #9ca3af;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

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

.form-label {
    font-size: 12px;
    color: #e5e7eb;
}

.input {
    border-radius: 11px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.92);
    padding: 8px 10px;
    font-size: 14px;
    color: #e5e7eb;
}

.input::placeholder {
    color: #64748b;
}

/* Alerts */
.alert {
    padding: 8px 11px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 10px;
}

.alert-success {
    background: rgba(22,163,74,0.16);
    border: 1px solid rgba(34,197,94,0.7);
    color: #bbf7d0;
}

.alert-error {
    background: rgba(248,113,113,0.12);
    border: 1px solid rgba(248,113,113,0.9);
    color: #fecaca;
}

/* Stat cards on dashboard */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    background: radial-gradient(circle at top, rgba(51,65,85,0.9), rgba(15,23,42,0.98));
    border-radius: 18px;
    padding: 10px 12px;
    border: 1px solid rgba(148,163,184,0.6);
    box-shadow: 0 10px 24px rgba(15,23,42,0.85);
}

.stat-label {
    font-size: 11px;
    color: #9ca3af;
}

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

/* Battle section */
.battle-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 18px;
}

.monster-card {
    border-radius: 20px;
    padding: 16px;
    background: radial-gradient(circle at 10% 0%, rgba(56,189,248,0.16), rgba(15,23,42,0.98));
    border: 1px solid rgba(56,189,248,0.7);
    position: relative;
    overflow: hidden;
}

.monster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.monster-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.monster-emoji {
    font-size: 40px;
    filter: drop-shadow(0 0 14px rgba(96,165,250,0.9));
}

.monster-name {
    font-weight: 600;
    font-size: 16px;
}

.monster-tag {
    font-size: 11px;
    color: #a5b4fc;
}

.monster-meta {
    font-size: 12px;
    color: #e5e7eb;
    margin-top: 6px;
}

.progress-wrap {
    margin-top: 10px;
}

.progress-label {
    font-size: 11px;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.6);
    overflow: hidden;
}

.progress-inner {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #eab308);
}

/* Hit controls */
.hit-panel {
    border-radius: 18px;
    padding: 14px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.6);
}

.hit-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.hit-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
}

.hit-btn {
    border-radius: 999px;
    padding: 9px 4px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.95);
    color: #e5e7eb;
    font-size: 13px;
    cursor: pointer;
}

.hit-btn:hover {
    background: rgba(30,64,175,0.9);
}

/* Misc */
.text-muted {
    font-size: 12px;
    color: #9ca3af;
}

.cooldown-text {
    font-size: 13px;
    color: #fde68a;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0,1fr);
    }
    .hero-art-card {
        margin-top: 14px;
    }
    .battle-layout {
        grid-template-columns: minmax(0,1fr);
    }
    .stat-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .nav-links {
        gap: 10px;
        flex-wrap: wrap;
    }
    .stat-grid {
        grid-template-columns: minmax(0,1fr);
    }
}
