/* ═══════════════════════════════════════════
   Detektif Jatim — Complete Style System
   ═══════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
    --bg:          #080f1e;
    --surface:     rgba(15, 23, 48, 0.92);
    --surface2:    rgba(25, 35, 65, 0.85);
    --border:      rgba(255,255,255,0.08);
    --border2:     rgba(255,255,255,0.14);
    --text:        #f1f5f9;
    --muted:       #64748b;
    --muted2:      #94a3b8;
    --primary:     #3b82f6;
    --primary2:    #2563eb;
    --accent:      #10b981;
    --danger:      #f43f5e;
    --warn:        #f59e0b;
    --purple:      #a855f7;
    --city-primary:#3b82f6;
    --city-glow:   rgba(59,130,246,0.5);
    --radius:      14px;
    --radius-sm:   9px;
    --shadow:      0 8px 32px rgba(0,0,0,0.5);
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box; margin: 0; padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #000;
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh;
    color: var(--text);
    overflow: hidden;
}

/* ── Game Container ── */
#game-container {
    width: 100%; max-width: 430px; height: 100vh;
    background: var(--bg);
    position: relative; overflow: hidden;
    box-shadow: 0 0 60px rgba(59,130,246,0.15);
    z-index: 1;
}
#bg-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.06) 0%, transparent 70%);
    z-index: 0;
}

/* ── Screen Base ── */
.screen {
    position: absolute; inset: 0;
    display: none; flex-direction: column;
    z-index: 10;
}
.screen.active { display: flex !important; }

/* Title screen selalu flex saat active */
#screen-title {
    z-index: 20 !important;
    background: radial-gradient(ellipse at 50% 20%, #1a1060 0%, #080f1e 60%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
#screen-title.active {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.header {
    background: rgba(8,15,30,0.92);
    padding: 10px 14px 8px;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 20;
}
.header-simple {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; padding-bottom: 16px;
}
.header-top {
    display: flex; align-items: center; width: 100%; margin-bottom: 10px;
}
.header-top h2 { flex: 1; font-size: 1.05rem; font-weight: 700; text-align: center; }
.status-bar {
    display: flex; justify-content: space-between;
    font-size: 0.82rem; font-weight: 500; color: var(--muted2);
    margin-bottom: 3px;
}

/* ════════════════════════════════════════
   XP BAR
════════════════════════════════════════ */
.xp-track {
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px; overflow: hidden;
}
.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--city-primary), var(--purple));
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
    width: 100%; padding: 11px 14px;
    border: none; border-radius: var(--radius);
    font-size: 0.92rem; font-weight: 600;
    cursor: pointer; transition: all 0.18s ease;
    color: var(--text); outline: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:disabled {
    background: rgba(255,255,255,0.08);
    box-shadow: none; color: var(--muted); cursor: not-allowed;
}

.btn-action {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border2);
    font-size: 0.83rem;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-action:hover { background: rgba(255,255,255,0.1); }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--muted2);
    padding: 11px;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost-icon {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 10px 14px; font-size: 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--muted2); cursor: pointer; transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-back {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted2); font-size: 0.82rem;
    padding: 8px 14px; cursor: pointer; transition: all 0.2s;
    flex-shrink: 0;
}
.btn-back:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.btn-full { grid-column: span 2; }

.btn-hero {
    background: linear-gradient(135deg, #1d4ed8, #4f46e5);
    border-radius: var(--radius); padding: 16px;
    font-size: 1rem; font-weight: 700;
    box-shadow: 0 6px 24px rgba(59,130,246,0.4);
    cursor: pointer; color: white; transition: all 0.2s;
    width: 100%;
}
.btn-hero:hover { filter: brightness(1.12); transform: translateY(-1px); }

.btn-floating {
    position: fixed; bottom: 20px; right: 20px;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--primary); border: none;
    font-size: 1.4rem; cursor: pointer; z-index: 100;
    box-shadow: 0 4px 16px rgba(59,130,246,0.5);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}

/* ════════════════════════════════════════
   TOAST / ALERTS
════════════════════════════════════════ */
#toast-container {
    position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
    z-index: 9999; display: flex; flex-direction: column; gap: 6px;
    width: 90%; pointer-events: none;
}
.toast {
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; padding: 10px 14px;
    font-size: 0.84rem; color: var(--text);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease-out;
    pointer-events: auto;
}
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* ════════════════════════════════════════
   MODALS
════════════════════════════════════════ */
.modal-overlay {
    position: absolute; inset: 0; z-index: 500;
    background: rgba(0,0,0,0.7);
    display: none; justify-content: center; align-items: flex-end;
    backdrop-filter: blur(4px);
}
.modal-sheet {
    background: #0f1b35;
    border: 1px solid var(--border2);
    border-radius: 20px 20px 0 0;
    padding: 20px 20px 28px;
    width: 100%; max-height: 75vh; overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.modal-handle {
    width: 36px; height: 4px; border-radius: 4px;
    background: rgba(255,255,255,0.15);
    margin: 0 auto 16px;
}
.modal-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }

/* ════════════════════════════════════════
   HIDDEN UTILITY
════════════════════════════════════════ */
.hidden { display: none !important; }

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeUp {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.65; }
}
/* ════════════════════════════════════════
   HEADER (duplicate block)
════════════════════════════════════════ */
.header {
    background: rgba(8,15,30,0.92);
    padding: 10px 14px 8px;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 20;
}
.header-simple {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; padding-bottom: 16px;
}
.header-top {
    display: flex; align-items: center; width: 100%; margin-bottom: 10px;
}
.header-top h2 { flex: 1; font-size: 1.05rem; font-weight: 700; text-align: center; }
.status-bar {
    display: flex; justify-content: space-between;
    font-size: 0.82rem; font-weight: 500; color: var(--muted2);
    margin-bottom: 3px;
}

/* ════════════════════════════════════════
   XP BAR
════════════════════════════════════════ */
.xp-track {
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px; overflow: hidden;
}
.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--city-primary), var(--purple));
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
    width: 100%; padding: 11px 14px;
    border: none; border-radius: var(--radius);
    font-size: 0.92rem; font-weight: 600;
    cursor: pointer; transition: all 0.18s ease;
    color: var(--text); outline: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:disabled {
    background: rgba(255,255,255,0.08);
    box-shadow: none; color: var(--muted); cursor: not-allowed;
}

.btn-action {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border2);
    font-size: 0.83rem;
    display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-action:hover { background: rgba(255,255,255,0.1); }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--muted2);
    padding: 11px;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost-icon {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 10px 14px; font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-back {
    background: transparent; border: none;
    color: var(--primary); font-size: 0.9rem;
    font-weight: 600; cursor: pointer;
    margin-right: 10px; padding: 4px;
}

.btn-full { grid-column: span 2; }

.btn-hero {
    font-size: 1.05rem; font-weight: 700; padding: 16px;
    box-shadow: 0 6px 30px rgba(59,130,246,0.45);
    letter-spacing: 0.3px;
}

.btn-floating {
    position: absolute; bottom: 16px; right: 16px;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border2);
    font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 50;
}

/* ════════════════════════════════════════
   START SCREEN
════════════════════════════════════════ */
.screen-start-inner {
    flex: 1; display: flex; flex-direction: column;
    align-items: stretch; gap: 12px;
    padding: 24px 18px 70px; overflow-y: auto;
}

.start-hero { text-align: center; padding-bottom: 4px; }
.hero-logo {
    font-size: 4.5rem;
    display: block; margin-bottom: 6px;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.hero-title {
    font-size: 2.1rem; font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}
.hero-sub { font-size: 0.88rem; color: var(--muted2); margin-top: 6px; line-height: 1.4; }

.glass-sm {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px;
    backdrop-filter: blur(12px);
}

.rep-panel { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.rep-left  { font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.rep-right { font-size: 0.78rem; color: var(--warn); font-weight: 600; }

.start-secondary-btns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

/* Leaderboard */
.leaderboard-panel {}
.lb-title { font-size: 0.88rem; font-weight: 700; color: var(--warn); margin-bottom: 8px; }
.lb-entry {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 4px; font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
}
.lb-entry:last-child { border: none; }
.lb-medal { font-size: 1rem; }
.lb-emoji { font-size: 1.1rem; }
.lb-char-name { flex: 1; font-weight: 600; }
.lb-score { color: var(--warn); font-weight: 700; }
.lb-diff  { font-size: 0.9rem; }
.empty-state { color: var(--muted); font-size: 0.82rem; text-align: center; padding: 16px 0; line-height: 1.5; }

/* ════════════════════════════════════════
   CHARACTER SELECTION
════════════════════════════════════════ */
.char-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.char-card {
    background: var(--surface2);
    border: 2px solid var(--border);
    border-radius: var(--radius); padding: 18px 12px;
    text-align: center; cursor: pointer;
    transition: all 0.2s ease;
}
.char-card:hover { border-color: var(--primary); background: rgba(59,130,246,0.1); }
.char-card.selected {
    border-color: var(--city-primary);
    background: rgba(59,130,246,0.18);
    box-shadow: 0 0 20px var(--city-glow);
}
.char-emoji { font-size: 2.8rem; margin-bottom: 8px; }
.char-name  { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.char-desc  { font-size: 0.72rem; color: var(--muted2); line-height: 1.4; }

.bottom-action { padding: 14px 18px; flex-shrink: 0; }


/* ════════════════════════════════════════
   HUD BASE STYLES (shared)
════════════════════════════════════════ */
.hud-label {
    font-size: 0.48rem; font-weight: 800; letter-spacing: 2px;
    color: #3b82f6; text-transform: uppercase;
}
.hud-val {
    font-size: 0.82rem; font-weight: 700; color: #e2e8f0;
    font-family: 'Courier New', monospace;
}
.hud-money { color: #10b981; }
.hud-location {
    font-size: 0.75rem; font-weight: 600; color: #94a3b8;
    text-align: center;
}
.hud-agent { display: flex; align-items: center; gap: 4px; }
.hud-avatar { font-size: 1.1rem; }
.hud-rank   { font-size: 0.85rem; }
.hud-career { font-size: 0.8rem; }
.hud-warrant-wrap { display: flex; align-items: center; }
.hud-warrant {
    font-size: 0.68rem; font-weight: 700; color: #f43f5e;
    letter-spacing: 0.3px;
}

/* ════════════════════════════════════════
   OPS BUTTONS (shared)
════════════════════════════════════════ */
.ops-span2 { grid-column: 1 / -1; }
.ops-btn {
    display: flex; align-items: center; justify-content: flex-start; gap: 7px;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    cursor: pointer; transition: all 0.15s ease;
    color: #cbd5e1;
    font-size: 0.8rem; font-weight: 600;
    text-align: left; width: 100%;
    position: relative; overflow: hidden;
}
.ops-btn::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; border-radius: 2px;
    background: rgba(255,255,255,0.15);
    transition: background 0.2s;
}
.ops-btn:active { transform: scale(0.97); }
.ops-icon { font-size: 1rem; flex-shrink: 0; }
.ops-label { font-size: 0.78rem; font-weight: 600; line-height: 1; }

/* ════════════════════════════════════════
   CITY SCREEN — WAR ROOM LAYOUT
════════════════════════════════════════ */

/* Screen container */
#screen-city {
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: #040810;
    position: absolute;
}
#screen-city.active {
    display: flex !important;
    flex-direction: column !important;
}

/* ─── Full-Screen Map Background ─── */
.warroom-map-bg {
    position: absolute;
    inset: 8px 10px;
    z-index: 1;
    overflow: hidden;
    border-radius: 14px;
    border: 1.5px solid rgba(59,130,246,0.35);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5),
                0 0 15px rgba(59,130,246,0.08);
}
.warroom-map-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(4,8,16,0.0) 0%, rgba(4,8,16,0.15) 50%, rgba(4,8,16,0.5) 100%);
    pointer-events: none;
    z-index: 2;
}
.warroom-map-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: 1;
}

/* Animated location pin */
.warroom-pin {
    position: absolute;
    z-index: 3;
    width: 24px; height: 24px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1), top 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.warroom-pin-dot {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16,185,129,0.4);
    z-index: 2;
}
.warroom-pin-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(16,185,129,0.5);
    animation: warroom-pulse 2s ease-out infinite;
    z-index: 1;
}
@keyframes warroom-pulse {
    0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ─── Floating HUD Overlay ─── */
.warroom-hud {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(4,8,16,0.92) 0%, rgba(4,8,16,0.7) 80%, transparent 100%);
    padding: 10px 14px 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.warroom-hud::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.25), transparent);
}
.warroom-hud-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 6px;
}
.warroom-hud-sub {
    margin-top: 5px; padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.warroom-hud-cell { display: flex; flex-direction: column; gap: 1px; }
.warroom-hud-center { align-items: center; flex: 1; }
.warroom-hud-right  { align-items: flex-end; }

/* ─── Draggable Bottom Sheet ─── */
.warroom-sheet {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    z-index: 15;
    background: rgba(8,15,30,0.94);
    border-top: 1px solid rgba(59,130,246,0.2);
    border-radius: 20px 20px 0 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.6), 0 -2px 12px rgba(59,130,246,0.08);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
    max-height: 88vh;
    overflow: hidden;
}

/* Half state — show city header + status + buttons */
.warroom-sheet-half {
    transform: translateY(0);
    max-height: 48vh;
}

/* Full state — scrollable with all content */
.warroom-sheet-full {
    transform: translateY(0);
    max-height: 82vh;
    overflow-y: auto;
}

/* Collapsed state — just handle visible */
.warroom-sheet-collapsed {
    transform: translateY(calc(100% - 30px));
}

/* Drag handle */
.warroom-sheet-handle {
    padding: 10px 0 6px;
    display: flex; justify-content: center; align-items: center;
    cursor: grab;
    touch-action: none;
    flex-shrink: 0;
}
.warroom-sheet-handle:active { cursor: grabbing; }
.warroom-handle-bar {
    width: 36px; height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
    transition: background 0.2s, width 0.2s;
}
.warroom-sheet-handle:hover .warroom-handle-bar {
    background: rgba(255,255,255,0.35);
    width: 44px;
}

/* Sheet content */
.warroom-sheet-content {
    padding: 0 14px 14px;
    display: flex; flex-direction: column; gap: 8px;
}

/* City header */
.warroom-city-header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.warroom-city-left { flex: 1; }
.warroom-city-label {
    font-size: 0.48rem; font-weight: 800; letter-spacing: 2.5px;
    color: var(--city-primary); text-transform: uppercase; margin-bottom: 2px;
}
.warroom-city-name {
    font-size: 1.45rem; font-weight: 800; line-height: 1.15;
    background: linear-gradient(135deg, var(--city-primary), #a78bfa 70%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    transition: background 0.8s;
}
.warroom-region {
    font-size: 0.62rem; color: #64748b; margin-top: 3px; font-weight: 500;
}

/* Artifact badge */
.warroom-artifact-badge {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-width: 65px;
    background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 8px;
    padding: 6px 8px;
    flex-shrink: 0;
}
.warroom-artifact-label {
    font-size: 0.44rem; font-weight: 800; letter-spacing: 2px;
    color: #475569; text-transform: uppercase;
}
.warroom-artifact-icon { font-size: 1.35rem; }
.warroom-artifact-name {
    font-size: 0.56rem; font-weight: 700; color: #f59e0b;
    text-align: center; line-height: 1.25;
}

/* Status bar */
.warroom-status-bar {
    background: rgba(15,23,48,0.7);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid var(--city-primary);
    border-radius: 7px;
    padding: 7px 10px;
}
.warroom-status-text {
    font-size: 0.76rem; color: #94a3b8; line-height: 1.45;
}

/* Action button grid — reuse ops-btn styles */
.warroom-ops {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

/* ─── WARROOM MAP NODES (background map) ─── */
.wr-node {
    fill: rgba(255,255,255,0.18);
    transition: fill 0.3s, r 0.3s;
}
.wr-node.wr-current {
    fill: #10b981;
    filter: drop-shadow(0 0 8px #10b981);
    animation: wr-blink 1.2s ease-in-out infinite;
}
@keyframes wr-blink {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px #10b981); }
    50%      { opacity: 0.4; filter: drop-shadow(0 0 16px #10b981); }
}
.wr-node.wr-reachable {
    fill: rgba(245,158,11,0.6);
    filter: drop-shadow(0 0 4px rgba(245,158,11,0.4));
    cursor: pointer;
}
.wr-node.wr-visited {
    fill: rgba(99,102,241,0.5);
}
.wr-line {
    stroke: rgba(255,255,255,0.12);
    stroke-width: 1.2;
}
.wr-line.wr-reachable-line {
    stroke: rgba(245,158,11,0.6);
    stroke-width: 2;
    stroke-dasharray: 4 4;
    animation: dash 1s linear infinite;
}
.wr-label {
    fill: rgba(255,255,255,0.6);
    font-size: 20px;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
    font-family: 'Outfit', sans-serif;
}
.wr-label.wr-label-current {
    fill: #10b981;
    font-size: 24px;
    font-weight: 800;
}
.wr-label.wr-label-reachable {
    fill: rgba(245,158,11,0.9);
    font-size: 22px;
}

/* ════════════════════════════════════════
   DIFFICULTY SELECTION
════════════════════════════════════════ */
.diff-grid { display: flex; flex-direction: column; gap: 12px; }
.diff-card {
    background: var(--surface2);
    border: 2px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px;
    cursor: pointer; transition: all 0.2s ease;
}
.diff-card:hover { border-color: var(--primary); }
.diff-card.selected {
    border-color: var(--city-primary);
    box-shadow: 0 0 20px var(--city-glow);
    background: rgba(59,130,246,0.12);
}
.diff-icon  { font-size: 1.5rem; margin-bottom: 4px; }
.diff-label { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.diff-desc  { font-size: 0.8rem; color: var(--muted2); margin-bottom: 10px; line-height: 1.4; }
.diff-stats { display: flex; gap: 14px; font-size: 0.78rem; color: var(--warn); font-weight: 600; }

/* ════════════════════════════════════════
   CONTENT AREA
════════════════════════════════════════ */
.content-padded { padding: 16px 18px; overflow-y: auto; }

/* ════════════════════════════════════════
   INVESTIGATE / WITNESSES
════════════════════════════════════════ */
.witness-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.witness-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border2);
    border-radius: var(--radius); padding: 14px 18px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; transition: all 0.18s;
    color: var(--text); font-size: 0.92rem;
}
.witness-btn:hover { background: rgba(255,255,255,0.09); border-color: var(--primary); }
.witness-btn.premium { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.07); }
.witness-cost { font-size: 0.78rem; color: var(--muted2); }
.premium-cost { color: var(--warn); font-weight: 600; }

.clue-box {
    margin-top: 18px; padding: 16px 18px;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: var(--radius);
    display: flex; gap: 14px; align-items: flex-start;
    animation: fadeUp 0.3s ease-out;
}
.clue-avatar { font-size: 2.2rem; flex-shrink: 0; }
.clue-text   { font-style: italic; color: #e2e8f0; line-height: 1.5; font-size: 0.92rem; }

/* ════════════════════════════════════════
   WARRANT / FORM
════════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--muted2); font-size: 0.85rem; }
.form-control {
    width: 100%; padding: 12px 14px;
    background: rgba(0,0,0,0.5); border: 1px solid #334155;
    border-radius: var(--radius-sm); color: var(--text); font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary); }
.form-control option { background: #1e293b; }

/* ════════════════════════════════════════
   GALLERY / OLEH-OLEH
════════════════════════════════════════ */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-item {
    background: var(--surface2); border: 1px solid var(--border2);
    border-radius: var(--radius); padding: 14px 10px;
    text-align: center; display: flex; flex-direction: column;
    align-items: center; gap: 4px; min-height: 90px;
    transition: all 0.2s;
}
.gallery-item:not(.locked):hover { border-color: var(--city-primary); transform: scale(1.02); }
.gallery-item.locked { filter: grayscale(1); opacity: 0.22; }
.gallery-icon { font-size: 1.9rem; }
.gal-city { font-size: 0.8rem; font-weight: 700; }
.gal-item-name { font-size: 0.7rem; color: var(--muted2); }

/* ════════════════════════════════════════
   MAP
════════════════════════════════════════ */
.map-container {
    flex: 1; position: relative;
    background: #050c1a;
    border-radius: 18px; margin: 10px 14px 14px;
    overflow: auto;          /* scrollable untuk peta besar */
    border: 1px solid var(--border);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
    min-height: 300px;
}
/* Background peta Jatim sebagai image dalam map-container */
.jatim-map-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    opacity: 0.55; pointer-events: none;
    z-index: 0;
}
#map-lines, #trail-map-svg { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.map-node {
    position: absolute; width: 28px; height: 28px;
    border-radius: 50%; transform: translate(-50%, -50%);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s ease; z-index: 10;
    border: 2px solid transparent;
}
.map-node-icon { font-size: 0.95rem; line-height: 1; }
.map-node-label {
    position: absolute; top: 18px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem; font-weight: 700; white-space: nowrap;
    text-shadow: 0 1px 3px #000, 0 0 6px #000; color: #fff;
    pointer-events: none; padding-top: 2px;
    opacity: 0; transition: opacity 0.2s;
    background: rgba(0,0,0,0.6); padding: 1px 4px; border-radius: 4px;
}
.map-node.current  {
    background: rgba(16,185,129,0.25); border-color: #10b981;
    box-shadow: 0 0 14px #10b981; animation: pulse 1.5s infinite; z-index: 20;
    width: 32px; height: 32px;
}
.map-node.current .map-node-label { opacity: 1; }
.map-node.reachable {
    background: rgba(245,158,11,0.2); border-color: #f59e0b;
    box-shadow: 0 0 10px #f59e0b; z-index: 15;
}
.map-node.reachable:hover { transform: translate(-50%,-50%) scale(1.25); }
.map-node.reachable:hover .map-node-label { opacity: 1; }
.map-node.disabled { background: rgba(20,30,50,0.4); border-color: transparent; opacity: 0.35; cursor: not-allowed; }

/* Trail replay node classes */
.map-node.trail-step { background: rgba(168,85,247,0.3); border-color: #a855f7; box-shadow: 0 0 14px #a855f7; }
.map-node.trail-end  { background: rgba(244,63,94,0.3);  border-color: #f43f5e; box-shadow: 0 0 16px #f43f5e; animation: pulse 1s infinite; }

.map-line { stroke: rgba(255,255,255,0.1); stroke-width: 1.5; }
.map-line.reachable { stroke: rgba(245,158,11,0.7); stroke-width: 2.5; stroke-dasharray: 6 5; animation: dash 1s linear infinite; }
.ghost-trail-line { stroke: rgba(168,85,247,0.7); stroke-width: 3; stroke-dasharray: 8 4; animation: dash 0.7s linear infinite; }

@keyframes dash { to { stroke-dashoffset: -22; } }
@keyframes pulse {
    0%,100% { transform: translate(-50%,-50%) scale(1); }
    50%      { transform: translate(-50%,-50%) scale(1.25); }
}

/* ════════════════════════════════════════
   CASEBOOK
════════════════════════════════════════ */
.case-entry {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
    transition: all 0.2s;
}
.case-win  { border-left: 3px solid var(--accent); }
.case-lose { border-left: 3px solid var(--danger); }
.case-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.case-status-icon { font-size: 1.1rem; }
.case-num  { font-weight: 700; font-size: 0.88rem; flex: 1; }
.case-date { font-size: 0.72rem; color: var(--muted); }
.case-artifact { font-size: 0.88rem; margin-bottom: 6px; }
.case-details, .case-stats { display: flex; gap: 12px; font-size: 0.76rem; color: var(--muted2); margin-bottom: 4px; }
.case-result-text { font-size: 0.78rem; color: var(--muted2); font-style: italic; margin-top: 6px; }

/* ════════════════════════════════════════
   ACHIEVEMENTS
════════════════════════════════════════ */
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ach-card {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 10px;
    text-align: center; transition: all 0.2s;
}
.ach-card.unlocked { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.06); }
.ach-card.locked   { filter: grayscale(0.8); opacity: 0.5; }
.ach-icon  { font-size: 2rem; margin-bottom: 6px; }
.ach-name  { font-size: 0.8rem; font-weight: 700; margin-bottom: 4px; }
.ach-desc  { font-size: 0.7rem; color: var(--muted2); line-height: 1.4; }

/* Achievement Toast */
.ach-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #1e2b50, #2d1b69);
    border: 1px solid rgba(168,85,247,0.5);
    border-radius: var(--radius); padding: 12px 18px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 8px 30px rgba(168,85,247,0.4);
    z-index: 2000; max-width: 340px; width: 90%;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.ach-toast.hidden  { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(-20px); }
.ach-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.ach-toast > span:first-child { font-size: 2rem; flex-shrink: 0; }
.ach-toast-title { font-size: 0.68rem; color: var(--purple); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.ach-toast-name  { font-size: 0.92rem; font-weight: 700; }
.ach-toast-desc  { font-size: 0.74rem; color: var(--muted2); }

/* ════════════════════════════════════════
   MODALS
════════════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
    display: none; justify-content: center; align-items: center;
    z-index: 1000; padding: 20px;
}

.modal-box {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 18px; padding: 24px 22px;
    width: 100%; max-width: 360px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: popIn 0.28s ease-out;
    max-height: 90vh; overflow-y: auto;
}
.modal-icon  { font-size: 2.8rem; margin-bottom: 12px; display: block; }
.modal-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.modal-text  { color: var(--muted2); line-height: 1.5; margin-bottom: 18px; font-size: 0.9rem; }
.modal-impact{ color: var(--warn); font-weight: 600; margin-bottom: 18px; font-size: 0.88rem; }

/* City Card Modal */
.citycard-box { text-align: left; }
.cc-big-icon  { font-size: 3.5rem; text-align: center; display: block; margin-bottom: 4px; }
.cc-name      { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 6px;
                background: linear-gradient(135deg, var(--city-primary), var(--purple));
                -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.cc-oleh      { text-align: center; font-size: 0.85rem; color: var(--warn); margin-bottom: 12px; }
.divider      { border: none; border-top: 1px solid var(--border); margin: 10px 0; }
.cc-facts     { display: flex; flex-direction: column; gap: 8px; }
.fact-row     { font-size: 0.82rem; color: var(--muted2); line-height: 1.5; padding: 8px 10px;
                background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); }

/* Thief Profile Modal */
.profile-box {}
.profile-grid { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.profile-row  {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 10px 14px;
}
.profile-label { font-size: 0.82rem; color: var(--muted2); }
.profile-val   { font-size: 0.88rem; font-weight: 700; color: var(--muted); }
.profile-val.revealed {
    color: var(--accent);
    animation: traitReveal 0.5s ease;
}

/* Trivia Modal */
.trivia-box   { text-align: left; }
.trivia-label { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase;
                letter-spacing: 0.8px; margin-bottom: 6px; text-align: center; }
.trivia-question { font-size: 1rem; font-weight: 700; margin-bottom: 16px; line-height: 1.4; text-align: center; }
.trivia-opts  { display: flex; flex-direction: column; gap: 8px; }
.trivia-opt   {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border2); border-radius: var(--radius-sm);
    color: var(--text); padding: 11px 14px; font-size: 0.88rem;
    cursor: pointer; text-align: left; transition: all 0.18s;
    width: 100%;
}
.trivia-opt:hover:not(:disabled) { background: rgba(59,130,246,0.15); border-color: var(--primary); }
.trivia-opt.correct { background: rgba(16,185,129,0.2); border-color: var(--accent); }
.trivia-opt.wrong   { background: rgba(244,63,94,0.15); border-color: var(--danger); }
.trivia-opt:disabled { cursor: not-allowed; }
.trivia-feedback { font-size: 0.83rem; font-weight: 600; margin: 10px 0 4px; text-align: center; }
.trivia-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

/* Travel Modal */
.travel-modal { background: rgba(0,0,0,0.88); }
.travel-box   {
    text-align: center; padding: 40px 30px;
    background: rgba(8,15,30,0.95); border: 1px solid var(--border2);
    border-radius: 22px; width: 85%;
}
.travel-route { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.travel-city  { font-size: 1rem; font-weight: 700; flex: 1; }
.travel-city:first-child { text-align: right; }
.travel-city:last-child  { text-align: left; }
.travel-plane-track { flex: 0 0 60px; position: relative; height: 32px; }
.travel-plane {
    font-size: 1.8rem; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    animation: driveAcross 2s ease-in-out forwards;
}
@keyframes driveAcross {
    from { left: 0; }
    to   { left: 100%; transform: translateY(-50%) translateX(-100%); }
}
.travel-label { font-size: 0.82rem; color: var(--muted2); animation: blink 0.8s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ════════════════════════════════════════
   RESULT SCREEN
════════════════════════════════════════ */
.result-inner {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 28px 22px; gap: 14px; overflow-y: auto;
}
.result-logo  { font-size: 4.5rem; animation: float 2s ease-in-out infinite; }
.result-title { font-size: 1.8rem; font-weight: 800; text-align: center; }
.result-msg   { font-size: 0.9rem; color: var(--muted2); text-align: center; line-height: 1.5; max-width: 300px; }

.result-card {
    width: 100%; background: var(--surface2);
    border: 1px solid var(--border2); border-radius: var(--radius);
    padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.result-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.82rem; color: var(--muted2);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.result-row:last-child { border: none; padding: 0; }
.result-row span:last-child { font-weight: 700; color: var(--text); text-align: right; max-width: 55%; }
.result-row.highlight span:last-child { color: var(--warn); font-size: 0.95rem; }

.result-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }

/* ════════════════════════════════════════
   UTILITIES & ANIMATIONS
════════════════════════════════════════ */
.hidden  { display: none !important; }
.text-center { text-align: center; }

@keyframes popIn    { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes traitReveal {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.18); color: #fff; }
    100% { transform: scale(1); }
}

::-webkit-scrollbar { width: 0; background: transparent; }

/* ════════════════════════════════════════
   START SCREEN ENHANCEMENTS
════════════════════════════════════════ */
.start-secondary-btns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%;
}
.btn-ghost-icon {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border2);
    border-radius: var(--radius-sm); padding: 10px 6px;
    font-size: 0.8rem; font-weight: 600; color: var(--muted2);
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.btn-ghost-icon:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.btn-daily-hero {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(239,68,68,0.2));
    border: 1px solid rgba(245,158,11,0.4); border-radius: var(--radius);
    font-size: 1rem; font-weight: 700; color: #f59e0b; cursor: pointer;
    transition: all 0.2s;
}
.btn-daily-hero:hover { background: linear-gradient(135deg, rgba(245,158,11,0.35), rgba(239,68,68,0.35)); }

.career-badge-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 4px;
}
#start-career-badge {
    font-size: 0.8rem; font-weight: 700; color: var(--warn);
}

/* ════════════════════════════════════════
   MINI-MAP RADAR (Fitur #12)
   Inline di dalam city-view — tidak menutupi tombol
════════════════════════════════════════ */
.mini-map-container {
    width: calc(100% - 28px); display: flex; align-items: center; gap: 8px;
    background: rgba(5,12,26,0.7);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 8px; padding: 5px 8px;
    margin: 4px 14px 0;
    flex-shrink: 0;
}
.mini-map-left {
    flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.mini-map-header {
    font-size: 0.6rem; font-weight: 700; color: #3b82f6;
    letter-spacing: 0.5px;
}
.mini-map-svg {
    width: 100%; height: 80px;
    display: block;
}
.mini-map-open-btn {
    font-size: 0.62rem; font-weight: 600; color: #3b82f6;
    background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3);
    border-radius: 6px; cursor: pointer; padding: 4px 10px;
    white-space: nowrap; flex-shrink: 0;
    transition: all 0.2s;
}
.mini-map-open-btn:hover { background: rgba(59,130,246,0.2); color: var(--text); }
.mm-node { fill: rgba(255,255,255,0.12); }
.mm-node.mm-current { fill: #10b981; filter: drop-shadow(0 0 4px #10b981); }
.mm-node.mm-reachable { fill: #f59e0b; filter: drop-shadow(0 0 3px #f59e0b); }
.mm-line { stroke: rgba(255,255,255,0.08); stroke-width: 0.8; }
/* Emergency loan warning */
.emergency-loan-banner {
    grid-column: 1 / -1;
    background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35);
    border-radius: 8px; padding: 8px 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 0.78rem; color: #fca5a5; animation: pulse 1.5s ease-in-out infinite;
}
.emergency-loan-banner strong { color: #f87171; }
.btn-emergency-loan {
    background: rgba(239,68,68,0.25); border: 1px solid rgba(239,68,68,0.5);
    border-radius: 6px; color: #f87171; font-size: 0.75rem; font-weight: 700;
    padding: 4px 10px; cursor: pointer; white-space: nowrap;
    transition: all 0.2s;
}
.btn-emergency-loan:hover { background: rgba(239,68,68,0.4); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.65; } }

/* Pergi button warning state */
#btn-map.btn-danger-travel {
    background: rgba(239,68,68,0.15) !important;
    border: 1px solid rgba(239,68,68,0.4);
    color: #fca5a5;
}

/* ════════════════════════════════════════
   NPC CHAT BUBBLE UI (Fitur #13)
════════════════════════════════════════ */
.npc-selection {
    display: flex; flex-direction: column; gap: 10px;
}
.npc-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface2); border: 1px solid var(--border2);
    border-radius: var(--radius); padding: 14px;
    cursor: pointer; transition: all 0.2s;
    position: relative; overflow: hidden;
}
.npc-card:hover { border-color: var(--city-primary); background: rgba(59,130,246,0.1); }
.npc-card.npc-informant { border-color: rgba(239,68,68,0.3); }
.npc-card.npc-informant:hover { border-color: #f43f5e; background: rgba(239,68,68,0.1); }
.npc-avatar-big { font-size: 2.4rem; flex-shrink: 0; }
.npc-info { flex: 1; }
.npc-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.npc-desc { font-size: 0.76rem; color: var(--muted2); line-height: 1.4; }
.npc-cost-badge {
    position: absolute; top: 10px; right: 10px;
    background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.4);
    border-radius: 20px; font-size: 0.68rem; font-weight: 700; color: #f43f5e;
    padding: 2px 8px;
}

.chat-area { margin-top: 14px; }
.chat-npc-header {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface2); border: 1px solid var(--border2);
    border-radius: var(--radius); padding: 12px;
    margin-bottom: 10px;
}
.chat-npc-avatar { font-size: 2rem; }
.chat-npc-name   { font-size: 0.9rem; font-weight: 700; }
.chat-npc-greeting { font-size: 0.75rem; color: var(--muted2); margin-top: 2px; font-style: italic; }

.chat-messages { display: flex; flex-direction: column; gap: 8px; }
.chat-bubble {
    max-width: 88%; padding: 10px 14px;
    border-radius: 18px; font-size: 0.84rem;
    line-height: 1.5; animation: fadeUp 0.3s ease;
}
.chat-bubble.npc {
    background: var(--surface2); border: 1px solid var(--border2);
    align-self: flex-start; border-bottom-left-radius: 4px;
    position: relative;
}
.chat-bubble.npc::before {
    content: attr(data-emoji);
    position: absolute; left: -32px; top: 4px; font-size: 1.4rem;
}
.chat-bubble.detective {
    background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3);
    align-self: flex-end; border-bottom-right-radius: 4px; color: #93c5fd;
}
.chat-bubble.hot-clue {
    background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.35);
    color: var(--text);
}
.chat-bubble.cold-clue {
    background: rgba(100,116,139,0.1); border: 1px solid rgba(100,116,139,0.3);
    color: var(--muted2);
}
.clue-hot-badge {
    font-size: 0.65rem; font-weight: 700; color: var(--warn);
    background: rgba(245,158,11,0.15); border-radius: 10px;
    padding: 1px 7px; margin-bottom: 4px; display: inline-block;
}

/* ════════════════════════════════════════
   DIARY (Fitur #7)
════════════════════════════════════════ */
.diary-entry {
    background: var(--surface2); border: 1px solid var(--border2);
    border-radius: var(--radius); padding: 12px; margin-bottom: 10px;
    animation: fadeUp 0.3s ease;
}
.diary-entry.diary-hot { border-left: 3px solid var(--warn); }
.diary-entry.diary-cold { border-left: 3px solid var(--muted); }
.diary-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
    font-size: 0.75rem;
}
.diary-day  { color: var(--muted); font-weight: 600; }
.diary-city { color: var(--muted2); flex: 1; }
.diary-hot-badge { font-size: 0.65rem; font-weight: 700; }
.diary-witness {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.76rem; color: var(--muted2); margin-bottom: 6px;
}
.diary-witness-icon { font-size: 1.1rem; }
.diary-witness-name { font-weight: 600; }
.diary-clue {
    font-size: 0.83rem; line-height: 1.5; color: var(--text);
    font-style: italic;
}

/* ════════════════════════════════════════
   CULTURAL MUSEUM (Fitur #6)
════════════════════════════════════════ */
.museum-tabs {
    display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap;
}
.museum-tab {
    padding: 6px 14px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border2); border-radius: 20px;
    font-size: 0.78rem; font-weight: 600; color: var(--muted2);
    cursor: pointer; transition: all 0.2s;
}
.museum-tab.active {
    background: rgba(59,130,246,0.2); border-color: var(--primary);
    color: var(--text);
}
.museum-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.museum-city-card {
    background: var(--surface2); border: 1px solid var(--border2);
    border-radius: var(--radius); padding: 12px;
    transition: all 0.2s;
}
.museum-city-card.locked { opacity: 0.35; filter: grayscale(1); }
.museum-city-name {
    font-size: 0.78rem; font-weight: 700; margin-bottom: 8px;
    color: var(--muted2);
}
.museum-city-name.visited { color: var(--text); }
.museum-cards-row { display: flex; flex-direction: column; gap: 5px; }
.museum-card-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.72rem;
}
.museum-card-cat { font-size: 0.85rem; flex-shrink: 0; }
.museum-card-item-name { color: var(--muted2); }
.museum-card-item.unlocked .museum-card-item-name { color: var(--text); }

/* City Card Cultural section */
.cc-cultural {
    display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
    justify-content: center;
}
.cc-cult-badge {
    background: rgba(255,255,255,0.07); border: 1px solid var(--border2);
    border-radius: 20px; padding: 4px 10px;
    font-size: 0.72rem; display: flex; align-items: center; gap: 4px;
}
.cc-cult-badge span:first-child { font-size: 0.9rem; }

/* ════════════════════════════════════════
   CAREER SCREEN (Fitur #15)
════════════════════════════════════════ */
.career-current-banner {
    display: flex; align-items: center; gap: 12px;
    background: var(--surface2); border: 1px solid var(--border2);
    border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
}
.career-current-banner > span:first-child { font-size: 2rem; flex-shrink: 0; }
.career-progress-wrap {
    margin-left: auto; display: flex; flex-direction: column;
    align-items: flex-end; gap: 4px;
}
.career-prog-fill { transition: width 0.8s ease; }

#career-grid { display: flex; flex-direction: column; gap: 10px; }
.career-tier {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--surface2); border: 1px solid var(--border2);
    border-radius: var(--radius); padding: 14px;
    transition: all 0.2s;
}
.career-tier.achieved { border-color: rgba(16,185,129,0.3); }
.career-tier.current-tier {
    border-color: var(--warn);
    box-shadow: 0 0 14px rgba(245,158,11,0.2);
}
.career-tier-icon { font-size: 1.8rem; flex-shrink: 0; }
.career-tier-body { flex: 1; }
.career-tier-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; }
.career-tier-req  { font-size: 0.75rem; color: var(--muted2); margin-bottom: 5px; }
.career-tier-perk { font-size: 0.75rem; color: var(--muted); background: rgba(255,255,255,0.04);
    border-radius: 6px; padding: 3px 8px; display: inline-block; }
.career-tier.achieved .career-tier-perk { color: #10b981; background: rgba(16,185,129,0.1); }

/* ════════════════════════════════════════
   DAILY CHALLENGE (Fitur #14)
════════════════════════════════════════ */
.daily-header-icon { font-size: 3rem; margin: 6px 0; }
.daily-status-box {
    background: var(--surface2); border: 1px solid var(--border2);
    border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
    text-align: center;
}
.daily-status-played {
    font-size: 0.9rem; color: var(--muted2); line-height: 1.6;
}
.daily-status-ready { font-size: 0.9rem; line-height: 1.6; color: var(--muted2); }
.daily-status-ready strong { color: var(--text); }
.daily-diff-info {
    display: flex; justify-content: center; gap: 14px;
    margin-top: 10px; font-size: 0.78rem; color: var(--muted2);
}
.daily-diff-info span { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 3px 10px; }

.daily-hist-entry {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface2); border: 1px solid var(--border2);
    border-radius: var(--radius-sm); padding: 10px 12px;
    margin-bottom: 8px; font-size: 0.8rem;
}
.daily-hist-entry.dh-win  { border-left: 3px solid #10b981; }
.daily-hist-entry.dh-lose { border-left: 3px solid #f43f5e; }
.dh-date   { color: var(--muted); flex: 1; }
.dh-result { font-weight: 700; }
.dh-days   { color: var(--muted2); }
.dh-xp     { color: var(--warn); font-weight: 600; margin-left: auto; }

/* ════════════════════════════════════════
   WANTED POSTER (Fitur #16)
════════════════════════════════════════ */
.poster-box { padding: 0 !important; background: transparent !important;
    border: none !important; box-shadow: none !important; max-height: 96vh; overflow-y: auto; }
.poster-inner {
    background: linear-gradient(165deg, #1a0a00, #2d1500, #1a0a00);
    border: 3px solid #b45309; border-radius: 12px;
    padding: 20px 18px; text-align: center;
    position: relative; overflow: hidden;
}
.poster-inner::before {
    content: ''; position: absolute; inset: 6px;
    border: 1px dashed rgba(180,83,9,0.3); border-radius: 8px;
    pointer-events: none;
}
.poster-header {
    font-size: 1rem; font-weight: 800; color: #b45309;
    letter-spacing: 2px; text-transform: uppercase;
    text-shadow: 0 0 10px rgba(180,83,9,0.5);
}
.poster-header2 {
    font-size: 0.75rem; color: #92400e; letter-spacing: 1.5px;
    text-transform: uppercase; margin: 2px 0 12px;
}
.poster-emoji { font-size: 4rem; margin: 8px 0; }
.poster-name  {
    font-size: 1.3rem; font-weight: 800; color: #fef3c7;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.poster-divider {
    border: none; border-top: 1px solid rgba(180,83,9,0.4);
    margin: 10px 0;
}
.poster-traits { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.poster-trait {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.85rem; color: #d97706;
}
.poster-trait span:first-child { font-size: 1rem; }
.poster-artifact-row {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 0.85rem; color: #fbbf24; margin: 6px 0 0;
}
#poster-artifact-icon { font-size: 1.2rem; }
.poster-detective {
    font-size: 0.7rem; color: #92400e; margin-top: 10px;
}
.poster-result-badge {
    display: inline-block; margin-top: 8px;
    background: rgba(16,185,129,0.2); border: 2px solid #10b981;
    border-radius: 8px; padding: 5px 18px;
    font-size: 0.9rem; font-weight: 800; color: #10b981;
    letter-spacing: 1px;
    transform: rotate(-3deg);
}
.poster-result-badge.failed {
    background: rgba(239,68,68,0.2); border-color: #f43f5e; color: #f43f5e;
    transform: rotate(-3deg);
}
.poster-date {
    font-size: 0.65rem; color: rgba(146,64,14,0.7); margin-top: 6px;
}

/* ════════════════════════════════════════
   CAREER TOAST
════════════════════════════════════════ */
.career-toast {
    position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(168,85,247,0.95), rgba(245,158,11,0.9));
    border-radius: 16px; padding: 12px 18px;
    display: flex; align-items: center; gap: 12px;
    z-index: 9999; max-width: 320px; width: 90%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    transition: all 0.4s ease;
}
.career-toast.hidden { display: none !important; }
.career-toast.visible { display: flex; animation: popIn 0.4s ease; }
.career-toast > span:first-child { font-size: 2rem; flex-shrink: 0; }

/* ════════════════════════════════════════
   TRAVEL MODAL REGION
════════════════════════════════════════ */
.travel-region {
    font-size: 0.78rem; font-weight: 600; margin-top: 6px;
    transition: color 0.5s;
}

/* ════════════════════════════════════════
   FLOATING BUTTONS (Sound + Music)
════════════════════════════════════════ */
.btn-floating {
    position: absolute; right: 14px;
    background: rgba(255,255,255,0.08); border: 1px solid var(--border2);
    border-radius: 50%; width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.1rem; z-index: 50;
    transition: all 0.2s;
}
.btn-floating:hover { background: rgba(255,255,255,0.15); }

/* ════════════════════════════════════════
   RESULT SCREEN ENHANCEMENTS
════════════════════════════════════════ */
.result-actions {
    display: flex; flex-wrap: wrap; gap: 10px; width: 100%;
}

/* ════════════════════════════════════════
   MISSION BRIEFING — SECURE VIDEO CALL
════════════════════════════════════════ */
.briefing-screen {
    display: flex; flex-direction: column;
    background: #020409;
    overflow: hidden;         /* kontainer tidak scroll — anak yang scroll */
    position: relative;
    height: 100%;             /* pastikan mengisi penuh */
}

/* CRT scan-lines overlay */
.vcall-scanlines {
    position: fixed; inset: 0; pointer-events: none; z-index: 1;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0,0,0,0.18) 3px,
        rgba(0,0,0,0.18) 4px
    );
}

/* Top connection bar */
.vcall-topbar {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: rgba(0,255,100,0.06);
    border-bottom: 1px solid rgba(0,255,100,0.15);
    position: relative; z-index: 2;
}
.vcall-conn-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: blinkDot 1.2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes blinkDot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.vcall-conn-label {
    font-size: 0.6rem; font-weight: 700; color: #22c55e;
    letter-spacing: 1.5px; flex: 1;
}
.vcall-case-id {
    font-size: 0.6rem; color: #16a34a;
    font-family: 'Courier New', monospace; font-weight: 700;
}

/* NPC video frame */
.vcall-frame {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 16px 12px;
    background: linear-gradient(180deg, rgba(0,20,10,0.9) 0%, rgba(2,4,10,0.8) 100%);
    border-bottom: 1px solid rgba(0,255,100,0.1);
    position: relative; z-index: 2;
}
.vcall-avatar-area {
    position: relative; flex-shrink: 0;
}
.vcall-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, #0f2a1a, #163d28);
    border: 2px solid rgba(34,197,94,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.12), 0 0 24px rgba(34,197,94,0.2);
    position: relative; z-index: 1;
}
.vcall-avatar-glow {
    position: absolute; inset: -6px; border-radius: 50%;
    border: 1px solid rgba(34,197,94,0.3);
    animation: pulseRing 2s ease-in-out infinite;
}
@keyframes pulseRing {
    0%,100% { transform: scale(1);   opacity: 0.7; }
    50%      { transform: scale(1.08); opacity: 0.25; }
}
.vcall-officer-info { flex: 1; }
.vcall-officer-name {
    font-size: 1rem; font-weight: 800; color: #e2e8f0;
    letter-spacing: 0.5px;
}
.vcall-officer-title {
    font-size: 0.68rem; color: #22c55e; font-weight: 600;
    margin: 2px 0 6px;
}
.vcall-status-row { display: flex; align-items: center; gap: 6px; }
.vcall-live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
    animation: blinkDot 0.8s ease-in-out infinite;
    flex-shrink: 0;
}
.vcall-live-text {
    font-size: 0.58rem; font-weight: 800; color: #ef4444;
    letter-spacing: 1.5px;
}

/* Dialog + summary area — area ini yang scroll */
.vcall-dialog-area {
    flex: 1; padding: 14px 16px 6px;
    display: flex; flex-direction: column; gap: 10px;
    position: relative; z-index: 2;
    overflow-y: auto;         /* scroll di dalam area ini */
    min-height: 0;            /* penting: flex child harus min-height:0 agar overflow bisa scroll */
}
.vcall-dialog-bubble {
    background: rgba(10,25,15,0.85);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 0 14px 14px 14px;
    padding: 14px 16px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(34,197,94,0.08);
    min-height: 90px;
}
.vcall-dialog-bubble::before {
    content: '';
    position: absolute; top: -8px; left: 0;
    border-width: 0 8px 8px 0;
    border-style: solid;
    border-color: transparent rgba(34,197,94,0.25) transparent transparent;
}
.vcall-dialog-text {
    font-size: 0.87rem; color: #d1fae5;
    line-height: 1.7; font-family: inherit;
}
.vcall-cursor {
    display: inline; color: #22c55e;
    animation: blinkCursor 0.7s step-end infinite;
    font-size: 0.9rem;
}
@keyframes blinkCursor { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Dialog dots (page indicator) */
.vcall-dots {
    display: flex; gap: 6px; justify-content: center;
}
.vcall-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(34,197,94,0.25);
    transition: background 0.3s;
}
.vcall-dot.active { background: #22c55e; }

.btn-vcall-next {
    align-self: flex-end;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.35);
    border-radius: 8px; color: #22c55e;
    font-size: 0.8rem; font-weight: 700;
    padding: 7px 16px; cursor: pointer;
    transition: all 0.2s;
}
.btn-vcall-next:hover { background: rgba(34,197,94,0.22); }

/* Mission summary (slides up after dialog) */
.vcall-summary {
    margin: 8px 0 0;          /* hapus margin horizontal, biarkan padding dialog-area */
    padding: 12px 14px 8px;
    background: rgba(5,15,10,0.9);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 12px;
    animation: slideUpFade 0.5s ease;
    position: relative; z-index: 2;
}
@keyframes slideUpFade {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.vcall-summary-title {
    font-size: 0.62rem; font-weight: 800; color: #22c55e;
    letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px;
}
.vcall-summary-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-bottom: 10px;
}
.vs-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; padding: 8px 10px;
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 1.5rem;
}
.vs-card.vs-card-red {
    border-color: rgba(239,68,68,0.2);
    background: rgba(239,68,68,0.05);
}
.vs-label {
    font-size: 0.55rem; color: var(--muted);
    font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.vs-val {
    font-size: 0.78rem; font-weight: 700; color: var(--text);
    line-height: 1.3; margin-top: 1px;
}
.vs-sub { font-size: 0.6rem; color: var(--muted); margin-top: 1px; }

/* Mission params row */
.vcall-params-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.vp-item {
    background: rgba(0,0,0,0.3); border-radius: 6px; padding: 6px 8px;
    display: flex; flex-direction: column; gap: 1px; align-items: flex-start;
    font-size: 0.78rem; color: #f59e0b; font-weight: 700;
}
.vp-item > span:first-child { font-size: 0.9rem; }

/* Career perk in summary */
.bs-perk {
    margin-top: 8px;
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 8px; padding: 7px 10px;
    font-size: 0.76rem; color: #c4b5fd; text-align: center;
}
.bs-perk strong { color: #a78bfa; }

/* Footer — sticky di bawah, selalu terlihat */
.vcall-footer {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px 16px;
    position: sticky; bottom: 0;    /* selalu di bawah */
    z-index: 10;
    background: #020409;             /* background solid agar tidak transparan */
    border-top: 1px solid rgba(0,255,100,0.1);
    flex-shrink: 0;                  /* tidak mengecil */
}
.btn-vcall-back {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; color: var(--muted);
    font-size: 0.78rem; padding: 10px 14px; cursor: pointer;
    transition: all 0.2s; flex-shrink: 0;
}
.btn-vcall-back:hover { background: rgba(255,255,255,0.1); }
.btn-vcall-start {
    flex: 1;
    background: linear-gradient(135deg, #166534, #15803d) !important;
    border-color: #22c55e !important;
    font-size: 0.9rem !important;
    animation: glowBtn 2s ease-in-out infinite;
}
@keyframes glowBtn {
    0%,100% { box-shadow: 0 0 12px rgba(34,197,94,0.3); }
    50%      { box-shadow: 0 0 24px rgba(34,197,94,0.6); }
}
.btn-vcall-skip {
    background: none; border: none;
    color: rgba(255,255,255,0.25); font-size: 0.7rem;
    cursor: pointer; padding: 6px; flex-shrink: 0;
    transition: color 0.2s;
}
.btn-vcall-skip:hover { color: rgba(255,255,255,0.6); }



/* ── Dossier Header ── */
.dossier-top {
    background: linear-gradient(135deg, #1a0a00, #2a1200);
    border-bottom: 2px solid #7f3f00;
    padding: 14px 18px 12px;
    display: flex; align-items: center; justify-content: space-between;
    position: relative; overflow: hidden;
}
.dossier-top::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent, transparent 10px,
        rgba(255,160,0,0.03) 10px, rgba(255,160,0,0.03) 11px
    );
}
.dossier-stamp {
    font-size: 0.65rem; font-weight: 900; color: #ef4444;
    border: 2px solid #ef4444; border-radius: 4px;
    padding: 2px 8px; letter-spacing: 2px;
    transform: rotate(-8deg);
    box-shadow: 0 0 8px rgba(239,68,68,0.35);
    flex-shrink: 0;
}
.dossier-title {
    font-size: 0.9rem; font-weight: 800; color: #f59e0b;
    letter-spacing: 1.5px; text-align: center; flex: 1;
}
.dossier-case-id {
    font-size: 0.68rem; color: #92400e;
    font-family: 'Courier New', monospace;
    font-weight: 700; flex-shrink: 0;
}

/* ── Dossier Body ── */
.dossier-body {
    flex: 1; padding: 14px 16px 0;
    display: flex; flex-direction: column; gap: 14px;
}
.brief-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; padding: 12px 14px;
}
.brief-section.brief-do {
    border-color: rgba(16,185,129,0.2);
    background: rgba(16,185,129,0.04);
}
.brief-section.brief-dont {
    border-color: rgba(239,68,68,0.2);
    background: rgba(239,68,68,0.04);
}
.brief-section-title {
    font-size: 0.65rem; font-weight: 800; letter-spacing: 1.5px;
    color: #f59e0b; margin-bottom: 10px; text-transform: uppercase;
}
.brief-do .brief-section-title  { color: #10b981; }
.brief-dont .brief-section-title { color: #ef4444; }

.brief-text {
    font-size: 0.82rem; color: var(--muted2); line-height: 1.6;
}

/* ── Artifact + Thief Cards ── */
.brief-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-top: 10px;
}
.brief-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 10px;
    text-align: center;
    transition: transform 0.2s;
}
.brief-card:hover { transform: translateY(-2px); }
.brief-card.brief-card-danger {
    border-color: rgba(239,68,68,0.3);
    background: rgba(239,68,68,0.06);
}
.brief-card-icon { font-size: 1.8rem; margin-bottom: 4px; }
.brief-card-label {
    font-size: 0.58rem; font-weight: 700; color: var(--muted);
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px;
}
.brief-card-val {
    font-size: 0.8rem; font-weight: 700; color: var(--text);
    line-height: 1.3;
}
.brief-card-sub {
    font-size: 0.65rem; color: var(--muted); margin-top: 3px;
}

/* ── Mission Params Grid ── */
.brief-params {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.brief-param {
    background: rgba(0,0,0,0.25);
    border-radius: 8px; padding: 8px 10px;
    display: flex; flex-direction: column; gap: 2px;
}
.brief-param-icon { font-size: 1rem; }
.brief-param-label {
    font-size: 0.6rem; color: var(--muted); font-weight: 600; letter-spacing: 0.5px;
}
.brief-param-val {
    font-size: 0.8rem; font-weight: 800; color: #f59e0b;
}

/* ── Do/Don't Two Column ── */
.brief-two-col {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (max-width: 360px) {
    .brief-two-col { grid-template-columns: 1fr; }
    .brief-cards   { grid-template-columns: 1fr; }
}
.brief-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 7px;
}
.brief-list li {
    font-size: 0.74rem; color: var(--muted2); line-height: 1.5;
}
.brief-list li strong { color: var(--text); }

/* ── Career Perk Notice ── */
.brief-perk-notice {
    background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(245,158,11,0.12));
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 10px; padding: 10px 14px;
    font-size: 0.78rem; color: #c4b5fd;
    text-align: center;
}
.brief-perk-notice strong { color: #a78bfa; }

/* ── Briefing Footer ── */
.briefing-footer {
    display: flex; gap: 10px;
    padding: 14px 16px 0;
}
.briefing-footer .btn-ghost {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--muted2); font-size: 0.8rem;
    border-radius: var(--radius); padding: 12px;
    cursor: pointer; transition: all 0.2s;
}
.briefing-footer .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* ── Briefing Entrance Animation ── */
#screen-briefing.active .dossier-top {
    animation: slideDown 0.4s ease;
}
#screen-briefing.active .brief-cards .brief-card:nth-child(1) {
    animation: slideLeft 0.5s ease 0.1s both;
}
#screen-briefing.active .brief-cards .brief-card:nth-child(2) {
    animation: slideRight 0.5s ease 0.15s both;
}
#screen-briefing.active .brief-section {
    animation: fadeUp 0.4s ease both;
}
#screen-briefing.active .brief-section:nth-child(1) { animation-delay: 0.05s; }
#screen-briefing.active .brief-section:nth-child(2) { animation-delay: 0.15s; }

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
@keyframes slideLeft {
    from { transform: translateX(-20px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}
@keyframes slideRight {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeUp {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ════════════════════════════════════════
   TITLE / SPLASH SCREEN
════════════════════════════════════════ */
.title-bg-particles {
    position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.title-particle {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.7), transparent 70%);
    animation: particleDrift linear infinite;
    pointer-events: none;
}
@keyframes particleDrift {
    0%   { transform: translateY(0) scale(1);    opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(-110vh) scale(0.4); opacity: 0; }
}
.title-inner {
    position: relative; z-index: 10;
    display: flex; flex-direction: column;
    align-items: center; gap: 24px;
    padding: 32px 24px 28px; width: 100%;
    overflow-y: auto; max-height: 100vh;
}
.title-logo-area {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-align: center;
}
.title-logo-icon {
    font-size: 5.5rem;
    animation: float 3.5s ease-in-out infinite, titleLogoPop 0.7s ease-out;
    filter: drop-shadow(0 0 24px rgba(99,102,241,0.6));
    display: block; margin-bottom: 8px;
}
@keyframes titleLogoPop {
    from { transform: scale(0.5) rotate(-15deg); opacity: 0; }
    to   { transform: scale(1)   rotate(0deg);   opacity: 1; }
}
.title-badge {
    font-size: 0.65rem; font-weight: 800; letter-spacing: 3px;
    color: var(--primary); text-transform: uppercase;
    background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3);
    border-radius: 30px; padding: 3px 14px;
    animation: fadeUp 0.5s ease 0.2s both;
}
.title-main-title {
    font-size: 3rem; font-weight: 800; line-height: 1.1;
    background: linear-gradient(135deg, #93c5fd, #a78bfa, #f9a8d4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    animation: fadeUp 0.5s ease 0.3s both;
    text-align: center;
}
.title-subtitle {
    font-size: 0.85rem; font-weight: 500; color: var(--muted2);
    animation: fadeUp 0.5s ease 0.4s both;
}
.title-tagline {
    font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.6;
    text-align: center; margin-top: 4px;
    animation: fadeUp 0.5s ease 0.5s both;
}
.title-actions {
    display: flex; flex-direction: column; gap: 10px; width: 100%;
    animation: fadeUp 0.5s ease 0.6s both;
}
.title-btn-play {
    font-size: 1.1rem; letter-spacing: 0.3px;
    box-shadow: 0 6px 36px rgba(99,102,241,0.5);
    position: relative; overflow: hidden;
}
.title-btn-play::after {
    content: '';
    position: absolute; top: -50%; left: -60%; width: 40%; height: 200%;
    background: rgba(255,255,255,0.15);
    transform: skewX(-20deg);
    animation: shimmer 3s ease 1.5s infinite;
}
@keyframes shimmer {
    0%   { left: -60%; }
    100% { left: 140%; }
}
.title-footer {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    animation: fadeUp 0.5s ease 0.75s both;
}
.title-dev-credit {
    font-size: 0.75rem; color: var(--muted);
    display: flex; align-items: center; gap: 4px;
}
.title-dev-credit a {
    color: var(--primary); text-decoration: none; font-weight: 600;
    transition: color 0.2s;
}
.title-dev-credit a:hover { color: #93c5fd; text-decoration: underline; }
.title-version {
    font-size: 0.68rem; color: rgba(255,255,255,0.2);
    font-family: monospace; letter-spacing: 1px;
}

/* ── Modal Kredit ── */
.credits-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
    display: none; justify-content: center; align-items: flex-end;
    z-index: 100;
}
.credits-modal-overlay.open { display: flex; }
.credits-modal-box {
    background: linear-gradient(180deg, #0f1b35 0%, #080f1e 100%);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 24px 24px 0 0;
    width: 100%; max-width: 430px;
    padding: 24px 22px 36px;
    animation: slideUpSheet 0.4s cubic-bezier(0.34,1.1,0.64,1);
    max-height: 85vh; overflow-y: auto;
}
@keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.credits-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.credits-title {
    font-size: 1.2rem; font-weight: 800;
    background: linear-gradient(135deg, #93c5fd, #a78bfa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.credits-close-btn {
    background: rgba(255,255,255,0.08); border: 1px solid var(--border2);
    color: var(--muted2); border-radius: 50%;
    width: 34px; height: 34px; font-size: 1rem;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.credits-close-btn:hover { background: rgba(255,255,255,0.15); color: var(--text); }
.credits-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.credits-row {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 10px 14px;
}
.credits-role { font-size: 0.82rem; color: var(--muted2); }
.credits-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.credits-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.credits-link-btn {
    width: 100%; padding: 11px;
    background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.25);
    border-radius: var(--radius-sm); color: var(--primary);
    font-size: 0.88rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    display: block; text-align: center; transition: all 0.2s;
}
.credits-link-btn:hover { background: rgba(59,130,246,0.18); border-color: var(--primary); }
.credits-copyright {
    text-align: center; font-size: 0.72rem; color: var(--muted);
    padding-top: 14px; border-top: 1px solid var(--border); line-height: 1.6;
}
