/* Hrava studio - game profiles (/compatibility/<slug>/, written by scripts/studio/transform-profiles.py).
   Loads after core.css and page.css, tokens only. Generator hooks that may not move: section.profile-hero,
   .profile-intro p, dl.profile-facts + aside.tp-notice, figure.profile-hero-video > #profile-video-slot. */
/* core keeps anchors clear of the header (scroll-padding) and of a sticky bar as tall as --st-sub */
:root{--st-sub:calc(var(--st-7) + 1px)}
#site-main{display:block;scroll-margin-top:var(--st-header)}
/* hero: open world, the verdict first. The fog stands behind the text column only, so the world frames the art */
.profile-top{position:relative;isolation:isolate;padding-block:var(--st-4) var(--st-section)}
.profile-top::before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;--st-e:max(var(--st-gutter),(100% - var(--st-max))/2);--st-f:color-mix(in srgb,var(--st-bg) 94%,transparent);
  background:linear-gradient(90deg,var(--st-f) 0,var(--st-f) calc(var(--st-e) + var(--st-max)*.5),color-mix(in srgb,var(--st-bg) 40%,transparent) calc(var(--st-e) + var(--st-max)*.6),transparent calc(var(--st-e) + var(--st-max)*.72))}
@supports not (color:color-mix(in srgb,red,blue)){.profile-top::before{background:var(--st-ground-solid)}}
/* right to left: the fog follows the text column; the game's name keeps its Latin order */
[dir=rtl] .profile-top::before{scale:-1 1}
[dir=rtl] .profile-top h1 .st-nb{unicode-bidi:plaintext}
.profile-hero{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--st-gap);row-gap:var(--st-stack);align-items:center;width:min(var(--st-max),100% - 2*var(--st-gutter));margin:var(--st-5) auto 0}
.profile-intro{grid-column:1/7;display:grid;gap:var(--st-stack);justify-items:start;min-width:0}
.profile-intro .st-outline{display:block}
.profile-proof{width:100%}
.profile-proof dd{text-wrap:balance}
:is(.profile-art,.profile-hero-video){grid-column:7/13;grid-row:1;min-width:0}
.profile-art{aspect-ratio:2/1}
/* no store art (three games): the title is the plate */
.profile-art.is-missing::before{max-width:11em;font-size:var(--st-fs-h2);line-height:1.08;font-weight:800;letter-spacing:-.03em;color:var(--st-text)}
.profile-hero--video .profile-art{display:none}
/* the filmed test: a plate, so its caption never stands on the canvas */
.profile-hero-video{display:grid;gap:var(--st-3);padding:var(--st-3);border:1px solid var(--st-line-2);border-radius:var(--st-r-surface);background:var(--st-ground-solid)}
#profile-video-slot{position:relative;aspect-ratio:16/9}
#profile-video-slot>iframe{width:100%;height:100%;border:0}
html.js #profile-video-slot>iframe[src]:not([src*=autoplay]){display:none}
.profile-hero-video figcaption{padding-inline:var(--st-1);font-size:var(--st-fs-label);line-height:1.35;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--st-text-3)}
/* the bar: a child of .profile-flow, so it follows the reader through every band it lists. It lies over the top
   of the first band (the margin takes its height back; the layout below starts that much lower) */
.profile-tabs{position:sticky;top:var(--st-header);z-index:5;display:flex;align-items:center;gap:var(--st-4);min-height:var(--st-7);
  margin-block:0 calc(-1*var(--st-7) - 1px);margin-inline:max(0px,(100% - var(--st-slab))/2);
  padding-inline:calc((min(100%,var(--st-slab)) - min(var(--st-max),100% - 2*var(--st-gutter)))/2);
  border-bottom:1px solid var(--st-line);border-inline:clamp(0px,100vw - var(--st-slab),1px) solid var(--st-line);background:var(--st-ground-solid);
  font-size:var(--st-fs-small);line-height:1.5;font-weight:600;white-space:nowrap;overflow-x:auto;scrollbar-width:none}
.profile-tabs::-webkit-scrollbar{display:none}
/* each link is padded so the focus ring (drawn inside the bar, which clips) clears its text; the first and the
   last hang that padding outside the content edge */
.profile-tabs>a{flex:none;display:inline-flex;align-items:center;min-height:var(--st-7);padding-inline:var(--st-2)}
.profile-tabs>a:first-child{margin-inline-start:calc(-1*var(--st-2))}
.profile-tabs>a:not(.st-link){position:relative;color:var(--st-text-2);transition:color var(--st-t1) var(--st-ease)}
.profile-tabs>a[aria-current]{color:var(--st-text)}
.profile-tabs>a[aria-current]::after{content:"";position:absolute;inset-inline:var(--st-2);bottom:0;height:calc(var(--st-1)/2);background:var(--st-gold)}
.profile-tabs>a:focus-visible{outline-offset:calc(-1*var(--st-1))}
@media (hover:hover){.profile-tabs>a:not(.st-link):hover{color:var(--st-text)}}
.profile-tabs>.profile-tabs__out{margin-inline:auto calc(-1*var(--st-2))}
/* the sheet and the plans */
.profile-layout{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--st-gap);row-gap:var(--st-section);align-items:start;margin-top:calc(var(--st-7) + 1px)}
.profile-content{grid-column:1/9;display:grid;grid-template-columns:minmax(0,1fr);gap:var(--st-section);min-width:0}
.profile-section>.st-h2{margin-bottom:var(--st-head)}
.profile-test{margin-top:var(--st-3)}
.profile-section>:is(.st-route,.profile-test)+.profile-facts{margin-top:var(--st-stack)}
.profile-notes{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start}
.profile-notes__own{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--st-5);width:100%}
.profile-notes>.profile-caveat{margin-top:var(--st-4)}
.profile-notes>.st-link{margin-top:var(--st-3)}
.profile-offer{grid-column:9/13;position:sticky;top:calc(var(--st-header) + var(--st-7) + var(--st-5));display:grid;grid-template-columns:minmax(0,1fr);gap:var(--st-4);justify-items:start}
.profile-offer>.st-plans{justify-self:stretch}
/* the route lights up once in the order a frame travels it */
.profile-route>li::after{content:"";position:absolute;inset:-1px;border:1px solid var(--st-gold);border-radius:inherit;opacity:0;pointer-events:none}
.profile-route.is-live>li::after{animation:profile-route var(--st-t4) var(--st-ease) both}
.profile-route.is-live>li:nth-child(2)::after{animation-delay:var(--st-t2)}
.profile-route.is-live>li:nth-child(3)::after{animation-delay:calc(var(--st-t2)*2)}
.profile-route.is-live>li:nth-child(4)::after{animation-delay:calc(var(--st-t2)*3)}
@keyframes profile-route{30%{opacity:1}}
/* steps, neighbours */
.profile-setup .profile-caveat{margin-top:var(--st-head)}
.profile-disclaimer{margin-top:var(--st-head)}
@media (max-width:1099px){
  .profile-top::before{background:var(--st-fog-v)}
  .profile-hero{display:flex;flex-direction:column;align-items:flex-start}
  .profile-intro{display:contents}
  /* one column, one right edge: a 1280px still is not stretched past 640 on a 2x screen, and the strip keeps to it */
  :is(.profile-art,.profile-hero-video,.profile-proof){max-width:calc(var(--st-9)*8)}
  :is(.profile-art,.profile-hero-video){order:1;align-self:stretch;width:100%}
  .profile-hero-links{order:2}
  .profile-content,.profile-offer{grid-column:1/-1}
  .profile-offer{position:static;max-width:calc(var(--st-9)*6)}
}
@media (max-width:640px){
  .profile-tabs{display:none}
  :root{--st-sub:0px}
  .profile-layout{margin-top:0}
  .profile-route>li:last-child{display:none}
  .profile-hero-video{padding:var(--st-2)}
  .profile-offer{max-width:none}
}
/* review article (scripts/studio/game_review.py) */
.profile-review__body{display:grid;gap:var(--st-4);font-size:1.0625rem;line-height:1.7;max-width:72ch}
.profile-review__body a{color:var(--st-gold,#f3c24b);text-decoration:underline;text-underline-offset:3px}
.profile-review__h{margin-top:var(--st-5)}
.profile-review__shot{margin:var(--st-3) 0}
.profile-review__shot img{width:100%;height:auto;border-radius:14px;display:block}
.profile-review__shot figcaption{font-size:.875rem;opacity:.7;margin-top:.5em}
.profile-buy__list{list-style:none;margin:0;padding:0;display:grid;gap:var(--st-3)}
.profile-buy__list{gap:var(--st-2)}
.profile-buy__link{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid rgba(255,255,255,.12);border-radius:12px;color:inherit;text-decoration:none;font-weight:600;transition:border-color .15s,background .15s}
.profile-buy__link:hover,.profile-buy__link:focus-visible{border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.05)}
.profile-buy__ico{flex:none;opacity:.9}
.profile-buy__stats{margin:0 0 var(--st-5);display:grid;gap:10px}
.profile-buy__stats div{display:flex;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.08)}
.profile-buy__stats dt{opacity:.65;font-size:.9em}
.profile-buy__stats dd{margin:0;text-align:right;font-weight:600;font-size:.9em}
.profile-buy__stats a{color:inherit;text-decoration:underline;text-decoration-color:rgba(255,255,255,.3);text-underline-offset:3px}
.profile-buy__list li{display:block;width:100%}.profile-buy__link{width:100%;box-sizing:border-box}
.profile-buy__list{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.profile-buy__link{height:100%}
.profile-buy>.profile-buy__list,.profile-buy>.profile-buy__stats{justify-self:stretch;width:100%}
/* video pages: the test strip (tested / Mac / chip / engine) sits under the video */
.profile-side{grid-column:7/13;grid-row:1;display:grid;gap:var(--st-4);min-width:0}
@media (max-width:1099px){.profile-side{order:1;align-self:stretch;width:100%;max-width:calc(var(--st-9)*8)}}
.profile-side>*{grid-column:1/-1;grid-row:auto}.profile-side{grid-template-columns:minmax(0,1fr)}
.profile-side>*{order:0!important}
