/* Royal chronicle: illustrated space, tactile folios and restrained light. */
:root {
  --gold-light: #f7dfa6;
  --gold-shadow: #87622e;
  --paper: #f0e4c8;
  --paper-ink: #233048;
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.11'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
body { isolation: isolate; background: #080f1b; }
.castle-backdrop {
  position: fixed; inset: -30px; z-index: -2; pointer-events: none;
  background: linear-gradient(180deg,#07101c75,#07101c9c 60%,#07101cc2),
    url('/img/vorgar-royal-warroom-2026-11.webp') center / cover no-repeat;
  transform: translate3d(0,var(--scene-shift,0px),0) scale(1.04);
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--grain); opacity: .3;
}
main { position: relative; }
.site-header {
  background: linear-gradient(180deg,#0b1424ed,#0b1424b3);
  padding-inline: 24px; border-bottom-color: #d9b66d66;
  box-shadow: 0 10px 35px #0003;
}
.brand>img { filter: drop-shadow(0 2px 8px #e6bd6840); }
.site-header nav>a:not(.nav-play) { position: relative; }
.site-header nav>a:not(.nav-play)::after {
  content: ''; position: absolute; bottom: 6px; height: 1px; left: 50%; right: 50%;
  background: var(--gold); transition: left .25s, right .25s;
}
.site-header nav>a:hover::after,.site-header nav>a[aria-current]::after { left: 0; right: 0; }
.site-header .nav-play,.button,.launch-link {
  border-radius: 4px 12px 4px 12px;
  box-shadow: inset 0 1px #fff2,0 4px 12px #0004;
}
.site-header .nav-play {
  background: linear-gradient(135deg,#e6bd6820,#13233c); border-color: #c9a563;
}
.site-header nav>a,.button,.game-launch,.launch-link,.android-launch {
  transition: color .2s,background-color .2s,box-shadow .25s,transform .25s;
}
.site-header .nav-play:hover { box-shadow: inset 0 1px #fff2,0 0 24px #d9b66d20; }
.portal-hero { padding-bottom: 18px; }
.world-art { filter: none; background-image: linear-gradient(180deg,#07101c18,#07101c10 40%,#080f1b70 75%,#080f1b 100%),url('/img/vorgar-world-2026-11.webp'); }
.portal-hero::before { background: radial-gradient(ellipse at 50% 35%,transparent 15%,#080f1b7a 85%); }
.studio-signal { color: var(--gold-light); }
.game-wordmark { color: var(--gold-light); text-shadow: 0 2px 0 #715228,0 5px 0 #271f1a,0 14px 35px #000b; }
.game-wordmark>span { color: var(--gold-light); }
.game-launch {
  position: relative; overflow: hidden; border-radius: 3px;
  background: linear-gradient(120deg,#cf9e49,#f6dea0 43%,#e8bd66 65%,#c59036);
  border-color: #ffe6ad;
  box-shadow: inset 0 2px #fff5,inset 0 -4px #6f4d2380,0 10px 25px #0009;
}
.game-launch::after {
  content: ''; position: absolute; inset: -30px auto -30px -45%; width: 25%;
  background: linear-gradient(90deg,transparent,#fff8,transparent);
  transform: skewX(-22deg); transition: left .65s; pointer-events: none;
}
.game-launch:hover::after,.game-launch:focus-visible::after { left: 130%; }
.game-launch:hover { filter: none; transform: translateY(-3px); }
.android-launch { border-radius: 5px; background: linear-gradient(140deg,#26364bea,#0b1525ed); }
.hero-specs { border: 0; padding-top: 37px; position: relative; color: #e0e5ee; }
.hero-specs::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(620px,100%); height: 40px; background: url('/img/royal-ornament.svg') center / contain no-repeat;
}
.battle-showcase { position: relative; padding-top: 45px; }
.showcase-heading { margin-bottom: 30px; align-items: center; }
.showcase-heading h2 { font-size: clamp(30px,3vw,43px); text-shadow: 0 3px 14px #000; }
.screen-tabs {
  flex-shrink: 0; border-radius: 40px; border-color: #c9a56370; padding: 5px;
  background: #0a1425e8; box-shadow: inset 0 2px 7px #0009,0 4px 15px #0004;
}
.screen-tabs button { border-radius: 30px; font-size: 14px; }
.screen-tabs button[aria-selected=true] {
  background: linear-gradient(135deg,#f5d99a,#bf8d3a); color: #172238;
  box-shadow: inset 0 1px #fff7,0 2px 7px #0006;
}
.screen-stage {
  padding: 17px 17px 12px; border: 1px solid #c09a55; border-radius: 12px;
  background: radial-gradient(circle at 50% 0,#4c4032a8,transparent 65%),var(--grain),linear-gradient(145deg,#26374c,#0a1526 45%,#28313e);
  box-shadow: inset 0 1px 2px #f5d99a70,inset 0 0 0 5px #080f1b,0 8px 0 #0a0d13,0 9px 0 #ac8c4b80,0 35px 65px #000a;
}
.screen-stage::before {
  inset: -7px; width: auto; height: auto; border: 1px solid #ad87413d;
  border-radius: 17px; background: none; z-index: -1;
}
.screen-stage::after {
  inset: 6px; width: auto; height: auto; transform: none; border: 0;
  background: radial-gradient(circle at 7px 7px,#ffe4a9 1px,#957139 2px,transparent 4px) 0 0 / calc(100% - 14px) calc(100% - 14px);
  border-radius: 8px; pointer-events: none;
}
.screen-image { overflow: hidden; border-radius: 4px; background: #070f12; }
.screen-caption { border-top-color: #c4a36155; padding-top: 13px; color: #d1dae8; }
.strategy-ribbon { border: 0; padding: 45px 8px 22px; gap: 35px; }
.strategy-ribbon>div { grid-template-columns: 58px 1fr; gap: 4px 16px; }
.ribbon-icon {
  display: grid; place-items: center; width: 52px; height: 58px; border-radius: 50%;
  border: 1px solid #c9a56380; font-size: 29px;
  background: radial-gradient(ellipse at top,#c9a56335,#10213b 70%);
  box-shadow: inset 0 0 0 4px #0a1528,0 6px 16px #0006;
}
.strategy-ribbon h3 { font-size: 24px; }
.strategy-ribbon p { font-size: 15px; }
.studio-interlude { padding: 65px 20px 85px; position: relative; }
.studio-interlude::before,.studio-interlude::after {
  content: ''; display: block; width: min(510px,90%); height: 45px;
  background: url('/img/royal-ornament.svg') center / contain no-repeat; margin: 0 auto 25px;
}
.studio-interlude::after { width: 270px; margin: 30px auto 0; opacity: .65; }
.studio-interlude p { font-size: clamp(25px,2.4vw,35px); color: var(--ink); text-shadow: 0 3px 15px #000; }
.studio-interlude>span { color: var(--gold-light); }
.field-shelf {
  isolation: isolate; width: 100vw; margin-inline: calc((100% - 100vw)/2);
  padding: 95px max(28px,calc((100vw - 1180px)/2)) 80px; border: 0;
  background: linear-gradient(180deg,#080f1b,#0b1624a8 15%,#0b1624b8 85%,#080f1b),
    url('/img/vorgar-royal-warroom-2026-11.webp') center 45% / cover no-repeat;
}
.field-shelf::before,.field-shelf::after {
  width: min(660px,80%); height: 50px; left: 50%; right: auto; top: 0;
  transform: translateX(-50%); background: url('/img/royal-ornament.svg') center / contain no-repeat;
}
.field-shelf::after { top: auto; bottom: 0; }
.shelf-heading { max-width: 760px; margin-bottom: 30px; }
.shelf-heading h2 { font-size: clamp(33px,3.8vw,49px); }
.shelf-heading p { color: #d5deeb; font-size: 18px; }
.manual-entry {
  grid-template-columns: minmax(180px,290px) minmax(0,1fr); gap: 45px;
  max-width: 950px; margin: 0 auto 44px; padding: 20px 35px 20px 15px;
  background: none;
  color: var(--ink); box-shadow: none; border-radius: 12px;
}
.manual-emblem { border: 0; width: 100%; padding: 0; transform: rotate(-7deg); }
.manual-emblem img { max-height: 320px; object-fit: contain; filter: drop-shadow(6px 16px 14px #0009); transition: transform .5s; }
.manual-entry:hover { filter: none; }
.manual-entry:hover .manual-emblem img { transform: rotate(4deg) translateY(-7px); }
.manual-entry .eyebrow { color: var(--gold-light); font-size: 13px; }
.manual-entry h3 { font-size: clamp(33px,4vw,52px); margin-top: 13px; }
.manual-entry p { color: #d5deeb; font-size: 17px; line-height: 1.8; margin-top: 17px; }
.manual-enter {
  margin-top: 23px; padding-bottom: 8px; width: fit-content; color: var(--gold-light);
  font-size: 14px; border-bottom: 1px solid #c9a56370;
}
.guide-cards { gap: 30px; align-items: stretch; margin-top: 40px; padding-bottom: 12px; }
.guide-card {
  display: flex; flex-direction: column;
  position: relative; background: var(--grain),linear-gradient(110deg,#e1cd9e,#f4e9d0 16%,#f0e4c8 80%,#dfcba2);
  color: var(--paper-ink); border-radius: 3px 12px 12px 3px; min-width: 0;
  box-shadow: -3px 0 #8e6d39,-6px 0 #211b18,0 16px 35px #0008,inset -2px 0 #fff8;
  transition: transform .3s,box-shadow .3s;
}
.guide-card:hover,.guide-card:focus-visible {
  transform: translateY(-7px); box-shadow: -3px 0 #ba9655,-6px 0 #211b18,0 23px 45px #000b,inset -2px 0 #fff8;
}
.guide-thumbnail { border: 0; border-radius: 3px 12px 0 0; background: #08110f; }
.guide-thumbnail img { transition: transform .5s; }
.guide-thumbnail>span {
  bottom: 14px; background: linear-gradient(110deg,#f7dea0,#cda255);
  color: #17253c; border: 0; font-size: 12px; font-weight: 800; padding: 7px 18px 7px 13px;
  clip-path: polygon(0 0,100% 0,calc(100% - 9px) 50%,100% 100%,0 100%);
}
.guide-card-copy { padding: 23px 25px 20px; display: flex; flex: 1; flex-direction: column; }
.guide-card-copy>small { color: #5e5140; font-size: 12px; font-weight: 700; }
.guide-card h3 { font-size: 27px; margin-top: 11px; color: #17253c; }
.guide-card p { font-size: 16px; color: #3b4658; margin-bottom: 20px; }
.guide-card-action { color: #654819; border-top-color: #a68b5875; font-size: 14px; font-weight: 700; min-height: 44px; margin-top: auto; }
.all-guides { color: var(--gold-light); font-size: 16px; margin-top: 35px; }
.play-outro {
  position: relative; isolation: isolate; padding: 95px 20px 85px;
  background: radial-gradient(ellipse at 50% 60%,#c3943530,transparent 65%);
}
.play-outro::before { content: ''; display: block; width: min(520px,90%); height: 50px; background: url('/img/royal-ornament.svg') center / contain no-repeat; margin: 0 auto 28px; }
.play-outro h2 { font-size: clamp(35px,4.3vw,57px); text-shadow: 0 4px 18px #0009; }
.launch-link { background: linear-gradient(120deg,#c99c4c,#f7dea0 45%,#d4ac5e); font-size: 17px; padding: 15px 32px; }
.launch-link:hover { transform: translateY(-3px); box-shadow: 0 8px 25px #0009,0 0 28px #e6bd6820; }
.site-footer { background: #08101dd1; padding: 32px 24px; border-color: #d9b66d55; }
.page-intro { padding-top: 70px; position: relative; }
#main>.page-intro { padding-bottom: 60px; }
#main>.page-intro::after { content: ''; display: block; width: min(480px,95%); height: 45px; background: url('/img/royal-ornament.svg') center / contain no-repeat; margin: 25px auto -20px; }
#main>.page-intro h1 { text-shadow: 0 4px 20px #000; }
#main>.page-intro>p { color: #e0e5ed; text-shadow: 0 2px 10px #000; }
.manual-banner {
  position: relative; max-width: 1050px; padding: 25px 35px; margin-bottom: 55px; gap: 32px;
  background: var(--grain),radial-gradient(ellipse at 10% 50%,#c9a56355,transparent 70%),linear-gradient(110deg,#d8c292,#f3e9d1 25%,#edddba);
  border-radius: 8px 3px 14px 3px; border: 1px solid #bca16a;
  box-shadow: 3px 4px 0 #b09a6c,7px 8px 0 #192333,0 20px 35px #0007;
}
.manual-banner>.manual-miniature { display: block; max-width: none; width: 112px; flex-shrink: 0; margin-top: -50px; margin-bottom: -35px; transform: rotate(-8deg); }
.manual-miniature img { filter: drop-shadow(5px 8px 5px #0005); }
.manual-banner .eyebrow { color: #71521f; font-size: 12px; }
.manual-banner h2 { margin-top: 5px; font-size: 31px; }
.manual-banner .button.secondary { background: #182942; color: #f5eedf; border-color: #b68f49; }
.guide-directory { gap: 38px 32px; }
.guide-directory .guide-card:first-child { grid-column: span 2; }
.guide-directory .guide-card:first-child .guide-thumbnail { aspect-ratio: 2.3; }
.guide-directory .guide-card:first-child .guide-thumbnail img { height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 42%; }
.guide-directory .guide-card:first-child h3 { font-size: 34px; }
.article-layout { margin-top: 60px; }
.article-nav { padding: 25px 20px; background: linear-gradient(135deg,#14233ac9,#080f1bbf); border: 1px solid #d9b66d35; border-radius: 40px 4px 18px 4px; box-shadow: 0 10px 35px #0004; }
.article-body {
  border-radius: 7px 3px 12px 3px; border: 1px solid #a68b58;
  background: var(--grain),linear-gradient(90deg,#d8c69e80,transparent 6%,transparent 94%,#c7ac7970),#f3ead5;
  box-shadow: 4px 4px 0 #c3ae7f,8px 8px 0 #263044,0 25px 60px #0009;
}
.article-body .page-intro { border-bottom: 1px solid #b6996360; margin-bottom: 15px; }
.article-body section:first-of-type>p:first-of-type::first-letter { float: left; font: 54px/.9 var(--display); color: #71521f; padding: 7px 9px 0 0; }
.article-body section>h2 { padding-bottom: 13px; border-bottom: 1px solid #ad8c4745; }
.article-body .game-shot img { border: 4px solid #263044; border-radius: 5px; box-shadow: 0 5px 10px #3e331b30; }
.reading-progress { position: fixed; z-index: 60; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(var(--reading-progress,0)); transform-origin: left; background: linear-gradient(90deg,#af7731,#ffe2a1); pointer-events: none; }
.rule-codex { padding-block: 90px; }
.codex-heading h2 { font-size: clamp(32px,3.8vw,46px); }
.phase-accordion { border-radius: 12px; background: linear-gradient(120deg,#10213bd9,#081222e0); box-shadow: 0 15px 35px #0005; padding: 8px 24px; border: 1px solid #d9b66d40; }
.phase-accordion details { border-color: #c9a56360; }
.phase-accordion details:first-child { border-top: 0; }
.phase-accordion details:last-child { border-bottom: 0; }
.game-mode-board { border: 1px solid #d9b66d50; border-radius: 3px 30px 3px 30px; background: var(--grain),linear-gradient(130deg,#15243cd9,#07101de8); box-shadow: 0 20px 45px #0005; }
.gallery-track { padding: 12px 5px 25px; }
.gallery-track button { border-radius: 10px; padding: 6px; background: linear-gradient(130deg,#b58b4935,#0b1626); box-shadow: 0 9px 0 #080e18,0 18px 25px #0006; }
.gallery-track img { border-radius: 5px; }
.gallery-track button>span { border-radius: 50%; }
.faq { border-top: 1px solid #c9a56350; margin-top: 45px; }
.image-viewer { border-radius: 12px; background: linear-gradient(135deg,#182942,#08101c); box-shadow: 0 25px 100px #000c; }
.image-viewer::backdrop { background: #040911ed; backdrop-filter: blur(7px); }
.in-view { animation: chronicle-arrive .65s cubic-bezier(.2,.7,.3,1) both; }
@keyframes chronicle-arrive { from { opacity: .55; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@media(min-width:1700px) { .castle-backdrop { background-position: center,center; } }
@media(max-width:1100px) {
  .site-header { padding-inline: 12px; }
  .site-header nav { gap: 20px; }
  .guide-card-copy { padding: 20px; }
  .manual-entry { gap: 30px; }
  .strategy-ribbon { gap: 20px; }
  .strategy-ribbon h3 { font-size: 23px; }
}
@media(max-width:900px) {
  .site-header nav { border-radius: 3px 3px 15px 15px; background: #0b1729f7; }
  .showcase-heading { display: flex; flex-wrap: wrap; }
  .strategy-ribbon { grid-template-columns: 1fr; gap: 17px; padding-top: 35px; }
  .strategy-ribbon>div { grid-template-columns: 58px 1fr; }
  .strategy-ribbon h3 { font-size: 25px; }
  .strategy-ribbon p { font-size: 16px; }
  .manual-entry { grid-template-columns: minmax(130px,220px) minmax(0,1fr); }
  .guide-cards { grid-template-columns: 1fr; }
  .guide-cards .guide-card { display: grid; grid-template-columns: 1fr 1.2fr; }
  .guide-cards .guide-thumbnail { border-radius: 3px 0 0 3px; }
  .guide-cards .guide-thumbnail img { height: 100%; object-fit: cover; }
  .manual-banner { flex-wrap: wrap; gap: 20px; }
  .manual-banner>div { flex: 1; }
  .manual-banner .button { margin-left: 140px; }
  .article-nav { padding: 18px 20px; margin-bottom: 24px; border-radius: 10px; }
}
@media(max-width:650px) {
  .castle-backdrop { background-position: center,58% center; }
  .site-header { padding-inline: 0; box-shadow: none; background: #091424d9; }
  .site-header nav { padding: 15px 20px; }
  .menu-toggle { border-radius: 50%; background: radial-gradient(circle at top,#c9a56325,#0c1a30); }
  .portal-hero { padding-top: 42px; }
  .hero-specs { padding-top: 40px; }
  .battle-showcase { padding-top: 30px; }
  .showcase-heading { display: block; margin-bottom: 25px; }
  .showcase-heading h2 { font-size: 32px; }
  .screen-tabs { width: fit-content; max-width: 100%; margin-top: 20px; }
  .screen-tabs button { padding-inline: 13px; }
  .screen-stage { padding: 9px 9px 10px; border-radius: 9px; }
  .screen-stage::before { inset: -4px; border-radius: 13px; }
  .screen-caption { font-size: 12px; padding-inline: 2px; }
  .strategy-ribbon { padding: 30px 3px 10px; gap: 0; }
  .strategy-ribbon>div { grid-template-columns: 52px minmax(0,1fr); padding: 18px 0; gap: 3px 16px; border-color: #c9a56340; }
  .ribbon-icon { grid-row: 1 / 3; width: 48px; height: 54px; }
  .strategy-ribbon h3 { font-size: 24px; }
  .strategy-ribbon p { grid-column: 2; font-size: 15px; }
  .studio-interlude { padding: 45px 8px 55px; }
  .studio-interlude p { font-size: 26px; }
  .field-shelf { padding: 75px 22px 65px; }
  .shelf-heading { margin-bottom: 20px; }
  .shelf-heading h2 { font-size: 36px; }
  .shelf-heading p { font-size: 17px; }
  .manual-entry { grid-template-columns: 110px minmax(0,1fr); gap: 18px; padding: 14px 0; margin-bottom: 25px; }
  .manual-emblem { width: 120px; margin-left: -10px; grid-row: auto; }
  .manual-emblem img { max-height: 220px; }
  .manual-entry h3 { font-size: 31px; }
  .manual-entry .eyebrow { font-size: 12px; letter-spacing: .08em; }
  .manual-entry p { font-size: 15px; }
  .manual-enter { font-size: 13px; gap: 15px; margin-top: 17px; }
  .manual-enter b { font-size: 20px; }
  .guide-cards { display: flex; gap: 25px; margin-left: -2px; padding: 10px 4px 24px 8px; }
  .guide-cards .guide-card { display: block; flex-basis: 88%; }
  .guide-cards .guide-thumbnail { border-radius: 3px 12px 0 0; }
  .guide-cards .guide-thumbnail img { height: auto; }
  .guide-card-copy { padding: 23px; }
  .guide-card h3 { font-size: 27px; }
  .all-guides { font-size: 15px; }
  .play-outro { padding: 55px 8px 65px; }
  .play-outro h2 { font-size: 39px; }
  .site-footer { padding: 28px 12px; }
  #main>.page-intro { padding-top: 45px; padding-bottom: 45px; }
  #main>.page-intro h1 { font-size: 41px; }
  .manual-banner { display: flex; padding: 25px; gap: 20px; margin-top: 25px; margin-bottom: 45px; }
  .manual-banner>.manual-miniature { width: 85px; margin-top: -30px; margin-bottom: 0; }
  .manual-banner h2 { font-size: 28px; }
  .manual-banner p { font-size: 16px; }
  .manual-banner .button { margin: 0; width: 100%; }
  .guide-directory { padding-inline: 6px; gap: 36px; }
  .guide-directory .guide-card:first-child { display: block; grid-column: auto; }
  .guide-directory .guide-card:first-child .guide-thumbnail { border-radius: 3px 12px 0 0; aspect-ratio: auto; }
  .guide-directory .guide-card:first-child .guide-thumbnail img { aspect-ratio: 1.7; height: auto; }
  .guide-directory .guide-card:first-child h3,.guide-directory .guide-card h3 { font-size: 28px; }
  .article-layout { margin-top: 18px; }
  .article-nav { padding: 17px 14px; }
  .article-body { padding-inline: 23px; box-shadow: 3px 3px 0 #c3ae7f,6px 6px 0 #263044,0 20px 30px #0008; }
  .article-body section:first-of-type>p:first-of-type::first-letter { font-size: 45px; }
  .rule-codex { padding-block: 55px; }
  .phase-accordion { padding-inline: 16px; }
  .phase-accordion summary h3 { font-size: 23px; }
  .game-mode-board { padding-inline: 23px; }
}
@media(max-width:350px) {
  .screen-tabs button { padding-inline: 9px; }
  .manual-entry { grid-template-columns: 85px minmax(0,1fr); gap: 12px; }
  .manual-emblem { width: 96px; }
  .manual-entry h3 { font-size: 28px; }
  .manual-enter { letter-spacing: 0; font-size: 12px; gap: 8px; }
  .field-shelf { padding-inline: 18px; }
  .article-body { padding-inline: 18px; }
}
@media(max-height:500px) and (min-width:651px) {
  .site-header nav.is-open { grid-template-columns: 1fr 1fr; }
  .portal-hero { padding-top: 30px; }
}
@media(prefers-reduced-motion:reduce) {
  .castle-backdrop { transform: scale(1.04); }
  .in-view { animation: none; }
  .manual-entry:hover .manual-emblem img,.guide-card:hover,.game-launch:hover,.launch-link:hover { transform: none; }
  *,*::before,*::after { animation: none!important; transition: none!important; }
}
