/* ==========================================
   ARCANE DEPTHS - Additional Styles
   ========================================== */

/* RUNE TOOLTIPS */
.rune-slot {
    cursor: pointer;
    transition: all 0.2s;
}

.rune-slot:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(123, 77, 255, 0.6);
}

.rune-tooltip {
    position: fixed;
    z-index: 10000;
    background: #05050a;
    border: 2px solid #7b4dff;
    padding: 15px;
    min-width: 200px;
    max-width: 280px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    font-family: 'Press Start 2P', monospace;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e1e35;
}

.tooltip-icon {
    font-size: 24px;
}

.tooltip-name {
    font-size: 11px;
    color: white;
}

.tooltip-desc {
    font-size: 9px;
    color: #b0b0c0;
    line-height: 1.6;
    margin-bottom: 10px;
}

.tooltip-rarity {
    font-size: 8px;
    text-align: center;
    padding: 5px;
    background: #151525;
}

.tooltip-rarity.rarity-common {
    color: #9e9e9e;
}

.tooltip-rarity.rarity-rare {
    color: #2196f3;
}

.tooltip-rarity.rarity-epic {
    color: #9c27b0;
}

.tooltip-rarity.rarity-legendary {
    color: #ffd700;
}

/* LOOT MODAL */
.loot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loot-content {
    background: #151525;
    border: 3px solid #ffd700;
    padding: 30px;
    text-align: center;
    max-width: 700px;
    /* Ensure modal is usable on smaller screens (shop/loot can be tall) */
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    width: min(700px, 92vw);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
    font-family: 'Press Start 2P', monospace;
}

.loot-content h2 {
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 25px;
}

.loot-options {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.loot-option {
    background: #0a0a12;
    border: 2px solid #1e1e35;
    padding: 25px;
    width: 220px;
    cursor: pointer;
    transition: all 0.2s;
}

.loot-option:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.option-type {
    font-size: 8px;
    color: #606080;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.option-icon {
    font-size: 48px;
    margin: 15px 0;
}

.option-name {
    font-size: 10px;
    color: white;
    margin-bottom: 10px;
}

.option-desc {
    font-size: 8px;
    color: #b0b0c0;
    line-height: 1.5;
    min-height: 30px;
}

.option-rarity {
    font-size: 8px;
    padding: 5px 10px;
    margin-top: 10px;
    background: #151525;
}

.loot-divider {
    font-size: 16px;
    color: #606080;
    padding: 0 10px;
}

.discard-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    padding: 10px 25px;
    background: transparent;
    border: 1px solid #606080;
    color: #606080;
    cursor: pointer;
}

.discard-btn:hover {
    border-color: #ff4444;
    color: #ff4444;
}

/* SWAP */
.new-rune-preview {
    background: #0a0a12;
    border: 1px solid #7b4dff;
    padding: 15px;
    margin-bottom: 20px;
}

.new-rune-preview span {
    font-size: 12px;
  line-height: 1.35;
    color: #9d7aff;
}

.new-rune-preview p {
    font-size: 9px;
    color: #b0b0c0;
    margin-top: 10px;
}

.swap-instruction {
    font-size: 10px;
    color: #b0b0c0;
    margin-bottom: 15px;
}

.swap-slots {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.swap-slot {
    background: #0a0a12;
    border: 2px solid #1e1e35;
    padding: 15px;
    width: 100px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
}

.swap-slot:hover {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.swap-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.swap-name {
    font-size: 8px;
    color: white;
}

.swap-desc {
    font-size: 7px;
    color: #606080;
}

/* STATS */
#stats-overlay {
    background: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.stats-content {
    background: #151525;
    border: 2px solid #7b4dff;
    padding: 30px;
    min-width: 400px;
    font-family: 'Press Start 2P', monospace;
}

.stats-content h2 {
    font-size: 16px;
    color: #9d7aff;
    margin-bottom: 25px;
    text-align: center;
}

.stats-content h3 {
    font-size: 10px;
    color: #b0b0c0;
    margin: 20px 0 10px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #0a0a12;
    font-size: 9px;
}

.stat-item span:first-child {
    color: #606080;
}

.stat-item span:last-child {
    color: white;
}

.stats-runes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.stat-rune {
    background: #0a0a12;
    border: 1px solid #5a2dcc;
    padding: 8px 12px;
    font-size: 9px;
    color: #9d7aff;
}

.close-stats-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    padding: 12px 30px;
    background: #7b4dff;
    border: none;
    color: white;
    cursor: pointer;
    margin-top: 25px;
    display: block;
    width: 100%;
}

.close-stats-btn:hover {
    background: #9d7aff;
}

/* ==========================
   CODEX (Bestiary + Achievements)
   ========================== */

.codex-content {
    background: rgba(20, 12, 35, 0.98);
    border: 2px solid #7b4dff;
    border-radius: 10px;
    width: min(1100px, 92vw);
    height: min(700px, 86vh);
    padding: 16px;
    box-shadow: 0 0 24px rgba(123, 77, 255, 0.4);
    display: flex;
    flex-direction: column;
}

.codex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.codex-header h2 {
    margin: 0;
}

.codex-close {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    padding: 8px 12px;
    background: rgba(123, 77, 255, 0.25);
    border: 1px solid #7b4dff;
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
}

.codex-close:hover {
    background: rgba(123, 77, 255, 0.4);
}

.codex-tabs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.codex-tab {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(123, 77, 255, 0.6);
    color: #fff;
    cursor: pointer;
    border-radius: 10px;
}

.codex-tab.active {
    background: rgba(123, 77, 255, 0.28);
    border-color: #7b4dff;
}

.codex-body {
    margin-top: 12px;
    flex: 1;
    overflow: hidden;
}

.codex-panel {
    display: none;
    height: 100%;
}

.codex-panel.active {
    display: block;
}

.codex-split {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 12px;
    height: 100%;
}

.codex-list {
    overflow: auto;
    padding-right: 6px;
    border-right: 1px solid rgba(123, 77, 255, 0.25);
}

.codex-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px;
    border: 1px solid rgba(123, 77, 255, 0.25);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.25);
}

.codex-entry:hover {
    border-color: rgba(123, 77, 255, 0.6);
}

.codex-entry.active {
    border-color: #7b4dff;
    background: rgba(123, 77, 255, 0.14);
}

.codex-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.codex-icon {
    font-size: 18px;
    width: 26px;
    text-align: center;
}

.codex-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.codex-meta {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    opacity: 0.9;
}

.codex-detail {
    overflow: auto;
    padding: 6px;
}

.codex-detail h3 {
    margin: 0 0 10px 0;
}

.codex-detail .detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.codex-detail .detail-card {
    border: 1px solid rgba(123, 77, 255, 0.25);
    border-radius: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
}

.achievements-list {
    overflow: auto;
    height: 100%;
    padding-right: 6px;
}

.achievement {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(123, 77, 255, 0.25);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.22);
}

.achievement.locked {
    opacity: 0.75;
}

.achievement .a-left {
    display: flex;
    gap: 10px;
    min-width: 0;
}

.achievement .a-icon {
    font-size: 18px;
    width: 26px;
    text-align: center;
}

.achievement .a-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    margin: 0 0 6px 0;
}

.achievement .a-desc {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    opacity: 0.9;
}

.achievement .a-progress {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    opacity: 0.9;
    white-space: nowrap;
}

.ad-toast {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 9999;
    background: rgba(20, 12, 35, 0.95);
    border: 1px solid #7b4dff;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 0 22px rgba(123, 77, 255, 0.35);
    max-width: 360px;
}

.ad-toast .t-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    margin: 0 0 6px 0;
}

.ad-toast .t-desc {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    opacity: 0.9;
}

@media (max-width: 780px) {
    .codex-split {
        grid-template-columns: 1fr;
    }
    .codex-list {
        border-right: none;
        border-bottom: 1px solid rgba(123, 77, 255, 0.25);
        padding-right: 0;
        padding-bottom: 10px;
    }
}


/* ==========================
   CODEX - RUN HISTORY
   ========================== */

.history-controls {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.history-controls input,
.history-controls select {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    padding: 10px 10px;
    border-radius: 8px;
    border: 1px solid rgba(123, 77, 255, 0.45);
    color: rgba(255,255,255,0.92);
    background: rgba(0,0,0,0.25);
    outline: none;
}

.history-controls input::placeholder {
    color: rgba(255,255,255,0.55);
}

#btn-history-clear {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    padding: 10px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 90, 90, 0.7);
    background: rgba(255, 90, 90, 0.15);
    color: rgba(255,255,255,0.92);
    cursor: pointer;
}

#btn-history-clear:hover {
    background: rgba(255, 90, 90, 0.25);
}

.history-summary {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    line-height: 1.6;
    color: rgba(255,255,255,0.78);
    padding: 8px 6px 10px 6px;
    border-bottom: 1px solid rgba(123, 77, 255, 0.25);
    margin-bottom: 10px;
}

.history-list {
    overflow: auto;
    height: calc(100% - 115px);
    padding-right: 6px;
}

.history-entry {
    border: 1px solid rgba(123, 77, 255, 0.25);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.25);
}

.history-entry:hover {
    border-color: rgba(123, 77, 255, 0.6);
}

.history-entry.active {
    border-color: #7b4dff;
    background: rgba(123, 77, 255, 0.14);
}

.history-entry .top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.history-entry .top .date {
    font-size: 10px;
    color: rgba(255,255,255,0.92);
}

.history-entry .top .ng {
    font-size: 10px;
    color: #ffd27a;
    white-space: nowrap;
}

.history-entry .bottom {
    font-size: 9px;
    color: rgba(255,255,255,0.70);
    line-height: 1.6;
}

.history-detail-box {
    border: 1px solid rgba(123, 77, 255, 0.25);
    border-radius: 10px;
    padding: 12px;
    background: rgba(0,0,0,0.20);
    height: 100%;
    overflow: auto;
}

.history-detail-box h3 {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.95);
}

.history-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 10px;
    line-height: 1.8;
    color: rgba(255,255,255,0.82);
}

.history-detail-grid .label {
    color: rgba(255,255,255,0.62);
}

.history-empty {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: rgba(255,255,255,0.72);
    padding: 12px;
}



/* =========================
   Forge Terminal (Demencial)
   ========================= */
.forge-content{
  width: min(1180px, 96vw);
max-height: 86vh;
  background: rgba(12,16,26,0.95);
  border: 2px solid rgba(120,180,255,0.35);
  box-shadow: 0 0 30px rgba(80,180,255,0.18);
  border-radius: 14px;
  padding: 14px;
  overflow: hidden;
}
.forge-header{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 6px;
}
.forge-info{ color:#cfe6ff; font-size: 14px; margin-bottom: 10px; opacity:0.9;}
.forge-split{ display:flex; gap:12px; }
.forge-left{ width: 32%; min-width: 220px; }
.forge-right{ flex:1; min-width: 320px; }
.forge-editor-row{ display:flex; gap:10px; align-items:stretch; }
.forge-rune-list{ display:flex; flex-direction:column; gap:8px; max-height: 44vh; overflow:auto; padding-right:6px;}
.forge-rune-btn{
  background: rgba(20,30,50,0.8);
  border:1px solid rgba(120,180,255,0.25);
  border-radius:10px;
  padding:8px 10px;
  color:#e9f4ff;
  text-align:left;
  cursor:pointer;
}
.forge-rune-btn.active{ outline:2px solid rgba(120,200,255,0.55); }
.forge-empty{ color:#9bb6cf; padding: 10px; opacity:0.9;}
.forge-editor{
  flex: 1 1 auto;
  width:100%;
  height: 40vh;
  resize: none;
  background: rgba(6,8,14,0.9);
  color:#dff2ff;
  border:1px solid rgba(120,180,255,0.25);
  border-radius: 12px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.35;
}
.forge-docs{
  flex: 0 0 460px;
  max-width: 48%;
  height: 44vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(10,12,18,0.75);
  border:1px solid rgba(120,180,255,0.18);
  border-radius: 12px;
  padding: 10px;
  color:#dff2ff;
  font-size: 12px;
}
.forge-docs h4{ margin: 6px 0 6px 0; font-size: 12px; color:#cfe6ff; opacity:0.95; }
.forge-docs .doc-section{ margin-bottom: 10px; }
.forge-docs .doc-code{ white-space: pre-wrap; word-break: break-word; background: rgba(0,0,0,0.22); border-radius: 10px; padding: 10px; margin-top:8px; border:1px solid rgba(120,180,255,0.14); }

.forge-docs .doc-kv{ color:#9bb6cf; margin-top: 4px; }
.forge-docs .doc-kv b{ color:#e9f4ff; }
.forge-cost{ color:#e9f4ff; font-size: 12px; opacity:0.95; margin-left:auto; }
.forge-actions{ display:flex; align-items:center; gap:10px; margin-top:10px; }
.forge-validate-output{ color:#cfe6ff; font-size: 13px; opacity:0.95;}
.forge-ok{ color:#72ff9b !important;}
.forge-bad{ color:#ff6f7a !important;}
.forge-hint{ color:#9bb6cf; font-size: 12px; margin-top: 8px; opacity:0.85;}
.forge-templates{ margin-top: 10px; display:flex; flex-direction:column; gap:6px; }
.forge-templates select{ width: 100%; padding: 8px; border-radius: 10px; border:1px solid rgba(120,180,255,0.25); background: rgba(20,30,50,0.9); color:#e9f4ff;}
.book-pre{ white-space: pre-wrap; color:#dff2ff; background: rgba(10,12,18,0.7); border:1px solid rgba(120,180,255,0.15); border-radius: 12px; padding: 12px;}
.book-page-btn{ width:100%; padding:8px 10px; margin-bottom:8px; border-radius:10px; border:1px solid rgba(120,180,255,0.2); background: rgba(20,30,50,0.8); color:#e9f4ff; cursor:pointer; text-align:left;}
.book-page-btn.active{ outline:2px solid rgba(120,200,255,0.55); }
.book-page-btn:disabled{ opacity:0.5; cursor:not-allowed; }


/* Forge Docs - paged reference */
.forge-docs-tabs{
  display:flex;
  gap:6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.forge-docs-tab{
  background: rgba(6,8,14,0.7);
  border:1px solid rgba(120,180,255,0.22);
  color:#dff2ff;
  padding: 6px 10px;
  border-radius: 10px;
  cursor:pointer;
  font-size: 12px;
  line-height: 1.1;
}
.forge-docs-tab.active{
  outline:2px solid rgba(120,200,255,0.45);
  background: rgba(12,16,26,0.85);
}
.forge-docs-body{ padding-right: 2px; }
.forge-docs-page{ display:none; }
.forge-docs-page.active{ display:block; }

.forge-docs a, .forge-docs button.forge-docs-link{
  color:#cfe6ff;
}
.forge-docs-link{
  display:block;
  width:100%;
  text-align:left;
  background: rgba(0,0,0,0.18);
  border:1px solid rgba(120,180,255,0.16);
  border-radius: 10px;
  padding: 8px 10px;
  margin: 6px 0;
  cursor:pointer;
}
.forge-docs .doc-block{
  padding: 10px 10px;
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(120,180,255,0.12);
  border-radius: 12px;
  margin: 10px 0;
}
.forge-docs .doc-title{
  font-size: 13px;
  margin: 0 0 6px 0;
  color:#e9f4ff;
}
.forge-docs .doc-muted{
  color:#9bb6cf;
  opacity:0.95;
  line-height: 1.35;
}

/* Responsive: stack editor + docs */
@media (max-width: 980px){
  .forge-content{ width: min(980px, 96vw); }
  .forge-editor-row{ flex-direction: column; }
  .forge-docs{ flex: 1 1 auto; max-width: 100%; height: 28vh; }
  .forge-editor{ height: 34vh; }
}

/* ===========================
   CHOICE OVERLAYS (Relics / Paths)
   =========================== */
.choice-content {
    background: #151525;
    border: 3px solid #7b4dff;
    padding: 24px;
    max-width: 820px;
    width: calc(100% - 40px);
    font-family: 'Press Start 2P', monospace;
    text-align: center;
    box-shadow: 0 0 50px rgba(0,0,0,0.75);
}

.choice-content h2 {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.choice-sub {
    font-size: 8px;
    color: #b0b0c0;
    margin: 0 0 18px 0;
    line-height: 1.5;
}

.choice-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 780px) {
    .choice-options { grid-template-columns: 1fr; }
}

.choice-card {
    background: #0a0a12;
    border: 2px solid #1e1e35;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    user-select: none;
}

.choice-card:hover {
    transform: translateY(-4px);
    border-color: #ffd700;
    box-shadow: 0 0 18px rgba(255,215,0,0.2);
}

.choice-icon {
    font-size: 34px;
    margin: 6px 0 10px 0;
}

.choice-name {
    font-size: 10px;
    color: #ffffff;
    margin-bottom: 8px;
}

.choice-desc {
    font-size: 8px;
    color: #b0b0c0;
    line-height: 1.5;
    min-height: 42px;
}

.choice-tag {
    font-size: 8px;
    margin-top: 10px;
    color: #7b4dff;
}

/* ===========================
   SETS PANEL
   =========================== */
.sets-panel {
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    color: #ddd;
}

.set-card {
    background: #0a0a12;
    border: 2px solid #1e1e35;
    padding: 14px;
    margin-bottom: 12px;
}

.set-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.set-title strong {
    font-size: 10px;
    color: #fff;
}

.set-count {
    color: #ffd700;
}

.set-pieces {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.set-piece {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.set-piece .ok { color: #44ff88; }
.set-piece .no { color: #ff6666; }

.set-bonuses {
    border-top: 1px solid #1e1e35;
    padding-top: 10px;
    color: #b0b0c0;
    line-height: 1.6;
}

.set-bonuses .active { color: #ffffff; }


/* ==========================================
   LANGUAGE SELECTOR (Settings)
   ========================================== */

.language-selector{
    margin-top: 18px;
}

.language-selector h3{
    display:flex;
    align-items:center;
    gap:10px;
    font-size: 20px;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.language-options{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
}

.language-btn{
    font-family: var(--font-pixel);
    font-size: 12px;
    padding: 10px 14px;
    background: rgba(30,30,53,0.9);
    border: 2px solid rgba(123,77,255,0.65);
    color: var(--text-secondary);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    display:flex;
    align-items:center;
    gap:8px;
    border-radius: 10px;
    user-select:none;
    outline: none;
}

.language-btn .flag{
    font-size: 14px;
    filter: drop-shadow(0 0 6px rgba(123,77,255,0.45));
}

.language-btn:hover{
    transform: translateY(-1px);
    border-color: rgba(157,122,255,0.95);
    color: var(--text-primary);
    box-shadow: 0 0 16px rgba(123,77,255,0.25);
}

.language-btn.active{
    background: rgba(123,77,255,0.22);
    border-color: rgba(123,77,255,1);
    color: var(--text-primary);
    box-shadow: 0 0 18px rgba(123,77,255,0.35);
}

.language-btn:active{
    transform: translateY(0px);
}

.language-selector p,
.language-selector .hint,
#languageReloadHint{
    margin: 8px 0 0 0;
    font-family: var(--font-pixel);
    font-size: 12px;
    color: rgba(255,255,255,0.65);
}

.language-hint{ line-height: 1.4; opacity: 0.85; }
