﻿:root {
  --hero-font: "ITC Avant Garde Gothic Demi", "ITCAvantGardeGothicDemi", "SimHei", "Microsoft YaHei", sans-serif;
}

@font-face {
  font-family: "ITC Avant Garde Gothic Demi";
  src: url("font/itc-avant-garde-gothic-std-demi_8kAJG/ITC Avant Garde Gothic Std Demi/ITC Avant Garde Gothic Std Demi.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  color: #f8f4e9;
  font-family: "Microsoft YaHei", sans-serif;
  cursor: url("asset/cursor/MCSM_Diamond_Sword_left.png") 14 12, auto;
}

* {
  cursor: url("asset/cursor/MCSM_Diamond_Sword_left.png") 14 12, auto;
}

a,
button {
  cursor: url("asset/cursor/MCSM_Diamond_Sword_left.png") 14 12, pointer;
}

.music-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(225, 186, 255, 0.72);
  border-radius: 999px;
  background: rgba(168, 88, 255, 0.5);
  color: rgba(255, 245, 255, 0.96);
  font-size: 1.42rem;
  line-height: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px) saturate(1.04);
  box-shadow: 0 10px 24px rgba(10, 8, 22, 0.28);
  user-select: none;
  touch-action: none;
  cursor: pointer;
}

.music-fab:not(.is-playing) {
  opacity: 0.5;
  filter: grayscale(0.35);
}

.intro-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-footer {
  position: fixed;
  left: 50%;
  bottom: 136px;
  transform: translateX(-50%);
  z-index: 7;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.site-footer p {
  margin: 0;
}

.site-footer-intro {
  top: auto;
  bottom: 8px;
  z-index: 20;
}

.bg-carousel {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #090513;
}

.bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03) translate3d(0, 0, 0);
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform, opacity;
}

.bg-slide.active {
  opacity: 1;
  animation: bg-kenburns 7.2s ease-in-out infinite alternate;
}

.page-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 3, 8, 0) 0%, rgba(8, 5, 15, 0.14) 54%, rgba(8, 5, 15, 0.52) 100%);
}

.home-hanging-sign {
  position: fixed;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  z-index: 8;
  width: min(248px, 64vw);
  height: 78px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff7e6;
  background-image: url("asset/block/Oak_Hanging_Sign_JE1.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
}

.home-hanging-sign span {
  font-family: "Minecraft", "Press Start 2P", var(--hero-font);
  font-size: 1rem;
  letter-spacing: 0.08em;
  transform: translateY(4px);
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.home-hanging-sign:hover {
  transform: translateX(-50%) translateY(-1px);
}

.side-sign-row {
  position: fixed;
  right: 10px;
  top: 2px;
  z-index: 8;
  display: grid;
  grid-template-columns: auto auto;
  align-items: start;
  justify-content: end;
  gap: 0;
}

.side-sign-row .side-hanging-sign + .side-hanging-sign {
  margin-left: -80px;
}

.side-hanging-sign {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  width: min(248px, 64vw);
  height: 78px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff7e6;
  background-image: url("asset/block/Oak_Hanging_Sign_JE1.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.42));
}

.side-hanging-sign span {
  font-family: "Minecraft", "Press Start 2P", var(--hero-font);
  font-size: 1rem;
  letter-spacing: 0.08em;
  transform: translateY(4px);
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.side-hanging-sign:hover {
  transform: translateY(-1px);
}

.info-hud-wrap {
  position: fixed;
  left: 0;
  right: 0;
  top: 13vh;
  z-index: 5;
  display: grid;
  justify-items: center;
  pointer-events: none;
}

.project-nav-wrap {
  position: fixed;
  left: 10px;
  top: 11vh;
  width: 112px;
  max-height: 76vh;
  min-height: 54vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(9, 14, 21, 0.18);
  backdrop-filter: blur(8px) saturate(1.06);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  padding: 0.68rem 0.44rem;
  pointer-events: auto;
}

.project-nav-title {
  margin: 0 0 0.45rem;
  padding: 0 0.36rem;
  font-family: var(--hero-font);
  font-size: 1.06rem;
  letter-spacing: 0.08em;
  color: #ffcf7c;
}

.info-hud {
  width: min(900px, calc(100vw - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(10, 16, 24, 0.34);
  backdrop-filter: blur(8px) saturate(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  padding: 0.95rem 1.1rem 1.05rem;
  pointer-events: auto;
  opacity: 0.98;
  transition: opacity 420ms ease, transform 420ms ease;
}

.info-hud.is-dim {
  opacity: 0.42;
  transform: translateY(3px);
}

.info-hud.is-switching {
  opacity: 0.62;
  transform: translateY(6px) scale(0.992);
}

.hud-type {
  margin: 0;
  letter-spacing: 0.2em;
  font-family: var(--hero-font);
  font-size: 0.78rem;
  color: #ffd17d;
}

.hud-title {
  margin: 0.32rem 0 0;
  font-family: var(--hero-font);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.04;
  color: #fff8e5;
}

.hud-desc,
.hud-builder {
  margin: 0.55rem 0 0;
  line-height: 1.5;
  font-size: clamp(0.9rem, 1.1vw, 1.02rem);
  color: rgba(247, 239, 255, 0.96);
  font-weight: 700;
}

.hud-builder {
  color: rgba(226, 234, 255, 0.88);
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  margin: 0;
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1.1rem 1rem 1rem;
  border: 3px solid rgba(33, 20, 7, 0.72);
  border-radius: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    url("asset/block/oak_planks.png");
  background-size: auto, 128px 128px;
  image-rendering: pixelated;
  box-shadow: 0 8px 0 rgba(24, 15, 6, 0.7), 0 14px 30px rgba(0, 0, 0, 0.3);
}

.top-nav::before,
.top-nav::after {
  content: "";
  position: absolute;
  bottom: -86px;
  width: 68px;
  height: 90px;
  background-image: url("asset/block/Lantern.png");
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
}

.top-nav::before { left: 40px; }
.top-nav::after { right: 40px; }

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-item,
.quick-btn {
  position: relative;
  border: 0;
  text-decoration: none;
  color: #fffdf8;
  background: transparent;
  min-height: 58px;
  padding: 0 1.3rem;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Minecraft", "Press Start 2P", var(--hero-font);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0    2px 0 rgba(0, 0, 0, 0.45);
}

.nav-item::before,
.quick-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("asset/block/sign_board.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  z-index: -1;
  transition: transform 160ms ease;
}

.nav-item:hover::before,
.quick-btn:hover::before {
  transform: translateY(-2px);
}

.nav-item.active {
  color: #421d00;
}

.nav-item.active::before {
  filter: saturate(1.14) brightness(1.04);
}

.quick-btn {
  min-width: 126px;
}

.showcase-wrap {
  position: relative;
  z-index: 5;
  padding: 7.4rem 1.1rem 8.2rem;
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.showcase-card {
  width: min(1180px, calc(100vw - 2.4rem));
  min-height: clamp(540px, 72vh, 700px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(214, 225, 242, 0.1);
  backdrop-filter: blur(10px) saturate(1.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.terrain-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  pointer-events: auto;
  height: 128px;
}

.terrain-strip > * {
  pointer-events: none;
}

.wood-wall-trigger {
  position: absolute;
  left: 50%;
  bottom: 128px;
  transform: translateX(-50%);
  width: min(980px, 92vw);
  height: 56px;
  z-index: 7;
  pointer-events: auto;
}

.wood-wall {
  --wall-tile: 78px;
  --wall-height-tiles: 2;
  --wall-rise-tiles: 2;
  --wall-visible-top-ratio: 0.5;
  --wall-open-offset: calc(var(--wall-tile) * (var(--wall-height-tiles) - var(--wall-rise-tiles)));
  --wall-collapse-offset: calc(
    var(--wall-open-offset) + (var(--wall-tile) * (var(--wall-rise-tiles) - var(--wall-visible-top-ratio)))
  );
  position: absolute;
  left: 50%;
  bottom: 128px;
  transform: translate(-50%, var(--wall-collapse-offset));
  width: min(980px, 92vw);
  z-index: 0;
  pointer-events: auto;
  border: 3px solid rgba(33, 20, 7, 0.72);
  background:
    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12)),
    url("asset/block/oak_planks.png");
  background-size: auto, var(--wall-tile) var(--wall-tile);
  box-shadow: 0 8px 0 rgba(24, 15, 6, 0.7), 0 14px 26px rgba(0, 0, 0, 0.28);
  image-rendering: pixelated;
  transition: transform 380ms cubic-bezier(0.25, 0.8, 0.3, 1);
}

.side-pillar {
  --pillar-tile: var(--wall-tile);
  --pillar-width: calc(var(--pillar-tile) * 0.92);
  --pillar-height: calc(var(--pillar-tile) * 4);
  position: absolute;
  bottom: 0;
  width: var(--pillar-width);
  height: var(--pillar-height);
  border: 2px solid rgba(36, 36, 38, 0.72);
  background:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    url("asset/block/stone_bricks.png");
  background-size: auto, var(--pillar-tile) var(--pillar-tile);
  image-rendering: pixelated;
  z-index: 1;
  pointer-events: auto;
}

.side-pillar.left {
  right: calc(100% + 12px);
}

.side-pillar.right {
  left: calc(100% + 12px);
}

.pillar-sign {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  width: calc(var(--pillar-width) + 14px);
  height: calc(var(--pillar-tile) * 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Minecraft", "Press Start 2P", var(--hero-font);
  font-size: 0.82rem;
  color: #fff8e6;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  background-image: url("asset/block/sign_board.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.pillar-lever {
  position: absolute;
  left: 50%;
  top: calc(var(--pillar-tile) * 1.65);
  transform: translateX(-50%);
  width: calc(var(--pillar-width) * 0.74);
  height: calc(var(--pillar-tile) * 0.9);
  border: 0;
  background: transparent;
  padding: 0;
  pointer-events: auto;
  overflow: visible;
}

.lever-handle {
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("asset/block/Lever.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45));
  transform: translateY(-26px);
  transition: transform 120ms ease;
}

.pillar-lever.is-pulled .lever-handle {
  background-image: url("asset/block/Lever_pulldown.png");
  transform: translateY(0);
}

.wood-wall::before,
.wood-wall::after {
  content: "";
  position: absolute;
  bottom: calc(100% - 10px);
  width: 74px;
  height: 80px;
  background-image: url("asset/block/Lantern.png");
  background-size: 100% 100%;
  background-position: center bottom;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.42));
  z-index: 2;
  pointer-events: none;
}

.wood-wall::before {
  left: 10px;
}

.wood-wall::after {
  right: 10px;
}

.wood-wall.wall-h2 {
  --wall-height-tiles: 2;
  --wall-rise-tiles: 2;
  height: calc(var(--wall-tile) * 2);
}

.wood-wall.wall-h3 {
  --wall-height-tiles: 3;
  --wall-rise-tiles: 3;
  height: calc(var(--wall-tile) * 3);
}

.wood-wall.wall-h4 {
  --wall-height-tiles: 4;
  --wall-rise-tiles: 3;
  height: calc(var(--wall-tile) * 4);
}

.wood-wall.is-open {
  transform: translate(-50%, var(--wall-open-offset));
}

.sign-grid {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: calc(100% - 0.6rem);
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  justify-items: center;
  padding-top: 0.2rem;
}

.sign-slot {
  width: min(198px, 100%);
  height: calc(var(--wall-tile) * 1.9);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.sign-slot::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: min(182px, 100%);
  height: calc(var(--wall-tile) - 8px);
  background-image: url("asset/block/sign_board.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.sign-label {
  position: relative;
  margin-top: 19px;
  font-family: "Minecraft", "Press Start 2P", var(--hero-font);
  font-size: 1.05rem;
  color: #fffaf0;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
  letter-spacing: 0.04em;
}

.sign-slot.active .sign-label {
  color: #ffd27d;
}

.stone-btn {
  position: absolute;
  top: calc(var(--wall-tile) + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 22px;
  border: 1px solid #1f1f1f;
  border-radius: 2px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18)),
    url("asset/block/stone_bricks.png");
  background-size: auto, 64px 64px;
  image-rendering: pixelated;
  box-shadow: 0 2px 0 rgba(20, 20, 20, 0.75);
  cursor: url("asset/cursor/MCSM_Diamond_Sword_left.png") 14 12, pointer;
  pointer-events: auto;
}

.stone-btn:active {
  transform: translate(-50%, 1px);
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.75);
}

.grass-row,
.dirt-row {
  position: absolute;
  left: 0;
  right: 0;
  image-rendering: pixelated;
}

.dirt-row {
  bottom: 0;
  height: 64px;
  background-image: url("asset/block/dirt.png");
  background-size: 96px 96px;
  background-repeat: repeat-x;
  z-index: 1;
}

.grass-row {
  bottom: 64px;
  height: 64px;
  background-image: url("asset/block/grass_block_side.png");
  background-size: 96px 96px;
  background-repeat: repeat-x;
  background-position: 0 0;
  z-index: 2;
}

.rail-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 124px;
  height: 18px;
  z-index: 4;
  background-image: url("asset/block/rail.png");
  background-repeat: repeat-x;
  background-size: auto 18px;
  background-position: center bottom;
  image-rendering: pixelated;
}

.minecart {
  position: absolute;
  right: 12%;
  bottom: 142px;
  height: 52px;
  width: auto;
  z-index: 4;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  will-change: transform;
}

.grass-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.grass-layer.back {
  z-index: 3;
}

.grass-layer.front {
  z-index: 5;
}

.flower-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.flower-layer.back {
  z-index: 3;
}

.flower-layer.front {
  z-index: 5;
}

.flower-sprout {
  position: absolute;
  width: auto;
  height: 30px;
  bottom: 128px;
  image-rendering: pixelated;
  transform-origin: center bottom;
  pointer-events: none;
}

.grass-tuft {
  position: absolute;
  width: auto;
  image-rendering: pixelated;
  transform-origin: center bottom;
}

.grass-tuft.short {
  height: 52px;
  bottom: 128px;
}

.grass-tuft.tall {
  height: 82px;
  bottom: 128px;
}

.grass-layer.back .grass-tuft {
  opacity: 0.9;
}

.showcase-card.layout-reverse {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.showcase-media {
  min-height: 430px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #111;
}

.showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.18) 100%);
}

.showcase-card.layout-reverse .showcase-media {
  order: 2;
}

.showcase-card.layout-reverse .showcase-media::after {
  background: linear-gradient(to left, rgba(255, 255, 255, 0) 58%, rgba(255, 255, 255, 0.18) 100%);
}

.showcase-card.layout-reverse .showcase-text {
  order: 1;
}

.project-images {
  position: absolute;
  inset: 0;
}

.project-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  transform: scale(1.02) translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.project-shot.active {
  opacity: 1;
  animation: shot-kenburns 5.8s ease-in-out infinite alternate;
}

@keyframes bg-kenburns {
  0% {
    transform: scale(1.02) translate3d(-1.1%, -0.7%, 0);
  }
  100% {
    transform: scale(1.08) translate3d(1.1%, 0.8%, 0);
  }
}

@keyframes shot-kenburns {
  0% {
    transform: scale(1.01) translate3d(-0.8%, -0.6%, 0);
  }
  100% {
    transform: scale(1.06) translate3d(0.9%, 0.7%, 0);
  }
}

.project-dots {
  position: absolute;
  left: 50%;
  bottom: 0.8rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.42rem;
  z-index: 2;
}

.project-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.project-dot.active {
  background: #ffd47f;
}

.showcase-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #f7f1ff;
  border-radius: 16px;
  padding: 1rem 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(187, 199, 221, 0.12);
  backdrop-filter: blur(10px);
}

.project-type {
  margin: 0;
  letter-spacing: 0.21em;
  font-family: var(--hero-font);
  font-size: 0.9rem;
  color: #ffd17d;
}

.project-title {
  margin: 0.58rem 0 0;
  font-family: var(--hero-font);
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.05;
  color: #fff8e5;
}

.project-desc,
.project-builder {
  margin: 0.9rem 0 0;
  line-height: 1.6;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  color: rgba(247, 239, 255, 0.95);
  font-weight: 700;
}

.project-list {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
}

.project-chip {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  min-height: 64px;
  padding: 0.32rem 0.26rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.09);
  color: #f8f3ff;
  font-family: var(--hero-font);
  font-size: 0.96rem;
  line-height: 1.08;
  white-space: normal;
  word-break: break-word;
  display: grid;
  place-items: center;
}

.project-chip.active {
  border-color: rgba(255, 229, 156, 0.72);
  background: rgba(255, 207, 124, 0.2);
  box-shadow: 0 0 0 2px rgba(255, 207, 124, 0.16);
}

@media (max-width: 980px) {
  .home-hanging-sign {
    top: 2px;
    width: min(190px, 56vw);
    height: 60px;
  }

  .home-hanging-sign span {
    font-size: 0.84rem;
    transform: translateY(3px);
  }

  .side-hanging-sign {
    width: min(190px, 56vw);
    height: 60px;
  }

  .side-sign-row {
    right: 6px;
    top: 4px;
    gap: 0;
  }

  .side-sign-row .side-hanging-sign + .side-hanging-sign {
    margin-left: -68px;
  }

  .side-hanging-sign span {
    font-size: 0.84rem;
    transform: translateY(3px);
  }

  .info-hud-wrap {
    top: 10vh;
  }

  .site-footer {
    bottom: 102px;
    font-size: 10px;
    width: calc(100vw - 0.8rem);
  }

  .site-footer-intro {
    top: auto;
    bottom: 6px;
  }

  .project-nav-wrap {
    left: 6px;
    top: 11vh;
    width: 98px;
    max-height: 64vh;
    min-height: 48vh;
    padding: 0.46rem 0.3rem;
  }

  .project-nav-title {
    font-size: 0.86rem;
  }

  .project-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .project-chip {
    min-height: 52px;
    padding: 0.22rem 0.2rem;
    font-size: 0.78rem;
  }

  .info-hud {
    width: calc(100vw - 1rem);
    padding: 0.74rem 0.8rem 0.82rem;
  }

  .hud-type {
    font-size: 0.66rem;
  }

  .hud-title {
    font-size: clamp(1.2rem, 6vw, 1.6rem);
  }

  .hud-desc,
  .hud-builder {
    font-size: 0.84rem;
  }

  .top-nav {
    top: 0;
    width: 100%;
    min-height: 92px;
    padding: 0.6rem;
  }

  .top-nav::before,
  .top-nav::after {
    bottom: -64px;
    width: 52px;
    height: 68px;
  }

  .showcase-wrap {
    display: none;
  }

  .showcase-card,
  .showcase-card.layout-reverse {
    width: calc(100vw - 1rem);
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .terrain-strip {
    height: 96px;
  }

  .wood-wall {
    --wall-tile: 58px;
    bottom: 96px;
    width: min(96vw, 760px);
  }

  .wood-wall::before,
  .wood-wall::after {
    bottom: calc(100% - 8px);
    width: 56px;
    height: 60px;
  }

  .side-pillar {
    right: auto;
    left: auto;
    --pillar-width: calc(var(--pillar-tile) * 0.86);
  }

  .side-pillar.left {
    right: calc(100% + 6px);
  }

  .side-pillar.right {
    left: calc(100% + 6px);
  }

  .pillar-sign {
    font-size: 0.62rem;
  }

  .lever-handle {
    transform: translateY(-20px);
  }

  .wood-wall-trigger {
    bottom: 96px;
    width: min(96vw, 760px);
    height: 42px;
  }

  .sign-slot {
    height: calc(var(--wall-tile) * 1.75);
  }

  .sign-label {
    margin-top: 14px;
    font-size: 0.86rem;
  }

  .stone-btn {
    top: calc(var(--wall-tile) + 7px);
    width: 34px;
    height: 16px;
  }

  .dirt-row {
    height: 48px;
    background-size: 96px 96px;
  }

  .grass-row {
    bottom: 48px;
    height: 48px;
    background-size: 96px 96px;
  }

  .rail-row {
    bottom: 94px;
    height: 14px;
    background-size: auto 14px;
  }

  .minecart {
    height: 40px;
    bottom: 102px;
  }

  .grass-tuft.short {
    height: 34px;
    bottom: 96px;
  }

  .grass-tuft.tall {
    height: 54px;
    bottom: 96px;
  }

  .flower-sprout {
    height: 22px;
    bottom: 96px;
  }

  .showcase-card.layout-reverse .showcase-media,
  .showcase-card.layout-reverse .showcase-text {
    order: initial;
  }

.showcase-media {
    min-height: 340px;
  }
}

.group-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.group-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 31, 0.62);
  backdrop-filter: blur(2px);
}

.group-panel {
  position: relative;
  width: min(92vw, 460px);
  border-radius: 22px;
  padding: 1.2rem 1.2rem 1.3rem;
  background: linear-gradient(140deg, #fff6eb, #f7f1ff);
  box-shadow: 0 20px 60px rgba(26, 13, 44, 0.4);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  color: #3f2555;
  background: rgba(255, 255, 255, 0.72);
}

.group-tag {
  margin: 0;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-family: "ITC Avant Garde Gothic Demi", "ITCAvantGardeGothicDemi", "SimHei", "Microsoft YaHei", sans-serif;
  color: rgba(90, 57, 130, 0.8);
}

.group-title {
  margin: 0.32rem 0 0;
  font-family: "ITC Avant Garde Gothic Demi", "ITCAvantGardeGothicDemi", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.45rem);
  color: #2d1539;
}

.group-desc {
  margin: 0.6rem 0 0;
  color: rgba(48, 30, 68, 0.82);
  line-height: 1.52;
  font-weight: 700;
}

.group-qr-wrap {
  margin-top: 1rem;
  width: min(250px, 100%);
  border-radius: 14px;
  overflow: visible;
  background: white;
  display: grid;
  place-items: center;
}

.group-qr-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: white;
}

.group-qr-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-family: "ITC Avant Garde Gothic Demi", "ITCAvantGardeGothicDemi", "SimHei", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.08em;
  color: #7a4a95;
}

.group-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  text-decoration: none;
  font-family: "ITC Avant Garde Gothic Demi", "ITCAvantGardeGothicDemi", "SimHei", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  color: #fff3ea;
  background: linear-gradient(125deg, #6f28df, #d9428d);
}

.group-qq-row {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.group-qq-label {
  font-size: 0.86rem;
  color: rgba(48, 30, 68, 0.78);
  font-weight: 700;
}

.group-qq-number {
  font-family: "ITC Avant Garde Gothic Demi", "ITCAvantGardeGothicDemi", "SimHei", "Microsoft YaHei", sans-serif;
  font-size: 1.02rem;
  color: #2d1539;
  letter-spacing: 0.03em;
}

.group-copy-btn {
  border: 1px solid rgba(111, 40, 223, 0.42);
  background: rgba(255, 255, 255, 0.78);
  color: #4c2385;
  border-radius: 8px;
  min-height: 32px;
  padding: 0 0.72rem;
  font-family: "SimHei", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.group-copy-btn:hover {
  filter: brightness(1.04);
}
