/* ============================================================
   艺术日记 · Art Diary
   独立网站 / Apple-inspired quiet gallery
   ============================================================ */

:root {
  --bg: #f5f3ef;
  --bg-soft: #fbfaf7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #56565b;
  --ink-mute: #86868b;
  --line: rgba(29, 29, 31, 0.1);
  --line-soft: rgba(29, 29, 31, 0.055);
  --gold: #ad8a5a;
  --gold-soft: #e7d9c2;
  --danger: #a75a48;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --shadow-card: 0 26px 70px rgba(44, 36, 25, 0.13);
  --shadow-soft: 0 12px 34px rgba(44, 36, 25, 0.07);
  --shadow-hover: 0 32px 80px rgba(44, 36, 25, 0.16);
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1366px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: "New York", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(1100px 600px at 85% -8%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(255, 252, 245, 0.8), transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: rgba(173, 138, 90, 0.24);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 500;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.is-hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  margin: 0;
  color: var(--ink-mute);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.view {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.view.is-ready {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   Header / Footer
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(29, 29, 31, 0.045);
  background: rgba(245, 243, 239, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 14px;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.brand-words {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.brand-en {
  color: var(--ink-mute);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(29, 29, 31, 0.055);
}

.nav-link.is-active {
  color: var(--ink);
  background: rgba(29, 29, 31, 0.06);
}

.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(29, 29, 31, 0.07);
  color: var(--ink-soft);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.site-footer {
  margin-top: clamp(66px, 8vw, 112px);
  padding: 26px 0 34px;
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  text-align: center;
}

.footer-brand {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-brand span {
  display: inline-block;
  margin-left: 8px;
  color: var(--ink-mute);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.footer-copy {
  color: var(--ink-mute);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
}

/* ------------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 0 14px 0 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-align: left;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 36px rgba(29, 29, 31, 0.16);
}

.btn-primary:hover {
  background: #2b2b2e;
  box-shadow: 0 20px 44px rgba(29, 29, 31, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  background: #fff;
  box-shadow: 0 18px 42px rgba(44, 36, 25, 0.11);
}

.btn-quiet {
  justify-content: center;
  min-height: 46px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
}

.btn-quiet:hover {
  color: var(--ink);
  background: rgba(29, 29, 31, 0.045);
}

.btn-large {
  min-height: 66px;
}

.btn-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.btn-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-sub {
  overflow: hidden;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-secondary .btn-sub {
  color: var(--ink-mute);
}

.btn-icon {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-secondary .btn-icon {
  background: rgba(29, 29, 31, 0.06);
}

.btn:hover .btn-icon {
  transform: translate(2px, -2px);
}

.btn-icon svg {
  width: 17px;
  height: 17px;
}

/* ------------------------------------------------------------
   Progress
   --------------------------------------------------------- */

.collection-progress {
  padding: 2px 4px 0;
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-mute);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.progress-copy strong {
  color: var(--ink);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(29, 29, 31, 0.09);
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 0.7s var(--ease);
}

/* ------------------------------------------------------------
   Home
   --------------------------------------------------------- */

.home-page,
.gallery-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.home-main,
.gallery-main {
  flex: 1;
}

.home-main {
  padding-top: clamp(30px, 5vw, 62px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.section-title-wrap {
  min-width: 0;
}

.display-title {
  margin: 10px 0 0;
  font-size: clamp(44px, 5.6vw, 78px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.section-desc {
  max-width: 330px;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.carousel-region {
  position: relative;
  margin-top: clamp(28px, 3.6vw, 42px);
}

.new-carousel {
  display: flex;
  gap: clamp(14px, 1.6vw, 22px);
  padding: 4px 2px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.new-carousel::-webkit-scrollbar {
  display: none;
}

.new-carousel:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: var(--radius-xl);
}

.new-card {
  position: relative;
  display: block;
  flex: 0 0 clamp(300px, 27vw, 380px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ddd8cf;
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.new-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.new-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.new-card:hover .new-card-image {
  transform: scale(1.035);
}

.new-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 11, 14, 0.18) 0%, transparent 32%),
    linear-gradient(0deg, rgba(10, 11, 14, 0.7) 0%, rgba(10, 11, 14, 0.06) 58%, transparent 76%);
}

.new-card-top {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.8);
}

.glass-badge {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.glass-badge.is-collected {
  border-color: rgba(255, 238, 202, 0.35);
  background: rgba(173, 138, 90, 0.36);
  color: #fff7e7;
}

.new-card-no {
  color: rgba(255, 255, 255, 0.55);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.new-card-copy {
  position: absolute;
  z-index: 2;
  right: 88px;
  bottom: 25px;
  left: 25px;
  display: flex;
  flex-direction: column;
  color: #fff;
  pointer-events: none;
}

.new-card-en {
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.new-card-title {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.16);
}

.new-card-by {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.new-card-arrow {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.new-card:hover .new-card-arrow {
  transform: translate(2px, -2px);
  background: rgba(255, 255, 255, 0.2);
}

.new-card-arrow svg {
  width: 18px;
  height: 18px;
}

.carousel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.carousel-index {
  color: var(--ink-mute);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.carousel-buttons {
  display: flex;
  gap: 7px;
}

.carousel-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(44, 36, 25, 0.045);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.carousel-btn:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
}

.carousel-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.carousel-btn svg {
  width: 17px;
  height: 17px;
}

.home-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  align-items: end;
  gap: clamp(48px, 8vw, 110px);
  margin-top: clamp(66px, 8vw, 112px);
}

.action-copy .eyebrow {
  color: var(--gold);
}

.action-title {
  margin: 12px 0 0;
  font-size: clamp(40px, 4.7vw, 68px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.action-desc {
  max-width: 460px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.action-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 430px;
  justify-self: end;
}

.action-controls .collection-progress {
  margin-top: 6px;
}

/* ------------------------------------------------------------
   Gallery
   --------------------------------------------------------- */

.gallery-main {
  padding-top: clamp(36px, 6vw, 76px);
}

.gallery-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 48px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.gallery-title-wrap .section-desc {
  margin-top: 20px;
}

.gallery-progress {
  padding-bottom: 8px;
}

.gallery-count {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 10px;
  font-family: "DIN Alternate", "SF Mono", monospace;
}

.gallery-count strong {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.gallery-count span {
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.gallery-progress .progress-track {
  height: 5px;
}

.gallery-progress-copy {
  margin: 10px 0 0;
  color: var(--ink-mute);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px) clamp(14px, 2vw, 24px);
}

.work-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.work-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #e8e4dc;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease);
}

.work-card.is-unlocked:hover .work-media {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(44, 36, 25, 0.12);
}

.work-card.is-unlocked:hover .work-media img {
  transform: scale(1.025);
}

.work-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(22, 22, 24, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 8px;
  letter-spacing: 0.08em;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.work-media .is-mosaic {
  image-rendering: pixelated;
  filter: saturate(0.72) brightness(0.82);
  transform: scale(1.02);
}

.locked-veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background:
    radial-gradient(90% 60% at 50% 40%, rgba(18, 18, 22, 0.1), rgba(18, 18, 22, 0.48)),
    rgba(20, 20, 24, 0.12);
  color: #fff;
}

.lock-chip {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.lock-chip svg {
  width: 20px;
  height: 20px;
}

.locked-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.work-caption {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 0 4px;
}

.work-title {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-meta {
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.work-cta {
  margin-top: 4px;
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.08em;
  transition: color 0.2s var(--ease);
}

.work-card.is-unlocked:hover .work-cta {
  color: var(--ink);
}

.is-locked {
  cursor: pointer;
}

.is-locked .work-title {
  color: var(--ink-soft);
}

.gallery-footnote {
  margin: 38px 4px 0;
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0.03em;
}

/* ------------------------------------------------------------
   Game
   --------------------------------------------------------- */

.game-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(255, 255, 255, 0.78), transparent 58%),
    var(--bg);
}

.game-topbar {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(245, 243, 239, 0.65);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.game-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease);
}

.back-link:hover {
  color: var(--ink);
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.game-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-mute);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.step-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.brand-mini {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 72px);
  padding-top: clamp(18px, 2.8vw, 30px);
  padding-bottom: 28px;
}

.game-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.side-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ddd7cd;
  box-shadow: var(--shadow-card);
}

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

.preview-guide {
  position: absolute;
  z-index: 1;
  background: rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.preview-cut {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 236, 198, 0.96);
  background: rgba(255, 213, 135, 0.14);
  color: #fff6df;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.preview-tag {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.artwork-info .eyebrow {
  color: var(--gold);
}

.artwork-title {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.artwork-en {
  margin: 3px 0 0;
  color: var(--ink-mute);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.artwork-by {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.artwork-note {
  max-width: 340px;
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.artwork-record {
  margin: 11px 0 0;
  color: var(--gold);
  font-family: "DIN Alternate", "PingFang SC", sans-serif;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 45px;
  padding: 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(44, 36, 25, 0.035);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.pill-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.pill-btn.is-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.pill-btn.is-dark:hover {
  background: #2b2b2e;
}

.pill-btn.is-empty {
  opacity: 0.4;
}

.pill-icon {
  display: grid;
  place-items: center;
  opacity: 0.55;
}

.pill-icon svg {
  width: 14px;
  height: 14px;
}

.hint-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #1c1914;
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.external-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 24px rgba(44, 36, 25, 0.045);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.external-card:hover {
  background: #fff;
  transform: translateY(-1px);
}

.external-media {
  position: relative;
  flex: none;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 17px;
  background: #e6e1d8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.external-media img {
  position: absolute;
  max-width: none;
}

.external-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.external-eyebrow {
  color: var(--ink-mute);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.16em;
}

.external-copy strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.external-copy > span:last-child {
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.external-check {
  display: grid;
  flex: none;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: rgba(173, 138, 90, 0.14);
  color: var(--gold);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.external-check.is-visible {
  opacity: 1;
  transform: scale(1);
}

.external-check svg {
  width: 16px;
  height: 16px;
}

.external-card.is-ready {
  border-color: rgba(173, 138, 90, 0.62);
  background: linear-gradient(135deg, rgba(255, 251, 242, 0.96), rgba(246, 235, 213, 0.9));
  box-shadow: 0 14px 36px rgba(173, 138, 90, 0.16);
  animation: externalBreath 2s ease-in-out infinite;
}

.external-card.is-placed {
  opacity: 0.72;
  animation: none;
}

.external-card.is-hint {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(173, 138, 90, 0.12);
}

.external-card.is-pulsing {
  animation: externalPulse 0.4s var(--ease);
}

@keyframes externalBreath {
  0%, 100% { box-shadow: 0 14px 36px rgba(173, 138, 90, 0.12); }
  50% { box-shadow: 0 16px 44px rgba(173, 138, 90, 0.24); }
}

@keyframes externalPulse {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-5px); }
  65% { transform: translateX(4px); }
}

.side-collection {
  margin: 0;
  padding-left: 4px;
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.game-main {
  min-width: 0;
}

.game-main-inner {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.timer-panel {
  padding: 1px 3px 12px;
}

.timer-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.timer-label {
  color: var(--ink-mute);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.timer-value {
  color: var(--ink);
  font-family: "DIN Alternate", "SF Mono", "PingFang SC", monospace;
  font-size: 29px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}

.timer-value.is-over {
  color: var(--danger);
}

.timer-target {
  margin-left: auto;
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.timer-track {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(29, 29, 31, 0.08);
}

.timer-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 0.28s linear, background 0.3s var(--ease);
}

.timer-fill.is-over {
  background: var(--danger);
}

.board-shell {
  padding: clamp(8px, 1.1vw, 13px);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.puzzle-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 24px;
  background: #f2efe9;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.board-guide {
  position: absolute;
  z-index: 0;
  border-right: 1px solid rgba(29, 29, 31, 0.05);
  border-bottom: 1px solid rgba(29, 29, 31, 0.05);
  pointer-events: none;
}

.blank-slot {
  position: absolute;
  z-index: 1;
  border-radius: 4px;
  background: #f7f4ee;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.045);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.blank-slot.is-ready {
  background: #f5ead6;
  box-shadow: inset 0 0 0 2px var(--gold);
  animation: blankPulse 1.8s ease-in-out infinite;
}

.blank-slot.is-hint {
  box-shadow: inset 0 0 0 3px var(--gold);
}

@keyframes blankPulse {
  0%, 100% { background: #f7efdf; }
  50% { background: #efe0c6; }
}

.puzzle-tile {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 25%;
  height: 25%;
  padding: 1.5px;
  border: 0;
  background: transparent;
  transition: transform 0.17s cubic-bezier(0.22, 0.84, 0.28, 1);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.puzzle-tile:hover .tile-frame {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.puzzle-tile:focus-visible {
  z-index: 4;
  outline: 2px solid var(--gold);
  outline-offset: -3px;
}

.tile-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #e6e1d8;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.08);
}

.tile-frame img {
  position: absolute;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.puzzle-tile.is-hint-source .tile-frame {
  box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 2px rgba(173, 138, 90, 0.2);
  animation: sourceGlow 1.3s ease-in-out infinite;
}

@keyframes sourceGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.78; }
}

.hint-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hint-ghost {
  position: absolute;
  display: block;
  overflow: hidden;
  animation: hintIn 0.25s var(--ease) both;
}

.hint-ghost img {
  position: absolute;
  max-width: none;
  opacity: 0.5;
}

.hint-ring {
  position: absolute;
  inset: 2px;
  border: 2px dashed var(--gold);
  background: rgba(255, 226, 172, 0.1);
  animation: hintRing 1.3s ease-in-out infinite;
}

.hint-label {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(29, 29, 31, 0.88);
  color: #fff7e8;
  font-size: 8px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@keyframes hintIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hintRing {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.complete-art {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: completeIn 0.55s var(--ease) both;
}

@keyframes completeIn {
  from { opacity: 0; transform: scale(1.01); }
  to { opacity: 1; transform: scale(1); }
}

.shuffle-mask {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(249, 247, 242, 0.92);
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.shuffle-mask.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.shuffle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(173, 138, 90, 0.12);
  animation: dotPulse 1s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1); opacity: 1; }
}

.puzzle-board.is-shaking {
  animation: boardShake 0.28s var(--ease);
}

@keyframes boardShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
  82% { transform: translateX(-2px); }
}

.board-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
  padding: 0 4px;
}

.game-caption {
  overflow: hidden;
  margin: 0;
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-steps {
  flex: none;
  margin: 0;
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.game-steps strong {
  color: var(--ink);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 13px;
  font-weight: 600;
}

.game-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  padding: 0 2px;
}

.quiet-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.03em;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.quiet-button:hover {
  color: var(--ink);
  background: rgba(29, 29, 31, 0.045);
}

.quiet-button svg {
  width: 15px;
  height: 15px;
}

/* ------------------------------------------------------------
   Modals
   --------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.24s var(--ease), visibility 0.24s var(--ease);
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal.is-closing {
  opacity: 0;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 22, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: visible;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: 0 50px 120px rgba(15, 14, 12, 0.28);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.36s var(--ease), opacity 0.36s var(--ease);
}

.modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.modal-close:hover {
  background: #fff;
  transform: rotate(5deg);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

/* Work detail */

.detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
}

.detail-media {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #e8e4dc;
}

.art-backdrop {
  position: absolute;
  inset: -28px;
  background-position: center;
  background-size: cover;
  filter: blur(28px) saturate(0.86) brightness(0.72);
  transform: scale(1.08);
  opacity: 0.58;
}

.detail-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-body {
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 52px);
  overflow-y: auto;
}

.detail-body .eyebrow {
  color: var(--gold);
}

.detail-title {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.detail-meta {
  margin: 7px 0 0;
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.detail-note {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.detail-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-stat span {
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.detail-stat strong {
  font-family: "DIN Alternate", "SF Mono", "PingFang SC", sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.detail-grade {
  color: var(--gold);
}

.detail-progress-line {
  margin-top: 16px;
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
  padding-top: 28px;
}

.detail-actions .btn {
  min-height: 50px;
}

/* Result */

.result-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  width: min(940px, 100%);
  overflow: hidden;
}

.result-visual {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: #e8e4dc;
}

.result-visual > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.18), transparent 35%, rgba(10, 11, 14, 0.38));
  content: "";
  pointer-events: none;
}

.result-grade {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 24px;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: "DIN Alternate", "SF Mono", serif;
  font-size: 38px;
  line-height: 1;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.result-art-caption {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.result-body {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  overflow-y: auto;
}

.result-body .eyebrow {
  color: var(--gold);
}

.result-title {
  margin: 7px 0 0;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.result-work {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 17px;
}

.result-work strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.result-work span {
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.result-badge {
  align-self: flex-start;
  margin-top: 13px;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: rgba(173, 138, 90, 0.1);
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 21px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.result-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-stat span {
  color: var(--ink-mute);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.result-stat strong {
  font-family: "DIN Alternate", "SF Mono", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.result-praise {
  margin-top: 18px;
}

.praise-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.praise-head strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.result-stars {
  display: flex;
  gap: 3px;
}

.star {
  color: rgba(29, 29, 31, 0.15);
  font-size: 12px;
}

.star.is-on {
  color: var(--gold);
}

.result-praise p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.result-collection {
  margin-top: 18px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.result-actions .btn {
  min-height: 50px;
  padding-left: 18px;
}

.result-actions .btn-secondary {
  box-shadow: none;
  background: rgba(29, 29, 31, 0.04);
}

/* Poster */

.poster-panel {
  width: min(520px, 100%);
  max-height: 92vh;
  padding: 18px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: var(--bg);
}

.poster-head {
  padding: 8px 8px 14px;
}

.poster-head h2 {
  margin: 6px 0 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.poster-scroll {
  width: 100%;
  max-height: min(64vh, 760px);
  overflow: auto;
  border-radius: 22px;
  background: #e9e5dd;
  overscroll-behavior: contain;
}

.poster-scroll img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(64vh, 760px);
  margin: 0 auto;
  height: auto;
}

.poster-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 11px;
}

.poster-actions .btn {
  min-height: 48px;
  padding-left: 14px;
  font-size: 12px;
}

.poster-note {
  margin: 10px 0 0;
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Info */

.info-panel {
  width: min(600px, 100%);
  padding: clamp(28px, 4vw, 46px);
  overflow-y: auto;
}

.info-panel .eyebrow {
  color: var(--gold);
}

.info-panel h2 {
  max-width: 420px;
  margin: 9px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.how-list {
  display: flex;
  flex-direction: column;
  margin: 24px 0 28px;
}

.how-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.how-item > span {
  flex: none;
  color: var(--gold);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.how-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.info-panel > .btn {
  min-height: 50px;
}

/* ------------------------------------------------------------
   Toast / boot
   --------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 400;
  max-width: min(86vw, 560px);
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: rgba(29, 29, 31, 0.9);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.boot {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.boot-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-size: 24px;
}

.boot-title {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.1em;
}

.boot-sub {
  margin: 0;
  color: var(--ink-mute);
  font-size: 8px;
  letter-spacing: 0.26em;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  font-size: 14px;
}

/* ------------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1180px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new-card {
    flex-basis: clamp(300px, 36vw, 420px);
  }
}

@media (max-width: 980px) {
  .game-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 720px;
  }

  .game-side {
    gap: 14px;
  }

  .side-summary {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }

  .preview-card {
    border-radius: 24px;
  }

  .artwork-title {
    font-size: 25px;
  }

  .artwork-en,
  .artwork-note {
    display: none;
  }

  .preview-cut {
    font-size: 0;
  }

  .artwork-by {
    margin-top: 4px;
  }

  .artwork-record {
    margin-top: 6px;
  }

  .side-actions {
    max-width: none;
  }

  .external-card {
    padding: 9px;
  }

  .external-media {
    width: 68px;
    height: 68px;
    border-radius: 14px;
  }

  .external-copy {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .external-copy strong {
    font-size: 16px;
  }

  .external-copy > span:last-child {
    margin-left: auto;
  }

  .external-check {
    width: 26px;
    height: 26px;
  }

  .side-collection {
    display: none;
  }

  .game-main-inner {
    max-width: 100%;
  }

  .gallery-head {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 30px;
  }

  .home-actions {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
  }

  .action-controls {
    max-width: 100%;
    justify-self: stretch;
  }

  .action-title {
    font-size: clamp(40px, 6vw, 56px);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .section-desc {
    margin: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
    --radius-xl: 28px;
    --radius-lg: 22px;
  }

  .header-inner {
    height: 64px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    font-size: 15px;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-en {
    font-size: 6px;
  }

  .nav-link {
    min-height: 33px;
    padding: 0 10px;
    font-size: 11px;
  }

  .nav-count {
    min-width: 27px;
    height: 18px;
    font-size: 8px;
  }

  .display-title {
    font-size: clamp(42px, 12vw, 58px);
  }

  .new-card {
    flex-basis: min(calc(100vw - 74px), 420px);
    border-radius: 30px;
  }

  .new-card-title {
    font-size: 26px;
  }

  .new-card-copy {
    right: 76px;
    bottom: 21px;
    left: 21px;
  }

  .new-card-arrow {
    right: 18px;
    bottom: 18px;
    width: 43px;
    height: 43px;
  }

  .home-actions {
    margin-top: 62px;
  }

  .action-title {
    font-size: clamp(38px, 10vw, 50px);
  }

  .action-desc {
    margin-top: 16px;
    font-size: 13px;
  }

  .btn-large {
    min-height: 62px;
  }

  .btn-label {
    font-size: 14px;
  }

  .site-footer {
    margin-top: 70px;
    padding-bottom: calc(26px + env(safe-area-inset-bottom));
  }

  .footer-inner {
    align-items: center;
    flex-direction: column;
    gap: 7px;
  }

  .gallery-main {
    padding-top: 34px;
  }

  .gallery-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
  }

  .gallery-progress {
    width: 100%;
    max-width: 330px;
    padding-bottom: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .work-media {
    border-radius: 22px;
  }

  .work-title {
    font-size: 15px;
  }

  .work-meta {
    font-size: 9px;
  }

  .work-cta {
    font-size: 8px;
  }

  .work-badge {
    top: 9px;
    left: 9px;
    padding: 5px 7px;
    font-size: 7px;
  }

  .lock-chip {
    width: 40px;
    height: 40px;
  }

  .locked-text {
    font-size: 8px;
  }

  .gallery-footnote {
    margin-top: 26px;
  }

  .game-topbar-inner {
    height: 58px;
  }

  .brand-mini {
    display: none;
  }

  .game-layout {
    padding-top: 14px;
    padding-bottom: 28px;
    gap: 16px;
  }

  .game-side {
    gap: 11px;
  }

  .side-summary {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 13px;
  }

  .preview-card {
    border-radius: 20px;
  }

  .artwork-title {
    font-size: 21px;
  }

  .artwork-by {
    font-size: 9px;
  }

  .artwork-record {
    font-size: 9px;
  }

  .side-actions {
    gap: 7px;
  }

  .pill-btn {
    min-height: 40px;
    font-size: 11px;
  }

  .external-card {
    border-radius: 20px;
    padding: 8px;
  }

  .external-media {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .external-copy {
    gap: 6px;
  }

  .external-eyebrow {
    display: none;
  }

  .external-copy strong {
    font-size: 14px;
  }

  .external-copy > span:last-child {
    font-size: 8px;
  }

  .game-main-inner {
    max-width: 100%;
  }

  .timer-value {
    font-size: 26px;
  }

  .board-shell {
    border-radius: 28px;
    padding: 8px;
  }

  .puzzle-board {
    border-radius: 21px;
  }

  .board-meta {
    margin-top: 9px;
  }

  .game-caption {
    font-size: 9px;
  }

  .game-controls {
    margin-top: 7px;
  }

  .quiet-button {
    min-height: 32px;
    font-size: 9px;
  }

  .modal {
    place-items: end center;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 30px 30px 0 0;
  }

  .detail-panel,
  .result-panel {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .detail-media {
    flex: none;
    min-height: 0;
    height: clamp(200px, 56vw, 280px);
  }

  .detail-media img {
    height: 100%;
  }

  .detail-body {
    overflow: visible;
    padding: 26px 24px 24px;
  }

  .detail-title {
    font-size: 30px;
  }

  .detail-note {
    margin-top: 15px;
    font-size: 12px;
  }

  .detail-stats {
    margin-top: 18px;
    padding-top: 16px;
  }

  .detail-stat strong {
    font-size: 17px;
  }

  .detail-actions {
    padding-top: 22px;
  }

  .result-visual {
    flex: none;
    height: clamp(200px, 56vw, 280px);
    min-height: 0;
  }

  .result-grade {
    bottom: 18px;
    left: 18px;
    width: 64px;
    height: 64px;
    font-size: 32px;
  }

  .result-art-caption {
    top: 18px;
    right: 18px;
    font-size: 7px;
  }

  .result-body {
    overflow: visible;
    padding: 24px 22px 20px;
  }

  .result-title {
    font-size: 34px;
  }

  .result-work {
    margin-top: 11px;
  }

  .result-work strong {
    font-size: 20px;
  }

  .result-badge {
    margin-top: 10px;
  }

  .result-stats {
    margin-top: 16px;
    padding: 13px 0;
  }

  .result-praise {
    margin-top: 14px;
  }

  .result-collection {
    margin-top: 14px;
  }

  .result-actions {
    margin-top: 16px;
    gap: 7px;
  }

  .result-actions .btn {
    min-height: 47px;
  }

  .info-panel {
    width: 100%;
    max-height: 92vh;
    padding: 28px 22px 22px;
    border-radius: 30px 30px 0 0;
  }

  .info-panel h2 {
    font-size: 29px;
  }

  .poster-panel {
    width: 100%;
    max-height: 94vh;
    padding: 14px;
    overflow-y: auto;
    border-radius: 30px 30px 0 0;
  }

  .poster-scroll {
    max-height: 64vh;
  }

  .poster-scroll img {
    width: auto;
    max-width: 100%;
    max-height: 64vh;
    margin: 0 auto;
  }

  .poster-actions .btn {
    min-height: 46px;
    font-size: 11px;
  }

  .toast {
    bottom: calc(18px + env(safe-area-inset-bottom));
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  .site-nav .nav-link:first-child {
    display: none;
  }

  .display-title {
    font-size: 43px;
  }

  .section-desc {
    font-size: 12px;
  }

  .new-card {
    flex-basis: min(calc(100vw - 74px), 420px);
  }

  .action-title {
    font-size: 40px;
  }

  .btn {
    min-height: 58px;
  }

  .gallery-title-wrap .section-desc {
    margin-top: 14px;
  }

  .gallery-count strong {
    font-size: 32px;
  }

  .result-title {
    font-size: 31px;
  }

  .detail-body,
  .result-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .result-stat strong {
    font-size: 16px;
  }

  .puzzle-board {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .view {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   经典游戏页（沿用上一版拼图界面，做响应式收拢）
   ============================================================ */

.classic-game {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 85% 4%, rgba(255, 252, 245, 0.9), transparent 38%),
    radial-gradient(ellipse at 8% 72%, rgba(255, 251, 243, 0.65), transparent 42%),
    #f2ede4;
}

.classic-nav {
  background: #12110f;
  color: #f6f1e7;
}

.classic-nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  height: 60px;
  margin: 0 auto;
  padding: 0 24px;
}

.classic-back {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: rgba(246, 241, 231, 0.78);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.classic-back:hover {
  color: #fff;
  background: rgba(246, 241, 231, 0.08);
}

.classic-back svg {
  width: 22px;
  height: 22px;
}

.classic-nav-center {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: baseline;
  gap: 10px;
  transform: translateX(-50%);
}

.classic-page {
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 19px;
  letter-spacing: 0.08em;
}

.classic-caption {
  color: rgba(246, 241, 231, 0.48);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.classic-nav-mark {
  color: rgba(246, 241, 231, 0.54);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.classic-shell {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 34px;
}

.classic-timer {
  padding: 17px 2px 0;
}

.classic-timer-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.classic-timer-label {
  color: rgba(23, 21, 18, 0.55);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.classic-timer-value {
  color: #1a1815;
  font-family: "DIN Alternate", "SF Mono", "PingFang SC", monospace;
  font-size: 29px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
}

.classic-timer-value.is-over {
  color: var(--danger);
}

.classic-timer-target {
  margin-left: auto;
  color: rgba(23, 21, 18, 0.42);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.classic-timer-track {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(23, 21, 18, 0.09);
}

.classic-timer-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #1a1815;
  transition: width 0.28s linear, background 0.3s var(--ease);
}

.classic-timer-fill.is-over {
  background: var(--danger);
}

.classic-intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 16px;
}

.classic-preview-block {
  flex: 0 0 190px;
  min-width: 0;
}

.classic-preview-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #ddd7cc;
  box-shadow: 0 10px 24px rgba(61, 48, 29, 0.1);
}

.classic-preview-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.classic-preview-frame .preview-guide {
  position: absolute;
  z-index: 1;
  background: rgba(255, 255, 255, 0.35);
}

.classic-preview-cut {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 236, 198, 0.96);
  background: rgba(255, 213, 135, 0.14);
  color: #fff6df;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.classic-preview-label {
  position: absolute;
  z-index: 2;
  bottom: 9px;
  left: 9px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.classic-work-title {
  margin: 10px 0 0;
  overflow: hidden;
  color: #1a1815;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.classic-work-en {
  margin: 3px 0 0;
  color: #b29d7c;
  font-size: 7px;
  letter-spacing: 0.16em;
}

.classic-work-by {
  margin: 5px 0 0;
  color: rgba(23, 21, 18, 0.48);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.classic-work-best {
  margin: 8px 0 0;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.classic-intro-side {
  flex: 1;
  min-width: 0;
}

.classic-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.classic-action {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 132px;
  min-height: 42px;
  padding: 0 9px;
  border: 1px solid rgba(23, 21, 18, 0.15);
  border-radius: 14px;
  background: rgba(251, 248, 241, 0.8);
  color: #1b1815;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.classic-action:hover {
  background: #fff;
  transform: translateY(-1px);
}

.classic-action.is-dark {
  border-color: #1b1815;
  background: #1b1815;
  color: #f8f2e7;
}

.classic-action.is-dark:hover {
  background: #2b2b2e;
}

.classic-action.is-empty {
  opacity: 0.42;
}

.classic-action-icon {
  display: grid;
  place-items: center;
  opacity: 0.55;
}

.classic-action-icon svg {
  width: 13px;
  height: 13px;
}

.classic-hint-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: #1c1914;
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 8px;
  font-weight: 700;
}

.classic-dock-area {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.classic-dock-caption {
  flex: 0 0 56px;
  padding-bottom: 6px;
  text-align: right;
}

.classic-dock-caption span {
  display: block;
  color: rgba(23, 21, 18, 0.4);
  font-size: 7px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.classic-dock-caption span:nth-child(2) {
  color: rgba(23, 21, 18, 0.68);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0;
  white-space: nowrap;
}

.classic-dock {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 94px;
  padding: 9px;
  border: 1px dashed rgba(173, 138, 90, 0.48);
  border-radius: 16px;
  background: rgba(251, 247, 238, 0.8);
  color: #1a1815;
  text-align: left;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.classic-dock:hover {
  background: #fffaf0;
  transform: translateY(-1px);
}

.classic-dock-media {
  position: relative;
  flex: none;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 10px;
  background: #e5dfd5;
  box-shadow: 0 6px 16px rgba(61, 48, 29, 0.14);
}

.classic-dock-media img {
  position: absolute;
  max-width: none;
}

.classic-dock-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.classic-dock-copy em {
  color: rgba(23, 21, 18, 0.34);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 6px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.classic-dock-copy strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.classic-dock-copy span {
  color: rgba(23, 21, 18, 0.4);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.classic-check {
  display: grid;
  flex: none;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(173, 138, 90, 0.14);
  color: var(--gold);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.classic-check.is-visible {
  opacity: 1;
  transform: scale(1);
}

.classic-check svg {
  width: 14px;
  height: 14px;
}

.classic-dock.is-ready {
  border-style: solid;
  border-color: rgba(173, 138, 90, 0.68);
  background: #fbf2e0;
  box-shadow: 0 10px 28px rgba(173, 138, 90, 0.15);
  animation: externalBreath 2s ease-in-out infinite;
}

.classic-dock.is-placed {
  opacity: 0.7;
  animation: none;
}

.classic-dock.is-hint {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(173, 138, 90, 0.1);
}

.classic-dock.is-pulsing {
  animation: externalPulse 0.4s var(--ease);
}

.classic-board-section {
  margin-top: 15px;
}

.classic-board-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(23, 21, 18, 0.09);
  border-radius: 12px;
  background: #fffdf9;
  box-shadow:
    0 20px 46px rgba(63, 49, 27, 0.1),
    0 3px 8px rgba(63, 49, 27, 0.04);
}

.classic-game .puzzle-board {
  width: 100%;
  border-radius: 7px;
  background: #f4f1eb;
}

.classic-board-shell .puzzle-tile {
  padding: 1.5px;
}

.classic-board-shell .tile-frame {
  border-radius: 3px;
}

.classic-board-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 560px;
  margin: 10px auto 0;
  padding: 0 2px;
}

.classic-board-meta p {
  margin: 0;
  color: rgba(23, 21, 18, 0.45);
  font-size: 9px;
  letter-spacing: 0.015em;
}

.classic-board-meta p:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.classic-board-meta p:last-child {
  flex: none;
  letter-spacing: 0.04em;
}

.classic-board-meta strong {
  color: #1a1815;
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 13px;
  font-weight: 600;
}

.classic-board-note {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  max-width: 560px;
  margin: 14px auto 0;
  padding-top: 11px;
  border-top: 1px solid rgba(23, 21, 18, 0.1);
}

.classic-board-note span {
  display: block;
  color: #ad8a5a;
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 7px;
  letter-spacing: 0.12em;
}

.classic-board-note p {
  margin: 4px 0 0;
  color: rgba(23, 21, 18, 0.45);
  font-size: 9px;
  line-height: 1.5;
}

.classic-note-target {
  flex: none;
  text-align: right;
}

.classic-note-target p {
  color: #8b6a37;
}

.classic-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 560px;
  margin: 12px auto 0;
  padding-top: 9px;
  border-top: 1px solid rgba(23, 21, 18, 0.1);
}

.classic-quiet {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  color: rgba(23, 21, 18, 0.58);
  font-size: 9px;
  letter-spacing: 0.03em;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.classic-quiet:hover {
  color: #1a1815;
  background: rgba(23, 21, 18, 0.05);
}

.classic-quiet svg {
  width: 15px;
  height: 15px;
}

/* 宽屏：保留上一版组件，做左右分区 */
@media (min-width: 1000px) {
  .classic-shell {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    grid-template-areas:
      "timer timer"
      "intro board"
      "intro bottom";
    column-gap: 36px;
    align-items: start;
  }

  .classic-timer {
    grid-area: timer;
  }

  .classic-intro {
    grid-area: intro;
    margin-top: 14px;
  }

  .classic-board-section {
    grid-area: board;
    margin-top: 14px;
  }

  .classic-bottom {
    grid-area: bottom;
    width: 100%;
    max-width: 560px;
    margin-top: 8px;
    margin-right: auto;
    margin-left: auto;
  }

  .classic-dock-caption {
    display: none;
  }

  .classic-actions {
    justify-content: stretch;
  }

  .classic-action {
    max-width: none;
  }

  .classic-board-shell,
  .classic-board-meta {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
  }

  .classic-board-section {
    max-width: 604px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
  }
}

/* 平板及手机：回到上一版的纵向布局 */
@media (max-width: 999px) {
  .classic-shell {
    display: block;
    max-width: 720px;
  }

  .classic-board-shell,
  .classic-board-meta,
  .classic-board-note,
  .classic-bottom {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .classic-nav-inner {
    height: 56px;
    padding: 0 16px;
  }

  .classic-nav-mark {
    display: none;
  }

  .classic-back {
    width: 34px;
    height: 34px;
  }

  .classic-back svg {
    width: 19px;
    height: 19px;
  }

  .classic-page {
    font-size: 17px;
  }

  .classic-caption {
    font-size: 7px;
  }

  .classic-shell {
    padding: 0 16px 28px;
  }

  .classic-timer {
    padding-top: 11px;
  }

  .classic-timer-value {
    font-size: 26px;
  }

  .classic-timer-track {
    margin-top: 8px;
  }

  .classic-intro {
    gap: 12px;
    margin-top: 12px;
  }

  .classic-preview-block {
    flex-basis: 126px;
  }

  .classic-preview-frame {
    border-radius: 10px;
  }

  .classic-work-title {
    margin-top: 8px;
    font-size: 17px;
  }

  .classic-work-en {
    display: none;
  }

  .classic-work-by {
    margin-top: 4px;
    font-size: 8px;
  }

  .classic-work-best {
    margin-top: 5px;
    font-size: 8px;
  }

  .classic-action {
    min-height: 39px;
    padding: 0 7px;
    border-radius: 12px;
    font-size: 10px;
  }

  .classic-dock-area {
    gap: 6px;
    margin-top: 9px;
  }

  .classic-dock-caption {
    flex-basis: 50px;
  }

  .classic-dock {
    min-height: 78px;
    gap: 7px;
    padding: 7px;
    border-radius: 13px;
  }

  .classic-dock-media {
    width: 58px;
    height: 58px;
    border-radius: 8px;
  }

  .classic-dock-copy strong {
    font-size: 13px;
  }

  .classic-dock-copy span {
    font-size: 7px;
  }

  .classic-check {
    width: 20px;
    height: 20px;
  }

  .classic-board-section {
    margin-top: 12px;
  }

  .classic-board-shell {
    padding: 6px;
    border-radius: 11px;
  }

  .classic-game .puzzle-board {
    border-radius: 6px;
  }

  .classic-board-meta {
    margin-top: 8px;
  }

  .classic-board-note {
    margin-top: 9px;
    padding-top: 8px;
  }

  .classic-board-note p {
    font-size: 8px;
  }

  .classic-bottom {
    margin-top: 9px;
    padding-top: 7px;
  }

  .classic-quiet {
    min-height: 31px;
    font-size: 8px;
  }

  .classic-quiet svg {
    width: 13px;
    height: 13px;
  }
}

/* ---------- 游戏内原画弹窗 / 求助 / 提示增强 ---------- */

.classic-preview-frame {
  display: block;
  padding: 0;
  border: 1px solid rgba(23, 21, 18, 0.08);
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.classic-preview-frame:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.classic-preview-zoom {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(20, 19, 17, 0.42);
  color: rgba(255, 255, 255, 0.84);
  font-size: 7px;
  letter-spacing: 0.08em;
  opacity: 0.72;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity 0.2s var(--ease);
}

.classic-preview-frame:hover .classic-preview-zoom,
.classic-preview-frame:focus-visible .classic-preview-zoom {
  opacity: 1;
  background: rgba(20, 19, 17, 0.58);
}

.classic-preview-zoom::after {
  content: " ↗";
}

.help-panel {
  width: min(560px, 100%);
  padding: clamp(28px, 4vw, 42px);
  overflow-y: auto;
}

.help-panel .eyebrow {
  color: var(--gold);
}

.help-title {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.help-desc {
  margin: 15px 0 22px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.help-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.help-link {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  outline: none;
}

.help-link:focus {
  border-color: var(--gold);
}

.help-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
}

.help-actions .btn {
  min-height: 48px;
  padding-left: 14px;
  font-size: 11px;
}

.help-note {
  margin: 12px 0 0;
  color: var(--ink-mute);
  font-size: 9px;
  line-height: 1.6;
}

.help-continue {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.03em;
  border-radius: var(--radius-pill);
}

.help-continue:hover {
  color: var(--ink);
  background: rgba(29, 29, 31, 0.04);
}

.artwork-detail .detail-media img {
  object-fit: contain;
}

.artwork-detail-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line-soft);
}

.artwork-detail-facts span {
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.artwork-detail-facts strong {
  color: var(--gold);
  font-family: "DIN Alternate", "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.artwork-detail-tip {
  margin: 14px 0 0;
  color: var(--ink-mute);
  font-size: 9px;
  line-height: 1.6;
}

.hint-ghost img {
  opacity: 0.6;
}

.hint-ring {
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(173, 138, 90, 0.12);
}

.hint-label {
  font-size: 9px;
  padding: 3px 7px;
}

@media (max-width: 760px) {
  .help-panel {
    width: 100%;
    max-height: 92vh;
    padding: 28px 22px 22px;
    border-radius: 30px 30px 0 0;
  }

  .help-actions {
    grid-template-columns: 1fr;
  }

  .help-actions .btn {
    min-height: 46px;
  }

  .classic-preview-zoom {
    opacity: 1;
    top: 6px;
    left: 6px;
  }
}

/* ---------- 求助：下一步箭头 ---------- */

.solve-hint {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 4px;
  background: rgba(255, 216, 148, 0.17);
  box-shadow:
    0 0 0 2px rgba(173, 138, 90, 0.12),
    inset 0 0 24px rgba(255, 217, 146, 0.22);
  pointer-events: none;
  animation: solveHintIn 0.22s var(--ease) both;
}

.solve-hint-pulse {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(173, 138, 90, 0.4);
  border-radius: 6px;
  animation: solveHintPulse 1.25s ease-in-out infinite;
}

.solve-hint-arrow {
  display: grid;
  width: 48%;
  height: 48%;
  place-items: center;
  color: #70542d;
  filter: drop-shadow(0 1px 2px rgba(255, 248, 233, 0.7));
}

.solve-hint-arrow svg {
  width: 100%;
  height: 100%;
}

.solve-hint--up .solve-hint-arrow {
  transform: rotate(-90deg);
}

.solve-hint--down .solve-hint-arrow {
  transform: rotate(90deg);
}

.solve-hint--left .solve-hint-arrow {
  transform: rotate(180deg);
}

.solve-hint--right .solve-hint-arrow {
  transform: rotate(0);
}

.solve-hint-label {
  position: absolute;
  bottom: 4px;
  left: 50%;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(29, 29, 31, 0.88);
  color: #fff7e8;
  font-size: 8px;
  letter-spacing: 0.03em;
  line-height: 1.3;
  white-space: nowrap;
  transform: translateX(-50%);
}

.puzzle-tile.is-hint-move-source .tile-frame {
  box-shadow:
    inset 0 0 0 3px var(--gold),
    0 0 0 3px rgba(173, 138, 90, 0.16);
  animation: sourceGlow 1.2s ease-in-out infinite;
}

.blank-slot.is-hint-move-blank {
  background: #f8e9ce;
  box-shadow:
    inset 0 0 0 2px rgba(173, 138, 90, 0.8),
    0 0 0 4px rgba(173, 138, 90, 0.1);
  animation: blankPulse 1.2s ease-in-out infinite;
}

@keyframes solveHintIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes solveHintPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.07); }
}

/* ============================================================
   首页单屏信息密度 / 玩法 tab
   ============================================================ */

.nav-how {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.home-page {
  min-height: 100svh;
}

.home-page .home-main {
  padding-top: clamp(18px, 2.4vw, 30px);
}

.home-page .section-head {
  align-items: flex-end;
  gap: 22px;
}

.home-page .display-title {
  margin-top: 5px;
  font-size: clamp(42px, 4.2vw, 58px);
}

.home-page .section-desc {
  max-width: 310px;
  margin-bottom: 2px;
  font-size: 12px;
  line-height: 1.6;
}

.home-page .carousel-region {
  margin-top: 18px;
}

.home-page .new-carousel {
  gap: 14px;
  padding: 2px 2px 6px;
}

.home-page .new-card {
  flex: 0 0 clamp(230px, 21vw, 292px);
  border-radius: 24px;
}

.home-page .new-card-title {
  font-size: clamp(22px, 2vw, 28px);
}

.home-page .new-card-copy {
  right: 74px;
  bottom: 20px;
  left: 20px;
}

.home-page .new-card-arrow {
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
}

.home-page .carousel-foot {
  margin-top: 4px;
}

.home-page .carousel-btn {
  width: 34px;
  height: 34px;
}

.home-page .home-actions {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 400px);
  align-items: center;
  gap: 48px;
  margin-top: clamp(24px, 3vw, 38px);
}

.home-page .action-title {
  margin-top: 8px;
  font-size: clamp(32px, 3.3vw, 46px);
}

.home-page .action-desc {
  max-width: 420px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.65;
}

.home-page .action-controls {
  max-width: 400px;
  gap: 8px;
}

.home-page .btn-large {
  min-height: 52px;
}

.home-page .site-footer {
  margin-top: clamp(20px, 2.4vw, 30px);
  padding: 18px 0 22px;
}

@media (max-width: 760px) {
  .home-page .home-main {
    padding-top: 12px;
  }

  .home-page .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .home-page .display-title {
    margin-top: 4px;
    font-size: 34px;
  }

  .home-page .section-desc {
    max-width: none;
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
  }

  .home-page .carousel-region {
    margin-top: 10px;
  }

  .home-page .new-carousel {
    gap: 11px;
    padding: 2px 2px 6px;
  }

  .home-page .new-card {
    flex-basis: min(calc(100vw - 104px), 290px);
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }

  .home-page .new-card-title {
    font-size: 22px;
  }

  .home-page .new-card-copy {
    right: 60px;
    bottom: 14px;
    left: 16px;
  }

  .home-page .new-card-en {
    font-size: 7px;
  }

  .home-page .new-card-by {
    margin-top: 3px;
    font-size: 9px;
  }

  .home-page .new-card-arrow {
    right: 14px;
    bottom: 14px;
    width: 34px;
    height: 34px;
  }

  .home-page .carousel-foot {
    margin-top: 3px;
  }

  .home-page .carousel-btn {
    width: 30px;
    height: 30px;
  }

  .home-page .carousel-index {
    font-size: 9px;
  }

  .home-page .home-actions {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 15px;
  }

  .home-page .action-copy {
    width: 100%;
  }

  .home-page .action-title {
    margin-top: 2px;
    font-size: 28px;
    line-height: 1.1;
  }

  .home-page .action-desc {
    max-width: none;
    margin-top: 7px;
    font-size: 10px;
    line-height: 1.5;
  }

  .home-page .action-controls {
    max-width: none;
    gap: 7px;
  }

  .home-page .btn-large {
    min-height: 49px;
  }

  .home-page .btn-label {
    font-size: 13px;
  }

  .home-page .btn-sub {
    font-size: 8px;
  }

  .home-page .action-controls .collection-progress {
    margin-top: 3px;
  }

  .home-page .site-footer {
    margin-top: 13px;
    padding: 13px 0 calc(14px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .home-page .display-title {
    font-size: 31px;
  }

  .home-page .new-card {
    flex-basis: min(calc(100vw - 92px), 280px);
  }
}

/* ---------- 结算：文字评级 / 保存分享 ---------- */

.result-rank-chip {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 24px;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.result-rank-chip span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.result-rank-chip strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.rating-percentile {
  flex: none;
  padding: 4px 8px;
  border: 1px solid rgba(173, 138, 90, 0.25);
  border-radius: var(--radius-pill);
  background: rgba(173, 138, 90, 0.08);
  color: var(--gold);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.05em;
}

.rating-note {
  display: block;
  margin-top: 5px;
  color: var(--ink-mute);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.result-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.result-share-actions .btn {
  min-height: 50px;
  padding: 0 13px;
  font-size: 11px;
}

.result-share-actions .btn-icon {
  width: 26px;
  height: 26px;
}

.result-share-actions .btn-icon svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 760px) {
  .result-rank-chip {
    bottom: 18px;
    left: 18px;
    padding: 7px 11px;
  }

  .result-rank-chip strong {
    font-size: 18px;
  }

  .result-share-actions {
    margin-top: 14px;
    gap: 7px;
  }

  .result-share-actions .btn {
    min-height: 47px;
    padding: 0 9px;
    font-size: 10px;
  }

  .result-share-actions .btn-icon {
    width: 22px;
    height: 22px;
  }
}

/* ============================================================
   首页：磨砂玻璃扇形卡组
   ============================================================ */

.home-page .home-main {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 0;
}

.home-hero {
  display: flex;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(10px, 2vh, 22px) var(--gutter) 0;
  flex-direction: column;
  align-items: center;
}

.home-hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.home-hero .eyebrow {
  color: var(--gold);
}

.home-hero-title {
  margin: 2px 0 0;
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.home-hero-sub {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: 0.01em;
}

.fan-stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: clamp(280px, 36vh, 360px);
  margin-top: clamp(12px, 2.2vh, 24px);
  perspective: 1200px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fan-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(620px, 88%);
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.9), rgba(220, 220, 220, 0.12) 55%, transparent 72%);
  filter: blur(18px);
  transform: translate(-50%, -46%);
  pointer-events: none;
}

.fan-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: var(--z);
  width: clamp(170px, 19vw, 250px);
  aspect-ratio: 1 / 1;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--x) * 1px))
    translateY(calc(var(--y) * 1px))
    rotate(calc(var(--rot) * 1deg));
  transform-origin: 50% 92%;
  transition: transform 0.62s var(--ease), filter 0.62s var(--ease);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.fan-card:nth-child(2) {
  --rot: -11;
  --x: -10;
  --y: 10;
  --z: 1;
  --rot-open: -17;
  --x-open: -205;
  --y-open: 22;
  --z-open: 1;
}

.fan-card:nth-child(3) {
  --rot: -4;
  --x: -3;
  --y: 4;
  --z: 2;
  --rot-open: -6;
  --x-open: -70;
  --y-open: 7;
  --z-open: 2;
}

.fan-card:nth-child(4) {
  --rot: 4;
  --x: 3;
  --y: 4;
  --z: 3;
  --rot-open: 6;
  --x-open: 70;
  --y-open: 7;
  --z-open: 3;
}

.fan-card:nth-child(5) {
  --rot: 11;
  --x: 10;
  --y: 10;
  --z: 4;
  --rot-open: 17;
  --x-open: 205;
  --y-open: 22;
  --z-open: 4;
}

.fan-stage.is-expanded .fan-card {
  z-index: var(--z-open);
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--x-open) * 1px))
    translateY(calc(var(--y-open) * 1px))
    rotate(calc(var(--rot-open) * 1deg));
}

.fan-glass {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow:
    0 22px 55px rgba(48, 48, 48, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.fan-card:hover .fan-glass {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 30px 70px rgba(48, 48, 48, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.fan-card:focus-visible {
  outline: none;
}

.fan-card:focus-visible .fan-glass {
  box-shadow:
    0 0 0 3px rgba(29, 29, 31, 0.75),
    0 24px 60px rgba(48, 48, 48, 0.18);
}

.fan-media {
  position: absolute;
  inset: 10px;
  overflow: hidden;
  border-radius: 18px;
  background: #e8e8e8;
}

.fan-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.fan-card:hover .fan-media img {
  transform: scale(1.035);
}

.fan-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(0deg, rgba(14, 14, 16, 0.72), rgba(14, 14, 16, 0.03) 62%, transparent 78%);
}

.fan-badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 8px;
  letter-spacing: 0.06em;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.fan-badge.is-collected {
  border-color: rgba(255, 238, 202, 0.38);
  background: rgba(173, 138, 90, 0.38);
  color: #fff8e9;
}

.fan-no {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 19px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "DIN Alternate", "SF Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.fan-copy {
  position: absolute;
  z-index: 2;
  right: 19px;
  bottom: 19px;
  left: 19px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: #fff;
  pointer-events: none;
}

.fan-en {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 7px;
  letter-spacing: 0.17em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fan-title {
  margin-top: 3px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fan-by {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.fan-tip {
  margin: 8px 0 0;
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: center;
  transition: color 0.3s var(--ease);
}

.fan-stage.is-expanded + .fan-tip {
  color: var(--ink-soft);
}

.home-controls {
  display: flex;
  width: min(380px, 100%);
  margin-top: 10px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.home-controls .btn {
  width: 100%;
}

.home-controls .collection-progress {
  margin-top: 2px;
}

@media (max-width: 760px) {
  .home-page .home-main {
    align-items: center;
  }

  .home-hero {
    padding-top: 10px;
  }

  .home-hero-head {
    gap: 0;
  }

  .home-hero-title {
    font-size: 31px;
  }

  .home-hero-sub {
    margin-top: 4px;
    font-size: 12px;
  }

  .fan-stage {
    height: 250px;
    margin-top: 10px;
  }

  .fan-card {
    width: 150px;
  }

  .fan-card:nth-child(2) {
    --x-open: -105;
    --y-open: 15;
  }

  .fan-card:nth-child(3) {
    --x-open: -35;
    --y-open: 5;
  }

  .fan-card:nth-child(4) {
    --x-open: 35;
    --y-open: 5;
  }

  .fan-card:nth-child(5) {
    --x-open: 105;
    --y-open: 15;
  }

  .fan-glass {
    padding: 8px;
    border-radius: 21px;
  }

  .fan-media {
    inset: 8px;
    border-radius: 14px;
  }

  .fan-badge {
    top: 14px;
    left: 14px;
    height: 21px;
    padding: 0 7px;
    font-size: 7px;
  }

  .fan-no {
    top: 15px;
    right: 15px;
    font-size: 8px;
  }

  .fan-copy {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .fan-en {
    font-size: 6px;
  }

  .fan-title {
    font-size: 19px;
  }

  .fan-by {
    margin-top: 2px;
    font-size: 8px;
  }

  .fan-tip {
    margin-top: 5px;
    font-size: 8px;
  }

  .home-controls {
    width: 100%;
    margin-top: 7px;
    gap: 7px;
  }

  .home-controls .btn-large {
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .fan-card {
    width: 138px;
  }

  .fan-card:nth-child(2) {
    --x-open: -96;
  }

  .fan-card:nth-child(3) {
    --x-open: -32;
  }

  .fan-card:nth-child(4) {
    --x-open: 32;
  }

  .fan-card:nth-child(5) {
    --x-open: 96;
  }
}

/* 白色底 + 细微纸张颗粒 */
:root {
  --bg: #ffffff;
  --bg-soft: #f8f8f7;
  --line: rgba(29, 29, 31, 0.08);
  --line-soft: rgba(29, 29, 31, 0.045);
  --noise-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

html {
  background: #fff;
}

body {
  background-color: #fff;
  background-image:
    var(--noise-texture),
    radial-gradient(1000px 620px at 82% -8%, rgba(255, 255, 255, 0.98), transparent 62%),
    radial-gradient(880px 520px at -4% 104%, rgba(246, 246, 246, 0.9), transparent 64%);
  background-size: 180px 180px, auto, auto;
  background-blend-mode: multiply, normal, normal;
}

.site-header {
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.8);
}

.site-footer {
  border-top: 0;
}

.classic-game {
  background-color: #fff;
  background-image: var(--noise-texture);
  background-size: 180px 180px;
}

.result-stats {
  border-top: 0;
  border-bottom: 0;
}

.detail-stats {
  border-top: 0;
}

.classic-board-note,
.classic-bottom {
  border-top: 0;
}

/* 成绩单弹窗：宽屏 2:1 */
@media (min-width: 900px) {
  .result-panel {
    width: min(1040px, 94vw);
    max-height: 92vh;
    aspect-ratio: 2 / 1;
  }

  .result-visual {
    min-height: 0;
  }

  .result-body {
    padding: clamp(22px, 2.4vw, 34px);
  }

  .result-title {
    font-size: clamp(34px, 3.2vw, 42px);
  }

  .result-work {
    margin-top: 10px;
  }

  .result-badge {
    margin-top: 9px;
  }

  .result-stats {
    margin-top: 14px;
    padding: 12px 0;
  }

  .result-praise {
    margin-top: 11px;
  }

  .result-collection {
    margin-top: 11px;
  }

  .result-share-actions {
    margin-top: 11px;
  }

  .result-share-actions .btn,
  .result-actions .btn {
    min-height: 43px;
  }

  .result-actions {
    margin-top: 8px;
    gap: 5px;
  }

  .result-rank-chip {
    bottom: 22px;
    left: 22px;
  }
}

/* 扇形卡组尺寸微调：桌面更聚焦，手机展开不溢出 */
.fan-card {
  width: clamp(190px, 21vw, 280px);
}

.fan-stage {
  height: clamp(300px, 40vh, 390px);
}

.fan-card:nth-child(2) {
  --x-open: -225;
  --y-open: 26;
}

.fan-card:nth-child(3) {
  --x-open: -77;
}

.fan-card:nth-child(4) {
  --x-open: 77;
}

.fan-card:nth-child(5) {
  --x-open: 225;
  --y-open: 26;
}

@media (max-width: 760px) {
  .fan-card {
    width: 150px;
  }

  .fan-stage {
    height: 250px;
  }

  .fan-card:nth-child(2) {
    --x-open: -82;
    --y-open: 14;
  }

  .fan-card:nth-child(3) {
    --x-open: -28;
  }

  .fan-card:nth-child(4) {
    --x-open: 28;
  }

  .fan-card:nth-child(5) {
    --x-open: 82;
    --y-open: 14;
  }
}

@media (max-width: 380px) {
  .fan-card {
    width: 136px;
  }

  .fan-card:nth-child(2) {
    --x-open: -55;
  }

  .fan-card:nth-child(3) {
    --x-open: -18;
  }

  .fan-card:nth-child(4) {
    --x-open: 18;
  }

  .fan-card:nth-child(5) {
    --x-open: 55;
  }
}

/* 2:1 结算弹窗在桌面端压缩到一屏内容 */
@media (min-width: 1100px) {
  .result-body {
    padding: 22px 30px;
  }

  .result-title {
    font-size: 37px;
  }

  .result-work {
    margin-top: 7px;
  }

  .result-work strong {
    font-size: 20px;
  }

  .result-badge {
    margin-top: 6px;
  }

  .result-stats {
    margin-top: 10px;
    padding: 9px 0;
  }

  .result-praise {
    margin-top: 8px;
  }

  .rating-note {
    margin-top: 2px;
  }

  .result-collection {
    margin-top: 8px;
  }

  .result-share-actions {
    margin-top: 8px;
  }

  .result-share-actions .btn {
    min-height: 40px;
  }

  .result-actions {
    margin-top: 5px;
  }

  .result-actions .btn-quiet {
    display: none;
  }

  .result-actions .btn {
    min-height: 40px;
  }
}

@media (min-width: 900px) and (max-width: 1023px) {
  .result-panel {
    width: min(940px, 94vw);
    max-height: 92vh;
    aspect-ratio: auto;
  }
}

@media (min-width: 1024px) and (max-width: 1099px) {
  .result-panel {
    width: min(1040px, 94vw);
    max-height: 92vh;
    aspect-ratio: 2 / 1;
  }

  .result-body {
    padding: 16px 24px;
  }

  .result-title {
    font-size: 32px;
  }

  .result-work {
    margin-top: 5px;
  }

  .result-work strong {
    font-size: 18px;
  }

  .result-badge {
    margin-top: 4px;
    padding: 4px 8px;
  }

  .result-stats {
    margin-top: 8px;
    padding: 7px 0;
  }

  .result-praise {
    margin-top: 6px;
  }

  .rating-note {
    display: none;
  }

  .result-collection {
    margin-top: 6px;
  }

  .result-share-actions {
    margin-top: 6px;
  }

  .result-share-actions .btn {
    min-height: 38px;
  }

  .result-actions {
    margin-top: 4px;
    gap: 0;
  }

  .result-actions .btn-quiet {
    display: none;
  }

  .result-actions .btn {
    min-height: 38px;
  }
}

@media (min-width: 761px) and (max-width: 1099px) {
  .fan-stage {
    height: 270px;
    margin-top: 8px;
  }
}

@media (max-width: 760px) {
  .fan-card:nth-child(2) {
    --x-open: -80;
  }

  .fan-card:nth-child(3) {
    --x-open: -27;
  }

  .fan-card:nth-child(4) {
    --x-open: 27;
  }

  .fan-card:nth-child(5) {
    --x-open: 80;
  }
}

@media (max-width: 380px) {
  .fan-card:nth-child(2) {
    --x-open: -54;
  }

  .fan-card:nth-child(3) {
    --x-open: -18;
  }

  .fan-card:nth-child(4) {
    --x-open: 18;
  }

  .fan-card:nth-child(5) {
    --x-open: 54;
  }
}


@media (max-height: 700px) {
  .home-page .home-main {
    align-items: flex-start;
  }
}

/* ============================================================
   样式优化：细条磨砂玻璃 / 灵敏扇形 / 1:1 完成图 / 对齐
   ============================================================ */

/* 细、淡、薄的磨砂玻璃边 */
.fan-glass {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 14px 34px rgba(35, 35, 35, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(9px) saturate(125%);
  backdrop-filter: blur(9px) saturate(125%);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}

.fan-media {
  inset: 4px;
  border-radius: 18px;
}

.fan-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s var(--ease);
  touch-action: manipulation;
}

.fan-card:hover .fan-glass {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 42px rgba(35, 35, 35, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.fan-card:hover .fan-media img {
  transform: scale(1.02);
  transition-duration: 0.48s;
}

.fan-media img {
  transition-duration: 0.48s;
}

.fan-tip {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.05em;
}

/* 首页按钮与进度对齐 */
.home-controls {
  width: min(420px, 100%);
  margin-top: 12px;
  gap: 9px;
}

.home-controls .btn {
  min-height: 54px;
  padding-left: 20px;
  padding-right: 14px;
}

.home-controls .btn-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.home-controls .btn-sub {
  margin-top: 1px;
  font-size: 9px;
}

.home-controls .btn-icon {
  width: 29px;
  height: 29px;
}

.home-controls .collection-progress {
  margin-top: 3px;
  padding: 0 1px;
}

.home-controls .progress-copy {
  font-size: 9px;
}

.home-controls .progress-track {
  height: 4px;
}

/* 完成弹窗：左图 1:1 */
@media (min-width: 1024px) {
  .result-panel {
    grid-template-columns: 1fr 1fr;
  }

  .result-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .result-visual > img {
    object-fit: contain;
  }
}

/* 完成弹窗：按钮与文字层级统一 */
.result-title {
  letter-spacing: -0.045em;
}

.result-work {
  gap: 2px;
}

.result-work strong {
  font-size: 21px;
}

.result-work span {
  font-size: 9px;
}

.result-stats {
  gap: 12px;
}

.result-stat strong {
  font-size: 19px;
}

.result-praise .praise-head {
  align-items: baseline;
}

.praise-head strong {
  font-size: 22px;
}

.result-praise p {
  margin-top: 4px;
  font-size: 11px;
}

.rating-note {
  margin-top: 4px;
}

.result-share-actions .btn,
.result-actions .btn {
  min-height: 44px;
  border-radius: 14px;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.result-share-actions .btn {
  padding-left: 15px;
  padding-right: 10px;
}

.result-share-actions .btn-icon {
  width: 27px;
  height: 27px;
}

.result-actions .btn-secondary {
  font-size: 11px;
}

.result-rank-chip {
  bottom: 22px;
  left: 22px;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.result-rank-chip strong {
  font-size: 19px;
}

@media (min-width: 1100px) {
  .result-body {
    padding: 22px 30px;
  }

  .result-share-actions .btn,
  .result-actions .btn {
    min-height: 43px;
  }
}

@media (max-width: 760px) {
  .fan-glass {
    padding: 3px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.09);
  }

  .fan-media {
    inset: 3px;
    border-radius: 15px;
  }

  .fan-tip {
    margin-top: 7px;
    font-size: 8px;
  }

  .home-controls {
    width: 100%;
    margin-top: 8px;
    gap: 8px;
  }

  .home-controls .btn {
    min-height: 50px;
    padding-left: 17px;
    padding-right: 11px;
  }

  .home-controls .btn-label {
    font-size: 13px;
  }

  .home-controls .btn-sub {
    font-size: 8px;
  }

  .home-controls .btn-icon {
    width: 27px;
    height: 27px;
  }

  .result-work strong {
    font-size: 19px;
  }

  .praise-head strong {
    font-size: 21px;
  }

  .result-share-actions .btn,
  .result-actions .btn {
    min-height: 44px;
    font-size: 10px;
  }
}

/* ============================================================
   作品扩充：更大画幅、无阴影、标题小两号
   ============================================================ */

.fan-halo {
  display: none;
}

.fan-glass,
.fan-card:hover .fan-glass,
.fan-card:focus-visible .fan-glass {
  box-shadow: none;
}

.fan-card {
  width: clamp(250px, 24vw, 340px);
}

.fan-stage {
  max-width: 1100px;
  height: 400px;
}

.fan-card:nth-child(2) {
  --x-open: -300;
  --y-open: 30;
}

.fan-card:nth-child(3) {
  --x-open: -100;
}

.fan-card:nth-child(4) {
  --x-open: 100;
}

.fan-card:nth-child(5) {
  --x-open: 300;
  --y-open: 30;
}

.fan-title {
  font-size: clamp(18px, 1.7vw, 23px);
}

@media (min-width: 761px) and (max-width: 1099px) {
  .fan-stage {
    height: 300px;
    margin-top: 8px;
  }

  .fan-card {
    width: 250px;
  }

  .fan-card:nth-child(2) {
    --x-open: -200;
  }

  .fan-card:nth-child(3) {
    --x-open: -66;
  }

  .fan-card:nth-child(4) {
    --x-open: 66;
  }

  .fan-card:nth-child(5) {
    --x-open: 200;
  }
}

@media (max-width: 760px) {
  .fan-stage {
    height: 280px;
    margin-top: 8px;
  }

  .fan-card {
    width: 170px;
  }

  .fan-card:nth-child(2) {
    --x-open: -68;
    --y-open: 14;
  }

  .fan-card:nth-child(3) {
    --x-open: -23;
  }

  .fan-card:nth-child(4) {
    --x-open: 23;
  }

  .fan-card:nth-child(5) {
    --x-open: 68;
    --y-open: 14;
  }

  .fan-title {
    font-size: 17px;
  }

  .fan-tip {
    margin-top: 5px;
  }

  .home-controls {
    margin-top: 5px;
  }
}

@media (max-width: 380px) {
  .fan-card {
    width: 145px;
  }

  .fan-card:nth-child(2) {
    --x-open: -44;
  }

  .fan-card:nth-child(3) {
    --x-open: -14;
  }

  .fan-card:nth-child(4) {
    --x-open: 14;
  }

  .fan-card:nth-child(5) {
    --x-open: 44;
  }
}

/* 更大画幅下的一屏与展开边界微调 */
.fan-card {
  width: clamp(240px, 23vw, 330px);
}

.fan-stage {
  height: 380px;
}

.home-hero {
  padding-top: clamp(6px, 1.2vh, 14px);
}

.fan-tip {
  margin-top: 8px;
}

.home-controls {
  margin-top: 10px;
}

@media (min-width: 761px) and (max-width: 1099px) {
  .fan-stage {
    height: 286px;
  }

  .fan-card:nth-child(2) {
    --x-open: -195;
  }

  .fan-card:nth-child(3) {
    --x-open: -65;
  }

  .fan-card:nth-child(4) {
    --x-open: 65;
  }

  .fan-card:nth-child(5) {
    --x-open: 195;
  }
}

@media (max-width: 760px) {
  .fan-card:nth-child(2) {
    --x-open: -67;
  }

  .fan-card:nth-child(3) {
    --x-open: -22;
  }

  .fan-card:nth-child(4) {
    --x-open: 22;
  }

  .fan-card:nth-child(5) {
    --x-open: 67;
  }
}

@media (max-width: 380px) {
  .fan-card:nth-child(2) {
    --x-open: -43;
  }

  .fan-card:nth-child(3) {
    --x-open: -14;
  }

  .fan-card:nth-child(4) {
    --x-open: 14;
  }

  .fan-card:nth-child(5) {
    --x-open: 43;
  }
}

@media (max-width: 760px) {
  .fan-card {
    width: 170px;
  }

  .fan-stage {
    height: 280px;
    margin-top: 8px;
  }

  .fan-title {
    font-size: 17px;
  }

  .home-hero {
    padding-top: 10px;
  }

  .fan-tip {
    margin-top: 5px;
  }

  .home-controls {
    margin-top: 5px;
  }
}

@media (max-width: 380px) {
  .fan-card {
    width: 145px;
  }

  .fan-stage {
    height: 260px;
  }
}

/* 浅色画作上的标题对比度 */
.fan-scrim {
  background:
    linear-gradient(180deg, rgba(8, 10, 12, 0.08), transparent 34%),
    linear-gradient(0deg, rgba(8, 10, 12, 0.86), rgba(8, 10, 12, 0.3) 48%, transparent 78%);
}

.fan-copy {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.24);
}

/* 首页四张卡片：统一尺寸、彻底移除阴影 */
.fan-card,
.fan-card:hover,
.fan-card:focus-visible,
.fan-glass,
.fan-card:hover .fan-glass,
.fan-card:focus-visible .fan-glass,
.fan-media {
  box-shadow: none !important;
  filter: none;
}

.fan-card {
  height: 330px;
  aspect-ratio: 1 / 1;
}

.fan-glass {
  border: 1px solid rgba(255, 255, 255, 0.34);
}

@media (min-width: 761px) and (max-width: 1099px) {
  .fan-card {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 760px) {
  .fan-card {
    width: 170px;
    height: 170px;
  }
}

@media (max-width: 380px) {
  .fan-card {
    width: 145px;
    height: 145px;
  }
}

/* 首页卡片：无文字、无任何阴影 */
.fan-copy,
.fan-badge,
.fan-no,
.fan-scrim {
  display: none !important;
}

.fan-card,
.fan-glass,
.fan-media,
.fan-card:hover .fan-glass,
.fan-card:focus-visible .fan-glass {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

.fan-halo {
  display: none !important;
}

/* ============================================================
   PWA / History UI / 3D ring / dots / settings / flat game
   ============================================================ */

:root {
  --dot-color: rgba(157, 184, 156, 0.4);
}

.home-page {
  position: relative;
  z-index: 1;
  background: transparent;
}

.dot-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.polka-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot-color);
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.14s ease-out;
  will-change: transform;
}

.polka-dot.is-near {
  transform: scale(1.8);
}

.home-page > .site-header,
.home-page > .home-main,
.home-page > .site-footer {
  position: relative;
  z-index: 1;
}

.home-page .home-main {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 0;
}

.home-hero {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(8px, 1.8vh, 20px) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.home-hero-title {
  margin: 3px 0 0;
  font-size: clamp(34px, 3.6vw, 50px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.home-hero-sub {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(13px, 1.2vw, 17px);
}

.ring-stage {
  --ring-radius: 360px;
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: clamp(300px, 40vh, 380px);
  margin-top: clamp(10px, 1.8vh, 20px);
  perspective: 1400px;
  touch-action: pan-y;
  outline: none;
}

.ring-stage:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 8px;
  border-radius: 30px;
}

.ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--ring-radius) * -1)) rotateY(var(--ring-angle, 0deg));
  transition: transform 0.62s var(--ease);
}

.ring.is-dragging,
.ring-stage.is-shuffling .ring {
  transition: none;
}

.ring-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(165px, 18vw, 235px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotateY(calc(var(--i) * 60deg)) translateZ(var(--ring-radius));
  transform-style: preserve-3d;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.ring-card-float {
  display: block;
  width: 100%;
  height: 100%;
  animation: ringFloat 5.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.72s);
}

.ring-card-pop {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.22s var(--ease);
}

.ring-card.is-popped .ring-card-pop {
  transform: scale(1.065);
}

.ring-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ring-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.ring-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  transform: translateY(-50%);
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.ring-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.ring-arrow svg {
  width: 17px;
  height: 17px;
}

.ring-prev { left: 2%; }
.ring-next { right: 2%; }

.ring-tip {
  margin: 5px 0 0;
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: center;
}

.home-controls {
  width: min(440px, 100%);
  margin-top: 10px;
  gap: 9px;
}

.home-controls .btn {
  min-height: 52px;
  padding-left: 48px;
  padding-right: 48px;
}

.home-controls .btn-start {
  min-height: 68px;
}

.home-controls .btn-start .btn-label {
  font-size: 17px;
}

.home-controls .btn-start .btn-sub {
  font-size: 9px;
}

.home-controls .btn-icon {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
}

.home-controls .btn:hover .btn-icon {
  transform: translateY(-50%) translate(1px, -1px);
}

.btn-start.is-starting {
  animation: startButtonOut 0.2s cubic-bezier(0.2, 1.6, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes startButtonOut {
  0% { opacity: 1; transform: scale(1); }
  38% { opacity: 1; transform: scale(0.9); }
  72% { opacity: 1; transform: scale(1.035); }
  100% { opacity: 0; transform: scale(0.64) translateY(8px); }
}

.home-page.is-transitioning {
  pointer-events: none;
}

.home-transition {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.home-transition-card {
  display: block;
  width: 210px;
  height: 210px;
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  opacity: 0;
  transform: scale(0.78);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), border-radius 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.home-transition.is-pip .home-transition-card.is-pip {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  border-radius: 30px;
  opacity: 1;
  transform: scale(1);
}

.home-transition-card.is-full {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  opacity: 1;
  transform: scale(1);
}

.home-transition-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes ringFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* 全局按钮：文字居中、纯色、大圆角、无描边 */
.btn {
  position: relative;
  justify-content: center;
  min-height: 56px;
  padding: 0 48px;
  border: 0;
  border-radius: var(--radius-pill);
  text-align: center;
  box-shadow: none;
}

.btn-copy {
  align-items: center;
  text-align: center;
}

.btn-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

.btn:hover .btn-icon {
  transform: translateY(-50%) translate(1px, -1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover {
  background: #2b2b2e;
  box-shadow: none;
}

.btn-secondary {
  border: 0;
  background: #f2f2f2;
  color: var(--ink);
  box-shadow: none;
}

.btn-secondary:hover {
  background: #eaeaea;
  box-shadow: none;
}

.btn-quiet {
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* 离线提示 / 更新提示 */
.offline-banner {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 120;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(29, 29, 31, 0.88);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.02em;
  transform: translateX(-50%);
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.offline-banner[hidden] {
  display: none;
}

.update-prompt {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 15px;
  border-radius: var(--radius-pill);
  background: rgba(29, 29, 31, 0.94);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.update-prompt.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.update-prompt button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  font-size: 10px;
}

.update-prompt .update-close {
  width: 28px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

/* 设置 / 玩法页 */
.simple-page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  background: transparent;
}

.simple-main {
  flex: 1;
  padding-top: clamp(34px, 6vw, 72px);
  padding-bottom: 60px;
}

.simple-heading h1 {
  margin: 8px 0 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.simple-heading p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.simple-card {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 34px);
  border: 0;
  border-radius: 30px;
  background: #f9f9f9;
}

.simple-card + .simple-card {
  margin-top: 14px;
}

.simple-card > .btn {
  margin-top: 18px;
}

.settings-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.settings-card-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.settings-card-head span {
  color: var(--ink-mute);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.dot-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.dot-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink-soft);
  font-size: 11px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.dot-choice:hover {
  background: #f1f1f1;
}

.dot-choice.is-active {
  background: var(--ink);
  color: #fff;
}

.dot-choice-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--swatch);
}

.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 4px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.toggle-pill {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: #d7d7d7;
  transition: background 0.2s var(--ease);
}

.toggle-pill::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 0.2s var(--ease);
}

.settings-toggle.is-on .toggle-pill {
  background: var(--ink);
}

.settings-toggle.is-on .toggle-pill::after {
  transform: translateX(18px);
}

.settings-note {
  margin: 13px 0 0;
  color: var(--ink-mute);
  font-size: 11px;
  line-height: 1.7;
}

/* 退出确认 */
.exit-copy {
  margin: 14px 0 20px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.exit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.exit-actions .btn {
  min-height: 48px;
  padding: 0 12px;
  font-size: 11px;
}

/* 游戏页：纯白、扁平、大圆角、无装饰线 */
.classic-game {
  background: #ffffff !important;
  background-image: none !important;
  color: var(--ink);
}

.classic-nav {
  border: 0;
  background: #fff;
  color: var(--ink);
}

.classic-back {
  color: var(--ink-soft);
}

.classic-back:hover {
  background: #f5f5f5;
  color: var(--ink);
}

.classic-page {
  color: var(--ink);
}

.classic-caption,
.classic-nav-mark {
  color: var(--ink-mute);
}

.classic-timer-track {
  background: #ececec;
}

.classic-board-shell {
  padding: 10px;
  border: 0;
  border-radius: 30px;
  background: #f9f9f9;
  box-shadow: none;
}

.classic-game .puzzle-board {
  border-radius: 22px;
  background: #f9f9f9;
}

.classic-board-shell .puzzle-tile {
  padding: 1px;
}

.classic-board-shell .tile-frame {
  border-radius: 0;
  box-shadow: none;
}

.classic-board-shell .blank-slot {
  border-radius: 0;
  background: #f9f9f9;
  box-shadow: none;
}

.classic-board-note {
  display: none;
}

.classic-bottom {
  border: 0;
  padding-top: 12px;
}

.classic-preview-frame {
  border: 0;
  border-radius: 24px;
  box-shadow: none;
}

.classic-dock {
  border: 0;
  border-radius: 24px;
  background: #f9f9f9;
  box-shadow: none;
}

.classic-action {
  border: 0;
  border-radius: var(--radius-pill);
  background: #f4f4f4;
  box-shadow: none;
}

.classic-action.is-dark {
  border: 0;
  background: var(--ink);
}

.classic-quiet {
  border: 0;
}

.puzzle-tile:focus-visible .tile-frame {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

@media (max-width: 760px) {
  .ring-stage {
    --ring-radius: 242px;
    height: 270px;
    margin-top: 8px;
  }

  .ring-card {
    width: 158px;
    border-radius: 20px;
  }

  .ring-card-pop {
    border-radius: 18px;
  }

  .ring-arrow {
    width: 32px;
    height: 32px;
  }

  .ring-tip {
    font-size: 8px;
  }

  .home-controls {
    width: min(360px, 100%);
    margin-top: 7px;
    gap: 7px;
  }

  .home-controls .btn {
    min-height: 48px;
  }

  .home-controls .btn-start {
    min-height: 58px;
  }

  .home-controls .btn-start .btn-label {
    font-size: 16px;
  }

  .home-controls .btn-start .btn-sub {
    font-size: 8px;
  }

  .offline-banner {
    top: 72px;
    font-size: 9px;
  }

  .update-prompt {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: center;
    font-size: 10px;
  }

  .simple-main {
    padding-top: 26px;
  }

  .simple-heading h1 {
    font-size: 38px;
  }

  .simple-heading p {
    font-size: 12px;
  }

  .simple-card {
    border-radius: 25px;
  }

  .exit-actions {
    grid-template-columns: 1fr;
  }

  .home-transition.is-pip .home-transition-card.is-pip {
    width: min(68vw, 330px);
    height: min(68vw, 330px);
  }
}

.settings-toggle {
  position: relative;
  justify-content: center;
  padding: 0 48px;
}

.settings-toggle .toggle-pill {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
}

.home-page {
  overflow-x: clip;
}

@media (max-width: 430px) {
  .site-nav .nav-link:first-child {
    display: inline-flex;
  }

  .site-nav .nav-count {
    display: none;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav .nav-link {
    padding: 0 7px;
    font-size: 10px;
  }
}

.home-page {
  transform: none !important;
}

.home-transition.is-fading .home-transition-card {
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}

@media (min-width: 761px) and (max-width: 1099px) {
  .ring-stage {
    height: 270px;
  }
}

.home-transition.is-fading {
  background: #ffffff;
  transition: background 0.2s var(--ease);
}

/* 首页：平面队列自动轮播 */
.queue-stage {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: 930px;
  height: clamp(300px, 38vh, 360px);
  margin: 18px auto 0;
  padding: 0 18px;
  overflow: hidden;
  clip-path: inset(0 12px);
  outline: none;
  touch-action: pan-y;
  cursor: grab;
}

.queue-stage:active {
  cursor: grabbing;
}

.queue-track {
  --queue-gap: 18px;
  display: flex;
  align-items: center;
  gap: var(--queue-gap);
  height: 100%;
  will-change: transform;
}

.queue-card {
  flex: 0 0 calc((100% - 2 * var(--queue-gap)) / 3);
  width: calc((100% - 2 * var(--queue-gap)) / 3);
  aspect-ratio: 1;
  box-sizing: border-box;
  transform: rotate(3deg);
  transform-origin: center;
  padding: 4px;
  border: 1px solid rgba(29, 29, 31, 0.055);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px) saturate(112%);
  -webkit-backdrop-filter: blur(10px) saturate(112%);
  box-shadow: none;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
}

.queue-card-float {
  display: block;
  width: 100%;
  height: 100%;
  animation: queueFloat 5.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.41s);
}

.queue-card-pop {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 21px;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}

.queue-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  user-select: none;
  -webkit-user-drag: none;
}

.queue-card.is-current {
  border-color: rgba(29, 29, 31, 0.085);
  background: rgba(255, 255, 255, 0.52);
}

.queue-card.is-current .queue-card-pop {
  transform: scale(1.025);
}

.queue-card.is-popped .queue-card-pop {
  transform: scale(1.065);
}

.queue-tip {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
}

@media (max-width: 760px) {
  .queue-stage {
    width: 100%;
    min-width: 0;
    max-width: 930px;
    height: clamp(150px, calc(32vw + 30px), 260px);
    margin-top: 10px;
    padding: 0 8px;
    clip-path: inset(0 7px);
  }

  .queue-track {
    --queue-gap: 8px;
  }

  .queue-card {
    flex-basis: calc((100% - 2 * var(--queue-gap)) / 3);
    width: calc((100% - 2 * var(--queue-gap)) / 3);
    border-radius: 18px;
  }

  .queue-card-pop {
    border-radius: 14px;
  }
}

@keyframes queueFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (min-width: 761px) and (max-width: 1099px) {
  .queue-stage {
    width: 780px;
    max-width: calc(100vw - 48px);
    height: 258px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .queue-card-float {
    animation: none;
  }
}

/* 结算：评级和“超越了 xx% 的玩家”居中突出 */
.result-praise {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px 12px;
  border-radius: 18px;
  background: #fafafa;
  text-align: center;
}

.result-praise .praise-head {
  justify-content: center;
  width: 100%;
  gap: 12px;
}

.result-praise .praise-head strong {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.result-praise p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-align: center;
}

.result-praise .rating-note {
  margin-top: 6px;
  text-align: center;
}

@media (max-width: 760px) {
  .result-praise {
    padding: 12px 12px 10px;
  }

  .result-praise .praise-head strong {
    font-size: 20px;
  }

  .result-praise p {
    font-size: 14px;
  }
}

@media (min-width: 761px) {
  .settings-panel {
    width: min(560px, calc(100vw - 48px));
    max-height: min(86vh, 780px);
    overflow: auto;
  }

  .settings-panel .settings-stack {
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .settings-panel {
    width: 100%;
    max-height: 86vh;
    overflow: auto;
  }

  .settings-panel .settings-stack {
    margin-top: 14px;
  }
}

/* 导航“玩法 / 设置”以按钮呈现，但保持轻入口的排版 */
button.nav-link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}


/* 抽卡：快速洗牌 + 上下随机悬浮 */
.queue-stage.is-shuffling .queue-track {
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.25, 1) !important;
}


/* 抽卡转场：卡牌厚度、翻面、洗牌、选牌浮出 */
.queue-card {
  position: relative;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s var(--ease), filter 0.32s var(--ease);
}

.queue-card-float {
  position: relative;
  perspective: 900px;
}

.queue-card-flip {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.queue-card-face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 21px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.queue-card-pop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 21px;
  transform: none;
  transition: none;
}

.queue-card-back {
  transform: rotateY(180deg);
  background: #17211b;
}

.queue-card-back img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.queue-card.is-current .queue-card-pop,
.queue-card.is-popped .queue-card-pop {
  transform: none;
}

.queue-card.is-current {
  transform: rotate(3deg) scale(1.025);
}

.queue-card.is-popped {
  transform: rotate(3deg) scale(1.06);
}

.queue-stage.is-shuffling .queue-card,
.queue-stage.is-slowing .queue-card,
.queue-card.is-selected,
.queue-card.is-recede {
  box-shadow: 2px 3px 0 rgba(20, 25, 22, 0.12), 4px 6px 0 rgba(20, 25, 22, 0.05);
}


.queue-stage.is-shuffling .queue-card-flip {
  animation: cardFlipFast 0.23s linear infinite;
  animation-delay: calc(var(--i) * -0.045s);
}

@keyframes cardFlipFast {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.queue-stage.is-slowing .queue-track {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.queue-stage.is-slowing .queue-card-flip {
  animation: none;
}

.queue-card.is-selected {
  z-index: 10;
  opacity: 1;
  filter: none;
  transform: rotate(3deg) translateY(-10px) scale(1.14);
}

.queue-card.is-recede {
  z-index: 1;
  opacity: 0.55;
  filter: blur(2px);
  transform: rotate(3deg) translateY(10px) scale(0.9);
}

.queue-card.is-selected .queue-card-flip,
.queue-card.is-recede .queue-card-flip {
  animation: none;
}

.queue-card.is-snap {
  animation: cardSnap 0.12s cubic-bezier(0.22, 1.5, 0.36, 1) forwards;
}

@keyframes cardSnap {
  0% { transform: rotate(3deg) translateY(-10px) scale(1.18); }
  55% { transform: rotate(3deg) translateY(-10px) scale(1.10); }
  100% { transform: rotate(3deg) translateY(-10px) scale(1.14); }
}

@media (max-width: 760px) {
  .queue-card-face,
  .queue-card-pop {
    border-radius: 14px;
  }
}

/* 首页开局：队列滑过 3 张后轻柔淡入 */
.queue-stage.is-gliding .queue-track {
  transition: transform 0.95s cubic-bezier(0.22, 0.8, 0.2, 1) !important;
}

.home-transition.is-wash {
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.home-transition.is-wash.is-visible {
  opacity: 1;
}

/* 结算页层级：评级第一，画馆进度第二 */
.result-praise {
  margin-top: 16px;
}

.result-praise .praise-head strong {
  font-size: 24px;
}

.result-praise p {
  font-size: 17px;
  font-weight: 700;
}

.result-collection-featured {
  margin-top: 12px;
  padding: 14px 18px 15px;
  border-radius: 16px;
  background: #f7f7f5;
}

.result-collection-featured .progress-copy {
  align-items: baseline;
}

.result-collection-featured .progress-copy > span:first-child {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.result-collection-featured .progress-copy > span:last-child {
  font-size: 12px;
}

.result-collection-featured .progress-copy strong {
  font-size: 23px;
  font-weight: 600;
}

.result-collection-featured .progress-track {
  margin-top: 9px;
}

.result-stats-compact {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
  padding: 12px 0;
}

@media (max-width: 760px) {
  .result-praise {
    padding: 12px 12px 10px;
  }

  .result-praise .praise-head strong {
    font-size: 21px;
  }

  .result-praise p {
    font-size: 15px;
  }

  .result-collection-featured {
    padding: 12px 14px;
  }

  .result-collection-featured .progress-copy strong {
    font-size: 20px;
  }
}

/* 结算页压缩纵向间距，确保桌面 2:1 面板内按钮完整可见 */
@media (min-width: 761px) {
  .result-body {
    padding: 18px 30px;
  }

  .result-title {
    margin-top: 4px;
    font-size: clamp(32px, 3.4vw, 42px);
  }

  .result-work {
    margin-top: 10px;
  }

  .result-badge {
    margin-top: 8px;
    padding: 4px 8px;
  }

  .result-praise {
    margin-top: 9px;
    padding: 10px 12px 9px;
  }

  .result-praise .praise-head strong {
    font-size: 22px;
  }

  .result-praise p {
    margin-top: 5px;
    font-size: 16px;
  }

  .result-praise .rating-note {
    margin-top: 3px;
  }

  .result-collection-featured {
    margin-top: 8px;
    padding: 10px 14px;
  }

  .result-stats-compact {
    margin-top: 8px;
    padding: 8px 0;
  }

  .result-share-actions {
    margin-top: 9px;
  }

  .result-share-actions .btn {
    min-height: 44px;
  }

  .result-actions {
    margin-top: 7px;
  }

  .result-actions .btn {
    min-height: 42px;
  }
}

/* 完成页：用时与评级文字叠在画作中央 */
.result-hero-stat {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 24px;
  text-align: center;
  color: #fff;
  background: radial-gradient(ellipse at center, rgba(12, 15, 13, 0.40) 0%, rgba(12, 15, 13, 0.20) 46%, rgba(12, 15, 13, 0.04) 76%);
  pointer-events: none;
}

.result-hero-time {
  font-family: "DIN Alternate", "PingFang SC", sans-serif;
  font-size: clamp(42px, 4.6vw, 62px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.4);
}

.result-hero-suffix {
  margin: 2px 0 0;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.result-hero-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
}

@media (min-width: 761px) {
  .result-title {
    font-size: 22px;
    margin-top: 3px;
  }

  .result-work strong {
    font-size: 16px;
  }

  .result-work span {
    font-size: 9px;
  }

  .result-collection-featured {
    margin-top: 16px;
    padding: 16px 18px 17px;
    border-radius: 16px;
  }

  .result-collection-featured .progress-copy > span:first-child {
    font-size: 16px;
  }

  .result-collection-featured .progress-copy strong {
    font-size: 26px;
  }

  .result-collection-featured .progress-track {
    margin-top: 10px;
  }

  .result-mini {
    margin: 8px 0 0;
    color: var(--ink-mute);
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .result-share-actions {
    margin-top: 14px;
  }
}

@media (max-width: 760px) {
  .result-hero-time {
    font-size: clamp(38px, 11vw, 50px);
  }

  .result-hero-suffix {
    font-size: 17px;
  }

  .result-title {
    font-size: 24px;
  }

  .result-work strong {
    font-size: 17px;
  }

  .result-collection-featured {
    margin-top: 14px;
    padding: 13px 15px;
  }

  .result-collection-featured .progress-copy > span:first-child {
    font-size: 15px;
  }

  .result-collection-featured .progress-copy strong {
    font-size: 23px;
  }

  .result-mini {
    margin: 7px 0 0;
    color: var(--ink-mute);
    font-size: 10px;
  }

  .result-share-actions {
    margin-top: 12px;
  }
}

/* 完成页恢复上一版：评级块居中，画馆进度第二 */
@media (min-width: 761px) {
  .result-body {
    padding: 18px 30px;
  }

  .result-title {
    margin-top: 4px;
    font-size: clamp(32px, 3.4vw, 42px);
  }

  .result-work {
    margin-top: 10px;
  }

  .result-work strong {
    font-size: 21px;
  }

  .result-work span {
    font-size: 9px;
  }

  .result-praise {
    margin-top: 9px;
    padding: 10px 12px 9px;
  }

  .result-praise .praise-head strong {
    font-size: 22px;
  }

  .result-praise p {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 700;
  }

  .result-praise .rating-note {
    margin-top: 3px;
  }

  .result-collection-featured {
    margin-top: 8px;
    padding: 10px 14px;
  }

  .result-collection-featured .progress-copy > span:first-child {
    font-size: 15px;
  }

  .result-collection-featured .progress-copy strong {
    font-size: 23px;
  }

  .result-stats-compact {
    margin-top: 8px;
    padding: 8px 0;
  }

  .result-share-actions {
    margin-top: 9px;
  }

  .result-share-actions .btn {
    min-height: 44px;
  }

  .result-actions {
    margin-top: 7px;
  }

  .result-actions .btn {
    min-height: 42px;
  }
}

@media (max-width: 760px) {
  .result-title {
    font-size: 34px;
  }

  .result-work strong {
    font-size: 20px;
  }

  .result-collection-featured {
    margin-top: 12px;
    padding: 12px 14px;
  }

  .result-collection-featured .progress-copy > span:first-child {
    font-size: 15px;
  }

  .result-collection-featured .progress-copy strong {
    font-size: 22px;
  }
}

/* 图片与普通文字不可长按/拖拽保存；仅成绩单作者与评级文案可复制 */
html,
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img {
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.result-work span,
.result-praise p {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* 大图透明遮罩：事件落在遮罩上，不落在图片上 */
.image-shield {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: block;
  background: transparent;
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.poster-scroll {
  position: relative;
}
