/* Boardroom — a Club Copy desk accessory. Platinum chrome around a 256-colour screen. */

html.mac body.boardroom #win .footer { display: none; }
html.mac body.boardroom #vcr-player,
html.mac body.boardroom .vcr-stage,
html.mac body.boardroom .vcr-bumper,
html.mac body.boardroom .vcr-toast { display: none !important; }

html.mac body.boardroom #winBody {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 4px 4px;
  padding: 0;
  background: #d4d4d4;
  border-color: #808080;
}
html.mac body.boardroom.has-vcr-player #winBody { padding-bottom: 0; }
html.mac body.boardroom #main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.brd {
  --plat: #dddddd;
  --plat-dk: #808080;
  --hot: #c2189b;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(#ececec, #c8c8c8);
  color: #000;
  font-family: Silom, Chicago, Charcoal, Geneva, sans-serif;
}

/* HUD ---------------------------------------------------------------- */

.brd-hud {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 30px;
  padding: 3px 6px 3px 12px;
  background: var(--plat);
  border-bottom: 1px solid var(--plat-dk);
  box-shadow: inset 0 1px 0 #fff;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.brd-hud b { font-weight: 400; font-variant-numeric: tabular-nums; }
.brd-hud-lab { color: #444; }
.brd-hud-mult {
  padding: 1px 6px;
  border: 1px solid #000;
  border-radius: 3px;
  background: #fff;
  font-variant-numeric: tabular-nums;
}
.brd-hud-mult.is-hot { background: #111; color: #ffe14a; }
.brd-hud-flop { display: inline-flex; align-items: center; gap: 4px; }
.brd-hud-flop svg { width: 15px; height: 15px; }
.brd-lives { display: inline-flex; gap: 4px; align-items: center; }
.brd-lives i {
  display: block;
  width: 20px;
  height: 8px;
  border: 1px solid #000;
  border-radius: 2px 5px 2px 5px;
  background: #c4c4c4;
  box-shadow: inset 0 -2px 0 #8a8a8a;
  opacity: .4;
}
.brd-lives i.is-on {
  background: linear-gradient(90deg, #ff2bd6, #ffe14a 46%, #3dfff2);
  box-shadow: inset 0 -2px 0 #111;
  opacity: 1;
}
.brd-hud-goal { color: var(--hot); font-variant-numeric: tabular-nums; }
.brd-hud-goal.is-low { color: #e03a3e; }
.brd.is-session .brd-lives { display: none; }
.brd.is-session .brd-hud-goal { display: inline; }
.brd-hud-end { display: inline-flex; gap: 6px; margin-left: auto; }
.brd-tool {
  display: grid;
  place-items: center;
  width: 30px;
  height: 24px;
  padding: 0;
  background: var(--plat);
  color: #000;
  border: 1px solid #000;
  border-radius: 4px;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--plat-dk);
}
.brd-tool:active { box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 var(--plat-dk); background: #c8c8c8; }
.brd-tool svg { width: 16px; height: 16px; fill: currentColor; }
.brd-tool .brd-sound-off,
.brd-tool[aria-pressed="false"] .brd-sound-on { display: none; }
.brd-tool[aria-pressed="false"] .brd-sound-off { display: block; }

/* Screen ------------------------------------------------------------- */

.brd-screen {
  position: relative;
  flex: 1 1 auto;
  min-height: 260px;
  margin: 8px;
  background: #07060a;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--plat-dk);
  overflow: hidden;
}
.brd-screen > canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
#brdWorld {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
#brdCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  image-rendering: pixelated;
  background: transparent;
}
.brd-screen.is-3d #brdCanvas { background: transparent; }
.brd-screen:not(.is-3d) #brdWorld { display: none; }
.brd-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  opacity: .22;
}
.brd-screen.is-menu .brd-scan { opacity: .12; }

.brd-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 4px 10px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  border-radius: 4px;
  font: 12px/1.4 "Noto Sans", Geneva, sans-serif;
  text-align: center;
  pointer-events: none;
  transition: opacity .6s;
}
.brd-hint b { font-family: Silom, Chicago, sans-serif; font-weight: 400; color: #ffe14a; }
.brd-hint.is-out { opacity: 0; }
.brd-hint.is-coach {
  bottom: 16px;
  padding: 8px 12px;
  background: #ffffe0;
  color: #111;
  border: 1px solid #000;
  border-radius: 6px;
  box-shadow: 2px 2px 0 #000;
  font-size: 14px;
}
.brd-hint.is-coach b { color: #111; }
.brd-coach-n { margin-right: 6px; font-family: Silom, Chicago, sans-serif; color: #009ddc; }
.brd-screen.is-menu .brd-hint { display: none; }

.brd-toasts {
  position: absolute;
  z-index: 5;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  pointer-events: none;
}
.brd-toast {
  display: flex;
  flex-direction: column;
  max-width: 280px;
  padding: 6px 10px;
  background: #ffffe0;
  border: 1px solid #000;
  border-radius: 6px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .45);
  font-size: 12px;
  line-height: 1.3;
  animation: brd-in .25s ease-out;
  transition: opacity .4s, transform .4s;
}
.brd-toast b { font-weight: 400; }
.brd-toast span { font-family: "Noto Sans", Geneva, sans-serif; }
.brd-toast.is-out { opacity: 0; transform: translateY(-6px); }
@keyframes brd-in { from { opacity: 0; transform: translateX(16px); } }

/* Dialog window ------------------------------------------------------ */

.brd-dlg {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100% - 20px));
  max-height: calc(100% - 20px);
  background: var(--plat);
  color: #000;
  border: 1px solid #000;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #8a8a8a,
    3px 3px 0 rgba(0, 0, 0, .55),
    0 0 60px rgba(61, 255, 242, .15);
}
.brd-dlg[hidden] { display: none; }
.brd-dlg--menu { width: min(600px, calc(100% - 20px)); height: min(520px, calc(100% - 20px)); }
.brd-dlg--results { width: min(480px, calc(100% - 20px)); }
.brd-dlg-bar {
  flex: none;
  position: relative;
  height: 20px;
  margin: 2px 2px 0;
  background: repeating-linear-gradient(to bottom, #fff 0 1px, #9a9a9a 1px 2px, var(--plat) 2px 3px);
  background-clip: content-box;
  padding: 3px 6px;
  border-bottom: 1px solid var(--plat-dk);
}
.brd-dlg-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 8px;
  background: var(--plat);
  font: 400 13px/1.2 Silom, Chicago, sans-serif;
  white-space: nowrap;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.brd-dlg-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.35;
}
.brd-dlg-body p { margin: 0 0 8px; font-family: "Noto Sans", Geneva, sans-serif; font-size: 13px; }
.brd-small { color: #444; font-family: "Noto Sans", Geneva, sans-serif !important; font-size: 11.5px !important; }
.brd-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--plat-dk);
  box-shadow: 0 1px 0 #fff;
  font: 400 14px/1.2 Silom, Chicago, sans-serif;
}
.brd-h:first-child { margin-top: 2px; }
.brd-err { min-height: 1em; color: #b00020; font-size: 12px !important; }
.brd-err:empty { min-height: 0; margin: 0 !important; }

/* Tabs (Control Panels style) */
.brd-tabs {
  flex: none;
  display: flex;
  gap: 2px;
  margin: 0 0 -1px;
  padding: 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.brd-tab {
  position: relative;
  flex: none;
  padding: 4px 12px 3px;
  background: #c8c8c8;
  color: #000;
  border: 1px solid #000;
  border-bottom-color: var(--plat-dk);
  border-radius: 6px 6px 0 0;
  box-shadow: inset 1px 1px 0 #eee;
  font: 400 12.5px/1.2 Silom, Chicago, sans-serif;
}
.brd-tab.is-on { z-index: 1; background: #eaeaea; border-bottom-color: #eaeaea; padding-top: 6px; margin-top: -2px; }
.brd-badge {
  display: inline-grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  margin-left: 5px;
  padding: 0 3px;
  background: #e03a3e;
  color: #fff;
  border-radius: 8px;
  font: 400 10px/1 Silom, Chicago, sans-serif;
  font-style: normal;
}
.brd-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px;
  background: #eaeaea;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #b8b8b8;
}

/* Buttons + fields */
.brd-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 26px;
  padding: 3px 14px;
  background: var(--plat);
  color: #000;
  border: 1px solid #000;
  border-radius: 4px;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--plat-dk);
  font: 400 13px/1.2 Silom, Chicago, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.brd-btn:active { box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 var(--plat-dk); background: #c8c8c8; }
.brd-btn:disabled { color: #888; cursor: default; }
.brd-btn-default { outline: 2px solid #000; outline-offset: 1px; }
.brd-btn-sm { min-width: 0; min-height: 22px; padding: 1px 10px; font-size: 12px; }
.brd-btn-gold { background: #ffe27a; }
.brd-btn-gold:active { background: #f0c84a; }
.brd-btn:focus-visible, .brd-tab:focus-visible, .brd-world:focus-visible, .brd-item:focus-visible { outline: 2px solid #3d6ea8; outline-offset: 2px; }
.brd-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.brd-actions--split > :first-child { margin-right: auto; }
.brd-keys { margin: 0 auto 0 0 !important; }
.brd-dlg input[type="text"], .brd-dlg input:not([type]), .brd-dlg input[type="search"] {
  min-width: 0;
  height: 26px;
  padding: 2px 6px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 var(--plat-dk);
  font: 14px/1.2 "Noto Sans", Geneva, sans-serif;
}
.brd-dlg label { display: block; margin: 8px 0 3px; font: 400 12.5px/1.2 Silom, Chicago, sans-serif; }
.brd-dlg form > div { display: flex; gap: 6px; }
.brd-dlg form > div input { flex: 1 1 auto; }

/* Meters */
.brd-meter {
  display: block;
  height: 10px;
  margin: 4px 0 3px;
  background: #fff;
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #999;
  overflow: hidden;
}
.brd-meter span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(-45deg, #6a5cff 0 4px, #8f84ff 4px 8px);
  border-right: 1px solid #000;
  transition: width .6s;
}
.brd-meter--thin { height: 6px; margin: 3px 0 0; }

/* Ride / Play home */
.brd-home { display: flex; flex-direction: column; gap: 8px; }
.brd-me--tight { margin-bottom: 0; }
.brd-me--tight .brd-me-pic { width: 56px; height: 56px; }
.brd-howto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brd-howto li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 6px;
  text-align: center;
  background: #fff;
  border: 1px solid #000;
  border-radius: 6px;
  box-shadow: inset 1px 1px 0 #fff, 1px 1px 0 #8a8a8a;
}
.brd-howto b {
  font: 400 15px/1.1 Silom, Chicago, sans-serif;
  color: #009ddc;
}
.brd-howto span {
  font: 11px/1.2 "Noto Sans", Geneva, sans-serif;
  color: #333;
}
.brd-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  margin: 2px 0 4px;
  padding: 0;
  list-style: none;
  font: 11.5px/1.3 "Noto Sans", Geneva, sans-serif;
  color: #333;
}
.brd-feats b { font-family: Silom, Chicago, sans-serif; font-weight: 400; color: #111; }
.brd-tease {
  margin: 0 !important;
  text-align: center;
  font: 400 12.5px/1.3 Silom, Chicago, sans-serif !important;
  color: #222;
}
.brd-hook {
  margin: 0 !important;
  padding: 6px 10px;
  background: #ffffe0;
  border: 1px solid #000;
  border-radius: 4px;
  box-shadow: 1px 1px 0 #000;
  font: 400 13px/1.3 Silom, Chicago, sans-serif !important;
}
.brd-hook.is-hot { background: #dfffea; animation: brd-glow 1.4s ease-in-out infinite; }
.brd-playhero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0;
}
.brd-btn-hero {
  min-height: 48px;
  width: 100%;
  font-size: 20px !important;
  letter-spacing: 0.04em;
  background: linear-gradient(#fff56a, #ffd23f);
  box-shadow: inset 1px 1px 0 #fff6a8, inset -1px -1px 0 #c9a018, 0 2px 0 #000;
}
.brd-playchoice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.brd-playchoice .brd-btn-hero {
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
}
.brd-playchoice b { display: block; font-size: 18px; }
.brd-playchoice small {
  display: block;
  font: 400 11.5px/1.25 Silom, Chicago, sans-serif;
  color: #333;
  white-space: normal;
}
.brd-btn-hero:active { background: #f0c84a; }
.brd-btn-hero.is-pulse { animation: brd-pulse 1.15s ease-in-out infinite; }
.brd-diskbar.is-pulse { animation: brd-glow 1.4s ease-in-out infinite; }
@keyframes brd-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
@keyframes brd-glow {
  0%, 100% { box-shadow: 1px 1px 0 #000; }
  50% { box-shadow: 1px 1px 0 #000, 0 0 0 2px #ffe14a; }
}
@media (prefers-reduced-motion: reduce) {
  .brd-btn-hero.is-pulse,
  .brd-hook.is-hot,
  .brd-diskbar.is-pulse { animation: none; }
}
.brd-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.brd-mode {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  padding: 8px 10px;
  text-align: left;
  background: #fff;
  border: 1px solid #000;
  border-radius: 6px;
  box-shadow: inset 1px 1px 0 #fff, 1px 1px 0 #8a8a8a;
  font: 400 12px/1.25 "Noto Sans", Geneva, sans-serif;
  cursor: pointer;
}
.brd-mode b {
  grid-column: 1;
  font: 400 13px/1.2 Silom, Chicago, sans-serif;
}
.brd-mode span { grid-column: 1; color: #444; font-size: 11.5px; }
.brd-mode em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font: 400 12px/1 Silom, Chicago, sans-serif;
  font-style: normal;
  color: #009ddc;
}
.brd-mode:active { background: #eee; }
@media (max-width: 520px) {
  .brd-modes { grid-template-columns: 1fr; }
}
.brd-me { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.brd-me-pic {
  flex: none;
  width: 72px;
  height: 72px;
  background: linear-gradient(#8fb3ff, #ffe2b8);
  border: 1px solid #000;
  box-shadow: inset 1px 1px 0 #fff;
  image-rendering: pixelated;
}
.brd-me-copy { flex: 1 1 auto; min-width: 0; }
.brd-me-name { margin: 0 0 2px !important; font: 400 17px/1.2 Silom, Chicago, sans-serif !important; }
.brd-me-name span { color: #555; font-size: 13px; }
.brd-me-stats { margin: 0 !important; font-size: 12px !important; }
.brd-me-stats b { font-family: Silom, Chicago, sans-serif; font-weight: 400; }
.brd-worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brd-world {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px 6px;
  background: var(--plat);
  color: #000;
  border: 1px solid #000;
  border-radius: 6px;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 var(--plat-dk);
  font-family: Silom, Chicago, sans-serif;
  cursor: pointer;
}
.brd-world svg { width: 44px; height: 38px; }
.brd-world b { font-weight: 400; font-size: 14px; }
.brd-world span { font: 11px/1.2 "Noto Sans", Geneva, sans-serif; color: #444; }
.brd-world.is-on { background: #fff; outline: 2px solid #000; outline-offset: 1px; }
.brd-world.is-locked { opacity: .55; cursor: not-allowed; }
.brd-world.is-locked svg { filter: grayscale(1); }
.brd-world-blurb { margin: 6px 0 10px !important; text-align: center; color: #333; font-size: 12px !important; }
.brd-daily {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: #fffbe6;
  border: 1px dashed #000;
  border-radius: 6px;
}
.brd-daily svg { width: 36px; height: 32px; display: block; }
.brd-daily b { display: block; font-weight: 400; font-family: Silom, Chicago, sans-serif; }
.brd-daily span { font: 11.5px/1.35 "Noto Sans", Geneva, sans-serif; color: #444; }

/* Challenges */
.brd-goals { list-style: none; margin: 0; padding: 0; }
.brd-goals li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 6px 0;
  border-bottom: 1px dotted #999;
  font: 13px/1.35 "Noto Sans", Geneva, sans-serif;
}
.brd-goals li em { font-style: normal; font-family: Silom, Chicago, sans-serif; font-size: 12px; color: var(--hot); white-space: nowrap; }
.brd-goals small { color: #555; }
.brd-check { width: 14px; height: 14px; margin-top: 2px; background: #fff; border: 1px solid #000; box-shadow: inset 1px 1px 0 #999; }
.brd-goals li.is-done span { color: #777; text-decoration: line-through; }
.brd-goals li.is-done .brd-check { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7l3 3 7-8' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.brd-streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; list-style: none; margin: 0; padding: 0; }
.brd-streak li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 2px;
  background: #fff;
  border: 1px solid #999;
  border-radius: 4px;
  font-size: 11px;
}
.brd-streak li b { font-weight: 400; color: #555; }
.brd-streak li span { font-size: 13px; }
.brd-streak li.is-past { background: #ddd; color: #777; }
.brd-streak li.is-now { background: #111; color: #ffe14a; border-color: #000; }
.brd-streak li.is-now b { color: #fff; }

/* Locker */
.brd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.brd-grid--decks { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.brd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 6px;
  box-shadow: inset -1px -1px 0 #bbb;
  font-family: Silom, Chicago, sans-serif;
  cursor: pointer;
}
.brd-item canvas { width: 64px; height: 64px; image-rendering: pixelated; }
.brd-item--deck canvas { width: 108px; height: 36px; }
.brd-item b { font-weight: 400; font-size: 13px; }
.brd-item span { font: 11px/1.2 "Noto Sans", Geneva, sans-serif; color: #555; }
.brd-item.is-on { outline: 2px solid #000; outline-offset: 1px; background: #fffbe6; }
.brd-item.is-on span { color: var(--hot); }
.brd-item.is-locked canvas { filter: grayscale(1) brightness(.8); opacity: .7; }

/* Buddies */
.brd-note { padding: 10px 12px; background: #fff; border: 1px solid #000; border-radius: 6px; }
.brd-note b { font-weight: 400; font-family: Silom, Chicago, sans-serif; }
.brd-note p { margin: 4px 0 0 !important; }
.brd-add label { margin-top: 0; }
.brd-table { width: 100%; border-collapse: collapse; font: 12.5px/1.3 "Noto Sans", Geneva, sans-serif; }
.brd-table th, .brd-table td { padding: 4px 6px; border-bottom: 1px dotted #999; text-align: left; font-weight: 400; }
.brd-table td { text-align: right; font-variant-numeric: tabular-nums; }
.brd-table thead th { font-family: Silom, Chicago, sans-serif; font-size: 11.5px; color: #444; border-bottom: 1px solid #000; }
.brd-table thead th:not(:first-child) { text-align: right; }
.brd-table tr.is-me { background: #fffbe6; }
.brd-table--buddies tbody th { display: flex; align-items: center; gap: 6px; }
.brd-table--buddies canvas { width: 28px; height: 28px; image-rendering: pixelated; }
.brd-table--buddies th span b { display: block; font-weight: 400; font-family: Silom, Chicago, sans-serif; }
.brd-table--buddies th span { font-size: 11px; color: #555; }
.brd-table--board td:first-child { width: 2em; text-align: left; font-family: Silom, Chicago, sans-serif; }
.brd-table small { color: #666; }
.brd-panel .brd-table:not(.brd-table--buddies):not(.brd-table--board) th { width: 55%; }
.brd-list { list-style: none; margin: 0; padding: 0; }
.brd-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dotted #999; font: 12.5px/1.35 "Noto Sans", Geneva, sans-serif; }
.brd-list li > span { flex: 1 1 auto; min-width: 0; }
.brd-list b { font-weight: 400; font-family: Silom, Chicago, sans-serif; }
.brd-list small { color: #555; }
.brd-list canvas { width: 32px; height: 32px; image-rendering: pixelated; }
.brd-seg { display: inline-flex; margin-bottom: 6px; border: 1px solid #000; border-radius: 4px; overflow: hidden; }
.brd-seg-btn {
  padding: 3px 10px;
  background: var(--plat);
  color: #000;
  border: 0;
  border-right: 1px solid #000;
  font: 400 12px/1.2 Silom, Chicago, sans-serif;
  cursor: pointer;
}
.brd-seg-btn:last-child { border-right: 0; }
.brd-seg-btn.is-on { background: #111; color: #fff; }

/* Profile */
.brd-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 4px; }
.brd-key > span { font-family: Silom, Chicago, sans-serif; }
.brd-key code { padding: 2px 6px; background: #fff; border: 1px solid #000; font: 14px/1.3 Monaco, "IBM Plex Mono", monospace; letter-spacing: .04em; }

/* Welcome */
.brd-welcome { display: flex; flex-direction: column; min-height: 100%; }
.brd-how {
  margin: 0 0 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 6px;
  font: 13px/1.45 "Noto Sans", Geneva, sans-serif;
}
.brd-how b { font-family: Silom, Chicago, sans-serif; font-weight: 400; }
.brd-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 4px; padding: 0; border: 0; }
.brd-picks legend { padding: 0; margin-bottom: 4px; font: 400 12.5px/1.2 Silom, Chicago, sans-serif; }
.brd-pick {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0 !important;
  padding: 6px 6px 8px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}
.brd-pick input { position: absolute; opacity: 0; }
.brd-pick canvas { width: 72px; height: 72px; image-rendering: pixelated; }
.brd-pick b { font-weight: 400; font-size: 14px; }
.brd-pick span { font: 11px/1.3 "Noto Sans", Geneva, sans-serif; color: #555; }
.brd-pick:has(input:checked) { background: #fffbe6; outline: 2px solid #000; outline-offset: 1px; }
.brd-pick:has(input:focus-visible) { outline: 2px solid #3d6ea8; outline-offset: 2px; }

/* Alerts + results */
.brd-alert { display: flex; gap: 14px; align-items: flex-start; }
.brd-alert > div { flex: 1 1 auto; min-width: 0; }
.brd-alert-icon { flex: none; width: 48px; height: 48px; }
.brd-big { margin: 0 0 2px !important; font: 400 30px/1.1 Silom, Chicago, sans-serif !important; font-variant-numeric: tabular-nums; }
.brd-new {
  display: inline-block;
  vertical-align: middle;
  padding: 2px 6px;
  background: #111;
  color: #ffe14a;
  border-radius: 3px;
  font-size: 12px;
}
.brd-report { list-style: none; margin: 10px 0 0; padding: 6px 8px; background: #fff; border: 1px solid #000; font: 12.5px/1.4 "Noto Sans", Geneva, sans-serif; max-height: 9.5em; overflow: auto; }
.brd-report li { padding: 2px 0; }
.brd-report b { font-weight: 400; font-family: Silom, Chicago, sans-serif; }
.brd-report em { font-style: normal; color: var(--hot); font-family: Silom, Chicago, sans-serif; }
.brd-report .brd-lvl { color: #000; background: linear-gradient(90deg, #fff3a8, transparent); }
.brd-report .brd-near { background: linear-gradient(90deg, #ffd0d0, transparent); }
.brd-report li[data-pending] { display: none; }
.brd-stamp { transform: scale(1.6) rotate(-8deg); opacity: 0; }
.brd-stamp.is-in { animation: brd-stamp .28s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes brd-stamp { 0% { transform: scale(1.8) rotate(-8deg); opacity: 0; } 100% { transform: scale(1) rotate(-6deg); opacity: 1; } }
.brd-alert > div.is-pop > p b { color: var(--hot); }

.brd-diskbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #fffbe6;
  border: 1px solid #000;
  border-radius: 6px;
  box-shadow: inset 1px 1px 0 #fff, 2px 2px 0 #b8860b;
}
.brd-diskbar.is-pending { display: none; }
.brd-disk-icon { width: 32px; height: 32px; }
.brd-diskbar b { display: block; font-weight: 400; font-family: Silom, Chicago, sans-serif; }
.brd-diskbar span { font: 11.5px/1.35 "Noto Sans", Geneva, sans-serif; color: #444; }

.brd-session { margin: 0 0 10px; padding: 8px 10px; background: #111; color: #ffe14a; border: 1px solid #000; border-radius: 6px; }
.brd-session-head { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.brd-session b { display: block; font-weight: 400; font-family: Silom, Chicago, sans-serif; color: #fff; }
.brd-session span { font: 11.5px/1.35 "Noto Sans", Geneva, sans-serif; color: #ffe14a; }
.brd-sgoals { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; list-style: none; margin: 8px 0 0; padding: 0; }
.brd-sgoals li { display: grid; grid-template-columns: 14px 1fr; gap: 6px; align-items: center; font: 11.5px/1.3 "Noto Sans", Geneva, sans-serif; color: #ddd; }
.brd-sgoals .brd-check { width: 12px; height: 12px; margin: 0; background: #111; border-color: #ffe14a; box-shadow: none; }
.brd-sgoals li.is-done { color: #7CFF6B; }
.brd-sgoals li.is-done .brd-check { background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7l3 3 7-8' fill='none' stroke='%237CFF6B' stroke-width='2'/%3E%3C/svg%3E") center/11px no-repeat; }

.brd-copy { display: flex; gap: 12px; align-items: flex-start; }
.brd-copy > div { flex: 1 1 auto; min-width: 0; }
.brd-meter--copy span { background: repeating-linear-gradient(-45deg, #111 0 4px, #444 4px 8px); transition: none; }
.brd-meter--copy.is-tier span { background: repeating-linear-gradient(-45deg, var(--tier) 0 4px, #fff 4px 8px); }
.brd-prize { margin-top: 8px; padding: 10px; text-align: center; background: #fff; border: 2px solid var(--tier, #000); border-radius: 6px; }
.brd-prize.is-pending { display: none; }
.brd-prize canvas, .brd-prize .brd-alert-icon { display: block; margin: 4px auto; }
.brd-prize .brd-alert-icon { width: 64px; height: 64px; }
.brd-tier { margin: 0 0 4px !important; font: 400 12px/1 Silom, Chicago, sans-serif !important; letter-spacing: .14em; color: var(--tier); }
.brd-prize-name { margin: 6px 0 2px !important; font: 400 18px/1.2 Silom, Chicago, sans-serif !important; }
.brd-prize.is-legendary { background: linear-gradient(#fff6d0, #fff); animation: brd-glow .6s ease-in-out 3; }
.brd-prize.is-epic { background: linear-gradient(#f6e6ff, #fff); }
@keyframes brd-glow { 50% { box-shadow: 0 0 18px var(--tier); } }
.brd-pity { margin-top: 8px !important; text-align: center; }
.brd-item.is-epic { box-shadow: inset 0 0 0 2px #b23dff; }
.brd-item.is-legendary { box-shadow: inset 0 0 0 2px #ffb800; }
.brd-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.brd-confetti i { position: absolute; top: -8px; width: 6px; height: 9px; animation: brd-fall 1.15s ease-in forwards; }
@keyframes brd-fall { to { transform: translate(var(--dx), 320px) rotate(var(--rot)); opacity: 0; } }

@media (pointer: coarse) {
  .brd-btn { min-height: 40px; }
  .brd-tool { width: 40px; height: 34px; }
  .brd-keys { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .brd-scan { display: none; }
  .brd-toast, .brd-stamp.is-in, .brd-prize.is-legendary, .brd-confetti i { animation: none; }
  .brd-stamp.is-in { opacity: 1; transform: rotate(-6deg); }
}
@media (max-width: 860px) {
  html.mac body.boardroom #winBody { margin: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .brd-screen { margin: 6px; }
}
@media (max-width: 560px) {
  .brd-hud { gap: 9px; padding-left: 8px; font-size: 12px; }
  .brd-hud-lab, .brd-hud-dist, .brd-hud-goal { display: none; }
  .brd-dlg--menu, .brd-dlg--results { width: calc(100% - 12px); height: auto; max-height: calc(100% - 12px); }
  .brd-tabs { gap: 1px; }
  .brd-tab { flex: 1 1 auto; min-width: 0; padding: 4px 4px 3px; font-size: 11.5px; }
  .brd-tab .brd-badge { position: absolute; top: -6px; right: -3px; }
  .brd-panel { padding: 8px; }
  .brd-table--buddies th:nth-child(n+4):not(:last-child), .brd-table--buddies td:nth-child(n+4):not(:last-child) { display: none; }
}
