/* Doushouqi - Warm Parchment Theme */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f0e1;
  color: #3e2723;
  min-height: 100vh;
  padding-bottom: 56px;
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(139,115,85,0.15);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  height: 56px;
}
.header-inner {
  max-width: 1440px; margin: 0 auto;
  height: 100%; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: inherit;
}
.logo-img {
  width: 32px; height: 32px; border-radius: 8px; display: block; flex-shrink: 0;
}
.footer-logo-img { border-radius: 50%; }
.logo-text { font-size: 1.1rem; font-weight: 600; color: #3e2723; }

.desktop-nav { display: none; align-items: center; gap: 24px; }
@media (min-width: 1024px) { .desktop-nav { display: flex; } }

.nav-link {
  font-size: 0.875rem; color: #8d6e63; text-decoration: none;
  display: flex; align-items: center; gap: 4px;
  transition: color 0.2s;
}
.nav-link:hover { color: #6b8e5a; }

.btn-outline {
  padding: 6px 14px; border-radius: 8px;
  border: 1px solid rgba(139,115,85,0.2);
  background: #f5f0e1; color: #3e2723;
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.btn-outline:hover { background: #efe9d6; }

/* ===== Game Section ===== */
.game-section {
  display: flex; flex-direction: column;
  height: calc(100dvh - 56px - 56px); /* mobile: minus header + tabbar */
  background: #f5f0e1;
  overflow: hidden;
}
@media (min-width: 768px) {
  .game-section { flex-direction: row; height: calc(100dvh - 56px); }
}

/* Board column */
.board-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: 6px 8px 8px;
  overflow: hidden;
  min-height: 0;
}
@media (min-width: 768px) { .board-col { padding: 20px 24px; } }

.board-area {
  flex: 1; width: 100%; display: flex;
  align-items: center; justify-content: center;
  min-height: 0;
}

/* ????????????????? */
.board-side-tags {
  display: none;
  position: absolute; left: 50%; bottom: calc(100% + 6px);
  transform: translateX(-50%);
  z-index: 3;
  align-items: center; gap: 14px;
  user-select: none; pointer-events: none;
}
.board-side-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 600; line-height: 1;
  letter-spacing: 0.04em; opacity: 0.65;
  white-space: nowrap;
}
.board-side-tag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.tag-ai { color: #2c3e50; }
.tag-ai::before { background: #2c3e50; }
.tag-you { color: #c0392b; }
.tag-you::before { background: #c0392b; }
@media (max-width: 767px) {
  .board-side-tags { display: flex; }
}

/* board-wrap uses inline-flex so its width matches the canvas exactly,
   allowing the toggle arrow to be positioned at the real board edge */
.board-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#dsqBoard {
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  display: block;
}

/* Panel toggle arrow: absolute, hugs the right edge of the board frame */
.panel-toggle-arrow {
  display: none;
  position: absolute;
  right: -15px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 48px;
  background: white;
  border: 1px solid rgba(139,115,85,0.2);
  border-left: none;
  border-radius: 0 12px 12px 0;
  align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 3px 0 8px rgba(0,0,0,0.08);
  z-index: 20;
  transition: background 0.2s;
}
@media (min-width: 768px) { .panel-toggle-arrow { display: flex; } }
.panel-toggle-arrow:hover { background: #f9f6f0; }
.panel-toggle-arrow svg { color: #8d6e63; transition: transform 0.3s; }

/* Ad slot */
.ad-slot-wrap {
  width: 100%; max-width: 800px;
  flex-shrink: 0;
}

.ad-slot { display: none; }
.ad-slot:not(:empty) {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  max-height: 60px;
  margin: 10px auto;
  color: #8d6e63;
  font-size: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.4);
  border: 1px dashed rgba(139,115,85,0.2);
}

/* ===== Right Control Panel (desktop, collapsible) ===== */
.control-panel {
  display: none;
  flex-direction: column; gap: 16px;
  width: 340px; flex-shrink: 0;
  border-left: 1px solid rgba(139,115,85,0.1);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  padding: 20px 16px;
  overflow-y: auto;
  transition: margin-right 0.3s ease, opacity 0.3s ease;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: #d4a574 transparent;
}
@media (min-width: 768px) { .control-panel { display: flex; } }
.control-panel::-webkit-scrollbar { width: 5px; }
.control-panel::-webkit-scrollbar-track { background: rgba(139,115,85,0.06); border-radius: 3px; }
.control-panel::-webkit-scrollbar-thumb { background: #d4a574; border-radius: 3px; }
.control-panel::-webkit-scrollbar-thumb:hover { background: #c49060; }

.control-panel[data-open="false"] { margin-right: -340px; opacity: 0; pointer-events: none; }
.control-panel[data-open="true"]  { margin-right: 0; opacity: 1; pointer-events: auto; }

.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.panel-title { font-size: 1.1rem; font-weight: 700; color: #3e2723; }
.close-btn {
  background: #f0ece4; border: none; cursor: pointer; color: #8d6e63;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s; flex-shrink: 0;
}
.close-btn:hover { background: #e4ddd3; color: #3e2723; }

/* ===== Cards ===== */
.card {
  background: white; border-radius: 12px;
  border: 1px solid rgba(139,115,85,0.1);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Status card */
.status-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.turn-info { display: flex; align-items: center; gap: 8px; }
.turn-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #c0392b; animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.turn-label { font-weight: 600; font-size: 1rem; }

.sound-toggle {
  background: none; border: none; cursor: pointer;
  color: #8d6e63; display: flex; align-items: center;
  transition: color 0.2s; padding: 4px;
}
.sound-toggle:hover { color: #6b8e5a; }

/* Difficulty */
.difficulty-bar {
  display: flex; gap: 4px;
  background: #f5f0e1; border-radius: 8px;
  padding: 4px; margin-bottom: 14px;
}
.diff-btn {
  flex: 1; padding: 6px 8px; border-radius: 6px; border: none;
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer; background: transparent; color: #8d6e63;
  transition: all 0.2s;
}
.diff-btn:hover { color: #3e2723; }
.diff-btn.active { background: white; color: #6b8e5a; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }

/* Alive pieces */
.alive-label { font-size: 0.875rem; color: #8d6e63; font-weight: 500; margin-bottom: 8px; }
.alive-row { display: flex; align-items: center; gap: 8px; }
.alive-side { flex: 1; }
.vs-badge { font-size: 0.875rem; color: #8d6e63; flex-shrink: 0; }
.piece-list-row { display: flex; flex-wrap: wrap; gap: 4px; }
.piece-list-row.right { justify-content: flex-end; }
.piece-badge {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 600; color: white; cursor: default;
}
.piece-badge.red  { background: #c0392b; }
.piece-badge.blue { background: #2c3e50; }

/* Hint card */
.hint-card {
  background: linear-gradient(135deg, #f8fcf5, #f0f7ea);
  border-color: rgba(143,188,143,0.3);
}
.hint-title {
  font-size: 0.875rem; font-weight: 600; color: #6b8e5a;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.hint-content { font-size: 0.875rem; color: #3e2723; line-height: 1.6; }
.hint-item { margin-bottom: 4px; }
.hint-item:last-child { margin-bottom: 0; }

/* Action buttons */
.action-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-primary {
  width: 100%; padding: 12px;
  background: #6b8e5a; color: white;
  border: none; border-radius: 12px;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 2px 6px rgba(107,142,90,0.3);
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: #5a7a4b; }
.btn-primary:active { transform: scale(0.98); }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.btn-ghost {
  padding: 10px; background: white;
  border: 1px solid rgba(139,115,85,0.2);
  border-radius: 12px;
  font-size: 0.875rem; font-weight: 500; color: #3e2723;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: #f9f6f0; border-color: rgba(139,115,85,0.35); }
.btn-hint { border-color: rgba(143,188,143,0.3); color: #6b8e5a; }
.btn-hint:hover { background: #f0f7ea; }

/* Move history */
.section-label {
  font-size: 0.875rem; font-weight: 600;
  color: #8d6e63; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 10px;
}
.move-card { flex: 1; min-height: 120px; overflow: hidden; display: flex; flex-direction: column; }
.move-history-list {
  flex: 1; overflow-y: auto; max-height: 180px;
  display: flex; flex-direction: column; gap: 4px;
}
.move-history-list::-webkit-scrollbar { width: 3px; }
.move-history-list::-webkit-scrollbar-thumb { background: #d4c4b0; border-radius: 2px; }
.move-item { display: flex; gap: 8px; font-size: 0.875rem; padding: 2px 4px; border-radius: 4px; }
.move-item.latest { background: #f5f0e1; }
.move-no { color: #8d6e63; flex-shrink: 0; width: 20px; }
.move-red { color: #c0392b; font-weight: 500; }
.move-blue { color: #2c3e50; font-weight: 500; }
.empty-hint { font-size: 0.875rem; color: #bbb; text-align: center; padding: 12px 0; }

/* Records */
.record-list { display: flex; flex-direction: column; gap: 6px; max-height: 140px; overflow-y: auto; }
.record-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px;
  font-size: 0.875rem; background: #f9f6f0;
}
.record-item.win  { border-left: 3px solid #6b8e5a; }
.record-item.lose { border-left: 3px solid #c0392b; }
.record-result { font-weight: 600; flex-shrink: 0; }
.record-moves { color: #8d6e63; flex: 1; }
.record-time  { color: #aaa; font-size: 0.875rem; flex-shrink: 0; }

/* ===== Content Area ===== */
.article-container {
  padding: 48px 16px 40px;
  background: #f9f6f0;
  border-top: 1px solid rgba(139,115,85,0.1);
}
@media (min-width: 768px) { .article-container { padding: 60px 24px 48px; } }

.info-section {
  max-width: 1200px; margin: 0 auto 16px;
  background: white; border-radius: 16px;
  border: 1px solid rgba(139,115,85,0.1);
  padding: 22px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-align: left;
}
@media (min-width: 768px) { .info-section { padding: 36px 40px; margin-bottom: 24px; } }

.section-title { font-size: 1.25rem; font-weight: 600; color: #3e2723; margin-bottom: 8px; }
@media (min-width: 768px) { .section-title { font-size: 1.5rem; } }
.section-subtitle { font-size: 1rem; color: #8d6e63; margin-bottom: 20px; }
.article-body p { font-size: 1.1rem; color: #5c4033; line-height: 1.8; margin-bottom: 12px; }

/* 6-column grid */
.card-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3,1fr); gap: 16px; } }

.mini-card { background: #fdfaf5; border: 1px solid #e8dcc8; border-radius: 12px; padding: 16px; }
.mini-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mini-icon { font-size: 1.5rem; }
.mini-title { font-size: 1.1rem; font-weight: 600; color: #3e2723; }
.mini-desc { font-size: 1rem; color: #5c4033; line-height: 1.6; }

/* Piece guide */
.piece-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .piece-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .piece-grid { grid-template-columns: repeat(4,1fr); } }

.piece-card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fdfaf5; border: 1px solid #e8dcc8;
  border-radius: 12px; padding: 14px;
  height: 100%;
}
.piece-header { display: flex; gap: 12px; align-items: flex-start; }
.piece-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem; color: white; flex-shrink: 0;
}
.piece-dark   { background: #8d6e63; }
.piece-brown  { background: #b5651d; }
.piece-amber  { background: #d4891a; }
.piece-green  { background: #6b8e5a; }
.piece-teal   { background: #5b8c9e; }
.piece-warm   { background: #8e7b6b; }
.piece-pink   { background: #c77daa; }
.piece-gray   { background: #9b9b9b; }
.piece-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.piece-name {
  font-size: 1.1rem; font-weight: 600; color: #3e2723;
  display: flex; align-items: center; gap: 8px;
}
.piece-rank { font-size: 0.9rem; color: #8d6e63; font-weight: 400; }
.piece-info > p { font-size: 1rem; color: #5c4033; line-height: 1.5; }
.piece-tip {
  background: #f5f0e1; border-radius: 8px;
  padding: 8px 10px; font-size: 1rem; color: #6b8e5a; line-height: 1.5;
  margin-top: auto;
}

/* Terrain */
.terrain-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .terrain-grid { grid-template-columns: repeat(3,1fr); } }
.terrain-card { border-radius: 12px; padding: 16px; border: 1px solid; }
.water-card { background: #daeef7; border-color: #a8d8ea; }
.trap-card  { background: #fdf0e6; border-color: #e8c9a0; }
.den-card   { background: #fdf7ec; border-color: #e8d5a0; }
.terrain-h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.water-title { color: #2e7fa8; }
.trap-title  { color: #9b5e2a; }
.den-title   { color: #8a6e35; }
.terrain-rules { list-style: none; }
.terrain-rules li {
  font-size: 1rem; color: #5c4033; line-height: 1.6;
  padding-left: 12px; position: relative; margin-bottom: 4px;
}
.terrain-rules li::before { content: "\00B7"; position: absolute; left: 2px; color: #8d6e63; }

/* Tutorial steps */
.step-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px)  { .step-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .step-grid { grid-template-columns: repeat(3,1fr); } }
.step-card {
  display: flex; gap: 14px;
  background: #f9f6f0; border: 1px solid #e8dcc8;
  border-radius: 12px; padding: 16px;
}
.step-num { font-size: 2rem; font-weight: 700; color: #e8dcc8; flex-shrink: 0; line-height: 1; }
.step-title { font-size: 1.1rem; font-weight: 600; color: #3e2723; margin-bottom: 4px; }
.step-card > div > p { font-size: 1rem; color: #5c4033; line-height: 1.6; }
.tip-box {
  margin-top: 16px; background: #f0f7ea;
  border: 1px solid rgba(143,188,143,0.3);
  border-radius: 12px; padding: 14px 16px;
}
.tip-box p { font-size: 1rem; color: #3e2723; line-height: 1.7; }
.green-text { color: #6b8e5a; font-weight: 600; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid #e8dcc8; border-radius: 12px; overflow: hidden; }
.faq-q {
  list-style: none; cursor: pointer;
  padding: 14px 18px;
  background: #fdfaf5;
  font-size: 1.05rem; font-weight: 500; color: #3e2723;
  transition: background 0.2s;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-q::-webkit-details-marker { display: none; }
/* Use ASCII v / ^ for open/close indicator */
.faq-q::after { content: "+"; color: #8d6e63; font-size: 0.875rem; flex-shrink: 0; margin-left: 12px; font-weight: 400; }
details[open] .faq-q { background: #f9f3e8; }
details[open] .faq-q::after { content: "-"; }
.faq-q:hover { background: #f9f3e8; }
.faq-a {
  padding: 14px 18px;
  background: white; border-top: 1px solid #e8dcc8;
  font-size: 1rem; color: #5c4033; line-height: 1.7;
}

/* Two column text */
.two-col-text { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .two-col-text { grid-template-columns: 1fr 1fr; } }
.two-col-text p { font-size: 1rem; color: #5c4033; line-height: 1.8; margin-bottom: 12px; }

/* About section */
.about-card {
  background: linear-gradient(135deg, #f0f7ea, #fdfaf5);
  border-color: rgba(143,188,143,0.2);
}
.about-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .about-grid { grid-template-columns: repeat(3,1fr); } }
.about-item { background: white; border-radius: 12px; border: 1px solid #e8dcc8; padding: 20px; }
.about-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.about-icon { font-size: 1.5rem; }
.about-item h3 { font-size: 1.1rem; font-weight: 600; color: #3e2723; }
.about-item p { font-size: 1rem; color: #5c4033; line-height: 1.6; }

/* ===== Footer (simplified) ===== */
.site-footer {
  background: #3e2723; color: rgba(255,255,255,0.8);
  padding: 28px 0;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .footer-inner { padding: 0 32px; } }

.footer-simple { display: flex; flex-direction: column; gap: 12px; }

.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 1.1rem; color: white;
}
.footer-desc {
  font-size: 1rem; color: rgba(255,255,255,0.5); line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; margin-top: 4px;
}
.footer-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: 0.95rem; color: rgba(255,255,255,0.35);
}
.footer-link {
  color: rgba(255,255,255,0.45); text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(255,255,255,0.8); }

/* ===== Mobile TabBar ===== */
.mobile-tabbar {
  display: flex;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 56px; z-index: 40;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  padding-bottom: env(safe-area-inset-bottom);
  align-items: center; justify-content: space-around;
}
@media (min-width: 768px) { .mobile-tabbar { display: none; } }

.tab-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; height: 100%; gap: 3px;
  background: none; border: none; cursor: pointer;
  color: #8d6e63; font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.tab-btn.active { color: #6b8e5a; }
.tab-btn:hover { color: #6b8e5a; }

/* ===== Mobile Drawer ===== */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(62,39,35,0.4); backdrop-filter: blur(4px);
}
.mobile-drawer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: #f5f0e1; border-radius: 16px 16px 0 0;
  max-height: 88dvh;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.15);
}
.mobile-drawer[data-open="true"] { transform: translateY(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; background: white; border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}
.drawer-title {
  font-size: 1rem; font-weight: 700; color: #3e2723;
  display: flex; align-items: center; gap: 8px;
}
.drawer-close-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: #f0f0f0; border: none; cursor: pointer;
  font-size: 0.875rem; color: #8d6e63;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.drawer-close-btn:hover { background: #e0e0e0; }

.drawer-body {
  flex: 1; overflow-y: auto;
  padding: 14px; display: flex; flex-direction: column; gap: 12px;
}
.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-thumb { background: #d4a574; border-radius: 2px; }

/* ===== Game Over Dialog ===== */
.dialog-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(62,39,35,0.5); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.dialog-box {
  background: white; border-radius: 20px;
  padding: 32px 28px;
  min-width: 280px; max-width: 360px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center;
}
.dialog-msg {
  font-size: 1.4rem; font-weight: 700;
  color: #3e2723; margin-bottom: 20px; line-height: 1.4;
}
.dialog-btns { display: flex; flex-direction: column; gap: 10px; }
.dialog-btns .btn-ghost { width: 100%; }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 80px; /* Above mobile tabbar */
  width: 44px;
  height: 44px;
  background: white;
  color: #8d6e63;
  border: 1px solid rgba(139,115,85,0.2);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
@media (min-width: 768px) {
  .back-to-top {
    right: 30px;
    bottom: 30px;
  }
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #f5f0e1;
  color: #3e2723;
  transform: translateY(-4px);
}

/* ===== Misc ===== */
@media (max-width: 360px) {
  .logo-text { font-size: 0.95rem; }
  .info-section { padding: 16px; }
}
