:root {
    --bg: #0b0f1a;
    --card: #111827;
    --soft: #1f2937;
    --text: #ffffff;
    --muted: #cbd5e1;
    --brand: #f59e0b;
    --brand-2: #22d3ee;
    --danger: #ef4444;
    --ok: #10b981;
    --shadow: 0 10px 25px rgba(0, 0, 0, .35);
    --radius: 18px;
    --radius-sm: 12px;
    --maxw: 1180px;
    --leading: 1.6;
    --fs-base: 15px;
    --fs-sm: 13px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--bg);
    color: var(--text);
    
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 16px
}

.blur {
    backdrop-filter: blur(6px)
}

/* Top bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: var(--shadow)
}

.topbar .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(9, 12, 20, .8)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, #ffe08a, #f59e0b);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 22px #f59e0b33
}

.brand-logo svg {
    width: 26px;
    height: 26px;
    fill: black
}

.brand h1 {
    font-size: 20px;
    margin: 0;
    letter-spacing: .3px
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.nav a {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: var(--text)
}

.nav a.active {
    background: linear-gradient(120deg, #ef4444, #f59e0b);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25)
}

.actions {
    display: flex;
    gap: 8px;
    align-items: center
}

.btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    color: #09f130;
    cursor: pointer
}

.btn:hover {
    background: rgba(255, 255, 255, .08)
}

.btn.brand {
    background: linear-gradient(120deg, #ff4141, #ff2323);
    color: #ffffff;
    border: none
}

.toggle {
    width: 44px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center
}

/* Header ticker (scoped) */
header .ticker-wrap {
    position: relative;
    overflow: hidden;
    background: #0c1320
}

header .ticker-wrap::before,
header .ticker-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    width: 56px;
    height: 100%;
    z-index: 1;
}

header .ticker-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #0f172a, transparent)
}

header .ticker-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #0f172a, transparent)
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%)
    }

    100% {
        transform: translateX(-100%)
    }
}

header .ticker {
    display: flex;
    white-space: nowrap;
    gap: 32px;
    padding: 6px 0;
    animation: scroll-left 28s linear infinite
}

header .ticker:hover {
    animation-play-state: paused
}

header .ticker .tick {
    white-space: nowrap;
    color: #ffffff;
    font-weight: 600;
    opacity: .92
}

/* Section & grid */
.section {
    margin: 26px 0
}

.section h2 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #ffffff
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px
}

.card {
    grid-column: span 12;
    background: linear-gradient(180deg, #101827, #0c1322);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
    transform: translateY(-2px) rotateX(1.2deg) rotateY(-1.2deg);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .40);
    border-color: rgba(255, 255, 255, .10);
}

@media (min-width:720px) {
    .card {
        grid-column: span 6
    }
}

@media (min-width:1000px) {
    .card {
        grid-column: span 4
    }
}

.thumb {
    position: relative;
    overflow: hidden
}

.thumb img {
    aspect-ratio: 16/9;
    height: auto;
    object-fit: cover;
    transition: transform .5s ease
}

.card:hover .thumb img {
    transform: scale(1.03)
}

.thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, .28))
}

.pill {
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(34, 211, 238, .18);
    border: 1px solid rgba(34, 211, 238, .4);
    color: #cffafe;
    backdrop-filter: blur(4px)
}

.meta {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 12.5px;
    opacity: .9
}

.body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px
}

.chip {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #0a162b;
    border: 1px solid rgba(255, 255, 255, .07);
    color: #93c5fd
}

.actions-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px
}

.actions-row .btn {
    padding: 9px 12px
}

/* Slider (cards) */
.slider {
    position: relative
}

.slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 16px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px
}

.slider-track>* {
    scroll-snap-align: start
}

@media(min-width:860px) {
    .slider-track {
        grid-auto-columns: 32%
    }
}

.dotnav {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 8px
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #23314d
}

/* Lightbox */
dialog {
    border: none;
    padding: 0;
    border-radius: 14px;
    max-width: min(960px, 96vw);
    background: #0b1220;
    color: var(--text);
    box-shadow: var(--shadow)
}

dialog::backdrop {
    background: rgba(0, 0, 0, .6)
}

.lightbox-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.lightbox-body {
    padding: 12px
}

.x {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: var(--muted)
}

/* Utilities */
.hide {
    display: none !important
}

.searchbar {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, .04);
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .06)
}

.searchbar input {
    all: unset;
    width: 100%
}

.categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.floating-cta {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 50
}

.whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, #22c55e, #86efac);
    color: #042012;
    box-shadow: var(--shadow)
}

.backtop {
    position: fixed;
    right: 16px;
    bottom: 76px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #0a1428;
    border: 1px solid rgba(255, 255, 255, .08);
    cursor: pointer
}

/* MOBILE */
@media (max-width:640px) {
    :root {
        --radius: 14px;
        --radius-sm: 10px;
        --maxw: 100%
    }

    .topbar .row {
        padding: calc(10px + env(safe-area-inset-top)) 12px 10px
    }

    .container {
        padding-inline: 12px
    }

    .nav {
        gap: 8px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none
    }

    .nav::-webkit-scrollbar {
        display: none
    }

    .nav a {
        padding: 7px 10px;
        font-size: 13px
    }

    .actions {
        gap: 6px
    }

    .searchbar {
        flex: 1;
        padding: 6px 10px
    }

    .toggle {
        width: 40px;
        height: 34px
    }

    header .ticker {
        padding: 8px 0;
        animation-duration: 35s
    }

    header .ticker .tick {
        font-size: 13px
    }

    .section {
        margin: 16px 0
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .thumb img {
        height: 160px
    }

    .body {
        padding: 12px
    }

    .title {
        font-size: 15px;
        line-height: 1.35
    }

    .excerpt {
        font-size: 13px
    }

    .actions-row {
        flex-wrap: wrap
    }

    .actions-row .btn {
        flex: 1 1 48%;
        text-align: center;
        padding: 10px 12px
    }

    .slider-track {
        grid-auto-columns: 88%;
        gap: 12px
    }

    .floating-cta {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom))
    }

    .backtop {
        right: 12px;
        bottom: calc(68px + env(safe-area-inset-bottom))
    }

    footer {
        padding: 20px 0
    }

    footer small {
        font-size: 12.5px
    }
}

/* Reduce motion */
@media (prefers-reduced-motion:reduce) {
    header .ticker {
        animation: none
    }

    .card:hover .thumb img {
        transform: none
    }

    html {
        scroll-behavior: auto
    }
}

/* Titles & excerpts clamp */
.title {
    color: #fff;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.excerpt {
    color: #cbd5e1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.actions-row {
    margin-top: auto
}

/* CTA styles */
.btn.view {
    background: linear-gradient(120deg, #22c55e, #86efac);
    color: #04140c
}

.btn.view:hover {
    filter: brightness(1.05);
    transform: translateY(-1px)
}

.btn.share {
    background: linear-gradient(120deg, #60a5fa, #a5b4fc);
    color: #040a18
}

/* ===== Kategori wrapper ===== */
#kategori {
    background: linear-gradient(180deg, rgba(17, 24, 39, .92), rgba(15, 23, 42, .88));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

#kategori h2 {
    font-size: 16px;
    margin: 0 0 10px;
    opacity: .9;
    display: flex;
    align-items: center;
    gap: 8px
}

#kategori h2::before {
    content: "▦";
    font-size: 13px;
    color: #60a5fa;
    opacity: .85
}

.categories button {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 600;
    transition: transform .15s ease, background .2s ease;
}

.categories button:hover {
    transform: translateY(-1px)
}

.categories .on {
    background: linear-gradient(120deg, #2563eb, #22d3ee);
    color: #041018;
    border: 0;
    box-shadow: 0 6px 18px rgba(34, 211, 238, .18);
}

/* Toolbar sticky */
#toolbar {
    position: sticky;
    top: 64px;
    z-index: 35;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgb(0 36 97 / 70%), rgb(0 36 137 / 79%));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    padding: 8px 10px;
}

/* Light theme swap */
:root.light-theme {
    --bg: #f6f7fb;
    --card: #ffffff;
    --soft: #eef2f7;
    --text: #0b1220;
    --muted: #475569;
}

/* ===== HERO NEON (scoped) ===== */
.hero-neon {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 230px;
    background:
        radial-gradient(1200px 400px at 20% -20%, #ff3bff33, transparent 60%),
        radial-gradient(1200px 500px at 120% 20%, #00d1ff33, transparent 60%),
        linear-gradient(135deg, #0b0f1a 0%, #0e1424 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.hero-neon::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, #ff3bff55, #00d1ff55, #7cffc255, #ff3bff55);
    animation: spin 16s linear infinite;
    filter: blur(50px);
    opacity: .35;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.hero-neon .hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 28px
}

.hero-neon .hero-logo {
    aspect-ratio: 16/9;
    width: 360px;
    max-width: 45%;
    background: #0b0f1a url('logotesti.png') center/contain no-repeat;
    border-radius: 14px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06);
}

.hero-neon .hero-text h1 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #e9eefc;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-shadow: 0 2px 18px #ff3bff55, 0 0 40px #00d1ff44;
}

.hero-neon .hero-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff3bff22, #00d1ff22);
    border: 1px solid rgba(255, 255, 255, .1);
    font-size: 12px;
    color: #e9eefc;
}

.hero-neon .wave-sep {
    width: 100%;
    height: 38px;
    margin-top: -16px
}

.hero-neon .wave-sep svg {
    display: block;
    width: 100%;
    height: 100%
}

@media(max-width:980px) {
    .hero-neon .hero-inner {
        flex-direction: column;
        align-items: flex-start
    }

    .hero-neon .hero-logo {
        width: 100%;
        max-width: 100%;
        height: 140px
    }
}

/* ===== Realtime board / flip clock ===== */
.board {
    border-radius: 16px;
    background: radial-gradient(600px 200px at 100% 0%, #000 0%, #0d121f 65%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 24px rgba(0, 0, 0, .35);
    padding: 24px;
    color: #e9eefc;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-clock {
    display: flex;
    gap: 8px;
    font-variant-numeric: tabular-nums
}

.digit {
    position: relative;
    width: 36px;
    height: 46px;
    perspective: 180px
}

.panel {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: #0a0f1c;
    display: grid;
    place-items: center;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06), 0 6px 14px rgba(0, 0, 0, .35);
    font-weight: 700;
    font-size: 22px;
}

.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    outline: 1px solid rgba(255, 255, 255, .06);
    pointer-events: none
}

.flip {
    animation: flip 600ms ease
}

@keyframes flip {
    0% {
        transform: rotateX(0)
    }

    45% {
        transform: rotateX(-90deg)
    }

    100% {
        transform: rotateX(0)
    }
}

.board small {
    opacity: .75;
    margin-top: 10px;
    display: block
}

/* ===== Cat carousel & ticker in kategori (scoped) ===== */
.cat-wrap {
    border-radius: 14px;
    background: linear-gradient(180deg, #0b111f, #0e1526);
    padding: 10px 14px
}

.cat-carousel {
    display: flex;
    gap: 10px;
    overflow: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px
}

.cat-btn {
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 82px;
    padding: 12px 10px;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .06);
    color: #ffffff
}

.cat-btn:hover {
    background: rgba(255, 255, 255, .06)
}

.cat-btn.on {
    outline: 2px solid #4dd7ff;
    background: #001f2f66
}

.cat-ico {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(180deg, #10223a, #0e1a2e);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05)
}

/* Ticker khusus di dalam kategori */
.cat-wrap .ticker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px
}

.cat-wrap .ticker .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff7b7b;
    box-shadow: 0 0 10px #ff8585
}

.cat-wrap .ticker .line {
    overflow: hidden;
    white-space: nowrap
}

.cat-wrap .ticker .run {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 18s linear infinite
}

@keyframes marquee {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-100%)
    }
}

/* Dense mode */
.grid.dense {
    gap: 12px
}

.grid.dense .body {
    padding: 10px 12px
}

.grid.dense .thumb img {
    height: 140px
}

.grid.dense .title {
    -webkit-line-clamp: 1
}

.grid.dense .excerpt {
    display: none
}

/* Buttons ux */
a:focus-visible,
.btn:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 2px
}

/* Read more + sticky actions + media/related */
.btn.read {
    background: linear-gradient(120deg, #fde68a, #f59e0b);
    color: #2b1500;
    border: none
}

.btn.read:hover {
    filter: brightness(1.05);
    transform: translateY(-1px)
}

.sticky-actions {
    position: sticky;
    bottom: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(4, 10, 24, .55);
    border: 1px solid rgba(255, 255, 255, .06);
    padding: 8px 10px;
    border-radius: 999px;
    backdrop-filter: blur(10px)
}

.btn.wa {
    background: linear-gradient(120deg, #22c55e, #86efac);
    color: #04140c;
    border: 0
}

.media-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px
}

@media(max-width:900px) {
    .media-grid {
        grid-template-columns: 1fr
    }
}

.media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0b1220
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9
}

.badge-corner {
    position: absolute;
    left: 10px;
    top: 10px
}

.stat-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted)
}

.stat-list .stat {
    background: #0a162b;
    border: 1px solid rgba(255, 255, 255, .06);
    padding: 6px 10px;
    border-radius: 999px
}

.big-money {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .3px;
    color: #fff
}

.pn {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px
}

.pn a {
    flex: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden
}

.related .slider-track {
    grid-auto-columns: 70%
}

@media(min-width:860px) {
    .related .slider-track {
        grid-auto-columns: 28%
    }
}


/* ===== Rails / Pembatas kiri–kanan ===== */
:root { --content-w: calc(var(--maxw) + 32px); }
body.has-rails { position: relative; }
body.has-rails::before,
body.has-rails::after{
  content:"";
  position: fixed;
  top:0; bottom:0;
  width: max(0px, (100vw - var(--content-w)) / 2);
  background: linear-gradient(180deg, rgba(2,12,36,.85), rgba(2,12,24,.85));
  pointer-events: none;
  z-index: 0;
}
body.has-rails::before{ left:0; }
body.has-rails::after{ right:0; }

/* pastikan konten di atas rails */
header.topbar, main.container, footer.container, .floating-cta, .backtop, dialog { position: relative; z-index: 1; }

/* ===== Tabel Testi WD ===== */
/* ===== WD panel layout ===== */
.wd-panel{
  display:grid;
  grid-template-columns: 1.4fr .8fr;
  gap:12px;
  padding:12px;
}
@media (max-width: 900px){
  .wd-panel{ grid-template-columns: 1fr; }
}

/* ===== TABEL WD ===== */
.wd-table{
  overflow:auto;
  max-height: 360px;              /* biar gak kepanjangan */
  border:1px solid var(--line);
  border-radius: 12px;
  background: rgba(2,6,23,.35);
}
.wd-table table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 640px;
  font-size: 13px;
}
.wd-table thead th{
  position: sticky; top: 0; z-index: 1;
  background: var(--surface-2);
  text-align: left; font-weight: 700;
  padding:10px 12px; border-bottom:1px solid var(--line);
}
.wd-table tbody td{
  padding:10px 12px; border-bottom:1px solid var(--line);
  white-space: nowrap;
}
.wd-table tbody tr:nth-child(even){ background: rgba(255,255,255,.03); }
.wd-table tbody tr:hover{ background: rgba(56,189,248,.08); }
.wd-table td.amt{ text-align:right; font-variant-numeric: tabular-nums; }
.wd-table td.user, .wd-table td.game{
  max-width: 160px; overflow: hidden; text-overflow: ellipsis;
}

/* tombol mini di kolom aksi */
.btn-mini{
  display:inline-block; padding:6px 10px;
  border-radius: 8px; border: 1px solid var(--line);
  background: #04d327;
  color:#000000;
}
.btn-mini:hover{ filter: brightness(1.05); }

/* ===== FLIP CLOCK ===== */
.wd-clock{
  display:grid; align-content:center; gap:8px;
  border:1px solid var(--line); border-radius:12px;
  padding:14px; background: radial-gradient(120% 120% at 0% 0%, rgba(56,189,248,.15), transparent), rgba(2,6,23,.35);
}
.wd-clock-date{
  color: var(--muted); font-weight: 600; font-size: 13px;
  text-align:center;
}
.wd-flip{ display:flex; justify-content:center; gap:8px; }
.wd-flip .digit{ width:52px; height:72px; perspective: 600px; }
.wd-flip .panel{
  width:100%; height:100%;
  display:grid; place-items:center;
  background: linear-gradient(180deg, #111827, #0b1220);
  color:#e5e7eb; border-radius:12px;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.06), 0 8px 18px rgba(2,6,23,.35);
  font: 800 34px/1 ui-monospace, monospace;
  transform-style: preserve-3d;
}
.wd-flip .panel.flip{
  animation: flip .6s ease-in-out;
}
@keyframes flip{
  0%{ transform: rotateX(0deg); }
  50%{ transform: rotateX(-90deg); }
  100%{ transform: rotateX(0deg); }
}
.wd-flip .colon{
  width:12px; display:grid; place-items:center;
  font-weight:800; font-size: 28px; color:#9ca3af;
}

@media (max-width: 520px){
  .wd-flip .digit{ width:42px; height:58px; }
  .wd-flip .panel{ font-size:28px; border-radius:10px; }
}


.grid2 {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}

@media(max-width:900px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

#tabel-wd {
  margin-top: -16px; /* atur nilainya sesuai pasnya */
}

/* ===== Band gambar khusus area Tabel+Board+Kategori ===== */
.band-img{
  position: relative;
  isolation: isolate;      /* penting: bikin layer sendiri */
  overflow: hidden;
  border-radius: 18px;
  margin-top: 10px;
}

/* gambar full di belakang band (tidak menutup panel) */
.band-img::before{
  content: "";
  position: absolute;
  inset: 0;
  background: url("bg.jpg") center/cover no-repeat; /* ganti filemu */
  opacity: .25;             /* atur terang/gelap */
  z-index: 0;
}

/* fade halus atas-bawah (opsional) */
.band-img::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to bottom,
              rgba(7,14,28,.75), rgba(7,14,28,0) 14%,
              rgba(7,14,28,0) 86%, rgba(7,14,28,.75));
  z-index: 0;
}

/* semua isi band berada di atas gambar */
.band-img > *{ position: relative; z-index: 1; }

/* grid 2 kolom nya */
.grid2{ display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; align-items:start; }
@media(max-width:900px){ .grid2{ grid-template-columns:1fr; } }


