/* ◈ GAME LAYER — SEED BANK INTERNATIONAL edition.
   GENERATED from ~/geneticdesigner/game/game.css by scripts/port_game_css_to_sbi.py — do not hand-edit;
   edit GD's file and re-run. One dark game layer on both sites; SBI's accent is green. 640px breakpoint. */
:root { --sbi-accent: #3f9a5f; }
#profileConsole, #feedConsole, #gdHud, .gd-tabbar, #gdBoot, .pf-crop, .pf-create, .fx-toasts, .fx-unlock, .gd-notes { --gd-purple: var(--sbi-accent); --gd-ink: #e9e9f4; --gd-mono: ui-monospace, Menlo, monospace; }
/* SBI's own .console is a white document card; the profile console is the game's dark glass instead */
#profileConsole.console, #feedConsole.console { background: rgba(8, 9, 18, .96) !important; color: #e9e9f4 !important; border: 1px solid rgba(160, 230, 185, .35) !important; box-shadow: 0 -10px 60px rgba(0, 0, 0, .5) !important; }
#profileConsole .console-inner { display: grid; gap: 10px; }
#profileConsole .console-header, #feedConsole .console-header { display: flex; justify-content: space-between; align-items: center; color: #a0e6b9; border-bottom: 1px solid rgba(160, 230, 185, .35); padding-bottom: 5px; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
#profileConsole .console-header button, #feedConsole .console-header button { color: #a0e6b9 !important; border-color: rgba(160, 230, 185, .5) !important; }
#profileConsole .cm-meta { font-size: 12px; color: #8b86a8; letter-spacing: .1em; text-transform: uppercase; }
#profileConsole .cm-backbtn { color: #a0e6b9; }

/* ── phone tab bar — SBI has none of its own, hud.js builds it from GAME_HUD.tabbar ── */
.gd-tabbar { display: none; }
@media (max-width: 640px) {
  .gd-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 1400;
    background: rgba(8, 9, 18, .82); -webkit-backdrop-filter: blur(18px) saturate(132%); backdrop-filter: blur(18px) saturate(132%);
    border: 1px solid rgba(160, 230, 185, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 8px 30px rgba(0, 0, 0, .35);
    border-radius: 16px; padding: 6px 4px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .gd-tab { appearance: none; background: none; border: 0; font: inherit; cursor: pointer; position: relative;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            gap: 3px; padding: 7px 2px 6px; min-height: 52px; border-radius: 11px;
            color: #9fb8a8; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
  .gd-tab svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .gd-tab:active { transform: scale(.94); }
  .gd-tab[aria-current="true"] { color: #fff; background: rgba(94, 200, 130, .28); }
  .gd-tab .gd-badge { position: absolute; transform: translate(15px, -16px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px;
    background: var(--sbi-accent); color: #fff; font-size: 10px; line-height: 16px; font-variant-numeric: tabular-nums; }
  .gd-tab .gd-badge[hidden] { display: none; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .mobile-cart-bar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
  /* keep the catalogue's blocks in flow (the cards under the bar in the first measurement turned out
     to be the unpainted content of CLOSED breeder blocks — Chrome keeps it laid out for find-in-page) */
  #inventoryContainer { display: flow-root; }
}


/* ── boot splash ─────────────────────────────────────────────────────────── */
html.gd-booting { overflow: hidden; }
#gdBoot {
  position: fixed; inset: 0; z-index: 99999; background: #05060f; color: #c9b6ff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--gd-mono, ui-monospace, Menlo, monospace); cursor: pointer;
  opacity: 1; transition: opacity .45s ease;
  -webkit-user-select: none; user-select: none;
}
#gdBoot.gd-boot-out { opacity: 0; pointer-events: none; }
#gdBoot .gd-boot-ascii { position: absolute; inset: 0; display: block; animation: gd-boot-in 1.1s ease both; }
#gdBoot .gd-boot-word, #gdBoot .gd-boot-sub, #gdBoot .gd-boot-hint { position: relative; z-index: 1; }
#gdBoot .gd-boot-hint { position: absolute; }
#gdBoot .gd-boot-word {
  /* the site's own wordmark, measured live 2026-09-02: Inter 700, uppercase, -0.01em, white */
  font-family: Inter, -apple-system, system-ui, "Segoe UI", sans-serif; font-weight: 700; text-transform: uppercase;
  margin-top: 22px; font-size: clamp(30px, 5.2vw, 50px); letter-spacing: -0.01em; line-height: 1.06;
  color: #fff; opacity: 0; transform: translateY(6px); animation: gd-boot-word .8s ease .6s both;
  text-shadow: 0 0 18px rgba(94, 200, 130, .7);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
#gdBoot .gd-boot-word b { color: inherit; font-weight: inherit; }   /* all white, like the header's wordmark */
#gdBoot .gd-boot-sub {
  /* the header's own info line, measured live 2026-09-02: Inter 400, 14px, 0.16em, lavender */
  font-family: Inter, -apple-system, system-ui, "Segoe UI", sans-serif; font-weight: 400;
  margin-top: 10px; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #a0e6b9; opacity: 0; animation: gd-boot-word .6s ease 1.25s both;
}
#gdBoot .gd-boot-hint {
  font-family: Inter, -apple-system, system-ui, "Segoe UI", sans-serif;
  position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: #5c5878; opacity: 0; animation: gd-boot-blink 1.4s ease 1.5s infinite;
}
@keyframes gd-boot-in   { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes gd-boot-word { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes gd-boot-blink { 0%, 100% { opacity: 0; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  #gdBoot .gd-boot-ascii, #gdBoot .gd-boot-word, #gdBoot .gd-boot-sub { animation: none; opacity: 1; transform: none; }
  #gdBoot .gd-boot-hint { animation: none; opacity: .9; }
}

/* ── desktop HUD (the phone has the tab bar; the desktop gets a mini status bar) ── */
#gdHud { display: none; }
@media (min-width: 641px) {
  #gdHud {
    display: flex; align-items: stretch; gap: 0;
    position: fixed; right: 16px; bottom: 16px; z-index: 1400;
    background: var(--glass-bg, rgba(20, 15, 36, .58));
    -webkit-backdrop-filter: var(--glass-blur, blur(18px)); backdrop-filter: var(--glass-blur, blur(18px));
    border: 1px solid var(--glass-edge, rgba(160, 230, 185, .16));
    box-shadow: inset 0 1px 0 var(--glass-lip, rgba(255, 255, 255, .055)), 0 8px 30px rgba(0, 0, 0, .35);
    border-radius: 14px; padding: 4px; font-family: var(--gd-mono, ui-monospace, Menlo, monospace);
    color: #cfc6ea; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  }
  #gdHud .gd-hud-btn {
    appearance: none; background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit;
    text-transform: inherit; cursor: pointer; display: flex; align-items: center; gap: 8px;
    padding: 7px 11px; border-radius: 10px; min-height: 40px; transition: background .16s ease, color .16s ease;
  }
  #gdHud .gd-hud-btn:hover, #gdHud .gd-hud-btn:focus-visible { background: rgba(94, 200, 130, .22); color: #fff; }
  #gdHud .gd-hud-btn[aria-current="true"] { background: rgba(94, 200, 130, .30); color: #fff; }
  #gdHud .gd-hud-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  #gdHud .gd-hud-sep { width: 1px; margin: 8px 2px; background: rgba(160, 230, 185, .18); }
  #gdHud .gd-hud-avatar {
    width: 26px; height: 26px; border-radius: 50%; background: rgba(63, 154, 95, .35); border: 1px solid rgba(160, 230, 185, .35);
    display: grid; place-items: center; overflow: hidden; font-size: 12px; color: #fff; flex: none;
  }
  #gdHud .gd-hud-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  #gdHud .gd-hud-name { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
  #gdHud .gd-hud-name small { font-size: 9px; color: #9d8fb8; letter-spacing: .14em; }
  #gdHud .gd-hud-bar { width: 64px; height: 3px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; margin-top: 3px; }
  #gdHud .gd-hud-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6600cc, #7fd39b); transition: width .6s ease; }
  #gdHud .gd-hud-n {
    min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--sbi-accent, #3f9a5f); color: #fff;
    font-size: 10px; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums;
  }
  #gdHud .gd-hud-n[hidden] { display: none; }
  #gdHud .gd-hud-n.is-live { background: #2f9a5a; }
}
@media (min-width: 641px) and (prefers-reduced-motion: reduce) { #gdHud .gd-hud-btn, #gdHud .gd-hud-bar i { transition: none; } }

/* ── phone tab bar: five destinations, Profile bottom-right ─────────────── */
@media (max-width: 640px) {
  nav.gd-tabbar[role="navigation"] { grid-template-columns: repeat(5, 1fr); }
  nav.gd-tabbar .gd-tab { font-size: 9.5px; letter-spacing: .08em; }
  .gd-tab .gd-tab-avatar { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; display: none; }
  .gd-tab .gd-tab-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .gd-tab.has-avatar svg { display: none; }
  .gd-tab.has-avatar .gd-tab-avatar { display: block; }
  #profileConsole .console-inner { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ── profile console (the character sheet) ───────────────────────────────── */
/* The OAuth anchors carry display:inline-flex, which outranks the UA's [hidden]{display:none} —
   the buttons rendered while hidden (caught on the first screenshot, 2026-09-02). */
#profileConsole [hidden] { display: none !important; }
#profileConsole .pf-sheet { display: grid; gap: 14px; }
#profileConsole .pf-id { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
#profileConsole .pf-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(63, 154, 95, .25); border: 2px solid var(--sbi-accent, #3f9a5f);
  display: grid; place-items: center; overflow: hidden; font-size: 28px; color: #fff; flex: none; position: relative;
}
#profileConsole .pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
#profileConsole .pf-avatar input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#profileConsole .pf-who h3 { font-size: 22px; margin: 0 0 2px; color: #e9e9f4; }
#profileConsole .pf-who .pf-handle { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: #6f6a8a; }
#profileConsole .pf-who .pf-bio { font-size: 14px; color: #c9c4dc; margin-top: 6px; max-width: 560px; line-height: 1.55; }
#profileConsole .pf-level { display: grid; gap: 4px; min-width: 200px; flex: 1; }
#profileConsole .pf-level .pf-lv { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: #6f6a8a; }
#profileConsole .pf-level .pf-lv b { color: #a0e6b9; }
#profileConsole .pf-level .pf-xp { height: 6px; background: rgba(63, 154, 95, .12); border: 1px solid rgba(63, 154, 95, .3); border-radius: 3px; overflow: hidden; }
#profileConsole .pf-level .pf-xp i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6600cc, #7fd39b); transition: width .7s ease; }
#profileConsole .pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
#profileConsole .pf-stat { border: 1px solid rgba(63, 154, 95, .3); background: rgba(255, 255, 255, .03); padding: 9px 10px; }
#profileConsole .pf-stat b { display: block; font-size: 20px; color: #e9e9f4; font-variant-numeric: tabular-nums; }
#profileConsole .pf-stat span { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #6f6a8a; }
#profileConsole .pf-tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid rgba(63, 154, 95, .35); }
#profileConsole .pf-tab {
  background: none; border: 0; border-bottom: 2px solid transparent; color: #6f6a8a; font-family: inherit; font-size: 13px;
  letter-spacing: 1.4px; text-transform: uppercase; padding: 8px 10px; cursor: pointer; margin-bottom: -1px; min-height: 40px;
}
#profileConsole .pf-tab[aria-selected="true"] { color: #a0e6b9; border-bottom-color: var(--sbi-accent, #3f9a5f); }
#profileConsole .pf-tab .pf-n { font-size: 11px; color: #9d8fb8; margin-left: 4px; }
#profileConsole .pf-pane { max-height: 62vh; overflow-y: auto; padding-top: 6px; }
#profileConsole .pf-empty { font-size: 14px; color: #6f6a8a; padding: 14px 0; line-height: 1.6; }
#profileConsole .pf-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(63, 154, 95, .18); font-size: 14px; }
#profileConsole .pf-row .pf-k { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #6f6a8a; min-width: 62px; }
#profileConsole .pf-row .pf-t { flex: 1; min-width: 0; }
#profileConsole .pf-row .pf-t b { color: #e9e9f4; }
#profileConsole .pf-row .pf-t small { display: block; color: #6f6a8a; font-size: 12px; margin-top: 2px; }
#profileConsole .pf-row .pf-q { font-variant-numeric: tabular-nums; color: var(--sbi-accent, #3f9a5f); white-space: nowrap; }
#profileConsole .pf-chip {
  display: inline-block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 7px; margin: 0 4px 4px 0;
  border: 1px solid rgba(63, 154, 95, .4); color: #a0e6b9; background: rgba(63, 154, 95, .06);
}
#profileConsole .pf-chip.is-ok { border-color: rgba(127, 211, 155, .5); color: #7fd39b; background: rgba(127, 211, 155, .1); }
#profileConsole .pf-chip.is-warn { border-color: rgba(255, 143, 122, .6); color: #ff8f7a; background: rgba(255, 143, 122, .1); }
#profileConsole .pf-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
#profileConsole .pf-photos a { display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(63, 154, 95, .25); background: rgba(255, 255, 255, .03); }
#profileConsole .pf-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
#profileConsole .pf-form { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; }
#profileConsole .pf-form label { display: grid; gap: 3px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #6f6a8a; }
#profileConsole .pf-form input, #profileConsole .pf-form select, #profileConsole .pf-form textarea {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(63, 154, 95, .5); color: #e9e9f4; padding: 8px 10px;
  font-family: inherit; font-size: 16px; min-height: 40px; width: 100%; box-sizing: border-box;
}
#profileConsole .pf-form textarea { min-height: 72px; resize: vertical; }
#profileConsole .pf-form .pf-wide { grid-column: 1 / -1; }
#profileConsole .pf-btn {
  background: var(--sbi-accent, #3f9a5f); border: 1px solid var(--sbi-accent, #3f9a5f); color: #fff; font-family: inherit; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 9px 14px; cursor: pointer; min-height: 40px;
}
#profileConsole .pf-btn.is-ghost { background: none; color: #a0e6b9; }
#profileConsole .pf-btn:disabled { opacity: .5; cursor: default; }
#profileConsole .pf-links a { display: inline-block; margin: 0 8px 6px 0; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #a0e6b9; }
#profileConsole .pf-note { font-size: 13px; color: #a0e6b9; border-left: 2px solid var(--sbi-accent, #3f9a5f); background: rgba(63, 154, 95, .08); padding: 8px 10px; }
#profileConsole .pf-note.is-bad { color: #ff8f7a; border-left-color: #ff8f7a; background: rgba(255, 143, 122, .1); }
#profileConsole .pf-auth { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border: 1px solid rgba(63, 154, 95, .45); padding: 12px; font-size: 14px; color: #6f6a8a; }
#profileConsole .pf-auth input { flex: 1; min-width: 190px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(63, 154, 95, .5); color: #e9e9f4; padding: 8px 10px; font-family: inherit; font-size: 16px; min-height: 40px; }
#profileConsole .pf-auth a.pf-oauth { background: none; border: 1px solid var(--sbi-accent, #3f9a5f); color: #a0e6b9; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; padding: 9px 12px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
#profileConsole .pf-auth a.pf-oauth.is-discord { background: #5865F2; border-color: #5865F2; color: #fff; }
#profileConsole .pf-guest { display: grid; gap: 12px; }
#profileConsole .pf-guest .pf-guest-hero { font-size: 14px; line-height: 1.7; color: #c9c4dc; }
#profileConsole .pf-guest .pf-guest-hero b, #profileConsole .pf-guest ul b { color: #a0e6b9; }
#profileConsole .pf-guest ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.8; color: #c9c4dc; }
@media (prefers-reduced-motion: reduce) { #profileConsole .pf-level .pf-xp i { transition: none; } }

/* ── edit pane v2: avatar crop, link editor, even stat rows, scrollable tab strip (2026-09-02) ── */
#profileConsole .pf-id { position: relative; }
#profileConsole .pf-avatar-edit {
  position: absolute; left: 0; top: 54px; width: 72px; text-align: center; font-family: inherit; font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(0, 0, 0, .55); color: #fff; border: 0; border-radius: 0 0 36px 36px; padding: 5px 0 6px; cursor: pointer; line-height: 1;
}
#profileConsole .pf-avatar-edit:hover, #profileConsole .pf-avatar-edit:focus-visible { background: var(--sbi-accent, #3f9a5f); }
#profileConsole .pf-links a { display: inline-flex; align-items: center; gap: 5px; margin: 0 10px 6px 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
#profileConsole .pf-links svg, #profileConsole .pf-linkicon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#profileConsole .pf-grid { grid-template-columns: repeat(6, 1fr); }
#profileConsole .pf-lbl { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #8b86a8; margin-bottom: 6px; }
#profileConsole .pf-lbl small { text-transform: none; letter-spacing: 0; color: #6f6a8a; margin-left: 6px; }
#profileConsole .pf-linkrow { display: grid; grid-template-columns: 28px 130px 1fr 34px; gap: 6px; align-items: center; margin-bottom: 6px; }
#profileConsole .pf-linkicon { display: grid; place-items: center; width: 28px; height: 28px; color: #a0e6b9; }
#profileConsole .pf-linkrow input[aria-invalid="true"] { border-color: #ff8f7a; }
#profileConsole .pf-linkdel { appearance: none; background: none; border: 1px solid rgba(255, 143, 122, .5); color: #ff8f7a; width: 34px; height: 34px; border-radius: 4px; cursor: pointer; font-size: 18px; line-height: 1; }
#profileConsole .pf-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#profileConsole .pf-hint { font-size: 12px; color: #8b86a8; line-height: 1.5; }
#profileConsole .pf-hint b { color: #a0e6b9; }
.pf-crop { position: fixed; inset: 0; z-index: 2000; background: rgba(5, 6, 15, .82); display: grid; place-items: center; padding: 16px; }
.pf-crop-card { background: #0b0c1a; border: 1px solid rgba(160, 230, 185, .35); padding: 18px; display: grid; gap: 12px; justify-items: center; color: #e9e9f4; font-family: inherit; max-width: 100%; }
.pf-crop-title { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #a0e6b9; }
.pf-crop-stage { position: relative; overflow: hidden; touch-action: none; background: #000; border-radius: 4px; }
.pf-crop-stage canvas { display: block; cursor: grab; }
.pf-crop-mask { position: absolute; inset: 0; pointer-events: none; box-shadow: 0 0 0 999px rgba(5, 6, 15, .62) inset; border-radius: 50%; }
.pf-crop-zoom { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8b86a8; width: 100%; }
.pf-crop-zoom input { flex: 1; accent-color: var(--sbi-accent, #3f9a5f); }
.pf-crop-hint { font-size: 11px; color: #6f6a8a; letter-spacing: .06em; }
.pf-crop-actions { display: flex; gap: 8px; }
.pf-crop .pf-btn { background: var(--sbi-accent, #3f9a5f); border: 1px solid var(--sbi-accent, #3f9a5f); color: #fff; font-family: inherit; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; padding: 9px 14px; cursor: pointer; min-height: 40px; }
.pf-crop .pf-btn.is-ghost { background: none; color: #a0e6b9; }
@media (max-width: 640px) {
  /* spatial pass for the phone: one column of identity, three-by-two stats, a tab strip that
     scrolls instead of wrapping, single-column forms. Six cells ÷ three columns = no hanging row. */
  #profileConsole .pf-id { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  #profileConsole .pf-avatar-edit { left: 50%; transform: translateX(-50%); }
  #profileConsole .pf-who { display: grid; justify-items: center; }
  #profileConsole .pf-level { width: 100%; min-width: 0; }
  #profileConsole .pf-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  #profileConsole .pf-stat { padding: 8px 6px; text-align: center; }
  #profileConsole .pf-stat b { font-size: 18px; }
  #profileConsole .pf-stat span { font-size: 9.5px; letter-spacing: .08em; }
  #profileConsole .pf-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
  #profileConsole .pf-tabs::-webkit-scrollbar { display: none; }
  #profileConsole .pf-tab { flex: 0 0 auto; scroll-snap-align: center; }
  #profileConsole .pf-form { grid-template-columns: 1fr; }
  #profileConsole .pf-linkrow { grid-template-columns: 28px 1fr 34px; grid-template-areas: "icon label del" "url url url"; }
  #profileConsole .pf-linkicon { grid-area: icon; } #profileConsole .pf-linklabel { grid-area: label; } #profileConsole .pf-linkurl { grid-area: url; } #profileConsole .pf-linkdel { grid-area: del; }
  #profileConsole .pf-row { flex-wrap: wrap; }
}

/* ── stash v2: a photo grid, public/private per item, the provenance seal (2026-09-02) ── */
#profileConsole .pf-stash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
#profileConsole .pf-card { border: 1px solid rgba(63, 154, 95, .35); background: rgba(255, 255, 255, .03); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; position: relative; }
#profileConsole .pf-card-img { aspect-ratio: 1; background: rgba(63, 154, 95, .08); display: grid; place-items: center; color: #a0e6b9; cursor: pointer; overflow: hidden; }
#profileConsole .pf-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#profileConsole .pf-card-img svg { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
#profileConsole .pf-card-body { padding: 8px 9px 6px; display: grid; gap: 3px; min-width: 0; }
#profileConsole .pf-card-body b { font-size: 14px; color: #e9e9f4; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#profileConsole .pf-card-body small { font-size: 11px; color: #8b86a8; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#profileConsole .pf-card-body p { font-size: 12px; color: #c9c4dc; line-height: 1.45; margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#profileConsole .pf-card-foot { display: flex; gap: 4px; align-items: center; padding: 6px 7px 7px; border-top: 1px solid rgba(63, 154, 95, .2); }
#profileConsole .pf-card-foot select { flex: 1; min-width: 0; font-size: 12px; padding: 5px 4px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(63, 154, 95, .4); color: #e9e9f4; font-family: inherit; min-height: 34px; }
#profileConsole .pf-ico { appearance: none; background: none; border: 1px solid rgba(63, 154, 95, .4); color: #a0e6b9; width: 34px; height: 34px; border-radius: 4px; cursor: pointer; display: grid; place-items: center; flex: none; }
#profileConsole .pf-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#profileConsole .pf-ico[aria-pressed="true"] { background: rgba(127, 211, 155, .15); border-color: rgba(127, 211, 155, .6); color: #7fd39b; }
#profileConsole .pf-ico.is-danger { color: #ff8f7a; border-color: rgba(255, 143, 122, .45); }
#profileConsole .pf-seal { position: absolute; top: 6px; left: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 6px; background: rgba(5, 6, 15, .78); color: #7fd39b; border: 1px solid rgba(127, 211, 155, .5); }
#profileConsole .pf-seal.is-unsigned { color: #a0e6b9; border-color: rgba(160, 230, 185, .5); }
#profileConsole .pf-seal svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }
#profileConsole .pf-vis { position: absolute; top: 6px; right: 6px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 6px; background: rgba(5, 6, 15, .78); color: #8b86a8; border: 1px solid rgba(139, 134, 168, .4); }
#profileConsole .pf-vis.is-public { color: #7fd39b; border-color: rgba(127, 211, 155, .5); }
#profileConsole .pf-photo-pick { display: flex; gap: 8px; align-items: center; }
#profileConsole .pf-photo-pick .pf-thumb { width: 52px; height: 52px; border: 1px dashed rgba(63, 154, 95, .5); display: grid; place-items: center; color: #a0e6b9; overflow: hidden; flex: none; cursor: pointer; }
#profileConsole .pf-photo-pick .pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
#profileConsole .pf-photo-pick .pf-thumb svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
#profileConsole .pf-seg { display: inline-flex; border: 1px solid rgba(63, 154, 95, .45); }
#profileConsole .pf-seg button { appearance: none; background: none; border: 0; color: #8b86a8; font-family: inherit; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; min-height: 40px; }
#profileConsole .pf-seg button[aria-pressed="true"] { background: var(--sbi-accent, #3f9a5f); color: #fff; }
#profileConsole .pf-edit-inline { grid-column: 1 / -1; border: 1px solid rgba(63, 154, 95, .45); padding: 10px; display: grid; gap: 8px; }
@media (max-width: 640px) {
  #profileConsole .pf-stash-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  #profileConsole .pf-card-foot { flex-wrap: wrap; }
  #profileConsole .pf-card-foot select { flex: 1 1 100%; }
}

/* ── the "+" composer ── */
.pf-crop-mask.is-square { border-radius: 0; box-shadow: none; outline: 2px solid rgba(255, 255, 255, .55); outline-offset: -2px; }
.pf-composer { width: min(520px, 100%); justify-items: stretch; }
.pf-composer textarea { width: 100%; box-sizing: border-box; background: rgba(255, 255, 255, .04); border: 1px solid rgba(63, 154, 95, .5); color: #e9e9f4; padding: 8px 10px; font-family: inherit; font-size: 16px; resize: vertical; min-height: 64px; }
.pf-composer input, .pf-composer select { width: 100%; box-sizing: border-box; background: rgba(255, 255, 255, .04); border: 1px solid rgba(63, 154, 95, .5); color: #e9e9f4; padding: 8px 10px; font-family: inherit; font-size: 16px; min-height: 40px; }
.pf-composer .pf-lbl { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #8b86a8; }
.pf-composer .pf-seg { display: inline-flex; border: 1px solid rgba(63, 154, 95, .45); }
.pf-composer .pf-seg button { appearance: none; background: none; border: 0; color: #8b86a8; font-family: inherit; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; min-height: 40px; }
.pf-composer .pf-seg button[aria-pressed="true"] { background: var(--sbi-accent, #3f9a5f); color: #fff; }
.pf-composer .pf-seg button:disabled { opacity: .4; cursor: default; }
.pf-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-thumb-img { position: relative; width: 72px; height: 72px; overflow: hidden; border: 1px solid rgba(63, 154, 95, .45); }
.pf-thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-thumb-img button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(5, 6, 15, .8); color: #fff; font-size: 13px; line-height: 20px; cursor: pointer; padding: 0; }
.pf-thumb-add { width: 72px; height: 72px; border: 1px dashed rgba(63, 154, 95, .6); background: none; color: #a0e6b9; display: grid; place-items: center; gap: 2px; font-family: inherit; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; padding: 4px; }
.pf-thumb-add svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── FX: toasts, unlock reveal, burst (2026-09-02, "game feel") ── */
.fx-toasts { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2500; display: grid; gap: 6px; pointer-events: none; width: min(420px, calc(100vw - 32px)); }
@media (min-width: 641px) { .fx-toasts { left: auto; right: 16px; bottom: 76px; transform: none; } }
.fx-toast { display: flex; align-items: center; gap: 10px; background: rgba(8, 9, 18, .94); color: #e9e9f4; border: 1px solid rgba(160, 230, 185, .35); padding: 10px 14px; font-family: var(--gd-mono, ui-monospace, Menlo, monospace); font-size: 12px; letter-spacing: .06em; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .22s ease, transform .22s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.fx-toast.is-in { opacity: 1; transform: none; }
.fx-toast.is-out { opacity: 0; transform: translateY(-6px); }
.fx-toast.is-bad { border-color: rgba(255, 143, 122, .6); color: #ffb4a6; }
.fx-toast.is-ok { border-color: rgba(127, 211, 155, .5); }
.fx-toast-ico { font-size: 16px; line-height: 1; }
.fx-toast-txt { flex: 1; min-width: 0; }
.fx-toast-pts { color: #7fd39b; font-variant-numeric: tabular-nums; }
.fx-burst { position: fixed; inset: 0; z-index: 2600; pointer-events: none; }
.fx-unlock { position: fixed; inset: 0; z-index: 2400; background: rgba(5, 6, 15, .72); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .22s ease; }
.fx-unlock.is-in { opacity: 1; }
.fx-unlock-card { width: min(360px, 100%); text-align: center; background: #0b0c1a; border: 1px solid rgba(160, 230, 185, .4); padding: 26px 22px 20px; color: #e9e9f4; font-family: var(--gd-mono, ui-monospace, Menlo, monospace); transform: scale(.92) translateY(8px); transition: transform .28s cubic-bezier(.2, .9, .3, 1.2); }
.fx-unlock.is-in .fx-unlock-card { transform: none; }
.fx-unlock-card.is-silver { border-color: rgba(220, 220, 235, .55); } .fx-unlock-card.is-gold { border-color: rgba(255, 210, 110, .7); box-shadow: 0 0 40px rgba(255, 210, 110, .18); }
.fx-unlock-kicker { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: #a0e6b9; }
.fx-unlock-ico { font-size: 54px; line-height: 1.2; margin: 10px 0 6px; filter: drop-shadow(0 0 18px rgba(160, 230, 185, .6)); }
.fx-unlock-name { font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.fx-unlock-desc { font-size: 12px; color: #8b86a8; margin-top: 6px; line-height: 1.5; }
.fx-unlock-meta { display: flex; justify-content: center; gap: 12px; margin-top: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8b86a8; }
.fx-unlock-meta b { color: #7fd39b; }
.fx-unlock-ok { margin-top: 16px; background: var(--sbi-accent, #3f9a5f); border: 1px solid var(--sbi-accent, #3f9a5f); color: #fff; font-family: inherit; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; padding: 9px 22px; cursor: pointer; min-height: 40px; }

/* ── continuity: consoles slide in, panes cross-fade, images fade in, skeletons instead of "Loading…" ── */
@keyframes gd-console-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.console.active { animation: gd-console-in .26s cubic-bezier(.2, .8, .2, 1) both; }
@media (max-width: 768px) { @keyframes gd-console-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } } }
@keyframes gd-pane-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#profileConsole .pf-pane > * { animation: gd-pane-in .22s ease both; }
#profileConsole img[data-fade] { opacity: 0; transition: opacity .35s ease; } #profileConsole img[data-fade].is-loaded { opacity: 1; }
.pf-skel { display: grid; gap: 12px; }
.pf-skel i { display: block; background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .12), rgba(255, 255, 255, .05)); background-size: 200% 100%; animation: pf-shimmer 1.2s linear infinite; border-radius: 4px; }
@keyframes pf-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .console.active, #profileConsole .pf-pane > *, .fx-toast, .fx-unlock-card { animation: none; transition: none; } }

/* ── progression: the XP ring, the catalogue, the quest log ── */
#profileConsole .pf-ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); pointer-events: none; }
#profileConsole .pf-ring circle { fill: none; stroke-width: 3; }
#profileConsole .pf-ring .bg { stroke: rgba(63, 154, 95, .25); } #profileConsole .pf-ring .fg { stroke: #7fd39b; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2, .8, .2, 1); }
#profileConsole .pf-avatar { overflow: visible; }
#profileConsole .pf-avatar > img, #profileConsole .pf-avatar-inner { border-radius: 50%; overflow: hidden; width: 100%; height: 100%; display: grid; place-items: center; }
#profileConsole .pf-next { font-size: 11px; color: #8b86a8; letter-spacing: .06em; margin-top: 2px; }
#profileConsole .pf-next b { color: #a0e6b9; }
#profileConsole .pf-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
#profileConsole .pf-ach { border: 1px solid rgba(63, 154, 95, .35); background: rgba(255, 255, 255, .03); padding: 10px; display: grid; gap: 4px; position: relative; }
#profileConsole .pf-ach.is-locked { opacity: .55; filter: grayscale(1); }
#profileConsole .pf-ach.is-locked:hover { opacity: .85; }
#profileConsole .pf-ach .ico { font-size: 26px; line-height: 1.1; }
#profileConsole .pf-ach b { font-size: 13px; color: #e9e9f4; letter-spacing: .04em; }
#profileConsole .pf-ach small { font-size: 11px; color: #8b86a8; line-height: 1.4; }
#profileConsole .pf-ach .tier { position: absolute; top: 8px; right: 8px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 6px; border: 1px solid rgba(160, 230, 185, .35); color: #a0e6b9; }
#profileConsole .pf-ach.t-silver .tier { border-color: rgba(220, 220, 235, .5); color: #dcdceb; } #profileConsole .pf-ach.t-gold .tier { border-color: rgba(255, 210, 110, .6); color: #ffd26e; }
#profileConsole .pf-ach .bar { height: 4px; background: rgba(63, 154, 95, .15); border-radius: 2px; overflow: hidden; margin-top: 4px; }
#profileConsole .pf-ach .bar i { display: block; height: 100%; background: linear-gradient(90deg, #6600cc, #7fd39b); }
#profileConsole .pf-ach .pts { font-size: 10px; color: #7fd39b; letter-spacing: .1em; }
#profileConsole .pf-quest { border: 1px solid rgba(127, 211, 155, .35); background: rgba(127, 211, 155, .06); padding: 10px 12px; display: grid; gap: 6px; }
#profileConsole .pf-quest .q-title { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #7fd39b; display: flex; justify-content: space-between; }
#profileConsole .pf-quest .q-title button { background: none; border: 0; color: #8b86a8; font-family: inherit; font-size: 11px; cursor: pointer; }
#profileConsole .pf-quest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#profileConsole .pf-quest li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c9c4dc; cursor: pointer; }
#profileConsole .pf-quest li.is-done { color: #6f6a8a; text-decoration: line-through; }
#profileConsole .pf-quest li .q-box { width: 16px; height: 16px; border: 1px solid rgba(127, 211, 155, .6); display: grid; place-items: center; font-size: 11px; color: #7fd39b; flex: none; }
#profileConsole .pf-feed { display: grid; gap: 4px; margin-top: 12px; }
#profileConsole .pf-feed div { display: flex; justify-content: space-between; font-size: 12px; color: #8b86a8; border-bottom: 1px solid rgba(63, 154, 95, .15); padding: 4px 0; }
#profileConsole .pf-feed b { color: #7fd39b; }

/* ── the bell: a notifications panel above the HUD ── */
.gd-notes { position: fixed; right: 16px; bottom: 76px; z-index: 1450; width: min(360px, calc(100vw - 32px)); background: rgba(8, 9, 18, .96); border: 1px solid rgba(160, 230, 185, .35); box-shadow: 0 12px 40px rgba(0, 0, 0, .4); color: #e9e9f4; font-family: var(--gd-mono, ui-monospace, Menlo, monospace); font-size: 12px; display: grid; }
.gd-notes-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid rgba(160, 230, 185, .2); letter-spacing: .14em; text-transform: uppercase; font-size: 10px; color: #a0e6b9; }
.gd-notes-head button { background: none; border: 0; color: #8b86a8; font-family: inherit; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.gd-notes-list { max-height: 50vh; overflow-y: auto; }
.gd-note { padding: 9px 12px; border-bottom: 1px solid rgba(160, 230, 185, .12); display: grid; gap: 2px; cursor: pointer; }
.gd-note.is-unread { background: rgba(63, 154, 95, .12); }
.gd-note b { color: #fff; font-weight: normal; letter-spacing: .04em; } .gd-note span { color: #8b86a8; } .gd-note small { color: #5c5878; font-size: 10px; }
.gd-notes-empty { padding: 16px 12px; color: #8b86a8; }

/* ── the "+" create menu, and the game layer's own type (never the document's serif) ── */
#profileConsole, #gdHud, .gd-tabbar, .gd-notes, .fx-toast, .fx-unlock-card, .pf-crop-card, .pf-create-card { font-family: Inter, -apple-system, system-ui, "Segoe UI", sans-serif; }
#profileConsole .console-header, #gdHud, .gd-notes, .fx-toast, .fx-unlock-kicker, .fx-unlock-meta, .pf-crop-title, .pf-crop-zoom, .pf-crop-hint, .pf-create-card small { font-family: var(--gd-mono, ui-monospace, Menlo, monospace); }
#profileConsole .pf-plus { width: 40px; height: 40px; border-radius: 50%; background: var(--sbi-accent, #3f9a5f); border: 1px solid var(--sbi-accent, #3f9a5f); color: #fff; font: 700 22px/1 Inter, system-ui, sans-serif; cursor: pointer; margin-right: 8px; display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(94, 200, 130, .5); transition: transform .14s ease, box-shadow .3s ease; }
#profileConsole .pf-plus:hover { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(94, 200, 130, .18); }
#profileConsole .pf-plus[hidden] { display: none; }
.pf-create { position: fixed; inset: 0; z-index: 2300; background: rgba(5, 6, 15, .55); display: grid; place-items: end center; opacity: 0; transition: opacity .18s ease; }
.pf-create.is-in { opacity: 1; }
.pf-create-card { width: min(520px, 100%); background: #0b0c1a; border: 1px solid rgba(160, 230, 185, .4); border-bottom: 0; border-radius: 16px 16px 0 0; padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 6px; position: relative; transform: translateY(24px); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.pf-create.is-in .pf-create-card { transform: none; }
@media (min-width: 641px) { .pf-create { place-items: center; } .pf-create-card { border-radius: 14px; border-bottom: 1px solid rgba(160, 230, 185, .4); padding-bottom: 12px; } }
.pf-create-card [data-make] { display: flex; align-items: center; gap: 14px; text-align: left; background: rgba(255, 255, 255, .03); border: 1px solid rgba(160, 230, 185, .18); color: #e9e9f4; padding: 12px 14px; cursor: pointer; font-family: inherit; border-radius: 10px; min-height: 64px; transition: background .14s ease, border-color .14s ease; }
.pf-create-card [data-make]:hover, .pf-create-card [data-make]:focus-visible { background: rgba(63, 154, 95, .18); border-color: rgba(160, 230, 185, .5); }
.pf-create-card .ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(63, 154, 95, .25); display: grid; place-items: center; color: #a0e6b9; flex: none; }
.pf-create-card .ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pf-create-card b { display: block; font-size: 15px; letter-spacing: .02em; }
.pf-create-card small { display: block; font-size: 11px; color: #8b86a8; margin-top: 2px; line-height: 1.4; }
.pf-create-x { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(8, 9, 18, .9); border: 1px solid rgba(160, 230, 185, .4); color: #fff; font-size: 20px; cursor: pointer; }
@media (min-width: 641px) { .pf-create-x { top: -14px; right: -14px; } }
/* the profile console slides in as one piece; animate the INNER so a site's own .console transform is untouched */
.console.active { animation: none; }
@keyframes gd-inner-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
#profileConsole.active .console-inner { animation: gd-inner-in .26s cubic-bezier(.2, .8, .2, 1) both; }

/* ── panel pass (2026-09-02): the HUD as a right-edge rail, a scrim, masks, custom controls, two columns ── */
@media (min-width: 641px) {
  #gdHud { right: 12px; bottom: auto; top: 50%; transform: translateY(-50%); flex-direction: column; padding: 6px; gap: 2px; border-radius: 16px; }
  #gdHud .gd-hud-btn { flex-direction: column; gap: 4px; padding: 9px 8px; min-width: 64px; font-size: 9.5px; letter-spacing: .1em; text-align: center; }
  #gdHud .gd-hud-btn svg { width: 19px; height: 19px; }
  #gdHud .gd-hud-sep { width: auto; height: 1px; margin: 4px 8px; }
  #gdHud .gd-hud-name { align-items: center; }
  #gdHud .gd-hud-n { position: absolute; top: 4px; right: 6px; }
  #gdHud .gd-hud-btn { position: relative; }
  .gd-notes { right: 88px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .fx-toasts { right: 88px; bottom: 24px; }
}
.pf-scrim { position: fixed; inset: 0; z-index: 999; background: rgba(5, 6, 15, .62); -webkit-backdrop-filter: blur(10px) saturate(90%); backdrop-filter: blur(10px) saturate(90%); animation: gd-scrim-in .25s ease both; }
.pf-scrim[hidden] { display: none; }
@keyframes gd-scrim-in { from { opacity: 0; } to { opacity: 1; } }
#profileConsole .pf-close { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .04); border: 1px solid rgba(160, 230, 185, .35); color: #a0e6b9; cursor: pointer; display: grid; place-items: center; padding: 0; }
#profileConsole .pf-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
#profileConsole .pf-close:hover { background: rgba(63, 154, 95, .25); color: #fff; }
#profileConsole .pf-plus { width: auto; min-width: 44px; height: 44px; border-radius: 22px; padding: 0 14px 0 10px; gap: 8px; display: inline-flex; align-items: center; font: 700 13px/1 Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
#profileConsole .pf-plus-glyph { font-size: 22px; line-height: 1; }
@media (max-width: 640px) { #profileConsole .pf-plus { padding: 0; width: 44px; } #profileConsole .pf-plus-word { display: none; } }
#profileConsole .pf-tabs { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); }
@media (min-width: 641px) { #profileConsole .pf-tabs { -webkit-mask-image: none; mask-image: none; } }
.gd-tickwrap, .gh-tickwrap { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.kingdom-bar .kingdom-btn { background: rgba(8, 9, 18, .72) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 1100px) { .kingdom-bar { flex-wrap: nowrap !important; overflow-x: auto; justify-content: flex-start !important; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent); } .kingdom-bar::-webkit-scrollbar { display: none; } .kingdom-bar .kingdom-btn { flex: 0 0 auto; } }
#profileConsole .pf-max { display: inline-block; font-size: 9px; letter-spacing: .2em; padding: 2px 6px; border: 1px solid rgba(255, 210, 110, .6); color: #ffd26e; margin-right: 6px; vertical-align: middle; }
#profileConsole .pf-sheet.is-max .pf-xp i { background: linear-gradient(90deg, #ffd26e, #fff2c2); }
#profileConsole .pf-status { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 0; background: rgba(255, 255, 255, .04); border: 1px solid rgba(63, 154, 95, .4); color: #e9e9f4; font-family: inherit; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 0 10px; min-height: 34px; cursor: pointer; border-radius: 4px; }
#profileConsole .pf-status i, .pf-menu i { width: 7px; height: 7px; border-radius: 50%; background: #7fd39b; flex: none; }
.pf-menu { position: fixed; z-index: 2350; min-width: 170px; background: #0b0c1a; border: 1px solid rgba(160, 230, 185, .4); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); display: grid; padding: 4px; font-family: Inter, system-ui, sans-serif; }
.pf-menu [role="option"] { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #e9e9f4; font: 12px/1 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 9px 10px; cursor: pointer; text-align: left; border-radius: 4px; min-height: 36px; }
.pf-menu [role="option"]:hover, .pf-menu [role="option"][aria-selected="true"] { background: rgba(63, 154, 95, .25); }
#profileConsole .pf-vis { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-family: inherit; }
#profileConsole .pf-vis svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; }
#profileConsole .pf-card-img.is-empty { flex-direction: column; gap: 4px; color: #8b86a8; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
#profileConsole .pf-card-img.is-empty svg { width: 26px; height: 26px; }
#profileConsole .pf-card-img.is-empty:hover { color: #a0e6b9; background: rgba(63, 154, 95, .16); }
#profileConsole .pf-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; padding-bottom: 4px; }
@media (min-width: 1000px) {
  #profileConsole .pf-sheet { grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
  #profileConsole .pf-side { display: grid; gap: 14px; position: sticky; top: 0; }
  #profileConsole .pf-main { min-width: 0; }
  #profileConsole .pf-id { flex-direction: column; align-items: center; text-align: center; }
  #profileConsole .pf-who { display: grid; justify-items: center; }
  #profileConsole .pf-level { width: 100%; }
  #profileConsole .pf-grid { grid-template-columns: repeat(3, 1fr); }
  #profileConsole .pf-pane { max-height: 70vh; }
  #profileConsole .pf-avatar-edit { left: 50%; transform: translateX(-50%); }
}
/* the rail owns the right 112px of the viewport: page containers may not extend under it. A wide
   screen is unaffected (its containers never reach that far); a tablet or a 1280px desktop with a
   1200px frame is pulled in so no control at the right edge is ever covered (panel finding #1). */
body.has-rail main, body.has-rail .frame, body.has-rail .footer, body.has-rail > footer { max-width: calc(100vw - var(--rail-w, 90px) - 36px) !important; margin-left: 8px !important; margin-right: calc(var(--rail-w, 90px) + 24px) !important; }
@media (min-width: 641px) {
  /* the rail is compact and fixed-width: a long name never widens it into the page */
  #gdHud { width: 92px; box-sizing: border-box; }
  #gdHud .gd-hud-btn { width: 100%; min-width: 0; padding-left: 4px; padding-right: 4px; }
  #gdHud .gd-hud-name { max-width: 100%; align-items: center; }
  #gdHud .gd-hud-name > span, #gdHud .gd-hud-name small { display: block; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
  #gdHud .gd-hud-bar { width: 56px; }
}
@media (min-width: 641px) and (max-width: 1100px) { #gdHud .gd-hud-btn { min-width: 56px; padding: 8px 6px; } }

/* ── accessibility seat (2026-09-02): contrast, target sizes, label size, card row wrap ── */
#profileConsole .pf-stat span, #profileConsole .pf-lv, #profileConsole .pf-next, #profileConsole .pf-lbl, #profileConsole .pf-row .pf-k, #profileConsole .pf-row .pf-t small, #profileConsole .pf-card-body small, #profileConsole .pf-hint, #profileConsole .pf-empty, #profileConsole .pf-who .pf-handle, #profileConsole .pf-ach small, #profileConsole .pf-feed div, #profileConsole .pf-quest li.is-done, #profileConsole .cm-meta, .fx-unlock-desc, .fx-unlock-meta, .pf-crop-hint, .pf-crop-zoom, .pf-create-card small, .gd-note span { color: #a8a3c6; }
#profileConsole .pf-quest li .q-box { width: 24px; height: 24px; }
#profileConsole .pf-quest li { min-height: 32px; }
#profileConsole .pf-avatar-edit { font-size: 12px; letter-spacing: .1em; padding: 6px 0 7px; top: 50px; }
#profileConsole .pf-vis { min-height: 26px; padding: 4px 8px; font-size: 10px; }
#profileConsole .pf-card-foot { flex-wrap: wrap; }
#profileConsole .pf-card-foot .pf-status { flex: 1 1 100%; }
#profileConsole .pf-ico { width: 40px; height: 40px; }

/* the splash text is centred whatever the host page's body does (SBI's flex body left-aligned it on the phone) */
#gdBoot .gd-boot-word, #gdBoot .gd-boot-sub, #gdBoot .gd-boot-hint { width: 100%; text-align: center; box-sizing: border-box; padding: 0 16px; }
#gdBoot .gd-boot-hint { left: 0; right: 0; }
/* the page is hidden from the FIRST paint when a splash is about to run (html.gd-booting is set by an inline snippet) */
html.gd-booting body > *:not(#gdBoot) { visibility: hidden; }

/* ── the feed (2026-09-02): the community as a feed on the game shell — cards, threads, nested comments, the inbox ── */
#feedConsole, .fd-write, .fd-why { font-family: Inter, -apple-system, system-ui, "Segoe UI", sans-serif; }
#feedConsole .console-header, .pf-crop-title { font-family: var(--gd-mono, ui-monospace, Menlo, monospace); }
/* THE SHELL — for both consoles. Measured 2026-09-02: every generated sub-page (GD strain pages,
   community/grow/disclosure, SBI registry pages) carries ZERO .console rules, so the profile console
   had no geometry there at all; and each home page's own .console (GD: a bottom sheet with !important
   geometry; SBI: a centred card faded in by opacity) won on some property and broke the panel. So the
   game layer carries the complete geometry itself, at higher priority: one dark bottom sheet, the same
   on every page of both sites. */
#profileConsole.console, #feedConsole.console { display: none !important; position: fixed !important; left: 50% !important; right: auto !important; top: auto !important; bottom: 0 !important; transform: translateX(-50%) !important; width: 100% !important; max-width: min(1100px, 96vw) !important; height: 92vh !important; max-height: 92vh !important; margin: 0 !important; box-sizing: border-box !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; z-index: 1000 !important; opacity: 1 !important; pointer-events: auto !important; transition: none !important; background: rgba(8, 9, 18, .97) !important; color: #e9e9f4 !important; border: 1px solid rgba(160, 230, 185, .3) !important; border-bottom: 0 !important; border-radius: 18px 18px 0 0 !important; box-shadow: 0 -20px 80px rgba(0, 0, 0, .6) !important; padding: 14px 16px calc(76px + env(safe-area-inset-bottom, 0px)) !important; font-size: 14px; line-height: 1.5; }
#profileConsole.console.active, #feedConsole.console.active { display: block !important; }
@media (max-width: 640px) { #profileConsole.console, #feedConsole.console { left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important; transform: none !important; max-width: 100vw !important; height: 100dvh !important; max-height: 100dvh !important; border: 0 !important; border-radius: 0 !important; padding: 10px 12px calc(76px + env(safe-area-inset-bottom, 0px)) !important; } }
#feedConsole [hidden] { display: none !important; }
#feedConsole .console-inner { display: grid; gap: 10px; max-width: 720px; margin: 0 auto; }
#feedConsole.active .console-inner { animation: gd-inner-in .26s cubic-bezier(.2, .8, .2, 1) both; }
#feedConsole .console-header { display: flex; align-items: center; gap: 6px; color: #a0e6b9; border-bottom: 1px solid rgba(63, 154, 95, .35); padding-bottom: 8px; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
#feedConsole .fd-hbtn, #feedConsole .pf-close { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .04); border: 1px solid rgba(160, 230, 185, .35); color: #a0e6b9; cursor: pointer; display: grid; place-items: center; padding: 0; position: relative; flex: none; }
#feedConsole .fd-hbtn svg, #feedConsole .pf-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#feedConsole .fd-hbtn:hover, #feedConsole .pf-close:hover { background: rgba(63, 154, 95, .25); color: #fff; }
#feedConsole .fd-hbtn.is-warn { color: #ff8f7a; border-color: rgba(255, 143, 122, .5); }
#feedConsole .fd-hbtn i { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: #7fd39b; color: #05060f; font: 700 10px/18px Inter, system-ui, sans-serif; text-align: center; font-style: normal; padding: 0 4px; }
#feedConsole .fd-new { height: 44px; border-radius: 22px; padding: 0 14px 0 10px; display: inline-flex; align-items: center; gap: 6px; background: var(--sbi-accent, #3f9a5f); border: 1px solid var(--sbi-accent, #3f9a5f); color: #fff; font: 700 12px/1 Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; flex: none; }
#feedConsole .fd-new svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 640px) { #feedConsole .fd-new { width: 44px; padding: 0; justify-content: center; } #feedConsole .fd-new span { display: none; } }
#feedConsole .fd-body { display: grid; gap: 10px; }
#feedConsole .fd-signin { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border: 1px solid rgba(63, 154, 95, .45); padding: 12px 14px; font-size: 14px; color: #c9c4dc; line-height: 1.5; }
#feedConsole .fd-signin span { flex: 1; min-width: 200px; }
#feedConsole .fd-compose { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: rgba(255, 255, 255, .03); border: 1px solid rgba(160, 230, 185, .22); color: #8b86a8; padding: 10px 12px; border-radius: 28px; cursor: text; font: 15px/1.3 Inter, system-ui, sans-serif; min-height: 56px; }
#feedConsole .fd-compose:hover, #feedConsole .fd-compose:focus-visible { border-color: rgba(160, 230, 185, .5); color: #c9c4dc; }
#feedConsole .fd-compose-hint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#feedConsole .fd-compose svg { width: 22px; height: 22px; stroke: #a0e6b9; fill: none; stroke-width: 2.2; stroke-linecap: round; flex: none; }
#feedConsole .fd-tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid rgba(63, 154, 95, .35); overflow-x: auto; scrollbar-width: none; }
#feedConsole .fd-tabs::-webkit-scrollbar { display: none; }
#feedConsole .fd-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: #8a85a6; font: 600 13px/1 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 12px 12px; cursor: pointer; margin-bottom: -1px; min-height: 44px; white-space: nowrap; flex: none; }
#feedConsole .fd-tab[aria-selected="true"] { color: #e9e9f4; border-bottom-color: var(--sbi-accent, #3f9a5f); }
#feedConsole .pf-seg { display: inline-flex; border: 1px solid rgba(63, 154, 95, .4); border-radius: 4px; overflow: hidden; flex: none; margin-left: 8px; }
#feedConsole .pf-seg button { background: none; border: 0; color: #8a85a6; font: 600 11px/1 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 0 10px; min-height: 32px; cursor: pointer; }
#feedConsole .pf-seg button[aria-pressed="true"] { background: rgba(63, 154, 95, .35); color: #fff; }
#feedConsole .fd-count { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #a8a3c6; }
#feedConsole .fd-list { display: grid; gap: 10px; }
#feedConsole .fd-card { display: grid; gap: 10px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(160, 230, 185, .16); border-radius: 14px; padding: 12px 14px; transition: border-color .14s ease, opacity .2s ease; }
#feedConsole .fd-card:hover { border-color: rgba(160, 230, 185, .34); }
#feedConsole .fd-card.is-hiding, #feedConsole .fd-comment.is-hiding { opacity: .35; }
#feedConsole .fd-head { display: flex; align-items: center; gap: 10px; }
#feedConsole .fd-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(63, 154, 95, .3); border: 1px solid rgba(160, 230, 185, .4); color: #fff; display: grid; place-items: center; font: 700 15px/1 Inter, system-ui, sans-serif; flex: none; }
#feedConsole .fd-avatar.sm { width: 28px; height: 28px; font-size: 12px; }
#feedConsole .fd-avatar.is-else { background: rgba(255, 255, 255, .06); color: #c9c4dc; }
#feedConsole .fd-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
#feedConsole .fd-who b { font-size: 15px; color: #e9e9f4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#feedConsole .fd-who small { font-size: 12px; color: #a8a3c6; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
#feedConsole .fd-tag { display: inline-flex; align-items: center; gap: 3px; color: #a0e6b9; }
#feedConsole .fd-tag svg, #feedConsole .fd-cults svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
#feedConsole .fd-seal { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #7fd39b; border: 1px solid rgba(127, 211, 155, .5); padding: 1px 6px; border-radius: 3px; }
#feedConsole .fd-seal.is-gold { color: #ffd26e; border-color: rgba(255, 210, 110, .6); }
#feedConsole .fd-score { font: 700 12px/1 var(--gd-mono, ui-monospace, Menlo, monospace); color: #a0e6b9; border: 1px solid rgba(160, 230, 185, .4); padding: 5px 7px; border-radius: 6px; flex: none; }
#feedConsole .fd-title { margin: 0; font-size: 17px; line-height: 1.3; color: #e9e9f4; cursor: pointer; }
#feedConsole [data-open]:focus-visible, #feedConsole .fd-tab:focus-visible, #feedConsole .fd-act:focus-visible { outline: 2px solid #a0e6b9; outline-offset: 2px; border-radius: 6px; }
#feedConsole .fd-photos { display: grid; gap: 4px; border-radius: 10px; overflow: hidden; }
#feedConsole .fd-photos.n1 { grid-template-columns: 1fr; }
#feedConsole .fd-photos.n2, #feedConsole .fd-photos.n4 { grid-template-columns: 1fr 1fr; }
#feedConsole .fd-photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
#feedConsole .fd-photos.n3 > :first-child { grid-row: 1 / 3; }
#feedConsole .fd-photos > * { display: block; position: relative; aspect-ratio: 1; background: rgba(255, 255, 255, .04); cursor: pointer; }
#feedConsole .fd-photos.n1 > * { aspect-ratio: 4 / 3; }
#feedConsole .is-full .fd-photos { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
#feedConsole .is-full .fd-photos > * { aspect-ratio: 1; }
#feedConsole .is-full .fd-photos > :first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
#feedConsole .fd-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
#feedConsole .fd-photos b { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 6, 15, .55); color: #fff; font-size: 22px; }
#feedConsole .fd-text { font-size: 15px; line-height: 1.55; color: #d9d5ea; overflow-wrap: anywhere; }
#feedConsole .fd-text p { margin: 0 0 8px; }
#feedConsole .fd-text p:last-child { margin-bottom: 0; }
#feedConsole .fd-text.is-clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
#feedConsole .fd-text a, #feedConsole .cm-link { color: #a0e6b9; text-decoration: underline; text-decoration-color: rgba(160, 230, 185, .4); text-underline-offset: 2px; }
#feedConsole .fd-log { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: #8a85a6; border-top: 1px solid rgba(63, 154, 95, .2); padding-top: 8px; }
#feedConsole .fd-log b { color: #e9e9f4; font-variant-numeric: tabular-nums; }
#feedConsole .fd-smoke { flex-basis: 100%; color: #c9c4dc; line-height: 1.5; }
#feedConsole .fd-foot, #feedConsole .fd-cact { display: flex; align-items: center; gap: 4px; }
#feedConsole .fd-act { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; color: #8a85a6; font: 600 13px/1 Inter, system-ui, sans-serif; padding: 0 10px; min-height: 36px; border-radius: 18px; cursor: pointer; }
#feedConsole .fd-act svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#feedConsole .fd-act:hover { background: rgba(255, 255, 255, .05); color: #e9e9f4; }
#feedConsole .fd-act[aria-pressed="true"] { color: #a0e6b9; }
#feedConsole .fd-act[aria-pressed="true"] svg { fill: currentColor; }
#feedConsole .fd-act.is-danger { color: #ff8f7a; margin-left: auto; }
#feedConsole .fd-act.is-danger:hover { background: rgba(255, 143, 122, .12); }
#feedConsole .fd-act[data-report] { margin-left: auto; }
#feedConsole .fd-else { text-decoration: none; color: inherit; }
#feedConsole .fd-else > .fd-head > svg { width: 18px; height: 18px; stroke: #8a85a6; fill: none; stroke-width: 1.8; flex: none; }
#feedConsole .fd-cults { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #a0e6b9; }
#feedConsole .fd-comments { display: grid; gap: 6px; }
#feedConsole .fd-reply { display: flex; align-items: center; gap: 8px; }
#feedConsole .fd-reply input { flex: 1; min-width: 0; background: rgba(255, 255, 255, .04); border: 1px solid rgba(63, 154, 95, .5); color: #e9e9f4; padding: 0 14px; font: 16px/1 Inter, system-ui, sans-serif; min-height: 44px; border-radius: 22px; }
#feedConsole .fd-reply .pf-btn { background: var(--sbi-accent, #3f9a5f); border: 1px solid var(--sbi-accent, #3f9a5f); color: #fff; font: 700 12px/1 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 0 14px; min-height: 44px; border-radius: 22px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
#feedConsole .fd-reply .pf-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
#feedConsole .fd-reply .pf-btn:disabled { opacity: .5; }
#feedConsole .fd-reply.is-inline { margin-top: 6px; }
#feedConsole .fd-comment { display: flex; gap: 10px; padding: 10px 0 0; }
#feedConsole .fd-cbody { flex: 1; min-width: 0; display: grid; gap: 4px; border-left: 2px solid rgba(63, 154, 95, .22); padding-left: 10px; }
#feedConsole .fd-cwho b { font-size: 14px; color: #e9e9f4; }
#feedConsole .fd-cwho small { font-size: 12px; color: #a8a3c6; margin-left: 6px; }
#feedConsole .fd-comment .fd-text { font-size: 14px; }
#feedConsole .fd-kids { display: grid; }
#feedConsole .fd-kids .fd-comment { margin-left: 0; }
#feedConsole .fd-kids .fd-kids .fd-kids .fd-cbody { border-left-color: rgba(63, 154, 95, .1); }
#feedConsole .fd-answers { color: #a0e6b9; margin-left: 6px; }
#feedConsole .fd-reply-to { font-size: 12px; color: #a0e6b9; white-space: nowrap; flex: none; }
#feedConsole .fd-blurb { margin: 0; font-size: 13px; color: #a8a3c6; line-height: 1.5; }
#feedConsole .fd-out { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #a8a3c6; white-space: nowrap; }
#feedConsole .fd-out svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.fd-write-hint { margin: 0; font-size: 12px; color: #a8a3c6; line-height: 1.5; }
.fx-toast.fd-undo .fd-undo-btn { margin-left: 10px; background: none; border: 1px solid rgba(160, 230, 185, .5); color: #a0e6b9; font: 700 11px/1 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; cursor: pointer; min-height: 28px; }
#feedConsole .fd-convo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: rgba(255, 255, 255, .025); border: 1px solid rgba(160, 230, 185, .16); color: inherit; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-family: inherit; }
#feedConsole .fd-convo .fd-cbody { border: 0; padding: 0; }
#feedConsole .fd-convo b { font-size: 15px; color: #e9e9f4; display: flex; align-items: center; gap: 6px; }
#feedConsole .fd-convo small { font-size: 13px; color: #8a85a6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
#feedConsole .fd-when { color: #a8a3c6; font-size: 12px; flex: none; }
#feedConsole .fd-dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd39b; display: inline-block; }
#feedConsole .fd-dm { display: grid; gap: 6px; max-height: 55vh; overflow-y: auto; padding: 4px 0; }
#feedConsole .fd-msg { max-width: 78%; justify-self: start; background: rgba(255, 255, 255, .05); border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-size: 15px; line-height: 1.45; display: grid; gap: 2px; }
#feedConsole .fd-msg.is-mine { justify-self: end; background: rgba(63, 154, 95, .35); border-radius: 14px 14px 4px 14px; }
#feedConsole .fd-msg small { font-size: 11px; color: #a8a3c6; }
#feedConsole .pf-empty { font-size: 14px; color: #8a85a6; padding: 18px 0; line-height: 1.6; text-align: center; }
#feedConsole .pf-btn { background: var(--sbi-accent, #3f9a5f); border: 1px solid var(--sbi-accent, #3f9a5f); color: #fff; font: 700 12px/1 Inter, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 0 14px; min-height: 40px; cursor: pointer; border-radius: 6px; }
.fd-write { display: grid; gap: 10px; }
.fd-write textarea, .fd-write input { background: rgba(255, 255, 255, .04); border: 1px solid rgba(63, 154, 95, .5); color: #e9e9f4; padding: 10px 12px; font: 16px/1.5 Inter, system-ui, sans-serif; width: 100%; box-sizing: border-box; border-radius: 8px; resize: vertical; }
.fd-write-note { margin: 0; font-size: 13px; color: #a0e6b9; border-left: 2px solid var(--sbi-accent, #3f9a5f); background: rgba(63, 154, 95, .08); padding: 8px 10px; }
.fd-write-note.is-bad { color: #ff8f7a; border-left-color: #ff8f7a; background: rgba(255, 143, 122, .1); }
.pf-menu.fd-why { z-index: 2400; }
@media (min-width: 641px) {
  body.has-rail #profileConsole.console, body.has-rail #feedConsole.console { max-width: min(1100px, calc(100vw - var(--rail-w, 90px) - 72px)) !important; transform: translateX(calc(-50% - (var(--rail-w, 90px) + 24px) / 2)) !important; }
  #feedConsole .console-inner { max-width: 760px; }
  #feedConsole .fd-card { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { #feedConsole.active .console-inner { animation: none; } }

/* UI seat (2026-09-02): one control language in the tab row, a labelled score, a neutral queue icon, a lighter reply box, a distinct Close on the phone */
#feedConsole .fd-hbtn.is-warn { color: #a0e6b9; border-color: rgba(160, 230, 185, .35); }
#feedConsole .fd-score::after { content: "LOG"; font-size: 8px; letter-spacing: .1em; margin-left: 4px; opacity: .7; }
#feedConsole .fd-tabs .pf-seg { border: 0; border-radius: 0; margin-left: 8px; align-self: stretch; }
#feedConsole .fd-tabs .pf-seg button { border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0 10px; min-height: 44px; }
#feedConsole .fd-tabs .pf-seg button[aria-pressed="true"] { background: none; color: #e9e9f4; border-bottom-color: var(--sbi-accent, #3f9a5f); }
#feedConsole .fd-reply.is-inline input { border-color: rgba(63, 154, 95, .35); }
#feedConsole .pf-close { background: rgba(255, 255, 255, .08); }
@media (max-width: 640px) { #feedConsole .console-header { gap: 12px; } }
#feedConsole .fd-answers.is-gone { color: #a8a3c6; font-style: italic; }
/* the in-place sign-in code (2026-09-02) */
#profileConsole #pfCode { flex: 1; min-width: 160px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(63, 154, 95, .5); color: #e9e9f4; padding: 8px 12px; font: 700 22px/1 ui-monospace, Menlo, monospace; letter-spacing: .22em; min-height: 44px; text-align: center; }
#profileConsole .pf-auth-alt { flex-basis: 100%; font-size: 12px; color: #a8a3c6; }
#profileConsole .pf-linkbtn { background: none; border: 0; padding: 0; color: #a0e6b9; font: inherit; text-decoration: underline; cursor: pointer; min-height: 0; }

/* claims + the moderation queue, moved into the feed console (2026-09-02) */
#feedConsole .fd-claim { display: grid; gap: 10px; border: 1px solid rgba(160, 230, 185, .25); border-radius: 12px; padding: 14px; }
#feedConsole .fd-claim-h { margin: 0; font-size: 15px; color: #e9e9f4; }
#feedConsole .fd-code { margin: 0; font: 700 26px/1 var(--gd-mono, ui-monospace, Menlo, monospace); letter-spacing: .18em; color: #a0e6b9; text-align: center; padding: 12px; border: 1px dashed rgba(160, 230, 185, .5); border-radius: 8px; }
#feedConsole .fd-note { margin: 0; font-size: 13px; color: #a0e6b9; border-left: 2px solid var(--sbi-accent, #3f9a5f); background: rgba(63, 154, 95, .08); padding: 8px 10px; }
#feedConsole .fd-note.is-ok { color: #7fd39b; border-left-color: #7fd39b; background: rgba(127, 211, 155, .1); }
#feedConsole .fd-note.is-bad { color: #ff8f7a; border-left-color: #ff8f7a; background: rgba(255, 143, 122, .1); }

/* ── SBI-only overrides (appended last, so they win) ─────────────────────────────────────
   SBI's home is light and has no sparkle field: its button row keeps its own soft back and wraps as
   it always did. 2026-09-02: GD's opaque DARK back reached this row and made CANNABIS / TERMINAL /
   GENEALOGY unreadable (muted text on near-black). */
.kingdom-bar .kingdom-btn { background: var(--soft, #fafafa) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.kingdom-bar .kingdom-btn.active { background: #000 !important; color: #fff !important; }
/* A button that carries its OWN dark style (QI RESEARCH is the row's primary) keeps it — the blanket
   soft back above turned its white text invisible on near-white (operator 2026-09-02: "the last button
   at the top doesnt have text in mobile"). */
.kingdom-bar .kingdom-btn[style*="background:#000"] { background: #000 !important; color: #fff !important; border-color: #000 !important; }
@media (max-width: 1100px) { .kingdom-bar { flex-wrap: wrap !important; overflow: visible !important; justify-content: center !important; -webkit-mask-image: none !important; mask-image: none !important; } .kingdom-bar .kingdom-btn { flex: 0 1 auto !important; } }

/* ══ SBI FACELIFT (2026-09-02) ═══════════════════════════════════════════════════════════════
   Operator: "sbi mobile fonts still look over sized and not proportional to each other, some big some
   small, the overall site still needs a facelift" · "some fonts are serif on sbi and i think sans serif
   is better for this — keep it consistent please".
   MEASURED at 390px before this block: FOUR families on one screen (ui-monospace, Charter, EB Garamond,
   Inter), body copy in two different serifs, and text from 9px to 21px with letter-spacing from normal
   to 3px. This installs ONE voice: Inter for everything a person reads, the mono kept only for the
   registry's own labels and the masthead, on a scale where every step is a real step. */
:root { --serif: Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; --sans: Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
body, p, li, td, th, dd, dt, blockquote, figcaption, .intro, .dek, .note, .prose, .mission,
.breeder-peek, .search-wrap input, input, textarea, select, button, .cart-total,
h1, h2, h3, h4, h5, h6 { font-family: Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
body { -webkit-font-smoothing: antialiased; }
/* the scale — phone first. Nothing a person reads is under 13px; nothing shouts at 21px. */
@media (max-width: 700px) {
  body, p, li, td, .intro, .dek, .prose, .breeder-peek { font-size: 15px !important; line-height: 1.55 !important; letter-spacing: normal !important; }
  .mission, .registry-stat-item, .page-subtitle, .sub { font-size: 12px !important; line-height: 1.5 !important; letter-spacing: .06em !important; }
  h1, .regmast, .mast, .page-title { font-size: 19px !important; line-height: 1.25 !important; letter-spacing: .06em !important; }
  h2, .sec-title, .kingdom-title { font-size: 16px !important; line-height: 1.3 !important; }
  h3 { font-size: 15px !important; }
  label, .lbl, .chip, .fchip, .kingdom-btn, .breadcrumb, .search-label, .bg-name, .bg-count,
  .registry-stat-item, .breeder-count, .breeder-profile-link { font-size: 12px !important; letter-spacing: .06em !important; }
  /* 9px and 10px uppercase mono was the "some big some small": it read as noise beside 15px body */
  [style*="font-size:9px"], [style*="font-size: 9px"], [style*="font-size:9.5px"], [style*="font-size:10px"], [style*="font-size: 10px"], [style*="font-size:11px"], [style*="font-size: 11px"] { font-size: 12px !important; }
  /* MEASURED at 390px, not guessed: these are the classes that were still rendering at 9-10px after
     the first pass — a filter chip, a table head, a badge, a stock tag, and (worst) the BUY button. */
  .filter-chip, .reg-panel-header, .lb-rank, .provenance-badge, .rf-title, .rf-hint, .tier-badge,
  .chip-label, .stock-tag, .footer-registry-link, .breeder-link-section, .search-label,
  table th, table td, .reg-table th, .reg-table td { font-size: 12px !important; letter-spacing: .04em !important; }
  .cta-buy-btn, .buy-btn, .add-to-cart { font-size: 14px !important; letter-spacing: .08em !important; min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; }
  .breeder-profile-link { font-size: 11px !important; }
  /* THE FLOOR. Enumerating classes chases the ones you can see; this catches the rest, including text
     sized by an inline style. max(12px, 1em) resolves to the PARENT's size, so nothing grows — it only
     stops falling below 12px. The game layer's own chrome keeps its deliberate small caps. */
  body :where(p, span, div, a, b, strong, em, small, li, td, th, dd, dt, button, label, summary, figcaption):not(.gd-tabbar *):not(#gdHud *):not(#profileConsole *):not(#feedConsole *):not(.fx-toast *):not(.gd-notes *):not(#gdBoot *)
    { font-size: max(12px, 1em); }
  .search-hint { display: none !important; }                 /* the placeholder already says it */
  input, textarea, select { font-size: 16px !important; }    /* iOS zooms anything smaller */
}
/* the console header stopped fitting: a fixed-width title plus four buttons measured 520px inside a
   390px phone (operator: "profile is oversized and doesnt fit when it loads in mobile · too wide") */
#profileConsole .console-header, #feedConsole .console-header { flex-wrap: nowrap; min-width: 0; gap: 6px; }
#profileConsole .console-header > span:first-of-type, #feedConsole .console-header > span:first-of-type,
#profileConsole #pfTitle, #feedConsole #fdTitle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; }
@media (max-width: 700px) { #profileConsole .console-header, #feedConsole .console-header { font-size: 11px; letter-spacing: .06em; } }
/* the breeder blocks: the PROFILE link is absolutely positioned top-right, so the summary must reserve
   that column or the name wraps under it and the cultivar count is cut off with a hole on the right
   (operator 2026-09-02) */
/* the mark: one size for all of them, and a dark tile for art drawn light (it vanishes on white).
   normalize_logos.py trims each file to what is actually drawn and centres it, so a wide wordmark and
   a round badge carry the same weight here. */
.breeder-block .breeder-logo { object-fit: contain !important; }
.breeder-block .breeder-logo.is-mono { display: inline-grid; place-items: center; font: 700 12px/1 Inter, system-ui, sans-serif; color: #6b6b6b; background: #fafafa; letter-spacing: 0; }
.breeder-block .breeder-logo.is-light { background: #14151f !important; border-color: #14151f !important; padding: 2px !important; }
/* THE BREEDER ROW. It was: the name in a bare text node, the count after it, and a PROFILE link
   absolutely positioned over the right edge — which a closed <details> lays out in its hidden slot,
   nowhere near the row (measured 2026-09-02: block top 3380, link top 16509). Every row therefore
   showed an empty column, and the name wrapped under it. The link now lives inside the expanded
   panel; the row is [mark] name · count, one line, ellipsis. */
details.breeder-block > summary { display: flex !important; align-items: center; gap: 8px; }
.breeder-block .breeder-name { flex: 1 1 0%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breeder-block .breeder-count { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
.breeder-block .breeder-peek { flex-basis: 100%; }
/* the breeder grid on the registry index: one column on a phone, name and count on ONE line */
@media (max-width: 700px) {
  .breeder-grid a { min-height: 44px; padding: 8px 10px !important; }
  .breeder-grid .bg-name { flex: 1 1 auto; min-width: 0; }
  .breeder-grid .bg-count { flex: 0 0 auto; }
}
