:root {
    --ink: #f8fbff;
    --muted: rgba(248, 251, 255, .72);
    --panel: rgba(255, 255, 255, .16);
    --panel-strong: rgba(255, 255, 255, .24);
    --line: rgba(255, 255, 255, .28);
    --shadow: 0 24px 70px rgba(5, 12, 30, .36);
}

body {
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 18%, rgba(46, 204, 113, .42), transparent 32rem),
        radial-gradient(circle at 88% 6%, rgba(0, 194, 255, .34), transparent 28rem),
        linear-gradient(135deg, #071625 0%, #113525 48%, #34206a 100%);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.glass-nav,
.glass-panel,
.account-card,
.detail-media,
.admin-shell {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.glass-nav {
    border-radius: 0 0 22px 22px;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-search {
    display: flex;
    align-items: stretch;
    flex: 1 1 24rem;
    max-width: 34rem;
}

.nav-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    min-height: 44px;
    color: rgba(248, 251, 255, .78);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-right: 0;
    border-radius: 8px 0 0 8px;
}

.nav-search .form-control {
    min-height: 44px;
    border-radius: 0 8px 8px 0;
}

.glass-panel,
.account-card,
.detail-media,
.admin-shell {
    border-radius: 8px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: .15rem;
}

.hero-panel {
    position: relative;
    isolation: isolate;
    margin-top: 2.25rem;
    overflow: visible;
    padding-top: clamp(3.75rem, 7vw, 5.5rem) !important;
}

.hero-banner {
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    bottom: -1.25rem;
    z-index: 0;
    width: min(38vw, 460px);
    height: auto;
    filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .28));
    opacity: 1;
    pointer-events: none;
}

.hero-logo {
    position: absolute !important;
    top: clamp(-3.2rem, -4vw, -1.15rem);
    left: clamp(1.2rem, 4vw, 3rem);
    z-index: 2;
    width: clamp(128px, 18vw, 214px);
    height: auto;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .34));
    transform: rotate(-3deg);
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    max-width: 40rem;
    font-size: clamp(1.2rem, 1.85vw, 1.78rem);
    font-weight: 200;
    line-height: 1.24;
}

.hero-banner{
    position: absolute;
    width: 466px;
    right: -29px;
    top: -57px;
}

.account-card {
    overflow: hidden;
    transition: transform .18s ease, background .18s ease;
}

.account-card:hover {
    transform: translateY(-4px);
    background: var(--panel-strong);
}

.account-avatar {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: rgba(255, 255, 255, .12);
}

.muted-text {
    color: var(--muted);
}

.price-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: .25rem .8rem;
    background: rgba(126, 255, 180, .18);
    color: #a7ffc9;
    border: 1px solid rgba(126, 255, 180, .34);
    font-weight: 800;
}

.coc-pagination {
    display: inline-flex;
    overflow: hidden;
    padding: 3px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    box-shadow: 0 16px 42px rgba(5, 12, 30, .22);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.coc-pagination .page-item {
    margin: 0;
}

.coc-pagination .page-link {
    min-width: 32px;
    min-height: 32px;
    padding: .15rem .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    font-size: .86rem;
    line-height: 1;
    box-shadow: none;
}

.coc-pagination .page-link:hover {
    color: #06131d;
    background: rgba(137, 255, 183, .86);
}

.coc-pagination .active .page-link {
    color: #06131d;
    background: #89ffb7;
    box-shadow: 0 8px 18px rgba(137, 255, 183, .24);
}

.coc-pagination .disabled .page-link {
    color: rgba(248, 251, 255, .38);
    background: transparent;
}

.btn-coc {
    --bs-btn-color: #06131d;
    --bs-btn-bg: #89ffb7;
    --bs-btn-border-color: #89ffb7;
    --bs-btn-hover-color: #06131d;
    --bs-btn-hover-bg: #b4ffd0;
    --bs-btn-hover-border-color: #b4ffd0;
    font-weight: 800;
}

.form-control,
.form-select {
    color: var(--ink);
    background-color: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .3);
}

.form-control:focus,
.form-select:focus {
    color: var(--ink);
    background-color: rgba(255, 255, 255, .18);
    border-color: #89ffb7;
    box-shadow: 0 0 0 .2rem rgba(137, 255, 183, .2);
}

.form-control::placeholder {
    color: rgba(248, 251, 255, .5);
}

.table {
    --bs-table-color: var(--ink);
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, .18);
}

.photo-strip img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.stat-tile {
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
}

.supercell-section {
    overflow: hidden;
}

.supercell-total,
.supercell-count {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 32px;
    padding: .25rem .75rem;
    color: #a7ffc9;
    background: rgba(126, 255, 180, .13);
    border: 1px solid rgba(126, 255, 180, .28);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 800;
}

.supercell-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: .75rem;
}

.supercell-metric,
.supercell-card {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
}

.supercell-metric {
    display: grid;
    gap: .35rem;
    padding: .85rem;
}

.supercell-metric i {
    color: #89ffb7;
    font-size: 1.2rem;
}

.supercell-metric span,
.supercell-kicker {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.supercell-metric strong {
    font-size: 1.35rem;
    line-height: 1;
}

.supercell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 1rem;
}

.supercell-card {
    overflow: hidden;
}

.supercell-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.supercell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #06131d;
    background: #89ffb7;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(137, 255, 183, .16);
}

.supercell-icon i {
    font-size: 1.15rem;
}

.supercell-card-head strong {
    display: block;
    font-size: 1rem;
}

.supercell-items {
    display: grid;
    gap: .35rem;
    max-height: 28rem;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(137, 255, 183, .5) rgba(255, 255, 255, .08);
    padding: .7rem;
}

.supercell-items::-webkit-scrollbar {
    width: 6px;
}

.supercell-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .08);
    border-radius: 999px;
}

.supercell-items::-webkit-scrollbar-thumb {
    background: rgba(137, 255, 183, .5);
    border-radius: 999px;
}

.supercell-items::-webkit-scrollbar-thumb:hover {
    background: rgba(137, 255, 183, .75);
}

.supercell-item {
    padding: .52rem .4rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.supercell-item:last-child {
    border-bottom: 0;
}

.supercell-item-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    font-weight: 800;
}

.supercell-item-main span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.supercell-object {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.supercell-object img {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: contain;
    padding: .2rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .2));
}

.supercell-item-main strong {
    flex: 0 0 auto;
    color: #a7ffc9;
    font-size: .86rem;
}

.supercell-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .32rem;
    margin-top: .38rem;
}

.supercell-chips > span {
    padding: .16rem .4rem;
    color: var(--muted);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    font-size: .76rem;
}

.supercell-chips .supercell-timer {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    color: #a7ffc9;
    background: rgba(126, 255, 180, .12);
    border-color: rgba(126, 255, 180, .2);
    font-weight: 800;
}

.secret-box {
    display: none;
}

.secret-box.is-visible {
    display: block;
}

.page-panel {
    max-width: 920px;
    margin: 0 auto;
}

.page-panel h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
}

.page-panel h2 {
    margin-top: 2rem;
    font-size: 1.25rem;
    font-weight: 900;
}

.page-panel p,
.page-panel li {
    color: var(--muted);
    line-height: 1.75;
}

.page-panel a {
    color: #a7ffc9;
}

.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: rgba(5, 14, 28, .42);
    border-top: 1px solid var(--line);
    box-shadow: 0 -18px 60px rgba(5, 12, 30, .2);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.site-footer::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(5, 14, 28, .84), rgba(5, 14, 28, .52)),
        url("../banner_footer.png") right bottom / min(58vw, 760px) auto no-repeat;
    opacity: .95;
}

.footer-banner {
    position: absolute;
    right: clamp(1rem, 5vw, 5rem);
    bottom: 1rem;
    z-index: 0;
    width: min(26vw, 310px);
    height: auto;
    filter: drop-shadow(0 24px 36px rgba(0, 0, 0, .3));
    opacity: .72;
    pointer-events: none;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(12rem, .8fr) minmax(16rem, 1fr);
    gap: 2rem;
}

.footer-sponsor {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: var(--ink);
    text-decoration: none;
}

.footer-sponsor img {
    width: 124px;
    height: 124px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    padding: .35rem;
}

.footer-sponsor strong {
    display: block;
    font-size: 1.2rem;
    line-height: 1.1;
}

.footer-kicker {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-title {
    margin-bottom: 1rem;
    font-size: .95rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    gap: .75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--muted);
    text-decoration: none;
    transition: color .16s ease, transform .16s ease;
}

.footer-links a:hover,
.footer-sponsor:hover {
    color: #a7ffc9;
}

.footer-links a:hover {
    transform: translateX(3px);
}

.footer-links i,
.footer-sponsor i {
    color: #89ffb7;
    font-size: 1.05rem;
}

@media (max-width: 991.98px) {
    .nav-inner {
        flex-wrap: wrap;
    }

    .nav-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .hero-banner {
        width: min(68vw, 420px);
        opacity: .42;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-sponsor img {
        width: 104px;
        height: 104px;
    }

    .footer-banner {
        width: 72vw;
        opacity: .26;
    }
}
