/* ============================================================
   NoteShelf — style.css  (Luxury Art Deco · Gold & Obsidian)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;900&family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --gold:        #FFD700;
  --gold-light:  #FFE97A;
  --gold-dim:    #B8960C;
  --gold-muted:  rgba(255,215,0,0.12);
  --gold-glow:   rgba(255,215,0,0.28);
  --obsidian:    #07060A;
  --ink:         #0D0B12;
  --ink-mid:     #141219;
  --ink-light:   #1C1924;
  --ink-border:  #2A2638;
  --ink-hover:   #221F30;
  --cream:       #F0E6CA;
  --red:         #ff6b6b;
  --r-sm:  5px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  background-color: var(--obsidian);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -5%,  rgba(255,215,0,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 55% 40% at 90% 100%, rgba(255,215,0,0.04) 0%, transparent 60%),
    repeating-linear-gradient(0deg,  transparent, transparent 39px, rgba(255,215,0,0.022) 39px, rgba(255,215,0,0.022) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,215,0,0.016) 39px, rgba(255,215,0,0.016) 40px);
  color: var(--gold);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content { flex: 1 0 auto; }

/* ── Scrollbar ── */
::-webkit-scrollbar            { width: 5px; height: 5px; }
::-webkit-scrollbar-track      { background: var(--ink); }
::-webkit-scrollbar-thumb      { background: var(--gold-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover{ background: var(--gold); }

/* ════════════════════════════════════════
   UPDATE LOGS MODAL
════════════════════════════════════════ */
#update-logs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,4,10,0.82);
  backdrop-filter: blur(6px);
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#update-logs-overlay.open {
  opacity: 1;
  pointer-events: all;
}
#update-logs-modal {
  width: min(860px, 92vw);
  height: min(640px, 88vh);
  background: var(--ink-mid);
  border: 1px solid rgba(184,150,12,0.45);
  border-radius: var(--r-lg);
  box-shadow: 0 32px 100px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,215,0,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
#update-logs-overlay.open #update-logs-modal {
  transform: scale(1) translateY(0);
}
#update-logs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,215,0,0.02));
  border-bottom: 1px solid var(--ink-border);
  flex-shrink: 0;
}
#update-logs-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
#update-logs-title svg { color: var(--gold-dim); }
#update-logs-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--ink-border);
  background: rgba(255,255,255,0.04);
  color: var(--gold-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
#update-logs-close:hover { border-color: var(--gold-dim); color: var(--gold); background: var(--gold-muted); }
#update-logs-frame {
  flex: 1;
  border: none;
  width: 100%;
  background: #fff;
}

/* ════════════════════════════════════════
   HEADINGS
════════════════════════════════════════ */
h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(20px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 4px;
  text-shadow: 0 0 40px var(--gold-glow), 0 2px 6px rgba(0,0,0,0.9);
  margin: 18px 0 4px 158px;
  padding-top: 62px;
}
h4 {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 7px;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin: 0 0 14px 160px;
  opacity: 0.7;
}

/* ════════════════════════════════════════
   TOP BAR
════════════════════════════════════════ */
#top-bar {
  position: fixed;
  top: 8px; left: 8px;
  width: auto;
  min-width: 320px;
  height: 50px;
  background: linear-gradient(135deg, var(--ink-mid), var(--ink));
  border: 1px solid rgba(184,150,12,0.45);
  border-radius: var(--r-xl);
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 10px;
  z-index: 2000;
  box-shadow: 0 4px 24px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,215,0,0.06);
  gap: 10px;
}
#top-buttons-auth { display: flex; gap: 6px; align-items: center; }
#profile          { display: flex; align-items: center; gap: 8px; }

#username-display {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
  display: none;
}
#user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  object-fit: cover;
  display: none;
}

/* ── Top-right (Update Logs) ── */
#top-buttons-main {
  position: fixed;
  top: 14px; right: 24px;
  z-index: 2100;
}

/* ── Shared top button style ── */
.top-btn {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 30px;
  border: 1px solid rgba(184,150,12,0.55);
  background: rgba(255,215,0,0.055);
  color: var(--gold);
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-btn svg { flex-shrink: 0; }
.top-btn:hover {
  background: linear-gradient(135deg, var(--gold), #D4A017);
  color: var(--obsidian);
  border-color: var(--gold);
  box-shadow: 0 0 18px var(--gold-glow);
  transform: translateY(-1px);
}
.top-btn:active { transform: translateY(0); }

/* ════════════════════════════════════════
   SEARCH
════════════════════════════════════════ */
#search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 14px 0 12px 158px;
}
#search-icon {
  position: absolute;
  left: 14px;
  color: var(--gold-dim);
  pointer-events: none;
}
#search-bar {
  padding: 10px 20px 10px 36px;
  width: 230px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 30px;
  border: 1px solid rgba(184,150,12,0.45);
  background: var(--ink-mid);
  color: var(--gold);
  outline: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: all 0.28s ease;
}
#search-bar::placeholder { color: var(--gold-dim); font-style: italic; opacity: 0.6; }
#search-bar:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.1);
}

/* ════════════════════════════════════════
   CATEGORY SIDEBAR
════════════════════════════════════════ */
#category-sidebar {
  position: fixed;
  left: 0; top: 78px;
  width: 54px;
  height: calc(100vh - 90px);
  background: linear-gradient(180deg, var(--ink-mid), var(--ink));
  border-right: 1px solid var(--ink-border);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) var(--ink);
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 1500;
  box-shadow: 4px 0 20px rgba(0,0,0,0.4);
}
#category-sidebar:hover { width: 190px; }
#category-sidebar::-webkit-scrollbar       { width: 3px; }
#category-sidebar::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

.category-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 7px 8px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-dim);
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.22s ease;
  gap: 0;
}
.category-button:hover {
  background: rgba(255,215,0,0.07);
  border-color: rgba(184,150,12,0.35);
  color: var(--gold);
  box-shadow: inset 3px 0 0 var(--gold-dim);
}
.category-button.active {
  background: rgba(255,215,0,0.1);
  border-color: rgba(184,150,12,0.5);
  color: var(--gold);
  box-shadow: inset 3px 0 0 var(--gold);
}

.cat-icon {
  flex-shrink: 0;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-icon svg { width: 16px; height: 16px; }

.category-text {
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.18s ease 0.06s;
  overflow: hidden;
}
#category-sidebar:hover .category-text { opacity: 1; }

/* ════════════════════════════════════════
   GAME GRID
════════════════════════════════════════ */
#game-list {
  margin-left: 158px;
  padding: 10px 20px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.game-button {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 148px !important;
  height: 172px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--ink-border) !important;
  border-radius: var(--r-md) !important;
  cursor: pointer;
  background: var(--ink-mid) !important;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(0,0,0,0.55) !important;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), border-color 0.28s, box-shadow 0.28s !important;
  min-width: unset !important;
}
.game-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(5,4,10,0.9) 100%);
  border-radius: var(--r-md);
  z-index: 1;
}
.game-button:hover {
  transform: translateY(-5px) !important;
  border-color: var(--gold-dim) !important;
  box-shadow: 0 14px 36px rgba(255,215,0,0.18), 0 0 0 1px rgba(184,150,12,0.4) !important;
}
.game-button img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: var(--r-md) !important;
  transition: transform 0.4s ease;
}
.game-button:hover img { transform: scale(1.06); }
.game-button > div:not(.compat-tooltip) {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  padding: 8px 10px !important;
  font-family: 'Cinzel', serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px !important;
  text-align: center !important;
  color: var(--cream) !important;
  text-shadow: 0 1px 5px rgba(0,0,0,0.95) !important;
  margin: 0 !important;
}

/* ════════════════════════════════════════
   COMPATIBILITY TOOLTIP
════════════════════════════════════════ */
.compat-tooltip {
  position: fixed;
  background: linear-gradient(135deg, var(--ink-mid), var(--ink));
  border: 1px solid rgba(184,150,12,0.6);
  border-radius: var(--r-md);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99999;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,215,0,0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0.3s;
}
.compat-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  animation: compatPop 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes compatPop {
  0%   { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.88); }
  60%  { opacity: 1; transform: translateX(-50%) translateY(-3px) scale(1.04); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1); }
}
.compat-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(184,150,12,0.6);
}
.compat-icon {
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.compat-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.compat-sep {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--gold-dim);
  opacity: 0.5;
}

/* ════════════════════════════════════════
   AUTH POPUP
════════════════════════════════════════ */
#auth-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 5000;
  background: linear-gradient(160deg, var(--ink-mid), var(--ink));
  border: 1px solid rgba(184,150,12,0.45);
  border-radius: var(--r-lg);
  padding: 34px;
  color: var(--gold);
  box-shadow: 0 28px 80px rgba(0,0,0,0.85);
  min-width: 300px;
  display: none;
}
#auth-box h2 { font-family: 'Cinzel Decorative', serif; font-size: 18px; letter-spacing: 2px; margin-bottom: 20px; }
#auth-username, #auth-password {
  width: 100%; padding: 10px 14px; margin: 6px 0;
  font-family: 'EB Garamond', serif; font-size: 15px;
  border-radius: var(--r-sm); border: 1px solid var(--ink-border);
  background: var(--ink); color: var(--cream); outline: none;
  display: block; transition: border-color 0.2s;
}
#auth-username:focus, #auth-password:focus { border-color: var(--gold-dim); }

.auth-file-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 6px;
  padding: 8px 14px;
  border-radius: 30px;
  border: 1px solid var(--ink-border);
  background: rgba(255,215,0,0.04);
  color: var(--gold-dim);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-file-label:hover { border-color: var(--gold-dim); color: var(--gold); }
.auth-file-label input { display: none; }

#avatar-preview { display: none; width: 50px; height: 50px; border-radius: 50%; margin: 6px 0; border: 1px solid var(--gold-dim); }
#auth-message { font-size: 13px; color: var(--red); margin-top: 10px; font-family: 'Cinzel', serif; }

#auth-submit {
  margin-top: 16px; width: 100%; padding: 12px;
  font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  border-radius: 30px; border: none;
  background: linear-gradient(135deg, var(--gold), #D4A017);
  color: var(--obsidian); cursor: pointer; display: block; transition: all 0.25s;
}
#auth-submit:hover { box-shadow: 0 0 26px var(--gold-glow); transform: translateY(-1px); }

#close-auth {
  float: right;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ink-border);
  background: transparent;
  color: var(--gold-dim);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
#close-auth:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ════════════════════════════════════════
   ADMIN PANEL
════════════════════════════════════════ */
#admin-panel {
  position: fixed;
  top: 58px; right: 0;
  width: 300px;
  height: calc(100% - 68px);
  background: linear-gradient(180deg, var(--ink-mid), var(--ink));
  border-left: 1px solid var(--ink-border);
  padding: 18px;
  overflow-y: auto;
  z-index: 4000;
  font-family: 'Cinzel', serif;
  color: var(--gold);
  display: none;
}
#admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
#admin-header h3 { font-family: 'Cinzel Decorative', serif; font-size: 14px; letter-spacing: 1px; display: flex; align-items: center; gap: 7px; }
#close-admin { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink-border); background: transparent; color: var(--gold-dim); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
#close-admin:hover { border-color: var(--gold-dim); color: var(--gold); }

#global-message-input {
  width: 100%; padding: 10px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--ink-border); background: var(--ink);
  color: var(--cream); font-family: 'EB Garamond', serif; font-size: 14px;
  outline: none; margin-bottom: 10px; display: block;
}
#global-message-input:focus { border-color: var(--gold-dim); }

#global-message-send {
  width: 100%; padding: 10px;
  background: linear-gradient(135deg, var(--gold), #D4A017);
  border: none; border-radius: var(--r-sm);
  color: var(--obsidian); font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 12px; letter-spacing: 2px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: box-shadow 0.25s;
}
#global-message-send:hover { box-shadow: 0 0 20px var(--gold-glow); }

/* ── Global toast ── */
#global-message-popup {
  position: fixed;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 14px; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--ink-mid), var(--ink));
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-md);
  padding: 12px 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.65), 0 0 20px rgba(255,215,0,0.1);
  color: var(--gold);
  display: none;
  z-index: 9999;
  transition: top 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
  opacity: 0;
}

/* ════════════════════════════════════════
   RATE US POPUP
════════════════════════════════════════ */
#popupRate {
  position: fixed;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 250px;
  background: linear-gradient(160deg, var(--ink-mid), var(--ink));
  border: 1px solid rgba(184,150,12,0.45);
  border-radius: var(--r-md);
  padding: 20px 18px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  transition: top 0.5s cubic-bezier(0.4,0,0.2,1);
  z-index: 9999;
  text-align: center;
}
#popupRate .closeBtn {
  position: absolute; top: 8px; right: 10px;
  color: var(--gold-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
#popupRate .closeBtn:hover { color: var(--gold); }
#popupRate h2 {
  font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700;
  letter-spacing: 1px; color: var(--gold); margin-bottom: 5px;
}
#popupRate p { font-family: 'EB Garamond', serif; font-size: 13px; color: var(--gold-dim); margin-bottom: 12px; }
.stars { display: flex; justify-content: center; gap: 5px; font-size: 22px; cursor: pointer; }
.stars span { color: rgba(255,215,0,0.2); transition: color 0.22s; }

#thankYou {
  margin-top: 10px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gold);
  display: none;
}

/* ════════════════════════════════════════
   GAME VIEWER — iframe layout
════════════════════════════════════════ */
#game-viewer {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: var(--obsidian);
  display: none;
  flex-direction: row;
  animation: viewerIn 0.32s cubic-bezier(0.4,0,0.2,1) forwards;
}
#game-viewer.closing {
  animation: viewerOut 0.28s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes viewerIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes viewerOut {
  from { opacity: 1; transform: scale(1)    translateY(0); }
  to   { opacity: 0; transform: scale(0.96) translateY(12px); }
}

/* ── Main area (topbar + iframe) ── */
#game-viewer-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #000;
  min-width: 0;
  overflow: hidden;
}

#game-viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--ink-mid), var(--ink));
  border-bottom: 1px solid var(--ink-border);
  flex-shrink: 0;
  gap: 10px;
  height: 48px;
}

#game-viewer-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

#game-viewer-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ── The actual game iframe ── */
#game-frame-main {
  flex: 1;
  border: none;
  width: 100%;
  display: block;
  background: #000;
}

.viewer-btn {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(184,150,12,0.55);
  background: rgba(255,215,0,0.06);
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.viewer-btn svg { flex-shrink: 0; }
.viewer-btn:hover {
  background: linear-gradient(135deg, var(--gold), #D4A017);
  color: var(--obsidian);
  border-color: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
  transform: translateY(-1px);
}
.viewer-btn:active { transform: translateY(0); }

/* ── Sidebar game list ── */
#game-viewer-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--ink-mid), var(--ink));
  border-left: 1px solid var(--ink-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#game-viewer-sidebar-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--ink-border);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  background: linear-gradient(135deg, rgba(255,215,0,0.07), rgba(255,215,0,0.02));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

#game-viewer-grid {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#game-viewer-grid::-webkit-scrollbar { width: 3px; }
#game-viewer-grid::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

.sidebar-game-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}
.sidebar-game-btn:hover {
  background: rgba(255,215,0,0.07);
  border-color: rgba(184,150,12,0.35);
}
.sidebar-game-btn.active {
  background: rgba(255,215,0,0.1);
  border-color: rgba(184,150,12,0.5);
  box-shadow: inset 3px 0 0 var(--gold);
}
.sidebar-game-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--ink-border);
}
.sidebar-game-name {
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sidebar-game-btn:hover .sidebar-game-name { color: var(--gold); }
.sidebar-game-btn.active .sidebar-game-name { color: var(--gold); }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.bottom-container {
  flex-shrink: 0;
  text-align: center;
  padding: 36px 0 44px;
  margin-top: 40px;
  background: var(--ink);
  border-top: 1px solid var(--ink-border);
}
.bottom-container::before {
  content: '◆  ───────  ◆  ───────  ◆';
  display: block;
  color: var(--gold-dim); font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 5px; margin-bottom: 20px; opacity: 0.42;
}
.bottom-container p { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 18px; }
.gold-btn {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  padding: 13px 42px; border-radius: 30px; border: 1px solid var(--gold);
  background: transparent; color: var(--gold); cursor: pointer; transition: all 0.28s;
  display: inline-flex; align-items: center; gap: 8px;
}
.gold-btn:hover { background: linear-gradient(135deg, var(--gold), #D4A017); color: var(--obsidian); box-shadow: 0 0 32px var(--gold-glow); transform: translateY(-2px); }
.gold-btn:active { transform: translateY(0); }

/* ════════════════════════════════════════
   DISCORD BUTTON
════════════════════════════════════════ */
#discord-btn-wrap {
  position: fixed; right: 20px; bottom: 92px;
  display: flex; align-items: center;
  flex-direction: row-reverse; gap: 10px; z-index: 9998;
}
#discord-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(184,150,12,0.55);
  background: linear-gradient(135deg, var(--ink-mid), var(--ink));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-decoration: none;
  box-shadow: 0 0 18px rgba(255,215,0,0.12), 0 4px 16px rgba(0,0,0,0.55);
  transition: all 0.28s ease;
}
#discord-btn svg { width: 26px; height: 26px; fill: var(--gold-dim); transition: fill 0.28s ease; pointer-events: none; }
#discord-btn:hover { background: linear-gradient(135deg, var(--gold), #D4A017); border-color: var(--gold); box-shadow: 0 0 32px var(--gold-glow); transform: scale(1.1); }
#discord-btn:hover svg { fill: var(--obsidian); }
#discord-label {
  font-family: 'Cinzel', serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); background: linear-gradient(135deg, var(--ink-mid), var(--ink));
  border: 1px solid rgba(184,150,12,0.45); border-radius: 20px; padding: 7px 16px;
  white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(10px);
  transition: opacity 0.26s ease, transform 0.26s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
}
#discord-btn-wrap:hover #discord-label { opacity: 1; transform: translateX(0); }

/* ════════════════════════════════════════
   CHAT
════════════════════════════════════════ */
#chat-toggle {
  position: fixed; right: 20px; bottom: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(184,150,12,0.55);
  background: linear-gradient(135deg, var(--ink-mid), var(--ink));
  color: var(--gold);
  box-shadow: 0 0 20px rgba(255,215,0,0.14), 0 4px 16px rgba(0,0,0,0.5);
  transition: all 0.28s ease; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
#chat-toggle svg { width: 22px; height: 22px; }
#chat-toggle:hover {
  background: linear-gradient(135deg, var(--gold), #D4A017);
  color: var(--obsidian); border-color: var(--gold);
  box-shadow: 0 0 30px var(--gold-glow); transform: scale(1.08);
}

.chat-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: 'Cinzel', serif; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--obsidian);
}

#chat-panel {
  position: fixed; right: 20px; bottom: 88px;
  width: 340px; height: 480px;
  display: none; flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--ink-mid);
  border: 1px solid var(--ink-border);
  box-shadow: 0 24px 70px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,215,0,0.03);
  overflow: hidden; z-index: 9999;
  animation: chatPop 0.26s cubic-bezier(0.4,0,0.2,1);
}
@keyframes chatPop {
  from { transform: translateY(18px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

#chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, rgba(255,215,0,0.07), rgba(255,215,0,0.02));
  border-bottom: 1px solid var(--ink-border);
  flex-shrink: 0;
}
#chat-header-left { display: flex; align-items: center; gap: 10px; }

#chat-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 6px rgba(46,204,113,0.7);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

#chat-title {
  font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
}
#chat-online-count {
  font-family: 'EB Garamond', serif; font-size: 11px; color: var(--gold-dim);
  margin-top: 1px; font-style: italic;
}

#chat-close {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--ink-border); background: transparent;
  color: var(--gold-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
#chat-close:hover { border-color: var(--gold-dim); color: var(--gold); background: var(--gold-muted); }

#chat-messages {
  flex: 1; padding: 14px 12px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--ink);
}
#chat-messages::-webkit-scrollbar       { width: 3px; }
#chat-messages::-webkit-scrollbar-thumb { background: var(--ink-border); border-radius: 2px; }

.chat-day-divider {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Cinzel', serif; font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dim); opacity: 0.55;
}
.chat-day-divider::before, .chat-day-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--ink-border);
}

.chat-row {
  display: flex; align-items: flex-end; gap: 8px;
  animation: msgIn 0.2s ease;
}
.chat-row.me    { flex-direction: row-reverse; }
.chat-row.other { flex-direction: row; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  flex-shrink: 0; background: var(--ink-light);
  border: 1px solid var(--ink-border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700;
  color: var(--gold-dim);
  overflow: hidden;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.chat-bubble-group { display: flex; flex-direction: column; gap: 2px; max-width: 72%; }

.chat-row.me    .chat-bubble-group { align-items: flex-end; }
.chat-row.other .chat-bubble-group { align-items: flex-start; }

.chat-sender {
  font-family: 'Cinzel', serif; font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-dim);
  margin-bottom: 4px; padding: 0 4px;
}

.chat-bubble {
  position: relative;
  padding: 9px 13px;
  border-radius: 14px;
  word-wrap: break-word; word-break: break-word;
  font-family: 'EB Garamond', serif;
  font-size: 14.5px; line-height: 1.55;
  transition: background 0.15s;
}
.chat-row.other .chat-bubble {
  background: var(--ink-light);
  border: 1px solid var(--ink-border);
  color: var(--cream);
  border-bottom-left-radius: 4px;
}
.chat-row.me .chat-bubble {
  background: linear-gradient(135deg, rgba(255,215,0,0.18), rgba(184,150,12,0.1));
  border: 1px solid rgba(255,215,0,0.2);
  color: var(--gold-light);
  border-bottom-right-radius: 4px;
}

.chat-time {
  font-family: 'EB Garamond', serif;
  font-size: 10px; color: var(--gold-dim); opacity: 0.5;
  padding: 0 4px; margin-top: 2px;
}

.chat-actions {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  display: flex; gap: 4px;
  opacity: 0; transition: opacity 0.15s; pointer-events: none;
  padding: 4px;
}
.chat-row.me    .chat-actions { right: calc(100% + 6px); }
.chat-row.other .chat-actions { left:  calc(100% + 6px); }

.chat-bubble:hover .chat-actions { opacity: 1; pointer-events: all; }

.chat-action-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--ink-border);
  background: var(--ink-mid);
  color: var(--gold-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
}
.chat-action-btn:hover { border-color: var(--gold-dim); color: var(--gold); background: var(--ink-hover); }
.chat-action-btn.del:hover { border-color: var(--red); color: var(--red); }
.chat-action-btn svg { width: 11px; height: 11px; pointer-events: none; }

#typing-indicator {
  min-height: 20px; padding: 3px 14px;
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: 12px; color: var(--gold-dim); opacity: 0.6;
  background: var(--ink);
  display: flex; align-items: center; gap: 7px;
  flex-shrink: 0;
}

.typing-dots { display: flex; gap: 3px; }
.typing-dots span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-dim); display: inline-block;
  animation: dotBounce 1.2s ease infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%,80%,100% { transform: translateY(0); opacity: 0.4; }
  40%          { transform: translateY(-4px); opacity: 1; }
}

#chat-input-area {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--ink-border);
  background: var(--ink-mid);
  flex-shrink: 0;
}
#chat-input-wrap {
  flex: 1; position: relative; display: flex; align-items: center;
}
#chat-input {
  width: 100%; padding: 10px 42px 10px 14px;
  border-radius: 20px; border: 1px solid var(--ink-border);
  background: var(--ink); color: var(--cream);
  font-family: 'EB Garamond', serif; font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
#chat-input::placeholder { color: var(--gold-dim); font-style: italic; opacity: 0.5; }
#chat-input:focus { border-color: rgba(184,150,12,0.5); }

#chat-char-count {
  position: absolute; right: 10px;
  font-family: 'Cinzel', serif; font-size: 9px;
  color: var(--gold-dim); opacity: 0.45; pointer-events: none;
}

#chat-send {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(184,150,12,0.55);
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,215,0,0.04));
  color: var(--gold); cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.22s;
}
#chat-send:hover {
  background: linear-gradient(135deg, var(--gold), #D4A017);
  color: var(--obsidian); border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}

/* ── Trailer popup ── */
#trailer-popup {
  background: linear-gradient(160deg, var(--ink-mid), var(--ink)) !important;
  border: 1px solid rgba(184,150,12,0.45) !important;
  border-radius: var(--r-lg) !important;
  color: var(--gold) !important; font-family: 'Cinzel', serif !important;
  box-shadow: 0 28px 80px rgba(0,0,0,0.85) !important;
}
#trailer-popup h3 { font-family: 'Cinzel Decorative', serif !important; font-size: 16px !important; letter-spacing: 2px !important; color: var(--gold) !important; }
#trailer-popup video { border: 1px solid var(--ink-border) !important; border-radius: var(--r-md) !important; }
#trailer-popup button {
  font-family: 'Cinzel', serif !important;
  background: rgba(255,215,0,0.08) !important; border: 1px solid rgba(184,150,12,0.5) !important;
  border-radius: 30px !important; color: var(--gold) !important; padding: 8px 22px !important;
  cursor: pointer !important; transition: all 0.22s !important;
  min-width: unset !important; height: auto !important; box-shadow: none !important;
  transform: none !important; font-size: 12px !important; letter-spacing: 2px !important;
  display: inline-flex !important; align-items: center !important; gap: 7px !important;
}
#trailer-popup button:hover { background: linear-gradient(135deg, var(--gold), #D4A017) !important; color: var(--obsidian) !important; }

/* ── Intro overlay ── */
#intro-overlay {
  position: fixed; inset: 0;
  background: var(--obsidian); color: var(--gold);
  display: flex; justify-content: center; align-items: center;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(24px, 5.5vw, 56px); font-weight: 900; letter-spacing: 6px;
  z-index: 99999; opacity: 1; transition: opacity 1s ease;
  text-shadow: 0 0 50px var(--gold-glow), 0 0 100px rgba(255,215,0,0.1);
}

input[type="email"] {
  padding: 10px 14px; font-family: 'EB Garamond', serif; font-size: 15px;
  border-radius: 30px; border: 1px solid var(--ink-border);
  width: 230px; margin-right: 10px; background: var(--ink-mid); color: var(--cream); outline: none;
  transition: border-color 0.25s;
}
input[type="email"]:focus { border-color: var(--gold-dim); }

/* ════════════════════════════════════════
   DIRECT MESSAGES
════════════════════════════════════════ */
#dm-btn-float {
  position: fixed;
  right: 20px; bottom: 160px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(184,150,12,0.55);
  background: linear-gradient(135deg, var(--ink-mid), var(--ink));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 9998;
  box-shadow: 0 0 18px rgba(255,215,0,0.12), 0 4px 16px rgba(0,0,0,0.55);
  transition: all 0.28s ease;
}
#dm-btn-float svg { width: 22px; height: 22px; pointer-events: none; }
#dm-btn-float:hover {
  background: linear-gradient(135deg, var(--gold), #D4A017);
  color: var(--obsidian); border-color: var(--gold);
  box-shadow: 0 0 30px var(--gold-glow); transform: scale(1.1);
}

#dm-unread-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: 'Cinzel', serif; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--obsidian);
}

#dm-panel {
  position: fixed; right: 20px; bottom: 88px;
  width: 520px; height: 500px;
  display: none; border-radius: var(--r-lg);
  background: var(--ink-mid);
  border: 1px solid var(--ink-border);
  box-shadow: 0 24px 70px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,215,0,0.03);
  overflow: hidden; z-index: 9999;
  animation: chatPop 0.26s cubic-bezier(0.4,0,0.2,1);
  flex-direction: row;
}

#dm-sidebar {
  width: 180px; flex-shrink: 0;
  background: var(--ink);
  border-right: 1px solid var(--ink-border);
  display: flex; flex-direction: column; overflow: hidden;
}

#dm-sidebar-header {
  padding: 14px 12px 10px;
  border-bottom: 1px solid var(--ink-border);
  background: linear-gradient(135deg, rgba(255,215,0,0.07), rgba(255,215,0,0.02));
  flex-shrink: 0;
}
#dm-sidebar-title {
  font-family: 'Cinzel', serif; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
}

#dm-add-wrap { display: flex; gap: 5px; align-items: center; }
#dm-add-input {
  flex: 1; padding: 7px 10px;
  border-radius: 20px; border: 1px solid var(--ink-border);
  background: var(--ink-mid); color: var(--cream);
  font-family: 'EB Garamond', serif; font-size: 13px;
  outline: none; transition: border-color 0.2s; min-width: 0;
}
#dm-add-input::placeholder { color: var(--gold-dim); font-style: italic; opacity: 0.55; }
#dm-add-input:focus { border-color: rgba(184,150,12,0.5); }

#dm-add-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(184,150,12,0.55);
  background: rgba(255,215,0,0.08); color: var(--gold);
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.22s;
}
#dm-add-btn:hover { background: linear-gradient(135deg, var(--gold), #D4A017); color: var(--obsidian); border-color: var(--gold); }
#dm-add-btn svg { width: 13px; height: 13px; pointer-events: none; }

#dm-friends-list { flex: 1; overflow-y: auto; padding: 6px 0; }
#dm-friends-list::-webkit-scrollbar { width: 3px; }
#dm-friends-list::-webkit-scrollbar-thumb { background: var(--ink-border); border-radius: 2px; }

.dm-friend-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 12px;
  cursor: pointer; transition: background 0.18s;
  position: relative; border-left: 2px solid transparent;
}
.dm-friend-row:hover { background: var(--ink-hover); }
.dm-friend-row.active { background: rgba(255,215,0,0.06); border-left-color: var(--gold); }

.dm-friend-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink-light); border: 1px solid var(--ink-border);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700;
  color: var(--gold-dim); overflow: hidden;
}
.dm-friend-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.dm-friend-info { flex: 1; min-width: 0; }
.dm-friend-name {
  font-family: 'Cinzel', serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; color: var(--gold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dm-friend-preview {
  font-family: 'EB Garamond', serif; font-size: 11px;
  color: var(--gold-dim); opacity: 0.65;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.dm-friend-badge {
  min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--red); color: #fff;
  font-family: 'Cinzel', serif; font-size: 8px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; flex-shrink: 0;
}

.dm-remove-btn {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid transparent; background: transparent;
  color: var(--gold-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all 0.18s; flex-shrink: 0;
}
.dm-friend-row:hover .dm-remove-btn { opacity: 1; }
.dm-remove-btn:hover { border-color: var(--red); color: var(--red); background: rgba(255,107,107,0.08); }
.dm-remove-btn svg { width: 9px; height: 9px; pointer-events: none; }

.dm-empty {
  padding: 24px 12px; text-align: center;
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: 13px; color: var(--gold-dim); opacity: 0.55; line-height: 1.6;
}

#dm-chat-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

#dm-no-convo {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--gold-dim); opacity: 0.4;
  font-family: 'Cinzel', serif; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
}
#dm-no-convo svg { width: 36px; height: 36px; opacity: 0.5; }

#dm-chat-header {
  padding: 12px 16px; border-bottom: 1px solid var(--ink-border);
  background: linear-gradient(135deg, rgba(255,215,0,0.07), rgba(255,215,0,0.02));
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

#dm-chat-with {
  font-family: 'Cinzel', serif; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); flex: 1;
}
#dm-chat-with-sub {
  font-family: 'EB Garamond', serif; font-size: 11px;
  color: var(--gold-dim); font-style: italic;
}

#dm-close-convo {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--ink-border); background: transparent;
  color: var(--gold-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
#dm-close-convo:hover { border-color: var(--gold-dim); color: var(--gold); }

#dm-messages {
  flex: 1; padding: 12px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px; background: var(--ink);
}
#dm-messages::-webkit-scrollbar { width: 3px; }
#dm-messages::-webkit-scrollbar-thumb { background: var(--ink-border); border-radius: 2px; }

#dm-typing {
  min-height: 18px; padding: 2px 14px;
  font-family: 'EB Garamond', serif; font-style: italic;
  font-size: 11px; color: var(--gold-dim); opacity: 0.6;
  background: var(--ink); display: flex; align-items: center; gap: 7px; flex-shrink: 0;
}

#dm-input-area {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--ink-border); background: var(--ink-mid); flex-shrink: 0;
}
#dm-input {
  flex: 1; padding: 9px 14px; border-radius: 20px;
  border: 1px solid var(--ink-border); background: var(--ink); color: var(--cream);
  font-family: 'EB Garamond', serif; font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
#dm-input::placeholder { color: var(--gold-dim); font-style: italic; opacity: 0.5; }
#dm-input:focus { border-color: rgba(184,150,12,0.5); }

#dm-send {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(184,150,12,0.55);
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,215,0,0.04));
  color: var(--gold); cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: all 0.22s;
}
#dm-send:hover {
  background: linear-gradient(135deg, var(--gold), #D4A017);
  color: var(--obsidian); border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}
#dm-send svg { width: 14px; height: 14px; pointer-events: none; }

#dm-toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--ink-mid), var(--ink));
  border: 1px solid rgba(184,150,12,0.5); border-radius: var(--r-md);
  padding: 10px 20px;
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 1px; color: var(--gold);
  box-shadow: 0 8px 30px rgba(0,0,0,0.65);
  opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 10000; white-space: nowrap;
}
#dm-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════════════
   MOBILE — ≤ 768px
════════════════════════════════════════ */
@media (max-width: 768px) {

  #top-bar {
    left: 0 !important; right: 0 !important; top: 0 !important;
    width: 100% !important; min-width: unset !important;
    border-radius: 0 !important;
    border-left: none !important; border-right: none !important; border-top: none !important;
    height: 54px !important; padding: 0 10px !important; box-sizing: border-box !important;
  }

  .top-btn { font-size: 10px !important; padding: 6px 10px !important; letter-spacing: 0.3px !important; }

  #top-buttons-main { top: 62px !important; right: 10px !important; }

  h1 {
    margin: 6px 0 2px 64px !important;
    padding-top: 68px !important;
    font-size: clamp(14px, 4.5vw, 22px) !important;
    letter-spacing: 2px !important;
  }
  h4 { margin: 0 0 10px 64px !important; letter-spacing: 3px !important; font-size: 9px !important; }

  #noteshelf-logo { height: 110px !important; }

  #search-wrap { margin: 10px 0 10px 64px !important; }
  #search-bar { width: calc(100vw - 84px) !important; max-width: 320px !important; }

  #category-sidebar {
    width: 50px !important; top: 54px !important;
    height: calc(100vh - 54px) !important; padding: 8px 4px !important;
  }
  #category-sidebar:hover { width: 170px !important; }

  #game-list {
    margin-left: 58px !important;
    padding: 8px 8px 80px !important;
    gap: 8px !important; justify-content: flex-start !important;
  }

  .game-button {
    width: calc(50vw - 42px) !important;
    min-width: 110px !important; max-width: 160px !important;
    height: 145px !important;
  }
  .game-button > div:not(.compat-tooltip) { font-size: 10px !important; padding: 6px 7px !important; }

  #auth-popup { width: calc(100vw - 32px) !important; padding: 24px 18px !important; box-sizing: border-box !important; }

  /* Game viewer mobile: stack vertically */
  #game-viewer { flex-direction: column !important; }
  #game-viewer-sidebar {
    width: 100% !important;
    height: 130px !important;
    border-left: none !important;
    border-top: 1px solid var(--ink-border) !important;
  }
  #game-viewer-grid { flex-direction: row !important; padding: 8px !important; gap: 8px !important; overflow-x: auto !important; overflow-y: hidden !important; }
  .sidebar-game-btn { flex-direction: column !important; min-width: 64px !important; width: 64px !important; align-items: center !important; padding: 6px 4px !important; }
  .sidebar-game-thumb { width: 44px !important; height: 44px !important; }
  .sidebar-game-name { font-size: 8px !important; text-align: center !important; -webkit-line-clamp: 2 !important; }
  #game-viewer-topbar { height: 44px !important; padding: 6px 10px !important; }
  #game-viewer-title { font-size: 11px !important; }

  #admin-panel { width: 100% !important; right: 0 !important; top: 54px !important; height: calc(100% - 54px) !important; }

  #chat-panel {
    right: 0 !important; left: 0 !important; bottom: 0 !important;
    width: 100% !important; height: 80vh !important; max-height: 520px !important;
    border-radius: var(--r-lg) var(--r-lg) 0 0 !important; border-bottom: none !important;
  }

  #chat-toggle { right: 14px !important; bottom: 14px !important; width: 50px !important; height: 50px !important; }

  #discord-btn-wrap { right: 14px !important; bottom: 76px !important; }
  #discord-btn { width: 46px !important; height: 46px !important; }

  #dm-btn-float { right: 14px !important; bottom: 134px !important; width: 46px !important; height: 46px !important; }

  #dm-panel {
    right: 0 !important; left: 0 !important; bottom: 0 !important;
    width: 100% !important; height: 85vh !important; max-height: 600px !important;
    border-radius: var(--r-lg) var(--r-lg) 0 0 !important; border-bottom: none !important;
    flex-direction: column !important;
  }

  #dm-sidebar {
    width: 100% !important; height: auto !important; max-height: 210px !important;
    border-right: none !important; border-bottom: 1px solid var(--ink-border) !important;
    flex-direction: column !important;
  }
  #dm-friends-list { max-height: 120px !important; overflow-y: auto !important; }
  #dm-chat-area { flex: 1 !important; min-height: 0 !important; }

  #popupRate { width: calc(100vw - 40px) !important; left: 20px !important; transform: none !important; }

  #update-logs-modal { width: 100vw !important; height: 100dvh !important; border-radius: 0 !important; border: none !important; }

  #trailer-popup {
    width: calc(100vw - 24px) !important; max-width: unset !important;
    left: 12px !important; right: 12px !important;
    transform: translate(-50%, -50%) !important;
  }

  .bottom-container { padding: 28px 0 36px !important; }
}

/* ════════════════════════════════════════
   EXTRA SMALL — ≤ 380px
════════════════════════════════════════ */
@media (max-width: 380px) {
  h1 { font-size: 13px !important; letter-spacing: 1px !important; }
  #noteshelf-logo { height: 88px !important; }
  .game-button { width: calc(50vw - 38px) !important; height: 125px !important; }
  #top-buttons-auth { gap: 3px !important; }
  .top-btn { font-size: 9px !important; padding: 5px 7px !important; }
}

/* ════════════════════════════════════════
   TABLET — 769px–1024px
════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
  h1           { margin-left: 80px !important; }
  h4           { margin-left: 82px !important; }
  #search-wrap { margin-left: 78px !important; }
  #game-list   { margin-left: 72px !important; gap: 12px !important; }
  .game-button { width: 138px !important; height: 160px !important; }
  #dm-panel    { width: calc(100vw - 32px) !important; right: 16px !important; }
}

/* ════════════════════════════════════════
   SAFE AREA (iPhone notch / home bar)
════════════════════════════════════════ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #chat-panel, #dm-panel { padding-bottom: env(safe-area-inset-bottom) !important; }
  @media (max-width: 768px) {
    #chat-toggle      { bottom: calc(14px + env(safe-area-inset-bottom)) !important; }
    #discord-btn-wrap { bottom: calc(76px  + env(safe-area-inset-bottom)) !important; }
    #dm-btn-float     { bottom: calc(134px + env(safe-area-inset-bottom)) !important; }
  }
}
/* ════════════════════════════════════════
   EMAIL VERIFICATION BANNER
════════════════════════════════════════ */
#verify-banner {
  width: 100%;
  background: linear-gradient(135deg, rgba(255,215,0,0.09), rgba(184,150,12,0.05));
  border-bottom: 1px solid rgba(184,150,12,0.4);
  padding: 10px 18px;
  z-index: 1800;
  animation: bannerSlideIn 0.35s cubic-bezier(0.4,0,0.2,1);
}
@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bannerSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-100%); }
}
#verify-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
}
#verify-banner-left {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold-dim);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 1px;
}
#verify-banner-left svg { flex-shrink: 0; color: var(--gold-dim); }
#verify-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.verify-btn-primary {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, var(--gold), #D4A017);
  color: var(--obsidian);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: box-shadow 0.2s;
  white-space: nowrap;
}
.verify-btn-primary:hover { box-shadow: 0 0 16px var(--gold-glow); }
.verify-btn-secondary {
  padding: 6px 13px;
  border-radius: 20px;
  border: 1px solid rgba(184,150,12,0.5);
  background: transparent;
  color: var(--gold-dim);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.verify-btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.verify-dismiss {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--ink-border);
  background: transparent;
  color: var(--gold-dim);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.verify-dismiss:hover { border-color: var(--red); color: var(--red); }

/* ── Verify toast ── */
#verify-toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: linear-gradient(135deg, var(--ink-mid), var(--ink));
  border: 1px solid rgba(184,150,12,0.5);
  border-radius: var(--r-md);
  padding: 10px 22px;
  font-family: 'Cinzel', serif;
  font-size: 11px; letter-spacing: 1px;
  color: var(--gold);
  box-shadow: 0 8px 30px rgba(0,0,0,0.65);
  opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 10001; white-space: nowrap;
}
#verify-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Verified badge ── */
#verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #D4A017);
  color: var(--obsidian);
  margin-left: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}
#verified-badge svg { pointer-events: none; }
/* ════════════════════════════════════════
   EDIT PROFILE POPUP
════════════════════════════════════════ */
#edit-profile-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5000;
  background: linear-gradient(160deg, var(--ink-mid), var(--ink));
  border: 1px solid rgba(184,150,12,0.45);
  border-radius: var(--r-lg);
  padding: 34px;
  color: var(--gold);
  box-shadow: 0 28px 80px rgba(0,0,0,0.85);
  min-width: 320px;
  width: 360px;
}
#edit-profile-box h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 16px; letter-spacing: 2px;
  margin-bottom: 20px; color: var(--gold);
}
.ep-label {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-dim);
  display: block; margin: 14px 0 5px; opacity: 0.8;
}
.ep-optional {
  font-family: 'EB Garamond', serif;
  font-size: 11px; color: var(--gold-dim);
  text-transform: none; letter-spacing: 0;
  opacity: 0.6; font-style: italic;
}
.ep-static {
  font-family: 'Cinzel', serif;
  font-size: 13px; color: var(--cream);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink-border);
  background: rgba(255,255,255,0.03);
  opacity: 0.7;
}
#ep-email, #ep-password {
  width: 100%; padding: 10px 14px; margin: 0;
  font-family: 'EB Garamond', serif; font-size: 15px;
  border-radius: var(--r-sm); border: 1px solid var(--ink-border);
  background: var(--ink); color: var(--cream); outline: none;
  display: block; transition: border-color 0.2s; box-sizing: border-box;
}
#ep-email:focus, #ep-password:focus { border-color: var(--gold-dim); }
#ep-email-status {
  font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: 1px; margin-top: 5px; min-height: 16px;
}
#ep-avatar-wrap {
  display: flex; align-items: center; gap: 14px; margin-top: 4px;
}
#ep-avatar-preview {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--gold-dim); object-fit: cover;
}
#ep-submit {
  margin-top: 22px; width: 100%; padding: 12px;
  font-family: 'Cinzel', serif; font-size: 13px;
  font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  border-radius: 30px; border: none;
  background: linear-gradient(135deg, var(--gold), #D4A017);
  color: var(--obsidian); cursor: pointer; display: block; transition: all 0.25s;
}
#ep-submit:hover { box-shadow: 0 0 26px var(--gold-glow); transform: translateY(-1px); }
#ep-message {
  font-size: 13px; color: var(--red);
  margin-top: 10px; font-family: 'Cinzel', serif; min-height: 18px;
}
#close-edit-profile {
  float: right; width: 28px; height: 28px;
  border-radius: 50%; border: 1px solid var(--ink-border);
  background: transparent; color: var(--gold-dim);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
#close-edit-profile:hover { border-color: var(--gold-dim); color: var(--gold); }

@media (max-width: 768px) {
  #edit-profile-popup { width: calc(100vw - 32px) !important; padding: 24px 18px !important; box-sizing: border-box !important; }
}
/* ════════════════════════════════════════
   GAME LOCK OVERLAY
════════════════════════════════════════ */
.game-lock-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  background: rgba(7,6,10,0.72);
  backdrop-filter: blur(2px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.28s ease, backdrop-filter 0.28s ease;
}
.game-locked:hover .game-lock-overlay {
  background: rgba(7,6,10,0.55);
}
.game-lock-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,215,0,0.14), rgba(255,215,0,0.04));
  border: 1px solid rgba(184,150,12,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  box-shadow: 0 0 20px rgba(255,215,0,0.15), inset 0 1px 0 rgba(255,215,0,0.1);
  transition: all 0.28s ease;
}
.game-locked:hover .game-lock-icon {
  background: linear-gradient(135deg, rgba(255,215,0,0.22), rgba(255,215,0,0.08));
  box-shadow: 0 0 30px rgba(255,215,0,0.28), inset 0 1px 0 rgba(255,215,0,0.15);
  transform: scale(1.1);
}
.game-locked img {
  filter: brightness(0.55) saturate(0.4);
  transition: filter 0.28s ease, transform 0.4s ease;
}
.game-locked:hover img {
  filter: brightness(0.65) saturate(0.5);
}
.sidebar-game-btn.sidebar-locked {
  opacity: 0.65;
  cursor: pointer;
}
.sidebar-game-btn.sidebar-locked:hover {
  background: rgba(255,215,0,0.04);
  border-color: rgba(184,150,12,0.2);
}
.sidebar-game-btn.sidebar-locked .sidebar-game-name {
  color: var(--gold-dim);
  opacity: 0.6;
}
@media (max-width: 768px) {
  #site-down-overlay > div {
    flex-direction: column !important;
    gap: 16px !important;
    width: 95% !important;
    max-width: 100% !important;
    padding: 12px 0 !important;
  }

  #site-down-overlay > div > div {
    min-width: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 28px 20px 24px !important;
  }

  #snake-canvas {
    width: 240px !important;
    height: 240px !important;
  }
}
.chat-toolbar {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  display: flex; gap: 3px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s;
  background: linear-gradient(135deg, var(--ink-mid), var(--ink));
  border: 1px solid var(--ink-border);
  border-radius: 20px;
  padding: 4px 6px;
  z-index: 10;
  white-space: nowrap;
}
.chat-toolbar.toolbar-left  { right: calc(100% + 8px); }
.chat-toolbar.toolbar-right { left:  calc(100% + 8px); }

.chat-bubble:hover .chat-toolbar { opacity: 1; pointer-events: all; }

.ctb-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--gold-dim);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
  padding: 0;
}
.ctb-btn:hover { color: var(--gold); background: var(--gold-muted); }
.ctb-btn.danger:hover { color: var(--red); background: rgba(255,107,107,0.1); }
.ctb-btn svg { pointer-events: none; }

.chat-reply-quote {
  background: rgba(255,215,0,0.06);
  border-left: 2px solid var(--gold-dim);
  border-radius: 0 6px 6px 0;
  padding: 5px 10px;
  margin-bottom: 5px;
  max-width: 100%;
  overflow: hidden;
}
.rq-name {
  font-family: 'Cinzel', serif;
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold-dim); display: block; margin-bottom: 2px;
}
.rq-text {
  font-family: 'EB Garamond', serif;
  font-size: 13px; color: var(--cream); opacity: 0.65;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}

.chat-edited-tag {
  font-family: 'EB Garamond', serif;
  font-style: italic; font-size: 11px;
  color: var(--gold-dim); opacity: 0.45;
  margin-left: 6px;
}

.chat-mod-badge {
  font-family: 'Cinzel', serif;
  font-size: 8px; letter-spacing: 2px;
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(184,150,12,0.45);
  color: var(--gold-dim);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
}

#chat-reply-bar {
  background: rgba(255,215,0,0.04);
  border-top: 1px solid var(--ink-border);
  padding: 6px 14px;
  flex-shrink: 0;
}
.reply-bar-inner {
  display: flex; align-items: center; gap: 7px;
  font-family: 'EB Garamond', serif; font-size: 13px;
  color: var(--gold-dim);
}
.reply-bar-name {
  font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: 1px; color: var(--gold); font-weight: 600;
}
.reply-bar-snippet {
  flex: 1; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; opacity: 0.65;
}
.reply-cancel-btn {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--ink-border); background: transparent;
  color: var(--gold-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s; flex-shrink: 0; padding: 0;
}
.reply-cancel-btn:hover { border-color: var(--red); color: var(--red); }

.reaction-picker-popup {
  position: fixed;
  background: linear-gradient(135deg, var(--ink-mid), var(--ink));
  border: 1px solid var(--ink-border);
  border-radius: 30px;
  padding: 6px 10px;
  display: flex; gap: 4px;
  z-index: 99999;
  box-shadow: 0 8px 28px rgba(0,0,0,0.7);
}
.rpick-btn {
  width: 32px; height: 32px;
  border-radius: 50%; border: none;
  background: transparent; font-size: 16px;
  cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.rpick-btn:hover { background: var(--gold-muted); transform: scale(1.25); }

.chat-reactions-row {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-top: 4px; padding: 0 4px;
}
.reaction-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--ink-border);
  background: var(--ink-light);
  cursor: pointer; transition: all 0.18s;
  font-size: 13px;
}
.reaction-pill:hover { border-color: var(--gold-dim); background: var(--gold-muted); }
.reaction-pill.mine  { border-color: rgba(184,150,12,0.5); background: rgba(255,215,0,0.1); }
.rpill-emoji { font-size: 13px; line-height: 1; }
.rpill-count {
  font-family: 'Cinzel', serif; font-size: 10px;
  color: var(--gold-dim); font-weight: 600;
}

.typing-av-row { display: flex; gap: 3px; align-items: center; }
.typing-av {
  width: 18px; height: 18px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--ink-border);
  flex-shrink: 0;
}
.typing-av-init {
  background: var(--ink-light);
  font-family: 'Cinzel', serif; font-size: 9px;
  color: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
}
.typing-label-text {
  font-family: 'EB Garamond', serif;
  font-size: 12px; font-style: italic;
  color: var(--gold-dim); opacity: 0.65; margin-left: 2px;
}
