/* =========================================================
   Tibiarok — the downloads page: the device stage and the platform panel
   ---------------------------------------------------------
   Loaded by downloads/index.html and en/downloads/index.html after css/site.css and css/pages.css; js/downloads-stage.js
   builds the stage (README, "The downloads page"). Owner, 2026-11-20: the devices pop up behind the panel, the panel at
   the bottom lists the platforms. Owner, 2026-11-22: a dark stage ("the light colored background didnt felt as good as i
   thought ... the light radius degrade behind the images already made them visually good"), and the platform's name in
   the navbar's middle, not behind the device.
   - The page's night is one layer fixed to the window (owner, 2026-11-23: "the background could be fixed and move along the
     page scroll, this way we don't see where gradient ends"): the site's navy with a lighter middle, a fine grain against
     banding, the dark at the window's edges. The stage on it: a warm light behind the device, a ring of runes in old gold,
     sparks rising in the light; they scroll with the device.
   - One column (owner, 2026-11-23: the panels below "are shorter than the download"): the panel, the install steps and the
     footer share its edges at every size.
   - The chosen platform's name stands in the navbar's middle in the site's gold (.dl-navname), as the page's title.
   - The panel is the site's .tr-panel as navy glass: the device's foot stands behind it, blurred through it.
   - Nothing that takes the focus moves (the site's gold cursor follows the focus by anchor positioning, which ignores
     transforms): the tabs never scale or shift; the devices, the ring, the name and the tab's gold bar are decoration.
   Every size and colour here is a default to tune (2026-11-20, 2026-11-22).
   ========================================================= */

@font-face {
    font-family: 'Almendra';
    src: url('fonts/almendra-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

.dl-page {
    --dl-display: 'Almendra', Georgia, serif;
    --dl-night: #081929;                /* the site's navy, where the stage ends */
    --dl-dusk: #12314c;                 /* the stage's lighter middle */
    --dl-gold: 222, 168, 76;            /* the stage's own lines, as an rgb triple */
    --dl-nav-h: 108px;                  /* the navbar band; js/downloads-stage.js measures it */
    --dl-dock-h: 260px;                 /* the panel and its margin; measured too */
}
@media (max-width: 991.98px) { .dl-page { --dl-nav-h: 96px; --dl-dock-h: 300px; } }
@media (max-width: 575.98px) { .dl-page { --dl-nav-h: 86px; --dl-dock-h: 330px; } }

/* The first screen is the stage with the panel at its bottom; the footer waits below the fold. */
.dl-main {
    position: relative;
    isolation: isolate;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: calc(100vh - var(--dl-nav-h));
    /* a short window keeps room for the device: the panel then goes a little below the fold */
    min-height: max(calc(100svh - var(--dl-nav-h)), calc(var(--dl-dock-h) + var(--dl-stage-min)));
    padding: 0;
    /* the device's least room; a short window keeps the tabs off its bottom edge (the social dock's button sits there) */
    --dl-stage-min: clamp(180px, 40svh, 300px);
    /* a touch screen's horizontal swipe is the page's (it changes the platform); the vertical one still scrolls, two fingers zoom */
    touch-action: pan-y pinch-zoom;
}
@media (max-width: 575.98px) { .dl-main { --dl-stage-min: 36svh; } }

/* ---- the night, fixed to the window (owner, 2026-11-23) ----
   One layer behind everything (body::before; the site's gold cursor is body::after): the navy, its lighter middle where the
   device stands on the first screen (40 % down the room under the navbar), the dark at the window's edges and a fine grain
   against banding (soft light over the layers under it). It stays put while the page scrolls, under the stage, the panel, the
   install steps and the footer, so no gradient ever shows its end. A fixed layer and not background-attachment: fixed, which
   iOS Safari ignores and which repaints on every scroll elsewhere; its own compositing layer (will-change), drawn once. As tall
   as the large viewport (100lvh): a phone's toolbar coming and going never stretches the light. */
.dl-page::before {
    content: '';
    position: fixed;
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    pointer-events: none;
    will-change: transform;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .8 0 0 0 .19 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px repeat,
        radial-gradient(ellipse 120% 90% at 50% 42%, rgba(4, 12, 21, 0) 55%, rgba(4, 12, 21, 0.5) 100%),
        radial-gradient(ellipse 70% 55% at 50% calc(var(--dl-nav-h) + (100% - var(--dl-nav-h)) * 0.4),
            rgba(18, 49, 76, 0.95) 0%, rgba(14, 40, 63, 0.55) 45%, rgba(8, 25, 41, 0) 82%),
        linear-gradient(180deg, #0a1d30 0%, var(--dl-night) 100%);
    background-blend-mode: soft-light, normal, normal, normal;
}

/* ---- the stage: the device, its light, the ring and the sparks, on the night; they scroll with the page ---- */
.dl-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
/* the navbar's shade on the stage's top edge (the stage ends in nothing of its own: the night goes on under the panel and below) */
.dl-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(4, 12, 21, 0.6) 0, rgba(4, 12, 21, 0.2) 34px, rgba(4, 12, 21, 0) 90px);
}

/* the ring of runes behind the device, turning once in a few minutes; its flash when a device comes */
/* js/downloads-stage.js puts the ring and the light around the device's screen (left, top, width, height; centred by a transform) */
.dl-ring {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 45%;
    width: 520px;
    height: 520px;
    color: rgba(var(--dl-gold), 0.3);
}
.dl-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* each ring turns on its own middle, its box (fill-box): an SVG group's 50% is otherwise half the viewBox from the user origin, the
   ring's lower right corner (-100 -100 200 200), and the runes drifted off the device, half a screen in 45 s (2026-11-22, review) */
.dl-ring .dl-ring-turn { transform-box: fill-box; transform-origin: 50% 50%; animation: dl-turn 180s linear infinite; }
.dl-ring .dl-ring-back { transform-box: fill-box; transform-origin: 50% 50%; animation: dl-turn 240s linear infinite reverse; }
@keyframes dl-turn { to { transform: rotate(360deg); } }
.dl-ring-flash {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(246, 213, 122, 0.9);
    box-shadow: 0 0 34px rgba(246, 213, 122, 0.55), inset 0 0 34px rgba(246, 213, 122, 0.35);
    opacity: 0;
}
/* the light's box is the stage's and fades out over the panel's height: a big device's light (an ellipse twice its size) reaches past
   the stage's foot, and with the night fixed to the window nothing else hides where the stage ends (2026-11-23, review: a lit band with a
   hard bottom edge under the panel at 1920). Behind the panel's glass it is still there, fading; below it, nothing. */
.dl-glow-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - var(--dl-dock-h)), rgba(0, 0, 0, 0.35) calc(100% - var(--dl-dock-h) * 0.45), transparent 100%);
    mask-image: linear-gradient(180deg, #000 calc(100% - var(--dl-dock-h)), rgba(0, 0, 0, 0.35) calc(100% - var(--dl-dock-h) * 0.45), transparent 100%);
}
.dl-glow {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 45%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    /* the light behind the device (an ellipse twice the device's size, js/downloads-stage.js): warm in the middle, fading through old
       gold into the night, with no edge of its own; the device's edges stand about halfway out */
    background: radial-gradient(ellipse closest-side,
        rgba(255, 243, 214, 0.86) 0%, rgba(255, 236, 196, 0.72) 24%, rgba(246, 214, 156, 0.46) 42%,
        rgba(232, 186, 108, 0.26) 58%, rgba(222, 168, 76, 0.1) 76%, rgba(222, 168, 76, 0.03) 90%, rgba(222, 168, 76, 0) 100%);
}
/* the dust stops at the panel: nothing that moves every frame sits behind its blurred glass */
.dl-dust { position: absolute; left: 0; top: 0; z-index: 2; width: 100%; height: calc(100% - var(--dl-dock-h)); }

/* the devices: js/downloads-stage.js sizes each one (--w, --bottom) from images/devices/devices.json */
.dl-devices {
    position: absolute;
    inset: 0;
    z-index: 3;
}
.dl-dev {
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--bottom, 30%);
    width: var(--w, 40%);
    aspect-ratio: var(--ar, 4 / 3);
    margin: 0 auto;
    visibility: hidden;
    transform-origin: 50% 85%;
}
.dl-dev-body { position: relative; width: 100%; height: 100%; transform-origin: 50% 60%; }
.dl-dev-body > picture,
.dl-dev-body > picture img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.dl-dev-body > picture img {
    filter: drop-shadow(0 calc(var(--w, 400px) * 0.035) calc(var(--w, 400px) * 0.05) rgba(2, 8, 14, 0.55)) drop-shadow(0 2px 3px rgba(2, 8, 14, 0.45));
    user-select: none;
    -webkit-user-drag: none;
}
/* the screen: the game behind the bezel, a hair larger than the hole so no edge shows */
.dl-screen {
    position: absolute;
    z-index: 1;
    overflow: hidden;
    background: #04070b;
    container-type: inline-size;
}
.dl-screen video,
.dl-screen .dl-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #04070b;
}
.dl-dev[data-fit="contain"] .dl-screen video,
.dl-dev[data-fit="contain"] .dl-screen .dl-poster { object-fit: contain; }
/* the phone's screen has round corners (a 42 px radius in its 900 px picture) and so has the phone: a square screen box would
   show its corners past the phone's own (2026-11-20, review). The screen box is a hair larger than the hole (the bleed in
   js/downloads-stage.js), the plaque's box is the hole */
.dl-dev[data-device="phone"] .dl-screen { border-radius: 5.3% / 10.75%; }
.dl-dev[data-device="phone"] .dl-soon::before { border-radius: 5% / 10.2%; }
.dl-screen video { opacity: 0; transition: opacity .35s ease; }
.dl-screen video.is-playing { opacity: 1; }

/* "Em breve" / "Coming soon": the platform has no build yet. The game still plays, dimmed, behind a gold plaque. */
.dl-soon {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    container-type: inline-size;
    pointer-events: none;
}
.dl-soon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(8, 25, 41, 0.35), rgba(8, 25, 41, 0.72));
    -webkit-backdrop-filter: grayscale(.55) blur(1.5px);
    backdrop-filter: grayscale(.55) blur(1.5px);
}
.dl-soon b {
    position: relative;
    overflow: hidden;
    padding: .28em 1.1em .4em;
    font: 700 clamp(13px, 8.2cqw, 46px)/1 var(--dl-display);
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #f6d57a;
    background: linear-gradient(180deg, #13304a, #081929 72%);
    border: 2px solid #dea84c;
    border-radius: .42em;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 .3em .9em rgba(0, 0, 0, 0.55), 0 0 1.4em rgba(222, 168, 76, 0.28);
    text-shadow: 0 1px 0 #000, 0 0 .5em rgba(222, 168, 76, 0.45);
}
.dl-soon b::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(222, 168, 76, 0.45);
    border-radius: .32em;
}
/* a gleam that crosses the plaque now and then */
.dl-soon b::after {
    content: '';
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -60%;
    width: 40%;
    background: linear-gradient(100deg, rgba(255, 240, 200, 0) 0%, rgba(255, 240, 200, 0.55) 50%, rgba(255, 240, 200, 0) 100%);
    transform: skewX(-18deg);
    animation: dl-gleam 5.5s ease-in-out 1.2s infinite;
}
@keyframes dl-gleam {
    0%, 70% { left: -60%; }
    100% { left: 130%; }
}

/* the visitor's switch for the moving parts (WCAG 2.2.2): the screens, the dust, the ring, the phone's own turn. Top right of the
   stage, clear of the social dock's tab (mid-height on the right edge) and of its button (bottom right). */
.dl-still {
    position: absolute;
    z-index: 6;
    right: calc(15px * var(--frame-scale) + 14px);
    top: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #f6d57a;
    background: rgba(8, 25, 41, 0.86);
    border: 1px solid rgba(222, 168, 76, 0.75) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 14px rgba(40, 26, 8, 0.35);
    cursor: pointer;
    pointer-events: auto;
}
.dl-still:hover { color: #fff; background: rgba(14, 40, 62, 0.95); }
.dl-still svg { width: 16px; height: 16px; }
html.dl-stilled .dl-still-pause,
html:not(.dl-stilled) .dl-still-play { display: none; }

/* a touch screen's two arrows at the stage's sides, level with the device's screen: they say a swipe changes the platform, and a tap
   on one does the same (js/downloads-stage.js builds them on a touch screen only; the tabs stay the way for a screen reader) */
.dl-arrows { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.dl-arrow {
    position: absolute;
    top: var(--dl-arrows-y, 40%);
    width: 30px;
    height: 48px;
    margin-top: -24px;
    display: grid;
    place-items: center;
    color: #f6d57a;
    background: rgba(6, 18, 31, 0.62);
    border: 1px solid rgba(var(--dl-gold), 0.5);
    border-radius: 15px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.dl-arrow-prev { left: calc(15px * var(--frame-scale) + 4px); }
.dl-arrow-next { right: calc(15px * var(--frame-scale) + 4px); }
.dl-arrow svg { width: 14px; height: 14px; }
.dl-arrow:active { color: #fff; background: rgba(var(--dl-gold), 0.28); }

/* ---- the platform's name in the navbar's middle (owner, 2026-11-22) ----
   js/downloads-stage.js builds one name per platform (the tab's data-word) and places the box: the navbar's row of links (or of the
   menu button), centred in the window, or in the middle of the free room and smaller where the window's middle is too narrow. The
   chosen one comes in from the side of the choice, its letters settling and a gleam crossing it; with reduced motion it is a cut. */
.dl-page .site-nav { position: relative; }
.dl-navname {
    position: absolute;
    z-index: 2;
    top: calc(42px * var(--frame-scale) + 18px);
    left: 0;
    width: 100%;
    height: 42px;
    pointer-events: none;
    /* the name slides in from the side (34 px): clipped here, or it widens the page for a moment at every choice (2026-11-22,
       review: a computer's scrollbar flashed, and a phone's layout grew to 409 px, its fixed Discord button dropping off screen) */
    overflow-x: clip;
    --dl-navname-size: clamp(22px, calc(1.1rem + .9vw), 34px);
    font: 700 calc(var(--dl-navname-size) * var(--dl-navname-scale, 1))/1 var(--dl-display);
}
.dl-navname-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}
/* engraved gold: a metal gradient inside the letters, a dark cut above them and a lit lip below */
.dl-navname-text {
    display: block;
    flex: 0 0 auto;
    padding: .14em 0 .16em .16em;       /* letter-spacing trails the last letter: as much before the first one keeps it centred */
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #f6d57a;
    background-image:
        linear-gradient(100deg, rgba(255, 250, 232, 0) 42%, rgba(255, 252, 240, 0.95) 50%, rgba(255, 250, 232, 0) 58%),
        linear-gradient(180deg, #fff3c8 8%, #f6d57a 36%, #dea84c 60%, #b47c27 80%, #8e5d1a 100%);
    background-size: 260% 100%, 100% 100%;
    background-position: 165% 0%, 0% 0%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.85)) drop-shadow(0 1px 0 rgba(255, 224, 150, 0.25)) drop-shadow(0 0 14px rgba(var(--dl-gold), 0.3));
}
/* the ornaments: a gold line out of nothing to a small diamond, on each side of the name */
.dl-navname-orn {
    display: block;
    flex: 0 0 auto;
    width: clamp(26px, 4.6vw, 84px);
    height: 9px;
    margin: 0 .42em;
    transform-origin: 100% 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 .6L9.4 5 5 9.4.6 5z' fill='%23f6d57a' stroke='%238e5d1a' stroke-width='.8'/%3E%3C/svg%3E") right center / 9px 9px no-repeat,
        linear-gradient(90deg, rgba(var(--dl-gold), 0), rgba(var(--dl-gold), 0.9)) left center / calc(100% - 11px) 1px no-repeat;
}
.dl-navname-orn-end {
    transform-origin: 0 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 .6L9.4 5 5 9.4.6 5z' fill='%23f6d57a' stroke='%238e5d1a' stroke-width='.8'/%3E%3C/svg%3E") left center / 9px 9px no-repeat,
        linear-gradient(90deg, rgba(var(--dl-gold), 0.9), rgba(var(--dl-gold), 0)) right center / calc(100% - 11px) 1px no-repeat;
}
/* a narrow navbar (a phone): no ornaments and the letters closer, so the name keeps a readable size */
.dl-navname.is-tight .dl-navname-orn { display: none; }
.dl-navname.is-tight .dl-navname-text { letter-spacing: .09em; padding-left: .09em; }

/* ---- the panel ---- */
.dl-dock {
    position: relative;
    z-index: 5;
    min-height: var(--dl-dock-h);
    padding-bottom: 18px;
}
.dl-page .dl-panel {
    position: relative;
    padding: 18px 26px 20px;
    background: linear-gradient(180deg, rgba(16, 40, 61, 0.86) 0%, rgba(8, 25, 41, 0.93) 60%);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
    box-shadow: 0 -10px 30px rgba(54, 36, 10, 0.16), 0 22px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 233, 180, 0.12);
    color: var(--tr-text);
}
.dl-page .dl-panel::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(222, 168, 76, 0.22);
    border-radius: 11px;
    pointer-events: none;
}
.dl-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px 28px;
}
.dl-title {
    margin: 0 0 4px;
    font: 700 1.9rem/1.05 var(--dl-display);
    letter-spacing: .02em;
    color: #f6d57a;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 18px rgba(222, 168, 76, 0.25);
}
.dl-panel hr.stylish { margin-top: 8px; }

/* the platforms: one tab each, its device's mark, its name and its state */
/* beside the title when they fit, else on their own row; either way spread evenly */
.dl-tabs {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 4px;
    min-width: 0;
}
.dl-page .dl-tab {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 9px;
    align-items: center;
    min-width: 0;
    padding: 8px 12px 10px 10px;
    color: rgba(233, 228, 214, 0.78);
    background: transparent;
    border: 0;
    border-radius: 8px !important;
    font: inherit;
    text-align: left;
    cursor: pointer;
    /* the hover's light stays inside the tab, behind its words */
    overflow: hidden;
    isolation: isolate;
    transition: color .18s ease, background-color .18s ease;
}
/* A hover, or the keyboard's or the pad's focus, lights the tab and nothing else: only a click (a tap, Enter, Space) chooses the platform
   (owner, 2026-11-23: "the button should have hover state animation but it should change between OSs onClick"; js/downloads-stage.js).
   A warm light rises from the tab's foot with a fine gold rim, a gold line draws out from its middle, a gleam crosses it once, and the
   mark pops up a little. The tab itself never moves (the gold cursor hangs from it; css/site.css). Defaults to tune, 2026-11-23. */
.dl-page .dl-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(246, 213, 122, 0), #f6d57a 30%, #dea84c 70%, rgba(222, 168, 76, 0)) 50% 100% / 0% 2px no-repeat,
        radial-gradient(120% 95% at 50% 125%, rgba(246, 205, 110, 0.3), rgba(246, 205, 110, 0) 72%);
    box-shadow: inset 0 0 0 1px rgba(246, 213, 122, 0);
    opacity: 0;
    transition: opacity .22s ease, background-size .5s cubic-bezier(.2, .9, .3, 1), box-shadow .3s ease;
    pointer-events: none;
}
.dl-page .dl-tab::after {
    content: '';
    position: absolute;
    top: -10%;
    bottom: -10%;
    left: -55%;
    width: 45%;
    background: linear-gradient(90deg, rgba(255, 240, 200, 0), rgba(255, 240, 200, 0.26) 50%, rgba(255, 240, 200, 0));
    transform: skewX(-20deg);
    opacity: 0;
    pointer-events: none;
}
@keyframes dl-tab-gleam {
    from { opacity: 1; transform: translateX(0) skewX(-20deg); }
    to { opacity: 1; transform: translateX(420%) skewX(-20deg); }
}
.dl-page .dl-tab:focus-visible,
.pad-mode .dl-page .dl-tab:focus { color: #fff; background-color: rgba(222, 168, 76, 0.08); }
.dl-page .dl-tab:focus-visible::before,
.pad-mode .dl-page .dl-tab:focus::before { opacity: 1; background-size: 62% 2px, 100% 100%; box-shadow: inset 0 0 0 1px rgba(246, 213, 122, 0.32); }
.dl-page .dl-tab:focus-visible::after,
.pad-mode .dl-page .dl-tab:focus::after { animation: dl-tab-gleam .8s cubic-bezier(.3, .1, .3, 1) .05s; }
/* a finger's tap leaves no hover behind: only a pointer that hovers lights the tab */
@media (hover: hover) {
    .dl-page .dl-tab:hover { color: #fff; background-color: rgba(222, 168, 76, 0.08); }
    .dl-page .dl-tab:hover::before { opacity: 1; background-size: 62% 2px, 100% 100%; box-shadow: inset 0 0 0 1px rgba(246, 213, 122, 0.32); }
    .dl-page .dl-tab:hover::after { animation: dl-tab-gleam .8s cubic-bezier(.3, .1, .3, 1) .05s; }
    .dl-tab:hover .dl-tab-ico { color: #f6d57a; filter: drop-shadow(0 0 7px rgba(246, 213, 122, 0.6)); transform: translateY(-3px) scale(1.12); }
}
/* a mouse click focuses the tab: no ring of Bootstrap's then (the keyboard's and the pad's focus get the site's gold cursor) */
html:not(.pad-mode) .dl-page .dl-tab:focus:not(:focus-visible),
html:not(.pad-mode) .dl-page .dl-still:focus:not(:focus-visible) { outline: none; }
.dl-page .dl-tab[aria-selected="true"] { color: #fff; background-color: rgba(222, 168, 76, 0.12); }
.dl-tab-ico {
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    color: rgba(222, 168, 76, 0.75);
    transition: color .18s ease, filter .18s ease, transform .4s cubic-bezier(.2, 1.7, .4, 1);
}
.dl-tab:focus-visible .dl-tab-ico,
.pad-mode .dl-tab:focus .dl-tab-ico { color: #f6d57a; filter: drop-shadow(0 0 7px rgba(246, 213, 122, 0.6)); transform: translateY(-3px) scale(1.12); }
.dl-tab[aria-selected="true"] .dl-tab-ico { color: #f6d57a; filter: drop-shadow(0 0 6px rgba(246, 213, 122, 0.45)); }
.dl-tab-name { font-weight: 600; font-size: .98rem; line-height: 1.15; white-space: nowrap; }
.dl-tab-state {
    font-size: .74rem;
    line-height: 1.2;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(246, 213, 122, 0.8);
}
.dl-tab[data-state="soon"] .dl-tab-state { color: rgba(233, 228, 214, 0.5); }
.dl-tab[data-state="download"] .dl-tab-state { color: #9be7a9; }
/* the gold bar under the chosen tab, which runs from tab to tab */
.dl-tab-ink {
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(246, 213, 122, 0), #f6d57a 22%, #dea84c 78%, rgba(222, 168, 76, 0));
    box-shadow: 0 0 10px rgba(246, 213, 122, 0.6);
    pointer-events: none;
}

/* the chosen platform's text sizes the panel; the others wait on top of it, hidden. The panel's top never moves (the devices stand
   on it): js/downloads-stage.js keeps the dock as tall as the panel with the longest text, and the panel grows or shrinks below. */
.dl-details { position: relative; margin-top: 12px; }
.dl-detail { min-width: 0; }
html.js .dl-detail:not(.is-active) { position: absolute; top: 0; left: 0; right: 0; visibility: hidden; opacity: 0; }
.dl-detail-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.dl-detail-text { flex: 1 1 360px; min-width: 0; }
.dl-detail-act { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; }
.dl-detail h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 12px;
    margin: 0 0 4px;
    font: 700 1.3rem/1.15 var(--dl-display);
    color: #fff;
}
.dl-detail-meta {
    font: 600 .74rem/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(246, 213, 122, 0.85);
}
.dl-detail p { margin: 0 0 4px; color: rgba(250, 250, 250, 0.86); }
.dl-detail p.dl-lead { color: var(--tr-text-muted); font-size: .92rem; }
.dl-detail .page-actions { margin-top: 0; justify-content: flex-end; }
.dl-detail .page-actions[hidden] { display: none; }
.dl-detail .dl-list { margin-top: 0; }
.dl-detail .dl-card { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 18px; padding: 10px 14px; }
.dl-detail .dl-card .dl-head { grid-column: 1; }
.dl-detail .dl-card .dl-meta { grid-column: 1; margin: 0; font-size: .85rem; }
.dl-detail .dl-card .btn { grid-column: 2; grid-row: 1 / span 2; }
.dl-howto { margin: 0; font-size: .88rem; }
.dl-panel .dl-all { margin: 10px 0 0; text-align: right; }
.dl-panel noscript p { margin: 12px 0 0; }

.dl-page .dl-panel a:not(.btn), .dl-more a:not(.btn) { color: var(--tr-gold); }
.dl-page .dl-panel a:not(.btn):hover, .dl-more a:not(.btn):hover { color: #ffe08f; }
.dl-page .dl-panel code, .dl-more code { color: #ffe08f; }
.dl-more { color: var(--tr-text); }

/* without JavaScript there is no stage and no tabs: every platform's text, one after the other, in the page's flow */
html:not(.js) .dl-stage { display: none; }
html:not(.js) .dl-main { min-height: 0; padding-top: 32px; }
html:not(.js) .dl-dock { min-height: 0; }
html:not(.js) .dl-details { display: block; }
html:not(.js) .dl-detail { margin-top: 18px; }

/* ---- below the first screen: how to install, once a platform has a download ----
   The chosen platform's steps only (js/downloads-stage.js marks the others .is-other): one way to read, never three stacked. Each
   panel is the download panel's kin (its navy glass, its inner gold line, its side padding, so the texts line up), with no blur of
   its own: the night under it is smooth. */
.dl-more { padding-top: 1px; padding-bottom: 1px; }
.dl-more .tr-panel {
    position: relative;
    margin: 26px 0;
    padding: 22px 26px;
    background: linear-gradient(180deg, rgba(16, 40, 61, 0.86) 0%, rgba(8, 25, 41, 0.93) 60%);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 233, 180, 0.12);
}
.dl-more .tr-panel::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(222, 168, 76, 0.22);
    border-radius: 11px;
    pointer-events: none;
}
.dl-more h2 { font: 700 1.35rem/1.2 var(--dl-display); color: #f6d57a; margin: 0 0 6px; }
.dl-more[hidden], .dl-install[hidden] { display: none; }
html.js .dl-install.is-other { display: none; }

/* ---- one column: the panel, the install steps and the footer share its edges at every size (owner, 2026-11-23) ----
   The same container (its width, its side padding) for all three; the footer's words start where the panel's words do. */
.dl-page .site-foot .container { padding-left: calc(15px + 26px); padding-right: calc(15px + 26px); }

/* ---- narrower screens ---- */
@media (min-width: 1400px) {
    .dl-dock.container, .dl-more.container, .dl-page .site-foot .container { max-width: 1260px; }
}
@media (max-width: 1199.98px) {
    .dl-panel-head { align-items: stretch; }
    .dl-tabs { flex-basis: 100%; }
    .dl-title { font-size: 1.7rem; }
}
@media (max-width: 991.98px) {
    .dl-page .dl-tab { grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: center; text-align: center; row-gap: 3px; padding: 8px 6px 9px; flex: 1 1 0; }
    .dl-tab-ico { grid-row: auto; width: 28px; height: 28px; }
    .dl-tab-name { white-space: normal; font-size: .9rem; }
}
@media (max-width: 767.98px) {
    .dl-detail-act { align-items: stretch; flex-basis: 100%; }
    .dl-detail .page-actions { justify-content: flex-start; }
    .dl-panel .dl-all { text-align: left; }
}
@media (max-width: 575.98px) {
    .dl-dock, .dl-more { padding-left: 10px; padding-right: 10px; }
    .dl-dock { padding-bottom: 12px; }
    .dl-page .site-foot .container { padding-left: calc(10px + 14px); padding-right: calc(10px + 14px); }
    .dl-page .dl-panel { padding: 14px 14px 16px; }
    .dl-page .dl-panel::before { inset: 3px; }
    .dl-title { font-size: 1.45rem; }
    .dl-tabs { gap: 0; }
    .dl-page .dl-tab { padding: 6px 2px 7px; }
    .dl-tab-ico { width: 26px; height: 26px; }
    .dl-tab-name { font-size: .76rem; line-height: 1.12; }
    /* a phone's tabs keep the mark and the name; the state is in the platform's text and on its device */
    .dl-tab-state { display: none; }
    .dl-tab-ink { bottom: -7px; }
    .dl-detail h2 { font-size: 1.15rem; }
    /* a phone: the platform's one call to action at the left; the bottom right stays the social dock's button, so the two never
       meet whatever the platform's text */
    .dl-detail p { font-size: .9rem; }
    .dl-detail p.dl-lead { font-size: .8rem; line-height: 1.4; }
    .dl-detail .dl-card { grid-template-columns: 1fr; }
    .dl-detail .dl-card .btn { grid-column: 1; grid-row: auto; }
    .dl-more .tr-panel { margin: 18px 0; padding: 16px 14px; }
    .dl-more .tr-panel::before { inset: 3px; }
}

/* reduced motion: the stage holds still (js/downloads-stage.js cuts instead of tweening) */
@media (prefers-reduced-motion: reduce) {
    .dl-ring .dl-ring-turn, .dl-ring .dl-ring-back, .dl-soon b::after { animation: none; }
    .dl-screen video { transition: none; }
    .dl-page .dl-tab, .dl-tab-ico, .dl-page .dl-tab::before { transition: none; }
    /* a lit tab, still: its light and its line, no gleam and no pop */
    .dl-page .dl-tab::after { animation: none !important; }
    .dl-tab .dl-tab-ico { transform: none !important; }
}
html.dl-stilled .dl-ring .dl-ring-turn, html.dl-stilled .dl-ring .dl-ring-back, html.dl-stilled .dl-soon b::after { animation-play-state: paused; }
