// ── Fluid root rem: 1rem scales with viewport ───────────────────────────── // All sidebar/h2/font sizes downstream are in rem, so redefining root // font-size against `vmin` (smaller of vh/vw) gives us a single sliding // scale that's invariant under phone rotation: rotating swaps width/height // but vmin stays the same → 1rem stays the same → navbar/footer/h2 hold // their size. Floor 14px on cramped viewports, ceiling 22px on huge ones. // 2.4vmin hits 16px (browser default) at vmin=667 (iPhone SE landscape). html { font-size: clamp(14px, 2.4vmin, 22px); // Aperture foundation — locks the document viewport so content lives // between/behind the fixed navbar + footer sidebars instead of leaking // into a page-level scroll. Was opt-in per-page via body.page-X classes // (duplicated 5× across SCSS files); now universal. Pages that need a // narrower override (e.g. body.page-gameboard .container { overflow: // clip; }) live in their per-page SCSS. overflow: hidden; } // Layout custom properties — single source of truth for the landscape // sidebar width (navbar/footer) + the rotated-h2 column slot to the right // of the navbar. Container margin-left in landscape adds these so applets // can't bleed under the wordmark. :root { --sidebar-w: 5rem; --h2-col-w: 3rem; } body { display: flex; flex-direction: column; background-color: rgba(var(--priUser), 1); color: rgba(var(--secUser), 1); font-family: Georgia, serif; height: 100vh; overflow: hidden; a { text-decoration: none; font-weight: 700; color: rgba(var(--terUser), 1); &:hover { color: rgba(var(--ninUser), 1); text-shadow: 0 0 0.5rem rgba(var(--terUser), 1); } } .container { max-width: 960px; width: 100%; margin: 0 auto; // padding: 0 1rem; flex: 1; // Aperture container — flex-column so navbar + h2 row + page content // stack vertically, min-height: 0 + overflow: hidden contain the // content within the aperture so applet borders / titles can't // leak past the navbar / footer sidebars at narrow viewports. display: flex; flex-direction: column; min-height: 0; overflow: hidden; .navbar { padding: 0.75rem 0; border-bottom: 0.1rem solid rgba(var(--secUser), 0.4); .navbar-brand { margin-left: 1rem; h1 { font-size: 2rem; } } .container-fluid { display: flex; align-items: center; gap: 1rem; margin-right: 0.5rem; .navbar-user { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 0.25rem; .navbar-text { flex: none; } // prevent expansion; BYE abuts the spans > form { flex-shrink: 0; order: -1; } // BYE left of spans } > #id_cont_game, > #id_navbar_gate_view_btn { flex-shrink: 0; } } .navbar-text, .navbar-link { flex: 1; min-width: 0; text-align: center; .navbar-label { display: block; color: rgba(var(--secUser), 0.7); font-size: 0.75rem; } .navbar-identity { display: block; color: rgba(var(--quaUser), 1); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } } .input-group { position: fixed; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.25rem; z-index: 50; // Match .sky-field label — small, gold, uppercase, tracked. label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(var(--quaUser), 0.8); } .form-control { width: 24rem; text-align: center; } } .form-control { background-color: rgba(var(--priUser), 1); color: rgba(var(--secUser), 1); border: 0.1rem solid rgba(var(--secUser), 0.5); --_pad-v: 0.5rem; padding: var(--_pad-v) 0.75rem; border-radius: calc((var(--_pad-v) * 2 + 1em) / 3); width: 100%; font-family: inherit; &.is-invalid { border-color: rgba(var(--priRd), 1); } &.form-control-lg { --_pad-v: 0.75rem; padding: var(--_pad-v) 1rem; // 1.125rem at rem=14 (small portrait clamp floor) is 15.75px // — just under iOS Safari's 16px auto-zoom threshold. Floor // at 16px to prevent the focus-zoom; native CSS max() handles // the unit mix Sass can't reconcile at compile time. font-size: unquote("max(16px, 1.125rem)"); } &.is-invalid ~ .invalid-feedback { display: block; } &:focus { border-color: rgba(var(--terUser), 0.75); box-shadow: 0 0 0.75rem rgba(var(--terUser), 0.5); } } .invalid-feedback { display: none; color: rgba(var(--priRd), 1); font-size: 0.875rem; margin-top: 0.25rem; } // The post composer wraps its input + OK btn in `.composer-row`, so the // `.form-control.is-invalid` input is no longer a general SIBLING of its // `.invalid-feedback` (they live in different parents) — the // `&.is-invalid ~ .invalid-feedback` reveal above silently stops // matching, so the error renders in the DOM but stays display:none and // the user never sees post-line validation. Reveal via :has() on the row. .composer-row:has(.form-control.is-invalid) ~ .invalid-feedback { display: block; } .alert { padding: 0.75rem 1rem; margin: 0.75rem; border-radius: 0.5rem; border: 0.1rem solid rgba(var(--priYl), 0.5); color: rgba(var(--priYl), 1); &.alert-success { border-color: rgba(var(--priGn), 0.5); color: rgba(var(--priGn), 1); } &.alert-warning { border-color: rgba(var(--priOr), 0.5); color: rgba(var(--priOr), 1); } } .row { padding: 2rem 0; // Aperture: the h2-row mustn't shrink when the page-content // child fills the remaining vertical space. Universal — was // duplicated in every body.page-X { .row { flex-shrink: 0 } }. flex-shrink: 0; .col-md-12 { width: 100%; justify-content: center; } .col-lg-6 { max-width: inherit; margin: 0 1rem; // Two-span title: BILLPOST. First // word (always 4 letters: BILL/DASH/GAME/etc.) gets 45% of // the title width; the variable second word fills the // remaining 55%. Letters within each span spread via // text-align: justify + text-justify: inter-character. The // first-span colour shifts to --quaUser so the two-tone // heading reads "Bill | Post" / "Dash | Sky". h2 { display: flex; font-size: 3rem; color: rgba(var(--secUser), 0.75); margin-bottom: 1rem; text-transform: uppercase; text-shadow: var(--title-shadow-offset) var(--title-shadow-offset) 0 rgba(0, 0, 0, 0.8) ; // Each word-span hosts per-letter s injected by the // h2-letter-split script in base.html — display: flex + // justify-content: space-between distributes those letters // across the slot's width (or height in landscape's // writing-mode: vertical-rl). text-justify: inter-character // would do the same in pure CSS, but iOS Safari + Firefox // silently fall back to inter-word for Latin scripts, which // can't split a single word — letters end up clustered at // the slot's start with empty space trailing. The flex // approach works everywhere. > span { display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; } // Padding-inline (logical) creates the natural visual gap // between the two words at the 45/55 boundary — works for // both portrait (horizontal) AND the landscape rotated // wordmark (vertical-rl writing mode). > span:first-child { flex: 0 0 45%; padding-inline-end: 0.4em; color: rgba(var(--quaUser), 0.75); } > span:last-child { flex: 0 0 55%; padding-inline-start: 0.4em; } // Sprint A.7.5-polish-7 — 3-letter suffix special case // (SKY / SEA / KIT). Default `space-between` parks the // first + last letter at the slot edges + leaves a yawning // gap mid-span ("S E A"). `space-around` puts // equal padding on both sides of each letter so the trio // sits more tightly clustered inside the slot. Data attr // `data-letters` injected by `base.html`'s splitter script // — length-keyed so future special cases (e.g. 2-letter // for a hypothetical AP / WR title) bolt in via the same // selector pattern. > span[data-letters="3"] { justify-content: space-around; } // ── GAME ROOM ⇄ GAME SCROLL title reel ───────────────── // The second word becomes a two-word vertical reel inside // the 55% title slot. The base word (ROOM) rests in view; // SCROLL is parked one notch below, in the slot's bottom // fade. room-scroll.js toggles `.is-scroll` on this

// when the table-hex aperture snaps to the provenance feed: // ROOM slides up & out under the navbar line while SCROLL // rises out of the bottom gradient — one reel, both words // travelling up. Reverses on scroll-up. // // The slide axis is vertical in BOTH orientations: portrait // the word is a short horizontal row; landscape (writing- // mode: vertical-rl, inherited from the rotated wordmark) // the word is a tall letter-column, so the same translateY // slides it ALONG the wordmark — the user-chosen landscape // behaviour falls out for free. > span.gr-swap { // (0,4,3) ties > span:last-child; later source order wins // Motion knobs — TWEAK here. The reel doesn't run on a // single cubic-bezier any more: a bezier is one curve // with two control points, so it can overshoot at most // ONCE and can't oscillate. To make the word feel old & // rusty — stall against the grime, jerk free, then clunk // past its mark and wobble into place — `--gr-ease` is a // CSS linear() easing: a piecewise list of ` // ` stops, where output > 1 overshoots. // The phases of the curve below, by stop: // 0 → 0.02 15% .......... rusty grip, barely budges // 0.16 25% → 0.8 56% .... breaks free, jerks across // 1.05 65% → 1.12 71% ... clunks PAST the mark // 0.965 78% → 1.05 84% // → 0.99 89% → 1.015 95% → 1 .. damped end-wobble // CRITICAL: keep NO inline `//` comments INSIDE the // linear() value — libsass leaves them in the custom- // property output, which invalidates the whole // `transition` (it falls back to 0s/ease). Annotate // ABOVE the declaration only. (Firefox 112+ / 151 here.) --gr-ease: linear( 0, 0.015 7%, 0.02 25%, 0.16 25%, 0.46 41%, 0.8 56%, 1.15 65%, 1.12 71%, 0.935 78%, 1.05 84%, 0.99 89%, 1.015 95%, 1 ); --gr-dur: 0.95s; // heavier/slower so the stutter + wobble read --gr-fade: 16%; // top/bottom dissolve depth position: relative; overflow: hidden; padding: 0; // reset :last-child's padding-inline-start (re-applied on .gr-word) // Symmetric top/bottom fade so the words dissolve into // the navbar line (top) + the page aperture (bottom). // Symmetric → rotation-invariant under landscape's // rotate(180deg). mask-image: linear-gradient(to bottom, transparent 0, #000 var(--gr-fade), #000 calc(100% - var(--gr-fade)), transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--gr-fade), #000 calc(100% - var(--gr-fade)), transparent 100%); } .gr-word { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding-inline-start: 0.4em; // match > span:last-child word gap transition: transform var(--gr-dur, 0.55s) var(--gr-ease, ease); will-change: transform; // 3-letter base word (e.g. my_sea's SEA) clusters like // the top-level 3-letter suffixes instead of parking at // the slot edges. &[data-letters="3"] { justify-content: space-around; } } // ROOM rests in view at the hex; every view word (SCROLL is // the default) parks one notch below in the bottom fade. .gr-word--base { transform: translateY(0); } // resting in view .gr-word--scroll, .gr-word--atlas, .gr-word--post, .gr-word--chat, .gr-word--pulse { transform: translateY(100%); } // parked below the slot // Scrolled to the views pane (room-scroll.js adds `.is-scroll`) // → ROOM slides up & out and the ACTIVE view's word rises in. // The active view is carried by `data-active-view` on the h2 // (room-views.js, the horizontal carousel axis); before JS // sets it, SCROLL (the landing view) shows. &.is-scroll { .gr-word--base { transform: translateY(-100%); } // up & out the top &:not([data-active-view]) .gr-word--scroll, &[data-active-view="scroll"] .gr-word--scroll, &[data-active-view="atlas"] .gr-word--atlas, &[data-active-view="post"] .gr-word--post, &[data-active-view="chat"] .gr-word--chat, &[data-active-view="pulse"] .gr-word--pulse { transform: translateY(0); } } } } } } } @media (min-width: 1200px) { body .container { max-width: 1200px; } } @media (orientation: landscape) { // ── Sidebar layout: navbar ← left, footer → right ──────────────────────────── body { flex-direction: row; } // Navbar → fixed left sidebar (width derives from --sidebar-w which is // fluid via the rem-redefine above; no per-breakpoint width jumps). body .container .navbar { position: fixed; left: 0; top: 0; height: 100vh; width: var(--sidebar-w); padding: 0.5rem 0; border-bottom: none; border-right: 0.1rem solid rgba(var(--secUser), 0.4); background-color: rgba(var(--priUser), 1); z-index: 100; overflow: hidden; .container-fluid { flex-direction: column; height: 100%; max-height: 700px; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 0.25rem; margin: 0; // reset portrait margin-right: 0.5rem so container fills full sidebar width > #id_cont_game, > #id_navbar_gate_view_btn { flex-shrink: 0; order: -1; } // cont-game / GATE VIEW above brand .navbar-user { flex-direction: column; align-items: center; gap: 0.25rem; .navbar-text { margin: 0; } // cancel landscape margin:auto so BYE abuts > form { order: 0; .btn { margin-top: 0; } } // abut spans } } .navbar-brand h1 { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.2rem; line-height: 1.2; white-space: nowrap; // margin-right: 3.25rem; } .navbar-brand { order: 1; // brand at bottom width: 100%; margin-left: 0; // reset portrait margin-left: 1rem display: flex; justify-content: center; } .navbar-link { display: none; } .navbar-text { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.65rem; white-space: nowrap; margin: auto 0; .navbar-label { opacity: 0.7; } } // .btn-primary { // width: 4rem; // height: 4rem; // font-size: 0.875rem; // border-width: 0.21rem; // } // Login form: offset from fixed sidebars in landscape .input-group { left: var(--sidebar-w); right: var(--sidebar-w); .navbar-text { writing-mode: horizontal-tb; transform: none; font-size: 0.75rem; white-space: normal; margin: 0 0 0.25rem; text-align: center; } } } // Container: fill center, compensate for fixed sidebars on both sides // AND for the rotated-h2 column on the left (so applets can't bleed // under the wordmark — true aperture clipping). // max-width: none overrides the @media (min-width: 1200px) rule above // so the container fills all available space between the sidebars. body .container { flex: 1; min-width: 0; max-width: none; margin-left: calc(var(--sidebar-w) + var(--h2-col-w)); margin-right: var(--sidebar-w); padding: 0 0.5rem; } // Header row: h2 rotates into the dedicated --h2-col-w slot just right // of the navbar. position:fixed takes h2 out of flow; .row collapses // to zero height automatically. Resets portrait flex so the rotated // wordmark renders as one continuous title (not split 45/55 here). body .container .row { padding: 0; margin: 0; } body .container .row .col-lg-6 h2 { position: fixed; left: var(--sidebar-w); width: var(--h2-col-w); top: 50%; height: 80vh; // explicit height so the flex 45/55 % basis resolves transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; // inline axis becomes top-to-bottom; flex stacks on it // Per-letter flex spread (justify-content: space-between on each word // span) fills the slot regardless of font-size, so we only need to // cap font-size by vh so each letter glyph stays smaller than slot / // letter-count. Worst case: HOWDY STRANGER (8ch second word) in 55% // of 80vh on a 375-tall iPhone SE landscape → 165px slot ÷ 8 ≈ 20px // max glyph height; clamp's 4.4vh + 1.2rem floor gives 16.5–16.8px // at that viewport, well under 20. font-size: clamp(1.2rem, 4.4vh, 2.75rem); margin: 0; z-index: 85; pointer-events: none; // Inherits display: flex + the per-span flex 45/55 + padding-inline // boundary from the portrait base. With writing-mode: vertical-rl the // flex axis runs vertically, so first-span (BILL) takes 45% of the // height (becomes bottom 45% after rotate(180deg)) and second-span // (POST) takes the upper 55%. padding-inline-end resolves to the // bottom edge of the first span — natural break between words. } // Title reel in landscape — the rotated wordmark is a tall letter-column // that fills the gutter slot, so `space-between` parks the first/last // letter at the very slot edges. Inset the letters (padding-inline = the // vertical axis in writing-mode: vertical-rl) and use a shallower fade so // the dissolve lives in those margins instead of dimming resting letters. // translateY still slides the full slot length ALONG the wordmark. body .container .row .col-lg-6 h2 > span.gr-swap { --gr-fade: 7%; } body .container .row .col-lg-6 h2 .gr-word { padding-inline: 7%; // top+bottom inset (vertical-rl) — supersedes the 0.4em start gap } // Footer → fixed right sidebar (mirrors navbar approach — explicit right boundary) // Use body #id_footer (specificity 0,1,0,1) to beat base #id_footer (0,1,0,0) // which compiles later in the output and would otherwise override height: 100vh. body #id_footer { position: fixed; right: 0; top: 0; width: var(--sidebar-w); height: 100vh; flex-direction: column; justify-content: center; align-items: center; border-top: none; border-left: 0.1rem solid rgba(var(--secUser), 0.3); background-color: rgba(var(--priUser), 1); // opaque: masks tray sliding behind it padding: 1rem 0; gap: 0; z-index: 100; #id_footer_nav { flex-direction: column-reverse; width: auto; max-width: none; gap: 1.5rem !important; margin-bottom: 4rem; a { font-size: 1.75rem; display: flex; justify-content: center; align-items: center; } } // ©2026 Dis Co. — single-line vertical strip at the right edge of // the right sidebar (= the very right edge of the viewport in // landscape). Reads bottom-to-top via writing-mode: vertical-rl + // rotate(180deg) — same pattern as the navbar's rotated brand // wordmark. Tucks into the empty 0.875rem gutter between the // viewport edge and the centred icon/btn column, no overlap. .footer-container { position: absolute; right: 0.125rem; top: auto; line-height: 1 !important; color: rgba(var(--secUser), 1); writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; br { display: none; } small { font-size: 0.75rem !important; } } } } // Footer typography refinements that only kick in once the viewport is // wide enough to clear the cramped phone-landscape regime. Sidebar // dimensions themselves are now fluid via rem and don't need a per- // breakpoint width override (the old ≥1800px doubling block is gone). @media (orientation: landscape) and (min-width: 700px) { body #id_footer { #id_footer_nav { gap: 3rem !important; a { font-size: 1.75rem; display: flex; justify-content: center; align-items: center; } } .footer-container { line-height: 1; // margin-top vestige of the absolute-top-anchored layout — // dropped now that the rotated text is bottom-anchored. small { font-size: 1rem; } } } } @media (orientation: portrait) and (max-width: 500px) { body .container { .navbar { padding: 0 0 0.25rem 0; .navbar-brand h1 { font-size: 1.2rem; } } // Per-letter flex spread fills each 45/55 slot regardless of font-size, // so we just need to cap the glyph size by viewport width to keep the // worst-case title (HOWDY STRANGER, 8ch second word) from clipping at // tiny mobile widths. clamp picks max(1.3rem, 5vw) capped at 2rem — // at 320w → 18.2px, 390w → 19.5px, 430w → 21.5px. // padding-inline boundary bumped from 0.4em → 0.6em (each side) so the // last letter of word 1 (H) and first letter of word 2 (B) don't run // together at the cramped portrait font-size. .row .col-lg-6 h2 { margin: 0; font-size: clamp(1.3rem, 5vw, 2rem); > span:first-child { padding-inline-end: 0.6em; } > span:last-child { padding-inline-start: 0.6em; } } } } #id_footer { flex-shrink: 0; height: 6rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; padding: 1rem 1rem; border-top: 0.1rem solid rgba(var(--secUser), 0.3); // background: linear-gradient( // to top, // rgba(var(--priUser), 1) 25%, // transparent 100% // ); #id_footer_nav { display: flex; justify-content: space-evenly; width: 80%; max-width: 500px; a { font-size: 1.75rem; color: rgba(var(--secUser), 0.6); text-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.25), ; &.active { color: rgba(var(--quaUser), 1); text-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5), ; } &:hover { color: rgba(var(--quaUser), 1); text-shadow: 0 0 1rem rgba(0, 0, 0, 0.25), 0 0 0.5rem rgba(var(--ninUser), 0.25) ; } } } .footer-container { br { display: none; } small { font-size: 0.75rem; opacity: 1; } } } .forthcoming { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; font-style: italic; opacity: 0.6; } // Ordinal superscript: 21st, 2nd, 3rd etc. — matches .tt-ord but globally available. .ord { font-size: 0.6em; vertical-align: 0.25em; line-height: 0; margin-left: -0.1em; letter-spacing: 0; } #id_guard_portal { display: none; position: fixed; z-index: 10000; padding: 0.75rem 1rem; border-radius: 0.5rem; background-color: rgba(var(--tooltip-bg), 0.75); backdrop-filter: blur(6px); border: 0.1rem solid rgba(var(--secUser), 0.4); box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.4); &.active { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; } .guard-message { font-size: 0.85rem; color: rgba(var(--secUser), 0.9); text-align: center; white-space: nowrap; } .guard-actions { display: flex; gap: 0.5rem; } } .card-ref { color: rgba(var(--terUser), 1) !important; font-weight: 600 !important; }