
@font-face{
  font-family:"Archive Display";
  src:url("fonts/PixelifySans-Variable.ttf") format("truetype");
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  unicode-range:U+0000-0042,U+0044-0062,U+0064,U+0066-10FFFF;
}
@font-face{
  font-family:"Archive Display";
  src:url("fonts/PixelifySans-CorrectedEC5.ttf?v=2") format("truetype");
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  unicode-range:U+0035,U+0043,U+0063,U+0065;
}
:root{
  --bg:#0d1014;
  --panel:#171b20;
  --panel2:#20262d;
  --text:#edf0f3;
  --muted:#aeb6c0;
  --line:#343c46;
  --accent:#d8a84e;
  --accent2:#7aa2b8;
  --shadow:0 22px 60px rgba(0,0,0,.34);
  --display:"Archive Display", ui-monospace, monospace;
}
*{box-sizing:border-box}
body{
  margin:0;
  background:
    radial-gradient(circle at 20% 0%, rgba(122,162,184,.11), transparent 32rem),
    linear-gradient(180deg,#0d1014,#101419 44%,#0b0e12);
  color:var(--text);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height:100vh;
}
.language-switch{
  position:absolute;
  z-index:10;
  top:14px;
  right:clamp(22px,5vw,72px);
  display:inline-flex;
  padding:3px;
  border:1px solid var(--line);
  border-radius:9px;
  background:rgba(23,27,32,.9);
  box-shadow:0 5px 18px rgba(0,0,0,.18);
}
.language-switch button{
  min-width:34px;
  padding:6px 8px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--muted);
  font:700 .68rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:.08em;
  cursor:pointer;
}
.language-switch button:hover{color:var(--text)}
.language-switch button[aria-pressed="true"]{background:var(--panel2);color:var(--accent)}
.language-switch button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.topbar{
  padding:58px clamp(22px,5vw,72px) 24px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:30px;
  border-bottom:1px solid var(--line);
}
.brand{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  grid-template-rows:auto auto;
  align-items:center;
  gap:clamp(18px,3vw,32px);
  min-width:0;
}
.brand-mark{
  grid-column:1;
  grid-row:1;
  width:clamp(78px,9vw,112px);
  height:auto;
  flex:0 0 auto;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.35));
}
.brand-copy{grid-column:2;grid-row:1;min-width:0}
.eyebrow{
  margin-left:4px;
  font-family:var(--display);
  font-size:.88rem;
  letter-spacing:.12em;
  color:var(--accent);
  font-weight:800;
}
h1{
  margin:0 0 .55rem;
  font-family:var(--display);
  font-size:clamp(2.5rem,6vw,5.3rem);
  font-weight:600;
  line-height:.86;
  letter-spacing:-.045em;
  text-wrap:balance;
}
.subtitle{grid-column:2;grid-row:2;max-width:72ch;margin:-14px 0 0;color:var(--muted);line-height:1.5}
.header-stats{
  display:grid;
  justify-items:end;
  gap:7px;
}
.counter{
  color:var(--muted);
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space:nowrap;
}
.collection-summary{
  color:var(--accent);
  font-size:.68rem;
  line-height:1.35;
  text-align:right;
}
.collection-summary-row{display:flex;align-items:center;justify-content:flex-end;gap:7px}
.collection-transfer-actions{display:flex;align-items:flex-start;gap:4px}
.collection-transfer-item{display:grid;justify-items:center;gap:1px;color:var(--muted)}
.collection-transfer-item>span{font:700 .43rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.07em}
.collection-transfer{display:grid;place-items:center;width:24px;height:24px;padding:4px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--accent);opacity:.68;cursor:pointer}
.collection-transfer svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.collection-transfer:hover{border-color:rgba(216,168,78,.45);background:rgba(216,168,78,.08);opacity:1}
.collection-transfer:focus-visible{outline:2px solid var(--accent);outline-offset:2px;opacity:1}
.export-collection:disabled{opacity:.22;cursor:default;border-color:transparent;background:transparent}
.collection-transfer.transfer-success{color:#88c999;border-color:rgba(136,201,153,.6);opacity:1}
.collection-transfer.transfer-error{color:#d98181;border-color:rgba(217,129,129,.6);opacity:1}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
main{padding:28px clamp(22px,5vw,72px) 60px}
.controls{
  display:grid;
  grid-template-columns:minmax(240px,2fr) repeat(4,minmax(130px,1fr));
  align-items:end;
  gap:12px;
  padding:0;
  margin-bottom:26px;
  border:0;
  background:transparent;
  box-shadow:none;
}
.filter-field{
  display:grid;
  grid-template-rows:11px 36px;
  align-content:end;
  gap:6px;
  min-width:0;
}
.filter-search{grid-template-rows:53px}
.filter-field>span{
  padding-left:2px;
  color:var(--muted);
  font:700 .66rem/1 var(--display);
  letter-spacing:.1em;
  text-transform:uppercase;
  transition:color .15s ease;
}
.filter-field:focus-within>span{color:var(--accent)}
.controls input,
.controls select{
  height:36px;
  min-width:0;
  background:#11161b;
  border-radius:6px;
  padding:0 12px;
  font-size:.78rem;
  line-height:36px;
  box-shadow:inset 0 1px rgba(255,255,255,.018);
}
.controls .filter-search input{
  height:53px;
  line-height:53px;
}
input,select{
  width:100%;
  background:var(--panel);
  color:var(--text);
  border:1px solid var(--line);
  border-radius:10px;
  padding:13px 14px;
  outline:none;
}
input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 2px rgba(216,168,78,.09)}
input[type="search"]::-webkit-search-cancel-button{
  -webkit-appearance:none;
  width:16px;
  height:16px;
  margin-left:8px;
  background-color:var(--muted);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px 14px no-repeat;
  cursor:pointer;
  opacity:.9;
}
input[type="search"]::-webkit-search-cancel-button:hover{background-color:var(--accent)}
.library-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin:-8px 0 18px;
  min-height:38px;
}
.active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0}
.active-filter{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 7px 5px 10px;
  border:1px solid var(--accent);
  border-radius:999px;
  background:rgba(216,168,78,.08);
  color:#e5c680;
  font:600 .7rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  cursor:pointer;
}
.active-filter b{font-size:1rem;line-height:.7;color:var(--muted);font-weight:500}
.active-filter:hover{background:rgba(216,168,78,.15)}
.active-filter:hover b{color:var(--text)}
.active-filter:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.view-controls{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.sort-control{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.7rem}
.sort-control span{text-transform:uppercase;letter-spacing:.08em}
.sort-control select{
  width:auto;
  min-width:156px;
  padding:7px 28px 7px 9px;
  border-radius:8px;
  font-size:.72rem;
}
.reset-button{
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:linear-gradient(180deg,var(--panel2),var(--panel));
  color:var(--accent);
  box-shadow:inset 0 1px rgba(255,255,255,.025),0 1px 4px rgba(0,0,0,.2);
  font:700 .65rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  letter-spacing:.09em;
  cursor:pointer;
  transition:border-color .15s ease,background .15s ease,color .15s ease,box-shadow .15s ease;
}
.reset-button:hover:not(:disabled){
  border-color:var(--accent);
  background:rgba(216,168,78,.1);
  box-shadow:0 2px 8px rgba(0,0,0,.25);
}
.reset-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.reset-button:disabled{color:var(--muted);opacity:.42;cursor:default;box-shadow:none}
.view-label{
  color:var(--muted);
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.view-switch{
  display:inline-flex;
  padding:3px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:10px;
}
.view-button{
  display:flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  font:600 .76rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  cursor:pointer;
}
.view-button:hover{color:var(--text)}
.view-button[aria-pressed="true"]{
  color:var(--accent);
  background:var(--panel2);
  box-shadow:0 1px 4px rgba(0,0,0,.28);
}
.view-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.library{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:20px;
}
.card{
  background:linear-gradient(180deg,#1c2229,#151a20);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
  min-height:310px;
}
.card:hover{
  transform:translateY(-4px);
  border-color:#596575;
  box-shadow:var(--shadow);
}
.card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.cover {
  position:relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
}

.cover img {
  position:relative;
  z-index:1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-fallback{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:8px;
  padding:18px;
  background:
    linear-gradient(145deg,rgba(216,168,78,.22),rgba(122,162,184,.16)),
    #11161b;
}
.cover-fallback span{color:var(--accent);font-size:.7rem;font-weight:800;letter-spacing:.12em}
.cover-fallback strong{font:600 1.45rem/1.04 var(--display)}
.cover-caption{
  position:absolute;
  z-index:2;
  inset:auto 0 0;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:42px 16px 16px;
  background:linear-gradient(transparent,rgba(5,7,9,.92));
  text-shadow:0 2px 8px #000;
}
.cover-caption span{
  color:var(--accent);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.12em;
}
.cover-caption strong{font:600 1.22rem/1.08 var(--display)}
.detail-cover .cover-caption{padding:70px 18px 18px}
.detail-cover .cover-caption strong{font-size:1.65rem}

.meta{padding:14px 15px 16px}
.meta h3{font-family:var(--display);font-size:1.12rem;line-height:1.05;margin:0 0 7px}
.meta p{margin:0;color:var(--muted);font-size:.82rem}
.meta .card-year{margin-top:3px;color:var(--accent);font:600 .72rem/1 var(--display)}
.meta .card-description{display:none}
.library[data-view="cards"] .meta{display:flex;flex-direction:column}
.library[data-view="cards"] .card-title-line{order:1}
.library[data-view="cards"] .card-year-line{display:contents}
.library[data-view="cards"] .card-year{
  order:2;
  margin:0 0 5px;
  font-size:1.12rem;
  line-height:1.05;
}
.library[data-view="cards"] .card-developer{order:3}
.library[data-view="cards"] .card-personal-badges{order:4}
.library[data-view="cards"] .card-description{order:5}
.library[data-view="cards"] .tagline{order:6}
.library[data-view="cards"] .list-personal-badges{display:none}
.library[data-view="list"]{
  grid-template-columns:minmax(0,1fr);
  gap:12px;
}
.library[data-view="list"] .card{
  display:grid;
  grid-template-columns:90px minmax(0,1fr);
  height:120px;
  min-height:0;
  overflow:hidden;
  border-radius:10px;
}
.library[data-view="list"] .card:hover{transform:translateY(-2px)}
.library[data-view="list"] .cover{
  width:90px;
  height:120px;
  aspect-ratio:auto;
}
.library[data-view="list"] .cover-caption{display:none}
.library[data-view="list"] .meta{
  display:flex;
  flex-direction:column;
  min-width:0;
  width:100%;
  height:100%;
  padding:8px 14px;
  overflow:hidden;
}
.library[data-view="list"] .meta h3{font-size:1rem}
.list-personal-badges{display:none}
.library[data-view="list"] .card-title-line{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  margin-bottom:3px;
}
.library[data-view="list"] .card-title-line h3{
  min-width:0;
  margin-bottom:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.library[data-view="list"] .list-personal-badges{display:flex}
.library[data-view="list"] .card-personal-badges{display:none}
.library[data-view="list"] .card-title-line{order:1}
.library[data-view="list"] .card-year-line{order:2;margin-bottom:2px}
.library[data-view="list"] .card-developer{order:3}
.library[data-view="list"] .card-description{order:4}
.library[data-view="list"] .tagline{order:5}
.library[data-view="list"] .card-year{
  margin-top:0;
  font-size:1rem;
  line-height:1.05;
}
.library[data-view="list"] .card-developer{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.library[data-view="list"] .personal-badges{
  flex:none;
  flex-wrap:nowrap;
  margin-top:0;
}
.library[data-view="list"] .personal-badge{
  min-height:20px;
  padding:2px 6px;
  font-size:.62rem;
}
.library[data-view="list"] .meta .card-description{
  display:none;
}
.library[data-view="list"] .tagline{
  max-height:43px;
  margin-top:4px;
  flex-wrap:wrap;
  overflow:hidden;
}
.library[data-view="list"] .tag{padding:3px 6px;font-size:.63rem}
.tagline{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:10px;
}
.personal-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.personal-badge{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:3px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  color:#d8e0e7;
  background:rgba(122,162,184,.11);
  font-size:.66rem;
  font-weight:700;
}
.status-playing{border-color:rgba(122,162,184,.68);color:#a9cce0}
.status-played{border-color:rgba(126,169,126,.65);color:#b8dbb8}
.favorite-badge{border-color:rgba(216,168,78,.65);color:var(--accent);background:rgba(216,168,78,.08)}
.tag{
  all:unset;
  box-sizing:border-box;
  background:transparent;
  font-size:.68rem;
  padding:4px 7px;
  border:1px solid var(--line);
  border-radius:999px;
  color:#c9d1da;
  cursor:pointer;
  transition:border-color .15s ease;
}
.tag:hover{
  border-color:var(--accent);
}
.tag:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.empty{
  color:var(--muted);
  border:1px dashed var(--line);
  padding:30px;
  border-radius:12px;
}
.modal{position:fixed;inset:0;z-index:20}
.screenshots-section{margin-top:24px}
.screenshot-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.screenshot-thumb{
  display:block;
  aspect-ratio:8/5;
  overflow:hidden;
  padding:0;
  border:1px solid var(--line);
  border-radius:9px;
  background:#090b0e;
  cursor:zoom-in;
  transition:border-color .18s ease,transform .18s ease;
}
.screenshot-thumb:hover{border-color:var(--accent);transform:translateY(-2px)}
.screenshot-thumb:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.screenshot-thumb img{display:block;width:100%;height:100%;object-fit:cover;image-rendering:pixelated}
.image-lightbox{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:12px}
.image-lightbox.hidden{display:none}
.lightbox-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.9);backdrop-filter:blur(8px)}
.lightbox-content{position:relative;z-index:2;margin:0;max-width:calc(100vw - 24px);display:grid;justify-items:center}
.lightbox-content img{display:block;width:min(1280px,calc(100vw - 24px));height:auto;max-height:calc(100vh - 40px);object-fit:contain;border:1px solid #53606d;border-radius:8px;box-shadow:var(--shadow);image-rendering:pixelated}
.lightbox-close{right:8px;top:4px;z-index:3;width:42px;height:42px;border-radius:50%;background:rgba(9,11,14,.8)}
.lightbox-nav{
  position:absolute;
  z-index:3;
  top:50%;
  width:42px;
  height:58px;
  transform:translateY(-50%);
  border:1px solid rgba(255,255,255,.22);
  border-radius:9px;
  background:rgba(9,11,14,.64);
  color:rgba(255,255,255,.82);
  font:300 2.4rem/1 system-ui,sans-serif;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.lightbox-nav:hover{background:rgba(9,11,14,.9);border-color:var(--accent);color:var(--accent)}
.lightbox-nav:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.lightbox-prev{left:10px}
.lightbox-next{right:10px}
.reception{margin-top:24px}
.rating-average{
  display:flex;
  align-items:center;
  gap:10px;
  margin:8px 0 12px;
  color:var(--muted);
}
.rating-average strong{font-size:2rem;line-height:1;color:var(--accent)}
.rating-average span{font-size:.75rem;line-height:1.35}
.rating-pending{
  display:flex;
  align-items:center;
  gap:10px;
  margin:8px 0 12px;
  color:var(--muted);
}
.rating-pending strong{font-size:1.35rem;line-height:1;color:#c9d1da}
.rating-pending span{font-size:.75rem;line-height:1.35}
.rating-list{display:grid;gap:8px}
.rating-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  color:inherit;
  text-decoration:none;
  background:rgba(255,255,255,.025);
}
.rating-row:hover{border-color:var(--accent)}
.rating-row span{display:grid;gap:2px}
.rating-row small{color:var(--muted)}
.rating-row>b{color:var(--accent);white-space:nowrap}
.rating-note{margin:9px 0 0;color:var(--muted);font-size:.72rem}
.modal.hidden{display:none}
.modal-backdrop{
  position:absolute;inset:0;
  background:rgba(0,0,0,.68);
  backdrop-filter:blur(6px);
}
.sheet{
  position:relative;
  z-index:2;
  width:min(940px,calc(100% - 28px));
  max-height:calc(100vh - 28px);
  overflow:auto;
  margin:14px auto;
  background:#151a20;
  border:1px solid #46515d;
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:clamp(22px,4vw,46px);
}
.close{
  position:absolute;right:18px;top:14px;
  font-size:2rem;
  border:0;background:transparent;color:var(--text);
  cursor:pointer;
}
.detail-head{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:30px;
}
.detail-cover-column{min-width:0}
.detail-navigation{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  margin:0 46px 20px 0;
}
.detail-navigation-button{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  column-gap:9px;
  align-items:center;
  min-width:0;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:9px;
  background:rgba(255,255,255,.025);
  color:var(--text);
  text-align:left;
  cursor:pointer;
}
.detail-navigation-button:hover{border-color:var(--accent);background:rgba(216,168,78,.05)}
.detail-navigation-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.detail-navigation-button>span{color:var(--accent);font-size:1.5rem;line-height:1}
.detail-navigation-button strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 .78rem/1.25 var(--display)}
.detail-navigation-next{grid-template-columns:minmax(0,1fr) auto;text-align:right}
.detail-navigation-next>span{grid-column:2}
.detail-navigation-next strong{grid-column:1}
.detail-cover{
  position:relative;
  aspect-ratio:3/4;
  border:1px solid var(--line);
  border-radius:12px;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:
    linear-gradient(145deg,rgba(216,168,78,.18),rgba(122,162,184,.12)),
    #11161b;
}
.detail-cover img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}
.detail-cover strong{
  font:600 1.9rem/1.02 var(--display);
}
.play-profile{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
  overflow:visible;
}
.play-profile-item{
  position:relative;
  min-width:0;
  min-height:68px;
  padding:10px 11px;
  border-left:2px solid rgba(216,168,78,.55);
  border-radius:3px 8px 8px 3px;
  background:rgba(255,255,255,.035);
}
.play-profile-item>span:first-child,
.profile-help-trigger>span:first-child{display:block;color:var(--muted);font-size:.58rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.play-profile-item>strong,
.profile-value{display:block;margin-top:7px;color:var(--text);font:600 .78rem/1.15 var(--display)}
.profile-help-trigger{width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:help}
.profile-value{display:flex;align-items:center;gap:5px}
.info-mark{
  display:inline-grid;
  place-items:center;
  width:15px;height:15px;
  flex:0 0 auto;
  border:1px solid var(--accent);
  border-radius:50%;
  color:var(--accent);
  font:700 10px/1 sans-serif;
  font-style:normal;
}
.profile-help-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.technical-fact{position:relative}
.technical-help-trigger{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:help}
.technical-help-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.technical-help-trigger .info-mark{width:14px;height:14px;font-size:9px}
.technical-fact .profile-tooltip{left:110px}
.technical-fact .profile-tooltip::after{left:50%}
.profile-tooltip{
  position:absolute;
  z-index:5;
  left:50%;bottom:calc(100% + 10px);
  width:230px;
  padding:10px 12px;
  border:1px solid var(--accent);
  border-radius:8px;
  background:#0e1217;
  box-shadow:var(--shadow);
  color:#e2e6ea;
  font-size:.74rem;
  line-height:1.45;
  text-transform:none;
  letter-spacing:0;
  opacity:0;
  visibility:hidden;
  transform:translate(-50%,5px);
  transition:opacity .15s ease,transform .15s ease,visibility .15s;
  pointer-events:none;
}
.play-profile-item>.profile-tooltip{display:block;margin-top:0;color:#e2e6ea;text-transform:none;letter-spacing:0}
.profile-tooltip::after{content:"";position:absolute;left:50%;top:100%;width:8px;height:8px;border-right:1px solid var(--accent);border-bottom:1px solid var(--accent);background:#0e1217;transform:translate(-50%,-4px) rotate(45deg)}
.play-profile-item:nth-child(3) .profile-tooltip{left:calc(50% + 38px)}
.play-profile-item:nth-child(3) .profile-tooltip::after{left:calc(50% - 38px)}
.profile-with-help:hover .profile-tooltip,
.profile-with-help:focus-within .profile-tooltip,
.profile-with-help.is-open .profile-tooltip{opacity:1;visibility:visible;transform:translate(-50%,0)}
.detail h2{
  font:600 clamp(2rem,5vw,4rem)/.92 var(--display);
  letter-spacing:-.035em;
  margin:4px 0 18px;
}
.kicker{color:var(--accent);letter-spacing:.12em;font-size:.72rem;font-weight:800}
.factgrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(180px,1fr));
  gap:12px 24px;
}
.fact{border-top:1px solid var(--line);padding-top:8px}
.fact b{display:block;font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:3px}
.series-filter-link{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.series-filter-link span{color:var(--accent);font-size:1.15em;line-height:1;transition:transform .15s ease}
.series-filter-link:hover{color:var(--accent)}
.series-filter-link:hover span{transform:translateX(2px)}
.series-filter-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.series-active-filter{border-color:rgba(216,168,78,.65)}
.entity-active-filter{border-color:rgba(122,162,184,.7)}
.entity-list{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 5px}
.entity-with-help{position:relative;display:inline-flex;align-items:center;gap:4px}
.entity-filter-link{padding:0;border:0;background:transparent;color:var(--text);font:inherit;cursor:pointer}
.entity-filter-link:hover{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.entity-filter-link:focus-visible,.entity-info-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}
.entity-info-trigger{display:inline-grid;place-items:center;padding:0;border:0;background:transparent;cursor:help}
.entity-info-trigger .info-mark{width:13px;height:13px;font-size:9px}
.entity-tooltip{left:50%;width:270px}
.entity-tooltip strong,.entity-tooltip small{display:block}
.entity-tooltip strong{margin-bottom:3px;color:var(--text);font:600 .78rem/1.2 var(--display)}
.entity-tooltip small{margin-bottom:7px;color:var(--accent);font-size:.64rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.entity-with-help:hover .entity-tooltip,
.entity-with-help:focus-within .entity-tooltip{opacity:0;visibility:hidden;transform:translate(-50%,5px)}
.entity-info-trigger:hover + .entity-tooltip,
.entity-info-trigger:focus-visible + .entity-tooltip,
.entity-with-help.is-open .entity-tooltip{opacity:1;visibility:visible;transform:translate(-50%,0)}
.country-value{display:inline-flex;align-items:center;gap:.42rem}
.country-flag{font-size:1.15em;line-height:1}
.detail section{
  margin-top:30px;
  border-top:1px solid var(--line);
  padding-top:22px;
}
.detail section h3{
  font-family:var(--display);
  font-size:1.4rem;
  margin:0 0 10px;
}
.detail section p{color:#d5dbe2;line-height:1.65}
.related-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.related-card{
  display:grid;
  grid-template-columns:68px minmax(0,1fr);
  gap:12px;
  min-width:0;
  padding:8px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(255,255,255,.025);
  color:var(--text);
  text-align:left;
  cursor:pointer;
  transition:border-color .15s ease,background .15s ease,transform .15s ease;
}
.related-card:hover{border-color:var(--accent);background:rgba(216,168,78,.055);transform:translateY(-2px)}
.related-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.related-cover{
  position:relative;
  width:68px;
  height:91px;
  overflow:hidden;
  border-radius:7px;
  background:#111;
}
.related-cover img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;display:block}
.related-cover .cover-fallback{padding:7px;gap:3px}
.related-cover .cover-fallback span{font-size:.5rem}
.related-cover .cover-fallback strong{font-size:.68rem}
.related-copy{display:flex;min-width:0;flex-direction:column;align-items:flex-start;padding:4px 3px 3px 0}
.related-type{margin:0 0 7px;padding:3px 6px;border:1px solid rgba(216,168,78,.38);border-radius:4px;color:var(--accent);font-size:.5rem;font-weight:800;letter-spacing:.08em;line-height:1;text-transform:uppercase}
.related-type-narrative{border-color:rgba(126,165,191,.38);color:#9dbfd5}
.related-type-technical{border-color:rgba(167,143,197,.4);color:#bba5d5}
.related-copy strong{font:600 .92rem/1.08 var(--display)}
.related-copy small{margin-top:5px;color:var(--accent);font-size:.68rem;font-weight:700}
.related-copy em{margin-top:auto;color:var(--muted);font-size:.68rem;line-height:1.3;font-style:normal}
.detail .collection-panel{
  margin-top:24px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.025);
}
.detail .collection-panel h3{margin-bottom:4px}
.detail .collection-panel p{margin:0 0 13px;color:var(--muted);font-size:.78rem;line-height:1.4}
.collection-actions{display:flex;flex-wrap:wrap;gap:8px}
.collection-button{
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 12px;
  background:var(--panel);
  color:var(--muted);
  font:700 .76rem/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  cursor:pointer;
}
.collection-button:hover{border-color:var(--accent2);color:var(--text)}
.collection-button[aria-pressed="true"]{border-color:var(--accent2);background:rgba(122,162,184,.18);color:var(--text)}
.favorite-button[aria-pressed="true"]{border-color:var(--accent);background:rgba(216,168,78,.13);color:var(--accent)}
.collection-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.pills{display:flex;gap:7px;flex-wrap:wrap}
.pill{
  border:1px solid var(--line);
  background:var(--panel2);
  border-radius:999px;
  padding:6px 10px;
  font-size:.82rem;
}
@media(max-width:820px){
  .controls{grid-template-columns:1fr 1fr}
  .filter-search{grid-column:1/-1}
  .library-toolbar{align-items:flex-start;flex-direction:column}
  .view-controls{width:100%;flex-wrap:wrap}
  .detail-head{grid-template-columns:1fr}
  .detail-cover-column{width:100%;max-width:220px;margin-inline:auto}
  .related-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .topbar{align-items:flex-start;flex-direction:column}
  .brand{align-items:center}
  .brand-mark{width:64px}
  .controls{grid-template-columns:1fr}
  .filter-search{grid-column:auto}
  .factgrid{grid-template-columns:1fr}
  .detail-cover-column{max-width:268px}
  .detail-cover{width:220px;margin-inline:auto}
  .play-profile{gap:6px;margin-top:9px}
  .play-profile-item{min-height:56px;padding:8px 9px}
  .play-profile-item>span:first-child,
  .profile-help-trigger>span:first-child{font-size:.53rem;letter-spacing:.05em}
  .play-profile-item>strong,
  .profile-value{margin-top:5px;font-size:.72rem}
  .info-mark{width:13px;height:13px;font-size:9px}
  .play-profile-item:nth-child(3) .profile-tooltip{left:calc(50% + 28px)}
  .play-profile-item:nth-child(3) .profile-tooltip::after{left:calc(50% - 28px)}
  .detail-navigation{grid-template-columns:1fr;margin-right:42px}
  .detail-navigation-spacer{display:none}
  .screenshot-grid{grid-template-columns:1fr}
  .lightbox-nav{width:36px;height:50px;font-size:2rem}
  .library-toolbar{align-items:flex-start;flex-wrap:wrap}
  .header-stats{justify-items:end;align-self:stretch}
  .collection-summary{text-align:right}
  .collection-summary-row{justify-content:flex-end}
  .sort-control{width:100%}
  .sort-control select{flex:1;min-width:0}
  .library[data-view="list"] .card{grid-template-columns:89px minmax(0,1fr);height:118px;min-height:0}
  .library[data-view="list"] .cover{width:89px;height:118px}
  .library[data-view="list"] .meta{padding:7px 12px}
  .library[data-view="list"] .card-title-line{gap:5px}
  .library[data-view="list"] .personal-badge{min-height:18px;padding:2px 5px;font-size:.58rem}
  .library[data-view="list"] .tagline{max-height:46px}
}
