/* Steam client recreation. Deliberately shares nothing with css/main.css:
   this page is an app replica, not a page of the portfolio, and inheriting
   the site's tokens or type would fight every rule below. */

:root {
  --chrome:   #171d25;
  --nav:      #1a2129;
  --side:     #1b1f25;
  --page:     #0f1317;
  --taskbar:  #171d25;

  /* Steam tints the library page with the game's own palette. DOOM is red,
     so every warm wash below is this one channel set */
  --tint: 150, 42, 30;

  --t0: #ffffff;
  --t1: #c7d5e0;
  --t2: #8f98a0;
  --t3: #6a7480;
  --blue: #66c0f4;
  --hair: rgba(255, 255, 255, 0.08);

  /* the refund pair. Two hues rather than two shades of one: the legend has to
     be able to name them separately, and a shade ramp cannot be named */
  --ref-days: #45acff;
  --ref-play: #c58aff;
  --ref-ok:   #8fc96f;
  --ref-gone: #d9a06f;

  --dlg-nav:  #1b2026;
  --dlg-main: #282c33;
  --dlg-card: #383d46;
  --dlg-line: rgba(0, 0, 0, 0.28);

  --font: "Motiva Sans", "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--page);
  color: var(--t1);
  font: 400 13px/1.45 var(--font);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-font-smoothing: antialiased;
}

.sprite { position: absolute; width: 0; height: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* placeholders. JS swaps in the real file the moment one exists at data-src,
   so dropping assets into /assets/work/Steam-UX/Showcase/ needs no markup edit.

   This block sits above every component on purpose: .ph sets position and
   background, and a component that positions its own slot (.gamehead__logo)
   has to win on source order. Moving it lower drops the logo out of its
   absolute placement and back into the flow. */

.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #14181d;
  background-image: radial-gradient(120% 90% at 50% 20%, rgba(var(--tint), 0.35) 0, rgba(var(--tint), 0.08) 55%, transparent 100%);
  background-repeat: no-repeat;
  overflow: hidden;
}

.ph::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.ph__label {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.32);
  text-align: center;
  padding: 0 12px;
}

.ph.is-loaded { background-image: none; }
.ph.is-loaded::after { display: none; }
.ph.is-loaded .ph__label { display: none; }

.ph--logo { background-color: transparent; background-image: none; }
.ph--logo::after { border-color: rgba(255, 255, 255, 0.08); }

/* Juan's icon PNGs are one flat grey on transparent, so they are painted as
   masks rather than dropped in as <img>. Same reason as the hero prompt icons
   on the landing page: a mask inherits currentColor, so one file covers the
   rest and hover states instead of needing a second recoloured export.
   Components set the size and the colour; only the mask itself lives here. */

.mi {
  display: block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.mi--gear   { -webkit-mask-image: url("/assets/work/Steam-UX/Showcase/Icons/SteamGearSettingsIcon.png");            mask-image: url("/assets/work/Steam-UX/Showcase/Icons/SteamGearSettingsIcon.png"); }
.mi--pad    { -webkit-mask-image: url("/assets/work/Steam-UX/Showcase/Icons/ControllerNextToSettingsGearIcon.png");  mask-image: url("/assets/work/Steam-UX/Showcase/Icons/ControllerNextToSettingsGearIcon.png"); }
.mi--info   { -webkit-mask-image: url("/assets/work/Steam-UX/Showcase/Icons/InformationNextToControllerIcon.png");   mask-image: url("/assets/work/Steam-UX/Showcase/Icons/InformationNextToControllerIcon.png"); }
.mi--heart  { -webkit-mask-image: url("/assets/work/Steam-UX/Showcase/Icons/HeartNextToInfoIcon.png");               mask-image: url("/assets/work/Steam-UX/Showcase/Icons/HeartNextToInfoIcon.png"); }
.mi--cloud  { -webkit-mask-image: url("/assets/work/Steam-UX/Showcase/Icons/EstadoDeCloudIcon.png");                 mask-image: url("/assets/work/Steam-UX/Showcase/Icons/EstadoDeCloudIcon.png"); }
.mi--time   { -webkit-mask-image: url("/assets/work/Steam-UX/Showcase/Icons/TiempoDeJuegoIcon.png");                 mask-image: url("/assets/work/Steam-UX/Showcase/Icons/TiempoDeJuegoIcon.png"); }
.mi--trophy { -webkit-mask-image: url("/assets/work/Steam-UX/Showcase/Icons/AchievementIcon.png");                   mask-image: url("/assets/work/Steam-UX/Showcase/Icons/AchievementIcon.png"); }
.mi--news   { -webkit-mask-image: url("/assets/work/Steam-UX/Showcase/Icons/NewsIcon.png");                          mask-image: url("/assets/work/Steam-UX/Showcase/Icons/NewsIcon.png"); }
.mi--notif  { -webkit-mask-image: url("/assets/work/Steam-UX/Showcase/Icons/NotificationsIcon.png");                 mask-image: url("/assets/work/Steam-UX/Showcase/Icons/NotificationsIcon.png"); }
.mi--refund { -webkit-mask-image: url("/assets/work/Steam-UX/Showcase/Icons/RefundIcon.png");                        mask-image: url("/assets/work/Steam-UX/Showcase/Icons/RefundIcon.png"); }

/* a replica with no search or posting behind it, dimmed so nobody tries.
   cursor stays default rather than not-allowed: the ask was "looks dead",
   not "actively refuses" */
.is-off {
  opacity: 0.45;
  cursor: default;
  user-select: none;
}

.win {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 1160px;
}

/* titlebar */

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  flex: none;
  padding-left: 9px;
  background: var(--chrome);
}

.titlebar__left {
  display: flex;
  align-items: center;
}

/* Steam gives this cluster real air. The gap is the spacing; the window
   controls opt out of it so they stay flush to the corner like an OS bar */
.titlebar__right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.titlebar__right .wctl { margin-left: -9px; }
.titlebar__right .wctl:first-of-type { margin-left: 8px; }

.titlebar__logo {
  display: flex;
  align-items: center;
  padding: 3px;
  margin-right: 6px;
  border-radius: 2px;
}

.titlebar__logo:hover { background: rgba(255, 255, 255, 0.09); }
.titlebar__logo img { display: block; }

.titlebar__menu {
  padding: 4px 8px;
  font-size: 12px;
  color: var(--t1);
  border-radius: 2px;
}

.titlebar__menu:hover { background: rgba(255, 255, 255, 0.09); color: var(--t0); }

/* filled chips, not bare glyphs: Steam colours these two by state and they are
   the only saturated things in the whole title bar */
.pillbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 27px;
  border-radius: 3px;
  color: #fff;
}

.pillbtn .mi { width: 19px; height: 19px; }

.pillbtn--news { background: #1a9fff; }
.pillbtn--news:hover { background: #3cb0ff; }
.pillbtn--notif { background: #5c7e10; }
.pillbtn--notif:hover { background: #6f9614; }

/* big picture: an unfilled glyph, unlike the two coloured chips */
.iconbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  border-radius: 2px;
  color: var(--t2);
}

.iconbtn:hover { background: rgba(255, 255, 255, 0.09); color: var(--t0); }

.account {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 9px;
  border-radius: 2px;
  font-size: 12px;
  color: var(--t1);
}

.account:hover { background: rgba(255, 255, 255, 0.09); }

.account__avatar {
  width: 17px;
  height: 17px;
  border-radius: 1px;
  background: #3d4450;
}

/* too small to carry the dashed placeholder frame legibly */
.account__avatar::after { display: none; }

.account__caret { color: var(--t3); }
.account__wallet { color: var(--t2); margin-left: 4px; }
.account__avatar { margin-right: 1px; }

.wctl {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--t1);
  cursor: pointer;
}

.wctl:hover { background: rgba(255, 255, 255, 0.11); }
.wctl--close:hover { background: #d13438; color: #fff; }
.wctl[aria-disabled="true"] { color: var(--t3); cursor: default; }
.wctl[aria-disabled="true"]:hover { background: none; }

/* main nav */

.navbar {
  display: flex;
  align-items: flex-end;
  height: 38px;
  flex: none;
  padding: 0 0 0 8px;
  background: var(--nav);
}

.navbar__arrows { display: flex; padding-bottom: 6px; }

.navarrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  color: var(--t2);
}

.navarrow.is-off { color: #3f464e; opacity: 1; cursor: default; }

a.navarrow { border-radius: 2px; }
a.navarrow:hover { background: rgba(255, 255, 255, 0.08); color: var(--t0); }

.navbar__tabs { display: flex; margin-left: 12px; }

.navtab {
  position: relative;
  padding: 0 14px 8px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--t2);
}

.navtab:hover { color: var(--t1); }

.navtab.is-active { color: var(--t0); }

.navtab.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 1px;
  height: 2px;
  background: var(--blue);
}

/* sidebar */

.body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.sidebar {
  width: 275px;
  flex: none;
  background: var(--side);
  padding: 8px 0;
  overflow: hidden;
}

.sidebar__home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px 10px;
  padding: 5px 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--t1);
  font-size: 13px;
}

.sidebar__grid { display: flex; color: var(--t2); }

.sidebar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 12px;
  padding: 5px 8px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.3);
}

.sidebar__searchicon { display: flex; color: var(--t3); }
.sidebar__searchvalue { flex: 1; color: var(--t1); font-size: 13px; }
.sidebar__clear { display: flex; color: var(--t2); }

.sidebar__filter {
  display: flex;
  color: var(--t2);
  padding-left: 8px;
  border-left: 1px solid var(--hair);
}

.sidebar__sort {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 12px 14px;
  font-size: 12px;
  color: var(--t2);
}

.sidebar__sortcaret { color: var(--t3); }

.sidebar__sorticons {
  display: flex;
  gap: 8px;
  margin-left: auto;
  color: var(--t3);
}

.sidebar__group {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 0;
  padding: 6px 12px;
  background: none;
  font: inherit;
  font-size: 12px;
  color: var(--t2);
  text-align: left;
  cursor: pointer;
}

.sidebar__group:hover { color: var(--t1); background: rgba(255, 255, 255, 0.04); }

.sidebar__plus { width: 9px; color: var(--t3); font-size: 14px; line-height: 1; }
.sidebar__plus::before { content: "+"; }
.sidebar__group[aria-expanded="true"] .sidebar__plus::before { content: "\2212"; }

.sidebar__groupname { letter-spacing: 0.04em; }
.sidebar__count { color: var(--t3); }

/* same 0fr/1fr collapse the Options groups and the mobile drawer use: it
   animates to the content's own height with no measuring. The inner wrapper
   is the box the grid row collapses against, so do not flatten it away */

.sidebar__list {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.sidebar__group[aria-expanded="true"] + .sidebar__list { grid-template-rows: 1fr; }

.sidebar__listinner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 220ms;
}

.sidebar__group[aria-expanded="true"] + .sidebar__list .sidebar__listinner {
  visibility: visible;
  transition-delay: 0s;
}

.sidebar__game {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 26px;
  font-size: 13px;
  color: var(--t1);
}

.sidebar__game.is-current { background: rgba(255, 255, 255, 0.07); color: var(--t0); }

.sidebar__gameart {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
}

.sidebar__gameart::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .sidebar__list { transition: none; }
}

/* content */

.content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    linear-gradient(180deg,
      rgba(var(--tint), 0.16) 0,
      rgba(var(--tint), 0.05) 420px,
      rgba(var(--tint), 0) 760px),
    var(--page);
  scrollbar-color: #4a5058 transparent;
}

.content::-webkit-scrollbar { width: 10px; }
.content::-webkit-scrollbar-thumb { background: #4a5058; }

.gamehead { position: relative; }

.gamehead__art {
  height: 340px;
  background-size: cover;
  background-position: center 30%;
}

/* the action bar sits on the artwork, and DOOM's key art is near-white in
   places. Without this scrim the PLAY label and the stat values drop to
   roughly 1.5:1 against it. Steam does the same thing */
.gamehead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent 0, rgba(15, 19, 23, 0.55) 38%, rgba(15, 19, 23, 0.9) 70%, var(--page) 100%);
  pointer-events: none;
}

.gamehead__logo {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: 330px;
  height: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.actionbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: -46px;
  padding: 0 19px 16px;
}

.playgroup { display: flex; margin-right: 6px; }

.playbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 176px;
  height: 42px;
  padding: 0 22px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #57a832 0, #3f8a1f 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.playbtn:hover { background: linear-gradient(180deg, #65bd3c 0, #4a9c26 100%); }

.playbtn__more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 42px;
  border-radius: 0 2px 2px 0;
  border-left: 1px solid rgba(0, 0, 0, 0.25);
  background: linear-gradient(180deg, #57a832 0, #3f8a1f 100%);
  color: #fff;
}

.playbtn__more:hover { background: linear-gradient(180deg, #65bd3c 0, #4a9c26 100%); }

.stat { display: flex; align-items: center; gap: 10px; }

.stat__icon { width: 21px; height: 21px; flex: none; color: var(--t2); }
.stat__text { display: flex; flex-direction: column; gap: 2px; }

.stat__label {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--t2);
}

.stat__value { font-size: 13px; color: var(--t1); }

.stat__value--ach { display: flex; align-items: center; gap: 8px; }

.achbar {
  display: block;
  width: 84px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.achbar__fill { display: block; width: 2%; height: 100%; background: var(--blue); }

.actionbar__tools { display: flex; gap: 6px; margin-left: auto; }

.tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  padding: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--t1);
  cursor: pointer;
}

.tool:hover { background: rgba(255, 255, 255, 0.18); color: var(--t0); }
.tool .mi { width: 22px; height: 22px; }

/* game tabs */

.gametabs {
  display: flex;
  margin: 0 19px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.gametab {
  padding: 9px 30px;
  font-size: 13px;
  color: var(--t2);
}

.gametab:hover { color: var(--t0); background: rgba(255, 255, 255, 0.05); }

/* columns */

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 530px;
  gap: 44px;
  padding: 26px 19px 0;
}

.coltitle {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--t2);
}

.col--side .coltitle { margin-top: 30px; }
.col--side .coltitle:first-child { margin-top: 0; }

.postbox {
  padding: 11px 14px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.28);
}

.postbox__ghost { color: var(--t3); font-style: italic; font-size: 13px; }

.emptystate {
  margin: 26px 0 0;
  color: var(--t3);
  font-size: 13px;
}

.emptystate--tight { margin: 0; }

.panel {
  padding: 16px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.panel--ctrl { display: flex; gap: 14px; align-items: flex-start; }
.panel__icon { display: flex; color: var(--t2); flex: none; }
.panel__head { margin: 0 0 5px; color: var(--t0); font-size: 13px; }
.panel__body { margin: 0; color: var(--t2); font-size: 12px; line-height: 1.5; }

.fakelink { color: var(--blue); }

/* the one place the replica speaks as itself */

.disclaimer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin: 60px 19px 0;
  padding: 18px 0 26px;
  border-top: 1px solid var(--hair);
}

.disclaimer__text {
  max-width: 640px;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--t3);
}

.disclaimer__actions { display: flex; align-items: center; gap: 20px; flex: none; }

.disclaimer__back {
  font-size: 11px;
  color: var(--t2);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 2px;
}

.disclaimer__back:hover { color: var(--t0); border-bottom-color: var(--t2); }

.langswitch { display: flex; align-items: center; gap: 6px; }

.langswitch__btn {
  border: 0;
  padding: 2px 4px;
  background: none;
  color: var(--t3);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.langswitch__btn:hover { color: var(--t1); }
.langswitch__btn.is-on { color: var(--t0); }
.langswitch__dot { color: var(--t3); }

/* taskbar */

.taskbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 32px;
  flex: none;
  padding: 0 14px;
  background: var(--taskbar);
  border-top: 1px solid rgba(0, 0, 0, 0.4);
  font-size: 12px;
  color: var(--t2);
}

.taskbar__item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 2px;
}

.taskbar__item:hover { background: rgba(255, 255, 255, 0.07); color: var(--t0); }
.taskbar__item--mid { justify-self: center; }
.taskbar__item--end { justify-self: end; }
.taskbar__item svg { color: var(--t3); }
.taskbar__item:hover svg { color: var(--t1); }

/* settings dialog */

.dlg {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dlg[hidden] { display: none; }

/* .content is the page's only scroller, so the lock goes there, not on body */
.is-locked .content { overflow: hidden; }

.dlg__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.dlg__win {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(840px, calc(100vw - 80px));
  height: min(600px, calc(100vh - 80px));
  background: var(--dlg-main);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  animation: dlgIn 140ms ease-out both;
}

@keyframes dlgIn {
  from { opacity: 0; transform: scale(0.985); }
}

@media (prefers-reduced-motion: reduce) {
  .dlg__win { animation: none; }
}

/* floated over the body rather than stacked above it, so the nav column's
   dark fill reaches the dialog's top-left corner the way Steam's does */
.dlg__titlebar {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  height: 32px;
}

.dlg__drag { display: none; }
.dlg__titlebar .wctl { height: 32px; }

.dlg__body { display: flex; flex: 1; min-height: 0; }

.dlg__nav {
  width: 200px;
  flex: none;
  padding: 0 0 14px;
  background: var(--dlg-nav);
  overflow-y: auto;
}

.dlg__game {
  margin: 0 0 14px;
  padding: 14px 18px 0;
  color: var(--blue);
  font-size: 19px;
  font-weight: 700;
}

.dlg__navitem {
  display: block;
  width: 100%;
  border: 0;
  padding: 9px 18px;
  background: none;
  color: var(--t1);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dlg__navitem:hover { background: rgba(255, 255, 255, 0.06); color: var(--t0); }

.dlg__navitem.is-active {
  background: rgba(102, 192, 244, 0.14);
  color: var(--t0);
}

.dlg__main {
  flex: 1;
  min-width: 0;
  padding: 40px 26px 30px;
  overflow-y: auto;
  scrollbar-color: #565c66 transparent;
}

.dlg__main::-webkit-scrollbar { width: 10px; }
.dlg__main::-webkit-scrollbar-thumb { background: #565c66; }

.panel-set { display: none; }
.panel-set.is-shown { display: block; }

.dlg__h1 {
  margin: 6px 0 18px;
  font-size: 21px;
  font-weight: 700;
  color: var(--t0);
}

.dlg__h2 {
  margin: 26px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--t0);
}

.dlg__p {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--t2);
}

.dlg__p--tight { margin-bottom: 6px; }

.dlg__meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--t2);
  text-align: right;
}

.dlg__meta--stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 22px;
  text-align: left;
}

.dlg__inline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  font-size: 13px;
}

.dlg__inline--field { gap: 12px; }

.blue { color: var(--blue); }

/* the whole panel is inert. The notice above it is not, so its link works.
   grayscale does the disabled reading that opacity alone could not: it drains
   the blue out of the toggles, which are the loudest "this is live" signal */

.locked {
  opacity: 0.55;
  filter: grayscale(0.9);
  pointer-events: none;
  user-select: none;
}

.notice {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 20px;
  padding: 10px 14px;
  border-left: 3px solid var(--blue);
  background: rgba(102, 192, 244, 0.09);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--t1);
}

.notice__label {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--blue);
}

.notice a { color: var(--blue); text-decoration: underline; }

/* dialog controls */

.card {
  margin: 0 0 14px;
  border-radius: 3px;
  background: var(--dlg-card);
  overflow: hidden;
}

.card--off { opacity: 0.6; }

.setrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--dlg-line);
}

.card > .setrow:last-child { border-bottom: 0; }

.setrow--stackbtn { align-items: flex-start; }

.setrow__label { font-size: 13px; color: var(--t1); }

.setrow__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--t2);
}

.setrow__strong { color: var(--t0); font-size: 13px; }
.setrow__sub { color: var(--t3); font-size: 12px; }

.switch {
  position: relative;
  flex: none;
  width: 38px;
  height: 20px;
  border-radius: 10px;
  background: #5b626c;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.switch.is-on { background: #1a9fff; }
.switch.is-on::after { left: 20px; }

.select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: none;
  min-width: 160px;
  padding: 7px 11px;
  border-radius: 3px;
  background: #4a505a;
  color: var(--t1);
  font-size: 12.5px;
}

.select--block { display: flex; width: 100%; margin-bottom: 4px; }
.select__stack { display: flex; flex-direction: column; gap: 2px; }
.select__sub { color: var(--t3); font-size: 11.5px; }

.select svg { flex: none; color: var(--t2); }

.splitrow { display: flex; align-items: center; gap: 26px; }
.splitrow__q { flex: 1; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--t2); }
.splitrow .select--block { width: 320px; flex: none; }

.field {
  display: block;
  height: 34px;
  border-radius: 3px;
  background: #22262c;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.field--grow { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  max-width: 210px;
  padding: 8px 14px;
  border-radius: 3px;
  background: #4a505a;
  color: var(--t0);
  font-size: 12.5px;
  line-height: 1.35;
  text-align: center;
}

.btn--right { margin-left: auto; }
.btn--off { background: #3a3f47; color: var(--t3); }

.table {
  border-radius: 3px;
  background: var(--dlg-card);
  overflow: hidden;
}

.table__head {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--dlg-line);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--t2);
}

.table__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
}

.table__row.is-selected { box-shadow: inset 3px 0 0 var(--blue); }
.table__stack { display: flex; flex-direction: column; gap: 2px; flex: 1; font-size: 12.5px; color: var(--t1); }
.table__sub { color: var(--t3); font-size: 12px; }
.table__date { font-size: 12.5px; color: var(--t2); }

.radio {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--t3);
}

.radio.is-on { border-color: #1a9fff; }

.radio.is-on::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #1a9fff;
}

.inputlist { margin-left: 30px; }

.inputlist__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: var(--t1);
}

.inputlist__row.is-selected { background: rgba(255, 255, 255, 0.05); }
.inputlist__state { margin-left: auto; color: var(--t2); }

.art { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; padding: 0 16px 16px; }
.art__name { margin: 0; padding: 14px 16px 10px; font-size: 13px; color: var(--t0); }

/* aspect-ratio from the real files, and contain rather than cover, so a
   thumbnail can never crop. Without an explicit background-size these paint at
   the source's natural size, which shows the top-left corner of a 3840px image
   in a 96px box */
.art__img {
  grid-row: span 2;
  align-self: start;
  background-size: contain;
  background-position: center;
}

.art__img .ph__label { font-size: 9.5px; padding: 0 4px; }

.art__img--cover { width: 96px; aspect-ratio: 600 / 900; }
.art__img--bg { width: 140px; aspect-ratio: 3840 / 1240; }
.art__img--logo { width: 120px; aspect-ratio: 640 / 330; }

.art__buttons { display: flex; gap: 10px; align-items: flex-start; }
.art__body { font-size: 12.5px; line-height: 1.5; color: var(--t2); align-self: start; }

/* refund dial. The proposed addition, and along with the settings dialog the
   only thing on this page that actually does something */

.refundwrap { position: relative; display: flex; }

/* 12 o'clock start and a clockwise sweep: a bare <circle> path begins at 3 */
.rdial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.rdial__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.10);
  stroke-width: 2.2;
}

.rdial__arc {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  transition: stroke-dashoffset 620ms cubic-bezier(.2, .7, .2, 1);
}

.rdial__arc--days { stroke: var(--ref-days); }
.rdial__arc--play { stroke: var(--ref-play); }

/* smaller than the other tool glyphs: it has to clear the inner ring */
.tool--refund .mi { width: 15px; height: 15px; }

.rtip {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  z-index: 30;
  width: 278px;
  padding: 12px 14px 11px;
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 3px;
  background: #1b2838;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 190ms ease, transform 190ms ease, visibility 0s linear 190ms;
}

/* hover, or a class JS sets only for keyboard focus. Neither :focus-within nor
   :focus-visible works here: closing the dialog hands focus back to the dial,
   and both then left the tooltip up under a cursor that had moved away long
   ago. :focus-visible even matches that programmatic refocus in Chrome */
.refundwrap:hover .rtip,
.refundwrap.is-tip .rtip {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 190ms ease, transform 190ms ease, visibility 0s;
}

.rtip::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: #1b2838;
  border-left: 1px solid rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(0, 0, 0, 0.6);
  transform: rotate(45deg);
}

.rtip__title {
  margin: 0 0 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--t0);
}

.rtip__legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rtip__legend li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.rtip__key {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.rtip__key--days { background: var(--ref-days); }
.rtip__key--play { background: var(--ref-play); }
.rtip__lab--days { color: var(--ref-days); }
.rtip__lab--play { color: var(--ref-play); }

.rtip__hint {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--t2);
}

/* refund panel. Deliberately not .locked: it is the one section of this dialog
   that is the proposal rather than the replica */

.rmeter {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 24px 0 0;
  transition: opacity 300ms ease;
}

.rmeter__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}

.rmeter__name { font-size: 13px; font-weight: 700; }
.rmeter__name--days { color: var(--ref-days); }
.rmeter__name--play { color: var(--ref-play); }

.rmeter__val { font-size: 12.5px; color: var(--t2); }
.rmeter__val b { font-weight: 700; color: var(--t0); }

.rbar {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.rbar__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 680ms cubic-bezier(.2, .7, .2, 1);
}

.rbar__fill--days { background: linear-gradient(90deg, #2f8fe0, var(--ref-days)); }
.rbar__fill--play { background: linear-gradient(90deg, #a768e8, var(--ref-play)); }

.rmeter__note {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--t3);
}

.rmeter__sep { padding: 0 6px; }

.rstatus {
  margin: 24px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ref-ok);
}

.rstatus--closed { color: var(--ref-gone); }

.rbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 0;
  padding: 11px 24px;
  border: 0;
  border-radius: 3px;
  background: var(--ref-days);
  color: #06131e;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.rbtn:hover { background: #6dbfff; }

/* 0fr to 1fr against an inner wrapper, the same fold the Options groups and the
   mobile drawer use: visibility alone would hold the gap open while hidden */
.rtoast {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows 340ms cubic-bezier(.2, .7, .2, 1),
              margin-top 340ms ease,
              opacity 280ms ease;
}

.rtoast.is-on {
  grid-template-rows: 1fr;
  margin-top: 16px;
  opacity: 1;
}

/* the box the grid row collapses against. Do not flatten it away */
.rtoast__inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 340ms;
}

.rtoast.is-on .rtoast__inner { visibility: visible; transition: visibility 0s; }

.rtoast__inner p {
  margin: 0;
  padding: 12px 15px;
  border-left: 3px solid var(--ref-days);
  background: rgba(69, 172, 255, 0.10);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--t1);
}

/* expired: emptied and drained of colour, but still answering, because the
   button explaining why you cannot refund is the whole point of that state */
.r-closed { display: none; }
body.is-refund-closed .r-open { display: none; }
body.is-refund-closed span.r-closed { display: inline; }
body.is-refund-closed p.r-closed { display: block; }

body.is-refund-closed .refundwrap { display: none; }
body.is-refund-closed .rmeter { opacity: 0.45; }
body.is-refund-closed .rbtn { background: #4a505a; color: var(--t2); }
body.is-refund-closed .rbtn:hover { background: #565c66; color: var(--t1); }
body.is-refund-closed .rtoast__inner p {
  border-left-color: var(--ref-gone);
  background: rgba(217, 160, 111, 0.10);
}

/* the notice speaks for the eight inert panels, not for this one */
.dlg.is-refund .notice { display: none; }

/* prototype state switch, under the line where the page already speaks as
   itself. Warm neutrals, so it never competes with the blue and violet above */

.disclaimer__main { min-width: 0; }

.statesw {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.statesw__label {
  margin-right: 3px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--t3);
}

.statesw__btn {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 3px;
  background: transparent;
  color: var(--t3);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.statesw__btn:hover { color: var(--t1); border-color: rgba(255, 255, 255, 0.24); }

.statesw__btn--open.is-on {
  color: var(--ref-ok);
  border-color: rgba(143, 201, 111, 0.5);
  background: rgba(143, 201, 111, 0.10);
}

.statesw__btn--closed.is-on {
  color: var(--ref-gone);
  border-color: rgba(217, 160, 111, 0.5);
  background: rgba(217, 160, 111, 0.10);
}

/* onboarding */

.obcopy { display: none; }

body.is-onboarding .win { pointer-events: none; }

.curtain {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070a;
  opacity: 0;
  visibility: hidden;
  transition: opacity 620ms ease, visibility 0s linear 620ms;
}

.curtain.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 620ms ease, visibility 0s;
}

.curtain__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  width: min(420px, 76vw);
  text-align: center;
  opacity: 0;
  transition: opacity 460ms ease;
}

.curtain.is-lit .curtain__inner { opacity: 1; }

.curtain__logo { width: 42px; height: auto; }

.curtain__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--t0);
}

.curtain__line {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.curtain__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ref-days);
}

.curtain__sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--t2);
}

/* box-shadow rather than a radial gradient: the disc stays genuinely
   untouched, so the dial under it keeps its real colours */
.spot {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 460ms ease, visibility 0s linear 460ms;
}

.spot.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 460ms ease, visibility 0s;
}

.spot__hole {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(69, 172, 255, 0.55),
    0 0 30px 8px rgba(69, 172, 255, 0.25),
    0 0 0 9999px rgba(3, 6, 9, 0.8);
  transition: left 620ms cubic-bezier(.2, .7, .2, 1), top 620ms cubic-bezier(.2, .7, .2, 1);
}

.coach {
  position: fixed;
  z-index: 85;
  width: min(346px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid rgba(69, 172, 255, 0.35);
  border-radius: 3px;
  background: #16202c;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(7px);
  transition: opacity 340ms ease, transform 340ms ease, visibility 0s linear 340ms;
}

.coach.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 340ms ease, transform 340ms ease, visibility 0s;
}

.coach__text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--t1);
}

@media (prefers-reduced-motion: reduce) {
  .rdial__arc,
  .rbar__fill,
  .spot__hole { transition: none; }
}

/* narrow viewports: this is a desktop app, so it scrolls rather than reflows */

.widthnote {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  margin: 0;
  padding: 9px 16px;
  background: #0b0e11;
  border-top: 1px solid var(--hair);
  font-size: 11px;
  line-height: 1.5;
  color: var(--t2);
  text-align: center;
}

@media (max-width: 1160px) {
  .widthnote { display: block; }
  .win { padding-bottom: 34px; }
}
