.peer-guidance { position: fixed; z-index: 10000; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); max-width: 620px; max-height: calc(100% - 32px); overflow: auto; overscroll-behavior: contain; touch-action: pan-y; box-sizing: border-box; margin: auto; padding: 16px 18px; background: #f8f5ea; color: #19393b; border: 2px solid #527b77; border-radius: 12px; box-shadow: 0 4px 24px #0005; font: 15px/1.45 system-ui, sans-serif; text-align: left; }
.peer-guidance * { box-sizing: border-box; }
.peer-guidance strong { display: block; font-size: 18px; line-height: 1.3; }
.peer-guidance p { margin: 8px 0; font: inherit; color: inherit; }
.peer-guidance details { margin: 8px 0; }
.peer-guidance summary { padding: 10px 0; min-height: 44px; cursor: pointer; font-weight: 650; }
.peer-guidance ol { padding-left: 22px; margin: 6px 0; }
.peer-guidance li { margin: 10px 0; padding: 0; }
.peer-guidance .peer-guidance-note { font-size: 13px; }
.peer-guidance button { display: block; width: 100%; padding: 10px 16px; min-height: 44px; border: 1px solid currentColor; border-radius: 6px; background: #19393b; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.peer-guidance :focus-visible { outline: 3px solid #1678c5; outline-offset: 2px; }
.peer-guidance [hidden] { display: none !important; }
/* Dogfight places this inside its rotated phone shell, keeping hit targets and
   instructions in the same orientation as the controller. */
.phone-shell > .peer-guidance { max-height: calc(100% - 24px); }
html[data-game="shells"] .peer-guidance { background: #111b30; color: #f1f4ff; border-color: #9fe370; }
html[data-game="shells"] .peer-guidance button { background: #9fe370; color: #101a24; }
@media (max-height: 430px) { .peer-guidance { padding: 10px 14px; font-size: 14px; } }
