/* ====== JRPG HUD ====== */
.jrpg-hud {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 2;
}
.jrpg-hud button, .jrpg-hud .skill-slot { pointer-events: auto; }
/* 1920×1080：HUD 以 2 倍放大填滿容器，保持與原比例一致 */
#game-container.hd .jrpg-hud {
    width: 50%; height: 50%;
    transform: scale(2);
    transform-origin: top left;
}

.top-status-bar {
    position: absolute; top: 10px; left: 10px; right: 10px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(15,18,25,0.65);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(212,175,55,0.4); border-radius: 30px;
    padding: 4px 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    will-change: transform;
}
.char-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: radial-gradient(circle, #2a2f42, #12151c);
    border: 2px solid #a88a53;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0,0,0,0.6);
    margin-right: 6px;
}
.status-middle {
    display: flex; flex-direction: column; align-items: center;
    min-width: 180px;
}
.char-lvl {
    font-size: 11px; font-weight: bold; color: #ffd700;
    text-shadow: 0 0 5px rgba(255,215,0,0.6);
}
.status-left { display: flex; align-items: center; min-width: 0; }
.bar-group { display: flex; gap: 6px; }
.mini-bar {
    position: relative; width: 84px; height: 14px;
    background: rgba(0,0,0,0.85);
    border-radius: 7px; overflow: hidden;
}
.bar-label {
    position: absolute; left: 3px; top: 50%;
    transform: translateY(-50%);
    font-size: 8px; font-weight: bold; z-index: 1;
    text-shadow: 0 0 3px #000;
}
.hp-label { color: #ff6666; }
.mp-label { color: #66aaff; }
.stamina-label { color: #66ee66; }
.hp-bar-container { border: 1px solid #ff5555; }
.mp-bar-container { border: 1px solid #4488ff; }
.stamina-bar-container { border: 1px solid #44cc44; }
.bar-fill { height: 100%; border-radius: 6px; transition: width 0.15s; }
.hp-fill { background: linear-gradient(90deg, #cc2222, #ff4444); }
.mp-fill { background: linear-gradient(90deg, #2255cc, #4488ff); }
.stamina-fill { background: linear-gradient(90deg, #22aa22, #44dd44); }
.bar-text {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    font-size: 8px; color: #fff; font-weight: bold;
    text-shadow: 0 0 3px #000;
}
.xp-bar-container {
    position: relative; width: 160px; height: 12px;
    background: rgba(0,0,0,0.8);
    border: 1px solid #d4af37; border-radius: 6px;
    overflow: hidden; margin-top: 2px;
    display: flex; align-items: center; justify-content: center;
}
.xp-bar-fill {
    position: absolute; top: 0; bottom: 0; left: 0; height: 100%;
    background: linear-gradient(90deg, #ffaa00, #ffd700);
}
.xp-text {
    position: relative;
    font-size: 8px; color: #fff; font-weight: bold;
    white-space: nowrap;
}
.status-right { display: flex; gap: 10px; align-items: center; }
.currency {
    display: flex; align-items: center;
    background: rgba(0,0,0,0.6);
    border: 1px solid #444; border-radius: 15px;
    padding: 2px 6px 2px 8px; font-size: 11px; font-weight: bold; gap: 4px;
}
.currency .value { color: #fff; min-width: 45px; text-align: right; }
.currency.gold .value { color: #ffd700; }
.currency.diamond .value { color: #00ccff; }

.skill-panel {
    position: absolute; bottom: 14px; right: 14px;
    display: flex; flex-direction: row; gap: 10px;
}
.skill-slot {
    width: 42px; height: 42px; border-radius: 50%;
    border: 2px solid #c5a059;
    background: radial-gradient(circle, #252a38, #0d0f14);
    display: flex; justify-content: center; align-items: center;
    font-size: 18px; position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
    cursor: pointer;
    transition: transform 0.1s, border-color 0.2s;
}
.skill-slot:hover { transform: scale(1.08); border-color: #ffd700; }
.skill-slot .key-hint {
    position: absolute; bottom: -2px; right: -2px;
    background: rgba(0,0,0,0.85);
    border: 1px solid #ffd700; border-radius: 4px;
    font-size: 9px; padding: 0 4px;
    color: #ffd700; font-weight: bold;
}
.skill-slot .skill-lv {
    position: absolute; top: -2px; left: -2px;
    background: rgba(0,0,0,0.85);
    border: 1px solid #4dd2ff; border-radius: 4px;
    font-size: 9px; padding: 0 4px;
    color: #4dd2ff; font-weight: bold;
}
.skill-slot.locked { filter: grayscale(0.9); border-color: #555; opacity: 0.6; }
.skill-slot.return-slot { border-color: #888; background: radial-gradient(circle, #1a1a1a, #0a0a0a); }
.skill-slot.potion-slot { border-color: #66cc66; background: radial-gradient(circle, #1a2a1a, #0a120a); }
.skill-slot.ur-skill {
    border-color: #ff4444; background: radial-gradient(circle, #3a1a1a, #1a0a0a);
    box-shadow: 0 0 12px rgba(255,68,68,0.5), inset 0 0 8px rgba(255,68,68,0.2);
}
.skill-slot.ur-skill:hover { border-color: #ff6666; box-shadow: 0 0 18px rgba(255,68,68,0.7); }
.char-detail-panel {
    background: rgba(0,0,0,0.35); border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
    padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.char-detail-panel .detail-emoji { font-size: 40px; margin: 4px 0; }
.char-detail-panel .detail-name { font-size: 14px; font-weight: bold; }
.char-detail-panel .detail-rarity { font-size: 12px; font-weight: 900; }
.char-detail-panel .detail-stat { font-size: 11px; color: #ccc; width: 100%; text-align: center; padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.char-detail-panel .detail-skill { font-size: 10px; color: #ffd700; text-align: center; padding: 4px; background: rgba(255,215,0,0.1); border-radius: 4px; width: 100%; }
.char-detail-panel .detail-empty { font-size: 12px; color: #666; text-align: center; padding: 20px 0; }
.inventory-left-img {
    background: #111; background-size: cover; background-position: center top;
    border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
}
.controls-info {
    position: absolute; top: 110px; left: 15px;
    background: rgba(0,0,0,0.6); padding: 6px 10px;
    border-radius: 6px; font-size: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    line-height: 1.5; color: rgba(255,255,255,0.45);
}

/* ====== 螢幕覆蓋層 ====== */
.screen-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    z-index: 10; pointer-events: auto;
    background: rgba(5,7,12,0.93);
}
.screen-overlay.hidden { display: none !important; }

.menu-box {
    background: linear-gradient(135deg, rgba(25,30,45,0.95), rgba(10,12,20,0.98));
    border: 2px solid #a88a53; border-radius: 12px;
    padding: 24px 30px; width: 420px; max-width: 90%;
    display: flex; flex-direction: column; align-items: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.9), inset 0 0 15px rgba(212,175,55,0.15);
    animation: menuPop 0.2s ease-out;
    will-change: transform, opacity;
}
@keyframes menuPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ====== 標題 ====== */
.jrpg-title, .screen-overlay h1, .menu-box h1 {
    font-size: 26px; color: #ffd700;
    text-shadow: 0 0 12px rgba(255,215,0,0.5), 2px 2px 4px #000;
    margin-bottom: 6px; text-align: center; letter-spacing: 1px;
}
.menu-subtitle, .screen-overlay h2, .menu-box h2 {
    font-size: 14px; color: #aaa; margin-bottom: 16px;
    letter-spacing: 1px; font-weight: 500;
}
.welcome-user { font-size: 18px; color: #66ccff; margin-bottom: 8px; }
.char-stats-summary {
    font-size: 12px; color: #ffd700;
    background: rgba(0,0,0,0.4); padding: 6px 12px;
    border-radius: 20px; border: 1px solid rgba(255,215,0,0.3);
    margin-bottom: 16px;
}
.exp-boost-banner {
    font-size: 13px; color: #fff;
    background: linear-gradient(135deg, rgba(156,39,176,0.35), rgba(74,20,140,0.5));
    border: 1px solid #ce93d8; border-radius: 20px;
    padding: 6px 14px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px; justify-content: center;
}
.exp-boost-banner.hidden { display: none; }

/* ====== 輸入框 ====== */
.input-group { display: flex; flex-direction: column; width: 100%; gap: 8px; margin-bottom: 10px; }
.menu-box input, .menu-box select, .coop-select-style {
    width: 100%; padding: 10px 14px; margin: 4px 0;
    border: 1px solid #5a4b32; border-radius: 6px;
    background: rgba(10,12,18,0.9); color: #fff;
    font-size: 13px; outline: none;
    transition: border-color 0.2s;
}
.menu-box input:focus, .menu-box select:focus, .coop-select-style:focus {
    border-color: #ffd700;
    box-shadow: 0 0 8px rgba(255,215,0,0.4);
}
.menu-box input::placeholder { color: rgba(255,255,255,0.3); }
.coop-select-style option { background: #0a0c12; color: #fff; }
.pwd-hint { font-size: 14px; color: #ffaa44; align-self: flex-start; margin: 2px 0 4px; font-weight: bold; }

/* ====== 按鈕 ====== */
.btn {
    padding: 8px 18px; border: 1px solid transparent; border-radius: 6px;
    font-size: 13px; font-weight: bold; cursor: pointer;
    display: inline-flex; justify-content: center; align-items: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    transition: transform 0.12s, filter 0.12s;
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.15); }
.btn:active { transform: translateY(0); }
.btn-gold {
    background: linear-gradient(180deg, #ffd700, #b8860b);
    color: #1a1000; border-color: #ffe680;
    box-shadow: 0 3px 10px rgba(212,175,55,0.4); text-shadow: none;
}
.btn-blue {
    background: linear-gradient(180deg, #3a82f7, #174ea6);
    color: #fff; border-color: #82b1ff;
    box-shadow: 0 3px 10px rgba(58,130,247,0.4);
}
.btn-red {
    background: linear-gradient(180deg, #e53935, #8e0000);
    color: #fff; border-color: #ff8a80;
    box-shadow: 0 3px 10px rgba(229,57,53,0.4);
}
.btn-green {
    background: linear-gradient(180deg, #43a047, #1b5e20);
    color: #fff; border-color: #81c784;
    box-shadow: 0 3px 10px rgba(67,160,71,0.4);
}
.btn-gray {
    background: linear-gradient(180deg, #4f5b66, #2c343b);
    color: #ccc; border-color: #708090;
}
.btn-purple {
    background: linear-gradient(180deg, #9c27b0, #4a148c);
    color: #fff; border-color: #ce93d8;
    box-shadow: 0 3px 10px rgba(156,39,176,0.4);
}
.disabled-btn { cursor: not-allowed; filter: grayscale(0.6); }

/* ====== 訊息 ====== */
.error-msg { color: #ff6666; font-size: 12px; min-height: 18px; margin: 4px 0; text-align: center; }
.info-text { margin-top: 14px; font-size: 11px; color: #aaa; text-align: center; line-height: 1.6; }
.test-conn, .info-text span {
    color: #ffd700; cursor: pointer; text-decoration: underline;
    transition: color 0.15s;
}
.test-conn:hover, .info-text span:hover { color: #fff; }

/* ====== 主選單 ====== */
#mainMenu { justify-content: center; }
.menu-inner {
    width: 960px; height: 540px; position: relative;
    display: flex; flex-direction: column; align-items: center;
    justify-content: space-between; pointer-events: none;
}
.menu-inner > * { pointer-events: auto; }
.menu-top { text-align: center; padding-top: 90px; }
.menu-top h1 {
    font-size: 32px; color: #ffd700;
    text-shadow: 0 0 20px rgba(255,215,0,0.4), 0 2px 4px #000;
    margin-bottom: 4px; letter-spacing: 3px;
}
.menu-top h2 { font-size: 16px; color: #66ccff; margin-bottom: 0; }
.menu-mid {
    position: absolute; left: 60px; top: 30px;
    display: flex; flex-direction: row; align-items: center; gap: 14px;
}
.menu-bot { display: flex; gap: 20px; margin-bottom: 70px; }
.menu-btn-main, .menu-btn-coop { width: 180px; padding: 14px 0; font-size: 15px; border-radius: 8px; }
.menu-btn-summon {
    position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
    width: 100px; padding: 16px 0; font-size: 14px; border-radius: 8px;
    background: linear-gradient(180deg, #e53935, #8e0000);
    color: #fff; border-color: #ff8a80;
    box-shadow: 0 3px 10px rgba(229,57,53,0.4);
}
.menu-btn-summon:hover { transform: translateY(calc(-50% - 2px)); }
.menu-btn-summon:active { transform: translateY(-50%); }
.menu-btn-lb {
    width: 48px; height: 48px; padding: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, #2c3240, #11141a);
    border: 1px solid #a88a53; color: #ffd700; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: transform 0.12s, border-color 0.15s, box-shadow 0.15s;
    will-change: transform; position: relative;
}
.menu-btn-lb:hover { transform: scale(1.1); border-color: #ffd700; box-shadow: 0 0 15px rgba(255,215,0,0.3); }
.badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
    background: #ff3333; color: #fff; font-size: 10px; font-weight: bold;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px; box-shadow: 0 0 8px rgba(255,0,0,0.6);
}
.menu-logout {
    position: absolute; bottom: 16px; right: 20px;
    font-size: 12px; background: none; border: none;
    color: rgba(255,255,255,0.3); cursor: pointer;
    transition: color 0.15s;
}
.menu-logout:hover { color: rgba(255,255,255,0.55); }

/* ====== 排行榜 ====== */
.leaderboard-box { width: 520px; }
.leaderboard-table {
    width: 100%; border-collapse: collapse; font-size: 12px; max-height: 280px; overflow-y: auto;
}
.leaderboard-table th {
    background: rgba(0,0,0,0.6); color: #ffd700; padding: 8px;
    border-bottom: 1px solid #d4af37; position: sticky; top: 0;
}
.leaderboard-table td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); text-align: center; }
.leaderboard-table tr:nth-child(even) { background: rgba(255,255,255,0.03); }
.leaderboard-table .me { background: rgba(255,215,0,0.12); font-weight: bold; }
.leaderboard-table .rank-1 { color: #ffd700; }
.leaderboard-table .rank-2 { color: #c0c0c0; }
.leaderboard-table .rank-3 { color: #cd7f32; }

/* ====== 關卡選擇 ====== */
.stage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; margin-top: 10px; }
.stage-grid .btn { padding: 12px 6px; font-size: 12px; }
.stage-grid .btn.selected { border: 2px solid #fff; box-shadow: 0 0 15px #ffd700; }

.stage-map-box {
    position: relative; width: min(1150px, 95vw);
    background: rgba(20,18,14,0.96);
    padding: 60px 0px 100px; box-shadow: 0 0 30px rgba(0,0,0,0.7);
    max-height: 96vh; overflow-y: auto;
}
.stage-map-actions {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: 250px; z-index: 30;
    display: flex; gap: 12px;
    background: rgba(10,10,16,0.94);  border-radius: 10px;
    padding: 10px 14px; box-shadow: 0 4px 18px rgba(0,0,0,0.6);
}
.stage-map-wrap {
    position: relative; width: 100%; height: min(540px, 58vh);
    overflow: hidden; border: 2px solid #6b562f; border-radius: 10px;
    background: #101010; cursor: grab; touch-action: none; user-select: none;
}
.stage-map-wrap.dragging { cursor: grabbing; }
.stage-map {
    position: absolute; left: 0; top: 0; width: 2730px; height: 1536px;
    background: url('../map/gamemap.webp') no-repeat center;
    background-size: 100% 100%;
    transform-origin: 0 0; will-change: transform;
}
.stage-map-zoom {
    position: absolute; top: 8px; right: 8px; z-index: 5;
    display: flex; gap: 6px;
}
.stage-exp-btn {
    position: absolute; bottom: 8px; left: 8px; z-index: 5;
    font-size: 12px; padding: 5px 12px; white-space: nowrap;
}
.stage-exp-btn.hidden { display: none; }
.stage-map-dot {
    position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px;
    border-radius: 50%; border: 4px solid #222;
    background: radial-gradient(circle at 35% 30%, #fff, #9aa0a8 55%, #3a3f46);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 22px; color: #fff; text-shadow: 0 1px 2px #000;
    cursor: pointer; box-shadow: 0 0 12px rgba(255,255,255,0.35);
    transition: transform 0.12s, box-shadow 0.12s;
}
.stage-map-dot:hover { transform: scale(1.12); }
.stage-map-dot.selected {
    border-color: #ffd700;
    box-shadow: 0 0 22px #ffd700, inset 0 0 12px rgba(255,215,0,0.45);
    transform: scale(1.3);
}
.stage-map-dot .dot-label {
    position: absolute; top: 100%; margin-top: 4px;
    white-space: nowrap; font-size: 13px; color: #fff;
    text-shadow: 0 1px 2px #000; background: rgba(0,0,0,0.65);
    border-radius: 4px; padding: 1px 7px;
}
.stage-map-dot .dot-complete {
    position: absolute; bottom: 100%; margin-bottom: 3px;
    white-space: nowrap; font-size: 11px; font-weight: bold;
    color: #ffd700; background: rgba(20,20,10,0.85);
    border: 1px solid #ffd700; border-radius: 6px; padding: 1px 6px;
    text-shadow: none;
}
.stage-map-dot.completed {
    border-color: #ffd700;
    box-shadow: 0 0 14px rgba(255,215,0,0.6), inset 0 0 8px rgba(255,215,0,0.35);
}
.stage-map-dot.boss {
    background: radial-gradient(circle at 35% 30%, #ff9a9a, #d63031 55%, #5a0f0f);
    border-color: #ff2222;
    box-shadow: 0 0 16px rgba(255,40,40,0.55);
}
.stage-map-dot.boss .dot-label {
    color: #ffb3b3; font-weight: bold; background: rgba(90,10,10,0.85);
}
.stage-map-dot.locked {
    background: radial-gradient(circle at 35% 30%, #666, #333 55%, #111);
    border-color: #333;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
    cursor: not-allowed;
    filter: grayscale(0.8);
}
.stage-map-dot.locked:hover { transform: none; }
.stage-region-label {
    position: absolute; transform: translateX(-50%);
    white-space: nowrap; font-size: 16px; font-weight: bold; color: #fff;
    text-shadow: 0 1px 3px #000; background: rgba(0,0,0,0.72);
    border: 2px solid #fff; border-radius: 8px; padding: 4px 14px;
    pointer-events: none; z-index: 2;
}
.stage-region-label.locked { opacity: 0.45; }

/* ====== 合作模式 ====== */
.room-item, .coop-player-item {
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px; padding: 8px 12px;
    display: flex; justify-content: space-between; align-items: center; margin: 4px 0;
    transition: border-color 0.15s;
}
.room-item:hover { border-color: #ffd700; }
.room-item .room-info { flex: 1; text-align: left; }
.room-item .room-name { color: #ffd700; font-weight: 600; font-size: 14px; }
.room-item .room-detail { color: rgba(255,255,255,0.35); font-size: 12px; margin-top: 3px; }
.coop-player-item .player-name { flex: 1; text-align: left; color: #fff; }
.coop-player-item .player-lv { color: #ffd700; font-size: 12px; }

/* ====== 召喚 / 角色卡片 ====== */
.character-card {
    width: 100px; padding: 8px 6px; border-radius: 8px;
    background: linear-gradient(180deg, rgba(35,40,55,0.9), rgba(15,18,25,0.9));
    border: 2px solid #555;
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer; position: relative;
    transition: transform 0.12s;
    will-change: transform;
}
.character-card:hover { transform: translateY(-4px) scale(1.05); }
.character-card .char-emoji { font-size: 26px; margin-bottom: 2px; }
.character-card .char-name { font-size: 10px; font-weight: bold; color: #fff; text-align: center; }
.character-card .char-rarity { font-size: 10px; font-weight: 900; margin-top: 2px; }
.character-card .char-level { font-size: 9px; font-weight: bold; color: #ffd700; background: rgba(255,215,0,0.15); border: 1px solid rgba(255,215,0,0.4); border-radius: 8px; padding: 0 6px; margin-top: 2px; }
.character-card .char-dupe { position: absolute; top: 2px; right: 4px; font-size: 9px; color: #ffd700; }
.character-card .char-equipped { font-size: 8px; color: #00ff66; margin-top: 2px; }
.character-card.rarity-UR { border-color: #ff3333; box-shadow: 0 0 10px rgba(255,51,51,0.5); }
.character-card.rarity-SSR { border-color: #ff8800; box-shadow: 0 0 8px rgba(255,136,0,0.4); }
.character-card.rarity-SR { border-color: #aa66ff; box-shadow: 0 0 6px rgba(170,102,255,0.3); }
.character-card.rarity-R { border-color: #4488ff; }
.character-card.rarity-N { border-color: #777; }

.rarity-UR { color: #ff3333; } .rarity-SSR { color: #ff8800; }
.rarity-SR { color: #aa66ff; } .rarity-R { color: #4488ff; } .rarity-N { color: #aaa; }

.gacha-new-card { animation: gachaPop 0.3s cubic-bezier(0.175,0.885,0.32,1.275); }
@keyframes gachaPop {
    from { transform: scale(0) rotate(-10deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}
.gacha-rates-summary {
    font-size: 11px; color: #ffaa00;
    background: rgba(0,0,0,0.4); padding: 4px 12px; border-radius: 12px; margin: 4px 0;
}
.gacha-btn-group { gap: 16px; }

/* ====== 設定面板 ====== */
#settingsScreen .menu-box { width: 400px; }
.settings-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.settings-row:last-child { border-bottom: none; }
.settings-label { font-size: 13px; color: #ffd700; min-width: 60px; }
.settings-row input[type="range"] {
    flex: 1; height: 6px; -webkit-appearance: none; appearance: none;
    background: #333; border-radius: 3px; outline: none;
}
.settings-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: #ffd700; cursor: pointer; border: none;
}
.settings-row input[type="range"]::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%;
    background: #ffd700; cursor: pointer; border: none;
}
.settings-val { font-size: 12px; color: #aaa; min-width: 32px; text-align: right; }
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: #555; border-radius: 13px; transition: 0.3s; cursor: pointer;
}
.toggle-slider:before {
    content: ""; position: absolute; height: 20px; width: 20px;
    left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: #4CAF50; }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(22px); }
