:root {
    --bg: #070a10;
    --panel: rgba(11,23,48,.86);
    --panel-2: rgba(16,36,65,.7);
    --txt: #f0f4f9;
    --dim: #a1b1c8;
    --dim-2: #849ab6;
    --line: rgba(56,189,248,.18);
    --line-2: rgba(56,189,248,.4);
    --acc: #0ea5e9;
    --acc-h: #38bdf8;
}

.bg-scene {
    background: radial-gradient(ellipse at 40% 25%,#355b9b,#1d293f 65%,#151c2a);
}

.bg-scene::before,.bg-scene::after {
    display: none;
}

#shader-bg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.card,.model,.code,.frame,.shot .ph {
    border-color: var(--line);
    box-shadow: inset 0 1px 1px #ffffff18,0 16px 40px #00000024;
    backdrop-filter: blur(14px);
}

.card {
    background: linear-gradient(115deg,rgba(14,29,57,.94),rgba(15,43,89,.86));
    border-radius: 18px;
    padding: 24px;
}

.hero h1 .grad {
    background: linear-gradient(110deg,#f0f4f9,#38bdf8);
    color: transparent;
    background-clip: text;
    text-shadow: none;
}

.btn-primary {
    background: linear-gradient(110deg,#0284c7,#0ea5e9,#06b6d4);
    border: 1px solid #5ad7ff;
    box-shadow: inset 0 1px 1px #ffffff88,0 6px 22px #0ea5e940;
}

.btn-primary:hover,.btn-primary:focus-visible,.btn-primary:active {
    background: linear-gradient(110deg,#0284c7,#0ea5e9,#06b6d4)!important;
    border-color: #5ad7ff!important;
    color: #fff!important;
    box-shadow: inset 0 1px 1px #ffffff88,0 6px 22px #0ea5e940!important;
    transform: none!important;
    transition: none!important;
}

.status-pill {
    border-radius: 100px;
    background: #123a65aa;
    border-color: #38bdf855;
}

.status-pill.ok .dot {
    box-shadow: 0 0 10px #10b981;
}

.notice-card {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0,1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(99,220,255,.58);
    border-radius: 16px;
    background: linear-gradient(115deg,rgba(12,38,72,.96),rgba(18,71,108,.92));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14),0 12px 34px rgba(0,0,0,.2),0 0 26px rgba(56,189,248,.12);
    overflow: hidden
}

.notice-card:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg,transparent,#66d9ff,transparent)
}

.notice-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: #8ae7ff;
    background: rgba(31,174,236,.18);
    border: 1px solid rgba(112,220,255,.3);
    font-size: 21px
}

.notice-copy {
    min-width: 0
}

.notice-kicker {
    display: block;
    margin-bottom: 5px;
    color: #80dfff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em
}

.notice-card h2 {
    margin: 0 0 3px;
    color: #f5fbff;
    font-size: 17px;
    line-height: 1.3
}

.notice-card p {
    margin: 0;
    color: #bad4e7;
    font-size: 13px
}

.notice-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid rgba(103,217,255,.55);
    border-radius: 9px;
    color: #effcff;
    background: rgba(13,91,137,.52);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background .2s,transform .2s
}

.notice-link:hover {
    background: rgba(12,139,192,.72);
    transform: translateY(-2px)
}

.light .notice-card {
    background: linear-gradient(115deg,#e9f9ff,#d8f2ff);
    border-color: #7fcce8;
    box-shadow: 0 12px 30px rgba(34,117,162,.12)
}

.light .notice-card h2 {
    color: #174663
}

.light .notice-card p {
    color: #4f7188
}

.light .notice-kicker {
    color: #087ea8
}

.light .notice-icon {
    color: #087ea8;
    background: #cff0ff
}

.light .notice-link {
    color: #075173;
    background: #c3efff;
    border-color: #7ccae7
}

@media(max-width: 680px) {
    .notice-card {
        grid-template-columns:40px minmax(0,1fr);
        gap: 12px;
        padding: 16px
    }

    .notice-icon {
        width: 40px;
        height: 40px
    }

    .notice-link {
        grid-column: 1/-1;
        width: 100%
    }
}

.raffle-card {
    background: linear-gradient(115deg,#0d203dee,#123f66ee);
}

.raffle-card {
    position: relative!important;
    overflow: hidden!important;
    display: flex!important;
    justify-content: space-between!important;
    gap: 24px!important;
    padding: 24px!important;
    margin: 0!important;
    border: 1px solid rgba(92,205,255,.62)!important;
    border-radius: 16px!important;
    background: linear-gradient(135deg,rgba(20,31,72,.98),rgba(15,76,112,.9) 58%,rgba(28,40,87,.98))!important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16),0 16px 48px rgba(0,0,0,.24),0 0 0 1px rgba(80,178,255,.1),0 0 38px rgba(22,166,244,.17)!important
}

.raffle-card:before {
    content: "";
    position: absolute;
    inset: 1px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 15px;
    pointer-events: none
}

.raffle-glow {
    position: absolute!important;
    width: 270px!important;
    height: 270px!important;
    right: 20%!important;
    top: -190px!important;
    border-radius: 50%!important;
    background: #46d5ff!important;
    filter: blur(75px)!important;
    opacity: .35!important
}

.raffle-copy,.countdown {
    position: relative!important;
    z-index: 1!important
}

.raffle-tag {
    margin-bottom: 10px!important;
    color: #63dfff!important;
    font-size: 11px!important;
    font-weight: 800!important;
    letter-spacing: .16em!important
}

.raffle-card h2 {
    font-size: clamp(22px,3vw,28px)!important;
    line-height: 1.15!important;
    margin: 0 0 8px!important;
    color: #f0f4f9!important
}

.raffle-card h2 b {
    color: #73e7ff!important
}

.raffle-card p {
    color: #c2dcf0!important;
    margin: 0 0 16px!important
}

.prizes {
    display: grid!important;
    grid-template-columns: repeat(4,minmax(92px,1fr))!important;
    gap: 9px!important
}

.prizes span {
    display: block!important;
    padding: 11px 10px!important;
    border: 1px solid rgba(154,231,255,.35)!important;
    border-radius: 11px!important;
    background: linear-gradient(145deg,rgba(255,255,255,.1),rgba(2,15,38,.23))!important
}

.prizes b {
    display: block!important;
    color: #fff!important;
    font-size: 15px!important
}

.prizes small {
    color: #a7c5da!important
}

.countdown {
    min-width: 200px!important;
    text-align: right!important;
    display: flex!important;
    flex-direction: column!important;
    justify-content: center!important;
    padding: 17px 0 17px 24px!important;
    border-left: 1px solid rgba(171,225,255,.3)!important
}

.countdown small {
    color: #9bc9df!important;
    letter-spacing: .16em!important;
    font-weight: 700!important
}

.countdown div {
    margin: 9px 0!important;
    color: #fff!important;
    font: 700 27px var(--mono)!important
}

.countdown span {
    color: #b9d7e8!important;
    font-size: 12px!important
}

@media(max-width: 650px) {
    .raffle-card {
        flex-direction:column!important
    }

    .countdown {
        min-width: 0!important;
        text-align: left!important;
        padding: 16px 0 0!important;
        border-left: 0!important;
        border-top: 1px solid rgba(171,225,255,.3)!important
    }

    .prizes {
        grid-template-columns: repeat(2,1fr)!important
    }
}

.top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-actions {
    display: flex!important;
    align-items: center!important;
    gap: 8px!important
}

.control-btn {
    appearance: none!important;
    -webkit-appearance: none!important;
    display: inline-flex!important;
    align-items: center!important;
    justify-content: center!important;
    min-width: 38px!important;
    height: 32px!important;
    padding: 0 11px!important;
    border: 1px solid rgba(92,205,255,.42)!important;
    border-radius: 9px!important;
    background: rgba(9,28,61,.86)!important;
    color: #eaf7ff!important;
    font: 700 12px/1 Arial,sans-serif!important;
    cursor: pointer!important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14),0 4px 14px rgba(0,0,0,.18)!important
}

.control-btn:hover {
    border-color: #69ddff!important;
    background: rgba(20,65,112,.95)!important;
    transform: translateY(-1px)!important
}

.theme-control {
    font-size: 16px!important;
    padding: 0!important;
    width: 34px!important;
    min-width: 34px!important
}

.theme-control i {
    font-size: 15px!important;
    line-height: 1!important
}

.status-pill {
    display: inline-flex!important;
    align-items: center!important;
    gap: 7px!important;
    min-height: 32px!important;
    padding: 0 12px!important;
    border: 1px solid rgba(92,205,255,.42)!important;
    border-radius: 999px!important;
    background: rgba(9,28,61,.86)!important;
    color: #b9d8ed!important;
    font: 500 12px/1 Arial,sans-serif!important;
    white-space: nowrap!important
}

.status-pill .dot {
    display: inline-block!important;
    width: 7px!important;
    height: 7px!important;
    border-radius: 50%!important;
    background: #16c784!important;
    box-shadow: 0 0 9px #16c784!important
}

.status-pill.bad .dot {
    background: #f05b67!important;
    box-shadow: 0 0 9px #f05b67!important
}

input {
    min-width: 0;
}

:root.light {
    --bg: #eef5fc;
    --panel: #ffffffdb;
    --panel-2: #eaf2fa;
    --txt: #172c45;
    --dim: #465f7a;
    --dim-2: #5c7390;
    --line: #afcfe5;
    --line-2: #68a9d1;
}

.light #shader-bg {
    opacity: .22;
    mix-blend-mode: multiply;
}

.light .bg-scene {
    background: #eaf3ff;
}

.light .card {
    background: linear-gradient(115deg,#fffffff0,#e7f4fff0);
}

.light input,.light .code-block {
    background: #f5faff;
}

.light .code-block code,.light .mono,.light .code {
    color: #284662;
}

.light .hero h1 .grad {
    background-image: linear-gradient(110deg,#225273,#049bc4);
}

.light .status-pill {
    background: #e3f6ff;
}

.light .top {
    background: transparent;
}

@media(max-width: 560px) {
    .top {
        gap:12px;
        flex-wrap: wrap
    }

    .card {
        padding: 18px
    }

    .logo-dim {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        animation: none!important;
        scroll-behavior: auto!important
    }
}
