/* THE DICE'S ACCOUNT (diceAccount.js), on the kit's tokens: the bag picker's grid, a player's panel. On the dice's
   parchment panel and in a kit Window alike. */
.gm2-bags { display: grid; gap: var(--g-2); grid-template-columns: repeat(auto-fill, minmax(calc(var(--g-face-lg) + var(--g-5)), 1fr)); padding: var(--g-2) 0; }
.gm2-bags__it { display: grid; place-items: center; aspect-ratio: 1; padding: var(--g-2); border: 0; border-radius: var(--g-r-sm); background: var(--g-fill);
  cursor: pointer; transition: transform var(--g-fast) var(--g-ease), box-shadow var(--g-fast) var(--g-ease); }
.gm2-bags__it:active { transform: scale(var(--g-press)); }
.gm2-bags__it[aria-pressed="true"] { box-shadow: 0 0 0 var(--g-stroke) var(--g-accent); background: var(--g-accent-tint); }
.gm2-bags__it.is-arriving { animation: gm2-bag-land var(--g-slow) var(--g-ease) both; }
@keyframes gm2-bag-land { from { transform: translateY(calc(-1 * var(--g-6))) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.gm2-bagface { width: 72%; }
.gm2-bags > .gm2-bagface { width: var(--g-face-lg); }
/* the dice's own settings panel is parchment: its tabs in the kit's paper colours */
.sfxpanel .g-seg { margin: var(--g-2) 0; }
/* each bag is the kit's one button, its picture the bag */
.gm2-bags__it.g-btn { min-height: 0; padding: var(--g-2); }
.gm2-bags__it .g-btn__i { display: grid; place-items: center; width: var(--g-face-lg); height: auto; }
.gm2-bags__it .gm2-bagface { width: 100%; }
.gm2-bags__it .g-btn__t:empty { display: none; }
/* the rewards they got: each the dice's own drawing of a gift (GMDice giftFace's .gm-reward), on the kit's tokens */
.gm2-rewards { display: grid; gap: var(--g-2); grid-template-columns: repeat(auto-fill, minmax(calc(var(--g-face-lg) + var(--g-6)), 1fr)); padding: var(--g-2) 0; }
.gm2-rewards .gm-reward { display: flex; flex-direction: column; align-items: center; gap: var(--g-1); padding: var(--g-3) var(--g-2); border-radius: var(--g-r-sm); background: var(--g-fill); text-align: center; }
.gm2-rewards .gm-reward.is-won { box-shadow: 0 0 0 var(--g-stroke) var(--g-accent); }
.gm2-rewards .gm-reward__die { display: block; width: var(--g-face-lg); height: var(--g-face-lg); }
.gm2-rewards .gm-reward__die svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gm2-rewards .gm-reward__bag { width: 100%; }
.gm2-rewards .gm-reward b { font-size: var(--g-t-caption); line-height: 1.2; }
.gm2-rewards .gm-reward small { font-size: var(--g-t-caption); color: var(--g-text-3); }
/* the face's background: the dice's two sliders (dice.css .slider), full width in the window */
.gm2-sliders { display: grid; gap: var(--g-3); padding: var(--g-2) 0; }
.gm2-faces .g-btn { min-height: 0; border-radius: var(--g-r-round); }
.gm2-faces .g-btn__t:empty { display: none; }
/* A PLAYER'S DETAILS (players.js, Maayan 2026-11-02: "make it sleek"): a profile's look, their name and their picture
   large and centered under it; their bag one row, tapped to choose another */
.gm2-player { display: flex; flex-direction: column; gap: var(--g-3); }
.gm2-player__head { display: flex; flex-direction: column; align-items: center; gap: var(--g-1); margin: 0 0 var(--g-2); text-align: center; }
.gm2-player__head .g-title { margin: 0; }
.gm2-player__face.g-btn { min-height: 0; margin-top: var(--g-3); padding: 0; border-radius: var(--g-r-round); background: none; box-shadow: none; }
.gm2-player__face .g-btn__i { width: auto; height: auto; }
.gm2-player__face .g-btn__t:empty { display: none; }
.gm2-player__bag .g-row__media .gm2-bagface, .gm2-player__bag .gm2-bagface { width: var(--g-face-lg); }
/* the picture picker: whole circles, as large as the window lets them, the chosen one ringed */
.gm2-faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--g-face-lg) + var(--g-4)), 1fr)); gap: var(--g-3); }
.gm2-faces .g-btn { padding: 0; background: none; box-shadow: none; aspect-ratio: 1; }
.gm2-faces .g-btn__i { width: 100%; height: 100%; }
.gm2-faces .g-avatar { --g-size: 100%; }
.gm2-faces .g-btn[aria-pressed="true"] { outline: var(--g-stroke) solid var(--g-accent); outline-offset: var(--g-stroke); }
/* the background: its switch, its colour a swatch beside it that opens the two sliders */
.gm2-bgrow { display: flex; align-items: center; gap: var(--g-3); }
.gm2-bgrow .g-switch { flex: 1; }
.gm2-swatch.g-btn { flex: none; width: var(--g-touch); height: var(--g-touch); min-height: 0; padding: 0; border-radius: var(--g-r-round); background: var(--sw); box-shadow: inset 0 0 0 var(--g-stroke) var(--g-separator); }
.gm2-swatch[aria-expanded="true"] { outline: var(--g-stroke) solid var(--g-accent); outline-offset: var(--g-stroke); }
.gm2-swatch .g-btn__t:empty { display: none; }
/* the dice's sliders outside the dice: their colours from the kit's tokens */
.gm2-sliders.gm-sliders { --edge: var(--g-separator); --ink: var(--g-ink); }
/* THEIR MATH (players.js mathCard): four tiles, then this round, its accuracy a bar */
.gm2-pmath { display: flex; flex-direction: column; gap: var(--g-3); }
.gm2-pstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g-2); }
.gm2-pstat { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--g-1); min-width: 0;
  padding: var(--g-3) var(--g-1); border-radius: var(--g-r-sm); background: var(--g-fill); text-align: center; }
.gm2-pstat > b { font-family: var(--g-font-display); font-size: var(--g-t-title); font-weight: var(--g-w-black); line-height: 1; font-variant-numeric: tabular-nums; }
.gm2-pstat__l { font-size: var(--g-t-caption); font-weight: var(--g-w-semibold); color: var(--g-text-2); line-height: 1.2; }
.gm2-pstat__i { position: absolute; top: var(--g-1); inset-inline-end: var(--g-1); width: var(--g-icon-sm); height: var(--g-icon-sm); }
.gm2-pstat__i svg { width: 100%; height: 100%; }
.gm2-pstat.is-record { background: var(--g-accent-tint); }
.gm2-pstat.is-record > b, .gm2-pstat.is-flame > b { color: var(--g-accent); }
.gm2-pround { display: flex; flex-direction: column; gap: var(--g-2); padding: var(--g-4); border-radius: var(--g-r-sm); background: var(--g-fill); }
.gm2-pround__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--g-2); }
.gm2-pround__t { font-family: var(--g-font-display); font-size: var(--g-t-title3); font-weight: var(--g-w-bold); }
.gm2-pround__since { font-size: var(--g-t-caption); color: var(--g-text-3); }
.gm2-pround__acc { display: flex; align-items: baseline; gap: var(--g-2); }
.gm2-pround__pct { font-family: var(--g-font-display); font-size: var(--g-t-large); font-weight: var(--g-w-black); line-height: 1; color: var(--g-here); }
.gm2-pround__bar { height: var(--g-2); border-radius: var(--g-r-round); background: linear-gradient(90deg, var(--g-here) var(--right), var(--g-danger) var(--right)); }
.gm2-pround__bar.is-empty { background: var(--g-fill-strong); }
.gm2-pround__nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g-2); margin-top: var(--g-1); }
.gm2-pround__nums .gm2-pstat { background: var(--g-surface); padding: var(--g-2) var(--g-1); }
.gm2-pround__nums .gm2-pstat > b { font-size: var(--g-t-title2); }
.gm2-pround__nums .is-right > b { color: var(--g-here); }
.gm2-pround__nums .is-wrong > b { color: var(--g-danger); }
.gm2-pround__nums .is-fast > b { color: var(--g-accent); }
@media (max-width: 420px) { .gm2-pstats { grid-template-columns: repeat(2, 1fr); } .gm2-pround__nums { grid-template-columns: repeat(2, 1fr); } }
/* Allow roll: one small row under the player, its words and a small switch */
