/* Hexplorers Beta: its label and its few pieces of its own. html[data-ruleset="beta"] is set by
   beta-ui.js while a Beta game is on screen, so the label shows on every screen of one without
   touching the main game's markup. */
.beta-tag { display: inline-block; margin-left: .4em; padding: .15em .5em; border-radius: var(--ui-pill, 999px); background: var(--ui-accent-2); color: var(--ui-accent-ink);
  font: 700 11px/1.2 var(--ui-body); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
h2 .beta-tag { font-size: 12px; }
.beta-note { margin: .3rem 0 .5rem; font: 14px/1.35 var(--ui-body); color: var(--ui-muted); text-align: center; }
.beta-note .beta-tag { margin: 0 .3em 0 0; }

/* the label: the game's bar, the lobby's room code, the round over the board, the results */
html[data-ruleset="beta"] #bar::before { content: 'Beta'; flex: none; padding: .2em .55em; border-radius: var(--ui-pill, 999px); background: var(--ui-accent-2); color: var(--ui-accent-ink);
  font: 700 11px/1.2 var(--ui-body); letter-spacing: .08em; text-transform: uppercase; }
html[data-ruleset="beta"] .setup-top .code small::before,
html[data-ruleset="beta"] .r-title small::before,
html[data-ruleset="beta"] .hx-modal h2.menu-room::before { content: 'Beta · '; color: var(--ui-accent-2); font-weight: 700; }
html[data-ruleset="beta"] #hud::after { content: "Beta rules"; display: block; margin-top: .15rem; font: 700 10px/1.2 var(--ui-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ui-accent-2); }

/* the tray: your dealt tiles */
.hx #tray .item.beta-hand svg { width: 26px; height: 26px; }
.hx #tray .item.beta-empty { opacity: .6; }
.hx #tray .item.beta-empty b { font: 600 12px/1.2 var(--ui-body); }
/* Draft exploring: the drawn tiles while gathering, and the count left as they're placed */
.hx #tray .draft-drawn { display: inline-flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.hx #tray .draft-drawn svg { width: 24px; height: 24px; }
.hx #tray .draft-drawn small { font-size: 11px; color: var(--ui-muted, inherit); }
.hx #tray .tray-status.draft-left { border: 1px dashed var(--ui-accent, currentColor); }
.hx #tray .tray-status.camp-tip span { white-space: normal; text-align: center; line-height: 1.15; }   /* the wreath's first turn: the camp's note beside the drawn tiles */
/* (08/10) the drawn tiles as cards: the tile big, the picked one lit, a placed one dimmed with its tick; the Undo card dashed */
.hx #tray.draft-tray { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hx #tray .item.draft-card { gap: .15rem; }
.hx #tray .item.draft-card .dc-ic svg { width: 34px; height: 34px; display: block; }
.hx #tray .item.draft-card > span:not(.dc-ic) { font: 600 13px/1.1 var(--ui-label); }
.hx #tray .item.draft-card small { font: 10.5px/1.1 var(--ui-body); color: var(--ui-muted); }
.hx #tray .item.draft-card.on small { color: var(--ui-accent-2); font-weight: 700; }
.hx #tray .item.draft-card.on .dc-ic { filter: drop-shadow(0 0 6px var(--ui-accent-2)); }
.hx #tray .item.draft-card.done { opacity: .45; cursor: default; border-style: dashed; }
.hx #tray .item.draft-undo { border: 1px dashed var(--ui-line, currentColor); }
.hx #tray .item.draft-undo svg { width: 22px; height: 22px; }
/* the primary button tapped while tiles are owed: the glowing spaces flash twice */
#board.nudge .ba-hl { animation: hx-nudge .45s ease-in-out 2; }
@keyframes hx-nudge { 50% { filter: brightness(1.8) drop-shadow(0 0 6px #fff); } }
@media (prefers-reduced-motion: reduce) { #board.nudge .ba-hl { animation: none; } }

/* the toll sheet */
.beta-toll { grid-template-columns: auto auto 1fr; }
.beta-toll .rb-num { text-align: center; font: 16px/1 var(--ui-num); color: var(--ui-muted); }
.beta-rules .tile-ico { width: 22px; height: 22px; vertical-align: middle; margin-right: .3em; }

/* the switches (the lobby's Beta sheet): Dealt tiles' own settings set in under it */
.beta-switches .beta-sub { padding-left: 1.4rem; }
.beta-rules ul.beta-on { margin: .3rem 0 .6rem; padding-left: 1.2rem; }
.beta-rules ul.beta-on li { margin: .25rem 0; }

/* the Beta's editor (beta-ui.js betaEditor): its rules and numbers, in groups that fold, with a search and jumps
   that stay at the top; one column on a phone, the rules beside the numbers on a wide screen. A changed row has a
   bar in the accent's colour, says what it was, and has its own reset. */
.beta-editor-sheet .hx-panel { max-width: 40rem; max-height: 92dvh; padding-top: .7rem; }
.be-intro { margin: .1rem 0 .5rem; font: 14px/1.4 var(--ui-body); color: var(--ui-muted); }
.be-intro .be-sum { display: block; margin-top: .15rem; color: var(--ui-accent-2); font-weight: 600; }
.be-tools { position: sticky; top: -.7rem; z-index: 2; display: grid; gap: .45rem; margin: 0 -1rem .5rem; padding: .5rem 1rem; background: var(--ui-panel); border-bottom: 1px solid var(--ui-line); }
.hx .be-q { width: 100%; min-height: var(--ui-tap); padding: 0 .8rem; border: 1px solid var(--ui-line); border-radius: var(--ui-pill); background: var(--ui-panel-2); color: var(--ui-text); font: 15px/1 var(--ui-body); }
.be-jump { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
.be-jump::-webkit-scrollbar { display: none; }
.hx .be-jump .chipb { flex: none; min-height: 36px; padding: .1rem .75rem; }
.be-jump em, .be-n { font-style: normal; font: 700 11px/1.2 var(--ui-body); padding: .1em .5em; border-radius: var(--ui-pill); background: var(--ui-accent-2); color: var(--ui-accent-ink); }
.be-sec h3 { margin: .8rem 0 .4rem; font: 600 13px/1 var(--ui-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ui-muted); }
.be-sec:first-child h3 { margin-top: .2rem; }
.be-grp { margin-bottom: .5rem; background: var(--ui-panel-2); border: 1px solid var(--ui-line); border-radius: var(--ui-r-lg); scroll-margin-top: 7.5rem; }
.be-grp > summary { display: flex; align-items: center; gap: .5rem; min-height: var(--ui-tap); padding: .2rem .8rem; cursor: pointer; list-style: none; font: 600 16px/1.2 var(--ui-body); }
.be-grp > summary::-webkit-details-marker { display: none; }
.be-grp > summary::before { content: '▸'; color: var(--ui-muted); transition: transform .15s; }
.be-grp[open] > summary::before { transform: rotate(90deg); }
.be-grp > summary .be-gt { flex: 1; }
.hx .be-gr { min-height: 32px; padding: 0 .6rem; font: 500 13px/1 var(--ui-body); }
.be-row { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 50px; padding: .35rem .8rem; border-top: 1px solid var(--ui-line); font: 15px/1.25 var(--ui-body); }
.be-row > label { display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0; cursor: pointer; }
.be-row .be-l { flex: 1; min-width: 0; }
.be-row .be-l small { display: block; margin-top: .15rem; font: 12.5px/1.3 var(--ui-body); color: var(--ui-muted); }
.be-row.sub { padding-left: 1.8rem; }
.be-row.sub::after { content: ''; position: absolute; left: 1rem; top: 0; bottom: 50%; border-left: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); width: .45rem; }
.be-row.idle .be-l b { color: var(--ui-muted); }
.be-row.ch::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--ui-accent-2); }
.be-ch { margin-left: .4em; padding: .05em .45em; border: 1px solid var(--ui-accent-2); border-radius: var(--ui-pill); color: var(--ui-accent-2); font: 700 10px/1.3 var(--ui-body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.be-was { display: block; font: 12px/1.3 var(--ui-body); color: var(--ui-accent-2); }
.be-f .be-was { flex: none; display: none; }
.hx .be-rs { flex: none; min-width: 40px; min-height: 40px; font-size: 18px; color: var(--ui-accent-2); }
.be-item { border-top: 1px solid var(--ui-line); }
.be-ih { display: flex; align-items: center; gap: .5rem; padding: .45rem .8rem .25rem; font: 600 15px/1.2 var(--ui-body); }
.be-ih svg { width: 26px; height: 26px; flex: none; }
.be-ih b { flex: 1; }
.be-item .be-row { border-top: 0; min-height: 46px; padding-left: 1.2rem; }
.be-st { flex: none; }
.hx .be-st button { width: var(--ui-tap); min-height: 40px; }
.hx .be-r .stepper button { width: 40px; min-height: 40px; }
.be-st b, .be-r .stepper b { min-width: 1.6rem; text-align: center; font: 20px/1 var(--ui-num); color: var(--ui-text); }
.hx button.be-pv { flex: 1; display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .2rem 0; border: 0; background: transparent; box-shadow: none; color: var(--ui-text); text-align: left; text-transform: none; letter-spacing: 0; font: 15px/1.25 var(--ui-body); }
.hx button.be-pv:disabled { opacity: 1; cursor: default; }
.be-pv .be-cost { flex: none; }
.be-pv .caret { color: var(--ui-muted); transition: transform .15s; }
.be-p.open .be-pv .caret { transform: rotate(180deg); }
.be-p { flex-wrap: wrap; }
.be-res { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.4rem, 1fr)); gap: .3rem .8rem; padding: .2rem 0 .3rem; }
.be-r { display: flex; align-items: center; justify-content: space-between; gap: .2rem; min-width: 0; }
.be-r .stepper { gap: .15rem; }
@media (max-width: 30em) { .be-r > span small { display: none; } }
.be-r > span { display: flex; align-items: center; gap: .3rem; font: 13px/1 var(--ui-body); color: var(--ui-muted); }
.be-r > span svg { width: 20px; height: 20px; }
.be-none { text-align: center; color: var(--ui-muted); }
.beta-rules table.be-changed { margin: .3rem 0 .6rem; }
@media (min-width: 60em) {
  .beta-editor-sheet .hx-panel { max-width: 74rem; border-radius: var(--ui-r-lg); }
  .be-tools { grid-template-columns: minmax(14rem, 22rem) 1fr; align-items: center; }
  .be-body { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.2rem; align-items: start; }
  .be-f .be-was { display: block; }
}
.beta-editor-sheet [hidden] { display: none !important; }
