* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f0f0f;
  --bg2: #1a1a1a;
  --bg3: #242424;
  --border: #333;
  --accent: #e8c547;
  --accent2: #c0392b;
  --text: #e8e8e8;
  --text-muted: #888;
  --font-main: 'Georgia', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="light"] {
  --bg: #f5f5f0;
  --bg2: #ffffff;
  --bg3: #eeede8;
  --border: #ddd;
  --text: #1a1a1a;
  --text-muted: #666;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.7;
  min-height: 100vh;
}

/* HEADER */
header {
  background: var(--bg2);
  border-bottom: 2px solid var(--accent);
  padding: 16px 24px;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.logo {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.logo-dot {
  color: var(--text-muted);
  font-weight: 400;
}

.tagline {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
}

/* MAIN */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO */
.hero {
  padding: 60px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: normal;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text);
}

.accent {
  color: var(--accent);
  font-style: italic;
}

.subtitle {
  font-family: var(--font-ui);
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* SEARCH BOX */
.search-box {
  display: flex;
  gap: 0;
  max-width: 580px;
  margin: 0 auto 24px;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--accent);
}

.search-box input {
  flex: 1;
  background: var(--bg2);
  border: none;
  padding: 16px 20px;
  font-size: 17px;
  font-family: var(--font-main);
  color: var(--text);
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  background: var(--accent);
  border: none;
  padding: 16px 28px;
  font-size: 16px;
  font-family: var(--font-ui);
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.search-box button:hover {
  background: #f5d060;
}

.search-box button:disabled {
  background: #555;
  color: #888;
  cursor: not-allowed;
}

/* EXAMPLES */
.examples {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.examples-label {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
}

.example-tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 0.15s;
}

.example-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* RESULT */
.result-section {
  margin-bottom: 60px;
}

.result-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

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

.result-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}

.result-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.result-icon {
  font-size: 20px;
}

.result-header h2 {
  font-size: 22px;
  font-weight: normal;
  color: var(--accent);
  text-transform: capitalize;
}

.result-meta {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

.result-content {
  padding: 28px;
  font-size: 16px;
  line-height: 1.8;
}

.result-content h3 {
  font-size: 15px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin: 22px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.result-content h3:first-child {
  margin-top: 0;
}

.result-content p {
  margin-bottom: 12px;
  color: #d0d0d0;
}

.result-content b {
  color: var(--text);
}

.result-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.result-footer button {
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.share-btn {
  background: var(--accent);
  color: #000;
  border-color: var(--accent) !important;
  font-weight: 700;
}

.share-btn:hover {
  background: #f5d060;
}

.copy-btn {
  background: transparent;
  color: var(--text-muted);
}

.copy-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.again-btn {
  background: transparent;
  color: var(--text-muted);
}

.again-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* ERROR */
.error-section {
  margin-bottom: 40px;
}

.error-card {
  background: #1a0a0a;
  border: 1px solid var(--accent2);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
}

.error-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.error-card p {
  font-family: var(--font-ui);
  color: #e07070;
  margin-bottom: 16px;
}

.error-card button {
  background: var(--accent2);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-ui);
  cursor: pointer;
}

/* ABOUT */
.about {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.about h2 {
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 32px;
  color: var(--text-muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.about-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.about-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 12px;
}

.about-card h3 {
  font-family: var(--font-ui);
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.about-card p {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
}

/* PROFESSION PAGE */
.profession-page {
  padding: 32px 0 60px;
}

.breadcrumb {
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 14px;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.result-header h1 {
  font-size: 26px;
  font-weight: normal;
  color: var(--accent);
  text-transform: capitalize;
}

.again-btn-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.15s;
}

.again-btn-link:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* PROFESSIONS GRID */
.all-professions {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.all-professions h2 {
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-family: var(--font-ui);
}

.count {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 14px;
  color: var(--text-muted);
  vertical-align: middle;
}

.professions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.professions-grid.large {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.profession-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  transition: all 0.15s;
}

.profession-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.profession-card-emoji {
  font-size: 28px;
}

.profession-card-title {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.profession-card-desc {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.profession-card-motto {
  font-family: var(--font-main);
  font-size: 11px;
  color: var(--accent);
  font-style: italic;
  line-height: 1.4;
  display: none;
  margin-top: 4px;
}

.profession-card:hover .profession-card-motto {
  display: block;
}

/* OTHER PROFESSIONS */
.other-professions {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.other-professions h2 {
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-family: var(--font-ui);
}

/* SEARCH ERROR */
.search-error {
  font-family: var(--font-ui);
  font-size: 14px;
  color: #e07070;
  margin-top: 12px;
}

.search-error a {
  color: var(--accent);
}

/* LOGO LINK */
.logo {
  text-decoration: none;
}

/* PROS CONS */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.pros-block, .cons-block {
  background: var(--bg3);
  border-radius: 8px;
  padding: 16px;
}

.pros-block {
  border-left: 3px solid #4caf50;
}

.cons-block {
  border-left: 3px solid #e53935;
}

.pros-title, .cons-title {
  font-size: 13px !important;
  font-family: var(--font-ui) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 12px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.pros-title {
  color: #4caf50 !important;
}

.cons-title {
  color: #e53935 !important;
}

.pros-list, .cons-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pros-list li, .cons-list li {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.pros-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: 700;
}

.cons-list li::before {
  content: '−';
  position: absolute;
  left: 0;
  color: #e53935;
  font-weight: 700;
}

/* HEADER RIGHT */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-game-btn, .header-random-btn {
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s;
  white-space: nowrap;
}

.header-game-btn:hover { border-color: var(--accent); color: var(--accent); }
.header-random-btn:hover { border-color: var(--text-muted); color: var(--text); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.15s;
  flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--accent); }

/* SEARCH DROPDOWN */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  overflow: hidden;
}

.search-box { position: relative; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--bg3); }

.dropdown-emoji { font-size: 20px; flex-shrink: 0; }

.dropdown-title {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.dropdown-desc {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
  text-align: right;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PROFESSION OF DAY */
.potd-section {
  margin-bottom: 40px;
}

.potd-label {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.potd-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 20px 24px;
  text-decoration: none;
  transition: all 0.15s;
}

.potd-card:hover { background: var(--bg3); }

.potd-emoji { font-size: 40px; flex-shrink: 0; }

.potd-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 4px;
}

.potd-desc {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-muted);
}

.potd-arrow {
  margin-left: auto;
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

/* CATEGORY FILTER */
.categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cat-btn {
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.cat-btn:hover { border-color: var(--accent); color: var(--accent); }
.cat-btn.active { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 700; }
.cat-btn .count { opacity: 0.7; font-size: 11px; }

/* MOTTO */
.profession-motto {
  margin: 0 28px 0;
  padding: 16px 20px;
  background: var(--bg3);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-main);
  font-size: 17px;
  font-style: italic;
  color: var(--accent);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .profession-motto { margin: 0 16px 0; }
}

/* VOTE */
.vote-section {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.vote-btn {
  font-family: var(--font-ui);
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 24px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
}

.vote-btn:hover { background: var(--accent); color: #000; }
.vote-btn:disabled { border-color: var(--border); color: var(--text-muted); cursor: default; background: transparent; }

.vote-count {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
}

/* BREADCRUMB SEP */
.breadcrumb-sep { margin: 0 6px; color: var(--border); }

/* CAT PAGE */
.cat-page-title {
  font-size: 32px;
  font-weight: normal;
  color: var(--accent);
  margin-bottom: 8px;
}

.cat-page-sub {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ALL LINK */
.all-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.all-link:hover { text-decoration: underline; }

/* FOOTER */
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-donate {
  color: var(--accent) !important;
  font-weight: 600;
}

/* GAME PAGE */
.game-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

.game-header {
  text-align: center;
  margin-bottom: 32px;
}

.game-header h1 {
  font-size: 32px;
  font-weight: normal;
  margin-bottom: 8px;
}

.game-subtitle {
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.game-score {
  font-family: var(--font-ui);
  font-size: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.game-streak {
  color: #ff6b00;
  font-weight: 700;
}

.game-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
}

.game-clue {
  padding: 32px;
  border-bottom: 1px solid var(--border);
}

.clue-number {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.clue-body {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
}

.game-options {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-btn {
  font-family: var(--font-ui);
  font-size: 15px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}

.option-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--bg2); }
.option-btn.option-correct { border-color: #4caf50; background: rgba(76,175,80,0.1); color: #4caf50; }
.option-btn.option-wrong { border-color: #e53935; background: rgba(229,57,53,0.1); color: #e53935; }

.game-feedback {
  padding: 16px 24px;
  font-family: var(--font-ui);
  font-size: 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.game-feedback a { color: var(--accent); }

.game-next-btn {
  display: block;
  width: calc(100% - 48px);
  margin: 0 24px 24px;
  padding: 14px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: background 0.15s;
}

.game-next-btn:hover { background: #f5d060; }

.game-over {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.game-over-emoji { font-size: 64px; margin-bottom: 16px; }
.game-over h2 { font-size: 28px; font-weight: normal; margin-bottom: 12px; }

.game-over-score {
  font-family: var(--font-ui);
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 32px;
}

.game-restart-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  margin-bottom: 16px;
}

.game-home-link {
  display: block;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 12px;
}

.game-home-link:hover { color: var(--text); }

/* FAV BUTTON */
.fav-btn {
  font-family: var(--font-ui);
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.fav-btn:hover { border-color: #e53935; color: #e53935; }
.fav-btn.fav-active { border-color: #e53935; color: #e53935; background: rgba(229,57,53,0.08); }

/* TOP PAGE */
.top-page { max-width: 680px; margin: 0 auto; padding: 32px 0 60px; }
.top-list { display: flex; flex-direction: column; gap: 4px; }
.top-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  text-decoration: none; transition: all 0.15s;
}
.top-item:hover { border-color: var(--accent); }
.top-rank { font-family: var(--font-ui); font-size: 18px; font-weight: 700; color: var(--text-muted); width: 28px; flex-shrink: 0; }
.top-emoji { font-size: 28px; flex-shrink: 0; }
.top-info { flex: 1; min-width: 0; }
.top-title { font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--text); display: block; }
.top-desc { font-family: var(--font-ui); font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.top-votes { text-align: right; flex-shrink: 0; }
.top-count { font-family: var(--font-ui); font-size: 20px; font-weight: 700; color: var(--accent); display: block; }
.top-label { font-family: var(--font-ui); font-size: 11px; color: var(--text-muted); display: block; }
.top-bar { width: 80px; height: 4px; background: var(--bg3); border-radius: 2px; margin-top: 4px; }
.top-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; }

/* COMPARISON PAGE */
.cmp-page { max-width: 900px; margin: 0 auto; padding: 32px 0 60px; }
.cmp-selectors {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 32px;
}
.cmp-selector { position: relative; flex: 1; min-width: 180px; }
.cmp-selector input {
  width: 100%; padding: 12px 16px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 15px; font-family: var(--font-ui);
}
.cmp-selector input:focus { outline: none; border-color: var(--accent); }
.cmp-dropdown {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg2); border: 1px solid var(--accent);
  border-top: none; border-radius: 0 0 8px 8px; z-index: 100;
}
.cmp-drop-item {
  padding: 10px 14px; font-family: var(--font-ui); font-size: 14px;
  color: var(--text); cursor: pointer; border-bottom: 1px solid var(--border);
}
.cmp-drop-item:hover { background: var(--bg3); }
.cmp-vs { font-size: 20px; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.cmp-go-btn {
  padding: 12px 24px; background: var(--accent); border: none;
  border-radius: 8px; font-family: var(--font-ui); font-size: 15px;
  font-weight: 700; color: #000; cursor: pointer;
}
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cmp-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-top: 3px solid var(--accent); border-radius: 10px; padding: 24px;
}
.cmp-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.cmp-emoji { font-size: 36px; flex-shrink: 0; }
.cmp-title { font-size: 20px; color: var(--accent); font-weight: bold; }
.cmp-desc { font-family: var(--font-ui); font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.cmp-section { margin-bottom: 16px; }
.cmp-section h4 { font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.cmp-section ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cmp-section li { font-family: var(--font-ui); font-size: 13px; color: var(--text-muted); padding-left: 14px; position: relative; }
.cmp-section li::before { content: '•'; position: absolute; left: 0; color: var(--accent); }
.cmp-link { display: inline-block; margin-top: 12px; font-family: var(--font-ui); font-size: 13px; color: var(--accent); text-decoration: none; }
.cmp-hint { text-align: center; color: var(--text-muted); font-family: var(--font-ui); padding: 60px 0; font-size: 18px; }
.cmp-empty { color: var(--text-muted); font-family: var(--font-ui); text-align: center; padding: 40px; }

/* TEST PAGE */
.test-page { max-width: 680px; margin: 0 auto; padding: 32px 0 60px; }
.test-header { text-align: center; margin-bottom: 32px; }
.test-header h1 { font-size: 28px; font-weight: normal; margin-bottom: 8px; }
.test-progress-wrap { display: flex; align-items: center; gap: 12px; max-width: 400px; margin: 16px auto 0; }
.test-progress-bar { flex: 1; height: 6px; background: var(--bg3); border-radius: 3px; }
.test-progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; }
.test-progress-label { font-family: var(--font-ui); font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.test-card { background: var(--bg2); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 12px; overflow: hidden; }
.test-question { padding: 28px 28px 20px; font-size: 20px; line-height: 1.5; }
.test-options { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.test-option-btn {
  padding: 14px 18px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg3); color: var(--text); font-family: var(--font-ui);
  font-size: 15px; cursor: pointer; text-align: left; transition: all 0.15s;
}
.test-option-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--bg2); }
.test-option-btn.test-option-selected { border-color: var(--accent); background: rgba(232,197,71,0.1); color: var(--accent); }
.test-result-header { text-align: center; margin-bottom: 24px; }
.test-result-header h2 { font-size: 26px; font-weight: normal; margin-bottom: 8px; }
.test-result-list { display: flex; flex-direction: column; gap: 10px; }
.test-result-item {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; transition: all 0.15s;
}
.test-result-item:hover { border-color: var(--accent); }
.test-medal { font-size: 24px; flex-shrink: 0; }
.test-res-emoji { font-size: 32px; flex-shrink: 0; }
.test-res-info { flex: 1; min-width: 0; }
.test-res-title { font-family: var(--font-ui); font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.test-res-desc { font-family: var(--font-ui); font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.test-res-bar { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.test-res-pct { font-family: var(--font-ui); font-size: 18px; font-weight: 700; color: var(--accent); flex-shrink: 0; }

@media (max-width: 600px) {
  .cmp-grid { grid-template-columns: 1fr; }
  .cmp-selectors { flex-direction: column; }
  .cmp-vs { display: none; }
}

@media (max-width: 600px) {
  .game-options { grid-template-columns: 1fr; }
  .header-game-btn { display: none; }
  .dropdown-desc { display: none; }
  .potd-card { padding: 14px 16px; gap: 12px; }
  .categories-filter { gap: 6px; }
  .cat-btn { font-size: 12px; padding: 5px 10px; }
  .footer-links { gap: 12px; }
}

/* LOADING SKELETON */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  height: 16px;
  margin-bottom: 10px;
}

.skeleton.wide { width: 100%; }
.skeleton.medium { width: 75%; }
.skeleton.short { width: 50%; }
.skeleton.title { height: 22px; width: 40%; margin-bottom: 16px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* MOBILE */
@media (max-width: 600px) {
  .search-box {
    flex-direction: column;
    border-radius: 8px;
  }

  .search-box input {
    border-radius: 8px 8px 0 0;
  }

  .search-box button {
    border-radius: 0 0 8px 8px;
    padding: 14px;
  }

  .result-content {
    padding: 20px;
  }

  .result-footer {
    padding: 14px 20px;
  }

  .header-inner {
    flex-direction: column;
    gap: 4px;
  }
}
