/* ========================================================
   CJP RAGE ROOM - RETRO GAZETTE ARCHIVE STYLES
   Vintage Newspaper & Inkprint Aesthetic Style Sheet
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bowlby+One&family=Great+Vibes&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Oswald:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette from index.html (Homepage) */
    --saffron: #E0651E;
    --saffron-2: #F0823A;
    --saffron-deep: #B84915;
    --green: #1F5A2E;
    --green-2: #2D7A45;
    --ink: #1A1108;
    --ink-2: #3A2A1C;
    --ink-3: #6A5440;
    --paper: #F4EBD7;
    --paper-2: #EADFC4;
    --paper-3: #DBCBA5;
    --blood: #8B1A1A;
    --gold: #C9A227;

    /* Fonts mapping */
    --display: 'Bowlby One', 'Impact', sans-serif;
    --condensed: 'Oswald', 'Arial Narrow', sans-serif;
    --sans: 'Inter', -apple-system, system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Semantic retro colors mapping for game compatibility */
    --primary: var(--blood);
    --secondary: var(--saffron);
    --accent: var(--green);
    --neon-blue: var(--ink-3);
    --text-white: var(--ink);
    --text-gray: var(--ink-2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Print Noise Grain Background Overlay */
body::before {
    content: '';
    position: fixed; 
    inset: 0;
    pointer-events: none;
    z-index: 200;
    opacity: 0.25;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08, 0 0 0 0 0.06, 0 0 0 0 0.04, 0 0 0 0.32 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}

/* Header style matching homepage */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    background: rgba(244, 235, 215, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--ink);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.brand-logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
}
.brand-logo svg {
    width: 100%;
    height: 100%;
}
.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1;
}
.brand-name {
    font-family: var(--display);
    font-size: 16px;
    letter-spacing: 0.01em;
    line-height: 0.94;
    color: var(--ink);
}
.brand-tag {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--saffron-deep);
}

header nav a {
    color: var(--ink);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: all 0.2s ease;
}

header nav a.home-btn {
    border: 2px solid var(--ink);
    padding: 8px 18px;
    border-radius: 0px;
    font-family: var(--condensed);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 3px 3px 0 var(--ink);
}

header nav a.home-btn:hover {
    background: var(--saffron-deep);
    border-color: var(--saffron-deep);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
}

/* Layout Container */
.main-container {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    z-index: 5;
}

@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Menu Panel (Vintage Gazette styling) */
.console-sidebar {
    background: var(--paper-2);
    border: 3px solid var(--ink);
    border-radius: 0px;
    padding: 24px;
    box-shadow: 6px 6px 0 var(--ink);
    height: fit-content;
}

.console-title {
    font-family: var(--condensed);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px double var(--ink);
    padding-bottom: 10px;
}

.game-menu-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    background: var(--paper-3);
    border: 2px solid var(--ink);
    padding: 16px;
    border-radius: 0px;
    color: var(--ink);
    font-family: var(--condensed);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.18s;
    box-shadow: 3px 3px 0 var(--ink);
}

.game-menu-btn:hover {
    background: var(--paper-2);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--ink);
}

.game-menu-btn.active {
    background: var(--saffron);
    border-color: var(--ink);
    color: var(--paper);
    box-shadow: 4px 4px 0 var(--ink);
    transform: translate(-1px, -1px);
}

.game-menu-btn.active .btn-icon {
    transform: scale(1.2);
}

.btn-icon {
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

/* Right Section - Interactive Screen Redesign */
.game-screen-wrapper {
    position: relative;
    background: var(--paper);
    border-radius: 0px;
    border: 4px double var(--ink);
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--ink);
    min-height: 580px;
    display: flex;
    flex-direction: column;
}

.crt-overlay, .crt-vignette {
    display: none; /* Hide neon scanline glowing overlay */
}

/* Game Arena Grid inside paper sheet */
.game-arena {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.game-panel {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.game-panel.active {
    display: flex;
}

.game-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 3px double var(--ink);
    padding-bottom: 15px;
}

.game-title-text h2 {
    font-family: var(--display);
    font-size: 1.6rem;
    color: var(--ink);
    font-weight: 400;
}

.game-title-text p {
    font-size: 0.85rem;
    color: var(--ink-3);
    margin-top: 4px;
    font-weight: 500;
}

.game-stats {
    display: flex;
    gap: 15px;
}

.stat-badge {
    background: var(--paper-2);
    padding: 8px 14px;
    border-radius: 0px;
    font-family: var(--mono);
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}

.stat-badge span {
    color: var(--saffron-deep);
}

/* ========================================================
   GAME 1: SYSTEM TOD SMASHER REDESIGN
   ======================================================== */
.system-pc-container {
    perspective: 800px;
    margin: auto;
    position: relative;
    cursor: pointer;
}

.system-pc {
    width: 320px;
    height: 250px;
    background: var(--paper-2);
    border-radius: 0px;
    border: 6px solid var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    position: relative;
    overflow: hidden;
    transition: transform 0.05s ease;
}

.system-pc:active {
    transform: scale(0.97);
}

.pc-screen {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    background: var(--paper-3);
    border: 2px solid var(--ink);
    margin: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pc-content {
    text-align: center;
    padding: 15px;
}

.pc-content .pc-icon {
    font-size: 3.2rem;
    margin-bottom: 8px;
}

.pc-text-error {
    font-family: var(--condensed);
    color: var(--blood);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.pc-subtext {
    font-size: 0.8rem;
    font-family: var(--mono);
    color: var(--ink-3);
    font-weight: 500;
}

.pc-base {
    width: 180px;
    height: 16px;
    background: var(--ink);
    margin: 0 auto;
    border-radius: 0px;
    box-shadow: 4px 4px 0 var(--ink);
}

.pc-stand {
    width: 60px;
    height: 30px;
    background: var(--ink-2);
    margin: 0 auto;
    border-left: 3px solid var(--ink);
    border-right: 3px solid var(--ink);
}

.glass-crack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0.95;
}

.glass-crack line {
    stroke: var(--ink) !important; /* Thick ink cracks instead of white neon sparks! */
    stroke-width: 2px !important;
}

/* Rage Meter Container */
.rage-meter-container {
    width: 100%;
    max-width: 450px;
    margin: 20px auto 0;
    text-align: center;
}

.rage-bar-outer {
    width: 100%;
    height: 24px;
    background: var(--paper-2);
    border: 3px solid var(--ink);
    border-radius: 0px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 2px 2px 0 rgba(0,0,0,0.1);
}

.rage-bar-inner {
    height: 100%;
    width: 0%;
    background: var(--saffron);
    transition: width 0.1s cubic-bezier(0, 0, 0.2, 1);
    border-right: 2px solid var(--ink);
}

.rage-label {
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

/* Floating comic elements on hit */
.smash-particle {
    position: absolute;
    font-size: 0.95rem;
    font-family: var(--condensed);
    font-weight: 800;
    color: var(--blood);
    pointer-events: none;
    z-index: 100;
    animation: fly-out 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    background: var(--paper);
    border: 2px solid var(--ink);
    padding: 3px 6px;
    box-shadow: 2px 2px 0 var(--ink);
}

.shake-element {
    animation: shake 0.15s ease-in-out infinite;
}

/* ========================================================
   GAME 2: PAPER LEAK WHACK-A-MOLE REDESIGN
   ======================================================== */
.whack-grid {
    display: grid;
    grid-template-columns: repeat(3, 160px);
    grid-gap: 20px;
    margin: 20px auto;
}

@media (max-width: 600px) {
    .whack-grid {
        grid-template-columns: repeat(2, 140px);
    }
}

.whack-hole {
    height: 120px;
    background: var(--paper-3);
    border: 3px solid var(--ink);
    border-radius: 50%; /* Stamped round ink shapes */
    position: relative;
    overflow: hidden;
    box-shadow: inset 4px 4px 0 rgba(0,0,0,0.15);
}

.mole-character {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: -100%;
    left: 0;
    transition: bottom 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12px;
    cursor: none;
}

.whack-grid:hover {
    cursor: none;
}

.mole-character.up {
    bottom: 0;
}

.mole-avatar {
    font-size: 3rem;
    filter: drop-shadow(3px 3px 0 var(--ink));
    transition: transform 0.1s ease;
}

.mole-label {
    background: var(--ink);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 0px;
    margin-top: 5px;
    border: 1px solid var(--ink);
}

/* Custom Chappal slap cursor */
.chappal-cursor {
    width: 60px;
    height: 60px;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 3rem;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.05s ease;
    display: none;
}

.chappal-cursor.slap {
    transform: translate(-50%, -50%) rotate(-45deg) scale(0.8);
}

/* ========================================================
   GAME 3: SARKARI WIFI BOOSTER REDESIGN
   ======================================================== */
.wifi-booster-arena {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.booster-button-wrapper {
    position: relative;
    margin: 20px auto;
}

.giant-booster-btn {
    width: 160px;
    height: 160px;
    border-radius: 0px; /* Sharp woodcut print block */
    background: var(--saffron);
    border: 4px solid var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--paper);
    cursor: pointer;
    transition: all 0.1s ease;
    user-select: none;
}

.giant-booster-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--ink);
}

.booster-icon {
    font-size: 3.5rem;
    margin-bottom: 5px;
    color: var(--paper);
    filter: drop-shadow(2px 2px 0 var(--ink));
    animation: radar-pulse 2s infinite ease-in-out;
}

.giant-booster-btn p {
    font-family: var(--condensed);
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Fleeing bureaucratic popups */
.frustration-popup {
    position: absolute;
    background: var(--paper-2);
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    border-radius: 0px;
    padding: 12px 18px;
    width: 260px;
    z-index: 100;
    font-size: 0.82rem;
    color: var(--ink);
    animation: popup-bounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 5px;
    margin-bottom: 8px;
    font-family: var(--condensed);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--blood);
}

.popup-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--ink-3);
    font-weight: bold;
}

.popup-close:hover {
    color: var(--blood);
}

.popup-body {
    color: var(--ink-2);
    line-height: 1.4;
    font-weight: 500;
}

.speedometer-container {
    width: 100%;
    max-width: 450px;
    margin: 20px auto 0;
    text-align: center;
}

.speed-meter-value {
    font-family: var(--display);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 8px;
}

.speed-meter-value span {
    font-size: 1.1rem;
    font-family: var(--condensed);
    font-weight: 600;
    color: var(--ink-3);
    margin-left: 5px;
}

/* ========================================================
   GAME 4: ALSI CATCHER STYLES (NEW GAME)
   ======================================================== */
.catcher-arena {
    width: 100%;
    height: 350px;
    background: var(--paper-2);
    border: 3px solid var(--ink);
    box-shadow: inset 3px 3px 0 rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    margin: 15px auto;
}

.catcher-basket {
    width: 90px;
    height: 35px;
    background: var(--saffron);
    border: 3px solid var(--ink);
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 3px 3px 0 var(--ink);
    z-index: 10;
}

.basket-cushion {
    font-size: 1.8rem;
    transform: translateY(-8px);
}

.falling-item {
    position: absolute;
    font-size: 2.5rem;
    filter: drop-shadow(2px 2px 0 var(--ink));
    z-index: 5;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.catcher-instructions {
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--ink-3);
    font-weight: 600;
}

.touch-controls {
    display: none;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    width: 100%;
}

.touch-btn {
    flex: 1;
    max-width: 120px;
    background: var(--paper-3);
    border: 2px solid var(--ink);
    padding: 12px;
    font-family: var(--condensed);
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--ink);
    user-select: none;
}

.touch-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
}

@media (max-width: 768px) {
    .touch-controls {
        display: flex;
    }
}

/* ========================================================
   WIN / LOSE OVERLAYS
   ======================================================== */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    border: 4px double var(--ink);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 30px;
    text-align: center;
    animation: fade-in 0.3s ease-out forwards;
}

.game-overlay.active {
    display: flex;
}

.win-icon {
    font-size: 4.5rem;
    margin-bottom: 15px;
}

.win-title {
    font-family: var(--display);
    font-size: 2rem;
    color: var(--blood);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 400;
}

.win-text {
    font-size: 1.05rem;
    color: var(--ink-2);
    max-width: 500px;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 500;
}

.btn-restart {
    background: var(--saffron);
    border: 3px solid var(--ink);
    color: var(--paper);
    padding: 12px 36px;
    border-radius: 0px;
    font-family: var(--condensed);
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0 var(--ink);
}

.btn-restart:hover {
    background: var(--saffron-deep);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

/* ========================================================
   KEYFRAMES & ANIMATIONS
   ======================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fly-out {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x, 50px), var(--y, -100px)) scale(0.7) rotate(var(--r, 45deg));
        opacity: 0;
    }
}

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

@keyframes popup-bounce {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes radar-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

/* Header Controls & BGM toggle */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bgm-toggle-btn {
    background: var(--paper-2);
    border: 2px solid var(--ink);
    color: var(--ink);
    padding: 8px 16px;
    border-radius: 0px;
    font-family: var(--condensed);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 3px 3px 0 var(--ink);
    transition: all 0.18s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bgm-toggle-btn:hover {
    background: var(--saffron);
    color: var(--paper);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--ink);
}

.bgm-toggle-btn.muted {
    color: var(--ink-3);
    background: var(--paper-3);
}

/* Combo multiplier badge */
.combo-badge-container {
    position: absolute;
    top: 95px;
    right: 25px;
    z-index: 100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.combo-badge {
    background: var(--blood);
    color: var(--paper);
    padding: 8px 16px;
    border-radius: 0px;
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.1rem;
    box-shadow: 4px 4px 0 var(--ink);
    border: 2px solid var(--ink);
    transform: scale(0);
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 6px;
}

.combo-badge.show {
    transform: scale(1);
    animation: combo-pulse 0.3s infinite alternate ease-in-out;
}

@keyframes combo-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05) rotate(1deg); }
}

.combo-progress {
    width: 100px;
    height: 8px;
    background: var(--paper-3);
    border: 2px solid var(--ink);
    border-radius: 0px;
    margin-top: 6px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

.combo-progress.show {
    opacity: 1;
}

.combo-progress-bar {
    height: 100%;
    background: var(--blood);
    width: 100%;
    transition: width 0.1s linear;
}

/* Click Shockwaves and sparks */
.click-shockwave {
    position: absolute;
    border: 3px solid var(--ink);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    animation: shockwave-expand 0.4s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
    z-index: 99;
}

@keyframes shockwave-expand {
    0% {
        width: 0px;
        height: 0px;
        opacity: 1;
    }
    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
        border-color: var(--saffron);
    }
}

.spark-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid var(--ink);
    pointer-events: none;
    z-index: 100;
    animation: spark-fly 0.6s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

@keyframes spark-fly {
    0% {
        transform: translate(-50%, -50%) scale(1.5) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2) rotate(180deg);
        opacity: 0;
    }
}

/* Leaderboards inside overlays */
.leaderboard-section {
    background: var(--paper-2);
    border: 3px double var(--ink);
    border-radius: 0px;
    padding: 15px;
    margin-top: 15px;
    width: 100%;
    max-width: 380px;
    box-shadow: 4px 4px 0 var(--ink);
}

.leaderboard-title {
    font-family: var(--condensed);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 4px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
    font-family: var(--mono);
    color: var(--ink);
}

.leaderboard-table th {
    color: var(--ink-3);
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--ink);
}

.leaderboard-table td {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(26,17,8,0.25);
    font-weight: 500;
}

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

.leaderboard-table .rank-highlight {
    color: var(--blood);
    font-weight: 700;
}

.leaderboard-table .score-value {
    color: var(--saffron-deep);
    font-weight: 700;
    text-align: right;
}

/* Frustrating Mini-Tasks for WiFi Booster */
.frustration-popup.mini-task-popup {
    width: 290px;
    background: var(--paper-2);
    border-color: var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
}

.mini-task-container {
    margin-top: 10px;
    background: var(--paper-3);
    border-radius: 0px;
    padding: 10px;
    border: 2px solid var(--ink);
}

.mini-task-instruction {
    font-size: 0.75rem;
    color: var(--ink-2);
    margin-bottom: 8px;
    line-height: 1.3;
    font-weight: bold;
}

/* Aadhaar dodging checkbox */
.aadhaar-box-wrapper {
    position: relative;
    height: 65px;
    width: 100%;
    border: 2px dashed var(--ink);
    background: var(--paper);
    overflow: hidden;
}

.dodging-checkbox-btn {
    position: absolute;
    background: var(--saffron);
    border: 2px solid var(--ink);
    color: var(--paper);
    padding: 4px 10px;
    border-radius: 0px;
    font-family: var(--condensed);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: top 0.1s ease, left 0.1s ease;
    white-space: nowrap;
    box-shadow: 2px 2px 0 var(--ink);
}

/* Captcha task */
.captcha-task-inputs {
    display: flex;
    gap: 8px;
}

.captcha-task-input {
    flex: 1;
    background: var(--paper);
    border: 2px solid var(--ink);
    color: var(--ink);
    padding: 6px 10px;
    font-size: 0.8rem;
    font-family: var(--mono);
    outline: none;
    border-radius: 0px;
}

.captcha-task-btn {
    background: var(--green);
    border: 2px solid var(--ink);
    color: var(--paper);
    padding: 6px 12px;
    font-family: var(--condensed);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--ink);
    border-radius: 0px;
}

.captcha-task-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--ink);
}

/* Bribe slider */
.bribe-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bribe-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--paper-2);
    outline: none;
    border: 2px solid var(--ink);
}

.bribe-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--saffron);
    border: 2px solid var(--ink);
    cursor: pointer;
}

.bribe-slider-value {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-family: var(--mono);
    font-weight: bold;
}

/* Mascot Penalty Alert */
.penalty-alert-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--paper-2);
    border: 4px solid var(--blood);
    box-shadow: 8px 8px 0 var(--ink);
    padding: 20px;
    width: 320px;
    z-index: 450;
    text-align: center;
    pointer-events: none;
    display: none;
    animation: popup-bounce 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.penalty-alert-overlay.active {
    display: block;
}

.penalty-alert-title {
    font-family: var(--display);
    color: var(--blood);
    font-size: 1.15rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.penalty-alert-text {
    font-size: 0.85rem;
    color: var(--ink);
    line-height: 1.5;
    font-weight: bold;
}
