/* Gargantua: a full-screen canvas under the site navbar, no footer and no page scroll (owner, 2026-11-17). */
body.gargantua-page { height: 100%; overflow: hidden; }
html:has(body.gargantua-page) { height: 100%; overflow: hidden; }
body.tool-page { display: flex; flex-direction: column; min-height: 100vh; }
body.tool-page > main { flex: 1 0 auto; width: 100%; }

/* Navbar floats over the simulation without its black bar (the collapsed phone menu keeps a backdrop) */
body.gargantua-page .header_area .main-menu .navbar { background-color: transparent; }
body.gargantua-page .header_area .main-menu .nav-link, body.gargantua-page .navbar-brand { text-shadow: 0 0 8px rgba(0, 0, 0, .9); }
@media (max-width: 991.98px) {
    body.gargantua-page .navbar-collapse.show, body.gargantua-page .navbar-collapse.collapsing { background: rgba(0, 0, 0, .85); border-radius: 10px; }
}

.tool.gargantua { position: relative; height: 100vh; min-height: 420px; background: #000; overflow: hidden; }
.tool #sim { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.tool #sim:active { cursor: grabbing; }
.tool .sim-hud { position: absolute; left: 1rem; bottom: 1rem; pointer-events: none; color: rgba(255, 255, 255, .6);
    font-size: 11.5px; letter-spacing: 1px; line-height: 1.7; text-shadow: 0 0 6px #000; }
.tool .sim-hud .sim-credit { font-size: 10px; letter-spacing: .5px; color: rgba(255, 255, 255, .38); }
.tool .sim-hud strong { color: #fff; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; }
.tool .sim-tip { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); max-width: min(560px, calc(100% - 2rem));
    margin: 0; padding: .6rem .9rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; background: rgba(0, 0, 0, .7);
    color: rgba(255, 255, 255, .8); font-size: 13px; line-height: 1.5; text-align: center; }
.tool .sim-tip[hidden] { display: none; }
.tool .sim-card { position: absolute; z-index: 5; left: 50%; top: 58%; transform: translateX(-50%); max-width: min(540px, calc(100% - 2rem));
    margin: 0; padding: 1rem 1.25rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; background: rgba(0, 0, 0, .72);
    color: rgba(255, 255, 255, .82); font-size: 14px; line-height: 1.6; text-align: center; pointer-events: none;
    opacity: 0; transition: opacity .8s ease; }
.tool .sim-card.show { opacity: 1; }
.tool .sim-card strong { display: block; margin-bottom: .35rem; color: #fff; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.tool .sim-card small { display: block; margin-top: .5rem; color: rgba(255, 255, 255, .5); font-size: 12px; }
.tool .sim-fail { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; color: rgba(255, 255, 255, .7); }
.tool .sim-fail[hidden] { display: none; }

/* Start screen and the sound button */
.tool .sim-start button, .tool .sim-mute { font: inherit; color: rgba(255, 255, 255, .75); background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; transition: box-shadow .2s, color .2s, background .2s; }
.tool .sim-start button:hover, .tool .sim-mute:hover { color: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, .35); }
.tool .sim-start button:focus-visible, .tool .sim-mute:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tool .sim-mute { position: absolute; z-index: 6; right: 1rem; bottom: 1rem; width: 38px; height: 38px; padding: 0;
    border-radius: 50%; font-size: 17px; line-height: 1; display: grid; place-items: center; }
.tool .sim-mute[hidden] { display: none; }
/* touch controls (phones / tablets): a row of round buttons left of the sound button */
.tool .sim-touch { position: absolute; z-index: 6; right: calc(1rem + 46px); bottom: 1rem; display: flex; gap: 8px; }
.tool .sim-touch[hidden], .tool .sim-touch button[hidden] { display: none; }
.tool .sim-touch button { width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 20px; line-height: 1; display: grid; place-items: center;
    color: rgba(255, 255, 255, .8); background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .25);
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tool .sim-touch button:active { background: rgba(255, 255, 255, .25); }
@media (pointer: coarse) { .tool .sim-mute { width: 46px; height: 46px; } .tool .sim-touch { right: calc(1rem + 54px); } }
/* phone width: smaller HUD text, the card higher (above the buttons) */
@media (max-width: 575.98px) {
    .tool .sim-hud { font-size: 10.5px; letter-spacing: .5px; right: 1rem; bottom: 4.5rem; }
    .tool .sim-card { top: 76px; font-size: 13px; padding: .8rem 1rem; max-width: calc(100% - 1.5rem); width: max-content; }
    .tool .sim-start h1 { font-size: 26px; letter-spacing: 6px; }
    .tool .sim-start p { font-size: 14px; }
}
.tool .sim-start { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, .45); }
.tool .sim-start[hidden] { display: none; }
.tool .sim-start-box { max-width: 560px; text-align: center; color: rgba(255, 255, 255, .8); text-shadow: 0 0 10px #000; }
.tool .sim-start h1 { margin: 0 0 .6rem; color: #fff; font-size: 34px; font-weight: 400; letter-spacing: 8px; text-transform: uppercase; }
.tool .sim-start p { margin: 0 0 1.4rem; font-size: 15px; line-height: 1.6; }
.tool .sim-start-go { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.tool .sim-start button { padding: .8rem 1.4rem; border-radius: 12px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.tool .sim-start .sim-how { display: inline-block; margin: 1.2rem .7rem 0; color: rgba(255, 255, 255, .6); font-size: 12px;
    letter-spacing: 2px; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.tool .sim-start .sim-how:hover { color: #fff; text-decoration: none; }
.tool .sim-start button small { display: block; margin-top: .25rem; font-size: 11px; letter-spacing: .5px; text-transform: none; color: rgba(255, 255, 255, .5); }
