/* ============ Reset & Base ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --font-sans: "Source Han Sans SC", "Noto Sans CJK SC", "思源黑体", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif CJK SC", "思源宋体", "STSong", "Songti SC", "SimSun", serif;
  --accent: #E63946;
  --accent-light: #FFF0F0;
  --text: #2C2825;
  --text-light: #888;
  --border: #E8E4E0;
  --bg-soft: #FAF8F6;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  background: #FFFFFF;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============ Header ============ */
.site-header {
  text-align: center;
  padding: 80px 24px 50px;
  position: relative;
}

.site-header .logo-img {
  max-width: clamp(280px, 60vw, 520px);
  height: auto;
  margin-bottom: 8px;
}

.header-meta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.post-count {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.read-count {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  display: none;
}

/* ============ World / Doors ============ */
.world {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 400px;
}

.door-wrap {
  position: absolute;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.door-wrap:hover {
  transform: scale(1.15) rotate(0deg) !important;
  z-index: 100;
}

.door-emoji {
  font-size: 64px;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.1));
  transition: filter 0.3s;
}

.door-wrap:hover .door-emoji {
  filter: drop-shadow(0 6px 12px rgba(230,57,70,0.3));
}

.door-popcorn {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  animation: popcornIn 0.4s ease;
}

@keyframes popcornIn {
  from { transform: scale(0) rotate(-30deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.door-wrap.new-door .door-emoji {
  animation: doorAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes doorAppear {
  0% { transform: scale(0) rotate(180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ============ Empty State ============ */
.empty-state {
  text-align: center;
  padding: 60px 20px 120px;
  color: var(--text-light);
}

.empty-door {
  font-size: 80px;
  margin-bottom: 20px;
  opacity: 0.4;
  animation: emptyPulse 3s ease-in-out infinite;
}

@keyframes emptyPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.6; }
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.empty-sub {
  font-size: 0.9rem !important;
  line-height: 2;
  color: var(--text-light);
}

/* ============ Add Button ============ */
.add-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px 28px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(230,57,70,0.35);
  transition: all 0.3s;
  z-index: 50;
  font-family: inherit;
  letter-spacing: 0.05em;
}

.add-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(230,57,70,0.45);
  background: #C42030;
}

.add-btn:active {
  transform: translateY(0);
}

/* ============ Modal Overlay ============ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-soft);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--text-light);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.close-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

/* ============ Blog Modal ============ */
.blog-modal {
  max-width: 960px;
  width: 100%;
  height: 92vh;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-content {
  font-family: var(--font-serif);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ============ Blog Article Layout (single column, simple & fast) ============ */
.blog-article {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 50px 44px 60px 50px;
}

/* Photo list: one image per row, click to zoom */
.blog-photos,
.blog-photos-inline {
  margin: 12px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-photos-inline {
  margin: 12px 0 0 4px;
}

.blog-photos img,
.blog-photos-inline img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  max-height: 720px;
  margin: 0;
  border-radius: 8px;
  cursor: pointer;
  background: #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: opacity 0.2s ease;
}

.blog-photos img:hover,
.blog-photos-inline img:hover {
  opacity: 0.92;
}

.blog-restaurants li {
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .blog-modal {
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    display: block;
  }
  .blog-content {
    display: block;
    overflow: visible;
  }
  .blog-article {
    overflow-y: visible;
    padding: 44px 20px 30px;
  }
  .blog-photos,
  .blog-photos-inline {
    gap: 10px;
  }
  .blog-photos img,
  .blog-photos-inline img {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
}

/* ============ Blog Hero Title (first keyword of Q1) ============ */
.blog-hero {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.3;
  margin-bottom: 24px;
  padding: 10px 0 6px;
  letter-spacing: 2px;
  font-family: var(--font-serif);
  word-break: break-word;
}

.blog-intro {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 35px;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.blog-tag {
  background: var(--accent-light);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-home {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

.blog-home .label {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.9rem;
  margin-right: 6px;
}

.blog-section {
  margin-bottom: 40px;
}

.blog-section h3 {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-section h3 .icon {
  font-size: 1.3rem;
}

.blog-section p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.9;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.blog-restaurants {
  list-style: none;
  padding: 0;
  counter-reset: item;
}

.blog-restaurants li {
  padding: 14px 0 14px 42px;
  position: relative;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}

.blog-restaurants li:last-child {
  border-bottom: none;
}

.blog-restaurants li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 0;
  top: 14px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-sans);
}

.blog-images {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0 8px;
  align-items: center;
}

.blog-images img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--bg-soft);
  border: 3px solid var(--border);
  flex-shrink: 0;
}

.blog-images img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 5;
}

.blog-footer-meta {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.85rem;
  font-family: var(--font-sans);
}

/* ============ Form Modal ============ */
.form-modal {
  max-width: 680px;
  width: 100%;
  padding: 45px 45px 50px;
}

.form-header {
  text-align: center;
  margin-bottom: 35px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--accent-light);
}

.form-header h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 8px;
}

.form-header p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.blog-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-section {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.q-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.q-body {
  flex: 1;
  min-width: 0;
}

.q-body label {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.6;
}

.q-body label strong {
  color: var(--accent);
}

.q-body .hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 300;
  margin-top: 4px;
  line-height: 1.5;
}

.q-body input[type="text"],
.q-body textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
  resize: vertical;
}

.q-body input[type="text"]:focus,
.q-body textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.q-body input[type="text"] + input[type="text"],
.q-body input[type="text"] + .upload-area {
  margin-top: 8px;
}

/* A mini upload area follows a restaurant input (or vice versa) */
.q-body .upload-area + input[type="text"] {
  margin-top: 10px;
}

.q-body textarea + .upload-area {
  margin-top: 12px;
}

/* Compact variant used for per-restaurant uploads in Q3 */
.upload-area-mini .upload-label {
  padding: 8px;
  font-size: 0.82rem;
  gap: 6px;
}

.upload-area-mini .upload-icon {
  font-size: 1rem;
}

.upload-area-mini .preview-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 6px;
}

/* ============ Upload Area ============ */
.upload-area {
  margin-top: 10px;
}

.upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 2px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.upload-label:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.upload-label input[type="file"] {
  display: none;
}

.upload-icon {
  font-size: 1.2rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s;
}

.preview-remove:hover {
  background: rgba(230,57,70,0.85);
}

.uploading-indicator {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ Form Footer ============ */
.form-footer {
  margin-top: 10px;
  text-align: center;
}

.submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(230,57,70,0.3);
}

.submit-btn:hover {
  background: #C42030;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,57,70,0.4);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============ Success Modal ============ */
.success-modal {
  max-width: 400px;
  padding: 50px 40px;
  text-align: center;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: doorAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.success-modal p {
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  z-index: 2000;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ============ Loading ============ */
.loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
  font-size: 1rem;
}

.loading::after {
  content: '...';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .site-header { padding: 50px 20px 30px; }
  .add-btn {
    bottom: 20px;
    right: 20px;
    padding: 14px 22px;
    font-size: 0.95rem;
  }
  .door-emoji { font-size: 52px; }
  .door-popcorn { font-size: 22px; }
  .blog-modal, .form-modal { padding: 35px 24px 40px; }
  .form-section { gap: 12px; }
  .q-number { width: 28px; height: 28px; font-size: 0.85rem; }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-images img { width: 85px; height: 85px; }
  .blog-hero { font-size: 2rem; }
}

/* ============ Edit bar in blog ============ */
.blog-edit-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.edit-blog-btn {
  background: var(--bg-soft);
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.edit-blog-btn:hover:not(.disabled) {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.edit-blog-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.delete-blog-btn {
  background: transparent;
  color: #e74c3c;
  border: 1.5px solid #e74c3c;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.delete-blog-btn:hover {
  background: #e74c3c;
  color: #fff;
}

.edit-quota-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-family: var(--font-sans);
}

.edit-quota-label strong {
  color: var(--accent);
}

/* ============ Edit quota hint in form footer ============ */
.edit-quota-hint {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 14px;
  font-family: var(--font-sans);
  letter-spacing: 0.03em;
}

.edit-quota-hint strong {
  color: var(--accent);
}

/* ================================================================
   Window Intro (first visit)
   ================================================================ */

/* Glass overlay covering the whole page */
.window-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: all;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Glass overlay covering the whole page */
.glass-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(180,190,200,0.25) 0%, rgba(200,210,220,0.18) 30%, rgba(160,175,190,0.30) 60%, rgba(180,195,205,0.22) 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 6;
}

/* Glass reflections */
.glass-reflect {
  position: absolute;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.glass-r1 {
  top: 0; left: 5%;
  width: 30%;
  height: 100%;
  transform: skewX(-8deg);
}
.glass-r2 {
  top: 10%; right: 0;
  width: 20%;
  height: 60%;
  transform: skewX(12deg);
  background: linear-gradient(225deg, rgba(255,255,255,0.08) 0%, transparent 50%);
}

/* Subtle dark tint */
.glass-tint {
  position: absolute;
  inset: 0;
  background: rgba(20,25,30,0.35);
  pointer-events: none;
  z-index: 7;
}

/* Red dot — target indicator at top-left of glass area */
.red-dot {
  position: absolute;
  top: 10%;
  left: 9%;
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, #ff4444 0%, #cc0000 60%, #800000 100%);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(255,50,50,0.7), 0 0 40px rgba(255,0,0,0.3);
  z-index: 10001;
  animation: dotPulse 2s ease-in-out infinite;
  cursor: default;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255,50,50,0.7), 0 0 40px rgba(255,0,0,0.3); }
  50% { box-shadow: 0 0 28px rgba(255,50,50,1), 0 0 60px rgba(255,0,0,0.5); }
}

.red-dot.hit {
  animation: dotExplode 0.3s ease-out forwards;
}

@keyframes dotExplode {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* Window text */
.window-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.3em;
  pointer-events: none;
  z-index: 10001;
}

/* Hammer (red T-type safety hammer) */
.hammer {
  position: fixed;
  z-index: 10010;
  width: 110px;
  height: 145px;
  right: 60px;
  top: 42%;
  transform: translateY(-50%) rotate(-25deg);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  display: none;
  transition: filter 0.1s;
  touch-action: none;
  -webkit-touch-callout: none;
}

.hammer.show {
  display: block;
  animation: hammerFlash 0.5s ease-in-out infinite;
}

.hammer.solid {
  animation: none;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45));
}

.hammer.dragging {
  cursor: grabbing;
  transition: none;
  z-index: 10020;
}

.hammer-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5));
  pointer-events: all;
}

.hammer-svg * {
  pointer-events: all;
}

.hammer.flash .hammer-svg {
  filter: drop-shadow(0 3px 8px rgba(255,180,0,0.7)) drop-shadow(0 0 24px rgba(255,150,0,0.5));
}

@keyframes hammerFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Long-press visual feedback (touch devices) */
.hammer.long-pressing {
  animation: none !important;
  transform: scale(1.12);
  filter: drop-shadow(0 3px 14px rgba(255,200,0,0.9)) drop-shadow(0 0 30px rgba(255,120,0,0.6));
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Touch hint text */
.touch-hint {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 24px;
  border-radius: 22px;
  font-size: 15px;
  z-index: 10015;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  white-space: nowrap;
  font-family: -apple-system, "Source Han Sans SC", "Noto Sans SC", sans-serif;
}

.touch-hint.show {
  opacity: 1;
}

/* Crack SVG overlay */
.crack-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10005;
  pointer-events: none;
  opacity: 0;
}

.crack-svg.animate {
  opacity: 1;
}

.crack-line {
  stroke: rgba(255,255,255,0.85);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: crackDraw 0.5s ease-out forwards;
}

@keyframes crackDraw {
  to { stroke-dashoffset: 0; }
}

/* Concentric ring cracks */
.crack-ring {
  fill: none;
  stroke: rgba(255,255,255,0.7);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: crackDraw 0.7s ease-out forwards;
}

/* Glass shards */
.shards-container {
  position: absolute;
  inset: 0;
  z-index: 10006;
  pointer-events: none;
}

.glass-shard {
  position: absolute;
  background: linear-gradient(135deg, rgba(200,210,220,0.85) 0%, rgba(180,190,200,0.65) 40%, rgba(220,225,230,0.75) 100%);
  border: 0.5px solid rgba(255,255,255,0.4);
  opacity: 0;
  transition: none;
  will-change: transform, opacity;
}

.glass-shard.animate {
  animation: shardFall 2.2s cubic-bezier(0.25, 0.1, 0.35, 1) forwards;
}

@keyframes shardFall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  30% { opacity: 1; }
  100% { opacity: 0.2; transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); }
}

/* Body cursor override during intro */
body.intro-active,
body.intro-active * {
  cursor: none !important;
}

body.intro-active .hammer,
body.intro-active .hammer * {
  cursor: grab !important;
}

body.intro-active .hammer.dragging,
body.intro-active .hammer.dragging * {
  cursor: grabbing !important;
}

/* Prevent scrolling/zooming on touch devices during intro */
body.intro-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ============ Disclaimer Footer ============ */
.site-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 24px 40px;
  text-align: center;
}

.beian-row {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.beian-sep {
  color: rgba(0, 0, 0, 0.25);
  font-size: 0.72rem;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  font-size: 0.72rem;
  font-family: var(--font-sans);
  transition: color 0.2s ease;
}

.beian-link:hover {
  color: var(--accent);
}

.beian-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}

.disclaimer-details {
  display: inline-block;
}

.disclaimer-details summary {
  font-size: 0.7rem;
  color: var(--text-light);
  opacity: 0.45;
  cursor: pointer;
  user-select: none;
  font-weight: 300;
  list-style: none;
  transition: opacity 0.2s ease;
}

.disclaimer-details summary::-webkit-details-marker {
  display: none;
}

.disclaimer-details summary:hover {
  opacity: 0.7;
}

.disclaimer-body {
  max-width: 560px;
  margin-top: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
}

.disclaimer-body p {
  font-size: 0.68rem;
  line-height: 1.8;
  color: var(--text-light);
  opacity: 0.55;
  margin-bottom: 8px;
  font-weight: 300;
}

.disclaimer-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .site-footer { padding: 16px 16px 60px; }
  .disclaimer-body { padding: 12px 14px; }
  .disclaimer-body p { font-size: 0.63rem; line-height: 1.7; }
}

/* Mobile: larger hammer for easier touch interaction */
@media (max-width: 768px) {
  .hammer {
    width: 90px;
    height: 120px;
    right: 30px;
    top: 40%;
  }
}

@media (max-width: 480px) {
  .hammer {
    width: 80px;
    height: 105px;
    right: 20px;
    top: 38%;
  }
}

