/* Tablet layout: retain the phone composition below 760px. Portrait tablets
   have a centred stage; landscape browsers use two balanced columns. */
@media (min-width:760px) {
 .game-shell.welcome {max-width:1400px;padding:0}
 .title-screen>.topbar .version {display:none}
 .title-screen {height:var(--view-height);min-height:760px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:80px 1fr 1fr;padding:0 40px 32px;gap:0 24px}
 .title-screen .party-art {align-self:center;min-height:0;height:min(560px,66vh);width:100%;margin:0}
 .title-screen .party-art .party-left {left:0;width:48%;height:64%;bottom:34%}
 .title-screen .party-art .party-right {right:0;width:48%;height:64%;bottom:31%}
 .title-screen .party-art .party-front {left:5%;width:59%;height:68%;bottom:0}
 .title-screen .party-art .party-priest {right:3%;width:57%;height:66%;bottom:0}
 .title-screen .game-logo {padding:0;align-self:end;min-width:0}
 .title-screen .game-logo h1 img {width:min(380px,100%)}
 .title-screen .title-actions {width:380px;max-width:100%;margin:24px auto 0;align-self:start}
 .title-screen .title-login {font-size:14px;min-height:48px}
 .title-screen .adventure-caption {font-size:13px}
 .title-screen .footer a {font-size:12px;min-height:44px}
 .title-screen .footer small {font-size:10px}
 .modal-layer .auth-panel {max-height:100%;overflow-y:auto}

 /* Keep controls on a consistent inset and give translated rail labels room. */
 .camp-world {--tablet-edge:24px}
 .camp-world .camp-hud {inset:calc(18px + var(--v4-safe-top)) var(--tablet-edge) auto;height:60px}
 .camp-world .camp-player {width:60px;height:60px;min-width:60px}
 .camp-world .camp-who {height:46px;padding-right:20px}
 .camp-world .camp-who b {font-size:16px;max-width:200px}
 .camp-world .camp-who small {font-size:12px}
 .camp-world .camp-objective {left:var(--tablet-edge);top:calc(96px + var(--v4-safe-top));width:250px;max-width:250px;min-height:58px}
 .camp-world .camp-checkin {left:var(--tablet-edge);top:calc(166px + var(--v4-safe-top));min-height:44px}
 .camp-world .camp-minimap {right:var(--tablet-edge);top:calc(92px + var(--v4-safe-top));width:106px;height:106px}
 .camp-world .camp-social {right:var(--tablet-edge);top:calc(216px + var(--v4-safe-top));gap:16px;width:106px;align-items:center}
 .camp-world .camp-social button {width:60px;height:60px}
 .camp-world .camp-social button span {width:max-content;min-width:68px;max-width:112px;white-space:normal;overflow-wrap:normal;word-break:normal;line-height:1.2;font-size:12px;padding:2px 6px;bottom:-8px}
 .camp-world .camp-social button svg,.camp-world .camp-social button img {width:36px;height:36px}
 .camp-world .camp-controls {left:0;right:0;bottom:calc(156px + var(--v4-safe-bottom));padding-inline:var(--tablet-edge)}
 .camp-world .camp-action {width:66px;height:66px}
 .camp-world .camp-action span {bottom:-24px;min-width:96px;font-size:12px;line-height:1.2}
 .camp-world .camp-dock {left:50%;right:auto;transform:translateX(-50%);width:min(680px,calc(100% - 48px));max-width:none;height:calc(90px + var(--v4-safe-bottom));padding:10px 18px calc(8px + var(--v4-safe-bottom));gap:12px}
 .camp-world .camp-dock button {max-width:none;font-size:14px}
 .camp-world .camp-dock button span {font-size:14px}
 .camp-world .camp-chat {left:50%;right:auto;transform:translateX(-50%);width:min(640px,calc(100% - 96px));max-width:none;bottom:calc(112px + var(--v4-safe-bottom));height:34px}
 .camp-dialog {width:min(560px,100%)}
}

@media (min-width:760px) and (orientation:portrait) {
 .title-screen {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:64px auto minmax(280px,1fr) auto;gap:14px;padding:0 32px calc(24px + var(--v4-safe-bottom));min-height:940px}
 .title-screen>.topbar {grid-column:1;grid-row:1;height:64px}
 .title-screen .game-logo {grid-column:1;grid-row:2;align-self:center}
 .title-screen .game-logo h1 img {width:clamp(300px,38vw,390px)}
 .title-screen .game-logo p {margin:4px 0 0;font-size:16px}
 .title-screen .party-art {grid-column:1;grid-row:3;justify-self:center;align-self:stretch;width:min(620px,90%);height:100%;max-height:590px;min-height:0}
 .title-screen .title-actions {grid-column:1;grid-row:4;align-self:end;margin:0 auto;width:400px}
 .title-screen .adventure-caption {margin-bottom:10px}

 /* One coherent hero stage and a centred action card, instead of desktop
    columns sitting in the upper half of a tall iPad. Expanded details scroll. */
 .game-shell:is(.characters,.create) {max-width:100%;padding:0}
 :is(.characters,.create) .adventure-screen {min-height:calc(var(--view-height) - 80px);display:flex;flex-direction:column;justify-content:space-between;gap:16px;padding:0 32px calc(24px + var(--v4-safe-bottom))}
 :is(.characters,.create) .page-heading {width:min(760px,100%);margin:0 auto;padding:8px 0}
 :is(.characters,.create) .selection-stage {width:min(700px,100%);height:clamp(380px,calc(var(--view-height) - 460px),740px);min-height:380px;max-height:none;align-self:center;margin:0}
 :is(.characters,.create) .selection-stage .hero-stage {inset:0 40px 88px}
 :is(.characters,.create) .class-plaque {left:0;right:0;bottom:0}
 :is(.characters,.create) .bottom-panel {width:min(600px,100%);margin:0 auto;align-self:center;padding:24px 30px}
 .create .selection-stage {height:clamp(340px,calc(var(--view-height) - 550px),650px);min-height:340px}
 :is(.characters,.create) .class-rail {left:0;top:25px;gap:12px}
 :is(.characters,.create) .gender-row {right:0;top:25px}
 body:is([data-screen=create],[data-screen=characters]) .sky {background-size:auto,auto 120%;background-position:center,center 65%}
}
