/* Portal V4. All slide layout rules are scoped away from the preserved atlas. */
body:not([data-chapter="atlas"]) { --header:64px; --footer:56px; }
body:not([data-chapter="atlas"]) .topbar { padding-inline:4%; }
body:not([data-chapter="atlas"]) .bottom-bar { padding-block:6px; }
body:not([data-chapter="atlas"]) .progress { max-width:230px; gap:9px; }
.v4-page { min-height:calc(100svh - var(--header) - var(--footer)); padding:clamp(30px,4vh,55px) 6%; }
.v4-page h1 { font-size:clamp(48px,4.4vw,76px); }
.v4-opening.cover { min-height:calc(100svh - var(--header) - var(--footer)); padding:4vh 7%; }
.v4-opening .cover-copy { width:66%; max-width:820px; }
.v4-opening .cover-image { background-position:65% center; }
.v4-opening:after { background:linear-gradient(90deg,#091b17ed 0%,#091b17b8 34%,#091b1730 68%,#091b1720),linear-gradient(0deg,#091b17ad,transparent 38%); }
.v4-opening .eyebrow { font-size:10px; letter-spacing:.23em; margin-bottom:15px; }
.v4-opening .arabic-title { font-size:clamp(32px,3.6vw,54px); margin:0 0 5px; }
.v4-opening h1 { font-size:clamp(76px,8.2vw,142px); line-height:.98; }
.v4-opening-line { font:400 clamp(27px,2.7vw,41px)/1.17 var(--serif); margin-top:24px; color:#f5eedf; }
.v4-opening .cover-context { font-size:clamp(14px,1.1vw,17px); line-height:1.8; margin:19px 0 25px; color:#d0d4c6; }
.v4-opening .button { padding-inline:25px; border-radius:3px; }
.v4-signature { display:flex; align-items:center; flex-wrap:wrap; gap:17px; margin-top:32px; font-size:11px; font-weight:500; letter-spacing:.12em; color:#f0e6cb; }
.v4-signature .v4-cross { color:#d1b27d; font-size:19px; font-weight:400; }
.v4-cover-caption { position:absolute; right:4%; bottom:31px; text-align:right; }
.v4-cover-caption>span { font-size:9px; letter-spacing:.2em; color:#e4c78f; }
.v4-cover-caption p { font:400 22px/1.3 var(--serif); margin-top:5px; }
.v4-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:35px; margin-bottom:30px; }
.v4-section-head .eyebrow { margin-bottom:14px; }
.v4-side-note { font-size:14px; line-height:1.8; color:#bac5b8; max-width:360px; padding-bottom:5px; }
.v4-concept { background:radial-gradient(ellipse at 100% 0,#25413655,transparent 60%),#10231f; }
.v4-game-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:25px; }
.v4-game-card { background:#eae6d9; color:#1a342b; border:1px solid #d1b27d3b; overflow:hidden; border-radius:5px; }
.v4-game-art { height:clamp(150px,22vh,245px); position:relative; overflow:hidden; background:#26392f; }
.v4-game-art img { width:100%; height:100%; object-fit:cover; display:block; }
.v4-game-art:after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,#09201935,transparent 40%,#0717119e); }
.v4-art-book img { object-position:50% 55%; }
.v4-art-audio img { object-position:55% 35%; }
.v4-art-walk img { object-position:78% 42%; transform:scale(1.12); }
.v4-card-number { position:absolute; top:17px; left:21px; font:400 32px/1 var(--serif); color:#fff4d8; z-index:1; text-shadow:0 2px 15px #0007; }
.v4-art-label { position:absolute; bottom:17px; left:22px; font-size:10px; letter-spacing:.2em; color:#f4e9cf; z-index:1; }
.v4-game-copy { padding:23px 25px 25px; }
.v4-game-copy h2 { font-size:clamp(28px,2.5vw,39px); margin-bottom:13px; }
.v4-game-copy p { color:#506255; font-size:15px; line-height:1.75; min-height:79px; }
.v4-game-copy .text-button { color:#294e3b; font-size:12px; margin-top:20px; min-height:28px; }
.v4-format { display:block; font-size:11px; letter-spacing:.025em; color:#62705c; margin-top:24px; }
.v4-sound-lines { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:6px; z-index:1; opacity:.8; }
.v4-sound-lines i { display:block; width:2px; border-radius:5px; background:#f3dfb2; box-shadow:0 0 12px #d9b87c44; }
.v4-learning { display:grid; grid-template-columns:1fr 1.15fr; padding:0; background:#eeeadd; color:#173a2c; }
.v4-learning-art { position:relative; min-height:calc(100svh - var(--header) - var(--footer)); overflow:hidden; }
.v4-learning-art>img { position:absolute; width:100%; height:100%; object-fit:cover; object-position:39% center; }
.v4-learning-art:after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,#10231f08 45%,#091b17eb 100%); }
.v4-learning-art-caption { position:absolute; z-index:1; bottom:8%; left:10%; right:8%; color:#fbf0d8; }
.v4-learning-art-caption .eyebrow { color:#f0d49f; font-size:10px; margin-bottom:13px; }
.v4-learning-art-caption p { font:400 clamp(28px,2.9vw,46px)/1.16 var(--serif); }
.v4-learning-copy { padding:clamp(32px,4.6vh,63px) 10%; align-self:center; }
.v4-learning-copy h1 { font-size:clamp(44px,4vw,69px); }
.v4-learning-copy h1 em { color:#72816a; }
.v4-learning-copy .eyebrow { color:#897148; font-size:10px; margin-bottom:15px; }
.v4-learning-lead { color:#5b6b5d; font-size:15px; line-height:1.8; margin-top:19px; max-width:530px; }
.v4-learning-steps { list-style:none; margin:25px 0 0; padding:0; }
.v4-learning-steps li { display:flex; gap:18px; border-top:1px solid #36574426; padding:18px 0; }
.v4-learning-steps li>span { font:400 17px/1.4 var(--serif); color:#937d53; padding-top:4px; }
.v4-learning-steps h2 { font-size:clamp(26px,2.15vw,35px); }
.v4-learning-steps p { font-size:14px; line-height:1.7; color:#5b6b5d; margin-top:7px; }
.v4-review-note { font-size:11px; line-height:1.6; color:#6e7b68; margin-top:13px; }
.v4-studios { background:radial-gradient(ellipse at 90% 5%,#4a573534,transparent 50%),#10231f; }
.v4-studio-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.v4-studio-card { padding:26px 30px; border:1px solid #d4c38e35; background:#ffffff03; border-radius:5px; }
.v4-studio-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; min-height:58px; margin-bottom:24px; }
.v4-horde-logo { width:100px; height:56px; object-fit:contain; object-position:left center; filter:brightness(0) invert(1); opacity:.92; }
.v4-griffin-logo { width:165px; height:56px; object-fit:contain; object-position:left center; filter:brightness(0) invert(1); opacity:.92; }
.v4-studio-category { color:#cfb885; font-size:9px; letter-spacing:.12em; text-align:right; max-width:150px; }
.v4-studio-card h2 { font-size:clamp(31px,2.65vw,43px); margin-bottom:17px; }
.v4-studio-card>p { color:#bcc7b9; font-size:15px; line-height:1.8; max-width:580px; }
.v4-disciplines { display:flex; flex-wrap:wrap; gap:9px 19px; padding-block:18px 22px; }
.v4-disciplines span { font-size:11px; color:#dfd5bc; }
.v4-studio-card .text-button { color:#e1c793; font-size:12px; min-height:27px; }
.v4-studio-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:26px; }
.v4-studio-footer>p { font:400 28px/1.2 var(--serif); color:#d8decf; }
.v4-studio-footer .button { min-height:46px; padding:9px 21px; font-size:13px; border-radius:3px; }
/* Removing the version picker only affects the portal toolbar, never the game. */
@media(max-width:850px) { .thawr-toolbar .thawr-heading { min-width:0; } }
@media(min-width:851px) and (max-height:800px) {
  .v4-page { padding-top:26px; padding-bottom:26px; }
  .v4-section-head { margin-bottom:23px; }
  .v4-page h1 { font-size:53px; }
  .v4-opening.cover { padding-top:26px; padding-bottom:26px; }
  .v4-opening h1 { font-size:clamp(77px,8vw,112px); }
  .v4-opening-line { margin-top:16px; font-size:30px; }
  .v4-opening .cover-context { margin:15px 0 21px; font-size:14px; }
  .v4-signature { margin-top:24px; }
  .v4-game-art { height:150px; }
  .v4-game-copy { padding:20px 22px; }
  .v4-game-copy h2 { font-size:30px; }
  .v4-game-copy p { font-size:14px; min-height:72px; }
  .v4-game-copy .text-button { margin-top:14px; }
  .v4-format { margin-top:21px; }
  .v4-learning { padding:0; }
  .v4-learning-copy { padding:27px 9%; }
  .v4-learning-copy h1 { font-size:48px; }
  .v4-learning-lead { font-size:14px; margin-top:13px; }
  .v4-learning-steps { margin-top:20px; }
  .v4-learning-steps li { padding:12px 0; }
  .v4-learning-steps h2 { font-size:28px; }
  .v4-learning-steps p { font-size:13px; }
  .v4-studio-card { padding:22px 27px; }
  .v4-studio-heading { margin-bottom:15px; min-height:46px; }
  .v4-horde-logo,.v4-griffin-logo { height:46px; }
  .v4-studio-card h2 { font-size:34px; margin-bottom:12px; }
  .v4-studio-card>p { font-size:14px; }
  .v4-disciplines { padding-block:15px; }
  .v4-studio-footer { margin-top:22px; }
  .v4-studios { padding-top:20px; padding-bottom:20px; }
}
@media(max-width:1050px) {
  .v4-page { padding-inline:5%; }
  .v4-game-grid { gap:17px; }
  .v4-game-copy { padding-inline:19px; }
  .v4-game-copy p { min-height:100px; }
  .v4-learning { padding:0; grid-template-columns:.85fr 1.15fr; }
  .v4-learning-copy { padding-inline:8%; }
  .v4-studio-category { max-width:135px; font-size:8px; }
}
@media(max-width:850px) {
  body:not([data-chapter="atlas"]) { --header:68px; --footer:62px; }
  .v4-opening .cover-copy { width:90%; }
  .v4-opening.cover { padding:45px 7%; }
  .v4-opening h1 { font-size:clamp(70px,11vw,100px); }
  .v4-opening-line { font-size:31px; }
  .v4-cover-caption { display:none; }
  .v4-section-head { align-items:flex-start; flex-direction:column; gap:19px; }
  .v4-side-note { max-width:470px; font-size:14px; }
  .v4-side-note br { display:none; }
  .v4-game-copy h2 { font-size:30px; }
  .v4-game-copy p { font-size:14px; min-height:122px; }
  .v4-game-copy .text-button { font-size:11px; line-height:1.6; gap:9px; }
  .v4-game-copy .v4-format { font-size:10px; min-height:35px; }
  .v4-game-art { height:180px; }
  .v4-learning { grid-template-columns:1fr; }
  .v4-learning-art { min-height:300px; height:36vh; }
  .v4-learning-art>img { object-position:50% 52%; }
  .v4-learning-art-caption { left:6%; bottom:12%; }
  .v4-learning-art-caption p { font-size:33px; }
  .v4-learning-copy { padding:35px 7%; }
  .v4-learning-copy h1 { font-size:53px; }
  .v4-studio-card { padding:24px; }
  .v4-studio-heading { align-items:flex-start; flex-direction:column; gap:16px; }
  .v4-studio-category { max-width:none; text-align:left; font-size:9px; }
}
@media(max-width:600px) {
  .v4-page { padding:30px 6%; }
  .v4-page h1 { font-size:46px; }
  .v4-opening.cover { padding:36px 7%; }
  .v4-opening .cover-copy { width:100%; }
  .v4-opening .eyebrow { font-size:9px; }
  .v4-opening .arabic-title { font-size:38px; }
  .v4-opening h1 { font-size:75px; }
  .v4-opening-line { font-size:29px; }
  .v4-opening .cover-context { font-size:14px; }
  .v4-signature { gap:12px; font-size:9px; margin-top:26px; }
  .v4-opening .cover-image { background-position:65% center; }
  .v4-opening:after { background:linear-gradient(90deg,#091b17ed,#091b17b8 65%,#091b1760); }
  .v4-game-grid,.v4-studio-grid { grid-template-columns:1fr; gap:23px; }
  .v4-game-art { height:200px; }
  .v4-game-copy { padding:23px; }
  .v4-game-copy h2 { font-size:35px; }
  .v4-game-copy p { min-height:0; font-size:15px; }
  .v4-game-copy .text-button { font-size:13px; }
  .v4-game-copy .v4-format { min-height:0; font-size:11px; }
  .v4-learning { padding:0; }
  .v4-learning-copy { padding:34px 7%; }
  .v4-learning-copy h1 { font-size:45px; }
  .v4-learning-steps h2 { font-size:28px; }
  .v4-studio-heading { flex-direction:row; align-items:center; }
  .v4-studio-category { max-width:150px; text-align:right; }
  .v4-studio-card>p { font-size:15px; }
  .v4-studio-footer { align-items:flex-start; flex-direction:column; }
  .v4-studio-footer>p { font-size:28px; }
}
