/* The profiles library (/profiles), the share form (/share) and the review page (/review).
   Colors, sizes and speeds come from tokens.css; frames from frames.css; controls from controls.css. */

.lib-hero { padding: 72px 0 0; }
.lib-hero .wrap { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.lib-hero .words { flex: 1 1 520px; }
.lib-hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.06; }
.lib-hero h1 .g { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lib-hero .lead { margin: 18px 0 0; max-width: 600px; }
.lib-hero .lead kbd, .how kbd { font: 600 13px var(--font-game); color: var(--mid); background: rgba(242, 238, 230, 0.06); padding: 1px 6px; border-radius: 4px; }

/* ---- W.Input: a dark box with a 1 px edge; the edge takes the accent on focus ---- */
.winput {
  width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: 6px; outline: none;
  font: 15px var(--font-body); color: var(--ink-value); background: #0e0e10; box-shadow: inset 0 0 0 1px var(--chip-edge);
  transition: box-shadow var(--fast) var(--ease);
}
.winput::placeholder { color: var(--ink-off); }
.winput:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mid) 50%, var(--chip-edge)); }
.winput:focus, .winput:focus-visible { box-shadow: inset 0 0 0 1px var(--mid), 0 0 0 3px color-mix(in srgb, var(--mid) 18%, transparent); outline: none; }
textarea.winput { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
textarea.winput.code { font: 12.5px/1.5 ui-monospace, 'Cascadia Code', Consolas, monospace; min-height: 120px; word-break: break-all; }
.search { position: relative; }
.search .winput { padding-left: 36px; }
.search svg { position: absolute; left: 12px; top: 10px; width: 16px; height: 16px; color: var(--ink-label); pointer-events: none; }

/* ---- the bar over the list ---- */
.toolbar { margin-top: 44px; display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 14px 28px; align-items: center; }
.toolbar .sorts { display: flex; gap: 22px; justify-self: end; }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chiprow .lbl { color: var(--ink-label); font-size: 13px; margin-right: 6px; min-width: 40px; }
.filters { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; }
.chip .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--dot); }

/* ---- the grid of profiles ---- */
.lib { padding-top: 28px; }
.count { color: var(--ink-label); font-size: 13px; margin: 18px 0 14px; min-height: 21px; }
/* the library page runs wider than the others so the screenshots are big enough to read */
.wide .wrap { max-width: 1680px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); gap: 22px; }
.pcard { display: flex; cursor: pointer; outline: none; text-align: left; border: 0; padding: 0; background: none; color: inherit; font: inherit;
  transition: transform var(--fast) var(--ease); }
.pcard > .in { position: relative; inset: auto; margin: var(--t); flex: 1; display: flex; flex-direction: column; overflow: hidden; border-radius: 2px; }
.pcard > .sh.b { transition: border-color var(--fast) var(--ease); }
.pcard:hover, .pcard:focus-visible { transform: translateY(-3px); }
.pcard:hover > .sh.b, .pcard:focus-visible > .sh.b { border-image: linear-gradient(90deg, var(--lo), var(--hi)) 1; }
.pic { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0e0e10; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--normal) var(--ease), transform var(--slow) var(--ease); }
.pic img.in { opacity: 1; }
.pcard:hover .pic img { transform: scale(1.03); }
.pic .none { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--plo, var(--lo)), var(--phi, var(--hi))); opacity: 0.55; }
.pic .none span { font: 300 44px var(--font-head); color: var(--ink-value); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
.pcard .body { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard h3 { font-size: 17px; font-weight: 400; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .by { font-size: 13px; color: var(--ink-label); }
.pcard .by .upd::before { content: '·'; margin: 0 6px; }
.meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; font: 600 13px var(--font-game); letter-spacing: 0.02em; color: var(--ink-label); }
.meta .cls { color: var(--cc, var(--ink-text)); }
.meta .nums { margin-left: auto; display: flex; gap: 12px; }
.meta .n { color: var(--mid); }
.meta svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; color: var(--ink-label); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tag { height: 20px; padding: 0 8px; border-radius: 6px; font: 600 12px/20px var(--font-game); color: var(--ink-label); background: var(--chip-off); box-shadow: inset 0 0 0 1px var(--chip-edge); }

.empty { padding: 60px 0; text-align: center; color: var(--ink-label); font-size: 15px; }
.empty .wbtn { margin-top: 18px; }
.loadmore { display: flex; justify-content: center; margin-top: 28px; }
.loadmore[hidden] { display: none; }

/* cards come in like the addon's list rows: fade and lift 4 px, a little apart */
.js .pcard.enter { opacity: 0; transform: translateY(4px); }
.pcard.enter.on { opacity: 1; transform: none; transition: opacity var(--normal) var(--ease), transform var(--normal) var(--ease); }
.skel { aspect-ratio: 16 / 13; border-radius: 6px; background: linear-gradient(90deg, #17171a, #1d1c1f, #17171a); background-size: 200% 100%; animation: skel 1.4s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }

/* ---- a profile, opened (a window: Win.Feel, fade on a sine and rise 8 px; leaves with a fade) ---- */
dialog.peek { padding: 0; border: 0; background: none; color: inherit; max-width: min(920px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 32px); overflow: visible; }
dialog.peek::backdrop { background: rgba(8, 8, 10, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--open) var(--ease-sine); }
dialog.peek[open].on::backdrop { opacity: 1; }
dialog.peek > .win { opacity: 0; transform: translateY(8px); transition: opacity var(--open) var(--ease-sine), transform var(--open) var(--ease); }
dialog.peek.on > .win { opacity: 1; transform: none; }
dialog.peek.leaving > .win { opacity: 0; transform: none; transition: opacity var(--close) var(--ease); }
dialog.peek.leaving::backdrop { opacity: 0; transition: opacity var(--close) var(--ease); }
.win > .in { position: relative; inset: auto; margin: var(--t); max-height: calc(100dvh - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--band-lit) transparent; }
.peek .pic { aspect-ratio: 16 / 9; }
.peek .pic img { cursor: zoom-in; }
.peek .top { padding: 20px 24px 0; display: flex; align-items: flex-start; gap: 16px; }
.peek h2 { font-size: 26px; line-height: 1.15; }
.peek .by { margin-top: 4px; color: var(--ink-label); font-size: 14px; }
.peek .grid2 { display: grid; grid-template-columns: 1fr 260px; gap: 28px; padding: 16px 24px 24px; }
.peek .about { white-space: pre-line; font-size: 15px; line-height: 1.65; color: var(--ink-text); }
.peek .about:empty { display: none; }
.peek .goes { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.peek .goes[hidden] { display: none; }
.peek .goes .lbl { color: var(--ink-label); font-size: 12px; }
.peek .goes a { display: flex; align-items: baseline; gap: 8px; color: var(--ink-text); text-decoration: none; font-size: 14px; }
.peek .goes a .what { color: var(--ink-label); font-size: 12px; }
.peek .goes a .cls { font-size: 12px; }
.peek .goes a:hover .nm, .peek .goes a:focus-visible .nm { color: var(--mid); }
.peek dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.peek dt { color: var(--ink-label); }
.peek dd { margin: 0; color: var(--ink-value); }
.peek dd .n { color: var(--mid); font-weight: 600; }
.peek .acts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.peek .acts .row { display: flex; gap: 10px; }
.peek .acts .row .wbtn { flex: 1; min-width: 0; }
.how { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--ink-label); }
.how b { color: var(--ink-text); font-weight: 500; }

/* W.Close: the X, top right; tan, the accent on hover */
.wclose { flex: none; margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; cursor: pointer;
  background: none; color: var(--ink-label); transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.wclose:hover, .wclose:focus-visible { color: var(--mid); background: rgba(242, 238, 230, 0.05); outline: none; }
.wclose svg { width: 14px; height: 14px; }

.wbtn.liked .lbl { color: var(--mid); }
.wbtn .lbl svg { width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px; }
.wbtn[disabled] { cursor: default; opacity: 0.5; }

/* a short line that fades in under a button ("Copied", an error) */
.say { min-height: 21px; font-size: 13px; color: var(--ink-label); opacity: 0; transition: opacity var(--normal) var(--ease); }
.say.on { opacity: 1; }
.say.good { color: var(--ink-good); }
.say.bad { color: var(--ink-bad); }

/* ---- the share form ---- */
.form-wrap { padding-top: 44px; }
.form { max-width: 760px; }
.form > .in { position: relative; inset: auto; margin: var(--t); padding: 28px 32px 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field[hidden] { display: none; }
.field.wide { grid-column: 1 / -1; }
.field > label, .field > .lbl { font-size: 13px; color: var(--ink-label); font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--ink-off); line-height: 1.5; }
.field .hint b { color: var(--ink-label); font-weight: 500; }
.drop { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 7; border-radius: 6px; cursor: pointer; overflow: hidden;
  background: #0e0e10; box-shadow: inset 0 0 0 1px var(--chip-edge); color: var(--ink-label); font-size: 14px; text-align: center; padding: 16px;
  transition: box-shadow var(--fast) var(--ease); }
.drop:hover, .drop.over, .drop:focus-within { box-shadow: inset 0 0 0 1px var(--mid); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .x { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(14, 14, 16, 0.8); }
/* the cover big on the left, the two extra screenshots stacked beside it */
.drops { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.drops #drop { grid-row: 1 / 3; aspect-ratio: auto; min-height: 200px; }
.drops .drop.more { aspect-ratio: 16 / 9; font-size: 13px; padding: 10px; }
.drops .drop img { opacity: 0; transition: opacity var(--normal) var(--ease); }
.drops .drop img.in { opacity: 1; }
@media (max-width: 600px) {
  .drops { grid-template-columns: 1fr 1fr; }
  .drops #drop { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 9; min-height: 0; }
}
.form .end { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done > .in { position: relative; inset: auto; margin: var(--t); padding: 28px 32px; }
.done h2 { font-size: 28px; }
.done p { margin-top: 12px; color: var(--ink-text); }
.done .keep { margin-top: 18px; display: flex; gap: 10px; }
.done .keep .winput { font: 13px ui-monospace, Consolas, monospace; color: var(--mid); }
.warnline { color: var(--ink-label); }
.warnline b { color: var(--ink-warn); font-weight: 600; }

/* ---- the review page ---- */
.review-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.rrow > .in { position: relative; inset: auto; margin: var(--t); display: grid; grid-template-columns: 240px 1fr auto; gap: 18px; padding: 14px; align-items: start; }
.rrow .pic { border-radius: 4px; }
.rrow .pics .extra { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.rrow .pics .extra a { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #0e0e10; }
.rrow .pics .extra img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--normal) var(--ease); }
.rrow .pics .extra img.in { opacity: 1; }
.rrow h3 { font-size: 18px; font-weight: 400; }
.rrow .about { font-size: 14px; color: var(--ink-text); white-space: pre-line; margin-top: 6px; max-height: 6.5em; overflow: auto; }
.rrow .acts { display: flex; flex-direction: column; gap: 8px; }
.keybox { display: flex; gap: 10px; max-width: 520px; margin-top: 20px; }

@media (max-width: 860px) {
  .toolbar { grid-template-columns: 1fr; }
  .toolbar .sorts { justify-self: start; }
  .peek .grid2 { grid-template-columns: 1fr; }
  .rrow > .in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lib-hero { padding-top: 48px; }
  .form > .in { grid-template-columns: 1fr; padding: 22px 18px; }
  .peek .top, .peek .grid2 { padding-left: 16px; padding-right: 16px; }
  .chiprow .lbl { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .pcard.enter, .pic img, dialog.peek > .win { transition: none; transform: none; }
  .skel { animation: none; }
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
dialog.peek:focus, dialog.peek:focus-visible { outline: none; }
/* the copy button stays in view: the big screenshot gives up height first */
.peek .pic { max-height: 46vh; width: 100%; }
.wbtn[hidden] { display: none; }

/* ---- big screens: the screenshot fills the window, the details sit beside it ---- */
@media (min-width: 1100px) {
  dialog.peek { max-width: min(1640px, calc(100vw - 48px)); }
  .win > .in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto 1fr; overflow: hidden; }
  .peek .pic { grid-row: 1 / span 2; align-self: center; max-height: calc(100dvh - 64px); }
  .peek .top { grid-column: 2; padding: 22px 22px 0; }
  .peek .grid2 { grid-column: 2; grid-template-columns: 1fr; gap: 18px; padding: 14px 22px 22px; overflow-y: auto; align-content: start; }
}
/* the opened screenshot shows whole, never cropped (ultrawide shots too) */
.peek .pic img { object-fit: contain; }

/* "Click to enlarge": a small chip that fades in over the picture */
.peek .pic .enlarge { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border: 0; border-radius: 7px; cursor: zoom-in; font: 600 13px var(--font-game); letter-spacing: 0.02em; color: var(--ink-text);
  background: rgba(14, 14, 16, 0.78); box-shadow: inset 0 0 0 1px var(--chip-edge); opacity: 0; transition: opacity var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.peek .pic .enlarge svg { width: 14px; height: 14px; }
.peek .pic:hover .enlarge, .peek .pic .enlarge:focus-visible { opacity: 1; }
.peek .pic .enlarge:hover, .peek .pic .enlarge:focus-visible { box-shadow: inset 0 0 0 1px var(--mid); outline: none; }
@media (hover: none) { .peek .pic .enlarge { opacity: 1; } }

/* more than one screenshot: arrows at the sides and dots at the bottom, shown on hover like the enlarge chip */
.peek .pic .flip { position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; color: var(--ink-label); background: rgba(14, 14, 16, 0.78); box-shadow: inset 0 0 0 1px var(--chip-edge);
  opacity: 0; transition: opacity var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.peek .pic .flip svg { width: 16px; height: 16px; }
.peek .pic .flip.prev { left: 12px; }
.peek .pic .flip.next { right: 12px; }
.peek .pic:hover .flip, .peek .pic .flip:focus-visible { opacity: 1; }
.peek .pic .flip:hover, .peek .pic .flip:focus-visible { color: var(--mid); box-shadow: inset 0 0 0 1px var(--mid); outline: none; }
.peek .pic .dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px 9px;
  border-radius: 999px; background: rgba(14, 14, 16, 0.6); }
.peek .pic .dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--ink-off);
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease); }
.peek .pic .dot:hover { background: var(--ink-label); }
.peek .pic .dot.on { background: var(--mid); transform: scale(1.25); }
@media (hover: none) { .peek .pic .flip { opacity: 1; } }

/* the screenshot full screen: fades in over everything, any click or Esc goes back */
/* one track the size of the screen, so the picture's max-height has a height to
   go by: in an auto-sized grid row it went unlimited and a tall picture ran off */
.zoomview { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; cursor: zoom-out;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr); overscroll-behavior: contain;
  background: rgba(8, 8, 10, 0.94); opacity: 0; pointer-events: none; transition: opacity var(--normal) var(--ease); }
.zoomview img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.97); transition: transform var(--normal) var(--ease); }
.peek.zoomed .zoomview { opacity: 1; pointer-events: auto; }
.peek.zoomed .zoomview img { transform: none; }
.zoomview .wclose { position: absolute; top: 16px; right: 16px; background: rgba(14, 14, 16, 0.8); }
@media (prefers-reduced-motion: reduce) { .zoomview, .zoomview img { transition: none; transform: none; } }
.peek .pic .enlarge .touch { display: none; }
@media (hover: none) { .peek .pic .enlarge .mouse { display: none; } .peek .pic .enlarge .touch { display: inline; } }

/* ---- logging in: the nav's corner ("Log in", or your picture, name and Log out) ---- */
.account { display: flex; align-items: center; gap: 14px; min-height: 32px; opacity: 0; transition: opacity var(--normal) var(--ease); }
.account.on { opacity: 1; }
.account:empty { display: none; }
.account .who { display: flex; align-items: center; gap: 8px; color: var(--ink-value); font-size: 14px; font-weight: 500; min-width: 0; }
.account .who .nm { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .wlink { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; cursor: pointer; }
.ava { flex: none; border-radius: 50%; background: #1d1c1f; box-shadow: 0 0 0 1px var(--chip-edge); object-fit: cover; }
img.ava { opacity: 0; transition: opacity var(--normal) var(--ease); }
img.ava.in { opacity: 1; }

/* the share page's login card, and the form appearing once you're in: a window opening (Win.Feel) */
.js .rise { opacity: 0; transform: translateY(8px); }
.rise.on { opacity: 1; transform: none; transition: opacity var(--open) var(--ease), transform var(--open) var(--ease); }
.gate { max-width: 760px; }
.gate > .in { position: relative; inset: auto; margin: var(--t); padding: 28px 32px 30px; }
.gate h2 { font-size: 28px; }
.gate p { margin-top: 12px; color: var(--ink-text); line-height: 1.6; max-width: 560px; }
.gate p:last-child { margin-top: 22px; }
.done .end { margin-top: 22px; }

/* ---- comments under an opened profile ---- */
.peek .talk { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }
.talk h3 { font: 600 13px var(--font-game); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid); }
.talk h3 .n { margin-left: 6px; color: var(--ink-label); letter-spacing: 0.04em; }
.talk-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cmt { transition: opacity var(--normal) var(--ease), transform var(--normal) var(--ease); }
.cmt.new { opacity: 0; transform: translateY(4px); transition: none; }
.cmt.leaving { opacity: 0; transition: opacity var(--close) var(--ease); }
.cmt-head { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.cmt-head .nm { color: var(--ink-value); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmt-head .when { color: var(--ink-label); white-space: nowrap; }
.cmt-head .del { margin-left: auto; background: none; border: 0; padding: 0; font: inherit; font-size: 12px; cursor: pointer; }
.cmt-head .del.warn { color: var(--ink-warn); }
.cmt .body { margin: 4px 0 0 32px; font-size: 14px; line-height: 1.6; color: var(--ink-text); white-space: pre-line; overflow-wrap: anywhere; }
.talk-none, .talk-login { margin-top: 10px; font-size: 13px; color: var(--ink-label); }
.talk-form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.talk-form textarea.winput { min-height: 64px; }
.talk-form .end { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.talk-form[hidden], .talk-login[hidden], .talk-none[hidden] { display: none; }

@media (max-width: 640px) {
  .account .who .nm { display: none; }
  nav:has(.account:not(:empty)) .logo .word { display: none; }   /* room for Log in / your picture beside Download */
  nav:has(.account:not(:empty)) .wrap { gap: 16px; }
  .gate > .in { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .rise.on, .cmt, .account, img.ava { transition: none; transform: none; }
}
.rrow > .in.rcmt { grid-template-columns: 1fr auto; }

/* the login page and the share page's login card: a column of "Continue with ..." buttons */
.logins { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 18px; }
.logins .wbtn { min-width: 260px; justify-content: flex-start; }
.logins:empty { display: none; }
.gate .fine { margin-top: 18px; font-size: 13px; color: var(--ink-label); }
@media (max-width: 640px) { .logins, .logins .wbtn { align-self: stretch; min-width: 0; width: 100%; } }

/* a player with no picture (Battle.net has none): their first letter on the accent */
.ava.letter { display: inline-grid; place-items: center; font: 600 13px var(--font-game); color: var(--ink-value);
  background: linear-gradient(135deg, var(--lo), var(--hi)); box-shadow: none; }

/* "Report this profile": quiet, under the buttons; "Click again" in the warn color */
.peek .report { align-self: flex-start; margin-top: 14px; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink-label); }
.peek .report::after { background: var(--ink-label); }
.peek .report.warn { color: var(--ink-warn); }
.peek .report[disabled] { cursor: default; color: var(--ink-good); }
.peek .report[disabled]::after { display: none; }
.peek .report[hidden] { display: none; }
.peek .held { font-size: 13px; color: var(--ink-warn); line-height: 1.5; }
.peek .held[hidden] { display: none; }

/* the review page's notes: a held screenshot, reports; who shared it */
.rrow .note { margin-top: 6px; font-size: 13px; color: var(--ink-warn); }
.rrow .owner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag.bad { color: var(--ink-bad); }
.tag.screen { color: var(--accent, var(--ink-value)); }
.tag.cdm { color: var(--ink-value); box-shadow: inset 0 0 0 1px var(--mid, var(--accent)); }
.rrow > .in.rcmt > .cmt-head { align-self: center; }
.keybox[hidden], .sorts[hidden] { display: none; }

/* Your profiles: the nav's name is a link there; the grid shows what you shared, flagged when it's out or waiting */
.account a.who { text-decoration: none; border-radius: 6px; padding: 2px 4px; margin: -2px -4px;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.account a.who:hover, .account a.who:focus-visible { color: var(--mid); background: rgba(242, 238, 230, 0.05); outline: none; }
.mine-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.mine-bar h2 { font-size: 26px; font-weight: 400; margin-right: auto; }
.mine-bar[hidden], .toolbar[hidden], .chiprow[hidden] { display: none; }
.pcard .flag { font-size: 12.5px; color: var(--ink-warn); }
.pcard .flag.bad { color: var(--ink-bad); }

/* ---- the plugin list: smaller cards led by the CurseForge icon ---- */
.lib-hero .hero-acts { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.grid.gridp { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.gcard > .in { padding: 16px 18px 14px; gap: 10px; }
.ghead { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gwords { min-width: 0; flex: 1; }
.gwords h3 { font-size: 17px; font-weight: 400; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gwords .by { font-size: 13px; color: var(--ink-label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard .sum { font-size: 14px; line-height: 1.55; color: var(--ink-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gcard .meta { margin-top: auto; padding-top: 4px; }
.gcard .meta .nums svg { width: 14px; height: 14px; }
.gicon { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: #0e0e10; box-shadow: inset 0 0 0 1px var(--chip-edge); }
.gicon.big { width: 72px; height: 72px; border-radius: 12px; }
.gicon img { width: 100%; height: 100%; object-fit: cover; }
.gicon .letter { font: 600 24px var(--font-game); color: var(--ink-value); width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lo), var(--hi)); }
.gskel { aspect-ratio: auto; height: 190px; }

/* the opened plugin: no big picture, the icon leads the title */
.gpeek .top { align-items: center; padding-top: 22px; }
.gpeek .top .title { min-width: 0; flex: 1; }
.gpeek .from { margin-top: 16px; }
.gpeek .from[hidden] { display: none; }
.gpeek .from h3, .gpreview .by + .by { font: 600 12px var(--font-game); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-label); }
.gpeek .from .about { margin-top: 6px; }
.gpeek .acts a.wbtn { text-align: center; }
@media (min-width: 1100px) {
  dialog.gpeek { max-width: min(920px, calc(100vw - 48px)); }
  .gpeek .win > .in { display: block; overflow-y: auto; }
  .gpeek .top, .gpeek .grid2 { grid-column: auto; }
  .gpeek .grid2 { grid-template-columns: 1fr 280px; gap: 28px; padding: 16px 24px 24px; }
}

/* the form's CurseForge preview */
.gpreview { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border-radius: 8px; background: #0e0e10;
  box-shadow: inset 0 0 0 1px var(--chip-edge); transition: box-shadow var(--fast) var(--ease); }
.gpreview.taken { box-shadow: inset 0 0 0 1px var(--ink-warn); }
.gpreview .sum { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-text); }
.gpreview .by + .by { margin-top: 8px; letter-spacing: 0.04em; text-transform: none; font: 500 12.5px var(--font-body); }
.gpreview .wlink { display: inline-block; margin-top: 8px; font-size: 13px; }
.gpreview[hidden] { display: none; }
.rrow > .in.rplug { grid-template-columns: auto 1fr auto; }
.rrow .rplug .wlink { display: inline-block; margin-top: 8px; font-size: 13px; }
@media (max-width: 860px) { .rrow > .in.rplug { grid-template-columns: 1fr; } }

/* ---- the row under the hero: the profile of the day as a slim strip, Ko-fi and Patreon in a small card beside it ---- */
.topline { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); gap: 22px; margin-top: 36px; align-items: stretch; }
.topline:has(> .daily[hidden]) { grid-template-columns: minmax(0, 1fr); }
.topline:has(> .daily[hidden]) .patron { max-width: 420px; }

.daily { padding: 0; position: relative; isolation: isolate; display: flex; }
.daily::before { content: ''; position: absolute; inset: 10% 6% -10%; pointer-events: none; z-index: -1; opacity: 0.22; filter: blur(50px);
  background: radial-gradient(closest-side at 25% 50%, var(--lo), transparent), radial-gradient(closest-side at 75% 50%, var(--hi), transparent);
  transition: opacity var(--slow) var(--ease); }
.daily:hover::before { opacity: 0.36; }
.pcard.wide { width: 100%; }   /* a button only grows as wide as its contents by itself */
.pcard.wide > .in { display: grid; grid-template-columns: 320px minmax(0, 1fr); isolation: isolate; }
.pcard.wide > .sh.b { border-image: linear-gradient(90deg, var(--lo), var(--hi)) 1; }
.pcard.wide .pic { z-index: 1; aspect-ratio: auto; height: 100%; min-height: 180px;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); }
.pcard.wide .haze { position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center;
  filter: blur(48px) saturate(1.8) brightness(1.3); opacity: 0.55; transform: scale(1.1); transition: opacity var(--slow) var(--ease); }
.pcard.wide:hover .haze { opacity: 0.7; }
.pcard.wide .in::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--hi) 20%, transparent), transparent),
    linear-gradient(90deg, rgba(14, 14, 16, 0.1), rgba(14, 14, 16, 0.6) 55%); }
.pcard.wide .body { position: relative; z-index: 1; padding: 20px 26px; flex-direction: row; align-items: center; gap: 28px; }
.pcard.wide .words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pcard.wide .side { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.pcard.wide .eyebrow { display: flex; align-items: center; gap: 10px; font: 600 11px var(--font-game); letter-spacing: 0.26em; text-transform: uppercase; margin-bottom: 4px; color: var(--ink-label); }
.pcard.wide .eyebrow::before { content: ''; width: 24px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--lo), var(--hi)); }
.pcard.wide h3 { font: 300 clamp(22px, 1.8vw, 28px)/1.15 var(--font-head); color: var(--ink-value); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard.wide .by { font-size: 14px; }
.pcard.wide .about { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard.wide .tags { margin: 0; justify-content: flex-end; }
.pcard.wide .meta { margin: 0; padding: 0; gap: 14px; }
.pcard.wide .meta .nums { margin-left: 6px; }
.pcard.wide .go { font: 600 14px var(--font-game); letter-spacing: 0.04em; width: max-content;
  background: linear-gradient(90deg, var(--lo), var(--hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pcard.wide .go .arrow { display: inline-block; margin-left: 4px; color: var(--hi); transition: transform var(--fast) var(--ease); }
.pcard.wide:hover .go .arrow, .pcard.wide:focus-visible .go .arrow { transform: translateX(4px); }
.pcard.wide:hover .pic img { transform: scale(1.04); }

.patron { display: flex; animation: patron-in var(--open) var(--ease) both; }
.patron > .in { position: relative; inset: auto; margin: var(--t, 0); flex: 1; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 22px; }
.patron .glow { position: absolute; inset: -30% -30% -30% 20%; pointer-events: none; opacity: 0.18;
  background: radial-gradient(closest-side, var(--hi), transparent), radial-gradient(closest-side at 30% 60%, var(--lo), transparent);
  filter: blur(30px); transition: opacity var(--slow) var(--ease); }
.patron:hover .glow { opacity: 0.3; }
.patron .head { display: flex; align-items: center; gap: 10px; position: relative; }
.patron .sun { width: 34px; height: auto; filter: drop-shadow(0 0 12px rgba(230, 90, 114, 0.25)); transition: transform var(--slow) var(--ease); }
.patron:hover .sun { transform: translateY(-2px); }
.patron .eyebrow { font: 600 11px var(--font-game); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-label); }
.patron h2 { position: relative; margin: 4px 0 0; font-size: 20px; line-height: 1.2; font-weight: 400; color: var(--ink-value); }
.patron h2 .g { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.patron p { position: relative; font-size: 13px; line-height: 1.45; color: var(--ink-text); }
.patron .acts { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.patron .wbtn { white-space: nowrap; }
.patron .wbtn .arrow { display: inline-block; margin-left: 6px; transition: transform var(--fast) var(--ease); }
.patron .wbtn:hover .arrow, .patron .wbtn:focus-visible .arrow { transform: translateX(3px); }
@keyframes patron-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .pcard.wide > .in { grid-template-columns: 240px minmax(0, 1fr); }
  .pcard.wide .body { flex-direction: column; align-items: stretch; gap: 10px; }
  .pcard.wide .side { flex: none; align-items: flex-start; }
  .pcard.wide .tags { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .topline { grid-template-columns: minmax(0, 1fr); }
  .patron > .in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; }
  .patron .head { grid-row: 1 / span 2; }
  .patron .head .eyebrow, .patron p { display: none; }
  .patron .wbtn { grid-row: 1 / span 2; grid-column: 3; margin: 0; align-self: center; }
}
@media (max-width: 640px) {
  .topline { margin-top: 28px; }
  .pcard.wide > .in { grid-template-columns: minmax(0, 1fr); }
  .pcard.wide .pic { height: auto; min-height: 0; aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
  .pcard.wide .in::after { background: rgba(14, 14, 16, 0.5); }
  .pcard.wide .body { padding: 14px 18px 18px; }
  .patron > .in { grid-template-columns: auto 1fr; }
  .patron .wbtn { grid-row: auto; grid-column: 1 / -1; justify-self: stretch; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .daily::before, .pcard.wide .haze, .pcard.wide .go .arrow, .patron { transition: none; animation: none; } }
