/* Shared portfolio shell; the game renderer retains the accepted dashboard styling. */
.header-location { position:relative;display:flex;align-items:baseline;gap:12px;min-width:0; }
.wordmark { flex-shrink:0;font-size:19px;font-weight:600;letter-spacing:-.5px; }
.wordmark-slash { color:#626b78;font-weight:400; }
header { gap:20px; }
.main-nav { flex-shrink:0;gap:4px; }
.main-nav > a { padding-inline:8px; }
.project-grid { display:grid;grid-template-columns:1fr;gap:42px;padding:4px 0 56px; }
.project-card { display:grid;grid-template-columns:196px minmax(0,1fr);align-items:start;gap:20px 40px;min-width:0;color:inherit; }
.project-card:focus-visible { outline-offset:10px;border-radius:3px; }
.project-cover { grid-row:1 / 3;display:block;width:100%;height:auto;object-fit:contain;border-radius:3px;box-shadow:0 6px 18px #0003;transition:transform .25s var(--ease),box-shadow .25s; }
.entry-details { min-width:0;padding:0; }
.entry-title { display:flex;align-items:center;gap:12px;margin:0 0 28px;font-size:26px;font-weight:500;line-height:1.2;letter-spacing:-.6px;color:var(--ink); }
.card-progress { min-width:0;display:grid;grid-template-columns:1fr;gap:24px; }
.card-measure-label { display:flex;align-items:baseline;justify-content:space-between;font-size:13px;margin-bottom:10px;color:#b8c1cd; }
.card-measure-label strong { color:var(--ink);font-size:13px;font-weight:500;font-variant-numeric:tabular-nums; }
.card-track { position:relative;height:var(--progress-track-height);border-radius:4px;background:var(--track); }
.card-track i { position:absolute;top:0;left:0;height:100%;width:0;border-radius:3px;transition:width .8s var(--ease); }
@media(hover:hover) { .project-card:hover .project-cover { transform:translateY(-3px);box-shadow:0 10px 24px #0005; } }
.hub-tooltip { position:fixed;z-index:20;padding:7px 10px;border:1px solid #454e5b;border-radius:6px;background:#20252cf7;color:var(--ink);font-size:12px;pointer-events:none;box-shadow:0 5px 24px #0005; }
.project-switcher { position:static;z-index:12;min-width:0; }
.wiki-location { display:flex;align-items:center;min-height:44px; }
.project-trigger { display:flex;align-items:center;gap:10px;cursor:pointer;min-height:44px;border:0;padding:0;background:transparent;border-radius:5px;color:inherit; }
.project-trigger:focus-visible { outline:2px solid var(--accent);outline-offset:5px; }
.game-title { font-size:15px;font-weight:450;color:var(--muted);max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .16s; }
.project-trigger:hover .game-title, .project-trigger[aria-expanded="true"] .game-title { color:var(--ink); }
.contribute-picker { position:relative;z-index:12; }
.contribute-picker summary { display:flex;align-items:center;gap:9px;min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:7px;list-style:none;cursor:pointer; }
.contribute-picker summary::-webkit-details-marker { display:none; }
.contribute-picker summary:focus-visible { outline:2px solid var(--accent);outline-offset:4px; }
.contribute-picker nav.project-menu { left:auto;right:0; }
.switch-chevron { width:14px;height:14px;flex-shrink:0;color:var(--muted);transition:transform .2s; }
.project-trigger[aria-expanded="true"] .switch-chevron { transform:rotate(180deg); }
.project-menu img { width:30px;height:40px;object-fit:cover;border-radius:2px; }
.project-menu small { display:block;color:var(--muted);font-size:10px;margin-top:2px; }
@media(max-width:700px) {
  .header-location { gap:9px; }.wordmark { font-size:17px; }
  .project-grid { gap:30px; }
  .project-card { grid-template-columns:128px minmax(0,1fr);gap:24px; }
  .entry-title { font-size:19px;letter-spacing:-.3px;margin-bottom:20px; }
  .card-progress { gap:14px; }
  .card-measure-label,.card-measure-label strong { font-size:12px; }
  .game-title { font-size:13px;max-width:160px; }.project-trigger { gap:7px; }
  .main-nav { gap:3px; }.main-nav a { padding:0 7px; }
  header { gap:12px; }
  .header-location { flex:1; }
  .project-switcher { flex:1; }
  .project-trigger { width:100%; }
  .game-title { min-width:0; }
  .main-nav { gap:2px; }
  .main-nav a { justify-content:center;width:40px;min-height:44px;padding:0; }
  .main-nav a > span { display:none; }
  .main-nav .icon { width:19px;height:19px; }
  .contribute-picker summary { padding:0 9px;gap:7px; }
}
@media(prefers-reduced-motion:reduce) { .project-cover,.card-track i,.switch-chevron { transition:none!important; } }


/* One shell and one gutter calculation for every route. */
html { scrollbar-gutter: stable; }
#page-content { min-width:0; }
#page-content main:focus { outline:none; }
.contribute-picker > .contribute-link { display:flex;align-items:center;gap:9px; }
.route-error { padding:40px 0; }


.hub-toolbar { display:flex;align-items:center;justify-content:space-between;gap:18px;padding:26px 0; }
.hub-search { flex:1;max-width:420px; }
.hub-options { display:flex;align-items:center;gap:8px; }
.hub-control { position:relative; }
.hub-icon-button { position:relative;display:grid;place-items:center;width:var(--control-height);height:var(--control-height);padding:0;border:1px solid var(--line);border-radius:var(--control-radius);background:var(--surface);color:#adb6c2;cursor:pointer;transition:background .16s,border-color .16s,color .16s; }
.hub-icon-button > svg { width:20px;height:20px; }
.hub-icon-button:hover,.hub-icon-button[aria-expanded="true"] { background:#262c34;border-color:#5a6574;color:var(--ink); }
.control-dot { display:none;position:absolute;right:6px;top:6px;width:4px;height:4px;border-radius:50%;background:var(--code-color); }
.has-selection .control-dot { display:block; }
.hub-popover { position:absolute;top:calc(100% + 10px);right:0;z-index:15;transform-origin:top right; }
.hub-popover[hidden],.project-card[hidden],.hub-empty[hidden] { display:none; }
.hub-empty { text-align:center;padding:50px 0 80px;color:var(--muted); }
.hub-empty p { margin:0 0 16px; }
.hub-empty button { border:1px solid var(--line);border-radius:7px;color:var(--ink);background:var(--surface);padding:9px 14px;cursor:pointer; }
@media(max-width:700px) {
  .hub-toolbar { gap:10px;padding:22px 0; }
  .hub-search { max-width:none; }
  .hub-options { gap:6px; }
}
@media(prefers-reduced-motion:reduce) { .hub-icon-button { transition:none; } }

.console-logo { width:20px;height:20px;flex-shrink:0; }

@media(max-width:400px) { .project-card { grid-template-columns:96px minmax(0,1fr);gap:18px; }.entry-title { font-size:17px;margin-bottom:18px; }.card-progress { gap:14px; }.card-measure-label,.card-measure-label strong { font-size:11px; } }

@media(prefers-reduced-motion:reduce) { .project-card:hover .project-cover { transform:none; } }

.entry-title .console-logo { width:24px;height:24px;color:#b4bdc9; }
@media(max-width:700px) {
  .project-card { row-gap:16px; }
  .project-cover { grid-row:auto; }
  .entry-commit { grid-column:1 / -1; }
  .entry-title { gap:9px; }
  .entry-title .console-logo { width:20px;height:20px; }
}

.main-nav .contribute-link[hidden] { display:none; }
.project-grid { gap:34px; }
.project-card { grid-template-columns:176px minmax(0,1fr);grid-template-rows:1fr auto;gap:12px 32px; }
.project-cover { grid-row:1 / 3; }
.entry-details { align-self:center; }
.entry-title { margin-bottom:18px;font-size:var(--text-title); }
.card-progress { gap:16px; }
.card-measure-label { margin-bottom:7px; }
.entry-commit { grid-column:2;display:flex;align-items:center;gap:16px;min-width:0;padding-top:10px;border-top:1px solid #ffffff0b;color:var(--muted); }
.commit-title { flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.5;color:#aab3bf; }
.commit-time { display:inline-flex;align-items:center;gap:5px;flex-shrink:0;white-space:nowrap;font-size:11px;color:var(--muted); }
@media(max-width:700px) {
  .project-card { grid-template-columns:128px minmax(0,1fr);gap:10px 22px; }
  .entry-title { font-size:18px;margin-bottom:14px; }
  .card-progress { gap:12px; }
  .entry-commit { grid-column:2;gap:10px;padding-top:8px; }
  .commit-title { font-size:12px; }
  .commit-time { font-size:11px; }
}
@media(max-width:400px) {
  .project-card { grid-template-columns:96px minmax(0,1fr);column-gap:16px; }
  .entry-title { font-size:16px;gap:7px; }
  .entry-title .console-logo { width:18px;height:18px; }
}

.commit-time svg { width:13px;height:13px;flex-shrink:0; }

.commit-icon { width:13px;height:13px;flex-shrink:0;color:var(--muted);margin-right:-5px; }

.game-identity { --identity-title-size:18px;--identity-title-leading:1.35;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding-top:24px; }
.game-identity-title { display:flex;align-items:center;gap:10px;flex:0 1 auto;margin:0;color:var(--ink);font-size:var(--identity-title-size);font-weight:500;line-height:var(--identity-title-leading);letter-spacing:-.25px; }
.game-identity-title { flex-wrap:wrap; }
.game-identity-title .game-name { min-width:0; }
.game-target { display:inline-flex;align-items:center;padding:3px 7px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:#bbc4cf;font-size:11px;font-weight:500;line-height:1.3;letter-spacing:.3px;white-space:nowrap; }
.game-identity-title .console-logo { width:21px;height:21px;color:#b4bdc9; }
.identity-commit { display:flex;align-items:center;gap:10px;min-width:0;width:100%;color:var(--muted); }
.identity-commit .commit-title { font-size:12px;transition:color .16s; }
.identity-commit:hover .commit-title { color:var(--ink); }
.identity-commit .commit-time[hidden] { display:none; }
.game-identity + .progress { padding-top:28px; }
@media(max-width:800px) {
  .game-identity { flex-direction:column;align-items:stretch;gap:10px;padding-top:20px; }
  .game-identity-title { font-size:18px; }
  .identity-commit { flex-basis:auto;width:100%; }
  .game-identity + .progress { padding-top:24px; }
}

/* A game's revisions share identity and artwork, never measurement state. */
.target-pickers { display:flex;flex-wrap:wrap;gap:8px; }
.target-picker { position:relative; }
.target-trigger { display:flex;align-items:center;gap:10px;padding:6px 10px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink);font:inherit;font-size:14px;cursor:pointer;transition:background .16s,border-color .16s; }
.target-trigger:hover,.target-trigger[aria-expanded="true"] { background:#242b33;border-color:#616c78; }
.target-trigger svg { width:16px;height:16px; }
.target-menu.hub-popover { left:0;right:auto;transform-origin:top left;min-width:0; }
.target-unavailable { margin:12px 0 64px;color:var(--muted);font-size:15px; }

.game-heading-row { display:flex;align-items:center;flex-wrap:wrap;gap:12px; }
.game-heading-row .game-identity-title { flex:0 1 auto; }
/* Keep desktop controls centered on the title without enlarging its layout row. */
@media(min-width:701px) {
  .game-heading-row .target-pickers { block-size:calc(var(--identity-title-size) * var(--identity-title-leading));align-items:center;align-content:center; }
}
.region-flag { display:inline-flex;align-items:center;font-size:16px;line-height:1; }
@media(max-width:700px) { .game-heading-row .target-pickers { flex-basis:100%; } }

/* Shared popover surface and selection mark, used by every dropdown. */
.hub-popover.shared-dropdown,nav.project-menu.hub-popover.shared-dropdown {
  width:max-content;min-width:0;max-width:min(420px,calc(100vw - 32px));padding:5px;
  border:1px solid #a4b5cd2b;border-radius:10px;background:linear-gradient(145deg,#242b34,#1b2129);
  box-shadow:0 16px 38px #0005,0 3px 10px #0003,inset 0 1px #ffffff06;
}
.shared-dropdown .dropdown-option { border:0;background:transparent;text-align:left;font-size:13px;display:flex;align-items:center;justify-content:flex-start;gap:14px;width:100%;padding:9px 11px;border-radius:6px;white-space:nowrap;color:#cbd3de;text-decoration:none;transition:background .13s,color .13s; }
.shared-dropdown .dropdown-option:hover,.shared-dropdown .dropdown-option:focus-visible { background:#ffffff0c;color:#f2f5fa;outline:none; }
.shared-dropdown .dropdown-option[aria-checked="true"] { background:#ffffff0a;color:#f2f5fa; }
.shared-dropdown .dropdown-option > .dropdown-check { width:14px;height:14px;flex:0 0 14px;margin-left:auto;color:#e2e8f1;opacity:0; }
.shared-dropdown .dropdown-option[aria-checked="true"] > .dropdown-check { opacity:1; }
.shared-dropdown .dropdown-option > span { min-width:0;overflow:hidden;text-overflow:ellipsis; }
.shared-dropdown[aria-hidden="true"] { pointer-events:none; }
@media(prefers-reduced-motion:reduce) { .shared-dropdown .dropdown-option { transition:none; } }

.ui-dropdown { position:relative; }
.shared-dropdown.project-menu { left:0;right:auto;display:grid;gap:3px;transform-origin:top left; }
.shared-dropdown .dropdown-option > .dropdown-option-text { display:block; }
.shared-dropdown .console-logo { flex-shrink:0; }
.dropdown-trigger { font:inherit; }

.ui-dropdown > .shared-dropdown[hidden] { display:none; }
.shared-dropdown .console-logo { opacity:1; }
.shared-dropdown .region-flag { flex-shrink:0;overflow:visible; }
.shared-dropdown .dropdown-option-text small { display:block;margin-top:2px;color:var(--muted);font-size:10px; }
