    * { box-sizing: border-box; user-select: none; -webkit-user-select: none; }
    html, body {
      margin: 0; padding: 0; width: 100%; height: 100%;
      overflow: hidden; background-color: #9ec9e6;
      font-family: 'Inter', sans-serif; color: #f5f5f4;
    }
    #canvas-container { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; }
    canvas { display: block; width: 100%; height: 100%; }
    .font-display { font-family: 'Rajdhani', sans-serif; }

    /* ===== METAL RIVETED PANELS (estilo painel de jogo mobile) ===== */
    .metal, .glass-bar, .hud-panel {
      position: relative;
      background: linear-gradient(180deg, rgba(62,71,83,0.97) 0%, rgba(40,46,56,0.97) 42%, rgba(25,30,37,0.98) 100%);
      border: 2px solid #0d1015;
      box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.08), inset 0 2px 0 rgba(255,255,255,0.20), 0 8px 18px rgba(0,0,0,0.55);
    }
    .metal::before, .glass-bar::before, .hud-panel::before {
      content: ''; position: absolute; inset: 3px; border-radius: inherit; pointer-events: none; z-index: 0;
      background:
        radial-gradient(circle at 6px 6px, #c3ccd6 0 1.4px, #5b6571 2px, transparent 2.6px),
        radial-gradient(circle at calc(100% - 6px) 6px, #c3ccd6 0 1.4px, #5b6571 2px, transparent 2.6px),
        radial-gradient(circle at 6px calc(100% - 6px), #c3ccd6 0 1.4px, #5b6571 2px, transparent 2.6px),
        radial-gradient(circle at calc(100% - 6px) calc(100% - 6px), #c3ccd6 0 1.4px, #5b6571 2px, transparent 2.6px);
    }
    .metal > *, .glass-bar > *, .hud-panel > * { position: relative; z-index: 1; }
    .metal-dark { background: linear-gradient(180deg, #20252c, #14181d); border: 1.5px solid #0a0c10; border-radius: 10px; box-shadow: inset 0 2px 5px rgba(0,0,0,0.65), 0 1px 0 rgba(255,255,255,0.1); }
    .plate {
      background: linear-gradient(180deg, #f3e3bb 0%, #dcc392 55%, #c9ab72 100%);
      color: #4a2d10; border: 2px solid #7d5a2c; border-radius: 8px; text-shadow: 0 1px 0 rgba(255,255,255,0.55);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 3px 8px rgba(0,0,0,0.45);
    }
    .chip { display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px;
      background: linear-gradient(180deg, #14171c, #20252c); border: 1.5px solid #0a0c10; box-shadow: inset 0 2px 4px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.14); }
    .chip .ci { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px;
      background: radial-gradient(circle at 35% 30%, #ffd98a, #e08a1a 70%, #8a4a08); border: 1.5px solid #5a2f06; box-shadow: 0 2px 3px rgba(0,0,0,0.5); }
    .chip .cv { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 16px; line-height: 1; color: #fff; }
    .chip .cs { font-size: 9px; color: #7bd957; line-height: 1; }

    .btn-orange, .btn-green, .btn-blue {
      font-family: 'Rajdhani', sans-serif; font-weight: 800; letter-spacing: 0.04em; border-radius: 10px; cursor: pointer;
      transition: transform 0.08s ease, filter 0.12s ease; text-shadow: 0 1px 0 rgba(255,255,255,0.35);
    }
    .btn-orange { color: #2b1403; background: linear-gradient(180deg, #ffd061, #f59a1d 52%, #de6d0a); border: 2px solid #7c3b07;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 3px 0 #7c3b07, 0 7px 12px rgba(0,0,0,0.45); }
    .btn-green { color: #0d2606; background: linear-gradient(180deg, #a6ec5c, #5fbf2a 52%, #3a8f17); border: 2px solid #1f5a0b;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 3px 0 #1f5a0b, 0 7px 12px rgba(0,0,0,0.45); }
    .btn-blue { color: #04202e; background: linear-gradient(180deg, #8fdcff, #3aa8e0 52%, #1e78b0); border: 2px solid #0e4768;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 3px 0 #0e4768, 0 7px 12px rgba(0,0,0,0.45); }
    .btn-orange:hover, .btn-green:hover, .btn-blue:hover { filter: brightness(1.08); }
    .btn-orange:active, .btn-green:active, .btn-blue:active { transform: translateY(2px); }
    .btn-orange:disabled, .btn-green:disabled { filter: grayscale(0.85) brightness(0.7); cursor: not-allowed; }

    .btn-pill { transition: all 0.15s ease; }
    .btn-pill.active {
      background: linear-gradient(180deg, #ffd061, #f59a1d 52%, #de6d0a);
      color: #2b1403; border-color: #7c3b07; font-weight: 800;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 0 12px rgba(245, 158, 11, 0.5);
    }
    .btn-pill.active-sky { background: rgba(56, 189, 248, 0.28); border-color: #38bdf8; color: #bfe9ff; }
    .tab-btn { background: linear-gradient(180deg, #3b434e, #232830); }
    .tab-btn.active {
      background: linear-gradient(180deg, #ffd061, #f59a1d 52%, #de6d0a); border-color: #7c3b07; color: #2b1403;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 3px 8px rgba(0,0,0,0.4);
    }

    input[type="range"].rally-slider { -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.18); outline: none; }
    input[type="range"].rally-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #ffd061, #de6d0a); border: 2px solid #3a1a04; cursor: pointer; }

    /* ===== CARTAS ILUSTRADAS ===== */
    .gcard { position: relative; display: flex; flex-direction: column; border-radius: 16px; padding: 7px; text-align: left; transition: transform .15s ease, filter .15s ease;
      background: linear-gradient(180deg, #4a525d, #1f242b); border: 3px solid #0d1015; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.12), 0 10px 22px rgba(0,0,0,0.6); }
    .gcard:hover { transform: translateY(-6px) scale(1.02); filter: brightness(1.08); }
    .gcard .gc-title { text-align: center; font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 6px; margin: 0 8px -9px; position: relative; z-index: 3; }
    .gcard .gc-art { position: relative; height: 150px; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 2px solid #0d1015;
      background: radial-gradient(circle at 50% 60%, #ffcf8a 0%, #e0873a 45%, #8a4724 100%); }
    .gcard .gc-art::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 8px, transparent 8px 22px); }
    .gcard .gc-art span { font-size: 78px; filter: drop-shadow(0 8px 6px rgba(0,0,0,0.55)); position: relative; z-index: 1; }
    .gcard .gc-big { margin: -14px 6px 0; position: relative; z-index: 3; text-align: center; font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 21px; padding: 3px 4px;
      color: #fff; background: linear-gradient(180deg, #2a3039, #12161b); border: 2px solid #b97a2a; border-radius: 9px; box-shadow: 0 3px 8px rgba(0,0,0,0.5); }
    .gcard .gc-desc { font-size: 11.5px; color: #d6d3d1; text-align: center; padding: 8px 6px 4px; min-height: 52px; }
    .gcard .gc-foot { display: flex; justify-content: space-between; font-size: 9.5px; text-transform: uppercase; font-weight: 800; padding: 2px 6px 0; letter-spacing: .08em; }
    .card-comum { border-color: #6b7280; }
    .card-comum .gc-art { background: radial-gradient(circle at 50% 60%, #d9d4c8, #8e8574 55%, #4d473d); }
    .card-raro { border-color: #38bdf8; box-shadow: inset 0 0 0 2px rgba(56,189,248,0.35), 0 0 24px rgba(56,189,248,0.35), 0 10px 22px rgba(0,0,0,0.6); }
    .card-raro .gc-art { background: radial-gradient(circle at 50% 60%, #bfe9ff, #3b8fc4 55%, #17405e); }
    .card-epico { border-color: #f59e0b; box-shadow: inset 0 0 0 2px rgba(245,158,11,0.45), 0 0 28px rgba(245,158,11,0.5), 0 10px 22px rgba(0,0,0,0.6); }

    @keyframes shiftBlink { 0%, 100% { opacity: 1; box-shadow: 0 0 10px #ef4444; } 50% { opacity: 0.35; } }
    .shift-light-on { background-color: #ef4444 !important; animation: shiftBlink 0.25s infinite; }

    /* ===== COMPONENTES NO HUD ===== */
    .comp-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 4px 5px; border-radius: 12px; min-width: 0;
      background: linear-gradient(180deg, #4b4034 0%, #2e261e 55%, #1e1914 100%); border: 2px solid #0d0a07; box-shadow: inset 0 0 0 1.5px rgba(255,214,150,0.12), inset 0 2px 0 rgba(255,225,170,0.22), 0 6px 12px rgba(0,0,0,0.5); }
    .comp-card .ico { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px;
      background: radial-gradient(circle at 35% 30%, #5b6572, #20252c 75%); border: 2px solid #0d1015; box-shadow: inset 0 2px 3px rgba(255,255,255,0.18), 0 2px 4px rgba(0,0,0,0.6); }
    .comp-card .nm { font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 12px; color: #fff; letter-spacing: .03em; line-height: 1.05; }
    .comp-card .lv { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 11px; color: #ffcf6b; line-height: 1; }
    .comp-card .bar { width: 100%; height: 7px; border-radius: 99px; background: #0f0d0b; border: 1px solid #000; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,0.8); }
    .comp-card .bar > i { display: block; height: 100%; border-radius: 99px; transition: width .25s ease; }
    .comp-card .pct { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 11px; line-height: 1; }

    .gauge-num { font-family: 'Rajdhani', sans-serif; font-weight: 800; }

    /* ===== AVISOS DE ULTRAPASSAGEM ===== */
    @keyframes otPop { 0% { transform: translate(-50%, -20px) scale(0.6); opacity: 0; } 12% { transform: translate(-50%, 0) scale(1.08); opacity: 1; } 22% { transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; } 100% { transform: translate(-50%, 8px) scale(0.98); opacity: 0; } }
    #ot-banner { position: fixed; left: 50%; top: 26%; z-index: 30; pointer-events: none; display: none; padding: 8px 26px; border-radius: 12px;
      font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: .05em; text-transform: uppercase; text-align: center; border: 3px solid #000; box-shadow: 0 10px 26px rgba(0,0,0,0.6); }
    #ot-banner small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; opacity: .92; }
    #ot-banner.ot-good { background: linear-gradient(180deg, #8df05a, #3f9c1d); color: #072403; }
    #ot-banner.ot-bad { background: linear-gradient(180deg, #ff7a6b, #c01f12); color: #fff; }
    #ot-banner.ot-info { background: linear-gradient(180deg, #ffd061, #de6d0a); color: #2b1403; }
    #ot-banner.show { display: block; animation: otPop 3.2s ease forwards; }

    .custom-scroll::-webkit-scrollbar { width: 7px; height: 7px; }
    .custom-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 4px; }
    .custom-scroll::-webkit-scrollbar-thumb { background: rgba(245,158,11,0.55); border-radius: 4px; }
    .checker { background: repeating-conic-gradient(#111 0 25%, #f5f5f4 0 50%) 0 0 / 10px 10px; }

    /* ===== MODO PAPERCRAFT ===== */
    #paper-grain { position: fixed; inset: 0; z-index: 2; pointer-events: none; display: none; mix-blend-mode: multiply; opacity: 0.55; background-size: 256px 256px; }
    body.paper #paper-grain { display: block; }
    body.paper #canvas-container canvas { filter: saturate(0.86) sepia(0.14) contrast(0.97) brightness(1.05); }
    body.paper .metal, body.paper .glass-bar, body.paper .hud-panel {
      background: linear-gradient(180deg, #7a654b 0%, #5d4b36 55%, #483a2b 100%); border-color: #2a2016;
      box-shadow: inset 0 2px 0 rgba(255,235,200,0.25), 0 6px 0 rgba(0,0,0,0.28), 0 10px 16px rgba(0,0,0,0.4);
    }
    body.paper .metal::before, body.paper .glass-bar::before, body.paper .hud-panel::before {
      background: none; inset: 5px; border: 2px dashed rgba(255,236,200,0.38); border-radius: 10px;
    }
    body.paper .metal-dark { background: linear-gradient(180deg, #3a2f23, #2a2118); border-color: #1a140d; }
    body.paper .comp-card { background: linear-gradient(180deg, #8a7357, #66523b 55%, #4d3d2c); border-color: #2a2016; }
    body.paper .chip { background: linear-gradient(180deg, #3a2f23, #4a3c2c); }
    body.paper .gcard { background: linear-gradient(180deg, #7a654b, #4d3d2c); }

    #screen-race { transition: opacity 0.9s ease; }

    #canvas-container canvas { filter: saturate(1.14) contrast(1.05); }
    body.paper #canvas-container canvas { filter: saturate(0.86) sepia(0.14) contrast(0.97) brightness(1.05); }

    /* ===== PAINÉIS NO ESTILO MOBILE (barra escura translúcida, fichas douradas, placa de pergaminho) ===== */
    .metal, .glass-bar, .hud-panel, .bar {
      background: linear-gradient(180deg, rgba(40,46,58,0.90) 0%, rgba(22,26,34,0.92) 100%);
      border: 1.5px solid rgba(255,255,255,0.13); border-radius: 14px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 6px 14px rgba(0,0,0,0.45);
    }
    .metal::before, .glass-bar::before, .hud-panel::before { background: none; }
    .chip { gap: 6px; padding: 3px 12px 3px 3px; border-radius: 999px; background: linear-gradient(180deg, rgba(10,12,16,0.75), rgba(24,28,36,0.7)); border: 1px solid rgba(255,255,255,0.1); box-shadow: inset 0 2px 4px rgba(0,0,0,0.55); }
    .chip .ci, .ci { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
      background: radial-gradient(circle at 35% 28%, #ffe29a, #e9a21e 62%, #8c5208); border: 1.5px solid #5a3406; box-shadow: 0 2px 3px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.5); }
    .ci.red { background: radial-gradient(circle at 35% 28%, #ff8f84, #d7261b 62%, #7a0f08); border-color: #4a0904; }
    .ci.blue { background: radial-gradient(circle at 35% 28%, #a9d6ff, #3b82d6 62%, #17407a); border-color: #0d2a52; }
    .ci.wheel { background: radial-gradient(circle at 35% 28%, #6a7280, #2a2f38 70%, #14171c); border-color: #0a0c10; }
    .chip .cv { font-size: 17px; } .chip .cs { font-size: 10px; color: #8ee06a; }
    .rally-plate { min-width: 330px; padding: 4px 14px 6px; border-radius: 12px; text-align: center;
      background: linear-gradient(180deg, #f1dfb2 0%, #d9bf8a 55%, #c4a468 100%); border: 2px solid #6d4c22; color: #3b2814; box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 5px 12px rgba(0,0,0,0.5); }
    .rp-title { font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 20px; line-height: 1.05; text-shadow: 0 1px 0 rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: .02em; }
    .rp-sub { font-size: 11px; font-weight: 600; color: #5a4120; }
    #progress-segments > div { opacity: 0.95; }
    .ctl { min-width: 32px; height: 30px; padding: 0 8px; border-radius: 9px; font-size: 13px; font-weight: 800; color: #e7e5e4; font-family: 'Rajdhani', sans-serif;
      background: linear-gradient(180deg, #3a414d, #232830); border: 1px solid rgba(255,255,255,0.14); box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 4px rgba(0,0,0,0.4); cursor: pointer; }
    .ctl:hover { filter: brightness(1.2); }
    .ctl.btn-pill.active { background: linear-gradient(180deg, #ffd061, #f59a1d 52%, #de6d0a); color: #2b1403; border-color: #7c3b07; }
    .ctl.btn-pill.active-sky { background: rgba(56,189,248,0.3); border-color: #38bdf8; }
    .ctl-green { background: linear-gradient(180deg, #a6ec5c, #5fbf2a 52%, #3a8f17); color: #0d2606; border-color: #1f5a0b; }
    .comp-card { background: linear-gradient(180deg, rgba(48,54,66,0.92), rgba(24,28,36,0.94)); border: 1.5px solid rgba(255,255,255,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 10px rgba(0,0,0,0.4); }
    body.paper .bar { background: linear-gradient(180deg, #7a654b 0%, #5d4b36 55%, #483a2b 100%); border-color: #2a2016; }
    body.paper .rally-plate { background: linear-gradient(180deg, #e4cfa0, #c9ad78); }

    /* ===== PAINÉIS ~40% MENORES ===== */
    #screen-race > header { zoom: 0.86; }
    #screen-race > footer { zoom: 0.74; }
    #hud-tower { zoom: 0.68; }
    #screen-bivouac > header { zoom: 0.9; }
    #screen-bivouac main > div { zoom: 0.97; }
    #generic-modal-box { zoom: 1.0; }
    #ot-banner { zoom: 0.88; }
    #screen-race { padding: 6px !important; gap: 4px !important; }

    /* ===== FUNDO DOS PAINÉIS: couro/madeira com costura e rebites dourados ===== */
    .metal, .glass-bar, .hud-panel, .bar {
      background:
        linear-gradient(180deg, rgba(255,214,150,0.13), rgba(255,214,150,0) 38%),
        repeating-linear-gradient(93deg, rgba(0,0,0,0.05) 0 2px, rgba(255,235,200,0.025) 2px 6px),
        radial-gradient(120% 140% at 50% 0%, rgba(120,84,52,0.0), rgba(30,18,8,0.35) 100%),
        linear-gradient(180deg, rgba(112,78,48,0.94) 0%, rgba(78,52,32,0.95) 55%, rgba(54,36,22,0.96) 100%);
      border: 2px solid rgba(30,19,10,0.96);
      box-shadow: inset 0 0 0 1.5px rgba(255,208,140,0.30), inset 0 2px 0 rgba(255,228,175,0.34), inset 0 -8px 14px rgba(0,0,0,0.32), 0 7px 14px rgba(0,0,0,0.5);
    }
    .metal::before, .glass-bar::before, .hud-panel::before, .bar::before {
      content: ''; position: absolute; inset: 4px; border-radius: inherit; pointer-events: none; z-index: 0;
      border: 1.5px dashed rgba(255,222,165,0.32);
      background:
        radial-gradient(circle at 5px 5px, #ffe7ae 0 1.2px, #a8742a 2px, transparent 2.8px),
        radial-gradient(circle at calc(100% - 5px) 5px, #ffe7ae 0 1.2px, #a8742a 2px, transparent 2.8px),
        radial-gradient(circle at 5px calc(100% - 5px), #ffe7ae 0 1.2px, #a8742a 2px, transparent 2.8px),
        radial-gradient(circle at calc(100% - 5px) calc(100% - 5px), #ffe7ae 0 1.2px, #a8742a 2px, transparent 2.8px);
    }
    .bar { position: relative; } .bar > * { position: relative; z-index: 1; }
    .chip { background: linear-gradient(180deg, rgba(28,18,10,0.82), rgba(52,36,22,0.72)); border: 1px solid rgba(255,214,150,0.2); box-shadow: inset 0 2px 5px rgba(0,0,0,0.6), 0 1px 0 rgba(255,220,160,0.15); }
    .ctl { background: linear-gradient(180deg, #6a4c30, #3e2b1a); border: 1px solid rgba(255,214,150,0.28); box-shadow: inset 0 1px 0 rgba(255,228,175,0.3), 0 2px 4px rgba(0,0,0,0.45); }
    .ctl.btn-pill.active { background: linear-gradient(180deg, #ffd061, #f59a1d 52%, #de6d0a); color: #2b1403; border-color: #7c3b07; }
    .ctl-green { background: linear-gradient(180deg, #a6ec5c, #5fbf2a 52%, #3a8f17); color: #0d2606; border-color: #1f5a0b; }
    .comp-card { background: linear-gradient(180deg, rgba(96,68,42,0.94), rgba(52,36,22,0.96)); border: 2px solid rgba(30,19,10,0.95); box-shadow: inset 0 0 0 1px rgba(255,208,140,0.25), inset 0 2px 0 rgba(255,228,175,0.28), 0 5px 10px rgba(0,0,0,0.45); }
    .comp-card .ico { background: radial-gradient(circle at 35% 30%, #7a6a58, #2e241a 75%); }
    .metal-dark { background: linear-gradient(180deg, #2a1d12, #3a2a1a); border: 1px solid rgba(255,214,150,0.18); }
    .plate { background: linear-gradient(180deg, #f3e3bb 0%, #dcc392 55%, #c9ab72 100%); }
    body.paper .metal, body.paper .glass-bar, body.paper .hud-panel, body.paper .bar { background: linear-gradient(180deg, #8a7357, #66523b 55%, #4d3d2c); border-color: #2a2016; }

    /* ajuste de largura do topo para caber em uma linha */
    .rally-plate { min-width: 290px; padding: 4px 10px 6px; }
    .rp-title { font-size: 18px; }
    .hud-top .bar { padding-left: 6px !important; padding-right: 6px !important; gap: 6px !important; }
    .hud-top .chip { padding-right: 9px; } .hud-top .chip .cv { font-size: 16px; }
    .hud-top .ctl { min-width: 27px; padding: 0 5px; height: 28px; font-size: 12px; }
    .hud-top .w-\[118px\] { width: 96px; }

    /* linhas de velocidade (aparecem acima de ~55 km/h) */
    #speed-fx { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
      background:
        repeating-conic-gradient(from 0deg at 50% 54%, rgba(255,255,255,0) 0deg 2.4deg, rgba(255,255,255,0.20) 2.6deg 2.9deg, rgba(255,255,255,0) 3.1deg 5.7deg),
        radial-gradient(circle at 50% 54%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35) 100%);
      -webkit-mask-image: radial-gradient(circle at 50% 54%, transparent 34%, #000 78%); mask-image: radial-gradient(circle at 50% 54%, transparent 34%, #000 78%);
      transition: opacity 0.4s ease; }

    @keyframes spdFlicker { 0% { transform: rotate(0deg) scale(1.04); } 50% { transform: rotate(1.6deg) scale(1.1); } 100% { transform: rotate(0deg) scale(1.04); } }
    #speed-fx { animation: spdFlicker 0.22s linear infinite; background:
        repeating-conic-gradient(from 0deg at 50% 54%, rgba(255,255,255,0) 0deg 1.7deg, rgba(255,255,255,0.26) 1.9deg 2.3deg, rgba(255,255,255,0) 2.5deg 4.4deg),
        radial-gradient(circle at 50% 54%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.42) 100%); }

    /* ===== PAINEL INFERIOR NO ESTILO DO PRINT (carvão escuro + moldura âmbar, ícones de linha) ===== */
    .gauge-panel, #hud-components-grid .comp-card {
      background: linear-gradient(180deg, #2c3039 0%, #191c22 55%, #121418 100%);
      border: 2px solid #0a0b0e; border-radius: 15px;
      box-shadow: inset 0 0 0 1.5px rgba(245,158,11,0.60), inset 0 2px 0 rgba(255,255,255,0.10), 0 6px 12px rgba(0,0,0,0.55);
    }
    .gauge-panel { position: relative; }
    .rpm-seg { display: flex; gap: 2px; height: 13px; padding: 2px; border-radius: 6px; background: #0d0f13; border: 1px solid rgba(255,255,255,0.08); box-shadow: inset 0 2px 4px rgba(0,0,0,0.7); }
    .rpm-seg i { flex: 1; border-radius: 2px; background: #3a2e1e; }
    .rpm-seg i.on { background: linear-gradient(180deg, #ffb340, #f59e0b); box-shadow: 0 0 6px rgba(245,158,11,0.55); }
    .rpm-seg i.hot { background: linear-gradient(180deg, #ff6b4a, #ef4444); box-shadow: 0 0 6px rgba(239,68,68,0.6); }
    #hud-components-grid .comp-card { padding: 9px 6px 8px; gap: 3px; justify-content: space-between; }
    #hud-components-grid .comp-card .ico { width: 46px; height: 46px; background: none; border: none; box-shadow: none; }
    #hud-components-grid .comp-card .ico svg { width: 38px; height: 38px; filter: drop-shadow(0 0 4px rgba(245,158,11,0.35)); }
    #hud-components-grid .comp-card .nm { font-size: 15px; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; }
    #hud-components-grid .comp-card .lv { font-size: 12px; color: #aeb2ba; font-weight: 600; }
    #hud-components-grid .comp-card .bar { height: 8px; background: #08090b; border: 1px solid #000; }
    #hud-components-grid .comp-card .pct { font-size: 13px; color: #f3f4f6 !important; }
    .gauge-panel .profile-btn { background: #14161b !important; border: 1px solid rgba(255,255,255,0.12) !important; }
    .gauge-panel .profile-btn.active { background: linear-gradient(180deg, #ffb340, #e8860c) !important; color: #2b1403 !important; border-color: #8a4a08 !important; }
    .gauge-panel .metal-dark { background: #111318; border: 1px solid rgba(255,255,255,0.10); }
    body.paper .gauge-panel, body.paper #hud-components-grid .comp-card { background: linear-gradient(180deg, #7a654b, #4d3d2c); }

    /* ===== INDICADORES INFERIORES MAIS ESTREITOS ===== */
    #screen-race > footer { max-width: 1120px !important; }
    #screen-race > footer > .grid { display: flex !important; justify-content: center; gap: 6px; }
    #screen-race > footer .gauge-panel { flex: 0 0 auto; width: 372px; }
    #hud-components-grid { flex: 0 0 auto; display: grid !important; grid-template-columns: repeat(7, 84px) !important; gap: 5px !important; }
    #hud-components-grid .comp-card { padding: 8px 4px 7px; }
    #hud-components-grid .comp-card .nm { font-size: 12.5px; letter-spacing: 0.02em; }
    #hud-components-grid .comp-card .lv { font-size: 11px; }
    #hud-components-grid .comp-card .ico { width: 38px; height: 38px; }
    #hud-components-grid .comp-card .ico svg { width: 32px; height: 32px; }
    #hud-components-grid .comp-card .pct { font-size: 12px; }

    /* barra de RPM mais alta */
    .rpm-seg { height: 30px; padding: 4px 3px; gap: 2px; border-radius: 8px; }
    .rpm-seg i { border-radius: 2px; }

    /* ===== CARTAS NO PADRÃO DO PRINT: moldura de aço enferrujado, placa de pergaminho, arte de deserto, faixa escura e painel de atributos ===== */
    .gcard { position: relative; display: flex; flex-direction: column; text-align: center; padding: 10px 9px 9px; border-radius: 16px; border: 4px solid #3b434f;
      background: linear-gradient(180deg, #323a46 0%, #1f242c 100%);
      box-shadow: inset 0 0 0 2px #b8641d, inset 0 0 0 4px #2a1f14, 0 12px 24px rgba(0,0,0,0.65); transition: transform .15s ease, filter .15s ease; }
    .gcard:hover { transform: translateY(-6px) scale(1.02); filter: brightness(1.08); }
    .gcard .cnr { position: absolute; width: 26px; height: 26px; z-index: 6; background: linear-gradient(135deg, #d9772a, #8a3c10); border: 2px solid #3a1c08; border-radius: 4px;
      box-shadow: inset 0 2px 0 rgba(255,220,170,0.5); }
    .gcard .cnr::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe3b0, #8c5a2a); }
    .gcard .cnr.tl { top: -7px; left: -7px; } .gcard .cnr.tr { top: -7px; right: -7px; } .gcard .cnr.bl { bottom: -7px; left: -7px; } .gcard .cnr.br { bottom: -7px; right: -7px; }
    .gc-plate { position: relative; z-index: 5; margin: 4px 6px -12px; padding: 7px 8px 6px; font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 21px; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase;
      color: #3a2410; background: linear-gradient(180deg, #f6e8c0, #e2c993 70%, #cfae72); border: 3px solid #6b4a24; border-radius: 6px; text-shadow: 0 1px 0 rgba(255,255,255,0.6);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 4px 8px rgba(0,0,0,0.5); }
    .gc-art { position: relative; height: 170px; margin: 0 2px; border-radius: 8px; overflow: hidden; border: 4px solid #2a1d12;
      background: radial-gradient(circle at 70% 25%, #fff0c8 0, #ffd08a 12%, rgba(255,190,110,0) 45%), linear-gradient(180deg, #ffd9a2 0%, #f2a14a 50%, #c4631d 100%); box-shadow: inset 0 0 18px rgba(80,30,0,0.45); }
    .gc-dunes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 52%; }
    .gc-emoji { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font-size: 88px; line-height: 1; filter: drop-shadow(0 10px 6px rgba(60,20,0,0.65)); z-index: 2; }
    .gc-stampA { position: absolute; top: 14px; left: 8px; width: 46px; height: 46px; border-radius: 50%; border: 2px dashed rgba(90,50,20,0.65); color: rgba(90,50,20,0.7); font: 800 9px/1 Rajdhani, sans-serif; display: flex; align-items: center; justify-content: center; text-align: center; transform: rotate(-14deg); z-index: 3; }
    .gc-stampA small { font-size: 7px; }
    .gc-stampB { position: absolute; top: 20px; right: 4px; padding: 1px 6px; border: 2px solid rgba(190,40,30,0.8); color: rgba(190,40,30,0.85); font: 800 11px/1.1 Rajdhani, sans-serif; transform: rotate(10deg); border-radius: 3px; z-index: 3; }
    .gc-ribbon { position: relative; z-index: 5; margin: -14px 8px 0; padding: 4px 6px 3px; font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 25px; line-height: 1.05; color: #fff; text-transform: uppercase;
      background: linear-gradient(180deg, #2a2f38, #12151a); border: 3px solid #c9822c; border-radius: 9px; box-shadow: 0 4px 8px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.15); }
    .gc-stats { margin: 7px 2px 0; padding: 7px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; background: linear-gradient(180deg, #191d23, #101318); border: 2px solid #343b46; border-radius: 8px; box-shadow: inset 0 2px 5px rgba(0,0,0,0.6); }
    .gs { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #cfd2d8; min-width: 0; }
    .gs-i { font-size: 13px; } .gs-l { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; } .gs-v { font-weight: 800; font-family: 'Rajdhani', sans-serif; font-size: 13px; }
    .gs-v.ok { color: #7bd957; } .gs-v.no { color: #ef6a5a; }
    .gc-desc { margin: 6px 4px 0; font-size: 10.5px; line-height: 1.25; color: #b9bdc6; min-height: 28px; }
    .gc-foot { display: flex; justify-content: space-between; padding: 4px 8px 0; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #f0b24a; }
    .gc-rar.r-comum { color: #a8a29e; } .gc-rar.r-raro { color: #5cc4ff; } .gc-rar.r-epico { color: #ffb23f; }
    .gcard.card-raro { box-shadow: inset 0 0 0 2px #38bdf8, inset 0 0 0 4px #10202a, 0 0 22px rgba(56,189,248,0.35), 0 12px 24px rgba(0,0,0,0.65); }
    .gcard.card-epico { box-shadow: inset 0 0 0 2px #ffb23f, inset 0 0 0 4px #2a1a08, 0 0 26px rgba(245,158,11,0.5), 0 12px 24px rgba(0,0,0,0.65); }
    .gcard.card-comum { box-shadow: inset 0 0 0 2px #8b8f98, inset 0 0 0 4px #1a1c20, 0 12px 24px rgba(0,0,0,0.65); }

    .gcard > * { flex-shrink: 0; }
    .gcard { min-height: 470px; }
    .gc-art { height: 196px; }
    .gc-emoji { top: 46%; font-size: 84px; }
    .gc-stats { grid-template-columns: 1fr; gap: 4px; min-height: 76px; align-content: start; }
    .gs-l { overflow: visible; text-overflow: clip; }
    .gcard .btn-green { margin-top: auto; }
    .gc-desc { min-height: 40px; }

    .gcard .gc-art, .gcard.card-comum .gc-art, .gcard.card-raro .gc-art, .gcard.card-epico .gc-art {
      height: 214px; border: 4px solid #2a1d12; border-radius: 8px; display: block;
      background: radial-gradient(circle at 70% 25%, #fff0c8 0, #ffd08a 12%, rgba(255,190,110,0) 45%), linear-gradient(180deg, #ffd9a2 0%, #f2a14a 50%, #c4631d 100%);
    }
    .gcard .gc-art::after { display: none; }
    .gcard .gc-art .gc-emoji { font-size: 96px; top: 44%; position: absolute; }
    .gcard .gc-art span.gc-emoji { font-size: 96px; }

    .gc-plate { min-height: 58px; display: flex; align-items: center; justify-content: center; }

    /* menu inicial mais compacto */
    

/* ===== Cartão de caminhão (menu inicial) ===== */
.tcard { position: relative; padding: 10px 11px 11px; border-radius: 14px; border: 4px solid #2b3036;
  background: linear-gradient(180deg, #4a5560, #2f3740 60%, #262d34); box-shadow: inset 0 0 0 2px #8a949e, inset 0 0 0 5px #1b2026, 0 10px 22px rgba(0,0,0,.6), 0 0 0 2px #b8742f;
  display: flex; flex-direction: column; gap: 7px; transition: transform .15s ease, filter .15s ease; }
.tcard:hover { transform: translateY(-4px); filter: brightness(1.07); }
.tcard.sel { box-shadow: inset 0 0 0 2px #ffc247, inset 0 0 0 5px #1b2026, 0 10px 22px rgba(0,0,0,.6), 0 0 0 2px #e0902d, 0 0 26px rgba(255,170,40,.45); }
.tcard .rv { position: absolute; width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd9a0, #a8601f 60%, #5a3010); border: 1.5px solid #2c1808; z-index: 5; }
.tcard .rv.tl { top: -7px; left: -7px; } .tcard .rv.tr { top: -7px; right: -7px; } .tcard .rv.bl { bottom: -7px; left: -7px; } .tcard .rv.br { bottom: -7px; right: -7px; }
.tc-head { position: relative; display: flex; align-items: center; gap: 8px; margin: -2px 0 0 2px; }
.tc-plate { flex: 0 0 auto; transform: rotate(-4deg); background: linear-gradient(180deg, #fbf2dc, #e6d4a8); border: 3px solid #2a2118; border-radius: 6px; padding: 2px 9px 1px; text-align: center; box-shadow: 0 3px 6px rgba(0,0,0,.5); margin-left: -4px; }
.tc-plate b { display: block; font: 900 9px 'Rajdhani', sans-serif; letter-spacing: .1em; color: #c11b1b; line-height: 1; margin-top: 1px; }
.tc-plate span { display: block; font: 800 25px 'Rajdhani', sans-serif; color: #17120d; line-height: 1; }
.tc-name { flex: 1 1 auto; min-width: 0; text-align: center; background: linear-gradient(180deg, #f4e6c2, #dcc794); border: 3px solid #2a2118; border-radius: 6px; padding: 5px 4px 3px;
  font: 800 19px 'Rajdhani', sans-serif; letter-spacing: .03em; text-transform: uppercase; color: #201a12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-drive { flex: 0 0 auto; background: linear-gradient(180deg, #f4e6c2, #dcc794); border: 3px solid #2a2118; border-radius: 6px; padding: 4px 7px 2px; font: 800 17px 'Rajdhani', sans-serif; color: #201a12; }
.tc-art { position: relative; height: 104px; border-radius: 8px; border: 4px solid #1b1f24; box-shadow: inset 0 0 0 2px #8a949e, inset 0 0 18px rgba(80,60,30,.35);
  background-color: #efe3c4; background-image: linear-gradient(rgba(150,130,95,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(150,130,95,.28) 1px, transparent 1px); background-size: 14px 14px; overflow: hidden; }
.tc-art img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tc-wt { position: absolute; right: 6px; bottom: 5px; padding: 3px 7px 2px; border-radius: 6px; background: #2c2e33; border: 2px solid #8a8f98; color: #e8e8e8; font: 800 12px 'Rajdhani', sans-serif; }
.tc-row { display: flex; align-items: center; gap: 7px; }
.tc-row svg { flex: 0 0 auto; }
.tc-row span { flex: 0 0 auto; min-width: 100px; font: 800 14px 'Rajdhani', sans-serif; letter-spacing: .03em; color: #e5e1d8; }
.tc-row span b { color: #fff; }
.tc-seg { flex: 1 1 auto; display: flex; gap: 2px; padding: 3px; border-radius: 4px; background: #14171b; border: 2px solid #4a5058; }
.tc-seg i { flex: 1 1 0; height: 13px; border-radius: 1px; background: #2a2e34; }
.tc-seg.gold i.on { background: linear-gradient(180deg, #ffd16a, #d9921e); }
.tc-seg.green i.on { background: linear-gradient(180deg, #5be08a, #1f9b4e); }
.tc-btn { margin-top: 2px; width: 100%; padding: 4px 8px 2px; border-radius: 9px; border: 3px solid #4a2d0c; font: 900 19px 'Rajdhani', sans-serif; letter-spacing: .03em; color: #2b1a05;
  background: linear-gradient(180deg, #ffd35a, #e79a1d 55%, #c4751a); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 3px 0 #6b3d0e, 0 5px 8px rgba(0,0,0,.5); text-shadow: 0 1px 0 rgba(255,255,255,.35); cursor: pointer; }
.tc-btn:not(.on):not(.lock) { background: linear-gradient(180deg, #7a838c, #565e66 55%, #444a51); border-color: #22262b; color: #f1f1f1; box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 3px 0 #1a1d21, 0 5px 8px rgba(0,0,0,.5); text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.tc-btn.lock { background: linear-gradient(180deg, #5ab6ea, #2d82c0 55%, #1f6199); border-color: #0f2d47; color: #fff; font-size: 17px; box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 3px 0 #0c2236, 0 5px 8px rgba(0,0,0,.5); }
.tc-btn:hover { filter: brightness(1.1); }
.tcard.locked .tc-art svg { filter: grayscale(.6) brightness(.9); }
@media (max-width: 760px) { .tc-name { font-size: 15px; } .tc-art { height: 100px; } }

#start-cer { position: fixed; top: 78px; left: 50%; transform: translateX(-50%); z-index: 40; display: none; min-width: 330px; text-align: center; padding: 10px 26px 12px;
  background: linear-gradient(180deg, #3a2a1a, #231a10); border: 3px solid #c98a2e; border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.6), inset 0 0 0 2px #1a1209; }
#start-cer .sc-t { font: 800 12px 'Rajdhani', sans-serif; letter-spacing: .2em; color: #ffc247; }
#start-cer .sc-l { font: 700 19px 'Rajdhani', sans-serif; color: #f1e6d0; min-height: 24px; margin-top: 2px; }
#start-cer .sc-c { font: 900 52px 'Rajdhani', sans-serif; color: #fff; line-height: 1; text-shadow: 0 0 14px rgba(255,170,40,.6); }
#start-cer button { margin-top: 6px; padding: 3px 14px; border-radius: 8px; border: 2px solid #6b3d0e; background: linear-gradient(180deg, #ffd35a, #d9921e); font: 800 13px 'Rajdhani', sans-serif; color: #2b1a05; cursor: pointer; pointer-events: auto; }

#speed-fx { display: none !important; }


/* ===== Cartas v2 (referência: aço escuro, arte quente, chips de atributo, barra de nível) ===== */
.gcard { background: linear-gradient(180deg, #3a424d 0%, #232930 55%, #1a1e24 100%) !important; border: 4px solid #2c333c !important; padding: 12px 10px 10px; min-height: 500px;
  box-shadow: inset 0 0 0 2px #c4731f, inset 0 0 0 4px #1d1409, inset 0 0 40px rgba(0,0,0,.45), 0 12px 24px rgba(0,0,0,.7) !important; }
.gcard::before { content: ''; position: absolute; inset: 6px; border-radius: 12px; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 6px, transparent 6px 14px); }
.gcard.card-raro { box-shadow: inset 0 0 0 2px #38bdf8, inset 0 0 0 4px #10202a, inset 0 0 40px rgba(0,0,0,.45), 0 0 22px rgba(56,189,248,.35), 0 12px 24px rgba(0,0,0,.7) !important; }
.gcard.card-epico { box-shadow: inset 0 0 0 2px #ffb23f, inset 0 0 0 4px #2a1a08, inset 0 0 40px rgba(0,0,0,.45), 0 0 28px rgba(245,158,11,.55), 0 12px 24px rgba(0,0,0,.7) !important; }
.gc-plate { font-size: 24px !important; min-height: 62px !important; margin-bottom: -14px !important; }
.gcard .gc-art, .gcard.card-comum .gc-art, .gcard.card-raro .gc-art, .gcard.card-epico .gc-art { height: 200px !important; border: 4px solid #1e1710 !important;
  background: radial-gradient(circle at 50% 55%, #ffe2a8 0, #ffb25c 30%, rgba(255,150,60,0) 62%), linear-gradient(180deg, #e9a75e 0%, #c9702a 55%, #7d3a12 100%) !important;
  box-shadow: inset 0 0 36px rgba(40,15,0,.75), inset 0 0 0 2px rgba(255,200,130,.25) !important; }
.gcard .gc-art .gc-emoji, .gcard .gc-art span.gc-emoji { font-size: 104px !important; top: 46% !important; filter: drop-shadow(0 0 18px rgba(255,210,120,.65)) drop-shadow(0 10px 7px rgba(50,15,0,.7)); }
.gc-dust { position: absolute; border-radius: 50%; background: rgba(255,225,170,.35); filter: blur(3px); z-index: 1; }
.gc-dust.d1 { width: 70px; height: 24px; left: 6%; bottom: 14%; } .gc-dust.d2 { width: 90px; height: 28px; right: 4%; bottom: 8%; } .gc-dust.d3 { width: 40px; height: 14px; left: 36%; bottom: 22%; }
.gc-ribbon { font-size: 29px !important; margin-top: -16px !important; border-color: #d98a2a !important; background: linear-gradient(180deg, #1d2128, #0b0d11) !important; letter-spacing: .01em; }
.gc-stats { grid-template-columns: 1fr 1fr !important; gap: 6px !important; min-height: 0 !important; padding: 8px !important; margin-top: 9px !important; }
.gs { display: grid !important; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 7px; align-items: center; padding: 5px 7px; border-radius: 7px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); text-align: left; }
.gs-i { grid-row: 1 / 3; font-size: 22px !important; filter: grayscale(.2); }
.gs-l { grid-column: 2; font-size: 11.5px !important; color: #b8bcc6; white-space: normal !important; line-height: 1.05; }
.gs-v { grid-column: 2; font-size: 17px !important; line-height: 1; }
.gc-desc { font-size: 12px !important; color: #c7cad2 !important; min-height: 44px !important; margin-top: 8px !important; }
.gc-foot { align-items: center; gap: 8px; font-size: 11px !important; padding: 6px 4px 0 !important; }
.gc-lvl { flex: 1; display: flex; gap: 3px; padding: 3px; background: #101318; border: 2px solid #3a414b; border-radius: 4px; }
.gc-lvl i { flex: 1; height: 9px; background: #2a2f36; border-radius: 1px; }
.gc-lvl i.on { background: linear-gradient(180deg, #ffd16a, #d9921e); }
.gcard .btn-green { font-size: 18px !important; padding: 7px 0 5px !important; margin-top: auto !important; }
.gc-ribbon { font-size: 23px !important; white-space: nowrap; padding: 6px 4px 4px !important; }
.gs:only-child { grid-column: 1 / -1; }
.gs-l { font-size: 10.5px !important; }
.gcard { min-height: 470px; }

#btn-open-standings.on { filter: brightness(1.25); box-shadow: 0 0 0 2px #ffc247, 0 0 12px rgba(255,194,71,.6); }
#hud-standings { zoom: .9; z-index: 20; max-height: calc(60vh / var(--ui)); overflow: hidden; }

.gcard.owned { min-height: 0 !important; padding-bottom: 12px; cursor: default; }
.gcard.owned:hover { transform: none; filter: none; }
.gcard.owned .gc-art { height: 150px !important; }
.gcard.owned .gc-emoji { font-size: 76px !important; }

#screen-bivouac main > div { zoom: 0.9; }
#biv-panel #bivouac-tab-content { min-height: 260px; }

/* barras de saúde dos componentes: mesmo padrão segmentado do RPM */
.hp-seg { width: 100%; box-sizing: border-box; height: 13px; padding: 2px; gap: 2px; margin: 4px 0; }
.hp-seg.ok i.on { background: linear-gradient(180deg, #6ee7a0, #22c55e); box-shadow: 0 0 6px rgba(74,222,128,0.55); }
.hp-seg.mid i.on { background: linear-gradient(180deg, #ffd24a, #f59e0b); box-shadow: 0 0 6px rgba(245,158,11,0.55); }
.hp-seg.low i.on { background: linear-gradient(180deg, #ff6b4a, #ef4444); box-shadow: 0 0 6px rgba(239,68,68,0.6); }
.hp-seg i { background: #2a2f38; }

/* PWA / standalone: sem rolagem elástica, sem seleção, respeita a área segura (notch / barra home) */
html, body { overscroll-behavior: none; touch-action: manipulation; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
@media (display-mode: standalone), (display-mode: fullscreen) {
  #screen-menu, #screen-bivouac, #screen-race { padding-left: max(8px, calc(env(safe-area-inset-left) / var(--ui))) !important; padding-right: max(8px, calc(env(safe-area-inset-right) / var(--ui))) !important; padding-top: max(6px, calc(env(safe-area-inset-top) / var(--ui))) !important; }
}


/* ===== Upgrade tree (Bivouac > Upgrades) ===== */
.ut-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ut-col { display: flex; flex-direction: column; align-items: stretch; }
.ut-h { font: 800 17px 'Rajdhani', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #f3dfb4; text-align: center; margin-bottom: 8px; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.ut-node { background: linear-gradient(180deg, rgba(58,42,30,.95), rgba(34,24,17,.97)); border: 2px solid #7fd1c4; border-radius: 10px; padding: 9px 10px 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.5), 0 3px 8px rgba(0,0,0,.45); }
.ut-node.done { border-color: #5fb8a8; }
.ut-node.locked { border-color: #5a4a3a; opacity: .62; filter: saturate(.6); }
.ut-top { display: flex; gap: 8px; align-items: center; }
.ut-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5b4634, #2a1f16 75%); display: flex; align-items: center; justify-content: center; font-size: 17px; border: 1px solid rgba(255,214,150,.25); }
.ut-nm { font: 800 15px 'Rajdhani', sans-serif; color: #fff4dc; line-height: 1.1; }
.ut-lv { font-size: 11px; color: #f0b24a; margin-left: 4px; }
.ut-ef { font-size: 10.5px; color: #cdbfa5; line-height: 1.2; margin-top: 1px; }
.ut-pips { display: flex; gap: 3px; margin: 7px 0 5px 42px; }
.ut-pips i { width: 14px; height: 6px; border-radius: 1px; background: #1c1612; border: 1px solid #000; }
.ut-pips i.on { background: linear-gradient(180deg, #ffd061, #e8960f); box-shadow: 0 0 5px rgba(245,158,11,.5); }
.ut-st { font: 700 12px 'Rajdhani', sans-serif; margin-left: 42px; }
.ut-st.ok { color: #7fd1c4; } .ut-st.lock { color: #a8957c; font-size: 11px; }
.ut-buy { margin-left: 42px; width: calc(100% - 42px); padding: 4px 6px; border-radius: 7px; font: 800 11.5px 'Rajdhani', sans-serif; letter-spacing: .02em; color: #1c1005; background: linear-gradient(180deg, #ffd061, #e8860c); border: 1px solid #7c3b07; cursor: pointer; text-align: left; }
.ut-buy.poor { background: linear-gradient(180deg, #8b7a62, #5e5040); color: #e9dcc4; border-color: #2a2016; }
.ut-buy:hover { filter: brightness(1.08); }
.ut-link { height: 12px; width: 10px; margin: 0 auto; border-left: 3px solid #8a6d3b; border-right: 3px solid #8a6d3b; }
@media (max-width: 760px) { .ut-wrap { grid-template-columns: 1fr; } }


/* =====================================================================
   ESCALA DA INTERFACE (única implementação, PC e tablet)
   A UI é desenhada para uma tela lógica de referência de 1920x1080 (px CSS).
   --ui = min(largura/1920, altura/1080) é definido em JS (index.html) e cada raiz de UI
   (.ui-root) vira uma caixa lógica de (100vw/--ui) x (100vh/--ui) ajustada com
   transform: scale(--ui). Assim as janelas ocupam a mesma fração da tela em 16:9 e 4:3,
   sem regras específicas por aparelho. Unidades vh/vw dentro da UI usam calc(N vh / var(--ui)).
   ===================================================================== */
:root { --ui: 1; }
.ui-root {
  position: fixed !important; left: 0 !important; top: 0 !important; right: auto !important; bottom: auto !important;
  width: calc(100vw / var(--ui)) !important; height: calc(100vh / var(--ui)) !important;
  transform: scale(var(--ui)); transform-origin: 0 0;
}
#ui-top { z-index: 60; pointer-events: none; }
#loading-overlay, #error-banner { pointer-events: auto; }
#biv-panel { max-height: calc(62vh / var(--ui)) !important; }
#generic-modal-box { max-height: calc(92vh / var(--ui)) !important; }

/* componentes do rodapé da corrida: cartões retangulares onde cabem os nomes completos (PC e tablet) */
#screen-race > footer { max-width: 1200px !important; }
#screen-race > footer #hud-components-grid { flex: 1 1 0; min-width: 0; grid-template-columns: repeat(7, minmax(0, 1fr)) !important; gap: 5px !important; }
#screen-race > footer .gauge-panel { flex: 0 0 auto; width: 380px; min-width: 380px; }
/* cartões dos componentes: painel de aço vertical com cantoneiras de cobre, ilustração, etiqueta de nível e barra verde */
#hud-components-grid .comp-card {
  display: flex !important; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 3px; min-width: 0; position: relative; padding: 9px 7px 8px; text-align: center;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 2px, transparent 2px 5px), linear-gradient(180deg, #3b434d 0%, #262d34 55%, #1d2228 100%) !important;
}
#hud-components-grid .comp-card .cc { position: absolute; width: 15px; height: 15px; border: 3px solid #b0693a; z-index: 3; pointer-events: none; }
#hud-components-grid .comp-card .cc::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #e3a066; }
#hud-components-grid .comp-card .cc.tl { top: 1px; left: 1px; border-right: none; border-bottom: none; border-top-left-radius: 7px; } #hud-components-grid .comp-card .cc.tl::after { top: 2px; left: 2px; }
#hud-components-grid .comp-card .cc.tr { top: 1px; right: 1px; border-left: none; border-bottom: none; border-top-right-radius: 7px; } #hud-components-grid .comp-card .cc.tr::after { top: 2px; right: 2px; }
#hud-components-grid .comp-card .cc.bl { bottom: 1px; left: 1px; border-right: none; border-top: none; border-bottom-left-radius: 7px; } #hud-components-grid .comp-card .cc.bl::after { bottom: 2px; left: 2px; }
#hud-components-grid .comp-card .cc.br { bottom: 1px; right: 1px; border-left: none; border-top: none; border-bottom-right-radius: 7px; } #hud-components-grid .comp-card .cc.br::after { bottom: 2px; right: 2px; }
#hud-components-grid .comp-card .nm { font: 800 13px 'Rajdhani', sans-serif; letter-spacing: .04em; color: #e6dcc6; text-transform: uppercase; white-space: nowrap; text-shadow: 0 1px 0 rgba(0,0,0,.6); margin-top: 1px; }
#hud-components-grid .comp-card .art { height: 64px; display: flex; align-items: center; justify-content: center; margin: 1px 4px 2px; filter: drop-shadow(0 4px 3px rgba(0,0,0,.55)); }
#hud-components-grid .comp-card .row { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 2px; }
#hud-components-grid .comp-card .lv { font: 800 13px 'Rajdhani', sans-serif; color: #3a2c18; background: linear-gradient(180deg, #ecdcb4, #cdb581); border: 1.5px solid #6b5230; border-radius: 3px; padding: 2px 6px 0; transform: rotate(-3deg); box-shadow: 0 2px 3px rgba(0,0,0,.45); }
#hud-components-grid .comp-card .pct { font: 800 15px 'Rajdhani', sans-serif; text-shadow: 0 1px 0 rgba(0,0,0,.6); }
#hud-components-grid .comp-card .hp-seg { margin: 3px 0 0; }


/* toque: alvo de acerto de ~32 px reais mesmo com a UI reduzida (área invisível, não altera o visual) */
@media (pointer: coarse) {
  .ctl, .speed-btn, .profile-btn, .tab-btn, .tc-btn, .btn-orange, .btn-green, .btn-blue, .btn-pill, .ut-buy, #sc-skip, #btn-launch-next, #btn-open-cards, #btn-open-standings { position: relative; }
  .ctl::after, .speed-btn::after, .profile-btn::after, .tab-btn::after, .tc-btn::after, .btn-orange::after, .btn-green::after, .btn-blue::after, .btn-pill::after, .ut-buy::after, #sc-skip::after, #btn-launch-next::after, #btn-open-cards::after, #btn-open-standings::after {
    content: ''; position: absolute; left: calc(-0.5 * max(0px, 32px / var(--ui) - 100%)); right: calc(-0.5 * max(0px, 32px / var(--ui) - 100%));
    top: calc(-0.5 * max(0px, 32px / var(--ui) - 100%)); bottom: calc(-0.5 * max(0px, 32px / var(--ui) - 100%));
  }
}


/* =====================================================================
   MENU INICIAL: painel lateral de aço (referência: mockup) com a cena 3D à direita
   ===================================================================== */
.mside { position: relative; margin: 0 0 0 14px; width: 600px; max-height: calc(100% - 28px); display: flex; flex-direction: column; gap: 9px; padding: 20px 26px 40px;
  border-radius: 18px; border: 5px solid #14181d; overflow: visible;
  background: radial-gradient(120% 90% at 50% 0%, rgba(110,125,140,.28), rgba(0,0,0,0) 60%), linear-gradient(180deg, #3a434d 0%, #262d35 55%, #1d2329 100%);
  box-shadow: inset 0 0 0 2px #7d8894, inset 0 0 0 7px #161b20, 0 14px 34px rgba(0,0,0,.65);
  background-image: radial-gradient(circle at 12px 50%, #8d98a4 0 3px, #2a3037 4px, transparent 5px), radial-gradient(circle at calc(100% - 12px) 50%, #8d98a4 0 3px, #2a3037 4px, transparent 5px);
  background-size: 24px 130px, 24px 130px; background-repeat: repeat-y, repeat-y; background-position: left top, right top; background-color: #262d35; }
.mside::before { content: ''; position: absolute; inset: 0; border-radius: 13px; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(110,125,140,.28), rgba(0,0,0,0) 60%), linear-gradient(180deg, rgba(58,67,77,.0), rgba(0,0,0,.28)); }
.mside > * { position: relative; z-index: 1; }
.mc { position: absolute; width: 58px; height: 58px; z-index: 3; background: linear-gradient(135deg, #cc8648, #8a4a1e 70%, #5e2f10); border: 3px solid #2a1507; box-shadow: inset 0 2px 0 rgba(255,220,170,.4), 0 3px 6px rgba(0,0,0,.5); }
.mc::after { content: ''; position: absolute; inset: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe3b0, #8c5a2a 70%); }
.mc.tl { top: -12px; left: -12px; border-radius: 22px 6px 6px 6px; } .mc.tr { top: -12px; right: -12px; border-radius: 6px 22px 6px 6px; }
.mc.bl { bottom: -12px; left: -12px; border-radius: 6px 6px 6px 22px; } .mc.br { bottom: -12px; right: -12px; border-radius: 6px 6px 22px 6px; }

.m-logo { text-align: center; margin-top: 0; line-height: .9; }
.m-l1 { display: flex; align-items: center; justify-content: center; gap: 8px; font: 900 52px 'Rajdhani', sans-serif; letter-spacing: .02em; }
.m-l1 span { background: linear-gradient(180deg, #fff0b0 0%, #e8b54a 48%, #a8731a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 2px #3a2208; filter: drop-shadow(0 3px 0 rgba(0,0,0,.55)); }
.m-emb { flex: none; margin-top: 4px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
.m-l2, .m-l3 { font: 900 54px 'Rajdhani', sans-serif; letter-spacing: .01em; text-transform: uppercase; background: linear-gradient(180deg, #ffffff 0%, #d4dae0 50%, #8d98a3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 2px #1a1d21; filter: drop-shadow(0 3px 0 rgba(0,0,0,.55)); }
.m-l3 { margin-top: -2px; }
.m-sub { margin-top: 4px; font: 800 15px 'Rajdhani', sans-serif; letter-spacing: .08em; color: #f3e3c0; }

.m-trucks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* cartão em destaque (papel) */
.mfeat { grid-column: 1 / -1; position: relative; padding: 14px 18px 14px; border-radius: 6px; color: #1a140c;
  background: radial-gradient(120% 100% at 30% 20%, #f6ecce, #e7d6a6 70%, #d6c08a); border: 3px solid #4b3a22;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), inset 0 0 26px rgba(120,90,40,.35), 0 8px 18px rgba(0,0,0,.55); transform: rotate(-.4deg); }
.mfeat::before { content: ''; position: absolute; inset: -6px -3px auto auto; width: 62px; height: 26px; background: rgba(240,230,200,.55); border: 1px solid rgba(120,100,60,.5); transform: rotate(14deg); }
.mf-head { display: flex; align-items: center; gap: 12px; }
.mf-plate { flex: none; transform: rotate(-5deg); background: linear-gradient(180deg, #fffaf0, #eadfc0); border: 3px solid #3a2d1c; border-radius: 6px; padding: 3px 12px 2px; text-align: center; box-shadow: 0 3px 6px rgba(0,0,0,.4); }
.mf-plate b { display: block; font: 900 11px 'Rajdhani', sans-serif; letter-spacing: .1em; color: #c11b1b; line-height: 1; }
.mf-plate span { display: block; font: 900 34px 'Rajdhani', sans-serif; line-height: 1; color: #15100a; }
.mf-name { flex: 1; font: 800 25px 'Rajdhani', sans-serif; letter-spacing: .03em; text-transform: uppercase; color: #1d1710; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-drive { flex: none; padding: 3px 11px 1px; border: 3px solid #3a2d1c; border-radius: 6px; background: linear-gradient(180deg, #f4e6c2, #d9c58f); font: 800 20px 'Rajdhani', sans-serif; text-align: center; line-height: 1.05; }
.mf-drive small { display: block; font-size: 15px; font-weight: 800; }
.mf-art { position: relative; margin: 4px 0 6px; height: 128px; display: flex; align-items: center; justify-content: center; }
.mf-art img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(0,0,0,.35)); }
.mf-rows { display: flex; flex-direction: column; gap: 6px; }
.mf-row { display: flex; align-items: center; gap: 8px; }
.mf-row svg { flex: none; }
.mf-row > span { flex: none; width: 118px; font: 800 17px 'Rajdhani', sans-serif; letter-spacing: .03em; color: #3b2f1c; }
.mf-row > span b { color: #15100a; }
.mfeat .tc-seg { background: #1a1d21; border-color: #5b6068; }
.mfeat .tc-seg i { height: 15px; }
.mf-sel { margin-top: 8px; text-align: center; font: 900 16px 'Rajdhani', sans-serif; letter-spacing: .12em; color: #7a4a08; }
/* demais caminhões: botões compactos */
.msm { position: relative; padding: 8px 12px 10px; border-radius: 10px; border: 3px solid #14181d; text-align: center;
  background: linear-gradient(180deg, #4a535d, #333b44 60%, #2a3139); box-shadow: inset 0 0 0 2px #7d8894, inset 0 0 0 5px #161b20, 0 5px 10px rgba(0,0,0,.5); }
.msm .ms-name { font: 800 20px 'Rajdhani', sans-serif; letter-spacing: .03em; text-transform: uppercase; color: #f3f1ea; line-height: 1.05; min-height: 36px; display: flex; align-items: center; justify-content: center; }
.msm .ms-stats { font: 700 12.5px 'Rajdhani', sans-serif; color: #cdd2d8; margin: 2px 0 6px; letter-spacing: .03em; }
.msm .tc-btn { margin-top: 0; font-size: 17px; padding: 6px 8px 3px; }
.msm.locked .ms-name { opacity: .9; }

.m-actions { display: flex; flex-direction: column; gap: 9px; }
.m-start { width: 100%; padding: 11px 10px 8px; border-radius: 12px; border: 4px solid #5e2c06; cursor: pointer; font: 900 27px 'Rajdhani', sans-serif; letter-spacing: .04em; color: #fff; text-shadow: 0 2px 0 rgba(90,35,0,.8);
  background: linear-gradient(180deg, #ffb340 0%, #f26d0e 55%, #c94a08 100%); box-shadow: inset 0 3px 0 rgba(255,255,255,.4), inset 0 -4px 0 rgba(90,30,0,.35), 0 5px 0 #6b2f06, 0 10px 16px rgba(0,0,0,.5); }
.m-start:hover { filter: brightness(1.08); } .m-start:active { transform: translateY(2px); }
.m-row2 { display: flex; gap: 10px; }
.m-btn { flex: 1; padding: 8px 8px 5px; border-radius: 9px; cursor: pointer; font: 900 20px 'Rajdhani', sans-serif; letter-spacing: .05em; color: #f1f1f1; border: 3px solid #14181d; }
.m-btn.green { color: #05311c; background: linear-gradient(180deg, #4de09a, #19a867 60%, #108450); border-color: #0a4a2d; box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 4px 0 #0a3d26; }
.m-btn.dark { background: linear-gradient(180deg, #3e4650, #232a31); box-shadow: inset 0 2px 0 rgba(255,255,255,.18), 0 4px 0 #0e1114; }
.m-btn:hover { filter: brightness(1.1); }
.m-hint { text-align: center; font: 600 13px 'Inter', sans-serif; color: #c4cad1; letter-spacing: .01em; }

.m-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.m-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 5px; border-radius: 999px; font: 800 14px 'Rajdhani', sans-serif; letter-spacing: .03em; color: #e8e4da; cursor: pointer;
  background: linear-gradient(180deg, #2e353d, #1b2026); border: 2px solid #4b535c; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.m-chip.gold { color: #ffd56b; border-color: #8a6a22; background: linear-gradient(180deg, #4a3a14, #2a200a); }
.m-chip:hover { filter: brightness(1.15); }
.m-chip.seed { cursor: default; padding: 3px 4px 3px 10px; }
.m-chip.seed label { color: #ffb340; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.m-chip.seed input { width: 96px; background: transparent; border: none; outline: none; color: #fff; font: 600 13px monospace; }
.m-chip.seed button { padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.12); cursor: pointer; }

.mf-spec { margin-top: 7px; text-align: center; font: 800 12px 'Rajdhani', sans-serif; letter-spacing: .06em; color: #5a4526; }

/* ===== Cartas: ilustração SVG por carta + painel fixo de 4 atributos (referência: arte cartoon, faixa escura, 2x2) ===== */
.gc-illus { position: absolute; left: 50%; top: 50%; width: 92%; height: 92%; transform: translate(-50%, -52%); z-index: 2; filter: drop-shadow(0 8px 6px rgba(50,15,0,.55)); overflow: visible; }
.gc-mark { position: absolute; left: 8px; bottom: 8px; z-index: 4; padding: 2px 8px 1px; border-radius: 5px; border: 2px solid #1a1209; background: linear-gradient(180deg, #ffd35a, #d9921e); font: 900 13px 'Rajdhani', sans-serif; letter-spacing: .08em; color: #2b1a05; }
.gs-i { color: #e3e6ec; display: flex; align-items: center; justify-content: center; }
.gs-v.zero { color: #7d8490 !important; }
.gcard .gc-stats { padding: 7px !important; }
.gcard.owned .gc-illus { height: 96%; }


/* =====================================================================
   BIVOUAC no padrão do menu inicial: aço escuro, rebites, cantoneiras de cobre e botões laranja
   ===================================================================== */
.steel-panel { position: relative; border: 5px solid #14181d; border-radius: 16px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(110,125,140,.28), rgba(0,0,0,0) 60%), linear-gradient(180deg, #3a434d 0%, #262d35 55%, #1d2329 100%);
  box-shadow: inset 0 0 0 2px #7d8894, inset 0 0 0 7px #161b20, 0 14px 34px rgba(0,0,0,.65); }
.steel-panel::before { display: none !important; }
.steel-panel.rivets { background-image: radial-gradient(circle at 12px 50%, #8d98a4 0 3px, #2a3037 4px, transparent 5px), radial-gradient(circle at calc(100% - 12px) 50%, #8d98a4 0 3px, #2a3037 4px, transparent 5px),
  radial-gradient(120% 90% at 50% 0%, rgba(110,125,140,.28), rgba(0,0,0,0) 60%), linear-gradient(180deg, #3a434d 0%, #262d35 55%, #1d2329 100%);
  background-size: 24px 130px, 24px 130px, auto, auto; background-repeat: repeat-y, repeat-y, no-repeat, no-repeat; background-position: left top, right top, 0 0, 0 0; }
.steel-bar { border-radius: 14px; }
.mc.sm { width: 30px; height: 30px; border-width: 2px; }
.mc.sm::after { inset: 8px; }
.mc.sm.tl { top: -9px; left: -9px; border-radius: 12px 4px 4px 4px; } .mc.sm.tr { top: -9px; right: -9px; border-radius: 4px 12px 4px 4px; }
.mc.sm.bl { bottom: -9px; left: -9px; border-radius: 4px 4px 4px 12px; } .mc.sm.br { bottom: -9px; right: -9px; border-radius: 4px 4px 12px 4px; }
#biv-panel { overflow: visible !important; }
#biv-panel .mc.tl, #biv-panel .mc.tr, #biv-panel .mc.bl, #biv-panel .mc.br { width: 44px; height: 44px; }
#biv-panel .mc::after { inset: 12px; }
#biv-panel .biv-nav { margin: 4px 6px 0; border-bottom: 2px solid #11151a; }
#bivouac-tab-content { min-height: 0; margin: 0 6px 6px; }

#screen-bivouac header span.font-display, #screen-bivouac header .font-display.text-amber-400 { background: linear-gradient(180deg, #fff0b0 0%, #e8b54a 52%, #a8731a 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-stroke: 1px #3a2208; filter: drop-shadow(0 2px 0 rgba(0,0,0,.55)); }
#btn-launch-next { padding: 8px 20px 5px !important; border-radius: 11px !important; border: 3px solid #5e2c06 !important; font: 900 22px 'Rajdhani', sans-serif !important; letter-spacing: .04em; color: #fff !important; text-shadow: 0 2px 0 rgba(90,35,0,.8);
  background: linear-gradient(180deg, #ffb340 0%, #f26d0e 55%, #c94a08 100%) !important; box-shadow: inset 0 3px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(90,30,0,.35), 0 4px 0 #6b2f06, 0 8px 14px rgba(0,0,0,.5) !important; }
#btn-launch-next:hover { filter: brightness(1.08); } #btn-launch-next:active { transform: translateY(2px); }

.tab-btn { background: linear-gradient(180deg, #3e4650, #232a31) !important; border: 3px solid #14181d !important; color: #e8e4da !important; border-radius: 9px !important;
  font: 800 14px 'Rajdhani', sans-serif !important; letter-spacing: .03em; padding: 6px 12px 4px !important; box-shadow: inset 0 2px 0 rgba(255,255,255,.18), 0 3px 0 #0e1114; }
.tab-btn:hover { filter: brightness(1.12); }
.tab-btn.active { background: linear-gradient(180deg, #ffb340, #f26d0e 60%, #c94a08) !important; border-color: #5e2c06 !important; color: #2b1403 !important; box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 3px 0 #6b2f06; }

#bivouac-tab-content [class*="bg-white/5"], #bivouac-tab-content [class*="bg-black/40"] { background: linear-gradient(180deg, #2c343d, #212830) !important; border: 2px solid #4a525b !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 14px rgba(0,0,0,.35); }
#bivouac-tab-content .metal-dark, #bivouac-tab-content .comp-card { border-color: #4a525b !important; }
#bivouac-tab-content .btn-pill { background: linear-gradient(180deg, #3e4650, #232a31); border: 2px solid #14181d !important; color: #e8e4da; font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 12px !important; }
#bivouac-tab-content .btn-pill.active { background: linear-gradient(180deg, #ffb340, #f26d0e 60%, #c94a08) !important; border-color: #5e2c06 !important; color: #2b1403; }
#bivouac-tab-content .btn-orange { border: 3px solid #5e2c06 !important; background: linear-gradient(180deg, #ffb340, #f26d0e 60%, #c94a08) !important; color: #fff !important; font-family: 'Rajdhani', sans-serif; font-weight: 900; text-shadow: 0 1px 0 rgba(90,35,0,.8); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 3px 0 #6b2f06; }
#bivouac-tab-content .metal-dark { background: linear-gradient(180deg, #2c343d, #212830) !important; border: 2px solid #4a525b !important; border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 14px rgba(0,0,0,.35); }
#bivouac-tab-content .comp-card { background: linear-gradient(180deg, #2f3841, #232a32) !important; }
.ut-node { background: linear-gradient(180deg, #2f3841, #232a32) !important; }
.ut-ico { background: radial-gradient(circle at 35% 30%, #56606b, #232a31 75%) !important; }
