/* Fate/EXTRA Record: the shell's own marks. Loaded last; every rule is scoped to the client lockup or a class of this file. */

/* header lockup: the Fate/EXTRA Record wordmark (1677 x 340, drawn white) over the words World Model */
.ds-head-client.lg-lockup img { width: 168px; height: auto; aspect-ratio: 1677 / 340; filter: brightness(0) invert(1); }
.ds-collapsed .ds-head-client.lg-lockup img { width: 60px; }
@media (max-width: 820px) { .ds-head-client.lg-lockup img { width: 128px; } }

/* a title without a logo file: its name, set in type on the plate */
.ds-tplate .lg-tplate-n { position: relative; z-index: 1; color: #fff; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; text-align: center; padding: 0 12%; text-wrap: balance; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }

/* one key-art slide: no dots to step through */
.ds-hx-dots:has(> .ds-hx-dot:only-child) { display: none; }

/* a title card with nothing in its foot drops the foot and its rule */
.ds-tcard-f:empty { display: none; }

/* The page's own scroll bar. look.css draws every scroll bar 12px wide with a 4px clear border, which leaves a 4px
   sliver of thumb. The page's bar is 20px wide with a 14px thumb, dark enough to see on the light pages and easy to
   grab. Menus and side panels keep their own thin bars. */
html[data-skin]::-webkit-scrollbar, html[data-skin] > body::-webkit-scrollbar { width: 20px !important; height: 20px !important; background: transparent; }
html[data-skin]::-webkit-scrollbar-track, html[data-skin] > body::-webkit-scrollbar-track { background: rgba(127, 136, 150, .10); margin: 0 !important; }
html[data-skin]::-webkit-scrollbar-thumb, html[data-skin] > body::-webkit-scrollbar-thumb { background-color: rgba(84, 94, 112, .62) !important; border: 3px solid transparent !important; border-radius: 10px !important; background-clip: padding-box !important; min-height: 64px !important; }
html[data-skin]::-webkit-scrollbar-thumb:hover, html[data-skin] > body::-webkit-scrollbar-thumb:hover { background-color: rgba(64, 73, 90, .82) !important; }
html[data-skin]::-webkit-scrollbar-thumb:active, html[data-skin] > body::-webkit-scrollbar-thumb:active { background-color: rgba(47, 108, 240, .9) !important; }

/* The left rail stays at full width: no collapse to icons. */
html[data-skin] .ds-rail-collapse { display: none; }

/* the note that the audience data is a stand-in; delete the element in index.html once the real cohorts are built in.
   It sits out of the header's own layout (the header is a grid of three), beside the lockup. */
.fx-standin { position: absolute; left: 276px; top: 50%; transform: translateY(-50%); margin: 0; padding: 5px 12px; border: 1px solid rgba(255, 196, 87, .45); border-radius: 8px; background: rgba(255, 196, 87, .1); color: #ffd98a; font-size: 12.5px; line-height: 1.35; white-space: nowrap; }
.fx-standin b { font-weight: 650; color: #ffe7b3; }
@media (max-width: 1180px) { .fx-standin { white-space: normal; max-width: 34ch; } }
@media (max-width: 820px) { .fx-standin { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; transform: none; max-width: none; z-index: 60; background: #2a2212; font-size: 11.5px; text-align: center; } }

/* Home hero: the key art sits on the right 72% of the hero at full strength, its left edge fading into the hero's own
   navy, so the lead character's face clears the ask field. Under 820px the art fills the hero behind a heavier fade. */
html[data-skin] body .ds-hx .ds-hx-slide { left: 28%; background-size: cover; }
html[data-skin] body .ds-hx .ds-hx-slide::after { background: linear-gradient(90deg, #060b1f 0%, rgba(6, 11, 31, .9) 14%, rgba(6, 11, 31, .55) 30%, rgba(6, 11, 31, 0) 50%), linear-gradient(180deg, rgba(6, 11, 31, 0) 62%, rgba(6, 11, 31, .88) 100%); }
@media (max-width: 820px) {
  html[data-skin] body .ds-hx .ds-hx-slide { left: 0; background-position: 62% 30% !important; }
  html[data-skin] body .ds-hx .ds-hx-slide::after { background: linear-gradient(180deg, rgba(6, 11, 31, .62) 0%, rgba(6, 11, 31, .86) 55%, rgba(6, 11, 31, .97) 100%); }
}

/* Audiences by market: market tabs, one ranked row per audience */
.fx-mk-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin: 18px 0 14px; }
.fx-mk .ds-lanes { flex-wrap: wrap; }
.fx-mk-off { opacity: .55; cursor: default; }
.fx-mk-off i { font-style: normal; font-size: 11px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: rgba(127, 136, 150, .18); }
.fx-mk-rows { list-style: none; margin: 0; padding: 0; }
.fx-mk-rows li + li { border-top: 1px solid var(--ds-line, rgba(15, 23, 42, .08)); }
.fx-mk-row { display: grid; grid-template-columns: minmax(12em, 22em) minmax(80px, 1fr) 6.5em 11em; gap: 16px; align-items: center; padding: 11px 8px; color: inherit; text-decoration: none; border-radius: 8px; }
a.fx-mk-row:hover, a.fx-mk-row:focus-visible { background: rgba(47, 108, 240, .06); }
.fx-mk-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-mk-kind { display: block; margin-top: 2px; font-style: normal; font-weight: 500; font-size: 12px; line-height: 1.3; opacity: .64; }
.fx-mk-track { height: 8px; border-radius: 999px; background: rgba(127, 136, 150, .16); overflow: hidden; }
.fx-mk-track i { display: block; height: 100%; border-radius: inherit; background: #2f6cf0; }
.fx-mk-track i.is-steam { background: #17a398; }
.fx-mk-v { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; }
.fx-mk-v em { font-style: normal; font-weight: 500; color: var(--ds-muted, #6c7482); font-size: 13px; }
.fx-mk-s { font-variant-numeric: tabular-nums; color: var(--ds-muted, #6c7482); font-size: 13px; text-align: right; }
@media (max-width: 820px) { .fx-mk-row { grid-template-columns: minmax(0, 1fr) auto; } .fx-mk-track, .fx-mk-s { display: none; } .fx-mk-n { white-space: normal; text-wrap: balance; }
  .fx-mk-bar > .ds-lanes:first-child { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; } .fx-mk-bar > .ds-lanes:first-child .ds-lane { white-space: nowrap; flex: none; } }

/* Home hero: the ask field ends one Ask button short of its usual width, clear of the key art */
@media (min-width: 821px) { html[data-skin] body .ds-hx .ds-hero-in .ds-hx-dock:not(.flying) { max-width: 588px; } }

/* Audiences hero: the markets as dot maps, side by side */
.fx-maps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding: 8px 44px 0; }
.fx-map { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 16px; border-radius: 14px; border: 1px solid transparent; color: #c9d3e6; text-decoration: none; min-width: 0; transition: background .2s, border-color .2s; }
a.fx-map:hover, a.fx-map:focus-visible { background: rgba(143, 176, 240, .07); border-color: rgba(143, 176, 240, .18); }
.fx-map.is-on { background: rgba(143, 176, 240, .1); border-color: rgba(143, 176, 240, .34); }
.fx-map svg { width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 6px; }
.fx-map b { color: #fff; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.fx-map span { font-size: 12.5px; color: #9fb0cf; font-variant-numeric: tabular-nums; }
.fx-map em { font-style: normal; font-size: 13px; color: #e6ecf7; margin-top: 6px; line-height: 1.3; text-wrap: balance; }
.fx-map em i { display: block; font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #7f8fb0; margin-bottom: 2px; }
.fx-map.is-pend b { color: #9fb0cf; }
.fx-maps-key { display: flex; align-items: center; gap: 10px; margin: 14px 44px 30px; font-size: 12.5px; color: #8b9bbb; }
.fx-maps-ramp { flex: none; width: 72px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, rgb(122, 69, 245), rgb(47, 128, 255), rgb(45, 212, 191)); }
@media (max-width: 1180px) { .fx-maps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) { .fx-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 16px 0; } .fx-maps-key { margin: 14px 16px 24px; align-items: flex-start; } }

/* Audiences hero: both states (the seven small maps, and one market open) sit in a body of one height, over one canvas
   that covers the hero (markets.js draws the open market's field on it and flies the dots between the two states). */
.fx-maps-hero { position: relative; }
.fx-maps-hero > .ds-hero-in, .fx-maps-hero > .fx-body { position: relative; z-index: 1; }
.fx-maps-hero > canvas.fx-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.fx-body { min-height: 404px; box-sizing: border-box; }
.fx-maps.is-landing svg { opacity: 0; }
/* around a flight: the hero's words fade out before the dots leave, and the new ones fade in as they land */
.fx-maps-hero.fx-leave > .ds-hero-in, .fx-maps-hero.fx-leave > .fx-body { opacity: 0; transition: opacity .22s ease; pointer-events: none; }
.fx-maps-hero.fx-arrive > .ds-hero-in, .fx-maps-hero.fx-arrive > .fx-body { animation: fx-fade-in .55s .1s both; }
@keyframes fx-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fx-maps-hero.fx-arrive > .ds-hero-in, .fx-maps-hero.fx-arrive > .fx-body { animation: none; } }
.fx-maps.is-landing .fx-map.is-on { background: transparent; border-color: transparent; }
/* one market open: back and the market's own line on the left, its audiences on a card at the right; the map is the canvas */
.fx-md { padding: 4px 44px 0; }
.fx-md-side { width: min(264px, 100%); animation: fx-md-in .5s .28s both; }
.fx-md-back { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid rgba(143, 176, 240, .28); color: #dbe5f7; font-size: 13.5px; font-weight: 600; text-decoration: none; background: rgba(8, 14, 34, .5); transition: background .2s, border-color .2s; }
.fx-md-back:hover, .fx-md-back:focus-visible { background: rgba(143, 176, 240, .14); border-color: rgba(143, 176, 240, .5); }
.fx-md-back svg { width: 15px; height: 15px; }
.fx-md-name { display: flex; flex-direction: column; gap: 5px; margin: 20px 0 20px; padding-left: 18px; border-left: 3px solid #3d7bf2; }
.fx-md-name b { color: #fff; font-size: clamp(24px, 2.3vw, 32px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; }
.fx-md-name span { color: #b9c6df; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.fx-md-name em { font-style: normal; color: #eef3fb; font-size: 15.5px; margin-top: 8px; line-height: 1.3; text-wrap: balance; }
.fx-md-name em i { display: block; font-style: normal; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: #8494b5; margin-bottom: 3px; }
.fx-md .ds-lanes.fx-md-by { display: inline-flex; background: rgba(143, 176, 240, .1); margin: 0; }
.fx-md .fx-md-by .ds-lane { color: #c3d0e8; }
.fx-md .fx-md-by .ds-lane[aria-selected="true"] { background: #fff; color: #0c1730; }
.fx-md-card { flex: 1 1 auto; min-height: 0; overflow: hidden; box-sizing: border-box; padding: 18px 20px 14px; border-radius: 18px; border: 1px solid rgba(143, 176, 240, .3); background: rgba(11, 19, 43, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #dbe5f7; }
.fx-md-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(143, 176, 240, .16); }
.fx-md-nums b { display: block; color: #fff; font-size: 26px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fx-md-nums b i { font-style: normal; font-size: 14px; font-weight: 500; color: #9fb0cf; letter-spacing: 0; }
.fx-md-nums span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: #a8b7d4; }
.fx-md-lh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 12px 0 4px; }
.fx-md-lh b { color: #fff; font-size: 13.5px; font-weight: 650; } .fx-md-lh span { font-size: 11.5px; color: #8b9bbb; white-space: nowrap; }
.fx-md-rows { list-style: none; margin: 0; padding: 0; }
.fx-md-rows li > * { display: block; padding: 6px 6px; margin: 0 -6px; border-radius: 8px; color: inherit; text-decoration: none; }
.fx-md-rows a:hover, .fx-md-rows a:focus-visible { background: rgba(143, 176, 240, .1); }
.fx-md-rn { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.fx-md-rn b { font-size: 13.5px; font-weight: 600; color: #eef3fb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-md-rn em { font-style: normal; font-size: 12.5px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx-md-bar { display: block; height: 4px; margin-top: 5px; border-radius: 999px; background: rgba(143, 176, 240, .14); overflow: hidden; }
.fx-md-bar i { display: block; height: 100%; border-radius: inherit; background: #5b83e8; } .fx-md-bar i.is-steam { background: #2dd4bf; }
.fx-md-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 650; color: #a9c4f5; text-decoration: none; } .fx-md-more:hover { text-decoration: underline; }
.fx-md-fine { position: absolute; left: 44px; bottom: 26px; margin: 0; max-width: 46ch; font-size: 12.5px; color: #8b9bbb; line-height: 1.4; animation: fx-md-in .5s .5s both; }
@keyframes fx-md-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* the right column runs the hero's height: the Affinity / Steam clicks switch, then the card */
.fx-maps-hero > .fx-body.fx-md { position: static; }
.fx-md-side { position: relative; z-index: 1; }
.fx-md-col { position: absolute; z-index: 1; top: 36px; right: 44px; bottom: 30px; width: 312px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; animation: fx-md-in .5s .42s both; }
.fx-md-col .fx-md-by { align-self: flex-start; flex: none; }
html[data-skin] body .fx-md .fx-md-by .ds-lane:hover { background: rgba(143, 176, 240, .18); color: #fff; }
html[data-skin] body .fx-md .fx-md-by .ds-lane[aria-selected="true"], html[data-skin] body .fx-md .fx-md-by .ds-lane[aria-selected="true"]:hover { background: #fff; color: #0c1730; }
.fx-md-bar i { transition: width .5s cubic-bezier(.2, .8, .2, 1), background-color .3s; }
/* a switch of measure inside one open market: nothing re-enters, the rows move to their new order */
.fx-maps-hero.fx-still .fx-md-side, .fx-maps-hero.fx-still .fx-md-col, .fx-maps-hero.fx-still .fx-md-fine { animation: none; }
@media (max-width: 1180px) { .fx-body { min-height: 0; } .fx-md { min-height: 430px; } .fx-md-col { width: 288px; } }
@media (max-width: 820px) { .fx-md { padding: 4px 16px 24px; min-height: 0; } .fx-md-side { margin-bottom: 250px; } .fx-md-col { position: static; width: auto; } .fx-md-fine { position: static; margin-top: 12px; } }
@media (prefers-reduced-motion: reduce) { .fx-md-side, .fx-md-col, .fx-md-fine { animation: none; } .fx-md-bar i { transition: none; } }

/* two facts, one per line: never joined by a dot or broken mid-phrase */
.fx-two u { display: block; text-decoration: none; white-space: nowrap; }

/* A market with no scored audience yet: one plain line where its rows would be. */
.fx-md-none { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: #b9c6e2; max-width: 34ch; text-wrap: pretty; }

/* the United States opened on its map by state (Nov 22): the market's line runs across the top so the map starts on the first screen */
.fx-md.has-geo { padding-bottom: 8px; }
.fx-md.has-geo .fx-md-side { width: auto; display: flex; align-items: center; gap: 12px 26px; flex-wrap: wrap; margin-bottom: 4px; }
.fx-md.has-geo .fx-md-name { margin: 0; flex-direction: row; align-items: baseline; gap: 6px 22px; flex-wrap: wrap; padding-left: 16px; }
.fx-md.has-geo .fx-md-name b { font-size: 22px; }
.fx-md.has-geo .fx-md-name .fx-two { display: inline-flex; gap: 18px; }
.fx-md.has-geo .fx-md-name .fx-two u { text-decoration: none; }
.fx-md.has-geo .fx-md-name em { margin-top: 0; }
.fx-md.has-geo .fx-md-name em i { display: inline; margin: 0 8px 0 0; }
.fx-md.has-geo .ds-geo-bar { padding-left: 0; }
@media (max-width: 820px) { .fx-md.has-geo .fx-md-side { margin-bottom: 8px; } .fx-md.has-geo .fx-md-name .fx-two { gap: 12px; } .fx-md.has-geo .fx-md-name em { flex-basis: 100%; } .fx-md.has-geo .fx-md-name em i { display: block; margin: 0 0 3px; } }

/* the panel grows down to a market's own map, or closes back up to the countries (markets.js, panel) */
.fx-maps-hero.fx-panel { overflow: hidden; }
.fx-maps-hero.fx-panel-open > .fx-body { animation: fx-fade-in .7s .55s both; }
.fx-maps-hero.fx-panel-open > .ds-hero-in { animation: fx-fade-in .5s .05s both; }
.fx-maps-hero.fx-panel-close > .ds-hero-in, .fx-maps-hero.fx-panel-close > .fx-body { animation: fx-fade-in .6s .25s both; }
@media (prefers-reduced-motion: reduce) { .fx-maps-hero.fx-panel-open > .fx-body, .fx-maps-hero.fx-panel-open > .ds-hero-in, .fx-maps-hero.fx-panel-close > .ds-hero-in, .fx-maps-hero.fx-panel-close > .fx-body { animation: none; } }

/* The open United States: where its audiences watch, by device, beside the market's name (Nov 22) */
.fx-md-watch { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; margin: 0 0 6px; padding-left: 19px; animation: fx-md-in .5s .34s both; }
.fx-md-watch b { color: #8494b5; font-size: 11.5px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.fx-md-watch span { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; min-width: 104px; }
.fx-md-watch i { font-style: normal; color: #b9c6df; font-size: 14px; }
.fx-md-watch u { text-decoration: none; color: #fff; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; justify-self: end; }
.fx-md-watch em { grid-column: 1 / -1; height: 3px; margin-top: 5px; border-radius: 2px; background: rgba(143, 160, 196, .2); overflow: hidden; }
.fx-md-watch s { display: block; height: 100%; border-radius: 2px; background: #2dd4bf; text-decoration: none; }
.fx-maps-hero.fx-still .fx-md-watch { animation: none; }
@media (max-width: 820px) { .fx-md-watch { padding-left: 0; gap: 10px 16px; } .fx-md-watch b { flex-basis: 100%; } .fx-md-watch span { flex: 1 1 40%; } }
@media (prefers-reduced-motion: reduce) { .fx-md-watch { animation: none; } }
