/* ===== 主题变量 ===== */
:root {
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI",
    "Noto Sans Khmer", "Hiragino Sans GB", sans-serif;
}

/* 粉色(默认,参照 freephotobooth.online) */
:root,
[data-theme="pink"] {
  --bg: #fff7fb;
  --bg-grad-top: #ffe3ef;
  --card: #ffffff;
  --card-alt: #fff0f6;
  --text: #4a3540;
  --muted: #9a8390;
  --heading: #e8558b;
  --primary: #ff7aa8;
  --primary-strong: #e8558b;
  --primary-soft: #ffd7e6;
  --border: #ffe0ec;
  --header-bg: rgba(255, 247, 251, 0.85);
  --shadow: 0 10px 30px rgba(232, 85, 139, 0.12);
  --shadow-sm: 0 4px 14px rgba(232, 85, 139, 0.1);
  --correct: #6fc79b;
  --present: #f4c95d;
  --absent: #cbd0d9;
}

/* 白色(简洁浅色) */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-grad-top: #f2f3f5;
  --card: #ffffff;
  --card-alt: #f4f5f7;
  --text: #20242b;
  --muted: #8a919c;
  --heading: #1b1e24;
  --primary: #ff6fa5;
  --primary-strong: #e8558b;
  --primary-soft: #ffe1ec;
  --border: #e6e8ec;
  --header-bg: rgba(255, 255, 255, 0.82);
  --shadow: 0 10px 30px rgba(30, 30, 40, 0.1);
  --shadow-sm: 0 4px 14px rgba(30, 30, 40, 0.08);
  --correct: #67bd8f;
  --present: #e6b84b;
  --absent: #c2c7d0;
}

/* 黑夜 */
[data-theme="dark"] {
  --bg: #181a20;
  --bg-grad-top: #23262f;
  --card: #22252e;
  --card-alt: #2a2e38;
  --text: #eceef2;
  --muted: #9aa1ac;
  --heading: #ffffff;
  --primary: #ff8fb8;
  --primary-strong: #ff9fc2;
  --primary-soft: #3a2c34;
  --border: #343a45;
  --header-bg: rgba(24, 26, 32, 0.85);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --correct: #5cb98c;
  --present: #d8ad4a;
  --absent: #5b616c;
}

/* 高对比度 / 色盲友好(叠加在任意主题之上) */
body.hc {
  --correct: #2e7d32;
  --present: #1565c0;
  --absent: #757575;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap-narrow {
  max-width: 720px;
}
.hidden {
  display: none !important;
}

/* ===== 按钮 ===== */
.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.96);
}
.btn-primary {
  background: linear-gradient(135deg, #ff9ec4, var(--primary-strong));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(232, 85, 139, 0.35);
}
.btn-ghost {
  background: var(--card-alt);
  color: var(--primary-strong);
  border: 1.5px solid var(--border);
}
.btn-lg {
  padding: 15px 34px;
  font-size: 17px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  color: var(--heading);
}
.brand-emoji {
  font-size: 22px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.nav-link:hover {
  color: var(--primary-strong);
  background: var(--card-alt);
}
.lang-select {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-strong);
  background: var(--card-alt);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.theme-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px;
}
.theme-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--dot);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s, box-shadow 0.12s;
}
.theme-dot:hover {
  transform: scale(1.12);
}
.theme-dot.active {
  border-color: var(--primary-strong);
  box-shadow: 0 0 0 2px var(--primary-soft);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--bg-grad-top), var(--bg) 70%);
  padding: 54px 0 40px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(30px, 7vw, 48px);
  margin: 0 0 12px;
  color: var(--heading);
  letter-spacing: 1px;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: clamp(15px, 2.5vw, 17px);
}
.hero-privacy {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.hero-privacy .lock {
  margin-right: 2px;
}

/* ===== 游戏区 ===== */
.game {
  padding: 8px 0 20px;
}
.game-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  max-width: 640px;
  margin: 0 auto;
}
.game-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.puzzle-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pnav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--card-alt);
  color: var(--primary-strong);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, opacity 0.2s;
}
.pnav:hover:not(:disabled) {
  background: var(--primary-soft);
}
.pnav:active:not(:disabled) {
  transform: scale(0.9);
}
.pnav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.puzzle-no {
  font-weight: 800;
  color: var(--heading);
  font-size: 15px;
  min-width: 84px;
  text-align: center;
}
.attempts {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.result-view-btn {
  width: 100%;
  margin-top: 10px;
}

/* 往期弹窗 */
.archive-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.archive-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 8px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 2px;
}
.archive-cell {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--card-alt);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.1s;
}
.archive-cell:active {
  transform: scale(0.92);
}
.archive-cell.won {
  background: var(--correct);
  color: #fff;
  border-color: transparent;
}
.archive-cell.lost {
  background: var(--absent);
  color: #fff;
  border-color: transparent;
}
.archive-cell.today {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.archive-cell.current {
  box-shadow: 0 0 0 2px var(--primary-strong) inset;
}

/* 词库弹窗 */
.modal-wide {
  max-width: 560px;
}
.lib-search {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card-alt);
  color: var(--text);
  outline: none;
  margin-bottom: 10px;
}
.lib-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.lib-count {
  font-size: 12px;
  color: var(--muted);
  text-align: left;
  margin-bottom: 8px;
  min-height: 16px;
}
.lib-list {
  max-height: 58vh;
  overflow-y: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lib-row {
  background: var(--card-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.lib-row-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.lib-word {
  font-weight: 800;
  color: var(--text);
  font-size: 16px;
  letter-spacing: 2px;
}
.lib-py {
  color: var(--primary-strong);
  font-weight: 600;
  font-size: 13px;
}
.lib-mean {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  line-height: 1.45;
}
.lib-empty {
  text-align: center;
  color: var(--muted);
  padding: 24px 0;
}

/* 猜测网格 */
.board {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 4px;
}
.row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: var(--card-alt);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 3px;
  overflow: hidden;
}
.cell-top {
  display: flex;
  gap: 3px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}
.part {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 0;
}
.plabel {
  font-size: clamp(7px, 1.7vw, 9px);
  line-height: 1;
  color: var(--muted);
  font-weight: 700;
  opacity: 0.75;
}
.pval {
  font-size: clamp(10px, 2.6vw, 13px);
  font-weight: 700;
  line-height: 1;
  border-radius: 5px;
  padding: 2px 4px;
  min-width: 14px;
  text-align: center;
  color: var(--muted);
  background: transparent;
}
.cell .hz {
  font-size: clamp(22px, 7vw, 34px);
  font-weight: 800;
  line-height: 1;
  border-radius: 6px;
  padding: 0 4px;
}
.tone-part {
  margin-top: 0;
}
.tone-pill {
  min-width: 18px;
}

/* 三态配色 */
.correct {
  background: var(--correct);
  color: #fff;
}
.present {
  background: var(--present);
  color: #fff;
}
.absent {
  background: var(--absent);
  color: #fff;
}
.cell .hz.correct {
  box-shadow: 0 0 0 2px var(--correct);
}

/* 翻牌动画 */
.row.reveal .cell {
  animation: pop 0.34s ease both;
}
.row.reveal .cell:nth-child(1) {
  animation-delay: 0.02s;
}
.row.reveal .cell:nth-child(2) {
  animation-delay: 0.12s;
}
.row.reveal .cell:nth-child(3) {
  animation-delay: 0.22s;
}
.row.reveal .cell:nth-child(4) {
  animation-delay: 0.32s;
}
@keyframes pop {
  0% {
    transform: scale(0.7) rotateX(-40deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .row.reveal .cell {
    animation: none;
  }
}

/* 输入行 */
.input-row {
  display: flex;
  gap: 8px;
}
.guess-input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 18px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card-alt);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.guess-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.msg {
  min-height: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-strong);
  margin-top: 10px;
}
.msg.shake {
  animation: shake 0.4s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.meaning-box {
  margin-top: 8px;
  background: var(--card-alt);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
}
.meaning-py {
  font-weight: 700;
  color: var(--primary-strong);
  font-size: 14px;
}
.meaning-text {
  color: var(--text);
  font-size: 14px;
}

/* 图例 */
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.legend-title {
  font-weight: 700;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sw {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}
.sw.correct { background: var(--correct); }
.sw.present { background: var(--present); }
.sw.absent { background: var(--absent); }
.hc-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}

/* ===== 通用分区 ===== */
.section {
  padding: 48px 0;
}
.section-alt {
  background: var(--card-alt);
}
.section-title {
  text-align: center;
  font-size: clamp(22px, 4vw, 30px);
  color: var(--heading);
  margin: 0 0 32px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.card-emoji {
  font-size: 34px;
  margin-bottom: 10px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 18px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
  color: var(--text);
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 12px;
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.site-footer {
  padding: 30px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74, 53, 64, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
  animation: fade 0.2s ease;
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 24px 22px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  animation: rise 0.25s ease;
}
@keyframes rise {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal-title {
  color: var(--heading);
  margin: 0 0 18px;
}
.result-emoji {
  font-size: 52px;
}
.result-title {
  margin: 6px 0 2px;
  color: var(--heading);
}
.result-sub {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.result-answer {
  background: var(--card-alt);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
}
.result-answer-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.result-word {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 4px;
}
.result-py {
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 14px;
}
.result-meaning {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.result-grid {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 2px;
  margin-bottom: 16px;
  white-space: pre;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
}
.result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.next-timer {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
#nextTimer {
  font-weight: 700;
  color: var(--primary-strong);
  font-variant-numeric: tabular-nums;
}

/* 统计 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--heading);
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
}
.dist-title {
  font-size: 15px;
  margin: 0 0 12px;
  color: var(--text);
}
.dist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.dist-idx {
  width: 20px;
  text-align: right;
  color: var(--muted);
  font-weight: 700;
}
.dist-bar {
  height: 20px;
  background: linear-gradient(135deg, #ff9ec4, var(--primary-strong));
  border-radius: 6px;
  min-width: 22px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6px;
  transition: width 0.4s ease;
}
.dist-bar.zero {
  background: var(--absent);
}
.dist-bar.cur {
  background: linear-gradient(135deg, #7be0ad, var(--correct));
}

/* ===== 声韵速查表(侧边抽屉) ===== */
.cheatsheet {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: flex;
  align-items: center;
  max-width: 100vw;
}
.cheat-toggle {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 7px;
  background: linear-gradient(135deg, #ff9ec4, var(--primary-strong));
  color: #fff;
  border: none;
  border-radius: 14px 0 0 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}
.cheat-toggle-icon {
  font-size: 15px;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}
.cheat-toggle-arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.28s ease;
}
.cheatsheet:not(.collapsed) .cheat-toggle-arrow {
  transform: rotate(180deg);
}
.cheat-body {
  flex: 0 0 auto;
  width: 264px;
  overflow: hidden;
  transition: width 0.28s ease;
}
.cheatsheet.collapsed .cheat-body {
  width: 0;
}
.cheat-panel {
  width: 264px;
  box-sizing: border-box;
  max-height: 82vh;
  overflow-y: auto;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 16px 0 0 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px 16px;
}
.cheat-title {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: 15px;
  text-align: center;
}
.cheat-section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin: 12px 0 6px;
  letter-spacing: 1px;
}
.cheat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cheat-final-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.cheat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--card-alt);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
}
.cheat-chip:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
}
.cheat-tag {
  min-width: 24px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-strong);
  text-align: center;
}
.cheat-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
@media (max-width: 480px) {
  .cheat-body,
  .cheat-panel {
    width: 220px;
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(40, 44, 56, 0.96);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 60;
  box-shadow: var(--shadow);
  animation: rise 0.25s ease;
}

/* ===== 响应式 ===== */
@media (max-width: 720px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .nav-link {
    padding: 8px 6px;
    font-size: 13px;
  }
  .brand-name {
    display: none;
  }
  .hide-mobile {
    display: none;
  }
}
@media (max-width: 420px) {
  .game-card {
    padding: 16px 14px;
  }
  .input-row {
    flex-wrap: wrap;
  }
  .guess-input {
    flex: 1 1 100%;
  }
  .input-row .btn {
    flex: 1;
  }
}
