/* The client's own pages in layout A (Tyler 2026-10-28: "this is perfect"): News (ui/front/news.rs), Profile
   (profile.rs, profile_identity.rs, friend_profile.rs), Store and Collection (cosmetics.rs), sign-in and the name
   choice (title.rs, choose_name.rs) and Settings out of a match (settings.rs). Tokens and the kit (kit.css) only. */

/* A page's heading row: its Silkscreen title and a line beside it. */
.pages-head { display: flex; align-items: baseline; gap: 20px; margin: 0 0 22px; }
.pages-title { margin: 0; font: 400 var(--t-xl-sm)/1.1 var(--font-head); letter-spacing: 1px; text-transform: uppercase; color: var(--you-light); }
.pages-head p { margin: 0; }
.pages-state { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; padding: 20px 24px; }
.pages-state p { margin: 0; }

/* News: the list of updates and the open entry beside it, both as tall as the page. */
.news-page { display: grid; grid-template-columns: 380px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: 24px; height: calc(100cqh * var(--cq-fix, 1)); min-height: 560px; }
.news-page > .pages-state { grid-column: 1 / -1; align-self: start; }
.news-list { min-height: 0; overflow: hidden auto; padding: 18px 16px; }
.news-group { padding: 0 12px 10px; }
.news-entries + .news-group { margin-top: 22px; }
.news-entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.news-entry { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 12px; text-align: left; color: var(--text); background: none; border: 2px solid transparent; font: inherit; cursor: pointer; }
.news-entry-title { font: 700 var(--t-s)/1.3 var(--font-body); }
.news-entry-sub { font-size: var(--t-xs); color: var(--text-faint); }
.news-entry:is(:hover, .virtual-hover) { border-color: var(--steel-line); } .news-entry:is(:hover, .virtual-hover) .news-entry-title { color: var(--you-light); }
.news-entry[aria-current] { border-color: var(--you); background: var(--you-soft); }
.news-entry[aria-current] .news-entry-title { color: var(--you-light); }
.news-entry:focus-visible { outline: 3px solid var(--you-light); outline-offset: -3px; }
/* The patch's banner scrolls away with its notes; only the page heading stays (Tyler, 2026-10-29: "Just keep the
   banner part of the scrollable window"). */
.news-open { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden auto; padding: 0; }
/* The featured scene at the right, shaded under the words. */
.news-banner { position: relative; flex: none; min-height: 300px; display: flex; background: var(--bg-1) right -40px top -60px / 712px 548px no-repeat; image-rendering: pixelated; border-bottom: 2px solid var(--trim); }
.news-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(6 8 18 / 96%) 0, rgb(6 8 18 / 80%) 40%, transparent 72%); }
.news-banner.plain { min-height: 0; }
.news-banner-copy { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 560px; padding: 30px 36px 26px; }
.news-banner-copy p { margin: 0; }
.news-title { margin: 4px 0; font: 400 var(--t-banner)/1.05 var(--font-head); letter-spacing: 4px; text-transform: uppercase; color: var(--you-light); }
.news-hero-name { font: 700 22px/1.2 var(--font-body); }
/* The notes themselves: the page's own HTML in the kit's type and colours. */
.news-body { flex: none; padding: 22px 30px 30px; font-size: var(--t-s); line-height: 1.5; }
.news-body > p { margin: 8px 0; max-width: 900px; }
.news-body h3 { margin: 28px 0 8px; font: 400 var(--t-s)/1.2 var(--font-head); letter-spacing: 2px; text-transform: uppercase; color: var(--trim); }
.news-body h4 { margin: 18px 0 4px; font: 700 var(--t-s)/1.2 var(--font-body); color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.news-body ul { margin: 0; padding-left: 22px; max-width: 900px; }
.news-body li { margin: 6px 0; } .news-body li::marker { color: var(--trim); }
.news-body b { color: var(--you-light); }
.news-body .nerf, .news-body .nerf::marker { color: var(--enemy); }
.news-body .note { color: var(--text-dim); }
.news-body code { color: var(--you-light); }
.news-body table { width: 100%; max-width: 900px; border-collapse: collapse; margin-top: 8px; }
.news-body td { padding: 3px 8px 3px 0; border-bottom: 2px solid var(--plate-edge); vertical-align: top; }
.news-body td:first-child { color: var(--text-faint); width: 50%; }
.news-body summary { cursor: pointer; color: var(--you-light); font-weight: 700; }
.news-body a { color: var(--you-light); }
.news-body .tldr { margin: 18px 0 8px; padding: 16px 20px; border: 2px solid var(--trim-dark); background: var(--plate); }
.news-body .tldr .plate { display: block; margin-bottom: 6px; font: 400 var(--t-s)/1 var(--font-head); letter-spacing: 2px; text-transform: uppercase; color: var(--trim); }
/* The glance figure: its own names for colours, which its inline styles use, set to the kit's. */
.news-body .glance { --g: var(--you); --gl: var(--you-light); --gd: var(--trim); --ge: var(--you-edge); --line: var(--steel-line); --t: var(--text); --dim: var(--text-dim);
  --faint: var(--text-faint); --up: var(--online-text); --down: var(--enemy); --blue: var(--ally); --hf: var(--font-head); margin: 0 0 8px; line-height: 1.4; }
.news-body .glance img { image-rendering: pixelated; }
.news-body .glance .h { display: flex; align-items: center; gap: 12px; margin: 22px 0 10px; font: 400 var(--t-s)/1.2 var(--font-head); letter-spacing: 2px; text-transform: uppercase; color: var(--trim); }
.news-body .glance .h::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--trim-dark), transparent); }
.news-body .glance :is(.stat, .champ, .item, .tile, .flail) { background: var(--field); border: 2px solid var(--plate-edge); box-shadow: inset 0 2px 0 var(--plate-sheen); }
.news-body .glance .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.news-body .glance .stat { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 14px 16px; text-align: left; }
.news-body .glance .stat img { width: 48px; height: 48px; object-fit: contain; }
.news-body .glance .stat b { font: 400 var(--t-xl-sm)/1 var(--font-head); color: var(--you-light); }
.news-body .glance .stat span { font-size: 15px; line-height: 1.3; color: var(--text-dim); }
.news-body .glance .new { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.news-body .glance .champ { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 8px; min-height: 200px; padding: 12px 12px 12px 0; overflow: hidden; }
.news-body .glance .fig { display: flex; align-items: flex-end; justify-content: center; align-self: end; height: 100%; padding-bottom: 4px; }
.news-body .glance .fig img.hook { width: 118px; margin-left: 6px; } .news-body .glance .fig img.pix { width: 84px; }
.news-body .glance .tag { font: 400 12px/1.2 var(--font-head); letter-spacing: 1px; text-transform: uppercase; color: var(--trim); }
.news-body .glance .name { margin: 2px 0; font: 700 var(--t-m)/1.2 var(--font-body); color: var(--you-light); }
.news-body .glance .role { font-size: 14px; color: var(--text-dim); }
.news-body .glance .kit { display: flex; gap: 4px; margin: 8px 0; }
.news-body .glance .kit img { width: 32px; height: 32px; border: 2px solid var(--steel-line); }
.news-body .glance .facts { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.news-body .glance .facts li { position: relative; margin: 4px 0; padding-left: 14px; }
.news-body .glance .facts li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--trim); }
.news-body .glance .rows { display: grid; gap: 6px; }
.news-body .glance .row { display: grid; grid-template-columns: 40px 120px 1fr; gap: 10px; align-items: center; padding: 4px 0 8px; border-bottom: 2px solid var(--plate-edge); }
.news-body .glance .row img { width: 40px; height: 40px; image-rendering: auto; border: 2px solid var(--trim-socket); }
.news-body .glance .row .n { font: 700 var(--t-xs)/1.2 var(--font-body); text-transform: uppercase; color: var(--text-faint); }
.news-body .glance .pills { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.news-body .glance .pill { font: 700 15px/1.3 var(--font-body); white-space: nowrap; }
.news-body .glance .pill em { font-style: normal; }
.news-body .glance .pill.up em { color: var(--online-text); } .news-body .glance .pill.down em { color: var(--enemy); }
.news-body .glance .pill s { color: var(--text-faint); text-decoration: none; }
.news-body .glance .build { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 6px; }
.news-body .glance .item { padding: 10px 8px; text-align: center; }
.news-body .glance .item img { display: block; width: 48px; height: 48px; margin: 0 auto 6px; }
.news-body .glance .item .n { font: 700 var(--t-xs)/1.2 var(--font-body); color: var(--you-light); }
.news-body .glance .item .s { margin-top: 3px; font-size: 13px; color: var(--text-dim); }
.news-body .glance .wares { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.news-body .glance .wares .pic { display: flex; align-items: center; justify-content: center; height: 64px; margin-bottom: 6px; }
.news-body .glance .wares .pic img { width: auto; height: auto; max-width: 100%; max-height: 64px; margin: 0; }
.news-body .glance .wares .pic img.framed { width: 100%; background: center / cover; }
.news-body .glance .item.new2 { border-color: var(--online-text); }
.news-body .glance .ladder { display: grid; gap: 6px; }
.news-body .glance .rung { display: grid; grid-template-columns: 140px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 4px 0 8px; border-bottom: 2px solid var(--plate-edge); }
.news-body .glance .rung .n { font: 700 var(--t-xs)/1.2 var(--font-body); text-transform: uppercase; color: var(--text-faint); }
.news-body .glance .rung .s { grid-row: 2; font-size: 13px; color: var(--text-dim); }
.news-body .glance .rung .art { grid-row: 1 / 3; grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.news-body .glance .rung .art img { width: 56px; height: 56px; }
/* 0.2.9: a banner or a framed banner keeps its own shape in a rung, as on the notes page. */
.news-body .glance .rung .art img.wide { width: auto; height: 56px; image-rendering: auto; }
.news-body .glance .rung .art.small img { width: 44px; height: 44px; }
.news-body .glance .arrow { align-self: center; color: var(--trim); font: 400 20px var(--font-head); }
.news-body .glance .flail { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; margin-top: 8px; padding: 8px 10px; }
.news-body .glance .flail img { width: 48px; height: 48px; }
.news-body .glance .qol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* The kit's own .tile, .row, .stat, .champ and .kit are other things: the glance's are reset here. */
.news-body .glance .tile { display: block; width: auto; padding: 10px 12px; text-align: left; font-size: 14px; color: var(--text-dim); }
.news-body .glance .tile b { display: block; margin-bottom: 3px; font: 700 var(--t-xs)/1.2 var(--font-body); color: var(--text); }
.news-body .glance .bots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.news-body .glance .bot { padding: 8px 9px; border-left: 3px solid var(--trim); background: var(--you-soft); font-size: 13px; color: var(--text-dim); }
.news-body .glance .bot b { display: block; margin-bottom: 2px; color: var(--text); }
.news-body .glance .hero { position: relative; line-height: 0; border: 2px solid var(--plate-edge); }
.news-body .glance .hero > img { display: block; width: 100%; max-width: 712px; height: auto; }
@media (max-width: 1099.98px) {
  .news-page { grid-template-columns: 300px minmax(0, 1fr); column-gap: 16px; }
  .news-banner { min-height: 240px; background-position: right -120px top -100px; }
  .news-title { font-size: var(--t-xl); }
  .news-body .glance :is(.stats, .qol) { grid-template-columns: repeat(2, 1fr); }
  .news-body .glance .wares { grid-template-columns: repeat(3, 1fr); }
  .news-body .glance :is(.new, .bots) { grid-template-columns: 1fr; }
}
/* A phone held upright (Tyler, 2026-11-17: "a lot of the menus are kind of squished and they're not optimized for
   mobile"): one column. The updates are a strip of cards that scrolls sideways along the top, and the open update fills
   the rest under it and scrolls on its own, so a tapped update opens right under the finger and the strip stays in
   reach. Two columns left the open update a sliver 70px wide. */
@media (max-width: 600px) and (orientation: portrait) {
  html.touch .news-page { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
  /* The strip is one line of updates that fades at its right edge, so the next one reads as more to scroll rather than
     cut off (mobile council round 0: the second was clipped, and an upright "Released" label made it tall). A group's
     name lies across the strip before its updates, and only where Upcoming and Released both show. */
  html.touch .news-list { flex: none; display: flex; align-items: center; gap: 6px; overflow: auto hidden; padding: 4px 0 4px 6px; overscroll-behavior-x: contain; scrollbar-width: none;
    container-type: inline-size; scroll-snap-type: x mandatory; scroll-padding-left: 6px; }
  html.touch .news-group { flex: none; margin: 0; padding: 0 4px; white-space: nowrap; }
  html.touch .news-list > .news-group:only-of-type { display: none; }
  html.touch .news-entries + .news-group { margin: 0 0 0 10px; }
  html.touch .news-entries { display: flex; gap: 6px; }
  html.touch .news-entries > li { flex: none; display: flex; }
  /* Each update a card of one width, its name on up to two lines: two stand whole and the next shows only its frame's
     edge, 8px, before any of its words (mobile council round 2, Opus: the second was cut mid-name; round 3, Opus: the
     third's "Al / Pa / 13" showed through the fade). The strip snaps to a card's edge, so it rests the same way. */
  html.touch .news-entries > li { scroll-snap-align: start; }
  html.touch .news-entry { justify-content: center; width: calc(calc(50cqw * var(--cq-fix, 1)) - 10px); min-height: 48px; padding: 4px 10px; }
  /* A compact strip (mobile council round 4, Opus: the chooser took a lot of room): every card two lines at most, so
     one long title no longer makes them all four lines tall, and a released update drops its date, which the open
     update's banner says under the strip; the order is newest first. An upcoming update keeps what it is about. */
  html.touch .news-entry-title { display: -webkit-box; overflow: hidden; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; }
  html.touch .news-list > .news-entries:last-of-type .news-entry-sub { display: none; }
  html.touch .news-open { flex: 1 1 0; }
  /* The scene lies across the top of the banner and the words under it, over a shade that rises from the foot. */
  html.touch .news-banner { min-height: 0; background-position: right -30px top -120px; background-size: 534px 411px; }
  html.touch .news-banner::before { background: linear-gradient(180deg, transparent 0, var(--scrim) 34%, var(--scrim-strong) 62%, var(--bg-1) 100%); }
  html.touch .news-banner-copy { gap: 6px; max-width: none; padding: 92px 16px 18px; }
  html.touch .news-banner.plain .news-banner-copy { padding-top: 18px; }
  html.touch .news-title { font-size: var(--t-xl-sm); letter-spacing: 2px; overflow-wrap: anywhere; }
  /* The version and date on one line (round 3, Opus: "2026" wrapped to a line of its own). */
  html.touch .news-banner-copy > .kit-label { overflow: hidden; font-size: var(--t-badge); letter-spacing: 1px; white-space: nowrap; text-overflow: ellipsis; }
  html.touch .news-hero-name { font-size: var(--t-m); }
  html.touch .news-body { padding: 14px 14px 24px; }
  html.touch .news-body ul { padding-left: 18px; }
  /* A link stands on its own line (Download the patch image): a thumb's height to press. */
  html.touch .news-body a { display: inline-flex; align-items: center; min-height: 36px; }
  html.touch .news-body .tldr { padding: 12px 14px; }
  /* The TL;DR label is pages.css's quiet gold words, not the kit's 380px gold ingot (.plate, screens.css), which ran
     off the phone. */
  html.touch .news-body .tldr .plate { min-width: 0; padding: 0; clip-path: none; background: none; }
  /* The glance's numbers are a list, each number beside its words, in the body face, whose digits are pixel and whose
     letters stay letters: a two-column grid of tiles broke the words into stubs and drew "5 s" as "5 5" (mobile council
     round 0). */
  html.touch .news-body .glance .stats { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  html.touch .news-body .glance .stat { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 12px; }
  html.touch .news-body .glance .stat b { font: 700 var(--t-l)/1.1 var(--font-body); white-space: nowrap; }
  html.touch .news-body .glance .stat span { font-size: var(--t-s); color: var(--text); }
  /* Older notes set their own columns inline: the word stats (Analytics API, Highlights restored) take a row each, so
     their large words fit, and a row of bot orders takes two columns. */
  html.touch .news-body .glance .stats[style] { grid-template-columns: minmax(0, 1fr) !important; }
  html.touch .news-body .glance .stats[style] .stat { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  html.touch .news-body .glance .bots[style] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html.touch .news-body .glance .champ { grid-template-columns: 88px minmax(0, 1fr); min-height: 0; }
  html.touch .news-body .glance .fig img.hook { width: 92px; margin-left: 0; } html.touch .news-body .glance .fig img.pix { width: 72px; }
  /* A balance row puts its changes under the champion's name, beside the portrait. */
  html.touch .news-body .glance .row { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 10px; }
  html.touch .news-body .glance .row > img { grid-row: span 2; }
  html.touch .news-body .glance .row > :nth-child(n + 3) { grid-column: 2; }
  html.touch .news-body .glance .pills { gap: 4px 12px; }
  html.touch .news-body .glance .pill { white-space: normal; }
  html.touch .news-body .glance :is(.wares, .qol) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* A build path runs down the phone, its arrows turned to point down. */
  html.touch .news-body .glance .build { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  html.touch .news-body .glance .build > .arrow { justify-self: center; transform: rotate(90deg); }
  html.touch .news-body .glance .item { padding: 8px 4px; }
  html.touch .news-body .glance .item img { width: 40px; height: 40px; }
  html.touch .news-body .glance .rung { grid-template-columns: 96px minmax(0, 1fr); }
}
/* A phone on its side keeps the two columns, which fit. The frame is zoomed to 0.8 or more, so the notes' links grow to
   a thumb's height and the glance's 12px tags to the kit's smallest size. */
/* A scene's name and tag that only repeat the banner's title and eyebrow (news.rs `hero_repeats`), and a glance card's
   tag that only repeats its section's heading (news.rs `mark_repeated_tags`). */
html.touch :is(.news-banner-copy, .news-body .glance) .news-repeat { display: none; }
/* Both ways round, the notes' pictures of the desktop's own screens (Quick play, the line-up, the feedback panel) are
   left out: shrunk to a phone they cannot be read (mobile council round 1, Opus). They are the only pictures the notes
   draw smooth (inline image-rendering: auto); the game's art is pixelated and stays. The words beside them stand on
   their own. */
html.touch .news-body .glance img[style*="image-rendering:auto"] { display: none; }
@media (orientation: landscape) and (max-width: 1099.98px) {
  html.touch .news-body .glance .stat b { font-family: var(--font-body); font-weight: 700; }
  html.touch .news-body a { display: inline-flex; align-items: center; min-height: calc(44px / var(--client-scale, 1)); }
  html.touch .news-entry { min-height: calc(44px / var(--client-scale, 1)); }
  html.touch .news-body .glance .tag { font-size: var(--t-xs); }
}
/* A small phone on its side (568x320): a narrower list, so the open update's title keeps its words whole. */
@media (orientation: landscape) and (max-width: 699.98px) {
  html.touch .news-page { grid-template-columns: 200px minmax(0, 1fr); column-gap: 12px; }
  html.touch .news-title { font-size: var(--t-xl-sm); letter-spacing: 2px; }
}

/* Shared controls: a row of steel buttons with the chosen one lit, and an Off/On switch in the steel frame. */
.pages-seg { display: inline-flex; flex: none; }
.pages-seg .btn + .btn { margin-left: -4px; }
.pages-switch { display: inline-flex; align-items: center; gap: 10px; flex: none; width: 92px; height: 38px; padding: 0 12px 0 6px; border: 4px solid transparent; border-image: url('/c/21c428881f7c1c8e8af997a3b077a6db135f5fa9e4787d722abb9f29942ad5cd.png') 5 / 10px stretch; background: var(--field) padding-box; image-rendering: pixelated; font: 700 15px/1 var(--font-body); color: var(--text-dim); cursor: pointer; }
.pages-switch i { width: 20px; height: 20px; flex: none; background: var(--line-strong); box-shadow: 0 0 0 2px var(--steel-dark); }
.pages-switch[aria-checked="true"] { flex-direction: row-reverse; justify-content: space-between; padding: 0 6px 0 12px; border-image-source: url('/c/237b4ddb8b6a22cd95523b9185aecfac1bebc5a8cba46a3a7428d6a69a3fe737.png'); color: var(--you-light); }
.pages-switch[aria-checked="true"] i { background: var(--face-gold); }
.pages-switch:disabled { cursor: not-allowed; color: var(--text-faint); }
.pages-switch:focus-visible { outline: 3px solid var(--you-light); outline-offset: 2px; }

/* Profile: a wide identity showcase above the player's journey. */
.profile-page { display: flex; flex-direction: column; gap: 18px; height: calc(100cqh * var(--cq-fix, 1)); min-height: 0; overflow-y: auto; }
.profile-identity { display: grid; grid-template-columns: minmax(280px, 44%) minmax(0, 1fr); min-height: 260px; padding: 0; overflow: hidden; }
.profile-identity-details { display: flex; flex-direction: column; min-width: 0; padding: 12px 20px; background: linear-gradient(110deg, #1a2b37, #101824); }
.profile-banner { position: relative; flex: none; min-height: 260px; height: 100%; background-color: var(--bg-1); background-size: cover; background-position: center; background-repeat: no-repeat; image-rendering: pixelated; border-right: 2px solid var(--trim); }
.profile-lineup { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; align-items: flex-end; gap: 10px; }
.profile-who-block { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 4px 0; text-align: left; }
.profile-title { display: block; min-height: 1.2em; color: var(--you-light); }
.profile-who { margin: 0; font: 700 var(--t-xl)/1.1 var(--font-body); letter-spacing: 0; color: var(--text); overflow-wrap: anywhere; }
.profile-who .faint { margin-left: 10px; font-weight: 400; font-size: 26px; }
/* The name and its editor share one place of one height (Tyler, 2026-10-29: nothing moves when something changes). */
.profile-name-slot { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; width: 100%; height: 96px; }
.profile-name-edit { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.profile-name-row { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.profile-name-row .input { flex: 1; min-width: 0; height: 48px; }
.profile-name-row .profile-help { flex: 1; text-align: left; }
.profile-name-error { position: absolute; top: 100%; left: 0; right: 0; z-index: 1; padding: 4px 8px; background: var(--panel-flat); }
.profile-error { color: var(--enemy); font-weight: 700; font-size: var(--t-s); }
.profile-rule { margin: 6px 0 0; }
.profile-featured-label { padding: 8px 0; }
.profile-featured { flex: none; display: flex; justify-content: flex-start; align-items: flex-start; gap: 14px; height: 104px; padding: 0; }
.profile-featured figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 15px; }
.profile-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 0 0; }
.profile-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }
.profile-welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border: 1px solid var(--trim); background: linear-gradient(110deg, #213747, #101a27); }
.profile-welcome h2 { margin: 5px 0; font: 400 var(--t-xl)/1.1 var(--font-head); color: var(--you-light); }
.profile-welcome p { margin: 0; }
.profile-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--steel-line); }
.profile-tabs button { min-height: 44px; padding: 0 18px; }
.profile-section { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.profile-section[hidden] { display: none; }
.profile-next-goal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.profile-next-goal h3 { margin: 0 0 8px; }
.profile-next-goal p { margin: 4px 0; }
.profile-scope { margin: 0; color: var(--text-dim); font-size: var(--t-xs); }
.profile-stats { display: flex; flex-wrap: wrap; padding: 8px 6px; }
.profile-stat { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; }
.profile-stat + .profile-stat { border-left: 2px solid var(--plate-edge); }
.profile-stat b { font: 400 var(--t-xl-sm)/1 var(--font-head); color: var(--you-light); }
.profile-stat span { font: 700 14px/1 var(--font-body); letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-dim); }
.profile-help { margin: 0; font-size: 15px; }
.profile-main > .profile-help { margin: -10px 0 -6px 12px; }
.profile-tables { display: grid; grid-template-columns: minmax(0, 600fr) minmax(0, 456fr); gap: 20px; }
.profile-record { display: flex; flex-direction: column; gap: 8px; height: 340px; min-width: 0; padding: 16px 20px; }
.profile-scroll { flex: 1; min-height: 0; overflow: auto; }
.profile-table { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.profile-table th { padding: 0 8px 10px; text-align: left; font: 700 13px/1 var(--font-body); letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-faint); }
.profile-table td { padding: 3px 8px; border-top: 2px solid var(--plate-edge); white-space: nowrap; }
.profile-table .num { text-align: right; }
.profile-champ { display: flex; align-items: center; gap: 10px; }
.profile-win { color: var(--you-light); font-weight: 700; } .profile-loss { color: var(--enemy); font-weight: 700; } .profile-draw { color: var(--text-dim); font-weight: 700; }
.profile-customise { flex: 1 1 0; display: flex; flex-direction: column; gap: 14px; min-height: 220px; overflow: hidden auto; padding: 18px 26px; }
.profile-customise > * { flex: none; }
.profile-customise-head { position: sticky; top: -18px; z-index: 1; margin: -18px -26px 0; padding: 18px 26px 6px; background: var(--panel-steel); }
.profile-customise-head { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.pages-note { flex: 1; min-width: 0; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-s); color: var(--text-dim); }
.profile-setline { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.profile-key { flex: none; width: 220px; display: flex; flex-direction: column; gap: 2px; font: 700 var(--t-s)/1.3 var(--font-body); }
.profile-key .faint { font-weight: 400; font-size: 15px; }
.profile-choices { display: flex; flex-wrap: wrap; gap: 12px; }
.profile-banners { align-items: flex-start; } .profile-banners > .profile-key { padding-top: 24px; }
.profile-banner-choice { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; color: var(--text-dim); background: none; border: 0; font: 400 14px/1.2 var(--font-body); cursor: pointer; }
.profile-thumb { display: block; width: 124px; height: 72px; border: 2px solid var(--steel-line); background-size: cover; background-position: center; image-rendering: auto; }
.profile-banner-choice:is(:hover, .virtual-hover) .profile-thumb { border-color: var(--trim); }
.profile-banner-choice[aria-pressed="true"] { color: var(--you-light); font-weight: 700; }
.profile-banner-choice[aria-pressed="true"] .profile-thumb { border-color: var(--you); box-shadow: 0 0 0 2px var(--steel-dark), 0 0 14px var(--you-glow); }
.profile-audience { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.profile-audience > .profile-key { width: auto; max-width: 190px; }
.profile-customise > .profile-help { margin: -8px 0 0 238px; }
.profile-featured-pick { align-items: flex-start; }
.profile-picks { flex: 1; min-width: 0; max-width: 800px; display: flex; flex-wrap: wrap; gap: 6px; }
.profile-pick { padding: 0; line-height: 0; background: none; border: 0; cursor: pointer; }
.profile-pick:disabled { cursor: not-allowed; opacity: 0.45; }
.profile-pick:is(:hover, .virtual-hover):not(:disabled) .socket:not(.on) { border-image-source: url('/c/4054d4a674bdb554cd1c93aea296707690854c1e934830690e4178df43ab41eb.png'); }
.profile-setline > .profile-help { flex: 1; min-width: 260px; }
.profile-privacy { align-items: flex-start; }
.profile-privacy-item { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 15px; color: var(--text-dim); }
.profile-empty { flex: none; }
.profile-page :is(button, input):focus-visible { outline: 3px solid var(--you-light); outline-offset: 2px; }
@media (max-width: 1099.98px) {
  .profile-page { gap: 16px; height: calc(100cqh * var(--cq-fix, 1)); min-height: 0; }
  .profile-customise { flex: none; overflow: visible; }
  .profile-banner { min-height: 220px; }
  /* The champions stand at 1x on the shorter banner: at 1.5x their heads were cut off at 1366 (Ibara re-check). */
  .profile-lineup { zoom: calc(2 / 3); }
  .profile-who { font-size: var(--t-l); } .profile-who .faint { font-size: var(--t-s); }
  .profile-tables { grid-template-columns: minmax(0, 1fr); }
  .profile-record { height: auto; max-height: 300px; }
  .profile-key { width: 160px; } .profile-customise > .profile-help { margin-left: 0; }
  .profile-audience { margin-left: 0; }
}
@media (max-width: 760px) {
  .profile-identity { grid-template-columns: minmax(0, 1fr); }
  .profile-banner { height: 210px; min-height: 210px; border-right: 0; border-bottom: 2px solid var(--trim); }
  .profile-identity-details { padding: 14px; }
  .profile-stat { min-width: 90px; }
  .profile-scroll { overflow-x: auto; }
}

/* A friend's profile in the column's pane: the same banner, title, name and featured champions. */
.friend-profile { display: flex; flex-direction: column; gap: 12px; padding: 4px; }
.friend-profile .profile-banner { height: 120px; background-size: 380px 224px; }
.friend-profile-name { margin: 0; font: 700 var(--t-l)/1.2 var(--font-body); overflow-wrap: anywhere; }
.friend-profile .profile-featured { justify-content: flex-start; padding: 0; }
.friend-profile-history { overflow-x: auto; }

/* The front page, the only screen on the title scene (launch, Tyler 2026-10-29: "We should allow guest play until they
   have a reason to sign up"). The logo at the top left, the one line saying what the game is and the gold Play under
   it, Sign in small beside Settings at the top right and the version at the bottom left. Connecting and an error lie
   over the scene under the button's fixed place, so nothing moves when they show. Choosing a name keeps the moonsteel
   panel. The page's own text (index.html's #about) sits at the bottom right until anything else shows. */
.title-screen .tlogo { left: calc(19 * var(--u)); top: calc(17 * var(--u)); }
.title-screen .tlogo img { width: calc(115 * var(--u)); }
.title-screen .tmenu { left: calc(19 * var(--u)); top: calc(88 * var(--u)); }
.title-signin-slot { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 480px; min-height: 122px; zoom: var(--ui-scale); }
.title-pitch { margin: 0 0 16px; font-size: 24px; line-height: 1.25; text-shadow: 0 1px 2px var(--bg-0), 0 0 8px var(--bg-0); }
.title-signin-slot .btn.big.title-play { width: 100%; height: 76px; padding: 0; font-size: var(--t-l); letter-spacing: 3px; }
/* Under the gold button, the other way in (title.rs): Sign in for a player who has an account, or a guest's Play in a
   browser that has signed in before. Words with a gold link, plain enough to read over the scene. */
.title-other { margin: 14px 0 0; font-size: 20px; line-height: 1.25; text-shadow: 0 1px 2px var(--bg-0), 0 0 8px var(--bg-0); }
.title-other-action { appearance: none; margin: 0; padding: 0 2px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--you-light); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; pointer-events: auto; }
.title-other-action:is(:hover, .virtual-hover, :focus-visible):not(:disabled) { color: var(--text); }
.title-other-action:focus-visible { outline: 2px solid var(--you-light); outline-offset: 3px; }
.title-other-action:disabled { color: var(--text-dim); cursor: default; }
#about { position: fixed; right: 16px; bottom: 16px; z-index: 15; max-width: min(34rem, calc(100vw - 32px)); margin: 0; padding: 6px 10px;
  border-radius: 4px; background: rgba(6, 8, 18, 0.72); font: 14px/1.4 system-ui, sans-serif; color: #cfc6ad; text-align: right;
  text-shadow: 0 1px 2px #060812, 0 0 6px #060812; }
#about p { margin: 0; }
#about a { color: #9fc4ff; }
body:has(#ui > *):not(:has(.title-signin-slot)) #about { display: none; }
.title-signin-status { position: absolute; top: calc(100% + 12px); left: 0; right: 0; font-size: 18px; text-shadow: 0 1px 2px var(--bg-0), 0 0 6px var(--bg-0); }
.title-signin-status p { margin: 0; }
.title-panel { display: flex; flex-direction: column; gap: 16px; width: 560px; padding: 26px 34px 30px; zoom: var(--ui-scale); }
.title-panel p { margin: 0; }
.title-panel-heading { margin: 0; font: 400 var(--t-xl)/1.1 var(--font-head); letter-spacing: 2px; text-transform: uppercase; color: var(--you-light); }
.title-panel-lead { font-size: 20px; }
.title-panel-error { color: var(--enemy); font-weight: 700; }
.title-name-row { display: flex; gap: 12px; margin-top: 8px; }
.title-name-row .input { flex: 1; min-width: 0; width: auto; }
.title-screen .title-version { left: 72px; bottom: 28px; margin: 0; font-size: 15px; }

/* Store and Collection: the items in a framed grid with their filters, the chosen item and the orders beside it. */
.cosmetic-page { display: grid; grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: auto minmax(0, 1fr); gap: 0 24px; height: calc(100cqh * var(--cq-fix, 1)); min-height: 560px; }
.cosmetic-page > :is(.pages-head, .pages-state) { grid-column: 1 / -1; }
.cosmetic-page .pages-head .pages-note { text-align: right; }
/* Shop and Collection, the Store's sub-tabs (cosmetics.rs StoreTabs). */
.store-tabs { display: flex; gap: 4px; align-self: center; }
.cosmetic-browse { display: flex; flex-direction: column; gap: 16px; min-height: 0; padding: 18px 20px; }
.cosmetic-filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.cosmetic-types { display: flex; flex-wrap: wrap; gap: 8px; }
.cosmetic-champion { display: flex; align-items: center; gap: 12px; }
.cosmetic-grid { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-content: start; gap: 14px; padding: 4px; }
.cosmetic-tile { display: flex; flex-direction: column; gap: 4px; padding: 0 0 10px; text-align: left; color: var(--text); background: var(--field); border: 2px solid var(--plate-edge); box-shadow: inset 0 2px 0 var(--plate-sheen); font: inherit; cursor: pointer; }
.cosmetic-tile b, .cosmetic-price { padding: 0 12px; }
.cosmetic-price { font-size: var(--t-xs); color: var(--text-dim); }
.cosmetic-tile:is(:hover, .virtual-hover) { border-color: var(--trim); }
.cosmetic-tile[aria-pressed="true"] { border-color: var(--you); box-shadow: 0 0 0 2px var(--steel-dark), 0 0 14px var(--you-glow); }
.cosmetic-tile[aria-pressed="true"] b { color: var(--you-light); }
.cosmetic-thumbnail { display: block; height: 96px; margin-bottom: 6px; background-color: var(--bg-1); background-size: cover; background-position: center; image-rendering: pixelated; border-bottom: 2px solid var(--plate-edge); }
.cosmetic-avatar-preview { display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--bg-1); border: 1px solid var(--trim); }
.cosmetic-avatar-preview img { width: min(220px, 100%); aspect-ratio: 1; object-fit: cover; image-rendering: pixelated; border: 3px solid var(--trim); }
.cosmetic-titles { display: flex; flex-direction: column; gap: 10px; }
.cosmetic-titles h3, .cosmetic-titles p { margin: 0; }
.cosmetic-title-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.cosmetic-title { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 2px solid var(--steel-line); color: var(--text); background: var(--panel-flat); text-align: left; cursor: pointer; }
.cosmetic-title[aria-pressed="true"] { border-color: var(--you); color: var(--you-light); }
.cosmetic-title span { color: var(--text-dim); font-size: var(--t-xs); }
.cosmetic-title:disabled { opacity: .6; cursor: wait; }
.friend-profile-avatar { width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--trim); image-rendering: pixelated; }
.cosmetic-look { display: flex; align-items: flex-end; justify-content: center; min-height: 100px; padding: 12px; background: var(--bg-1); }
/* The chosen item fills the side above Orders, and Orders keeps one height, so choosing an item, reviewing an order or
   cancelling one moves nothing (Tyler, 2026-10-29: "Never let something that changes readjust"). */
.cosmetic-side { display: flex; flex-direction: column; gap: 20px; min-height: 0; overflow: auto; }
.cosmetic-side > :is(.cosmetic-detail, .pages-state) { flex: 1 1 0; min-height: 0; overflow: hidden auto; }
.cosmetic-detail { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 24px; }
.cosmetic-detail p { margin: 0; }
.cosmetic-name { margin: 0; font: 700 var(--t-l)/1.2 var(--font-body); color: var(--you-light); }
.cosmetic-previews { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.cosmetic-previews > div { flex: 1 1 120px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* A look's preview is one large figure playing the champion's animations in turn (Tyler, 11 November 2026: "Put one
   large walking model"): a stage of its own height, the figure fitted inside it by FitIdle, so nothing overlaps. */
.cosmetic-stage { box-sizing: border-box; width: 100%; height: clamp(220px, calc(40 * var(--vh, 1vh)), 560px); flex: none; overflow: hidden; padding: 16px 12px 10px; }
/* A look's still fills its card's art area at its own shape, feet on the floor ("make them fit the actual size of the
   card"). */
.cosmetic-look-still { box-sizing: border-box; display: flex; padding: 8px 8px 4px; background-image: none; }
.cosmetic-look-still > .spr-still { display: block; width: 100%; height: 100%; }
.cosmetic-banner { height: 72px; border: 2px solid var(--steel-line); background-color: var(--bg-1); background-size: cover; background-position: center; image-rendering: pixelated; }
.cosmetic-enlarged { height: 140px; }
.cosmetic-previews > div:has(.cosmetic-enlarged) { flex-basis: 100%; order: -1; }
.cosmetic-cost { font-weight: 700; }
.cosmetic-orders { flex: none; display: flex; flex-direction: column; gap: 10px; height: 300px; overflow: hidden auto; padding: 18px 20px; }
.cosmetic-orders ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cosmetic-orders li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 0; border-top: 2px solid var(--plate-edge); }
.cosmetic-orders li > span { flex: 1 1 100%; display: flex; flex-direction: column; gap: 2px; font-size: var(--t-s); }
dialog.cosmetic-confirm { width: min(520px, calc(94 * var(--vw, 1vw))); padding: 22px 28px; color: var(--text); }
dialog.cosmetic-confirm[open] { display: flex; flex-direction: column; gap: 12px; }
dialog.cosmetic-confirm::backdrop { background: var(--scrim-strong); }
dialog.cosmetic-confirm p { margin: 0; }
.cosmetic-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (max-width: 1099.98px) { .cosmetic-page { grid-template-columns: minmax(0, 1fr) 340px; gap: 0 16px; } }
/* Packs, skins and membership for money (soc_platform::payments, purchases.rs): tiles of the Store's one grid, the same
   size as every item (Tyler, 11 November 2026: "put it all inside the store section"), their detail beside it, the
   Purchases tab and the page Checkout returns to. A pack's tile draws its looks' figures, membership's the member's gold
   mark, both on the night sky the frame tiles use. */
.paid-thumbnail { display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: radial-gradient(ellipse at 50% 100%, var(--you-soft), transparent 70%), var(--bg-0); }
.paid-figures { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.paid-figures > * + * { margin-left: -14px; }
.paid-figures-large { width: 100%; min-height: 180px; padding: 12px 12px 14px; background: radial-gradient(ellipse at 50% 100%, var(--you-soft), transparent 70%), var(--bg-1); }
.paid-figures-large > * + * { margin-left: -28px; }
.paid-member { align-items: center; }
.paid-member-mark { width: 38%; max-width: 54px; aspect-ratio: 1; transform: rotate(45deg); background: var(--face-gold); box-shadow: 0 0 0 3px #6b4a10, 0 0 26px var(--you-glow); }
/* A pack or skin whose looks an older platform does not name: a plain steel mark of its own, never the member's gold. */
.paid-item { display: flex; align-items: center; justify-content: center; }
.paid-item-mark { width: 34%; max-width: 54px; aspect-ratio: 1; border: 3px solid var(--steel-line); background: var(--bg-1); box-shadow: inset 0 0 0 3px var(--bg-0); }
.paid-contents { display: grid; gap: 6px; width: 100%; }
.paid-contents .kit-label { color: var(--text-dim); }
.paid-ends { color: var(--you); }
/* The price and Buy stay in view at the foot of a detail taller than the panel (a skin's look preview, or 1366x768). */
.cosmetic-page .paid-detail > .cosmetic-acquire { position: sticky; bottom: -20px; z-index: 1; margin: 0 -20px -20px; padding: 12px 20px 16px; width: calc(100% + 40px); background: var(--bg-1); box-shadow: 0 -10px 16px var(--shadow); }
.paid-perks { margin: 0; padding-left: 1.1em; font-size: var(--t-s); line-height: 1.45; color: var(--text); }
.purchases-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(370px, 32%); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 0 18px; height: calc(100cqh * var(--cq-fix, 1)); min-height: 560px; }
.purchases-page > :is(.pages-head, .pages-state) { grid-column: 1 / -1; }
.purchases-page .pages-head .pages-note { text-align: right; }
.purchases-orders { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 168px; max-height: 100%; overflow: hidden auto; padding: 18px 22px; }
.purchases-orders p { margin: 0; }
.purchases-orders ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.purchases-orders ul:empty { display: none; }
.purchases-orders li { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(120px, 160px) 110px; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--steel-line); font-size: var(--t-s); }
.purchases-orders li b { font-size: var(--t-m); overflow-wrap: anywhere; }
.purchases-amount { color: var(--you-light); font-variant-numeric: tabular-nums; text-align: right; }
.purchases-orders li > .dim { text-align: right; font-variant-numeric: tabular-nums; }
.purchases-membership { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 168px; padding: 18px 22px; background: linear-gradient(155deg, var(--steel-flat), var(--bg-1) 70%); }
.purchases-membership p { margin: 0; }
.purchases-membership .cosmetic-name { font-size: var(--t-l); }
.purchases-membership .cosmetic-actions { margin-top: 4px; }
@media (max-width: 1099.98px) { .purchases-page { grid-template-columns: minmax(0, 1fr) minmax(320px, 36%); gap: 0 16px; } .purchases-orders li { grid-template-columns: minmax(0, 1fr) 64px 130px 96px; gap: 8px; } }
.paid-receipt { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 640px; margin: 48px auto; padding: 28px 32px; }
.paid-receipt p { margin: 0; }
/* Community (soc_platform::community): the join page, the members' list of posts and one post with its files, poll and
   feedback, in one readable column. */
.community-page { max-width: 880px; margin: 0 auto; }
.community-join { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 32px; }
.community-join h3 { margin: 0; font: 700 var(--t-m)/1.2 var(--font-body); color: var(--you-light); }
.community-join p, .community-post p { margin: 0; }
.community-price { font-weight: 700; }
.community-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.community-item { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 20px; text-align: left; color: var(--text); font: var(--t-s)/1.3 var(--font-body); cursor: pointer; }
.community-item b { flex: 1 1 280px; font-size: var(--t-m); color: var(--you-light); }
.community-item:hover, .community-item:focus-visible { outline: 2px solid var(--you-light); outline-offset: -2px; }
.community-back { margin-bottom: 12px; }
.community-post { display: flex; flex-direction: column; gap: 14px; padding: 24px 32px; line-height: 1.5; }
.community-meta { display: flex; align-items: center; gap: 12px; font-size: var(--t-s); }
.community-title { margin: 0; font: 700 var(--t-l)/1.2 var(--font-body); color: var(--you-light); }
.community-media { display: block; max-width: 100%; max-height: 480px; border: 2px solid var(--plate-edge); background: var(--bg-0); }
.community-poll, .community-feedback { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 2px solid var(--plate-edge); }
.community-poll h4, .community-feedback h4 { margin: 0; font: 700 var(--t-m)/1.2 var(--font-body); }
.community-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.community-option { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; overflow: hidden; text-align: left;
  color: var(--text); font: var(--t-s)/1.2 var(--font-body); background: var(--face-steel); border: 2px solid var(--line); cursor: pointer; }
.community-option:hover:not(:disabled) { background: var(--face-steel-hover); }
.community-option:disabled { cursor: default; }
.community-option.mine { border-color: var(--you); }
.community-bar { position: absolute; inset: 0 auto 0 0; background: var(--you-soft); pointer-events: none; }
.community-option-label { position: relative; flex: 1; }
.community-count { position: relative; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.community-feedback textarea { width: 100%; box-sizing: border-box; min-height: 6rem; resize: vertical; padding: var(--s2) var(--s3); background: var(--bg-0); color: var(--text);
  border: 2px solid var(--line-strong); border-radius: var(--radius); font: var(--t-s)/1.4 var(--font-body); }
.community-feedback textarea:focus-visible { outline: 2px solid var(--you-light); outline-offset: 0; }
/* Player card (launch profile art): a launch banner is its 760 × 300 card crop; the frame sits over the banner. */
.profile-banner.launch { background-size: cover; background-position: center; }
.card-frame { position: absolute; top: 0; left: 50%; width: 760px; height: 300px; transform: translateX(-50%); pointer-events: none; image-rendering: pixelated; }
.profile-identity .card-frame, .friend-profile .card-frame { left: 0; width: 100%; height: 100%; transform: none; }
.card-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 16px; }
.card-crest, .card-mastery, .card-achievement { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.card-level { display: flex; flex-direction: column; min-width: 0; }
.card-level-line { display: flex; align-items: baseline; gap: 8px; }
.card-crest b { font-size: 22px; }
.card-crest img, .card-badge img, .card-achievement img, .card-mastery-portrait img, .profile-progress img { image-rendering: pixelated; }
.card-mastery-portrait { position: relative; width: 48px; height: 48px; }
.card-mastery-portrait > img { position: absolute; inset: 0; pointer-events: none; }
.card-badges-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-badges-label { color: var(--text-dim); font-size: var(--t-xs); }
.card-badges { display: flex; gap: 6px; }
.card-badge { display: grid; place-items: center; width: 32px; height: 32px; }
.card-badge.empty { border: 2px dashed var(--steel-line); }
.cosmetic-compact { width: 190px; height: 60px; }
.profile-progress { display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; }
.goals-heading { padding: 6px 0 14px; border-bottom: 1px solid var(--steel-line); }
.goals-heading h3 { margin: 5px 0; font: 400 var(--t-xl)/1.1 var(--font-head); color: var(--you-light); }
.profile-goal { padding: 16px; border: 1px solid var(--trim); background: linear-gradient(100deg, #253c4b, #142130); }
.profile-goal h4 { color: var(--you-light); margin-bottom: 8px; }
.profile-achievements { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.profile-achievements li { padding: 12px; border: 1px solid var(--steel-line); background: var(--panel-flat); }
.achievement-progress { display: flex; flex-direction: column; gap: 6px; width: 90px; flex: none; text-align: right; }
.achievement-progress progress { width: 100%; }
.profile-progress p, .profile-progress h4 { margin: 0; }
.profile-progress-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.profile-progress-head h3 { margin: 0; }
.profile-progress-head progress { flex: 1 1 120px; min-width: 0; }
.profile-steps, .profile-achievements, .profile-mastery { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.profile-steps li, .profile-achievements li, .profile-mastery li { display: flex; align-items: center; gap: 10px; }
.profile-steps li > span:first-child, .profile-achievements li > span { display: flex; flex: 1; flex-direction: column; }
.profile-achievements li:not(.done) img { opacity: 0.45; filter: grayscale(1); }
.profile-steps li.done b, .profile-achievements li.done > b { color: var(--you-light); }

/* Guests (ui/front/guest.rs): a limit's reason with Sign in; the results' offer to keep progress (a card beside them
   after the first and third matches, which covers nothing); the note after signing in to an existing profile; "Guest"
   in the account chip. The MOBA question and Training's resume share the card's look in a scrim of their own. */
.guest-reason { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
/* A guest's social column: one quiet line, not the party and Friends (guest.rs GuestSocial). */
.guest-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: var(--t-s); }
.guest-reason p { margin: 0; }
.guest-keep { display: flex; flex-direction: column; gap: 12px; padding: 22px 26px; }
.guest-keep h2, .guest-notice h2 { margin: 0; font: 400 var(--t-l)/1.15 var(--font-head); letter-spacing: 1px; text-transform: uppercase; color: var(--you-light); }
.guest-keep p, .guest-notice p { margin: 0; }
.guest-keep-actions { gap: 12px; flex-wrap: wrap; }
.moba-question { max-width: 520px; }
.moba-question .moba-question-back { margin: 4px 0 0; font-size: var(--t-s); }
.guest-keep-scrim.moba-question-scrim { z-index: var(--z-modal); background: var(--page-shade), var(--bg-0) url('/c/36df47e96c1ecad9f5f9744c26333f62cc384f9b702cf3afe076950a09200605.png') left top / max(1920px, 100%, calc(100 * var(--vh, 1vh) * 16 / 9)) auto no-repeat; image-rendering: pixelated; } /* mounted at the shell's root, over the top bar and every page; opaque, so the question is the only decision on screen */
.guest-keep-scrim.lost-scrim { z-index: var(--z-modal); pointer-events: auto; } /* a lost connection, or Training waiting for a server: over the match, its HUD and the front pages. `#ui` takes no pointer events, so it takes its own (its Home did nothing without, headless probe of 0c6753c1a) */
.lost-panel { max-width: 34rem; } .lost-panel .lost-timer { color: var(--text-dim); margin: 0; }
.guest-keep-scrim { position: fixed; inset: 0; z-index: 2; display: grid; place-items: center; background: color-mix(in srgb, var(--bg-0) 70%, transparent); }
.guest-keep.card { margin-top: 12px; }
/* On the results the card is one strip above the footer: the heading over its line, Sign in and Not now beside them,
   so the scoreboard keeps its rows at 1280x720 (guest walk, 11 November 2026: as a full card it left three). */
.results-screen .guest-keep.card { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 20px; margin: 0; padding: 10px 20px; }
.results-screen .guest-keep.card h2 { grid-column: 1; font-size: var(--t-m); }
.results-screen .guest-keep.card p { grid-column: 1; }
.results-screen .guest-keep.card .guest-keep-actions { grid-column: 2; grid-row: 1 / span 2; align-items: center; flex-wrap: nowrap; }
/* Over the top of the page, one line under another and sized to its words: .client-main is a row, where it took the
   page's full height beside the page. */
.guest-notice { position: absolute; top: 12px; left: 24px; z-index: 3; max-width: min(720px, calc(100% - 48px)); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 20px; }
/* A lost match is the page's one message: in the middle, over the page's top third, wider set (first fifteen minutes, F06). */
.guest-notice.match-lost { top: 22%; left: 50%; transform: translateX(-50%); min-width: 420px; gap: 10px; padding: 22px 28px; }
.guest-label { color: var(--you-light); }
/* The guest chip by the name (Tyler, 9 November 2026): Guest, and where its progress is kept, under the name. */
.guest-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; }
.guest-chip::before { display: none; }
.guest-chip b { font-weight: 400; }
.guest-chip small { font-size: var(--t-xs); color: var(--text-dim); white-space: nowrap; }
/* What a guest earned is held for it until it signs in: the Held for you tag, the line and Sign in, on results, Home
   and Profile. */
.guest-held { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; }
.guest-held-tag { vertical-align: middle; padding: 2px 8px; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 1px; color: var(--bg-0); background: var(--you-light); }
/* How to play full screen on an iPhone (ui/front/home_screen.rs): Safari only, until Hide. On Home's hero, and at the
   foot of the title's right side, over its art, since a new guest goes from the title's Play straight to Training or
   Quick play. The steps for the way up the phone is held, then Hide. */
.home-screen-tip { display: flex; align-items: center; gap: 6px 12px; margin: 10px 0 0; padding: 6px 6px 6px 12px; text-align: left;
  font-size: var(--t-s); line-height: 1.3; color: var(--text); background: rgb(6 8 18 / 62%); border-left: 3px solid var(--you); }
.home-screen-tip p { flex: 1; margin: 0; }
.home-screen-tip .upright { display: none; }
.home-screen-tip .btn { flex: none; min-width: 64px; min-height: 40px; }
@media (orientation: portrait) {
  .home-screen-tip .sideways { display: none; }
  .home-screen-tip .upright { display: inline; }
}
/* At the foot of the title's first screen as Safari shows it with its bars (100svh: 100vh is the height without them,
   which put the foot under the bars), so it scrolls away with it; `#ui` takes no pointer events, so it takes its own.
   On its side it keeps to the right half, over the art, clear of the scroll cue and the version on the left (an iPhone
   SE is 568 wide). Upright that foot is the cue's and the version's, which the tip stands in for until Hide: the page
   still scrolls. */
.title-hero .home-screen-tip { position: absolute; top: calc(100svh - max(10px, env(safe-area-inset-bottom, 0px))); right: max(12px, env(safe-area-inset-right, 0px)); transform: translateY(-100%);
  z-index: 30; width: max-content; max-width: calc(100vw - 24px); margin: 0; background: rgb(6 8 18 / 96%);
  box-shadow: 0 6px 18px rgb(0 0 0 / 55%); pointer-events: auto; }
@media (orientation: landscape) { .title-hero .home-screen-tip { max-width: min(480px, calc(50vw - 24px)); } }
@media (orientation: portrait) { .title-screen:has(.title-hero .home-screen-tip) :is(.title-more-cue, .title-version) { visibility: hidden; } }
/* 320 wide (an SE or a mini with Display Zoom), the steps in two lines, not three; and in a short window the menu
   stands higher over the champions' feet, so Sign in stays clear of the tip. */
@media (orientation: portrait) and (max-width: 359.98px) { .title-hero .home-screen-tip { gap: 8px; padding-right: 2px; font-size: var(--t-xs); } .title-hero .home-screen-tip .btn { min-width: 56px; } }
@media (orientation: portrait) and (max-height: 579.98px) { html.touch .title-screen:has(.title-hero .home-screen-tip) .title-hero .tmenu { translate: 0 -44px; } }
/* The one sign-in panel (ui/front/sign_in_panel.rs): what signing in gives, patch news, Continue with Google. */
dialog.sign-in-panel { width: min(520px, calc(100 * var(--vw, 1vw) - 32px)); padding: 22px 28px; color: var(--text); pointer-events: auto; }
dialog.sign-in-panel[open] { display: flex; flex-direction: column; gap: 12px; }
dialog.sign-in-panel::backdrop { background: var(--scrim-strong); }
dialog.sign-in-panel h2 { margin: 0; font: 400 var(--t-l)/1.15 var(--font-head); letter-spacing: 1px; text-transform: uppercase; color: var(--you-light); }
dialog.sign-in-panel p { margin: 0; }
.sign-in-gives { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.sign-in-news { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: color-mix(in srgb, var(--bg-0) 45%, transparent); cursor: pointer; }
.sign-in-news input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.sign-in-news span { display: flex; flex-direction: column; gap: 2px; }
.sign-in-news small { color: var(--text-dim); }
.sign-in-fine { font-size: var(--t-xs); color: var(--text-dim); }
.sign-in-actions { gap: 12px; flex-wrap: wrap; }
/* The feedback panel (ui/front/feedback.rs): one dialog over any screen, the match included. `#ui` takes no pointer
   events, so the panel takes its own. Its box comes first, so the panel opens with the cursor in it. */
dialog.feedback-panel { width: min(560px, calc(100 * var(--vw, 1vw) - 32px)); padding: 22px 28px; color: var(--text); pointer-events: auto; }
dialog.feedback-panel[open] { display: flex; flex-direction: column; gap: 12px; }
dialog.feedback-panel::backdrop { background: var(--scrim-strong); }
dialog.feedback-panel h2 { margin: 0; font: 400 var(--t-l)/1.15 var(--font-head); letter-spacing: 1px; text-transform: uppercase; color: var(--you-light); }
dialog.feedback-panel p { margin: 0; }
.feedback-private, .feedback-status, .feedback-kind-label, .feedback-talk { font-size: var(--t-s); color: var(--text-dim); }
.feedback-text { width: 100%; box-sizing: border-box; min-height: 8rem; resize: vertical; padding: var(--s2) var(--s3); background: var(--bg-0); color: var(--text); border: 2px solid var(--line-strong); border-radius: var(--radius); font: var(--t-m)/1.4 var(--font-body); }
.feedback-text:focus-visible { outline: 2px solid var(--you-light); outline-offset: 0; }
.feedback-status { display: flex; flex-wrap: wrap; gap: 0 10px; }
.feedback-status b { font-weight: 400; color: var(--you-light); }
.feedback-kinds { gap: 8px; flex-wrap: wrap; align-items: center; }
.feedback-kind-label { flex: 0 0 100%; }
.feedback-actions { gap: 12px; flex-wrap: wrap; align-items: center; }
.feedback-talk a { color: var(--you-light); }
.chat-editor .guest-reason { padding: 6px 8px; }

/* Community: latest news and the current vote lead into the member archive. */
.community-hub { display: grid; gap: 18px; }
.community-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.community-feature { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 150px; padding: 22px; text-align: left; color: var(--text); }
button.community-feature { width: 100%; cursor: pointer; }
button.community-feature:hover, button.community-feature:focus-visible { outline: 2px solid var(--you-light); outline-offset: -2px; }
.community-feature strong { color: var(--you-light); font: 700 var(--t-l)/1.2 var(--font-body); }
.community-feature p { margin: 0; }
.community-feature-action { margin-top: auto; color: var(--you-light); }
.community-feed-heading { margin: 0; font: 700 var(--t-m)/1.2 var(--font-body); }
@media (max-width: 650px) { .community-featured { grid-template-columns: 1fr; } }

.community-outcome { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-left: 3px solid var(--you); background: var(--you-soft); }
.community-outcome h4 { margin: 0; color: var(--you-light); font: 700 var(--t-m)/1.2 var(--font-body); }

/* Shared themed choice menu. Options remain ordinary keyboard-focusable buttons. */
.forge-select { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 180px; }
.forge-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 180px; text-align: left; }
.forge-select-dismiss { position: fixed; inset: 0; z-index: 20; border: 0; background: transparent; }
.forge-select-menu { position: absolute; z-index: 21; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; max-height: min(320px, calc(50 * var(--vh, 1vh))); overflow: auto; padding: 5px; border: 2px solid var(--steel-line); background: var(--panel-steel); box-shadow: 0 10px 24px #000a; }
.forge-select-option { padding: 9px 12px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.forge-select-option:hover, .forge-select-option:focus-visible { outline: 2px solid var(--you-light); outline-offset: -2px; background: var(--you-soft); }
.forge-select-option[aria-pressed="true"] { color: var(--you-light); background: var(--you-soft); }
.profile-avatar { display: block; width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--trim); }

/* Store's assembled identity previews: the selected item is a local draft, not equipment. */
.cosmetic-preview-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; min-width: 0; }
.cosmetic-preview-pair > div { display: grid; gap: 6px; min-width: 0; }
.cosmetic-profile-preview .profile-lineup { bottom: 0; }
