/* =========================================================
   Jiroft Game - landing page
   Plain CSS, no variables, no flex "gap", so it works on old
   and new browsers alike (prefixes added by autoprefixer).
   ========================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face{font-family:'Cinzel';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/cinzel-latin-500-normal.woff2) format('woff2'),url(../fonts/cinzel-latin-500-normal.woff) format('woff')}
@font-face{font-family:'Cinzel';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/cinzel-latin-700-normal.woff2) format('woff2'),url(../fonts/cinzel-latin-700-normal.woff) format('woff')}
@font-face{font-family:'Cinzel';font-style:normal;font-weight:900;font-display:swap;src:url(../fonts/cinzel-latin-900-normal.woff2) format('woff2'),url(../fonts/cinzel-latin-900-normal.woff) format('woff')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'),url(../fonts/cormorant-garamond-latin-500-normal.woff) format('woff')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'),url(../fonts/cormorant-garamond-latin-600-normal.woff) format('woff')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url(../fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'),url(../fonts/cormorant-garamond-latin-500-italic.woff) format('woff')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:600;font-display:swap;src:url(../fonts/cormorant-garamond-latin-600-italic.woff2) format('woff2'),url(../fonts/cormorant-garamond-latin-600-italic.woff) format('woff')}

/* ---------- Base ---------- */
*,*::before,*::after{-webkit-box-sizing:border-box;box-sizing:border-box}
html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:#0b0a09;color:#efe7d2;font-family:'Cinzel',Georgia,'Times New Roman',serif;line-height:1.3;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}
main,header,footer,nav,section,article,figure,figcaption{display:block}
img{display:block;max-width:100%;height:auto;border:0}
h1,h2,h3,p,figure,ul,ol{margin:0;padding:0}
ul,ol{list-style:none}
a{color:#e6bc4f}
a:hover{color:#f6d77d}
a:focus{outline:2px solid #e6bc4f;outline-offset:3px}
a:focus:not(:focus-visible){outline:none}
a:focus-visible{outline:2px solid #e6bc4f;outline-offset:3px}
.serif{font-family:'Cormorant Garamond',Georgia,'Times New Roman',serif}

.skip-link{position:absolute;left:-9999px;top:0;z-index:100;padding:12px 18px;background:#e6bc4f;color:#0b0a09;font-weight:700;text-decoration:none}
.skip-link:focus{left:12px;top:12px}

/* ---------- Jiroft ornament bands ---------- */
.band-key{height:30px;background:url(../img/jiroft-key.svg) repeat-x center}
.band-cross{height:20px;background:url(../img/jiroft-cross.svg) repeat-x center}
.band-flutes{height:46px;background:url(../img/jiroft-flutes.svg) repeat-x center top;border-top:2px solid #cfc9b6}
.band-key--short{width:220px;height:26px;margin:12px auto 0;opacity:.8}

.diamond{display:inline-block;width:10px;height:10px;background:#ff5a45;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);-ms-flex-negative:0;flex-shrink:0}

/* ---------- Top nav ---------- */
.pw-nav{position:relative;position:-webkit-sticky;position:sticky;top:0;z-index:50;background:#0b0a09;background:rgba(11,10,9,.94);border-bottom:2px solid #2b2924}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))){
  .pw-nav{background:rgba(11,10,9,.82);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
}
.pw-nav__inner{max-width:1240px;margin:0 auto;padding:6px 24px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}
.pw-nav__logo{display:block;margin-right:24px;text-decoration:none}
.pw-nav__logo img{height:84px;width:auto}
.pw-nav__links{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
.pw-nav__links li{-ms-flex-negative:0;flex-shrink:0}
.pw-nav__links a{display:block;padding:14px 12px 12px;white-space:nowrap;font-size:14px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#d9d0b8;text-decoration:none;border-bottom:2px solid transparent;-webkit-transition:color .2s ease,border-color .2s ease;transition:color .2s ease,border-color .2s ease}
.pw-nav__links a:hover{color:#f6d77d}
.pw-nav__links a[aria-current="page"]{color:#e6bc4f;border-bottom-color:#e6bc4f}

/* ---------- Hero ---------- */
.hero{position:relative;overflow:hidden;padding:0 0 72px;background-color:#0b0a09;background-image:radial-gradient(ellipse at 70% 55%,#c41a10 0%,rgba(90,10,6,.5) 30%,#0b0a09 62%)}
.hero .band-key{margin:28px 24px 0;border-top:2px solid #cfc9b6;border-bottom:2px solid #cfc9b6}
.hero .band-cross{margin:8px 24px 0}
.hero__inner{max-width:1200px;margin:0 auto;padding:32px 32px 0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}
.hero__text{-webkit-box-flex:1;-ms-flex:1 1 460px;flex:1 1 460px;min-width:0;max-width:100%;padding-right:24px}
.hero__text > *{margin-top:20px}
.hero__text > :first-child{margin-top:0}
.hero__art{-webkit-box-flex:1;-ms-flex:1 1 360px;flex:1 1 360px;min-width:0;max-width:100%;padding-left:24px}

.age-badge{display:inline-block;padding:8px 18px;text-align:center;border:2px solid #e6bc4f;border-radius:8px;background:rgba(20,19,16,.75);color:#e6bc4f}
.age-badge__small{display:block;font-size:12px;font-weight:700;letter-spacing:.2em}
.age-badge__big{display:block;font-size:26px;font-weight:900;letter-spacing:.08em;line-height:1}
.presents{font-size:15px;font-weight:500;letter-spacing:.4em;color:#bfb9a6}
.title{font-weight:900;line-height:.92}
.title__main{display:block;font-size:136px;letter-spacing:.05em;color:#e6bc4f;text-shadow:0 2px 0 #fff0b8,0 5px 0 #6b4a12,0 0 44px rgba(230,180,70,.4)}
.title__sub{display:block;font-size:64px;letter-spacing:.12em;color:#f3ecd8;text-shadow:0 3px 0 #1a1612}
.lead{max-width:520px;font-family:'Cormorant Garamond',Georgia,serif;font-size:22px;line-height:1.5;color:#d9d0b8}
.credit{font-size:15px;font-weight:500;letter-spacing:.22em;color:#e6bc4f}
.hero__cta{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-top:28px}
.hero__cta .play-btn{margin:0 20px 12px 0}
.hero__note{margin-bottom:12px;font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-size:20px;color:#bfb9a6}

.play-btn{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:44px;padding:18px 40px;border:2px solid #cfc9b6;border-radius:8px;background:#141310;background:rgba(20,19,16,.8);color:#f3ecd8;text-decoration:none;-webkit-transition:background-color .2s ease,border-color .2s ease;transition:background-color .2s ease,border-color .2s ease}
.play-btn:hover{background:rgba(196,26,16,.35);border-color:#f3ecd8;color:#fff}
.play-btn__label{margin:0 16px;font-size:26px;font-weight:700;letter-spacing:.24em}
.play-btn--big .play-btn__label{font-size:28px}

/* eagle: flat board behind, curse eagle in front */
.eagle-stack{position:relative;width:100%;max-width:460px;margin:0 auto}
.eagle-stack__flat{position:absolute;z-index:0;left:-14%;top:5%;width:78%;opacity:.5;-webkit-transform:rotate(-8deg);-ms-transform:rotate(-8deg);transform:rotate(-8deg)}
.eagle-stack__curse{position:relative;z-index:1;width:92%;margin-left:auto}

/* ---------- Devices strip ---------- */
.devices{padding:20px 24px 8px;background:#12110f;border-top:2px solid #2b2924;border-bottom:2px solid #2b2924}
.devices__list{max-width:1200px;margin:0 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}
.device{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:0 4px 12px;font-size:19px;font-weight:700;letter-spacing:.12em;color:#f3ecd8}
.device svg{margin-right:10px;-ms-flex-negative:0;flex-shrink:0}
.device-sep{width:7px;height:7px;margin:0 22px 12px;background:#ff5a45;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}

/* ---------- Sections ---------- */
.section{padding:88px 24px;background:#0b0a09}
.section__head{max-width:900px;margin:0 auto 48px;text-align:center}
.section h2{font-size:48px;font-weight:700;letter-spacing:.08em;color:#f3ecd8}
.section__intro{max-width:640px;margin:12px auto 0;font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-size:24px;line-height:1.4;color:#e9dfc6}
.section p{font-family:'Cormorant Garamond',Georgia,serif;font-size:21px;line-height:1.45;color:#d9d0b8}
.section h3{font-size:24px;font-weight:700;letter-spacing:.1em;color:#f3ecd8}
.section--glow{background-color:#0b0a09;background-image:radial-gradient(ellipse at 50% 50%,rgba(140,14,8,.55) 0%,#0b0a09 62%)}
.section--how{background:#12110f;border-top:2px solid #2b2924}
.section--story{padding-bottom:0}

/* story */
.timeline{max-width:900px;margin:0 auto 28px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center}
.timeline__item{margin:0 8px 16px}
.timeline__year{display:block;font-size:44px;font-weight:900;line-height:1;color:#e6bc4f}
.timeline__label{display:block;margin-top:6px;font-size:13px;font-weight:700;letter-spacing:.2em;color:#bfb9a6}
.timeline__sep{width:9px;height:9px;margin:0 40px 16px;background:#ff5a45;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}
.section .story-text{max-width:900px;margin:0 auto;text-align:center;font-size:23px;line-height:1.55}
.hl-normal{color:#f3ecd8}
.hl-live{color:#ff8a78}
.history{max-width:1100px;margin:48px auto 0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}
.history__card{-webkit-box-flex:1;-ms-flex:1 1 400px;flex:1 1 400px;max-width:520px;min-width:0;margin:0 16px 32px;padding:14px;border:2px solid #2f2d28;border-radius:12px;background:#141311}
.history__img{overflow:hidden;border-radius:8px;background:#fff}
.history__img img{width:100%}
.history__card figcaption{padding:14px 4px 0}
.history__year{margin-right:14px;font-size:26px;font-weight:900;color:#e6bc4f}
.history__label{font-family:'Cormorant Garamond',Georgia,serif;font-size:20px;color:#d9d0b8}

/* phones */
.phone{border-radius:20px;-webkit-box-shadow:0 0 0 6px #1d1c19,0 0 0 8px #4a4740;box-shadow:0 0 0 6px #1d1c19,0 0 0 8px #4a4740}
.phone--small{width:150px;-ms-flex-negative:0;flex-shrink:0}
.phone--big{width:210px;margin:0 auto;border-radius:26px;-webkit-box-shadow:0 0 0 7px #1d1c19,0 0 0 9px #4a4740,0 24px 60px rgba(0,0,0,.6);box-shadow:0 0 0 7px #1d1c19,0 0 0 9px #4a4740,0 24px 60px rgba(0,0,0,.6)}

/* modes */
.modes{max-width:1100px;margin:0 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}
.mode{-webkit-box-flex:1;-ms-flex:1 1 380px;flex:1 1 380px;max-width:500px;min-width:0;margin:0 20px 40px;padding:28px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:2px solid #2f2d28;border-radius:12px;background:#141311}
.mode .phone{-ms-flex-negative:0;flex-shrink:0}
.mode__text{min-width:0;margin-left:28px}
.mode__text h3{margin-bottom:12px;font-size:26px}
.mode--live{border-color:#5a1a12;background:#1a100d}
.mode--live h3{color:#ff8a78}

/* challenges */
.challenges{max-width:1100px;margin:0 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}
.challenge{-webkit-box-flex:1;-ms-flex:1 1 300px;flex:1 1 300px;max-width:460px;min-width:0;margin:0 20px 40px;text-align:center}
.challenge h3{margin:28px 0 12px;font-size:22px}

/* steps */
.steps{max-width:1100px;margin:0 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}
.step{-webkit-box-flex:1;-ms-flex:1 1 230px;flex:1 1 230px;max-width:340px;min-width:0;margin:0 14px 28px;padding:26px;border:2px solid #2f2d28;border-radius:12px;background:#0f0e0c}
.step__num{display:block;width:46px;height:46px;line-height:42px;text-align:center;border:2px solid #e6bc4f;border-radius:50%;font-size:22px;font-weight:900;color:#e6bc4f}
.section .step h3{margin:12px 0;font-size:20px;letter-spacing:.08em}
.section .step p{font-size:20px}

/* ---------- Play ---------- */
.play{padding:96px 24px 40px;text-align:center;background-color:#0b0a09;background-image:radial-gradient(ellipse at 50% 30%,#c41a10 0%,rgba(90,10,6,.45) 32%,#0b0a09 64%)}
.play__head{max-width:900px;margin:0 auto}
.play__curse{margin-bottom:22px;font-size:34px;font-weight:700;letter-spacing:.3em;color:#ff5a45}
.play__note{margin-top:22px;font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-size:21px;line-height:1.5;color:#bfb9a6}
.game-frame{max-width:1100px;margin:48px auto 0;padding:10px;border:2px solid #cfc9b6;border-radius:16px;background:rgba(20,19,16,.8);-webkit-box-shadow:0 0 60px rgba(196,26,16,.35);box-shadow:0 0 60px rgba(196,26,16,.35)}

/* game embed (from persianwonders.com) */
.pw-embed-jiroft-game{position:relative;width:100%;max-width:100%;margin:0 auto}
@supports (max-width:min(100%,125vh)){.pw-embed-jiroft-game{max-width:min(100%,125vh)}}
.pw-embed-jiroft-game__box{position:relative;width:100%;height:0;padding-bottom:75%;overflow:hidden;border-radius:12px;background:#0b1222}
.pw-embed-jiroft-game__box iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}
.pw-embed-jiroft-game__caption{margin:8px 0 0;text-align:center;font:14px/1.4 Arial,Helvetica,sans-serif;color:#bfb9a6}

/* ---------- Footer ---------- */
.footer{padding:0 24px 28px;background:#0b0a09}
.footer__inner{max-width:1200px;margin:18px auto 0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}
.footer__inner p{margin:0 24px 10px 0;font-size:14px;letter-spacing:.18em;color:#a9a390}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:1100px){
  .title__main{font-size:112px}
  .title__sub{font-size:54px}
}
@media (max-width:900px){
  .pw-nav__inner{padding:6px 16px 0}
  .pw-nav__logo img{height:64px}
  .pw-nav__links{width:100%;scrollbar-width:none;-ms-overflow-style:none}
  .pw-nav__links::-webkit-scrollbar{display:none}
  .hero__inner{padding:24px 24px 0}
  .hero__text{padding-right:0}
  .hero__art{padding-left:0;margin-top:40px}
  .section h2{font-size:38px}
}
@media (max-width:600px){
  .hero{padding-bottom:48px}
  .hero .band-key,.hero .band-cross{margin-left:12px;margin-right:12px}
  .hero__inner{padding:20px 18px 0}
  .title__main{font-size:68px}
  .title__sub{font-size:33px}
  .presents{font-size:12px;letter-spacing:.3em}
  .lead{font-size:20px}
  .credit{font-size:13px;letter-spacing:.16em}
  .play-btn{padding:16px 26px}
  .play-btn__label,.play-btn--big .play-btn__label{font-size:22px;margin:0 12px}
  .hero__art{-ms-flex-preferred-size:100%;flex-basis:100%}
  .eagle-stack{max-width:330px}
  .device{font-size:15px}
  .device svg{width:22px;height:22px}
  .device-sep{margin:0 12px 12px}
  .section{padding:64px 16px}
  .section--story{padding-bottom:0}
  .section h2{font-size:30px}
  .section__intro{font-size:21px}
  .section p,.section .story-text{font-size:19px}
  .timeline__year{font-size:34px}
  .timeline__sep{margin:0 18px 16px}
  .history__card,.mode,.challenge,.step{-ms-flex-preferred-size:100%;flex-basis:100%;margin-left:0;margin-right:0}
  .mode{padding:20px}
  .phone--small{width:110px;border-radius:16px}
  .mode__text{margin-left:20px}
  .mode__text h3{font-size:20px}
  .phone--big{width:190px}
  .play{padding:72px 14px 32px}
  .play__curse{font-size:22px;letter-spacing:.2em}
  .play__note{font-size:19px}
  .game-frame{margin-top:36px;padding:6px}
  .pw-embed-jiroft-game__box{padding-bottom:150%!important}
  .footer__inner p{font-size:12px}
}
@media (max-width:360px){
  .title__main{font-size:56px}
  .title__sub{font-size:27px}
  .mode{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;text-align:center}
  .mode__text{margin:20px 0 0}
}
@media (orientation:landscape) and (max-height:500px){
  .pw-embed-jiroft-game{max-width:160vh!important}
  .pw-embed-jiroft-game__box{padding-bottom:56.25%!important}
  .pw-nav{position:relative}
}

/* people who prefer less motion */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{-webkit-transition:none!important;transition:none!important}
}
#play,#game{scroll-margin-top:120px}

/* phone tidy-ups */
@media (max-width:600px){
  .timeline__sep,.device-sep{display:none}
  .timeline{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}
  .timeline__item{-webkit-box-flex:1;-ms-flex:1 1 0px;flex:1 1 0;margin:0 4px 16px}
  .timeline__year{font-size:30px}
  .timeline__label{font-size:10px;letter-spacing:.12em}
  .device{margin:0 12px 12px}
  .eagle-stack__flat{left:-4%}
}

/* =========================================================
   Full-screen play
   Real full screen where the browser allows it; elsewhere
   (e.g. iPhone) the game simply fills the whole window.
   ========================================================= */
.game-bar{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding:0 0 10px}
.fs-btn{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:44px;padding:8px 18px;margin:0;border:2px solid #cfc9b6;border-radius:8px;background:#141310;color:#f3ecd8;font:700 15px/1 'Cinzel',Georgia,serif;letter-spacing:.14em;text-transform:uppercase;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-transition:background-color .2s ease,border-color .2s ease;transition:background-color .2s ease,border-color .2s ease}
.fs-btn[hidden]{display:none}
.fs-btn:hover{background:#5a1209;border-color:#f3ecd8}
.fs-btn:focus{outline:2px solid #e6bc4f;outline-offset:3px}
.fs-btn svg{margin-right:10px;-ms-flex-negative:0;flex-shrink:0}
.fs-btn__off{display:none}

.game-frame.is-full{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;width:100%;height:100%;max-width:none;margin:0;padding:8px;border:0;border-radius:0;background:#0b0a09;box-shadow:none}
@supports (padding:env(safe-area-inset-top)){
  .game-frame.is-full{padding:calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left))}
}
.game-frame.is-full .game-bar{padding-bottom:8px}
.game-frame.is-full .fs-btn{background:#5a1209}
.game-frame.is-full .fs-btn__on{display:none}
.game-frame.is-full .fs-btn__off{display:block}
.game-frame.is-full .pw-embed-jiroft-game{position:absolute;top:70px;left:8px;right:8px;bottom:8px;width:auto;max-width:none!important;margin:0}
.game-frame.is-full .pw-embed-jiroft-game__box{position:absolute;top:0;left:0;right:0;bottom:0;width:auto;height:auto;padding-bottom:0!important;border-radius:8px}
.game-frame.is-full .pw-embed-jiroft-game__caption{display:none}
@supports (padding:env(safe-area-inset-top)){
  .game-frame.is-full .pw-embed-jiroft-game{top:calc(70px + env(safe-area-inset-top));left:calc(8px + env(safe-area-inset-left));right:calc(8px + env(safe-area-inset-right));bottom:calc(8px + env(safe-area-inset-bottom))}
}
.game-frame:-webkit-full-screen{width:100%;height:100%}
.game-frame:-ms-fullscreen{width:100%;height:100%}
.game-frame:fullscreen{width:100%;height:100%}
.game-frame::-webkit-backdrop{background:#0b0a09}
.game-frame::backdrop{background:#0b0a09}
html.fs-lock,html.fs-lock body{overflow:hidden;height:100%}
/* short screens (phones sideways): button floats over the game corner */
@media (max-height:500px){
  .game-frame.is-full .game-bar{position:absolute;top:14px;right:14px;z-index:2;padding:0}
  .game-frame.is-full .fs-btn{min-height:40px;padding:6px 12px;font-size:12px;background:rgba(90,18,9,.85)}
  .game-frame.is-full .pw-embed-jiroft-game{top:8px}
  @supports (padding:env(safe-area-inset-top)){
    .game-frame.is-full .game-bar{top:calc(14px + env(safe-area-inset-top));right:calc(14px + env(safe-area-inset-right))}
    .game-frame.is-full .pw-embed-jiroft-game{top:calc(8px + env(safe-area-inset-top))}
  }
}
.fs-btn:focus:not(:focus-visible){outline:none}

/* ---------- Jiroft game set ---------- */
.section--set{background-color:#0b0a09;background-image:radial-gradient(ellipse at 30% 50%,rgba(20,70,58,.35) 0%,#0b0a09 60%)}
.game-set{max-width:1100px;margin:0 auto;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}
.game-set__photo{-webkit-box-flex:1;-ms-flex:1 1 380px;flex:1 1 380px;max-width:480px;min-width:0;margin:0 auto;padding:12px;border:2px solid #cfc9b6;border-radius:14px;background:#141311;box-shadow:0 24px 60px rgba(0,0,0,.6)}
.game-set__photo img{width:100%;border-radius:8px}
.game-set__text{-webkit-box-flex:1;-ms-flex:1 1 420px;flex:1 1 420px;min-width:0;padding-left:56px}
.game-set__since{margin-bottom:10px;font-family:'Cinzel',Georgia,serif!important;font-size:15px!important;font-weight:700;letter-spacing:.3em;color:#e6bc4f!important}
.game-set__text h2{text-align:left}
.band-key--left{width:220px;height:26px;margin:14px 0 26px;opacity:.8}
.game-set__text p{margin-bottom:18px}
.game-set__text .play-btn{margin-top:10px}
.play-btn--small{padding:14px 26px}
.play-btn--small .play-btn__label{font-size:18px;margin:0 12px}
@media (max-width:900px){
  .game-set__text{padding-left:0;margin-top:40px;-ms-flex-preferred-size:100%;flex-basis:100%;text-align:center}
  .game-set__text h2{text-align:center}
  .band-key--left{margin-left:auto;margin-right:auto}
}
@media (max-width:600px){
  .game-set__photo{-ms-flex-preferred-size:100%;flex-basis:100%;padding:8px}
  .play-btn--small{padding:12px 18px}
  .play-btn--small .play-btn__label{font-size:16px;margin:0 10px}
}

/* ---------- History ---------- */
.section--history{background:#0b0a09;padding-bottom:40px}
.history-text{max-width:860px;margin:0 auto;text-align:center}
.section .history-text p{margin-bottom:18px;font-size:23px;line-height:1.55}
.history-text--digital{margin-top:48px;padding:30px 32px 14px;border:2px solid #5a1a12;border-radius:12px;background:#1a100d}
.section .history-text--digital h3{margin-bottom:16px;font-size:22px;color:#ff8a78}
.section .history-text--digital p{font-size:21px}
.facts{max-width:1000px;margin:24px auto 0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}
.fact{-webkit-box-flex:1;-ms-flex:1 1 240px;flex:1 1 240px;max-width:310px;min-width:0;margin:0 12px 20px;padding:22px 20px;text-align:center;border:2px solid #2f2d28;border-top:3px solid #e6bc4f;border-radius:12px;background:#141311}
.fact__title{display:block;font-size:16px;font-weight:700;letter-spacing:.14em;color:#e6bc4f}
.fact__text{display:block;margin-top:8px;font-family:'Cormorant Garamond',Georgia,serif;font-size:19px;line-height:1.4;color:#d9d0b8}
@media (max-width:600px){
  .section .history-text p{font-size:19px}
  .history-text--digital{padding:22px 18px 6px}
  .fact{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:none;margin:0 0 14px}
}

/* ---------- Footer (Persian Wonders) ---------- */
.footer__inner{display:block;max-width:900px;margin:22px auto 0;text-align:center}
.footer__inner p{margin:0}
.footer .footer__about{font-family:'Cormorant Garamond',Georgia,serif;font-size:20px;line-height:1.5;letter-spacing:0;color:#d9d0b8}
.footer__social{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:16px 0 10px}
.footer__social a{display:block;padding:12px 16px;min-height:44px;font-size:14px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#e6bc4f;text-decoration:none}
.footer__social a:hover{color:#f6d77d;text-decoration:underline}
.footer .footer__copy{font-size:13px;letter-spacing:.12em;color:#a9a390}
@media (max-width:600px){.footer .footer__about{font-size:18px}.footer .footer__copy{font-size:12px}}

/* ---------- Phone menu: logo left, ☰ button right, menu drops down ---------- */
.pw-nav__toggle{display:none}
@media (max-width:900px){
  .pw-nav__inner{padding:6px 16px;-ms-flex-wrap:wrap;flex-wrap:wrap}
  .pw-nav__logo img{height:60px}
  .pw-nav__toggle{display:block;position:relative;width:48px;height:48px;margin:0;padding:0;border:2px solid #4a4740;border-radius:8px;background:#141310;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}
  .pw-nav__toggle:focus{outline:2px solid #e6bc4f;outline-offset:2px}
  .pw-nav__toggle:focus:not(:focus-visible){outline:none}
  .pw-nav__bar{position:absolute;left:11px;width:22px;height:2px;background:#e6bc4f;border-radius:2px;-webkit-transition:-webkit-transform .25s ease,opacity .2s ease,top .25s ease;transition:transform .25s ease,opacity .2s ease,top .25s ease}
  .pw-nav__bar:nth-child(1){top:14px}
  .pw-nav__bar:nth-child(2){top:21px}
  .pw-nav__bar:nth-child(3){top:28px}
  .pw-nav.is-open .pw-nav__bar:nth-child(1){top:21px;-webkit-transform:rotate(45deg);transform:rotate(45deg)}
  .pw-nav.is-open .pw-nav__bar:nth-child(2){opacity:0}
  .pw-nav.is-open .pw-nav__bar:nth-child(3){top:21px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}

  /* menu list: hidden until ☰ is tapped (always shown if JavaScript is off) */
  .pw-nav__links{display:block;width:100%;max-width:none;overflow:visible;margin:6px 0 4px;border-top:1px solid #2b2924}
  .js .pw-nav__links{display:none}
  .js .pw-nav.is-open .pw-nav__links{display:block}
  .pw-nav__links li{display:block}
  .pw-nav__links a{padding:14px 6px;font-size:15px;border-bottom:1px solid #1f1d1a}
  .pw-nav__links a[aria-current="page"]{border-bottom-color:#1f1d1a;color:#e6bc4f;box-shadow:inset 3px 0 0 #e6bc4f;padding-left:14px}
  .pw-nav.is-open{max-height:100vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
}

/* =========================================================
   LIGHT LOOK
   Pale chlorite-stone pages (the stone's light, polished face)
   with the dark carved stone kept for what belongs to Live mode:
   the cursed eagle, the Live card, the game itself, menu and footer.
   Colours:  wash #E6EAE2 · paper #F7F7F1 · chlorite #232925
             stone text #556058 · carnelian #A8311D · gold #9C7420
   ========================================================= */
body{background:#E6EAE2;color:#232925}
a{color:#A8311D}
a:hover{color:#7E2213}
a:focus,a:focus-visible{outline-color:#A8311D}

/* ---------- hero: light stone, the eagle on a dark carved slab ---------- */
.hero{background:#E6EAE2;background-image:none;padding-bottom:64px}
.hero .band-key{margin:0;border-top:0;border-bottom:0}
.hero .band-cross{margin:0}
.age-badge{background:transparent;border-color:#232925;color:#232925;border-radius:10px}
.age-badge__small{font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-size:15px;font-weight:600;letter-spacing:0}
.age-badge__big{font-size:24px;letter-spacing:.04em;text-transform:none}
.presents{font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-size:22px;font-weight:600;letter-spacing:0;color:#556058}
.title__main{color:#9C7420;text-shadow:0 1px 0 #f3e2b2,0 3px 0 #5e4510}
.title__sub{color:#232925;text-shadow:none}
.lead{color:#3a423c}
.credit{font-family:'Cormorant Garamond',Georgia,serif;font-size:19px;font-weight:600;letter-spacing:0;color:#556058}
.hero__note{color:#556058}
.hero__art{-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch}
.eagle-stack{max-width:470px;padding:36px 28px 30px;border-radius:30px;
  background-color:#232925;background-image:radial-gradient(ellipse at 55% 48%,rgba(196,26,16,.55) 0%,rgba(90,10,6,.35) 34%,#232925 66%);
  box-shadow:0 30px 60px -28px rgba(20,26,22,.55),inset 0 0 0 2px #3a423c}
.eagle-stack__flat{left:-6%;top:6%}

/* ---------- buttons: carnelian, like the eagle's eye ---------- */
.play-btn{background:#A8311D;border-color:#A8311D;color:#fff;border-radius:12px;box-shadow:0 10px 24px -12px rgba(168,49,29,.7)}
.play-btn:hover{background:#86240F;border-color:#86240F;color:#fff}
.play-btn__label{letter-spacing:.12em}
.diamond{background:#F3D9A0}

/* ---------- devices strip ---------- */
.devices{background:#F7F7F1;border-top:1px solid #d3d9cf;border-bottom:1px solid #d3d9cf}
.device{color:#232925;letter-spacing:.04em}
.device svg{stroke:#232925}
.device-sep{background:#A8311D}

/* ---------- sections ---------- */
.section{background:#E6EAE2}
.section h2{color:#232925}
.section h3{color:#232925;letter-spacing:.06em}
.section p,.section .story-text,.section .history-text p{color:#3a423c}
.section__intro{color:#3a423c}
.section--history{background:#F7F7F1}
.section--story{background:#E6EAE2;padding-bottom:88px}
.section--set{background:#F7F7F1;background-image:none}
.section--glow{background:#F7F7F1;background-image:none}
.hl-normal{color:#232925}
.hl-live{color:#A8311D}

/* history: plain columns separated by fine rules instead of boxes */
.history-text{text-align:left}
.facts{margin-top:40px;border-top:1px solid #cfd6cb;border-bottom:1px solid #cfd6cb}
.fact{background:transparent;border:0;border-radius:0;margin:0;padding:22px 24px;text-align:left;border-right:1px solid #cfd6cb}
.fact:last-child{border-right:0}
.fact__title{color:#9C7420;font-size:18px;letter-spacing:.04em}
.fact__text{color:#3a423c}
/* Live mode's fiction lives on dark stone */
.history-text--digital{border:0;border-radius:18px;background:#232925;box-shadow:0 24px 50px -30px rgba(20,26,22,.6)}
.section .history-text--digital h3{color:#ff8a78}
.section .history-text--digital p{color:#dfe3dc}
.history-text--digital .hl-normal{color:#ffffff}
.history-text--digital .hl-live{color:#ff8a78}

/* timeline + the two old editions */
.timeline__year{color:#9C7420}
.timeline__label{color:#556058;font-size:15px;letter-spacing:.04em}
.timeline__sep{background:#A8311D}
.history__card{background:#F7F7F1;border:1px solid #d3d9cf;box-shadow:0 18px 40px -30px rgba(20,26,22,.5)}
.history__year{color:#9C7420}
.history__label{color:#3a423c}

/* game set */
.game-set__photo{border:0;background:#232925;padding:10px;box-shadow:0 30px 60px -30px rgba(20,26,22,.6)}
.game-set__since{color:#9C7420!important;letter-spacing:.04em}

/* modes: Normal on light stone, Live on dark stone */
.mode{background:#F7F7F1;border:1px solid #d3d9cf;box-shadow:0 18px 40px -30px rgba(20,26,22,.45)}
.mode--live{background:#232925;border-color:#232925}
.mode--live h3{color:#ff8a78}
.section .mode--live p{color:#dfe3dc}
.phone{box-shadow:0 0 0 6px #232925,0 0 0 7px #4a524c}
.phone--big{box-shadow:0 0 0 7px #232925,0 0 0 8px #4a524c,0 24px 50px -20px rgba(20,26,22,.55)}

/* ---------- play: the game stays on dark stone ---------- */
.play{background-color:#232925;background-image:radial-gradient(ellipse at 50% 18%,rgba(196,26,16,.5) 0%,rgba(90,10,6,.25) 30%,#232925 60%)}
.play__curse{color:#ff8a78;letter-spacing:.12em}
.play__note{color:#c9cfc6}
.game-frame{border-color:#4a524c;background:#1b201c}
.fs-btn{background:#2c332e;border-color:#6b746d}
.pw-embed-jiroft-game__caption{color:#c9cfc6}
.pw-embed-jiroft-game__caption a{color:#f3d9a0}

/* ---------- menu + footer on dark stone (the white wings logo needs it) ---------- */
.pw-nav{background:#232925;border-bottom:0}
@supports ((-webkit-backdrop-filter:blur(8px)) or (backdrop-filter:blur(8px))){ .pw-nav{background:rgba(35,41,37,.92)} }
.pw-nav__links a{text-transform:none;letter-spacing:.04em;font-size:15px;color:#dfe3dc}
.pw-nav__links a:hover{color:#f3d9a0}
.pw-nav__links a[aria-current="page"]{color:#f3d9a0;border-bottom-color:#f3d9a0}
.footer{background:#232925}
.footer .footer__about{color:#dfe3dc}
.footer__social a{color:#f3d9a0;text-transform:none;letter-spacing:.04em;font-size:16px}
.footer .footer__copy{color:#a9b1aa;letter-spacing:.04em}

@media (max-width:900px){
  .pw-nav__links a{border-bottom-color:#2f3631}
  .pw-nav__links a[aria-current="page"]{box-shadow:inset 3px 0 0 #f3d9a0;border-bottom-color:#2f3631}
}
@media (max-width:600px){
  .eagle-stack{padding:24px 16px 20px;border-radius:24px}
  .fact{border-right:0;border-bottom:1px solid #cfd6cb;padding:16px 4px}
  .fact:last-child{border-bottom:0}
}
.eagle-stack{overflow:hidden}
/* hero eagles straight on the light page: no panel behind them */
.eagle-stack{background:none;background-image:none;box-shadow:none;border-radius:0;padding:0;overflow:visible}
.eagle-stack__flat{left:-12%;top:5%}
@media (max-width:600px){ .eagle-stack{padding:0} .eagle-stack__flat{left:-4%} }
/* phones: the eagle comes first, smaller and centred, with the title right under it */
@media (max-width:600px){
  .hero__inner{padding-top:12px}
  .hero__art{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1;margin:0 0 6px;-ms-flex-preferred-size:100%;flex-basis:100%}
  .eagle-stack{width:58%;max-width:230px}
  .eagle-stack__flat{left:-22%;top:6%}
  .hero__text{text-align:center}
  .hero__text .age-badge{position:absolute;top:18px;left:16px;padding:6px 10px}
  .hero__inner{position:relative}
  .title{display:block}
  .lead{margin-left:auto;margin-right:auto}
  .hero__cta{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}
  .hero__cta .play-btn{margin-right:0}
  .hero__note{width:100%;text-align:center}
}
@media (max-width:360px){ .eagle-stack{width:52%} .hero__text .age-badge{top:10px;left:10px} }
@media (max-width:600px){ .hero__text .age-badge{position:static;margin-top:6px} }
.facts .fact{-webkit-box-flex:1;-ms-flex:1 1 200px;flex:1 1 200px}
@media (min-width:601px) and (max-width:900px){ .facts .fact{-ms-flex-preferred-size:45%;flex-basis:45%;border-bottom:1px solid #cfd6cb} }

/* ---------- itch.io ---------- */
.itch-line{margin-top:22px;font-family:'Cormorant Garamond',Georgia,serif;font-size:19px;color:#556058}
.itch-link{display:inline-block;vertical-align:middle;margin-left:10px;text-decoration:none;border-radius:8px}
.itch-badge{display:inline-block;height:54px;width:auto;vertical-align:middle}
.itch-text{display:none;padding:12px 20px;border:2px solid #fa5c5c;border-radius:8px;background:#fff;color:#222;font:700 16px/1 'Lato','Helvetica Neue',Arial,sans-serif}
.itch-link:hover .itch-text{background:#fa5c5c;color:#fff}
.itch-play{max-width:1100px;margin:36px auto 0;text-align:center}
.itch-play p{margin:0 0 14px;font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-size:21px;color:#c9cfc6}
.itch-play .itch-link{margin-left:0}
.itch-play .itch-badge{height:64px}
@media (max-width:600px){
  .itch-line{text-align:center}
  .itch-line .itch-link{display:block;margin:10px auto 0;width:-webkit-max-content;width:max-content}
}

/* gameplay demo video */
.demo-video{max-width:1000px;margin:0 auto;padding:0 16px}
.demo-video__box{position:relative;width:100%;height:0;padding-bottom:56.25%;overflow:hidden;border-radius:14px;background:#0e110f;-webkit-box-shadow:0 0 0 1px rgba(243,217,160,.25),0 24px 50px -20px rgba(0,0,0,.7);box-shadow:0 0 0 1px rgba(243,217,160,.25),0 24px 50px -20px rgba(0,0,0,.7)}
.demo-video__box iframe{position:absolute;top:0;left:0;width:100%;height:100%;border:0}
.demo-video__link{margin:12px 0 0;text-align:center;font-size:16px}
.demo-video__link a{color:#8a3a14;font-weight:600}
.demo-video__poster{position:absolute;top:0;left:0;width:100%;height:100%;display:block;cursor:pointer}
.demo-video__poster img{width:100%;height:100%;display:block;-o-object-fit:cover;object-fit:cover}
.demo-video__btn{position:absolute;left:22px;bottom:20px;width:84px;height:60px;border-radius:16px;background:rgba(196,26,16,.92);-webkit-box-shadow:0 6px 20px rgba(0,0,0,.5);box-shadow:0 6px 20px rgba(0,0,0,.5);-webkit-transition:-webkit-transform .15s;transition:transform .15s}
.demo-video__btn:after{content:"";position:absolute;left:34px;top:18px;border-style:solid;border-width:12px 0 12px 20px;border-color:transparent transparent transparent #fff}
.demo-video__poster:hover .demo-video__btn,.demo-video__poster:focus .demo-video__btn{-webkit-transform:scale(1.08);transform:scale(1.08)}
.demo-video__poster:focus{outline:3px solid #e6bc4f;outline-offset:-3px}
@media (max-width:600px){.demo-video__btn{left:12px;bottom:12px;width:58px;height:42px;border-radius:12px}.demo-video__btn:after{left:23px;top:12px;border-width:9px 0 9px 15px}}

/* add to home screen */
.game-bar .app-btn{margin-right:10px}
.game-frame.is-full .app-btn{display:none}
.app-help{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;background:rgba(10,12,11,.72);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:20px}
.app-help[hidden]{display:none}
.app-help__card{text-transform:none;position:relative;max-width:420px;width:100%;padding:30px 26px 26px;border-radius:16px;background:#232925;border:1px solid #6b746d;color:#f3ecd8;text-align:center;-webkit-box-shadow:0 30px 60px -20px rgba(0,0,0,.8);box-shadow:0 30px 60px -20px rgba(0,0,0,.8)}
.app-help__card img{border-radius:16px}
.app-help__card h3{margin:14px 0 10px;font-family:'Cinzel',Georgia,serif;font-size:24px;color:#e6bc4f}
.app-help__card p{margin:0;font-family:'Cormorant',Georgia,serif;font-weight:600;font-size:21px;line-height:1.45;text-transform:none;font-variant:normal;letter-spacing:0}
.app-help__card b{color:#f3d9a0}
.app-help__ico{display:inline-block;padding:0 6px;border:1px solid #6b746d;border-radius:5px;font-weight:700}
.app-help__close{position:absolute;top:8px;right:10px;width:40px;height:40px;border:0;background:none;color:#f3ecd8;font-size:30px;line-height:1;cursor:pointer}
.app-help__close:focus{outline:2px solid #e6bc4f}
@media (max-width:520px){.game-bar{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.game-bar .fs-btn{padding:8px 10px;font-size:11px;letter-spacing:.04em}.game-bar .fs-btn svg{width:16px;height:16px;margin-right:6px}.game-bar .app-btn{margin-right:8px}}
.app-help__card img{display:block;margin:0 auto}
@media (max-width:520px){.game-bar .fs-btn{white-space:nowrap}}
@media (max-width:380px){.game-bar .fs-btn svg{display:none}}
.app-help__done{margin-top:20px}
.app-help__done[hidden]{display:none}
