/* Rust survival game theme */
.public-site {
    --game-bg: #080a0a;
    --game-panel: rgba(17, 20, 19, .96);
    --game-panel-2: rgba(24, 28, 26, .94);
    --game-line: rgba(202, 108, 66, .38);
    --game-line-soft: rgba(181, 157, 128, .20);
    --game-rust: #e8663d;
    --game-rust-light: #ff9257;
    --game-amber: #e7a44e;
    --game-text: #eee8df;
    --game-muted: #9d968b;
    color: var(--game-text);
    background:
        radial-gradient(820px 520px at 2% -8%, rgba(184, 58, 32, .28), transparent 65%),
        radial-gradient(760px 540px at 102% 6%, rgba(89, 96, 55, .18), transparent 68%),
        radial-gradient(620px 420px at 48% 104%, rgba(191, 92, 40, .07), transparent 72%),
        linear-gradient(145deg, #070909 0%, #0c100f 48%, #111412 100%);
    font-family: Bahnschrift, "Arial Narrow", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.public-site > .site-background-slideshow {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #080a0a url("backgrounds/rust-bg-01.webp") center center / cover no-repeat;
    pointer-events: none;
}

.public-site .site-background-slide {
    position: absolute;
    inset: -2%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    filter: saturate(.94) contrast(1.06) brightness(.68);
    transform: scale(1.035);
    transition: opacity 1.35s ease;
    will-change: opacity, transform;
}

.public-site .site-background-slide.is-active {
    opacity: 1;
    animation: rust-background-drift 12s ease-out both;
}

@keyframes rust-background-drift {
    from { transform: scale(1.035); }
    to { transform: scale(1.01); }
}

.public-site::before,
.public-site::after {
    z-index: 1;
}

.public-site > .topbar {
    z-index: 2;
}

.public-site > .shell {
    position: relative;
    z-index: 2;
}

.public-site::before {
    opacity: .42;
    background-image:
        repeating-linear-gradient(118deg, transparent 0 78px, rgba(224, 132, 77, .028) 79px 80px, transparent 81px 156px),
        linear-gradient(rgba(202, 178, 145, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(202, 178, 145, .035) 1px, transparent 1px);
    background-size: auto, 52px 52px, 52px 52px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .74) 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .74) 65%, transparent 100%);
}

.public-site::after {
    background:
        linear-gradient(112deg, transparent 0 39%, rgba(225, 101, 55, .04) 39.15% 39.45%, transparent 39.6% 100%),
        radial-gradient(circle at 50% 14%, rgba(255, 130, 70, .075), transparent 34%),
        linear-gradient(180deg, transparent 0%, rgba(4, 5, 5, .48) 100%);
}

.public-site .topbar {
    min-height: 64px;
    padding: 10px clamp(20px, 4vw, 58px);
    border-bottom: 1px solid rgba(178, 116, 77, .28);
    background:
        linear-gradient(90deg, rgba(17, 18, 17, .95), rgba(8, 11, 10, .94) 55%, rgba(17, 21, 18, .94)),
        #090b0a;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .36);
    backdrop-filter: blur(18px) saturate(115%);
}

.public-site .topbar::before {
    height: 3px;
    opacity: 1;
    background: repeating-linear-gradient(135deg, #e35f37 0 13px, #f0944f 13px 20px, #24201b 20px 30px);
    box-shadow: 0 0 18px rgba(227, 95, 55, .26);
}

.public-site .topbar > div:first-child {
    position: relative;
    padding-left: 19px;
}

.public-site .topbar > div:first-child::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 7px;
    height: 25px;
    background: linear-gradient(180deg, #ff9257, #c9432a);
    box-shadow: 0 0 15px rgba(232, 102, 61, .55);
    transform: skewY(-13deg);
}

.public-site .topbar strong {
    color: #f2ece4;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.public-site .topbar span {
    margin-top: 0;
    color: #8f887e;
    font-size: 10px;
    letter-spacing: .03em;
}

.public-site .topbar a,
.public-site .top-watch-menu summary {
    min-height: 34px;
    padding: 6px 14px;
    color: #c9c0b3;
    border: 1px solid rgba(176, 143, 108, .28);
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(39, 42, 38, .84), rgba(22, 25, 23, .88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 5px 14px rgba(0, 0, 0, .18);
    font-size: 12px;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.public-site .topbar a:hover,
.public-site .top-watch-menu summary:hover {
    color: #fff3e7;
    border-color: rgba(232, 102, 61, .66);
    background: linear-gradient(180deg, rgba(83, 48, 34, .92), rgba(47, 30, 24, .92));
    transform: translateY(-1px);
}

/* 960px x 85% = 816px: keep the requested narrower layout. */
.public-site .shell.search-centered {
    width: min(816px, calc(100vw - 36px));
    gap: 13px;
}

.public-site .public-query-panel {
    position: relative;
    overflow: hidden;
    padding: 29px 30px 23px;
    border: 1px solid rgba(211, 113, 68, .53);
    border-radius: 5px;
    background:
        linear-gradient(118deg, transparent 0 72%, rgba(228, 95, 49, .075) 72.2% 78%, transparent 78.2%),
        radial-gradient(400px 240px at 96% 0%, rgba(174, 70, 36, .15), transparent 72%),
        linear-gradient(145deg, rgba(26, 29, 27, .88), rgba(12, 15, 14, .86));
    box-shadow:
        0 34px 78px rgba(0, 0, 0, .43),
        0 0 44px rgba(207, 82, 40, .055),
        inset 0 1px 0 rgba(255, 231, 208, .05);
    animation: game-panel-in .42s cubic-bezier(.2, .76, .25, 1) both;
}

.public-site .public-query-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(135deg, #d94f30 0 15px, #ef8646 15px 23px, #24201b 23px 34px);
    box-shadow: 0 0 20px rgba(220, 77, 42, .20);
}

.public-site .public-query-panel::after {
    content: "";
    position: absolute;
    top: -78px;
    right: -58px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(232, 120, 65, .15);
    border-radius: 50%;
    background: radial-gradient(circle, transparent 0 32%, rgba(232, 116, 59, .05) 32.5% 33%, transparent 33.5% 49%, rgba(232, 116, 59, .04) 49.5% 50%, transparent 50.5%);
    box-shadow: 0 0 0 36px rgba(191, 82, 42, .025), 0 0 0 72px rgba(191, 82, 42, .015);
    opacity: .8;
    pointer-events: none;
}

.public-site .query-panel-head,
.public-site .public-query-form,
.public-site .query-rule-note,
.public-site .public-query-panel > .notice {
    position: relative;
    z-index: 1;
}

.public-site .query-panel-head {
    align-items: center;
    gap: 22px;
    margin-bottom: 20px;
}

.public-site .query-copy {
    flex: 1 1 250px;
}

.public-site .query-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px !important;
    color: #ef7949 !important;
    font-size: 9px !important;
    font-weight: 900;
    letter-spacing: .22em;
    text-shadow: 0 0 14px rgba(232, 102, 61, .24);
}

.public-site .query-eyebrow::before {
    content: "";
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #c94229, #ff8f52);
    box-shadow: 0 0 10px rgba(232, 102, 61, .45);
    transform: skewX(-28deg);
}

.public-site .query-copy h1 {
    margin-bottom: 0;
    color: #f3ede5;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -.035em;
    text-shadow: 0 9px 25px rgba(0, 0, 0, .34);
}

.public-site .query-copy .muted {
    margin-top: 7px;
    color: #a0998f;
    font-size: 11px;
}

.public-site .blacklist-total-card {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    justify-content: flex-start;
    min-width: 350px;
    min-height: 76px;
    gap: 26px;
    padding: 13px 17px 15px 20px;
    overflow: hidden;
    border: 1px solid rgba(229, 117, 65, .56);
    border-radius: 3px;
    background:
        linear-gradient(115deg, rgba(71, 42, 30, .92), rgba(37, 31, 26, .94) 55%, rgba(38, 43, 34, .90));
    box-shadow: inset 0 1px 0 rgba(255, 235, 219, .07), 0 15px 34px rgba(0, 0, 0, .25);
}

.public-site .blacklist-total-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(180deg, #ff9558, #bd3e29 68%, #e97842);
    box-shadow: 0 0 14px rgba(232, 102, 61, .48);
}

.public-site .blacklist-total-card::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -48%;
    width: 30%;
    height: 140%;
    background: linear-gradient(90deg, transparent, rgba(255, 172, 109, .10), transparent);
    transform: skewX(-22deg);
    animation: game-scan 7s ease-in-out infinite;
}

.public-site .blacklist-total-card span,
.public-site .blacklist-total-card strong {
    position: relative;
    z-index: 1;
    max-width: none;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.035em;
}

.public-site .blacklist-total-card span {
    color: #efe7dc;
    white-space: nowrap;
}

.public-site .blacklist-total-card .total-value {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    justify-items: start;
    gap: 5px;
}

.public-site .blacklist-total-card strong {
    color: #ff9456;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 21px rgba(255, 116, 64, .28);
}

.public-site .blacklist-total-card small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #9a8f81;
    font-size: 8px;
    line-height: 1;
}

.public-site .blacklist-total-card small::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #76d38f;
    box-shadow: 0 0 8px rgba(118, 211, 143, .78);
    animation: game-live 2s ease-in-out infinite;
}

.public-site .public-query-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(184, 132, 93, .40);
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(7, 10, 9, .86), rgba(18, 21, 18, .80));
    box-shadow: inset 0 1px 12px rgba(0, 0, 0, .40), 0 14px 30px rgba(0, 0, 0, .18);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.public-site .public-query-form:focus-within {
    border-color: rgba(235, 117, 65, .74);
    box-shadow: 0 0 0 3px rgba(225, 92, 48, .10), 0 0 26px rgba(225, 92, 48, .08), 0 18px 38px rgba(0, 0, 0, .25);
}

.public-site .public-query-form input,
.public-site .public-query-form input:hover,
.public-site .public-query-form input:focus {
    min-height: 42px;
    padding: 9px 14px 9px 42px;
    color: #ebe4dc;
    border-color: transparent;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a7998a' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px 50%;
    box-shadow: none;
    font-size: 12px;
}

.public-site .public-query-form input::placeholder {
    color: #776f66;
}

.public-site .public-query-form button {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
    min-height: 42px;
    padding-inline: 18px;
    color: #fff8ee;
    border: 1px solid rgba(255, 177, 119, .66);
    border-radius: 2px;
    background: linear-gradient(135deg, #bf3f28 0%, #e7653b 55%, #ef8c4d 100%);
    box-shadow: 0 10px 25px rgba(191, 63, 40, .35), inset 0 1px 0 rgba(255, 245, 233, .24);
    font-size: 12px;
    letter-spacing: .02em;
    white-space: nowrap;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.public-site .public-query-form button:hover {
    border-color: rgba(255, 201, 156, .86);
    background: linear-gradient(135deg, #cb482e 0%, #f07243 55%, #f59b58 100%);
    box-shadow: 0 13px 30px rgba(191, 63, 40, .44), 0 0 22px rgba(235, 108, 58, .10), inset 0 1px 0 rgba(255, 245, 233, .29);
}

.public-site .public-query-form button:disabled {
    cursor: wait;
    opacity: .82;
    filter: saturate(.72);
    transform: none;
}

.public-site .query-rule-note {
    margin: 8px 4px 0;
    color: rgba(171, 160, 146, .58);
    font-size: 8px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .018em;
}

.public-site .public-recent-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(164, 124, 88, .31);
    border-radius: 4px;
    background:
        linear-gradient(112deg, transparent 0 84%, rgba(189, 75, 40, .045) 84.2% 100%),
        linear-gradient(180deg, rgba(21, 25, 23, .90), rgba(11, 15, 14, .87));
    box-shadow: 0 27px 64px rgba(0, 0, 0, .34);
    animation: game-panel-in .50s .05s cubic-bezier(.2, .76, .25, 1) both;
}

.public-site .public-recent-panel::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #b83b28, #e96b3d 42%, #d98f47 65%, transparent 94%);
}

.public-site .public-recent-table th {
    height: 38px;
    padding: 8px 14px;
    color: #d0c2b2;
    border-bottom-color: rgba(196, 133, 88, .28);
    background:
        linear-gradient(90deg, rgba(63, 46, 36, .94), rgba(42, 39, 32, .94) 58%, rgba(50, 53, 37, .90));
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.public-site .public-recent-table td {
    height: 44px;
    padding: 8px 14px;
    color: #b7afa4;
    border-bottom-color: rgba(166, 140, 111, .14);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.public-site .public-recent-table tbody tr:nth-child(even) td {
    background: rgba(80, 67, 50, .09);
}

.public-site .public-recent-table tbody tr:hover td {
    background: linear-gradient(90deg, rgba(156, 66, 38, .14), rgba(103, 97, 59, .08));
}

.public-site .public-recent-table code {
    color: #d3c9bc;
    font-size: 10px;
}

.public-site .recent-status {
    min-width: 62px;
    padding: 3px 10px;
    color: #83e3a0;
    border-color: rgba(101, 207, 133, .48);
    background: linear-gradient(180deg, rgba(33, 104, 61, .30), rgba(21, 72, 43, .26));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    font-size: 9px;
}

.public-site .shell.search-centered > .panel:not(.public-query-panel):not(.public-recent-panel) {
    border-color: rgba(181, 127, 89, .36);
    border-radius: 4px;
    background: linear-gradient(145deg, rgba(25, 28, 26, .97), rgba(12, 15, 14, .97));
    box-shadow: 0 25px 58px rgba(0, 0, 0, .32);
}

.public-site .pci-domain-footer {
    padding-top: 9px;
}

.public-site .pci-domain-footer a {
    min-height: 34px;
    padding: 6px 17px;
    color: #fff8ee;
    border-color: rgba(255, 204, 127, .92);
    border-radius: 3px;
    background: linear-gradient(135deg, #c8492e 0%, #ef753e 52%, #f3a64f 100%);
    box-shadow: 0 12px 29px rgba(193, 66, 39, .36), 0 0 23px rgba(239, 117, 62, .08), inset 0 1px 0 rgba(255, 255, 255, .30);
    font-size: 11px;
    letter-spacing: .06em;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.public-site .pci-domain-footer a:hover {
    color: #fff;
    filter: brightness(1.08) saturate(1.05);
    box-shadow: 0 15px 34px rgba(193, 66, 39, .46), inset 0 1px 0 rgba(255, 255, 255, .34);
}

@keyframes game-panel-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes game-scan {
    0%, 58% { left: -48%; opacity: 0; }
    64% { opacity: 1; }
    82% { left: 122%; opacity: .85; }
    86%, 100% { left: 122%; opacity: 0; }
}

@keyframes game-live {
    0%, 100% { opacity: .55; transform: scale(.84); }
    50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 760px) {
    .public-site .topbar { padding: 12px 16px; }
    .public-site .shell.search-centered { width: min(816px, calc(100% - 24px)); }
    .public-site .public-query-panel { padding: 23px 18px 19px; }
    .public-site .query-panel-head { align-items: stretch; gap: 14px; }
    .public-site .blacklist-total-card { flex: 0 0 auto; min-width: 0; min-height: 66px; }
    .public-site .blacklist-total-card span,
    .public-site .blacklist-total-card strong { font-size: 18px; }
    .public-site .public-query-form { grid-template-columns: 1fr; }
    .public-site .public-query-form button { width: 100%; min-width: 0; max-width: none; }
    .public-site .query-rule-note { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .public-site .public-query-panel,
    .public-site .public-recent-panel,
    .public-site .blacklist-total-card::after,
    .public-site .blacklist-total-card small::before { animation: none; }

    .public-site .site-background-slide {
        transition-duration: .01ms;
        transform: scale(1.01);
    }

    .public-site .site-background-slide.is-active {
        animation: none;
    }
}
