/* The adventure and the explorer cards render the same accepted character skins. */
body[data-renderer="3d"] { background-color:#122d29; background-image:radial-gradient(ellipse at 65% 0,#375445 0,transparent 65%); }
body[data-renderer="3d"] .game-shell { border-color:#102923; }
body[data-renderer="3d"][data-mode="menu"] .game-stage { min-height:780px; }
body[data-renderer="3d"][data-mode="menu"] .game-stage>canvas { position:absolute;inset:0;object-fit:fill; }
body[data-renderer="3d"] .menu-screen { background:linear-gradient(90deg,#102c28f2 0,#16392ce8 43%,#17392e2e 78%); }
body[data-renderer="3d"] .menu-copy { width:min(580px,100%);padding:34px 42px; }
body[data-renderer="3d"] .menu-copy h1 { font-size:70px;letter-spacing:-3px;margin-bottom:18px; }
body[data-renderer="3d"] .menu-copy h2 { font-size:27px; }
body[data-renderer="3d"] .menu-copy .story { font-size:12px;line-height:1.6;max-width:440px;margin-bottom:17px; }
body[data-renderer="3d"] .chapter-choices { margin-bottom:20px; }
body[data-renderer="3d"] .character-choices { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
body[data-renderer="3d"] .character-choice { padding:9px 10px 12px;min-height:206px;gap:8px;background:#0e2c24bb; }
body[data-renderer="3d"] .character-choice .portrait { position:relative;display:block;align-self:stretch;width:100%;height:136px;border-radius:5px;overflow:hidden;background:#e6d9c3; }
.riverbound-character-preview { display:block;width:100%;height:100%;object-fit:fill; }
.preview-loading { position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#3c5949;font-size:10px;padding:8px;text-align:center; }
body[data-renderer="3d"] .character-copy strong { font-size:23px; }
body[data-renderer="3d"] .character-copy span { font-size:9px; }
body[data-renderer="3d"] .character-copy small { font-size:8px; }
body[data-renderer="3d"] .choice-check { top:18px;right:18px;color:#193c30;background:#f4d39d;border-radius:50%;width:19px;height:19px;display:grid;place-items:center; }
body[data-renderer="3d"] .explorer-detail { font-size:11px;min-height:30px;margin-top:12px; }
body[data-renderer="3d"] .setup-entry { margin:4px 0 8px; }
body[data-renderer="3d"] #appearance-status { font-size:9px;line-height:1.5;color:#b0c5b6; }
.riverbound-3d-status { margin:10px 0 12px;padding:10px 12px;border-left:2px solid #c6a36b;background:#102d26a6;display:flex;flex-direction:column;gap:5px; }
.riverbound-3d-status strong { font-size:10px;font-weight:600;color:#f0debc; }
.riverbound-3d-status span,.riverbound-3d-status p { font-size:9px;line-height:1.5;color:#bfd1bf;margin:0; }
.riverbound-3d-status[data-state="ready"] { background:transparent;border-color:#72a385;padding-block:4px; }
.riverbound-3d-status[data-state="error"] { border-color:#ebad88;background:#402f28e8; }
.riverbound-3d-status button { align-self:flex-start;min-height:44px;padding:8px 12px;margin-top:5px;border:1px solid #e2bc83;border-radius:4px;background:#e8bd7c;color:#203d2c;font-size:11px; }
.import-progress { margin:9px 0; }
.import-progress button { color:#e6c99a;font-size:10px;text-align:left;justify-content:flex-start;min-height:44px;padding:7px 0; }
.import-progress p { color:#b5c8b5;font-size:8px;line-height:1.5;margin:0; }
body[data-renderer="3d"] .start-actions { margin-top:14px; }
body[data-renderer="3d"] .character-hud>span { overflow:hidden;border-radius:50%;background:#e8dcc3; }
body[data-renderer="3d"] .character-hud img { width:100%;height:100%;object-fit:cover;display:block; }
.explorer-monogram { height:100%;display:grid;place-items:center;font-family:Georgia,serif;font-size:22px;color:#173b2f; }
body[data-renderer="3d"] #world { outline-offset:-4px; }
@media(max-width:700px) { body[data-renderer="3d"] .menu-copy { padding:28px; } body[data-renderer="3d"] .menu-copy h1 { font-size:60px; } }
@media(max-width:599px) and (orientation:portrait) {
  body[data-renderer="3d"][data-mode="menu"] .game-stage { min-height:850px; }
  body[data-renderer="3d"] .menu-screen { background:linear-gradient(180deg,#153a2a45,#13372ef2 22%,#102f29f7);align-items:flex-end; }
  body[data-renderer="3d"] .menu-copy { padding:27px 19px; }
  body[data-renderer="3d"] .menu-copy h1 { font-size:48px;letter-spacing:-2px;margin-bottom:15px; }
  body[data-renderer="3d"] .menu-copy h2 { font-size:23px; }
  body[data-renderer="3d"] .menu-copy .story { font-size:11px;margin-bottom:15px; }
  body[data-renderer="3d"] .chapter-choices { margin-bottom:18px; }
  body[data-renderer="3d"] .character-choices { grid-template-columns:repeat(2,minmax(0,1fr));gap:9px; }
  body[data-renderer="3d"] .character-choice { min-height:201px;padding:7px 8px 11px; }
  body[data-renderer="3d"] .character-choice .portrait { height:132px;width:100%; }
  body[data-renderer="3d"] .character-copy strong { font-size:21px; }
  body[data-renderer="3d"] .character-copy small { font-size:7px; }
  body[data-renderer="3d"] .explorer-detail { font-size:10px;min-height:32px; }
  body[data-renderer="3d"] .menu-footnote { font-size:7px; }
  body[data-renderer="3d"] .riverbound-3d-status { margin-block:8px; }
  body[data-renderer="3d"] .riverbound-3d-status span { font-size:8px; }
}
@media(orientation:landscape) and (max-height:600px) {
  body[data-renderer="3d"][data-mode="menu"] .game-stage { min-height:0;height:calc(100svh - 79px);overflow:auto; }
  body[data-renderer="3d"] .menu-screen { position:relative;inset:auto;min-height:690px;margin:0;background:linear-gradient(90deg,#12352bf2,#16372dd9 65%,#16372d55); }
  body[data-renderer="3d"] .menu-copy { width:540px;max-width:100%;padding:23px 28px; }
  body[data-renderer="3d"] .menu-copy h1 { font-size:45px;margin-bottom:13px; }
  body[data-renderer="3d"] .menu-copy h2 { font-size:22px; }
  body[data-renderer="3d"] .character-choice { min-height:185px; }
  body[data-renderer="3d"] .character-choice .portrait { height:116px; }
  body[data-renderer="3d"] .menu-footnote { display:none; }
}

body[data-renderer="3d"] .interact-prompt { max-width:calc(100% - 24px);white-space:normal;line-height:1.4;text-align:center; }

body[data-renderer="3d"][data-graphics="error"] #world, body[data-renderer="3d"][data-graphics="error"] .riverbound-character-preview { visibility:hidden; }
