.gx-page, .gx-card, .gx-dialog {
  --gx-text: var(--ink, #222820);
  --gx-rule: var(--line, #dfdfd6);
  --gx-orange: var(--orange, #f35423);
  --gx-soft: #f3f3ed;
  --gx-muted: #5d6459;
  color: var(--gx-text);
}
.gx-page *, .gx-card *, .gx-dialog * { box-sizing: border-box; }
.gx-page { width: min(100%, 960px); margin-inline: auto; }
.gx-page h1, .gx-page h2, .gx-page p, .gx-card p, .gx-dialog p, .gx-dialog h2 { margin: 0; }
.gx-page a, .gx-card a { color: inherit; text-decoration: none; }
.gx-page button, .gx-card button, .gx-dialog button, .gx-dialog input, .gx-page input { font: inherit; }
.gx-page button, .gx-card button, .gx-dialog button { cursor: pointer; }
.gx-page :focus-visible, .gx-card :focus-visible, .gx-dialog :focus-visible { outline: 3px solid #a64012; outline-offset: 2px; }
.gx-icon { width: 1.125rem; height: 1.125rem; flex: none; display: inline-block; vertical-align: middle; }
.gx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gx-back { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; color: var(--gx-muted) !important; }
.gx-back .gx-icon { width: 15px; }
.gx-heading { margin: 4px 0 22px; }
.gx-heading h1, .gx-game-hero h1 { font-size: clamp(1.8rem, 5vw, 2.65rem); line-height: 1.22; letter-spacing: -.045em; font-weight: 820; }
.gx-heading p, .gx-dialog-copy { color: var(--gx-muted); line-height: 1.6; font-size: .9375rem; }
.gx-heading p { margin-top: 8px; }
.gx-search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--gx-rule); border-radius: 12px; background: white; padding-inline: 13px; min-height: 46px; }
.gx-search .gx-icon { color: var(--gx-muted); }
.gx-search input { border: none; min-width: 0; width: 100%; padding: 10px 0; background: transparent; color: var(--gx-text); font-size: 1rem; }
.gx-search:focus-within { outline: 2px solid #a64012; }
.gx-search input:focus { outline: none; }
.gx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gx-chip { border: 1px solid var(--gx-rule); border-radius: 999px; background: transparent; min-height: 40px; padding: 4px 14px; font-size: .875rem !important; color: var(--gx-text); }
.gx-chip[aria-pressed="true"] { background: var(--gx-text); color: white; border-color: var(--gx-text); }
.gx-count { margin: 23px 0 10px !important; font-size: .875rem; color: var(--gx-muted); }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 286px), 1fr)); gap: 12px; align-items: start; }
.gx-card { min-width: 0; background: #fff; border: 1px solid var(--gx-rule); border-radius: 14px; overflow: hidden; }
.gx-card-link { display: flex; gap: 13px; padding: 14px 14px 10px; align-items: center; }
.gx-card-link:focus-visible { outline-offset: -3px; }
.gx-card-copy { display: flex; flex-direction: column; min-width: 0; align-items: flex-start; }
.gx-card-title { font-size: 1.075rem; line-height: 1.35; font-weight: 760; }
.gx-english { font-size: .78rem; color: var(--gx-muted); line-height: 1.35; margin-top: 3px; overflow-wrap: anywhere; }
.gx-art { position: relative; display: block; width: 74px; height: 78px; flex: none; overflow: hidden; border-radius: 8px; color: #eac77c; background: repeating-linear-gradient(45deg,#31524b 0 10px,#3e625a 10px 20px); }
.gx-art-1 { color: #fbf0bd; background: repeating-conic-gradient(#a3452b 0 25%,#bf5c3a 0 50%) 50% / 32px 32px; }
.gx-art-2 { color: #383e31; background: repeating-linear-gradient(-45deg,#ccab65 0 8px,#e3c180 8px 16px); }
.gx-art-3 { color: #eecc93; background: repeating-conic-gradient(#2a5365 0 25%,#3a6170 0 50%) 50% / 32px 32px; }
.gx-art-glyph { position: absolute; inset: 0; display: grid; place-items: center; }
.gx-art-glyph .gx-icon { width: 48%; height: 48%; transform: rotate(-7deg); }
.gx-art img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.gx-specs { display: flex; flex-wrap: wrap; gap: 4px 9px; margin-top: 9px; color: #535b50; font-size: .8rem; line-height: 1.45; }
.gx-specs > span { display: inline-flex; align-items: center; gap: 4px; }
.gx-specs .gx-icon { width: 14px; height: 14px; }
.gx-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; justify-content: space-between; padding: 0 12px 6px 14px; }
.gx-bgg { display: inline-flex; align-items: center; gap: 4px; width: fit-content; color: #54441a; background: #f5edcc; padding: 4px 7px; border-radius: 5px; font-size: .75rem; line-height: 1.15; white-space: nowrap; }
.gx-bgg .gx-icon { width: 12px; height: 12px; color: #74550b; }
.gx-bgg strong { font-size: .86rem; }
.gx-no-score { background: var(--gx-soft); color: var(--gx-muted); }
.gx-actions { display: flex; align-items: center; gap: 3px; }
.gx-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; padding: 0 8px; min-height: 42px; border-radius: 7px; color: #565e51; font-size: .875rem !important; font-weight: 600 !important; }
.gx-action .gx-icon { width: 16px; height: 16px; }
.gx-action:hover { background: #f7f6f0; }
.gx-wanted, .gx-rated { color: #a93413; }
.gx-wanted .gx-icon, .gx-rated .gx-icon { color: #ba4218; }
.gx-empty { text-align: center; background: white; border: 1px dashed #cccec1; border-radius: 12px; padding: 30px 18px; }
.gx-empty p { font-size: .925rem; line-height: 1.6; color: var(--gx-muted); margin-top: 7px; }
.gx-empty a { display: inline-flex; align-items: center; min-height: 44px; color: #a73513; font-weight: 700; }
.gx-game-hero { display: flex; align-items: center; gap: 18px; margin: 8px 0 16px; }
.gx-game-hero > div { min-width: 0; }
.gx-art-large { width: clamp(100px, 26vw, 158px); height: clamp(112px, 29vw, 176px); border-radius: 12px; }
.gx-game-hero p { margin: 5px 0 12px; color: var(--gx-muted); font-size: .9rem; overflow-wrap: anywhere; }
.gx-detail-actions { border-block: 1px solid var(--gx-rule); padding: 7px 0; }
.gx-detail-actions .gx-actions { gap: 8px; }
.gx-detail-actions .gx-action { min-width: 92px; background: white; border: 1px solid var(--gx-rule); }
.gx-section-title { margin: 23px 0 9px !important; font-size: 1.125rem; }
.gx-description { line-height: 1.75; }
.gx-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding: 0; margin: 0; }
.gx-facts div { border-bottom: 1px solid var(--gx-rule); padding: 10px 0; }
.gx-facts dt { color: var(--gx-muted); font-size: .8125rem; }
.gx-facts dd { font-size: 1rem; font-weight: 600; margin: 3px 0 0; overflow-wrap: anywhere; }
.gx-info-note { color: var(--gx-muted); margin: 20px 0 0 !important; font-size: .8125rem; line-height: 1.6; }
.gx-page a.gx-source { display: inline-flex; align-items: center; min-height: 40px; font-size: .875rem; color: #854020; text-decoration: underline; text-underline-offset: 3px; }
.gx-points { display: flex; align-items: center; gap: 12px; padding: 17px; background: #f2eee0; border: 1px solid #e7dfca; border-radius: 14px; }
.gx-points-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: #e7d59e; color: #655523; }
.gx-points-icon .gx-icon { width: 25px; height: 25px; }
.gx-points h2 { font-size: 1.05rem; }
.gx-points p { font-size: .8125rem; margin-top: 3px; color: var(--gx-muted); }
.gx-points > b { margin-left: auto; font-size: 1.9rem; line-height: 1; }
.gx-points small { font-size: .8rem; font-weight: 550; }
.gx-shelf-tabs { display: flex; gap: 16px; margin: 20px 0 15px; border-bottom: 1px solid var(--gx-rule); }
.gx-shelf-tabs button { display: inline-flex; align-items: center; gap: 5px; color: var(--gx-muted); background: transparent; min-height: 45px; border: 0; border-bottom: 2px solid transparent; padding: 0 2px; font-weight: 650; }
.gx-shelf-tabs button[aria-pressed="true"] { border-color: var(--gx-orange); color: var(--gx-text); }
.gx-shelf-tabs .gx-icon { width: 16px; }
.gx-shelf-tabs b { padding: 1px 5px; background: #f0efea; border-radius: 4px; font-size: .8125rem; }
.gx-rated-item p { margin: 0 2px 6px; font-size: .8125rem; font-weight: 650; color: #81401d; }
.gx-rated-item p .gx-icon { width: 13px; }
.gx-admin { margin-top: 24px; border-block: 1px solid var(--gx-rule); display: flex; gap: 10px; align-items: center; min-height: 54px; font-weight: 620; }
.gx-admin .gx-icon:last-child { margin-left: auto; width: 15px; color: var(--gx-muted); }
.gx-dialog { font-family: inherit; max-width: min(calc(100% - 28px), 420px); width: 100%; max-height: 88dvh; margin: auto; padding: 22px; border: 1px solid var(--gx-rule); border-radius: 18px; background: #fffefa; color: var(--gx-text); }
.gx-dialog::backdrop { background: rgb(26 31 22 / 50%); }
.gx-dialog form { position: relative; margin: 0; }
.gx-dialog h2 { padding-right: 34px; font-size: 1.3rem; line-height: 1.4; }
.gx-dialog-copy { margin-top: 6px !important; }
.gx-dismiss { position: absolute; top: -10px; right: -10px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--gx-muted); }
.gx-dialog fieldset { display: grid; gap: 6px; border: 0; padding: 0; margin: 16px 0; }
.gx-score-option { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 6px 12px; border: 1px solid var(--gx-rule); background: white; border-radius: 9px; cursor: pointer; }
.gx-score-option:has(:checked) { border-color: #b4451b; background: #fff3eb; }
.gx-score-option input { width: 17px; height: 17px; margin: 0; accent-color: #a93b15; }
.gx-score-option span { color: var(--gx-muted); font-size: .92rem; }
.gx-score-option b { color: var(--gx-text); margin-right: 12px; }
.gx-save { display: block; background: var(--gx-text); color: white; border: 0; border-radius: 9px; width: 100%; min-height: 45px; font-weight: 700 !important; }
.gx-save:disabled, .gx-action:disabled { cursor: progress; opacity: .65; }
.gx-save-error { color: #a52e15; font-size: .875rem; margin: 0 0 10px !important; }
@media (max-width: 350px) {
  .gx-card-link { gap: 9px; padding: 12px 10px 8px; }
  .gx-art:not(.gx-art-large) { width: 61px; height: 70px; }
  .gx-card-foot { padding-inline: 8px; }
  .gx-action { padding-inline: 5px; }
  .gx-facts { gap: 0 9px; }
}
