/* نسخهٔ چهارم: خلوت‌تر، فارسی، با گوشه‌های نرم؛ حرکت‌ها و مینی‌بازی اصلی حفظ شده‌اند. */
:root {
  --night: #0a1014;
  --night2: #131b1f;
  --bone: #f4eee5;
  --sand: #c2b8ab;
  --mute: #a4a19b;
  --ember: #d78c6c;
  --emberdim: #a8664d;
  --line: rgba(244,238,229,.16);
  --edge: clamp(18px,4vw,70px);
  --corner: clamp(20px,2.4vw,34px);
}
html { scroll-padding-top: 102px; }
body { background: var(--night); color: var(--bone); font-size: 16px; line-height: 1.9; }
main { display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; }
main > section { margin-inline: var(--edge); border-radius: var(--corner); overflow: hidden; }
main > section[id] { scroll-margin-top: 110px; }
button, a { -webkit-tap-highlight-color: transparent; }
.pointer-orbit { display: none; }

/* Header with a floating, rounded and much quieter silhouette. */
.site-header, .site-header.is-scrolled {
  top: 16px; right: var(--edge); left: var(--edge);
  width: auto; min-height: 76px; padding: 13px clamp(18px,2.5vw,34px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: rgba(14,19,23,.86);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 14px 52px rgba(0,0,0,.17);
}
.wordmark { gap: 12px; }
.wordmark-symbol { width: 30px; height: 30px; }
.wordmark strong { font-weight: 900; font-size: 20px; line-height: 1.45; }
.desktop-nav { gap: clamp(18px,2.7vw,44px); }
.desktop-nav a { font-size: 14px; color: #ded7cd; font-weight: 600; }
.desktop-nav a:hover { color: var(--ember); }
.motion-control { font-size: 12px; padding: 8px; }
.header-entry {
  background: var(--ember); border: 0; border-radius: 13px;
  font-size: 13px; padding: 12px 22px; color: #1b1513;
  font-weight: 800;
}
.header-entry:hover { background: #f0af91; color: #1b1513; }
.menu-toggle { border-radius: 12px; }
.mobile-menu { inset: 0; padding: 123px var(--edge) 40px; }
.mobile-menu a { font-size: 24px; color: var(--bone); padding: 16px; border-bottom: 1px solid var(--line); }

/* Inset cinematic cover with softer type and fewer competing captions. */
.hero {
  margin-top: 108px; min-height: 660px; height: min(760px, calc(100svh - 130px));
  max-height: none; border-radius: var(--corner); align-items: center;
}
.hero-art { inset: -3%; background-position: 58% 48%; }
.hero-blackout {
  background: linear-gradient(90deg,rgba(6,11,14,.97) 0%,rgba(6,11,14,.72) 37%,rgba(6,11,14,.08) 80%),
              linear-gradient(0deg,rgba(7,12,15,.78),transparent 27%);
}
.hero-main { width: 57%; max-width: 740px; margin-right: auto; margin-left: clamp(35px,5.5vw,100px); padding-top: 35px; }
.hero-kicker { font-size: 15px; font-weight: 600; color: #e3bc9e; }
.hero h1 { margin-top: 18px; font-size: clamp(78px,9.5vw,152px); letter-spacing: -.07em; line-height: 1.16; }
.hero h1 .title-second { padding-right: clamp(20px,3.5vw,50px); line-height: 1; }
.title-period { color: var(--ember); }
.hero-intro { max-width: 420px; font-size: clamp(16px,1.5vw,20px); margin-top: 32px; line-height: 2; }
.explore-link {
  display: inline-flex; align-items: center; gap: 22px;
  margin-top: 33px; border-radius: 15px; padding: 12px 23px;
  background: var(--bone); color: #151b1e; font-size: 14px; font-weight: 800;
  transition: transform .25s,background .25s;
}
.explore-link:hover { background: #f2b08c; transform: translateY(-3px); }
.explore-link span { font: 22px Arial,sans-serif; }
.hero-category { position: absolute; right: 36px; bottom: 30px; color: #e6dad0; font-size: 13px; font-weight: 500; opacity: .85; }

/* A single story panel with two integrated images, instead of two whole chapters. */
.prologue-section { background: #eee6d9; color: #1b2426; padding: clamp(45px,6vw,92px); }
.story-grid { display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; gap: clamp(40px,5vw,90px); }
.story-copy { position: relative; }
.small-caption { color: var(--emberdim); font-size: 14px; font-weight: 700; display: block; }
.story-copy h2 { margin: 18px 0 28px; font-size: clamp(45px,5vw,79px); line-height: 1.5; font-weight: 900; letter-spacing: -.075em; white-space: nowrap; }
.story-copy h2 em { color: #ae664b; }
.story-copy p { font-size: 16px; line-height: 2.18; color: #4a4a45; margin-bottom: 15px; max-width: 460px; }
.story-copy blockquote { font-size: 17px; margin-top: 32px; padding: 17px 23px 17px 0; border-right: 3px solid #bf785a; color: #60453c; font-weight: 700; }
.story-visual { min-height: 590px; position: relative; }
.story-image-main { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 61% center; border-radius: 27px; }
.story-image-accent {
  position: absolute; width: 49%; height: 36%; bottom: -25px; left: -22px;
  object-fit: cover; object-position: 69% center;
  border: 8px solid #eee6d9; border-radius: 27px;
  box-shadow: 0 20px 45px rgba(26,28,24,.13);
}
.art-note { position: absolute; top: 17px; right: 20px; border-radius: 50px; background: rgba(10,16,20,.62); color: #eee3d2; padding: 5px 14px; font-size: 12px; }

/* Interactive age piece remains, with no redundant labels or dramatic separators. */
.mechanic-section { background: #131c21; padding: 30px 0 65px; }
.mechanic-section:before { display: none; }
.mechanic-heading { padding: 52px clamp(28px,5vw,82px) 0; }
.mechanic-heading .small-caption { color: #dea88d; }
.mechanic-heading h2 { font-size: clamp(52px,6.5vw,103px); line-height: 1.4; letter-spacing: -.075em; }
.mechanic-heading>p { color: #c1c1ba; max-width: 720px; font-size: 16px; }
.time-lab { min-height: 490px; padding: 0 clamp(24px,4vw,72px) 30px; gap: 30px; }
.time-sculpture { height: 475px; max-width: 580px; }
.time-sculpture .orbit-back { opacity: .6; }
.time-sculpture .orbit-mid { opacity: .65; }
.stone-portal { border-radius: 48% 48% 17px 17px / 48% 48% 17px 17px; }
.time-lab-interface { padding: 25px 15px; max-width: 480px; }
.time-lab-interface .small-caption { color: #d6ac92; }
.age-display { margin: 23px 0 13px; }
.age-display #age-number { font-size: clamp(115px,11vw,180px); }
.age-unit { font-size: 24px; }
.time-lab-interface>p:not(.lab-disclaimer) { margin: 7px 0 17px; font-size: 16px; min-height: 45px; }
.lives-ledger { margin: 20px 0 28px; }
.lives-ledger i { border-radius: 6px; }
.replay-button, .jump-button {
  background: #df9375; color: #201b19; border: 0; border-radius: 14px;
  font-size: 15px; padding: 13px 22px; min-width: 178px;
}
.replay-button:hover, .jump-button:hover { background: #f0b294; }
.replay-button strong { font: 26px Arial,sans-serif; }
.reset-button, .play-reset { border: 1px solid rgba(244,238,229,.2); border-radius: 13px; padding: 10px 20px; }
.lab-disclaimer { font-size: 12px; line-height: 1.8; }
.game-divider { height: 1px; margin: 10px clamp(28px,5vw,82px) 65px; background: var(--line); }

/* The working mini-game is the featured interactive moment. */
.play-header { padding: 0 clamp(28px,5vw,82px) 24px; align-items: end; gap: 40px; }
.play-header h3 { font-size: clamp(37px,4.6vw,75px); font-weight: 900; letter-spacing: -.065em; line-height: 1.4; }
.play-header p { font-size: 15px; max-width: 330px; color: #c8c1b5; }
.play-stage { margin: 0 clamp(28px,5vw,82px); border-radius: 23px; border: 1px solid rgba(245,221,191,.25); }
#platformer { min-height: 0; }
.play-hud { font-size: 13px; }
.play-hud span:first-child { font: 600 13px/1.5 Iran,sans-serif; color: #c9bba9; letter-spacing: 0; }
.play-instruction { border-radius: 13px; font-size: 13px; }
.play-stage-bottom { padding: 12px 20px; font-size: 12px; }
.play-actions { margin: 22px clamp(28px,5vw,82px) 0; }
.play-reset { font-size: 13px; background: transparent; }
.control-hint { color: #b6b1a7; font-size: 12px; }

/* A compact image gallery instead of long, numbered archival chapters. */
.archive-section { background: #eee6d9; color: #1e2527; padding: clamp(42px,5vw,70px) clamp(25px,5vw,80px) 53px; }
.archive-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding: 0 0 38px; }
.archive-heading h2 { font-size: clamp(45px,5vw,82px); line-height: 1.4; font-weight: 900; letter-spacing: -.085em; }
.archive-heading h2 em { color: #a66047; }
.archive-heading p { color: #6a6760; font-size: 15px; max-width: 320px; line-height: 2; }
.archive-stack { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 330px; gap: 17px; padding: 0; }
.archive-frame { grid-column: auto !important; grid-row: auto !important; border-radius: 22px; height: 100%; }
.archive-frame img { object-position: center; }
.archive-two img { object-position: 68% center; }
.archive-three img { object-position: 77% center; }
.archive-count { right: 19px; bottom: 16px; font: 600 14px/1.7 Iran,sans-serif; letter-spacing: 0; direction: rtl; }
.archive-zoom { top: 15px; left: 15px; font-size: 23px; background: rgba(244,238,229,.94); color: #252522; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; }
.archive-disclaimer { margin: 24px 0 0; color: #77716a; font-size: 13px; line-height: 2; }

/* A short, restrained release panel. */
.release-section { min-height: 550px; background: linear-gradient(100deg,#222b2f,#111a1f 72%); color: var(--bone); display: flex; align-items: center; }
.release-section:before { display: none; }
.release-inner { padding: 65px clamp(30px,5vw,85px) 80px; width: 76%; max-width: 880px; }
.release-inner .small-caption { color: #dca285; }
.release-inner h2 { margin-top: 8px; font-size: clamp(67px,7vw,113px); line-height: 1.4; }
.release-inner h2 em { color: #e8a98c; }
.release-inner>p { color: #c4beb3; max-width: 630px; font-size: 16px; }
.platform-list { margin-top: 35px; max-width: 660px; border-color: var(--line); display: flex; flex-wrap: wrap; gap: 11px; }
.platform-list>div { flex: 1; min-width: 120px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 14px; padding: 13px 18px; display: flex; flex-direction: column; align-items: start; gap: 5px; }
.platform-list>div span { direction: rtl; text-align: right; width: auto; font: 700 15px Iran,sans-serif; color: #f1e9dd; }
.platform-list>div strong { margin: 0; color: #c9a78f; font-size: 12px; }
.release-note { color: #a9a7a0; font-size: 12px; margin-top: 22px; }
.release-mark { position: absolute; left: 6%; bottom: 15%; width: 200px; height: 200px; opacity: .35; transform: rotate(-16deg); }
.release-mark span { position: absolute; width: 35%; height: 35%; border: 13px solid #ab7260; border-radius: 15px; }
.release-mark span:nth-child(1) { right: 0; bottom: 0; }.release-mark span:nth-child(2) { right: 35%; bottom: 35%; }.release-mark span:nth-child(3) { right: 70%; bottom: 70%; }

/* End the page quickly; avoid another large stand-alone credits section. */
.site-footer { padding: 65px var(--edge) 28px; }
.footer-intro { display: flex; align-items: start; justify-content: space-between; gap: 40px; }
.footer-brand { font-size: 28px; }
.footer-intro p { color: #b9b5ae; max-width: 400px; font-size: 14px; }
.footer-credits { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; margin: 45px 0 30px; color: #a7a6a1; font-size: 13px; }
.footer-credits strong { color: var(--bone); font-size: 14px; margin-left: 8px; }
.footer-bottom { padding-top: 25px; font-size: 12px; }
.lightbox { border-radius: 20px; }
.lightbox-close { border-radius: 0 0 0 12px; }

@media(max-width:1100px) {
  .story-grid { grid-template-columns: .95fr 1.05fr; gap: 35px; }
  .story-visual { min-height: 500px; }
  .story-copy h2 { font-size: clamp(40px,5vw,67px); }
  .age-display #age-number { font-size: 120px; }
  .time-sculpture { height: 430px; }
  .archive-stack { grid-template-rows: 270px; }
}
@media(max-width:900px) {
  .desktop-nav, .motion-control { display: none; }
  .menu-toggle { display: block; }
  .site-header, .site-header.is-scrolled { min-height: 67px; padding: 9px 17px; }
  .story-grid { grid-template-columns: 1fr; gap: 34px; }
  .story-visual { height: 440px; min-height: 0; }
  .story-copy h2 { white-space: normal; }
  .time-lab { display: grid; grid-template-columns: .8fr 1fr; }
  .time-sculpture { height: 365px; }
  .time-lab-interface { padding: 10px; }
  .archive-stack { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 230px; }
  .archive-one { grid-column: span 2 !important; }
}
@media(max-width:760px) {
  :root { --edge: 15px; --corner: 23px; }
  html { scroll-padding-top: 83px; }
  main { gap: 16px; padding-bottom: 16px; }
  main > section[id] { scroll-margin-top: 85px; }
  .site-header, .site-header.is-scrolled { top: 9px; right: 12px; left: 12px; border-radius: 17px; }
  .wordmark strong { font-size: 18px; }
  .header-entry { padding: 10px 14px; font-size: 12px; border-radius: 12px; }
  .menu-toggle { width: 40px; height: 40px; }
  .mobile-menu a { font-size: 22px; }
  .hero { margin-top: 91px; min-height: 635px; height: min(725px,calc(100svh - 104px)); align-items: end; }
  .hero-art { background-position: 65% center; }
  .hero-blackout { background: linear-gradient(0deg,rgba(5,10,13,.96),rgba(5,10,13,.6) 51%,rgba(5,10,13,.12)),linear-gradient(90deg,rgba(5,10,13,.2),rgba(5,10,13,.07)); }
  .hero-main { width: auto; margin: 0 24px; padding: 0 0 100px; }
  .hero h1 { font-size: clamp(74px,15vw,112px); line-height: 1.15; }
  .hero h1 .title-second { padding-right: 25px; }
  .hero-kicker { font-size: 13px; }
  .hero-intro { font-size: 15px; margin-top: 15px; }
  .explore-link { margin-top: 22px; font-size: 13px; padding: 11px 20px; }
  .hero-category { right: 24px; bottom: 20px; font-size: 11px; }
  .prologue-section { padding: 50px 25px 60px; }
  .story-copy h2 { font-size: clamp(45px,9vw,65px); line-height: 1.4; }
  .story-copy p { font-size: 15px; }
  .story-copy blockquote { font-size: 15px; margin-top: 25px; }
  .story-visual { height: 365px; }
  .story-image-main, .story-image-accent { border-radius: 19px; }
  .story-image-accent { left: 0; bottom: -14px; width: 51%; border-width: 5px; }
  .mechanic-section { padding: 30px 0 44px; }
  .mechanic-heading { padding: 30px 25px 0; }
  .mechanic-heading h2 { font-size: clamp(45px,9vw,70px); }
  .mechanic-heading>p { font-size: 15px; }
  .time-lab { display: flex; flex-direction: column; padding: 0 22px 20px; gap: 0; }
  .time-sculpture { height: 355px; width: 100%; order: 1; }
  .time-lab-interface { width: 100%; max-width: 460px; order: 2; padding: 0 8px 15px; }
  .age-display #age-number { font-size: 115px; }
  .age-unit { font-size: 21px; }
  .time-lab-interface>p:not(.lab-disclaimer) { font-size: 15px; }
  .game-divider { margin: 12px 25px 45px; }
  .play-header { padding: 0 25px 25px; display: block; }
  .play-header h3 { font-size: clamp(37px,8vw,57px); }
  .play-header p { margin-top: 7px; font-size: 14px; }
  .play-stage { margin: 0 15px; border-radius: 18px; }
  #platformer { aspect-ratio: 1200/560; min-height: 220px; }
  .play-hud { font-size: 11px; }
  .play-hud span:first-child { font-size: 11px; }
  .play-instruction { bottom: 54px; font-size: 11px; }
  .play-stage-bottom { font-size: 10px; }
  .play-actions { margin: 18px 20px 0; gap: 12px; }
  .jump-button { min-width: 126px; padding: 11px 16px; }
  .archive-section { padding: 47px 23px 40px; }
  .archive-heading { display: block; padding-bottom: 25px; }
  .archive-heading h2 { font-size: clamp(42px,8.5vw,65px); }
  .archive-heading p { margin-top: 10px; font-size: 14px; }
  .archive-stack { grid-template-columns: 1fr; grid-template-rows: auto; gap: 13px; }
  .archive-frame,.archive-one,.archive-two,.archive-three { grid-column: 1 !important; height: 230px; }
  .archive-frame:first-child { height: 285px; }
  .archive-disclaimer { font-size: 12px; }
  .release-section { min-height: 480px; }
  .release-inner { width: 100%; padding: 50px 28px 55px; }
  .release-inner h2 { font-size: clamp(61px,11vw,94px); }
  .release-inner>p { font-size: 14px; }
  .platform-list { gap: 7px; }
  .platform-list>div { min-width: 100px; padding: 10px; }
  .platform-list>div span { font-size: 13px; }
  .release-mark { display: none; }
  .site-footer { padding: 54px 25px 25px; }
  .footer-intro { display: block; }
  .footer-intro p { margin-top: 15px; font-size: 13px; }
  .footer-credits { margin: 30px 0; }
}
@media(max-width:440px) {
  .hero { min-height: 590px; }
  .hero h1 { font-size: clamp(67px,16vw,86px); }
  .hero-main { margin: 0 22px; }
  .hero-intro { font-size: 14px; }
  .story-visual { height: 300px; }
  .story-copy h2 { font-size: 42px; }
  .time-sculpture { height: 300px; }
  .age-display #age-number { font-size: 106px; }
  .time-lab-interface .age-controls { gap: 10px; }
  .time-lab-interface .replay-button { min-width: 150px; padding: 12px; }
  .archive-frame,.archive-one,.archive-two,.archive-three { height: 215px; }
}
