.gt-game-tool * { box-sizing: border-box; }
.gt-game-tool { margin: 0; font: 1rem/1.6 system-ui, sans-serif; color: var(--text); background: var(--bg); }
.gt-game-tool--bg3 { color-scheme: dark; --bg:#211c20; --text:#f5e9dc; --panel:#2d2529; --line:#695451; --accent:#ffc895; }
.gt-game-tool--sims4 { --bg:#f2f7ed; --text:#172b23; --panel:#fff; --line:#9cae9f; --accent:#145239; }
.gt-game-tool .gt-game-tool-panel { border: 1px solid var(--line); border-radius: 1rem; padding: clamp(.85rem, 3vw, 1.75rem); background: var(--panel); margin-block: 1.5rem; }
.gt-game-tool .gt-game-tool-panel h2 { margin-top: 0; }
.gt-game-tool button, .gt-game-tool select, .gt-game-tool input { font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: .45rem; min-height: 44px; padding: .4rem .65rem; }
.gt-game-tool button { cursor: pointer; }
.gt-game-tool button:disabled { opacity: .5; cursor: default; }
.gt-game-tool :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gt-game-tool a, .gt-game-tool #budget { color: var(--accent); }
.gt-game-tool fieldset { border: 1px solid var(--line); margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.gt-game-tool .ability { display: grid; grid-template-columns: minmax(8rem, 1fr) 44px 2rem 44px minmax(10rem, 1fr); gap: .5rem; align-items: center; padding-block: .6rem; border-top: 1px solid var(--line); }
.gt-game-tool output { text-align: center; }
.gt-game-tool #abilities { margin-bottom: 1rem; }
.gt-game-tool .cheat { padding-block: .8rem; border-bottom: 1px solid var(--line); }
.gt-game-tool .cheat h3 { margin: 0; }
.gt-game-tool .cheat p { margin: .4rem 0; }
.gt-game-tool code { overflow-wrap: anywhere; }
.gt-game-tool label input { display: block; width: 100%; margin-bottom: .75rem; }
@media (max-width: 36rem) {
.gt-game-tool .ability { grid-template-columns: minmax(0, 1fr) 44px 1.75rem 44px; }
.gt-game-tool .ability span { grid-column: 1 / -1; }
}
