/* Shared finishes. The combat and mobile styles continue to own all HUD geometry. */
:root {
  --pine: #183629;
  --pine-deep: #11291f;
  --moss: #476a32;
  --sun: #ffda7a;
  --limestone: #f4f0d9;
  --edge: #9cae85;
  --bevel: inset 0 2px #ffffff40, inset 0 -3px #16291d55;
}
#intro {
  background: linear-gradient(135deg, #102b23c9, #172a20d6);
  padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
}
#intro .introPanel {
  display: grid; grid-template-columns: 1fr 1.18fr; width: min(820px,100%);
  max-width: none; max-height: 100%; overflow: auto; padding: 0; text-align: left;
  border: 2px solid var(--edge); border-radius: 6px; background: var(--pine);
  box-shadow: 0 7px var(--pine-deep), 0 18px 55px #07170fa8;
}
.introScene {
  grid-column: 2; grid-row: 1;
  background: #6f9654 url('assets/adventure-forest.png') 58% center / cover no-repeat;
  border-left: 3px solid #526e44;
}
.introContent {grid-area: 1 / 1; padding: clamp(20px,4vw,48px); align-self: center;}
.introIcon,.brandIcon {object-fit: cover; image-rendering: pixelated; border-radius: 4px;}
.introIcon {display: block; box-shadow: 0 3px var(--pine-deep);}
#intro h1 {margin: 20px 0 28px; font-size: clamp(38px,5vw,66px); line-height: 1.17; letter-spacing: .025em; color: #fff7de; text-shadow: 0 4px #0c2118;}
#intro h1 span {color: var(--sun);}
#intro #start {min-width: 0; width: 100%; min-height: 50px; padding: 8px 16px;}
#intro #continueNote:not(:empty) {margin: 12px 0 0; color: var(--limestone);}
#intro #continueNote:empty {display: none;}
.brand, .stats, .quest, #encounterHUD, #sideTracker {background: #19382fee; border-color: var(--edge); border-radius: 4px;}
.quest {border-left-color: var(--sun);}
.panel:not(.inventoryPanel), .questionCard {background: #ecebd8; border-color: var(--edge); border-radius: 5px; color: var(--pine-deep);}
.panel h2, .questionCard h2 {color: var(--pine);}
.panel .primary, #intro #start, .autoRun, .questionCard #answers button:not(.correct):not(.wrong) {
  background: var(--moss); color: #fff9df; border: 2px solid #adbf83; border-radius: 4px;
  box-shadow: var(--bevel), 0 3px var(--pine-deep); font-weight: 800;
}
.panel .secondary, .phoneMenu button, #encounterHUD button, #leaveQuestion {
  background: #dbe1ca; color: var(--pine-deep); border-color: #819174; border-radius: 4px;
  box-shadow: var(--bevel);
}
.sideQuests>div, .adventureStages .stageCard {border-radius: 4px; border-color: var(--edge);}
button:focus-visible {outline: 3px solid #ffcf61; outline-offset: 2px;}
@media (max-width: 560px) and (orientation: portrait) {
  #intro .introPanel {max-width: 380px; grid-template-columns: 1fr;}
  .introScene {grid-area: 1 / 1; min-height: min(24dvh,160px); border: 0; border-bottom: 3px solid #526e44;}
  .introContent {grid-area: 2 / 1; padding: 18px 24px 23px;}
  .introIcon {width: 44px; height: 44px; float: right;}
  #intro h1 {margin: 0 0 17px;}
}
@media (max-height: 500px) and (orientation: landscape) {
  .introContent {padding: 13px 20px;}
  .introIcon {width: 36px; height: 36px;}
  #intro h1 {font-size: 34px; margin: 9px 0 14px;}
}
