body:has(.orientiri-page) {
  background:
    radial-gradient(ellipse at 50% 0%, #4e5030 0%, transparent 60%),
    linear-gradient(115deg, #101d17, #252d21 50%, #101d17);
}
.orientiri-page {max-width:1580px;padding:18px 28px 30px}
.orientiri-active .app-header,.orientiri-active body>footer {display:none}
body.orientiri-active>footer{display:none}
.orientiri-active .orientiri-nav {margin:0;position:absolute;left:28px;right:28px;top:18px;pointer-events:none;z-index:5}
.orientiri-active .orientiri-nav>*{pointer-events:auto}
.orientiri-page button {
  background:linear-gradient(#3a422e,#202d23);
  border:1px solid #b79556;
  box-shadow:inset 0 1px #ffffff14,0 3px 6px #0003;
  border-radius:7px;
  color:#fff0cf;
}
.orientiri-page button:hover:not(:disabled){background:linear-gradient(#536044,#35442f);border-color:#f6d591}
.orientiri-page .gold-button {background:linear-gradient(#f1d38d,#c09a50);color:#252819;border-color:#ffe9ad}
.orientiri-heading {justify-content:center;text-align:center;margin:0 0 18px}
.orientiri-active .orientiri-heading{padding:0 175px;min-height:78px}
.orientiri-heading small {display:none}
.orientiri-heading h1 {
  font-size:clamp(32px,4vw,58px);
  color:#f6d48e;
  text-shadow:0 2px 1px #0d140b,0 0 25px #b48e4433;
  letter-spacing:-1px;
  line-height:1.3;
}
.orientiri-heading h1::before,.orientiri-heading h1::after{content:'✧';font-size:.45em;vertical-align:middle;margin:0 16px;color:#c5a164}
.orientiri-heading p{font-size:13px;color:#c6c5a6;margin:5px 0}
.orientiri-play{grid-template-columns:minmax(0,1fr) 310px;gap:22px;max-width:1300px;margin:auto}
.maze-wrap {
  border:8px solid #645c42;
  outline:1px solid #b59a61;
  border-radius:12px;
  background:#253021;
  box-shadow:0 12px 45px #0008,inset 0 0 15px #0009;
  overflow:hidden;
  width:100%;
  box-sizing:border-box;
}
.maze-svg {filter:drop-shadow(0 3px 2px #0007)}
.actor {width:6%;height:8%;filter:drop-shadow(0 4px 2px #0009)}
.actor .hero-sprite{filter:drop-shadow(0 0 2px #f2d49b66)}
.actor::after {font-size:9px;background:#172019db;border:1px solid #a48d50;color:#f6e9bf;bottom:-7px}
.orientiri-panel {
  border:1px solid #af8d50;
  border-radius:11px;
  background:
    linear-gradient(90deg,#b9944c22,transparent 7%,transparent 93%,#b9944c22),
    radial-gradient(ellipse at top,#ffedbd,#d5bc87);
  box-shadow:inset 0 0 0 5px #88673022,inset 0 0 35px #80663b44,0 8px 25px #0004;
  color:#342d20;
  padding:24px;
}
.orientiri-panel h2 {color:#3b3527;font-size:23px;text-shadow:none}
.orientiri-page .orientiri-panel p,.orientiri-panel small {color:#514530;line-height:1.7}
.orientiri-controls{position:sticky;top:20px;min-height:0}
.orientiri-controls h2{border-bottom:1px solid #9e814a77;padding-bottom:14px;line-height:1.45}
.orientiri-controls .guardian {
  float:right;width:90px;height:130px;
  background:radial-gradient(ellipse,#6e754633,transparent 70%);
  margin:0 -10px 10px 10px;
}
.orientiri-controls .question-text{font-size:21px;line-height:1.65;font-weight:700;color:#362f22;clear:both}
.orientiri-controls .orientiri-answers button{padding:14px;min-height:52px}
.orientiri-controls .orientiri-feedback{background:#a47e3322;color:#463c2a;border-color:#8f6f37;font-size:14px}
.orientiri-controls .orientiri-status {color:#5e4d2f}
.orientiri-controls .orientiri-moves button{font-size:14px;line-height:1.6;text-align:left}
.orientiri-page .orientiri-paused {max-width:1260px;margin:0 auto 15px;padding:8px 14px;color:#ffdf95;font-size:13px}
.orientiri-scores{gap:8px;margin-top:13px}
.orientiri-score{
  position:relative;
  overflow:hidden;
  padding:12px 10px 10px 63px;
  background:linear-gradient(140deg,#3b4431,#1c2c23);
  border:1px solid #9a8653;
  border-top:3px solid var(--hero-color);
  box-shadow:inset 0 0 0 3px #b7974f15,0 5px 14px #0004;
  border-radius:8px;
  min-height:106px;
}
.score-portrait {position:absolute;left:0;bottom:0;width:65px;height:105px}
.orientiri-score h3 {font-size:15px;color:#fff0cd;margin:0 0 7px;position:relative}
.orientiri-score>span{font-size:12px;color:#d6ddc6}
.orientiri-score .health{height:6px;margin:7px 0}
.artifact-slots {gap:4px;margin-top:8px}
.artifact-slots>span {display:block;width:25px;height:25px;padding:0;background:#16241d;border:1px solid #a68a50;border-radius:4px;opacity:.4}
.artifact-slots>span.found {opacity:1;background:#705c2f;box-shadow:0 0 6px #e8be6655}
.inventory-art {display:block;width:100%;height:100%;background-image:url('/img/orientiri/artifacts.png');background-size:500% 100%;background-position:calc(var(--item) * 100% / 4) 50%;background-repeat:no-repeat;filter:drop-shadow(0 2px 1px #0006)}
.orientiri-intro {max-width:1260px;margin:auto;grid-template-columns:1.4fr 1fr;align-items:stretch}
.orientiri-intro .intro-art {
  background:radial-gradient(ellipse at bottom,#b69c4b3b,transparent),linear-gradient(#14241988,#142419bb),url('/img/orientiri/stone.png') center/cover;
  border:1px solid #ad8d55;
  box-shadow:inset 0 0 50px #0009,0 10px 40px #0004;
}
.intro-art .hero-sprite{height:380px}
.intro-art .intro-cup{top:15px;color:#e5c174}
.orientiri-rules{font-size:13px;color:#554834;line-height:1.7}
.orientiri-forms{gap:16px}
.orientiri-heroes{max-width:1100px;margin:20px auto;gap:18px}
.hero-choice {
  background:radial-gradient(ellipse at 50% 35%,#d3bd7944,transparent 65%),linear-gradient(#293c2c,#13221c)!important;
  border:1px solid #9f8652!important;
  border-bottom:4px solid var(--hero-color)!important;
  border-top-width:1px!important;
  border-radius:13px!important;
  box-shadow:inset 0 0 0 4px #9b865322,0 10px 30px #0004!important;
  padding:18px 12px!important;
}
.hero-choice .hero-sprite{height:260px;width:100%;margin-bottom:15px}
.hero-choice strong{font-size:24px;color:#f3d393}
.hero-choice span{font-size:13px;color:#dfdfc3}
.hero-choice small{color:var(--hero-color)}
.hero-choice:disabled{opacity:.7}
.room-toolbar{max-width:1100px;margin:15px auto;padding:15px 20px;border:1px solid #736f47;background:#253425;border-radius:10px}
.room-code {color:#f6d897}
#orientiri-error{max-width:1300px;margin:14px auto}
.orientiri-finish{max-width:1250px;margin:0 auto 18px;background:linear-gradient(#39462c,#233422)}
.orientiri-nav a{font-size:13px}
@media(min-width:1000px) and (min-height:650px){
 .orientiri-active .orientiri-play{grid-template-columns:minmax(0,calc(100dvh - 235px)) 310px;justify-content:center}
 .orientiri-active .orientiri-page{padding-top:8px}
 .orientiri-active .orientiri-heading{min-height:72px;margin-bottom:10px}
}
@media(max-width:1000px){
 .orientiri-play{grid-template-columns:minmax(0,1fr) 280px}
 .orientiri-page{padding:14px}
 .orientiri-active .orientiri-heading{padding:0 130px}
 .orientiri-active .orientiri-nav{left:14px;right:14px}
 .orientiri-score{padding-left:12px}
 .score-portrait{opacity:.25;left:auto;right:0}
 .orientiri-score>span,.artifact-slots,.orientiri-score .health{position:relative}
}
@media(max-width:760px){
 .orientiri-play,.orientiri-intro{grid-template-columns:1fr}
 .orientiri-active .orientiri-heading{padding:45px 0 0}
 .orientiri-heading h1{font-size:36px}
 .orientiri-heading h1::before,.orientiri-heading h1::after{margin:0 7px}
 .orientiri-controls{position:static}
 .orientiri-active .app-header{display:none}
 .orientiri-heroes{gap:10px}
 .hero-choice .hero-sprite{height:220px}
 .hero-choice strong{font-size:19px}
 .orientiri-score{min-height:84px;padding-left:65px}
 .score-portrait{opacity:1;left:0;right:auto}
 .maze-wrap{border-width:5px}
 .orientiri-page .orientiri-panel p{font-size:15px}
 .intro-art .hero-sprite{height:240px}
}
.orientiri-score {min-width:0;min-height:102px;padding-left:45px}
.score-portrait{width:48px;height:90px}
.orientiri-score h3{font-size:13px;min-height:30px;line-height:1.2;overflow-wrap:anywhere}
.orientiri-score>span{font-size:11px;white-space:nowrap}
.orientiri-score .artifact-slots{margin-left:-34px;justify-content:flex-end}
.artifact-slots>span{flex:0 0 22px;width:22px;height:22px}
.orientiri-panel .room-code{color:#6c4e20}
/* Keep the host's four status cards readable beside a compact map. */
.orientiri-score{padding:10px 8px;min-height:102px}
.score-portrait{left:auto;right:-5px;opacity:.2}
.orientiri-score h3{font-size:12px;min-height:29px}
.orientiri-score>span{position:relative;font-size:10px}
.orientiri-score .artifact-slots{margin-left:0;justify-content:center;position:relative;gap:3px}
.artifact-slots>span{flex-basis:19px;width:19px;height:21px}
@media(min-width:1000px) and (min-height:650px){
 .orientiri-active .orientiri-play{grid-template-columns:minmax(0,calc(100dvh - 270px)) 310px}
}
