/* ===== REAISSANCE GLOBAL STYLES ===== */
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{
  background:#FFF8F0;
  /* Parchment texture effect */
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(201,169,110,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139,0,0,0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(44,24,16,0.02) 0%, transparent 50%);
  font-family:'Noto Serif SC','Georgia',serif;
  color:#2C1810;
  transition:background 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  line-height:1.6;
}

/* ===== RESULT PAGE (美化版) ===== */
#view-result {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#result-card {
  background: linear-gradient(135deg, rgba(201,169,110,0.1), rgba(139,115,85,0.05));
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 28px;
  box-shadow: 0 12px 40px rgba(44,24,16,0.08);
  position: relative;
  overflow: hidden;
  animation: cardAppear 0.8s ease;
}

#result-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(201,169,110,0.06) 0%, transparent 50%);
  pointer-events: none;
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

#result-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: #8B7355;
  border: 1px solid rgba(139,115,85,0.4);
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 18px;
  background: rgba(201,169,110,0.08);
  animation: fadeIn 0.6s ease 0.2s both;
}

#result-name {
  font-family: 'Georgia', 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 700;
  color: #2C1810;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  animation: fadeIn 0.6s ease 0.3s both;
}

#result-subtitle {
  font-size: 14px;
  color: rgba(44,24,16,0.55);
  margin-bottom: 24px;
  letter-spacing: 1px;
  line-height: 1.6;
  animation: fadeIn 0.6s ease 0.4s both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 维度进度条容器 */
#result-dimensions {
  margin: 24px 0;
  text-align: left;
  animation: fadeIn 0.6s ease 0.5s both;
}

.dim-row {
  margin-bottom: 16px;
  animation: slideIn 0.5s ease both;
}

.dim-row:nth-child(1) { animation-delay: 0.5s; }
.dim-row:nth-child(2) { animation-delay: 0.6s; }
.dim-row:nth-child(3) { animation-delay: 0.7s; }
.dim-row:nth-child(4) { animation-delay: 0.8s; }
.dim-row:nth-child(5) { animation-delay: 0.9s; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.dim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dim-label {
  font-size: 13px;
  color: rgba(44,24,16,0.65);
  letter-spacing: 1px;
  font-weight: 500;
}

.dim-score {
  font-size: 13px;
  color: rgba(44,24,16,0.45);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.dim-bar-bg {
  height: 6px;
  background: rgba(44,24,16,0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dim-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s ease infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

#result-hook {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(44,24,16,0.75);
  background: rgba(201,169,110,0.08);
  border-left: 3px solid rgba(201,169,110,0.4);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  text-align: left;
  animation: fadeIn 0.6s ease 1s both;
}

#result-share-line {
  font-family: 'Georgia', 'Noto Serif SC', serif;
  font-size: 15px;
  font-style: italic;
  color: #C9A96E;
  margin-top: 18px;
  letter-spacing: 1px;
  animation: fadeIn 0.6s ease 1.1s both;
}

/* 结果页按钮 */
#view-result button[onclick="restartTest()"] {
  width: 100%;
  max-width: 280px;
  padding: 13px 0;
  background: linear-gradient(135deg, #C9A96E, #A0845C);
  color: #FFF8F0;
  border: none;
  border-radius: 24px;
  font-size: 15px;
  font-family: 'Georgia', 'Noto Serif SC', serif;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(201,169,110,0.3);
  animation: fadeIn 0.6s ease 1.2s both;
}

#view-result button[onclick="restartTest()"]:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(201,169,110,0.4);
}

#view-result button[onclick="shareResult()"] {
  width: 100%;
  max-width: 280px;
  padding: 13px 0;
  background: transparent;
  color: #8B7355;
  border: 1px solid rgba(139,115,85,0.3);
  border-radius: 24px;
  font-size: 14px;
  font-family: 'Georgia', 'Noto Serif SC', serif;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  animation: fadeIn 0.6s ease 1.3s both;
}

#view-result button[onclick="shareResult()"]:hover {
  background: rgba(201,169,110,0.08);
  border-color: rgba(139,115,85,0.5);
}

/* ===== DARK MODE (Renaissance Dark) ===== */
html.dark, html.dark body{
  background:#1a1a2e;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(201,169,110,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139,0,0,0.03) 0%, transparent 50%);
  color:#E8D5B7;
}
html.dark .page-header{
  border-bottom-color:rgba(201,169,110,0.15);
}
html.dark .page-header .label{
  color:rgba(201,169,110,0.4);
}
html.dark .page-header h2{
  color:rgba(232,213,183,0.6);
}
html.dark .hero-title{
  color:#E8D5B7;
  text-shadow:0 2px 8px rgba(0,0,0,0.3);
}
html.dark .divider{
  background:linear-gradient(to right, transparent, rgba(201,169,110,0.3), transparent);
  height:1px;
}
html.dark .hero-subtitle{
  color:rgba(232,213,183,0.5);
}
html.dark .hero-cta{
  border-color:rgba(201,169,110,0.4);
  color:#E8D5B7;
}
html.dark .hero-cta:hover{
  background:rgba(201,169,110,0.1);
  border-color:rgba(201,169,110,0.6);
}
html.dark .scroll-hint{
  color:rgba(201,169,110,0.3);
}
html.dark .phase-item{
  border-color:rgba(201,169,110,0.15);
  background:rgba(26,26,46,0.6);
  box-shadow:0 2px 8px rgba(0,0,0,0.2);
}
html.dark .phase-item:hover{
  border-color:rgba(201,169,110,0.3);
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
}
html.dark .phase-num{
  color:rgba(201,169,110,0.4);
}
html.dark .phase-name{
  color:#E8D5B7;
}
html.dark .phase-desc{
  color:rgba(232,213,183,0.4);
}
html.dark .phase-arrow{
  color:rgba(201,169,110,0.3);
}
html.dark .footer-hint{
  color:rgba(201,169,110,0.25);
  border-top-color:rgba(201,169,110,0.1);
}
html.dark .top-controls{
  background:rgba(26,26,46,0.8);
  border-color:rgba(201,169,110,0.15);
}
html.dark .top-btn{
  color:rgba(232,213,183,0.6);
}
html.dark .top-btn:hover{
  background:rgba(201,169,110,0.1);
}
html.dark .lang-dropdown{
  background:#2C1810;
  border-color:rgba(201,169,110,0.2);
  box-shadow:0 4px 16px rgba(0,0,0,0.4);
}
html.dark .lang-opt{
  color:rgba(232,213,183,0.6);
}
html.dark .lang-opt:hover{
  background:rgba(201,169,110,0.1);
}
html.dark .lang-opt.active{
  color:#E8D5B7;
}
html.dark .bottom-image-wrap{
  box-shadow:0 4px 24px rgba(0,0,0,0.4);
}
html.dark .bottom-caption p{
  color:rgba(232,213,183,0.5);
}

/* ===== TOP CONTROLS (fixed right) ===== */
.top-controls{
  position:fixed;
  top:12px;
  right:12px;
  z-index:1000;
  background:rgba(255,248,240,0.85);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(201,169,110,0.25);
  border-radius:8px;
  box-shadow:0 2px 8px rgba(44,24,16,0.08);
}
.top-btn{
  width:24px;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  border-radius:5px;
  background:transparent;
  cursor:pointer;
  color:rgba(44,24,16,0.5);
  font-size:11px;
  transition:all 0.25s ease;
  position:relative;
  -webkit-touch-callout:none;
}
.top-btn:hover{
  background:rgba(201,169,110,0.1);
  color:rgba(44,24,16,0.7);
}
.top-btn svg{
  width:14px;
  height:14px;
}

/* Language menu (vertical, like stairs) */
.lang-switcher{
  position:relative;
}
.lang-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:80px;
  background:#FFF8F0;
  border:1px solid rgba(201,169,110,0.25);
  border-radius:8px;
  padding:4px;
  box-shadow:0 4px 16px rgba(44,24,16,0.1);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:all 0.25s ease;
  display:flex;
  flex-direction:column;
  gap:1px;
}
.lang-menu.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.lang-opt{
  display:block;
  width:100%;
  padding:5px 10px;
  border:none;
  background:transparent;
  text-align:left;
  font-family:'Noto Serif SC','Georgia',serif;
  font-size:11px;
  color:rgba(44,24,16,0.6);
  cursor:pointer;
  border-radius:5px;
  transition:all 0.2s ease;
}
.lang-opt:hover{
  background:rgba(201,169,110,0.08);
  color:rgba(44,24,16,0.8);
}
.lang-opt.active{
  color:#2C1810;
  font-weight:500;
  background:rgba(201,169,110,0.08);
}

/* Theme icon toggle */
#moonIcon{display:block}
#sunIcon{display:none}
html.dark #moonIcon{display:none}
html.dark #sunIcon{display:block}

/* ===== HERO SECTION (full width image) ===== */
.hero-section{
  position:relative;
  width:100%;
  overflow:hidden;
}
.hero-image-wrap{
  width:100%;
  position:relative;
}
.hero-image-wrap img{
  width:100%;
  height:auto;
  display:block;
  max-height:50vh;
}
/* LPTI logo - top left on hero image */
.hero-logo{
  position:absolute;
  top:6px;
  left:6px;
  font-family:'Georgia','Noto Serif SC',serif;
  font-size:14px;
  font-weight:700;
  letter-spacing:4px;
  color:rgba(0,0,0,0.8);
  z-index:2;
  text-shadow:none;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
html.dark .hero-logo{
  color:rgba(255,255,255,0.8);
  text-shadow:0 1px 3px rgba(0,0,0,0.7);
}
.hero-title{
  font-family:'Noto Serif SC','Georgia',serif;
  font-size:24px;
  font-weight:400;
  color:#2C1810;
  letter-spacing:6px;
  margin-bottom:8px;
  line-height:1.4;
}
.hero-subtitle{
  font-family:'Noto Serif SC','Georgia',serif;
  font-size:13px;
  color:rgba(44,24,16,0.4);
  letter-spacing:3px;
  line-height:1.6;
  font-weight:300;
}

/* ===== PAGE HEADER (Renaissance style) ===== */
.page-header{
  padding:24px 24px 16px;
  border-bottom:1px solid rgba(201,169,110,0.2);
  position:relative;
}
.page-header::after{
  content:'❦';
  position:absolute;
  bottom:-10px;
  left:50%;
  transform:translateX(-50%);
  font-size:14px;
  color:rgba(201,169,110,0.5);
  background:#FFF8F0;
  padding:0 8px;
}
html.dark .page-header::after{
  background:#1a1a2e;
}
.page-header .label{
  font-family:'Noto Serif SC','Georgia',serif;
  font-size:11px;
  color:rgba(44,24,16,0.25);
  letter-spacing:4px;
  text-transform:uppercase;
  margin-bottom:6px;
  font-weight:300;
}
.page-header h2{
  font-family:'Noto Serif SC','Georgia',serif;
  font-size:16px;
  font-weight:400;
  color:rgba(44,24,16,0.5);
  letter-spacing:3px;
}

/* ===== DIVIDER (Renaissance ornate) ===== */
.divider{
  height:1px;
  background:linear-gradient(to right, transparent, rgba(201,169,110,0.4), transparent);
  margin:0 24px;
  position:relative;
}

/* ===== SCROLL HINT ===== */
.scroll-hint{
  text-align:center;
  padding:24px 0 12px;
  color:rgba(44,24,16,0.2);
  font-family:'Noto Serif SC','Georgia',serif;
  font-size:12px;
  letter-spacing:4px;
  font-weight:300;
}

/* ===== PHASE LIST (Renaissance cards) ===== */
.phase-section{
  padding:0 20px 56px;
  max-width:500px;
  margin:0 auto;
}
.phase-item{
  display:flex;
  cursor:pointer;
  align-items:center;
  gap:16px;
  padding:20px 16px;
  margin-bottom:12px;
  border:1px solid rgba(201,169,110,0.2);
  border-radius:10px;
  background:rgba(255,255,255,0.6);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  transition:all 0.3s ease;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  box-shadow:0 2px 8px rgba(44,24,16,0.04);
  position:relative;
  overflow:hidden;
}
.phase-item::before{
  content:'';
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:linear-gradient(to bottom, #C9A96E, #8B7355);
  opacity:0;
  transition:opacity 0.3s ease;
}
.phase-item:hover{
  border-color:rgba(201,169,110,0.4);
  box-shadow:0 4px 16px rgba(44,24,16,0.08);
  transform:translateX(2px);
}
.phase-item:hover::before{
  opacity:1;
}
.phase-num{
  font-family:'Noto Serif SC','Georgia',serif;
  font-size:20px;
  color:rgba(201,169,110,0.6);
  width:36px;
  text-align:center;
  flex-shrink:0;
  font-weight:300;
}
.phase-name{
  font-family:'Noto Serif SC','Georgia',serif;
  font-size:15px;
  color:#2C1810;
  margin-bottom:4px;
  font-weight:400;
  letter-spacing:1px;
}
.phase-desc{
  font-size:12px;
  color:rgba(44,24,16,0.35);
  line-height:1.5;
  font-weight:300;
}
.phase-arrow{
  margin-left:auto;
  color:rgba(201,169,110,0.4);
  font-size:18px;
  flex-shrink:0;
  transition:transform 0.3s ease;
}
.phase-item:hover .phase-arrow{
  transform:translateX(3px);
  color:rgba(201,169,110,0.7);
}
a.phase-item{
  color:inherit;
  text-decoration:none;
  display:flex;
}
a.phase-item:hover{
  text-decoration:none;
}

/* ===== BOTTOM IMAGE SECTION ===== */
.bottom-section{
  padding:0 20px 36px;
  margin-top:36px;
  max-width:446px;
  margin-left:auto;
  margin-right:auto;
}
.bottom-image-wrap{
  width:100%;
  position:relative;
  overflow:hidden;
  border-radius:14px;
  box-shadow:0 4px 24px rgba(44,24,16,0.1);
  border:1px solid rgba(201,169,110,0.15);
}
.bottom-image-wrap img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  image-rendering:auto;
}
.bottom-caption{
  padding:18px 16px 10px;
  text-align:center;
}
.bottom-caption p{
  color:rgba(44,24,16,0.5);
  font-family:'Noto Serif SC','Georgia',serif;
  font-size:13px;
  letter-spacing:3px;
  line-height:1.7;
  font-weight:300;
  font-style:italic;
}

/* ===== FOOTER ===== */
.footer-hint{
  text-align:center;
  padding:16px 24px 32px;
  color:rgba(44,24,16,0.18);
  font-family:'Noto Serif SC','Georgia',serif;
  font-size:11px;
  letter-spacing:3px;
  border-top:1px solid rgba(201,169,110,0.15);
  font-weight:300;
}


/* Hero text below image */
.hero-text{
  padding:20px 24px 12px;
  text-align:center;
  background:#FFF8F0;
}
html.dark .hero-text{
  background:#1a1a2e;
}


/* ===== TOUCH OPTIMIZATION ===== */
@media(hover:none){
  .phase-item:hover{
    border-color:rgba(201,169,110,0.2);
    transform:none;
  }
  .phase-item:active{
    border-color:rgba(201,169,110,0.4);
    background:rgba(255,255,255,0.8);
    transform:scale(0.98);
  }
  .phase-item:active::before{
    opacity:1;
  }
}

/* ===== SMALL MOBILE (iPhone SE etc) ===== */
@media(max-width:374px){
  .hero-title{
    font-size:20px;
    letter-spacing:3px;
  }
  .hero-subtitle{
    font-size:11px;
  }
  .bottom-section{
    padding:0 16px 28px;
  }
  .phase-item{
    padding:16px 14px;
  }
}

/* ===== LARGER MOBILE (iPhone Plus/Pro Max) ===== */
@media(min-width:414px){
  .hero-title{
    font-size:26px;
  }
  .bottom-section{
    max-width:414px;
  }
}

/* ===== TABLET & DESKTOP ===== */
@media(min-width:768px){
  .hero-image-wrap img{
    height:60vh;
  }
  .hero-title{
    font-size:30px;
    letter-spacing:8px;
  }
  .phase-section{
    max-width:600px;
  }
  .bottom-section{
    max-width:500px;
  }
}

/* ===== DARK: Quiz & Result ===== */
html.dark #view-quiz { background:transparent; }
html.dark #quiz-question-text { color:#E8D5B7; }
html.dark #quiz-phase-label { color:rgba(201,169,110,0.4); }
html.dark #quiz-progress-label { color:rgba(201,169,110,0.4); }
html.dark #quiz-progress-bar { background:linear-gradient(90deg,#C9A96E,#8B7355) !important; }
html.dark #quiz-footer-hint { color:rgba(201,169,110,0.25); }
html.dark #result-card {
  background: linear-gradient(135deg, rgba(201,169,110,0.08), rgba(139,115,85,0.03));
  border-color: rgba(201,169,110,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

html.dark #result-tag {
  color: #C9A96E;
  border-color: rgba(201,169,110,0.4);
  background: rgba(201,169,110,0.1);
}

html.dark #result-name { color: #E8D5B7; }

html.dark #result-subtitle { color: rgba(232,213,183,0.5); }

html.dark .dim-row { }

html.dark .dim-label { color: rgba(232,213,183,0.65); }

html.dark .dim-score { color: rgba(232,213,183,0.4); }

html.dark .dim-bar-bg { background: rgba(232,213,183,0.08); }

html.dark .dim-bar-fill {
  background: linear-gradient(90deg, #C9A96E, #8B7355);
}

html.dark #result-hook {
  color: rgba(232,213,183,0.7);
  background: rgba(201,169,110,0.05);
  border-left-color: rgba(201,169,110,0.3);
}

html.dark #result-share-line { color: #C9A96E; }

/* ===== GENDER SELECT VIEW ===== */
#view-gender {
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

#view-gender .gender-title {
  font-family: 'Georgia', 'Noto Serif SC', serif;
  font-size: 22px;
  color: #2C1810;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

#view-gender .gender-desc {
  font-size: 14px;
  color: rgba(44, 24, 16, 0.6);
  margin-bottom: 36px;
  max-width: 280px;
  line-height: 1.6;
}

#view-gender .gender-btns {
  display: flex;
  gap: 16px;
}

#view-gender .gender-btn {
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 110, 0.4);
  background: rgba(201, 169, 110, 0.08);
  font-family: 'Georgia', 'Noto Serif SC', serif;
  font-size: 15px;
  color: #2C1810;
  cursor: pointer;
  transition: all 0.2s ease;
}

#view-gender .gender-btn:hover {
  background: rgba(201, 169, 110, 0.18);
  border-color: rgba(201, 169, 110, 0.6);
  transform: translateY(-2px);
}

/* ===== HIDDEN QUIZ VIEW ===== */
#view-quiz-hidden {
  min-height: 100vh;
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease;
}

#hidden-pages-container {
  margin-top: 20px;
}

/* ===== RESULT ANALYSIS ===== */
#result-analysis {
  display: none;
  margin: 16px 0 0 0;
  padding: 16px;
  background: rgba(201, 169, 110, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 110, 0.12);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(44, 24, 16, 0.8);
  text-align: left;
}

/* Dark mode support */
html.dark #view-gender .gender-title { color: #F5F0E8; }
html.dark #view-gender .gender-desc { color: rgba(245, 240, 232, 0.6); }
html.dark #view-gender .gender-btn { color: #F5F0E8; border-color: rgba(201, 169, 110, 0.3); }
html.dark #view-gender .gender-btn:hover { background: rgba(201, 169, 110, 0.15); }
html.dark #result-analysis { background: rgba(201, 169, 110, 0.08); color: rgba(245, 240, 232, 0.8); }

/* ===== HIDDEN QUIZ OPTIONS ===== */
.hq-opt {
  display: flex;
  align-items: flex-start;
  padding: 10px 12px;
  margin-top: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  line-height: 1.5;
  font-family: Georgia, "Noto Serif SC", serif;
  letter-spacing: 0.3px;
  background: rgba(44, 24, 16, 0.02);
  border: 1px solid rgba(44, 24, 16, 0.06);
  color: rgba(44, 24, 16, 0.7);
}

.hq-opt:hover {
  background: rgba(201, 169, 110, 0.08);
  border-color: rgba(201, 169, 110, 0.25);
}

.hq-opt-selected {
  background: rgba(201, 169, 110, 0.15) !important;
  border-color: rgba(201, 169, 110, 0.4) !important;
  color: #2C1810 !important;
}

.hq-opt-letter {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(44, 24, 16, 0.06);
  color: rgba(44, 24, 16, 0.5);
}

.hq-opt-letter-selected {
  background: #C9A96E;
  color: #FFF8F0;
}

.hq-opt-text {
  flex: 1;
}

/* Dark mode */
html.dark .hq-opt { background: rgba(245,240,232,0.03); border-color: rgba(245,240,232,0.08); color: rgba(245,240,232,0.7); }
html.dark .hq-opt:hover { background: rgba(201,169,110,0.1); border-color: rgba(201,169,110,0.25); }
html.dark .hq-opt-selected { background: rgba(201,169,110,0.2) !important; border-color: rgba(201,169,110,0.5) !important; color: #F5F0E8 !important; }
html.dark .hq-opt-letter { background: rgba(245,240,232,0.08); color: rgba(245,240,232,0.5); }
html.dark .hq-opt-letter-selected { background: #C9A96E; color: #FFF8F0; }
