:root {
     --bg: #15100c;
     --card: #241b14;
     --line: #6b5646;
     --muted: #bfa48f;
     --accent: #b88a60;
     --sheet: #20160f;
     --sheetEdge: #0008;
    /* Variáveis do Novo Design */
     --glass-bg: rgba(30, 23, 18, 0.65);
     --glass-border: rgba(212, 175, 55, 0.3);
     --gold: #d4af37;
}
 * {
     box-sizing: border-box;
}
 html, body {
     -webkit-text-size-adjust: 100%;
     overflow-x: hidden;
}
 body {
     font: 16px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu;
     background: var(--bg);
     color: #f7f1e8;
     margin: 0;
}
/* ================================================================= ESTRUTURA PRINCIPAL ================================================================= */
 .app-wrap {
     max-width: 100%;
     margin: 0 auto;
}
 @media (min-width: 900px) {
     body {
         display: flex;
         align-items: flex-start;
         justify-content: center;
         padding: 32px;
    }
     .app-wrap {
         width: 445px;
         background: var(--bg);
         border-radius: 28px;
         border: 12px solid #0d0a08;
         box-shadow: 0 30px 120px rgba(0, 0, 0, .55), 0 4px 16px rgba(0, 0, 0, .35) inset;
         padding: 18px;
         padding-top: 0;
         position: relative;
    }
     .app-wrap:before {
         display: none;
    }
     .card_results, .copy {
         margin-left: 18px;
         margin-right: 18px;
    }
}
/* --- HERO SECTION --- */
 .app-hero-section {
     position: relative;
     height: 330px;
     background: #dcdcdcc7;
     overflow: hidden;
     margin-bottom: -70px;
     margin-left: -18px;
     margin-right: -18px;
     width: calc(100% + 36px);
}
 @media (min-width: 900px) {
     .app-hero-section {
         margin-left: 0;
         margin-right: 0;
         width: 100%;
         border-radius: 16px 16px 0 0;
    }
}
 .hero-bg {
     position: absolute;
     top: 0;
     height: 100%;
     width: calc(50% + 15px);
     background-size: cover;
     background-position: right top;
     transition: background-image 0.3s ease-in-out;
}
 .header-bg-left {
     left: 0;
     -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
     mask-image: linear-gradient(to right, black 85%, transparent 100%);
}
 .header-bg-right {
     right: 0;
     transform: scaleX(-1);
     -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
     mask-image: linear-gradient(to right, black 85%, transparent 100%);
}
 .hero-gradient-overlay {
     position: absolute;
     inset: 0;
     background: linear-gradient(to bottom, rgba(21,16,12,0.2) 40%, rgba(21,16,12,0.9) 90%, rgba(21,16,12,1) 100%);
     z-index: 2;
}
 .hero-logo-center {
     position: absolute;
     top: 60%;
     left: 50%;
     transform: translate(-50%, -30%);
     z-index: 10;
     width: 150px;
}
 .hero-logo-center img {
     width: 100%;
     height: auto;
     filter: drop-shadow(0 4px 6px #000);
}
/* --- BOTÃO MENU --- */
 .hero-menu-glass-btn {
     position: absolute;
     top: 20px;
     left: 20px;
     z-index: 25;
     width: 40px;
     height: 40px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.1);
     border: 1px solid rgba(255, 255, 255, 0.2);
     padding: 0;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     backdrop-filter: blur(4px);
     -webkit-backdrop-filter: blur(4px);
     transition: transform 0.2s, background 0.2s;
}
 .hero-menu-glass-btn:hover {
     background: rgba(255, 255, 255, 0.2);
     transform: scale(1.05);
}
 .hero-menu-glass-btn:active {
     transform: scale(0.95);
}
 .hero-menu-glass-btn svg {
     fill: #ffffff;
     width: 24px;
     height: 24px;
}
/* ================================================================= CONTROLES E SCROLLBAR (A MÁGICA ESTÁ AQUI) ================================================================= */
 .hero-controls-wrapper {
     position: relative;
     z-index: 30;
     padding: 0 5px;
}
 .controls-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 10px;
     align-items: stretch;
}
 .control-col {
     min-width: 0;
     display: flex;
     flex-direction: column;
     position: relative;
}
 .control-heading {
     font-family: 'Montserrat', sans-serif;
     font-weight: 700;
     font-size: 11px;
     color: #fff;
     text-transform: uppercase;
     margin-bottom: 6px;
     letter-spacing: 1px;
     text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
 .col-right .control-heading {
     text-align: right;
}
/* --- GLASS UI --- */
 .glass-picker {
     flex: 1;
     display: flex;
     flex-direction: column;
}
 .glass-btn {
     flex: 1;
     background: var(--glass-bg) !important;
     backdrop-filter: blur(10px);
     border: 1px solid var(--glass-border) !important;
     box-shadow: 0 8px 16px rgba(0,0,0,0.3) !important;
     padding: 10px !important;
     border-radius: 12px !important;
     display: flex;
     flex-direction: column;
     justify-content: center;
     height: auto !important;
}
 .glass-btn:hover {
     background: rgba(30, 23, 18, 0.8) !important;
     border-color: rgba(212, 175, 55, 0.6) !important;
}
 .glass-btn .lbl {
     font-size: 14px;
     font-weight: 700;
     color: #fff;
     line-height: 1.2;
     margin-bottom: 2px;
}
 .glass-btn .sub, .glass-btn .variate-nome-select {
     font-size: 11px;
     color: var(--muted);
     opacity: 0.9;
}
 .glass-btn .carets {
     color: #fff;
     font-size: 18px;
}
 .glass-btn .row {
     width: 100%;
     display: flex;
     align-items: center;
     justify-content: space-between;
}
/* --- SELECTS & SCROLL --- */
 .glass-toolbar {
     margin-top: 6px;
     flex-shrink: 0;
     width: 100%;
}
 .glass-toolbar .filters .inner {
     display: flex;
     align-items: center;
     gap: 3px;
     width: 100%;
    /* Scroll Nativo */
     overflow-x: auto;
     white-space: nowrap;
     padding-bottom: 2px;
    /* Configuração da Barra de Rolagem */
     scrollbar-width: thin;
     scrollbar-color: var(--gold) rgb(107 107 107 / 40%);
}
 .glass-toolbar .filters .inner::-webkit-scrollbar {
     height: 6px;
}
 .glass-toolbar .filters .inner::-webkit-scrollbar-track {
     background: rgba(0, 0, 0, 0.4);
     border-radius: 3px;
}
 .glass-toolbar .filters .inner::-webkit-scrollbar-thumb {
     background-color: var(--gold);
     border-radius: 3px;
}
 .glass-select.select-native {
     background-color: rgb(75 48 34 / 85%) !important;
     backdrop-filter: blur(5px);
     border: 1px solid rgba(212, 175, 55, 0.25) !important;
     color: #e0c389 !important;
     border-radius: 20px !important;
     padding: 8px 7px !important;
     padding-right: 12px !important;
     font-size: 11px !important;
     flex: 0 0 auto;
}
/* --- ESPELHAMENTO DA MÃE (ROW-REVERSE) --- */
/* O Pulo do Gato: Inverte a direção visual. O item 1 (Base) vai para a Direita. O item 3 (Mod) vai para a esquerda. O scroll funciona normalmente. */
 .col-right .glass-toolbar .filters .inner {
     flex-direction: row-reverse;
}

/* =================================================================
   CORREÇÃO: ALINHAMENTO DO TEXTO (PAI = ESQUERDA)
   ================================================================= */

/* Define o comportamento padrão para o container de nomes (Pai) */
.names {
    display: flex;
    flex-direction: column;
    
    /* Garante alinhamento à esquerda */
    text-align: left; 
    align-items: flex-start;
    
    /* Garante que o texto não "corra" para o centro se sobrar espaço */
    width: auto; 
}

/* (O código da Mãe #ss-g2 que já existe no seu arquivo vai 
    sobrescrever isso automaticamente para o lado direito, 
    então não precisa mexer na Mãe) */
    
 #ss-g2 .ss-btn .row {
     flex-direction: row !important;
}
 #ss-g2 .names {
     text-align: right !important;
     align-items: flex-end !important;
     margin-left: auto;
     width: 100%;
}
 #ss-g2 .carets {
     margin-right: 8px !important;
     margin-left: 0 !important;
     order: -1;
}
/* ================================================================= ESTILOS LEGADOS / FUNCIONAIS ================================================================= */
 h2 {
     margin: 6px 8px 16px 
}
 input, select, textarea, button {
     font-size: 16px;
}
 .ss-btn.piscando {
     animation: brilho 1.1s infinite alternate;
}
 @keyframes brilho {
     from {
         box-shadow: 0 0 4px rgba(223, 172, 111, 0.4);
         transform: scale(1.00);
    }
     to {
         box-shadow: 0 0 10px rgb(223 172 111);
         transform: scale(1.03);
    }
}
 .card_results {
     background: #140f0c;
     border: 1px solid #5c483a33;
     border-radius: 10px;
     padding: 12px;
     box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
     margin-top: 30px;
}
 .title {
     font-weight: 700;
     margin: 5px 0 8px 4px;
     text-align: center;
}
 .muted {
     color: #000 
}
 .list {
     margin-top: 8px 
}
 .list .placeholder-msg {
     color: var(--muted);
     font-size: 14px;
     text-align: center;
     padding: 20px;
}
 .item {
     display: flex;
     gap: 12px;
     align-items: center;
     padding: 12px 10px;
     border-bottom: 1px dashed #6b564655;
}
 .item img.thumb {
     width: 84px;
     height: 84px;
     border-radius: 12px;
     object-fit: cover;
     background: #0003;
     cursor: zoom-in;
     flex: 0 0 auto;
}
 .item .txt {
     min-width: 0;
     flex: 1;
}
 .item .name {
     font-weight: 800;
}
 .item .desc {
     color: var(--muted);
     font-size: 12px;
}
 .item .name-row {
     display: flex;
     align-items: center;
     justify-content: space-between;
     width: 100%;
     margin-bottom: 2px;
}
 .pct-col {
     margin-left: auto;
     display: flex;
     flex-direction: column;
     align-items: flex-end;
     line-height: 1;
}
 .pct-col .num {
     font-weight: 800;
     font-size: 18px;
}
 .pct-col .unit {
     font-size: 12px;
     opacity: .85;
}
 #res_list .item .pct-col {
     display: inline-flex;
     flex-direction: row;
     align-items: baseline;
     gap: 1px;
}
 .share-section {
     text-align: center;
     margin: 25px 0 30px;
}
 .btn-share-main {
     background: #dfac6f30;
     color: #fff;
     font-weight: 600;
     border: none;
     border-radius: 12px;
     padding: 14px 18px;
     font-size: 13px;
     display: inline-flex;
     align-items: center;
     gap: 5px;
     cursor: pointer;
     transition: background .3s;
}
 .icon-share {
     width: 22px;
     height: 22px;
}
  /* COPYRIGHT */
        .copy {
             font-size: 11px; text-align: center; margin-top: 10px;
             color: #b1a496; padding-bottom: 30px; width: 100%;
             border-top: 1px solid #333; padding-top: 20px;
        }
        .buttons_app { display: flex; justify-content: center; gap: 10px; margin-top: 10px; margin-bottom: 25px; }
        .buttons_app img { height: 35px; width: auto; transition: 0.2s; cursor: pointer; }
        .buttons_app img:hover { transform: scale(1.05); }
        .link-copy { color: #ccc; text-decoration: none; transition: color 0.2s; }
        .link-copy:hover { color: var(--gold); }
        .copy-social { width: 100%; margin-top: 15px; display: flex; justify-content: center; gap: 10px; }
        .item-social { width: 28px; height: 28px; transition: transform 0.2s; }
        .item-social:hover { transform: scale(1.1); }
/* SHEET */
 .sheet-backdrop {
     position: fixed;
     inset: 0;
     background: #000000cc;
     display: none;
     z-index: 50;
}
 .sheet {
     position: fixed;
     inset: 0;
     display: none;
     z-index: 60;
     align-items: flex-end;
     justify-content: center;
}
 .sheet .panel {
     width: 250px;
     max-width: 720px;
     background: var(--sheet);
     border-radius: 16px 16px 0 0;
     max-height: 90vh;
     display: flex;
     flex-direction: column;
     overflow: hidden;
     border: 1px solid #ffffff14;
}
 .sheet .head {
     display: flex;
     align-items: center;
     justify-content: flex-end;
     gap: 10px;
     padding: 10px 12px;
     border-bottom: 1px solid #ffffff15;
}
 .sheet .close {
     background: #2a2019;
     border: 1px solid #ffffff18;
     border-radius: 10px;
     padding: 10px 12px;
     cursor: pointer;
     color: #fff;
     margin-top: 30px;
}
 .sheet .group {
     padding: 6px 0 0 0;
}
 .sheet .group h4 {
     margin: 6px 12px;
     font-size: 13px;
     letter-spacing: .3px;
     color: #e6d2c0;
}
 .sheet .list {
     overflow: auto;
     -webkit-overflow-scrolling: touch;
}
 .sheet .opt {
     display: flex;
     align-items: center;
     gap: 12px;
     padding: 12px;
     border-bottom: 1px solid #ffffff0f;
     cursor: pointer;
}
 .sheet .opt:hover {
     background: #3a2d22;
}
 .sheet .tag {
     font-size: 11px;
     color: #e0c389;
     opacity: .9;
}
 .sheet .opt img.thumb {
     width: 64px;
     height: 64px;
     border-radius: 12px;
     object-fit: cover;
     background: #0003;
}
 .sheet.mae .opt img.thumb {
     transform: scaleX(-1);
}
 .sheet.mae .opt {
     flex-direction: row-reverse;
     justify-content: flex-start;
     text-align: right;
}
 .sheet.mae .opt div {
     text-align: right;
     margin-right: 10px;
}
 .sheet.mae .group h4 {
     text-align: right;
     margin-right: 10px;
}
/* LIGHTBOX */
 .lb-backdrop {
     position: fixed;
     inset: 0;
     background: rgba(0, 0, 0, .75);
     display: none;
     z-index: 80;
}
 .lb {
     position: fixed;
     inset: 0;
     display: none;
     z-index: 90;
     align-items: center;
     justify-content: center;
}
 .lb .frame {
     position: relative;
     width: 100%;
     height: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 16px 16px 72px;
}
 .lb .img {
     max-width: 100%;
     max-height: 100%;
     object-fit: contain;
     border-radius: 12px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
     background: #000;
}
 .lb .close, .lb .prev, .lb .next {
     position: absolute;
     width: 44px;
     height: 44px;
     border-radius: 999px;
     background: rgba(30, 23, 18, .9);
     color: #f7f1e8;
     border: 1px solid #ffffff22;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
}
 .lb .close {
     top: 16px;
     right: 16px;
}
 .lb .prev {
     top: 50%;
     left: 16px;
     transform: translateY(-50%);
}
 .lb .next {
     top: 50%;
     right: 16px;
     transform: translateY(-50%);
}
 .lb .caption {
     position: absolute;
     left: 0;
     right: 0;
     bottom: 10px;
     text-align: center;
     color: #f7f1e8;
     font-size: 14px;
     padding: 0 12px;
     text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}
/* SIDEBAR */
 .sidebar {
     position: fixed;
     top: 0;
     left: 0;
     height: 100%;
     width: 280px;
     background-color: #0e0b08;
     z-index: 1001;
     transform: translateX(-100%);
     transition: transform 0.3s ease-out;
     box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
     display: flex;
     flex-direction: column;
     color: #f5f5f5;
}
 .sidebar.open {
     transform: translateX(0);
}
 .sidebar-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.7);
     z-index: 1000;
     display: none;
}
 .sidebar-header {
     padding: 20px 15px;
     background: #1f1b17;
     border-bottom: 1px solid #333;
}
 .sidebar-header .close-btn {
     background: none;
     border: none;
     color: #dfac6f;
     font-size: 24px;
     position: absolute;
     top: 5px;
     right: 10px;
     cursor: pointer;
    
}
 .sidebar-header .welcome-msg {
     font-size: 1.1em;
     font-weight: 300;
     color: #ccc;
     margin-top: 10px;
}
 .sidebar-header .welcome-msg strong {
     color: #dfac6f;
}
 .sidebar-header .login-btn {
     background: #dfac6f;
     color: #15100c;
     border: none;
     padding: 10px 15px;
     border-radius: 5px;
     font-weight: 700;
     width: 100%;
     cursor: pointer;
     margin-top: 30px;
}
 .sidebar-header .logout-btn {
     background: #333;
     color: #ccc;
     border: 1px solid #555;
     padding: 8px 15px;
     border-radius: 5px;
     font-weight: 600;
     width: 100%;
     cursor: pointer;
     margin-top: 10px;
}
 .sidebar-nav {
     padding: 15px;
     display: flex;
     flex-direction: column;
     overflow-y: auto;
}
 .sidebar-nav h4 {
     color: #dfac6f;
     margin-top: 5px;
     margin-bottom: 10px;
     border-bottom: 1px solid #333;
     padding-bottom: 5px;
}
 .sidebar-nav a {
     color: #f5f5f5;
     text-decoration: none;
     padding: 10px 0;
     border-bottom: 1px solid #222;
     transition: color 0.2s;
}
 .sidebar-nav a:hover {
     color: #dfac6f;
}
 .sidebar-nav a:last-child {
     border-bottom: none;
}
/* MODAIS */
 .modal-reportar, .modal-share {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(0,0,0,0.6);
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 9999;
     backdrop-filter: blur(4px);
     pointer-events: none;
     visibility: hidden;
     opacity: 0;
     transition: visibility 0s, opacity 0.3s;
}
 .modal-reportar.active, .modal-share[style*="display: flex"] {
     pointer-events: auto;
     visibility: visible;
     opacity: 1;
}
 .modal-content, .modal-share-content {
     background: #fff;
     color: #15100c;
     border-radius: 10px;
     padding: 20px;
     width: 90%;
     max-width: 400px;
     box-shadow: 0 4px 20px rgba(0,0,0,0.3);
     font-family: system-ui, sans-serif;
     box-sizing: border-box;
}
 .modal-share-content {
     background: #1c1c1c;
     color: #fff;
     text-align: center;
}
 .modal-reportar h3, .modal-share-content h3 {
     margin-top: 0;
     color: #dfac6f;
     text-align: center;
}
 .modal-reportar textarea, .modal-reportar input {
     width: 100%;
     box-sizing: border-box;
     margin: 5px 0 15px 0;
     padding: 8px;
     border: 1px solid #ccc;
     border-radius: 6px;
     font-size: 14px;
}
 .modal-reportar .modal-buttons {
     display: flex;
     justify-content: space-between;
     gap: 10px;
}
 .modal-reportar button {
     flex: 1;
     padding: 10px;
     border: none;
     border-radius: 6px;
     font-weight: 600;
     cursor: pointer;
}
 .modal-reportar button#erro-enviar, .modal-reportar button#btn-do-login {
     background: #dfac6f;
     color: #fff;
}
 .modal-reportar button.cancelar {
     background: #ccc;
     color: #000;
}
 .share-opt {
     width: 100%;
     margin-bottom: 10px;
     background: #2a2a2a;
     color: #fff;
     border: none;
     border-radius: 8px;
     padding: 12px;
     font-size: 15px;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 10px;
     cursor: pointer;
     transition: background .25s;
}
 .share-opt:hover {
     background: #333;
}
 .btn-close-share {
     margin-top: 10px;
     width: 100%;
     padding: 10px;
     border: none;
     border-radius: 8px;
     background: #555;
     color: #fff;
     font-weight: 600;
     cursor: pointer;
}
/* OUTROS */
 #reportar-container {
     position: fixed;
     bottom: 20px;
     right: 20px;
     text-align: center;
     z-index: 9999;
     opacity: 0;
     pointer-events: none;
     transition: opacity 0.3s;
}
 #reportar-container.show {
     opacity: 1;
     pointer-events: auto;
}
 #btn-reportar-erro {
     background-color: #735019;
     color: white;
     border: none;
     border-radius: 50%;
     width: 60px;
     height: 60px;
     font-size: 24px;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
     cursor: pointer;
     transition: transform 0.2s, background-color 0.2s;
}
 #reportar-texto {
     font-size: 12px;
     margin-top: 6px;
     color: #be9e67;
     font-family: Arial, sans-serif;
}
 .img-icon-erro {
     width: 32px;
     height: 32px;
}
 .fav-btn {
     display: inline-flex;
     align-items: center;
     justify-content: flex-end;
     gap: 1px;
     cursor: pointer;
     margin-left: auto;
     padding: 3px 5px;
     background: #ffe0b1;
     transition: transform 0.1s;
     user-select: none;
     border-radius: 999px;
}
 .fav-btn:active {
     transform: scale(0.95);
}
 .fav-icon {
     width: 18px;
     height: 18px;
     fill: none;
     stroke: #5a5a5a;
     stroke-width: 2;
     transition: fill 0.3s, stroke 0.3s;
     margin-bottom: -2px;
}
 .fav-text {
     font-size: 0.75rem;
     color: #4a4a4a;
     font-weight: 500;
     white-space: nowrap;
}
 .fav-btn.ativo .fav-icon {
     fill: #ef4444;
     stroke: #ef4444;
     animation: heartPulse 0.4s ease-out;
}
 @keyframes heartPulse {
     0% {
         transform: scale(1);
    }
     50% {
         transform: scale(1.3);
    }
     100% {
         transform: scale(1);
    }
}
 #global-loader {
     position: fixed;
     inset: 0;
     background: #15100c;
     z-index: 99999;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     color: #fff;
}
 #global-loader .spinner {
     width: 50px;
     height: 50px;
     border: 4px solid rgba(255, 255, 255, 0.2);
     border-top-color: #ceaf68c2;
     border-radius: 50%;
     animation: spin 0.7s linear infinite;
     margin-bottom: 10px;
}
 @keyframes spin {
     to {
         transform: rotate(360deg);
    }
}
 .loading-text {
     font-size: 14px;
     opacity: 0.7;
}
 .tooltip-onboard {
     position: absolute;
     background: rgba(21, 16, 12, 0.95);
     color: #dfac6f;
     border: 1px solid #dfac6f;
     border-radius: 10px;
     padding: 8px 12px;
     font-size: 13px;
     font-weight: 500;
     text-align: center;
     box-shadow: 0 0 8px rgba(223, 172, 111, 0.4);
     animation: fadeInOut 8s ease-in-out forwards;
     z-index: 50;
     max-width: 160px;
}
 .tooltip-onboard::after {
     content: "";
     position: absolute;
     bottom: -8px;
     left: 50%;
     transform: translateX(-50%);
     border-width: 8px;
     border-style: solid;
     border-color: rgba(21, 16, 12, 0.95) transparent transparent transparent;
}
 @keyframes fadeInOut {
     0% {
         opacity: 0;
         transform: translateY(-10px);
    }
     10% {
         opacity: 1;
         transform: translateY(0);
    }
     90% {
         opacity: 1;
         transform: translateY(0);
    }
     100% {
         opacity: 0;
         transform: translateY(-10px);
    }
}
 .select-native {
     -webkit-appearance: none;
     -moz-appearance: none;
     appearance: none;
     background-image: url("data:image/svg+xml;
    charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Cpath%20fill%3D%22%23CCC%22%20d%3D%22M6%209l4-4H2z%22%2F%3E%3C%2Fsvg%3E");
     background-repeat: no-repeat;
     background-position: right 8px center;
     background-size: 10px;
     padding-right: 25px !important;
}
 select::-ms-expand {
     display: none;
}

/* -------------------------------- GAME.PHP ----------------------------------------- */

 /* MOLDURA CELULAR */
        .phone-frame {
            background-color: var(--bg);
            width: 100%; max-width: 420px; 
            height: auto; min-height: 80vh; 
            border-radius: 32px;
            box-shadow: 0 0 0 10px #1a1614, 0 30px 60px rgba(0,0,0,0.8);
            overflow: hidden; position: relative; display: flex; flex-direction: column;
            border: 1px solid #333;
        }

        /* STAGE */
        .game-stage {
            width: 100%; aspect-ratio: 1 / 1; flex: none; position: relative;
            border-bottom: 2px solid var(--gold);
            background: radial-gradient(circle at center bottom, #3d3228 0%, var(--bg) 70%);
            z-index: 1;
        }

        /* BOTÃO VOLTAR (DIREITA) */
        .hero-menu-glass-btn {
            position: absolute; 
            top: 20px; 
            right: 20px; 
            left: auto;
            z-index: 25;
            width: 40px; height: 40px; border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
            backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
            transition: transform 0.2s, background 0.2s;
            color: #fff;
        }
        .hero-menu-glass-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); }
        .hero-menu-glass-btn:active { transform: scale(0.95); }
        .hero-menu-glass-btn svg { fill: #ffffff; width: 24px; height: 24px; }

        /* IMAGEM DO CAVALO */
        .image-container { width: 100%; height: 100%; position: relative; }
        .horse-img {
            position: absolute; top: 0; left: 0; width: 100%; height: 100%;
            object-fit: contain; object-position: center center;
            transition: opacity 0.6s ease-in-out;
        }
        #img-base { z-index: 1; opacity: 1; }
        #img-overlay { z-index: 2; opacity: 0; }

        /* BADGE */
        .badge-container {
            position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%);
            z-index: 10; display: flex; align-items: center; gap: 10px;
            width: max-content; max-width: 98%;
        }

        .result-badge {
            background-color: var(--gold); color: #15100c;
            padding: 8px 20px; border-radius: 99px;
            font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.5); border: 2px solid #fff;
            text-align: center; min-width: 120px;
            white-space: normal; overflow-wrap: break-word; line-height: 1.1;
        }

        /* BOTÃO FAVORITO */
        .fav-btn-pill {
            background-color: #fff;
            height: 42px; padding: 0 12px 0 10px; border-radius: 99px;
            display: none; align-items: center; justify-content: center; gap: 6px;
            border: 2px solid var(--gold); box-shadow: 0 4px 12px rgba(0,0,0,0.5);
            cursor: pointer; transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
            flex-shrink: 0;
        }
        .fav-btn-pill:active { transform: scale(0.95); }
        .fav-icon { width: 20px; height: 20px; fill: none; stroke: #888; stroke-width: 2; transition: all 0.3s; }
        .fav-count { font-size: 0.9rem; font-weight: 700; color: #555; min-width: 10px; text-align: center; }
        
        .fav-btn-pill.active { border-color: var(--heart-red); background-color: #fff0f0; }
        .fav-btn-pill.active .fav-icon { fill: var(--heart-red); stroke: var(--heart-red); animation: pulse 0.4s ease-out; }
        .fav-btn-pill.active .fav-count { color: var(--heart-red); }
        @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

        /* CONTROLES */
        .controls-wrapper {
            flex: 1; width: 100%; display: flex; flex-direction: column;
            align-items: center; justify-content: flex-start;
            padding: 40px 20px 20px 20px; background-color: var(--bg);
        }

        .summary-text { text-align: center; color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; margin-bottom: 20px; }

        .genetics-box {
            background-color: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-left: 3px solid var(--gold);
            border-radius: 8px; padding: 12px 15px; margin-bottom: 25px;
            width: 100%; font-size: 0.85rem; color: #e5e5e5; line-height: 1.5; text-align: left;
        }
        .genetics-box h4 { margin: 0 0 6px 0; color: var(--gold); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
        .genetics-box p { margin: 0 0 8px 0; }
        .geno-tag { background: #2a221b; color: var(--gold); border: 1px solid #4a3b32; padding: 1px 6px; border-radius: 4px; font-family: monospace; font-weight: bold; margin-right: 5px; }

        /* --- BOTÕES DE GENÓTIPO (QUADRADOS) --- */
        .slots-container { 
            display: flex; 
            gap: 10px; 
            justify-content: space-between; 
            width: 100%; 
            margin-bottom: 30px; 
            padding: 0 5px;
        }

        .slot-wrapper {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 23%; 
        }

        .gene-slot {
            width: 100%;
            aspect-ratio: 1 / 1; 
            background: rgba(255, 255, 255, 0.05); 
            border: 1px solid rgba(223, 172, 111, 0.3); 
            border-radius: 16px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.2s ease;
            padding: 4px;
            position: relative;
        }

        .gene-slot:active { transform: scale(0.96); background: rgba(255, 255, 255, 0.1); }

        .gene-slot.filled { 
            border-color: var(--gold); 
            background: rgba(30, 23, 18, 0.9); 
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }

        .slot-val { 
            font-size: 2rem; 
            font-weight: 400; 
            color: #fff; 
            line-height: 1;
            margin-bottom: 4px;
        }

        .slot-desc {
            font-size: 0.55rem;
            color: #ccc;
            text-transform: uppercase;
            text-align: center;
            font-weight: 600;
            line-height: 1.1;
            max-width: 100%;
        }

        .slot-category {
            margin-top: 8px;
            font-size: 0.65rem;
            color: var(--gold);
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 700;
            text-align: center;
        }

/* ACTIONS ROW */
        .actions-row { display: flex; gap: 10px; width: 100%; margin-top: 10px; margin-bottom: 30px; }
        .btn-action {
            flex: 1; background: transparent; color: var(--text-muted);
            border: 1px solid #444; padding: 12px; border-radius: 10px;
            font-size: 0.9rem; font-weight: 600; cursor: pointer;
            display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s;
        }
        .btn-action:hover { border-color: var(--gold); color: #fff; background: rgba(255,255,255,0.05); }
        .btn-primary { border-color: var(--gold); color: var(--gold); background: rgba(223, 172, 111, 0.1); }
        .btn-primary:hover { background: rgba(223, 172, 111, 0.2); }

        /* NAV BUTTONS */
        .nav-buttons-container {
            display: flex; flex-direction: column; gap: 10px; width: 100%; margin-bottom: 30px;
        }
        .btn-nav-big {
            width: 100%;
            background: linear-gradient(135deg, #2a221b 0%, #1f1814 100%);
            border: 1px solid #443a33;
            color: var(--text-main);
            padding: 15px;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.2s;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            text-decoration: none;
            box-shadow: 0 4px 6px rgba(0,0,0,0.2);
        }
        .btn-nav-big:hover {
            border-color: var(--gold);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(223, 172, 111, 0.15);
            color: var(--gold);
        }
        .btn-nav-big svg { width: 20px; height: 20px; fill: currentColor; }


/* MODAL de seleção dos genes*/
        .modal-backdrop {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.6); z-index: 1000; 
            display: none; justify-content: center; align-items: flex-end;
        }
        .modal-backdrop.open { display: flex; }
        .modal-content {
            background: #1f1b17; width: 100%; max-width: 420px; 
            border-radius: 20px 20px 0 0; padding: 25px 20px 40px 20px;
            box-shadow: 0 -10px 50px rgba(0,0,0,0.9); 
            border-top: 1px solid #444; animation: slideUp 0.25s ease-out;
        }
        .modal-title { text-align: center; font-size: 1rem; font-weight: 600; margin-bottom: 20px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
        .options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
        .opt-btn {
            background: #2a221b; color: #fff; border: 1px solid #444; padding: 15px 0; border-radius: 10px;
            font-size: 1.4rem; font-weight: 700; cursor: pointer; text-align: center; position: relative; overflow: hidden; transition: 0.1s;
        }
        .opt-btn span { display: block; font-size: 0.65rem; font-weight: normal; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; }
        .opt-btn.selected { border-color: var(--gold); background: #3d2f24; box-shadow: 0 0 12px var(--gold-glow); }
        .opt-btn.selected::after {
            content: '✔'; position: absolute; top: 5px; right: 7px; font-size: 14px; color: var(--gold); font-weight: bold;
        }
        
        .opt-E { color: #fff; } .opt-e { color: #fca5a5; }
        .opt-A { color: #fdba74; } .opt-Cr { color: #fde047; }
        .opt-Rn { color: #d1d5db; } .opt-D { color: #fcd34d; }
        .opt-TO { color: #fff; }
        .opt-btn.selected.opt-E, .opt-btn.selected.opt-e, .opt-btn.selected.opt-A, .opt-btn.selected.opt-Cr, .opt-btn.selected.opt-Rn, .opt-btn.selected.opt-D, .opt-btn.selected.opt-G { filter: brightness(1.1); }

        @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

        /* RESPONSIVIDADE */
        @media (max-width: 480px) {
            body { padding: 0; align-items: flex-start; background-color: #15100c; }
            .phone-frame { max-width: 100%; min-height: 100vh; border-radius: 0; border: none; box-shadow: none; }
            .game-stage { aspect-ratio: auto; height: 45vh; }
            .modal-content { max-width: 100%; }
        }
/* -------------------------------- GAME.PHP ----------------------------------------- */