/* ══════════════════════════════════════════════════════════════
   THE ABYSS — a page for throwing treasure into a black hole.
   It does nothing. The CSS, however, does quite a lot.

   Desktop layout is a fixed-height two-column grid (hole + throw
   controls on the left, leaderboard on the right) sized so the
   whole page fits the viewport with no scrolling.
   ══════════════════════════════════════════════════════════════ */

/* ─── The whole page is deep space: kill the site's nebula photo and
       paint a near-black void with faint cold nebula wisps ─────────── */

body {
    background-color: #030309;
    background-image:
        radial-gradient(ellipse 60% 40% at 18% 8%,  rgba(74, 32, 116, 0.28), transparent 65%),
        radial-gradient(ellipse 55% 45% at 85% 85%, rgba(16, 54, 84, 0.25), transparent 65%),
        radial-gradient(ellipse 40% 30% at 70% 20%, rgba(96, 24, 40, 0.14), transparent 60%),
        radial-gradient(ellipse 45% 35% at 35% 75%, rgba(40, 20, 70, 0.18), transparent 60%);
    background-attachment: fixed;
}

.abyss-page {
    /* viewport minus fixed chrome: header 70 + action-bar 70 + footer 70 (+borders) */
    height: calc(100vh - 214px);
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(360px, 440px) 1fr;
    gap: 20px;
    color: #cfcbdd;
    text-align: left;
    overflow: hidden;
}

/* drifting star layers + vignette, fixed behind all content */
.abyss-page::before {
    content: '';
    position: fixed;
    inset: -60px;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 8% 12%,  rgba(255,255,255,0.8) 50%, transparent 51%),
        radial-gradient(1px 1px at 23% 44%, rgba(200,210,255,0.5) 50%, transparent 51%),
        radial-gradient(2px 2px at 37% 21%, rgba(255,255,255,0.35) 50%, transparent 51%),
        radial-gradient(1px 1px at 52% 67%, rgba(255,255,255,0.6) 50%, transparent 51%),
        radial-gradient(1px 1px at 64% 33%, rgba(190,200,255,0.45) 50%, transparent 51%),
        radial-gradient(2px 2px at 71% 79%, rgba(255,220,170,0.35) 50%, transparent 51%),
        radial-gradient(1px 1px at 83% 15%, rgba(255,255,255,0.55) 50%, transparent 51%),
        radial-gradient(1px 1px at 91% 56%, rgba(255,255,255,0.4) 50%, transparent 51%),
        radial-gradient(1px 1px at 15% 88%, rgba(200,190,255,0.5) 50%, transparent 51%),
        radial-gradient(1px 1px at 44% 92%, rgba(255,255,255,0.45) 50%, transparent 51%),
        radial-gradient(1px 1px at 96% 91%, rgba(255,255,255,0.3) 50%, transparent 51%),
        radial-gradient(1px 1px at 58% 5%,  rgba(255,255,255,0.5) 50%, transparent 51%);
    animation: abyss-star-drift 90s linear infinite alternate,
               abyss-twinkle 7s ease-in-out infinite alternate;
}

/* heavy vignette pulls the eye to the center — the void is watching */
.abyss-page::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(0, 0, 2, 0.55) 100%);
}

@keyframes abyss-star-drift {
    from { transform: translate(0, 0); }
    to   { transform: translate(40px, 24px); }
}

.abyss-left {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ─── Hero / the hole ─────────────────────────────────────────── */

.abyss-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 8px 0 14px;
}

/* faint starfield behind the hole */
.abyss-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 12% 20%, rgba(255,255,255,0.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,0.5) 50%, transparent 51%),
        radial-gradient(2px 2px at 30% 70%, rgba(255,191,0,0.35) 50%, transparent 51%),
        radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,0.6) 50%, transparent 51%),
        radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.4) 50%, transparent 51%),
        radial-gradient(2px 2px at 45% 15%, rgba(255,255,255,0.35) 50%, transparent 51%),
        radial-gradient(1px 1px at 20% 85%, rgba(255,191,0,0.3) 50%, transparent 51%),
        radial-gradient(1px 1px at 70% 88%, rgba(255,255,255,0.5) 50%, transparent 51%);
    animation: abyss-twinkle 6s ease-in-out infinite alternate;
}

@keyframes abyss-twinkle {
    from { opacity: 0.5; }
    to   { opacity: 1; }
}

.abyss-hole-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}

/* vast soft glow around the whole system, slowly breathing */
/* kept tight enough that the glow fades out before .abyss-page's
   overflow:hidden edge can slice it into a straight line */
.abyss-halo {
    position: absolute;
    inset: -22%;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255,160,40,0.18) 0%, rgba(150,70,220,0.11) 34%,
        rgba(60,30,110,0.05) 52%, transparent 64%);
    animation: abyss-breathe 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes abyss-breathe {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

/* gravitationally-lensed light: two tilted elliptical arcs behind the hole */
.abyss-lensing {
    position: absolute;
    left: -14%;
    top: 32%;
    width: 128%;
    height: 36%;
    border-radius: 50%;
    border: 2px solid rgba(255, 186, 90, 0.30);
    border-bottom-color: rgba(255, 186, 90, 0.10);
    filter: blur(1.5px);
    pointer-events: none;
}

.abyss-lensing-a {
    transform: rotate(-16deg);
    animation: abyss-lens-shimmer 9s ease-in-out infinite;
}

.abyss-lensing-b {
    top: 36%;
    height: 28%;
    border-color: rgba(190, 130, 255, 0.20);
    border-top-color: rgba(190, 130, 255, 0.08);
    transform: rotate(-16deg);
    animation: abyss-lens-shimmer 9s ease-in-out infinite 4.5s;
}

@keyframes abyss-lens-shimmer {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

.abyss-disk {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.abyss-disk-outer {
    background: conic-gradient(from 0deg,
        transparent 0deg, rgba(150, 70, 220, 0.10) 40deg, rgba(255,191,0,0.10) 90deg,
        transparent 150deg, rgba(255,110,0,0.13) 210deg, rgba(120, 40, 60, 0.10) 260deg,
        transparent 300deg, rgba(255,191,0,0.08) 345deg, transparent 360deg);
    animation: abyss-spin 26s linear infinite;
    filter: blur(6px);
}

.abyss-disk-mid {
    inset: 26px;
    background: conic-gradient(from 90deg,
        transparent 0deg, rgba(255,191,0,0.32) 40deg, rgba(255,70,10,0.26) 110deg,
        rgba(140, 50, 200, 0.16) 165deg, transparent 210deg,
        rgba(255,160,20,0.28) 290deg, rgba(200, 60, 120, 0.14) 330deg, transparent 360deg);
    animation: abyss-spin 13s linear infinite reverse;
    filter: blur(3px);
}

.abyss-disk-inner {
    inset: 50px;
    background: conic-gradient(from 180deg,
        rgba(255,236,170,0.75) 0deg, rgba(255,110,10,0.45) 80deg,
        rgba(255, 60, 90, 0.35) 140deg, rgba(255,220,130,0.6) 200deg,
        rgba(255,120,0,0.4) 280deg, rgba(255,236,170,0.75) 360deg);
    animation: abyss-spin 5.5s linear infinite;
    filter: blur(2px);
}

/* infalling dust: tiny embers orbiting the horizon on two counter-rotating rings */
.abyss-dust {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.abyss-dust-a {
    inset: 16px;
    background-image:
        radial-gradient(2px 2px at 88% 48%, rgba(255,210,130,0.9) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 22% 18%, rgba(255,170,60,0.8) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 10% 62%, rgba(255,230,180,0.7) 50%, transparent 51%),
        radial-gradient(2px 2px at 55% 90%, rgba(230,140,255,0.6) 50%, transparent 51%);
    animation: abyss-spin 8s linear infinite;
}

.abyss-dust-b {
    inset: 34px;
    background-image:
        radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,210,130,0.85) 50%, transparent 51%),
        radial-gradient(2px 2px at 14% 40%, rgba(255,150,40,0.7) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 45% 6%, rgba(200,150,255,0.6) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 68% 88%, rgba(255,240,200,0.75) 50%, transparent 51%);
    animation: abyss-spin 14s linear infinite reverse;
}

/* the photon ring: a razor-thin band of trapped light at the horizon's edge */
.abyss-photon {
    position: absolute;
    inset: 57px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 232, 190, 0.85);
    box-shadow:
        0 0 8px 1px rgba(255, 220, 150, 0.55),
        0 0 22px 4px rgba(255, 170, 60, 0.30),
        inset 0 0 8px 1px rgba(255, 220, 150, 0.4);
    animation: abyss-photon-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes abyss-photon-pulse {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}

.abyss-void {
    position: absolute;
    inset: 62px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        #000 58%, #05030c 76%, rgba(10, 6, 20, 0.6) 88%, rgba(3, 3, 9, 0) 100%);
    box-shadow:
        0 0 46px 12px rgba(255,150,0,0.22),
        0 0 90px 30px rgba(120, 50, 200, 0.12),
        inset 0 0 34px 14px #000;
    animation: abyss-void-breathe 7s ease-in-out infinite;
}

@keyframes abyss-void-breathe {
    0%, 100% {
        box-shadow:
            0 0 46px 12px rgba(255,150,0,0.22),
            0 0 90px 30px rgba(120, 50, 200, 0.12),
            inset 0 0 34px 14px #000;
    }
    50% {
        box-shadow:
            0 0 60px 16px rgba(255,150,0,0.30),
            0 0 110px 40px rgba(120, 50, 200, 0.18),
            inset 0 0 34px 14px #000;
    }
}

@keyframes abyss-spin {
    to { transform: rotate(360deg); }
}

/* ─── The feast: throw animation, scaled by tier ──────────────
   Tier 1 (<100): a polite gulp.
   Tier 2 (<1,000): the disks feed — spin faster and flare.
   Tier 3 (<10,000): the hole swells and the page shakes.
   Tier 4 (10,000+): full feast — max growth, shockwaves, gold flash. */

.abyss-hole-wrap.abyss-feast-t1 { animation: abyss-gulp 0.6s ease-in-out; }
.abyss-hole-wrap.abyss-feast-t2 { animation: abyss-feast-2 1.3s ease-in-out; }
.abyss-hole-wrap.abyss-feast-t3 { animation: abyss-feast-3 1.9s ease-in-out; }
.abyss-hole-wrap.abyss-feast-t4 { animation: abyss-feast-4 2.6s ease-in-out; }

@keyframes abyss-gulp {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.05) rotate(-1deg); }
    70% { transform: scale(0.98) rotate(1deg); }
}

@keyframes abyss-feast-2 {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.10) rotate(-2deg); }
    55% { transform: scale(1.04) rotate(2deg); }
    75% { transform: scale(1.08) rotate(-1deg); }
}

@keyframes abyss-feast-3 {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.16) rotate(-3deg); }
    45% { transform: scale(1.08) rotate(3deg); }
    65% { transform: scale(1.20) rotate(-2deg); }
    85% { transform: scale(1.05) rotate(1deg); }
}

@keyframes abyss-feast-4 {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.18) rotate(-4deg); }
    35% { transform: scale(1.30) rotate(4deg); }
    55% { transform: scale(1.14) rotate(-3deg); }
    70% { transform: scale(1.38) rotate(2deg); }
    88% { transform: scale(1.06) rotate(-1deg); }
}

/* while feeding, the whole system flares: disks spin faster and brighter,
   dust whips around, the photon ring blazes, the halo swells */
.abyss-feeding .abyss-disk-outer { animation-duration: 5s;   filter: blur(6px) brightness(1.6); }
.abyss-feeding .abyss-disk-mid   { animation-duration: 2.5s; filter: blur(3px) brightness(1.8); }
.abyss-feeding .abyss-disk-inner { animation-duration: 1s;   filter: blur(2px) brightness(2.1); }
.abyss-feeding .abyss-dust-a     { animation-duration: 2s; }
.abyss-feeding .abyss-dust-b     { animation-duration: 3.5s; }
.abyss-feeding .abyss-photon {
    animation: none;
    opacity: 1;
    box-shadow:
        0 0 14px 3px rgba(255, 235, 190, 0.9),
        0 0 40px 10px rgba(255, 180, 60, 0.5),
        inset 0 0 12px 2px rgba(255, 220, 150, 0.6);
}
.abyss-feeding .abyss-halo {
    animation: none;
    opacity: 1;
    transform: scale(1.12);
}
.abyss-feeding .abyss-void {
    animation: none;
    box-shadow:
        0 0 80px 28px rgba(255,170,0,0.5),
        0 0 130px 50px rgba(140, 60, 220, 0.22),
        inset 0 0 34px 14px #000;
}

/* page shake for tier 3+, applied to <main> (transforming <body> would
   drag the fixed header along with it) */
main.abyss-shake-3 { animation: abyss-shake-3 0.5s ease-in-out; }
main.abyss-shake-4 { animation: abyss-shake-4 1.2s ease-in-out; }

@keyframes abyss-shake-3 {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-3px, 2px); }
    40% { transform: translate(3px, -2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

@keyframes abyss-shake-4 {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-6px, 4px); }
    25% { transform: translate(6px, -4px); }
    40% { transform: translate(-5px, -3px); }
    55% { transform: translate(5px, 4px); }
    70% { transform: translate(-4px, 2px); }
    85% { transform: translate(3px, -2px); }
}

/* expanding gold shockwave ring, spawned by JS at the hole's center */
.abyss-shockwave {
    position: fixed;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border: 3px solid rgba(255,191,0,0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 900;
    animation: abyss-shockwave 1s ease-out forwards;
}

@keyframes abyss-shockwave {
    from { transform: scale(0.2); opacity: 1; }
    to   { transform: scale(40); opacity: 0; }
}

/* tier-4 gold flash washing over the whole page */
.abyss-flash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 899;
    background: radial-gradient(circle at var(--flash-x, 30%) var(--flash-y, 40%),
        rgba(255,220,120,0.55) 0%, rgba(255,170,0,0.25) 35%, transparent 70%);
    animation: abyss-flash 1s ease-out forwards;
}

@keyframes abyss-flash {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}

/* coins thrown into the hole (spawned by abyss.js) */
.abyss-coin-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.abyss-coin {
    position: absolute;
    left: 50%;
    top: 50%;
    color: #ffbf00;
    font-size: 18px;
    text-shadow: 0 0 6px rgba(255,191,0,0.8);
    animation: abyss-coin-fall 1.1s cubic-bezier(0.5, 0, 0.9, 0.4) forwards;
}

@keyframes abyss-coin-fall {
    0% {
        transform: translate(var(--coin-x), var(--coin-y)) scale(1) rotate(0deg);
        opacity: 1;
    }
    80% { opacity: 1; }
    100% {
        transform: translate(-50%, -50%) scale(0.05) rotate(720deg);
        opacity: 0;
    }
}

/* ─── CUTE + word bubble ─────────────────────────────────────── */

.abyss-cute {
    position: relative;
    width: 165px;
    text-align: center;
    z-index: 2;
    flex-shrink: 0;
}

.abyss-cute-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #ffbf00;
    box-shadow: 0 0 16px rgba(255,191,0,0.35);
    animation: abyss-float 4s ease-in-out infinite;
    background: #0e0e0e;
}

.abyss-cute-img.abyss-cute-shake {
    animation: abyss-cute-shake 0.5s ease-in-out;
}

@keyframes abyss-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes abyss-cute-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px) rotate(-4deg); }
    50% { transform: translateX(6px) rotate(4deg); }
    75% { transform: translateX(-4px) rotate(-2deg); }
}

.abyss-bubble {
    position: relative;
    background: #fff;
    color: #1a1a1a;
    border-radius: 14px;
    padding: 9px 11px;
    font-size: 12.5px;
    line-height: 1.3;
    margin-bottom: 13px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abyss-bubble::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 10px solid #fff;
}

.abyss-bubble.abyss-bubble-pop {
    animation: abyss-bubble-pop 0.25s ease-out;
}

@keyframes abyss-bubble-pop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ─── Throw controls ─────────────────────────────────────────── */

.abyss-controls {
    background: rgba(9, 8, 18, 0.82);
    border: 1px solid rgba(140, 110, 220, 0.16);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 0 34px rgba(0, 0, 0, 0.65), inset 0 0 24px rgba(60, 30, 110, 0.08);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.abyss-gate {
    text-align: center;
    color: #bbb;
}

.abyss-gate p { margin: 0 0 14px; }

.abyss-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.abyss-balance-label {
    color: #9a9a9a;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.abyss-balance-value {
    color: #ffbf00;
    font-size: 20px;
    font-weight: bold;
}

.abyss-amount-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.abyss-amount-input {
    width: 100%;
    box-sizing: border-box;
    background: #06060e;
    border: 1px solid rgba(140, 110, 220, 0.25);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    padding: 9px 12px;
    text-align: center;
    outline: none;
}

.abyss-amount-input:focus { border-color: #ffbf00; }

.abyss-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* main.css gives every button a fixed 30px height — undo that here */
.abyss-btn {
    height: auto;
    background: rgba(26, 22, 44, 0.9);
    border: 1px solid rgba(140, 110, 220, 0.25);
    border-radius: 8px;
    color: #cfcbdd;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 10px;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.abyss-btn:hover {
    border-color: #ffbf00;
    color: #ffbf00;
}

.abyss-btn-gold,
.abyss-btn-throw {
    display: inline-block;
    background: #ffbf00;
    border-color: #ffbf00;
    color: #0e0e0e;
    font-weight: bold;
    text-decoration: none;
}

.abyss-btn-throw {
    width: 100%;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 11px;
}

.abyss-btn-gold:hover,
.abyss-btn-throw:hover {
    background: #ffd24d;
    color: #0e0e0e;
}

.abyss-btn-throw:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.abyss-error {
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

.abyss-total {
    margin-top: 12px;
    text-align: center;
    color: #bbb;
    font-size: 13px;
}

.abyss-total-num {
    color: #ffbf00;
    font-weight: bold;
}

.abyss-total-note {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 2px;
}

/* ─── Leaderboard (right column) ─────────────────────────────── */

.abyss-board {
    display: flex;
    flex-direction: column;
    min-height: 0;
    text-align: center;
}

.abyss-board-title {
    font-family: 'Dragon Slayer', sans-serif;
    color: #ffbf00;
    font-size: 26px;
    letter-spacing: 5px;
    margin: 0 0 2px;
    text-shadow:
        0 0 16px rgba(255, 191, 0, 0.4),
        0 0 40px rgba(150, 70, 220, 0.35);
}

.abyss-board-sub {
    color: #8a86a0;
    font-size: 13px;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
}

.abyss-table-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid rgba(140, 110, 220, 0.16);
    border-radius: 12px;
    background: rgba(9, 8, 18, 0.82);
    box-shadow: 0 0 34px rgba(0, 0, 0, 0.65), inset 0 0 24px rgba(60, 30, 110, 0.08);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.abyss-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.abyss-table th {
    color: #8a86a0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(140, 110, 220, 0.18);
    position: sticky;
    top: 0;
    background: rgba(12, 10, 26, 0.97);
}

.abyss-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(140, 110, 220, 0.08);
}

.abyss-table tbody tr:last-child td { border-bottom: none; }

.abyss-col-rank { width: 60px; text-align: center; }
.abyss-col-name { text-align: left; }
.abyss-col-dumped { text-align: right; color: #ffbf00; white-space: nowrap; }

.abyss-row-1 td { color: #ffd700; }
.abyss-row-2 td { color: #c0c0c0; }
.abyss-row-3 td { color: #cd7f32; }
.abyss-row-me td { background: rgba(255,191,0,0.06); }

.abyss-player-link {
    color: inherit;
    text-decoration: none;
}

.abyss-player-link:hover { color: #ffbf00; }

.abyss-loading {
    color: #777;
    text-align: center;
    padding: 24px;
}

.abyss-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    flex-shrink: 0;
}

.abyss-page-btn {
    height: auto;
    background: rgba(26, 22, 44, 0.9);
    border: 1px solid rgba(140, 110, 220, 0.25);
    border-radius: 6px;
    color: #cfcbdd;
    cursor: pointer;
    font-size: 13px;
    min-width: 32px;
    padding: 6px 8px;
}

.abyss-page-btn:hover:not(:disabled) { border-color: #ffbf00; color: #ffbf00; }
.abyss-page-btn.active { background: #ffbf00; border-color: #ffbf00; color: #0e0e0e; }
.abyss-page-btn:disabled { opacity: 0.4; cursor: default; }

/* ─── Short desktop viewports: shrink the hole so the throw card
       never clips; the left column scrolls as a last resort ─────── */

.abyss-left { overflow-y: auto; }

@media only screen and (max-height: 840px) and (min-width: 768px) {
    .abyss-hero { padding: 4px 0 10px; }

    .abyss-hole-wrap {
        width: 160px;
        height: 160px;
    }

    .abyss-disk-mid { inset: 19px; }
    .abyss-disk-inner { inset: 36px; }
    .abyss-void { inset: 45px; }
    .abyss-photon { inset: 41px; }
    .abyss-dust-a { inset: 12px; }
    .abyss-dust-b { inset: 25px; }

    .abyss-cute-img { width: 70px; height: 70px; }

    .abyss-bubble {
        font-size: 11.5px;
        padding: 7px 9px;
        margin-bottom: 12px;
    }

    .abyss-controls { padding: 14px; }
    .abyss-balance { margin-bottom: 10px; }
    .abyss-amount-row { margin-bottom: 10px; }
    .abyss-total { font-size: 12px; margin-top: 10px; }
}

/* ─── Mobile: columns stack and the page scrolls normally ────── */

@media only screen and ((max-width: 767px) or (hover: none)) {
    .abyss-page {
        height: auto;
        overflow: visible;
        grid-template-columns: 1fr;
        padding: 16px 12px 40px;
    }

    .abyss-hero {
        flex-direction: column;
        gap: 4px;
    }

    .abyss-cute {
        width: auto;
        max-width: 300px;
        margin: 12px auto 0;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }

    .abyss-bubble { margin-bottom: 0; margin-top: 14px; }

    .abyss-bubble::after {
        bottom: auto;
        top: -9px;
        border-top: none;
        border-bottom: 10px solid #fff;
    }

    .abyss-cute-img { width: 80px; height: 80px; }

    .abyss-board { margin-top: 26px; }

    .abyss-table-wrap { overflow-y: visible; }
}
