/* HellbreakSim's menu layout. Color roles come from the shared `hellish` theme
   loaded through SiteDef.php; the local --hb-* aliases keep these rules readable. */
:root {
  --hb-gold: var(--accent);
  --hb-gold-soft: var(--accent-strong);
  --hb-red: var(--danger);
  --hb-panel: var(--surface-raised);
  --hb-panel-raised: var(--surface-sunken);
  --hb-border: var(--card-border);
  --hb-muted: var(--text-muted);
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 16% 0, rgba(var(--danger-rgb, 185, 58, 52), .25), transparent 40%),
    radial-gradient(circle at 95% 40%, rgba(var(--accent-rgb, 216, 179, 106), .12), transparent 38%),
    linear-gradient(145deg, #0d0910, #170d19 58%, var(--surface));
}

.nav-bar-links img { width: 24px !important; height: 24px !important; }
.nav-bar ul { margin: 0; }
.nav-bar li { list-style: none; }
.home-header { height: 64px; margin-top: -10px; padding-bottom: 18px; }
.home-header .title h1 { letter-spacing: .07em; text-transform: uppercase; }
.home-header .title p { color: var(--hb-gold); }

@media (min-width: 901px) {
  body > .burger-menu { display: none !important; }
  .nav-bar {
    display: flex;
    align-items: center;
    gap: 13px;
  }
  .nav-bar-user {
    height: 52px;
    padding: 0 4px;
    box-sizing: border-box;
  }
  .nav-bar-user .rightnav {
    display: flex !important;
    height: 100%;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
  }
  .nav-bar-user .rightnav > li {
    position: relative;
    display: flex;
    height: 100%;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
  }
  .nav-bar-user .rightnav > li + li::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 0;
    width: 1px;
    height: 20px;
    background: var(--border);
  }
  .nav-bar-user .NavBarItem {
    display: flex !important;
    height: 50px;
    align-items: center;
    gap: 9px;
    padding: 0 16px !important;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
  }
  .nav-bar-user .nav-item-icon {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin: 0;
    object-fit: contain;
  }
}

.hellbreak-shell {
  width: min(1878px, calc(100% - 40px));
  margin: 8px auto 14px;
}

.hellbreak-menu-grid {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(560px, 1.65fr) minmax(310px, .88fr);
  gap: 18px;
  align-items: start;
}

.hellbreak-panel {
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--hb-border);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(25, 24, 26, .97), var(--hb-panel));
  box-shadow: 0 20px 55px rgba(0, 0, 0, .28);
}

.hellbreak-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hb-border);
}

.hellbreak-panel-heading h3,
.hellbreak-library-heading h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hellbreak-panel-heading h3 strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 99px;
  color: var(--on-accent);
  background: var(--hb-gold);
  font-size: 12px;
}

.hellbreak-heading-icon { color: var(--hb-gold); }
.hellbreak-icon-button {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0 !important;
  border: 0;
  border-radius: 50% !important;
  color: var(--hb-gold);
  background: transparent;
  box-shadow: none;
  clip-path: none !important;
  cursor: pointer;
}
.hellbreak-icon-button::before,
.hellbreak-icon-button::after { content: none !important; }
.hellbreak-refresh-icon { display: block; width: 18px; height: 18px; }
.hellbreak-icon-button.loading .hellbreak-refresh-icon { animation: hb-spin .7s linear infinite; }
@keyframes hb-spin { to { transform: rotate(360deg); } }

.hellbreak-active-panel { display: flex; flex-direction: column; }
.hellbreak-active-list { display: grid; gap: 10px; flex: 1; }
.hellbreak-empty {
  padding: 24px 16px;
  color: var(--hb-muted);
  text-align: center;
}
.hellbreak-empty small,
.hellbreak-empty strong { display: block; }
.hellbreak-empty small { margin-top: 9px; line-height: 1.55; }
.hellbreak-empty a { color: var(--hb-gold-soft); }
.hellbreak-active-empty {
  display: grid;
  place-content: center;
  min-height: 280px;
}
.hellbreak-active-empty > span { margin-bottom: 24px; color: rgba(var(--accent-rgb, 216, 179, 106), .72); font-size: 60px; }
.hellbreak-active-empty strong { color: var(--text); }
.hellbreak-active-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--hb-border);
  border-radius: 9px;
  background: rgba(var(--border-rgb, 255, 238, 216), .025);
}
.hellbreak-active-game strong,
.hellbreak-active-game small { display: block; }
.hellbreak-active-game small { color: var(--hb-muted); }
.hellbreak-spectate-actions { display: flex; gap: 6px; }
.hellbreak-spectate-actions button {
  padding: 6px 8px;
  border: 1px solid rgba(var(--accent-rgb, 216, 179, 106), .35);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-raised);
  cursor: pointer;
  font-size: 12px;
}
.hellbreak-rejoin {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin: 12px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(var(--accent-rgb, 216, 179, 106), .45);
  border-radius: 8px;
  color: var(--text);
  background: rgba(var(--accent-rgb, 216, 179, 106), .1);
  text-align: left;
  cursor: pointer;
}
.hellbreak-rejoin[hidden] { display: none; }
.hellbreak-rejoin > span:first-child { color: var(--hb-gold); font-size: 25px; }
.hellbreak-rejoin strong,
.hellbreak-rejoin small { display: block; }
.hellbreak-rejoin small { color: var(--hb-muted); }

.hellbreak-play-panel { display: flex; flex-direction: column; }
.hellbreak-workspace-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--hb-border);
}
.hellbreak-workspace-heading h2,
.hellbreak-welcome h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 19px;
  color: var(--text);
}
.hellbreak-workspace-heading span { color: var(--hb-muted); }
.hellbreak-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 10px 11px;
  border-bottom: 1px solid var(--hb-border);
}
.hellbreak-create-deck {
  padding: 8px 16px;
  border: 1px solid rgba(var(--accent-rgb, 216, 179, 106), .55);
  border-radius: 6px;
  color: var(--hb-gold-soft) !important;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 13px;
}
.hellbreak-library-tabs {
  display: flex;
  gap: 36px;
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--hb-border);
}
.hellbreak-library-tabs button {
  display: grid;
  place-items: center;
  position: relative;
  height: 36px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.hellbreak-library-tabs button:not(.is-active) { color: var(--hb-muted); }
.hellbreak-library-tabs .is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--hb-gold);
}
.hellbreak-selected-section { margin-top: 14px; }
.hellbreak-selected-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  color: var(--hb-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hellbreak-change-deck {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text) !important;
  font: inherit;
  text-transform: none;
}
.hellbreak-selected-deck {
  display: grid;
  grid-template-columns: 150px minmax(155px, 1fr) 58px;
  align-items: center;
  min-height: 122px;
  padding: 9px 14px;
  border: 1px solid var(--hb-border);
  border-left: 2px solid var(--hb-gold);
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb, 216, 179, 106), .04), rgba(var(--border-rgb, 255, 238, 216), .015));
}
.hellbreak-deck-art { position: relative; height: 102px; }
.hellbreak-deck-art img {
  position: absolute;
  top: 4px;
  left: 22px;
  width: 68px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
}
.hellbreak-deck-art img:first-child { z-index: 2; left: 2px; transform: rotate(-3deg); }
.hellbreak-deck-art img:last-child { transform: rotate(4deg); }
.hellbreak-selected-copy strong,
.hellbreak-selected-copy span,
.hellbreak-selected-copy small { display: block; }
.hellbreak-selected-copy strong { font-family: Georgia, serif; font-size: 18px; }
.hellbreak-selected-copy span { margin: 6px 0 12px; color: var(--hb-muted); }
.hellbreak-selected-copy small { color: var(--text); }
.hellbreak-selected-copy small b { margin-right: 12px; color: var(--hb-gold-soft); }
.hellbreak-native-deck-select { position: absolute; width: 1px !important; height: 1px; padding: 0 !important; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0 !important; }
.hellbreak-selected-check {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  justify-self: end;
  border: 1px solid var(--hb-gold);
  border-radius: 50%;
  color: var(--hb-gold-soft);
  font-size: 20px;
}
.hellbreak-selected-actions {
  display: flex;
  grid-column: 2 / -1;
  gap: 7px;
  margin-top: 4px;
}
.hellbreak-selected-actions[hidden] { display: none; }
.hellbreak-selected-actions > a,
.hellbreak-selected-actions > button {
  display: grid !important;
  width: 36px;
  height: 34px;
  min-height: 0;
  padding: 0 !important;
  place-items: center;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  background: var(--surface-raised) !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
.hellbreak-selected-actions > :hover { border-color: var(--accent) !important; }
.hellbreak-selected-actions > .danger { border-color: rgba(var(--danger-rgb, 185, 58, 52), .58) !important; }
.hellbreak-selected-actions img { display: block; width: 18px; height: 18px; object-fit: contain; }
.hellbreak-ready-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--hb-border);
  color: var(--hb-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hellbreak-game-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hellbreak-game-action {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px;
  border: 1px solid var(--hb-border);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface-raised);
  text-align: left;
  cursor: pointer;
}
.hellbreak-game-action.primary { border-color: var(--btn-border); background: var(--btn-surface); }
.hellbreak-game-action:hover { filter: brightness(1.12); transform: translateY(-1px); }
.hellbreak-game-action.coming-soon {
  cursor: not-allowed;
  border-color: rgba(183, 88, 67, .42);
  background: linear-gradient(145deg, rgba(38, 53, 53, .78), rgba(19, 38, 41, .86));
}
.hellbreak-game-actions button.hellbreak-game-action.coming-soon:disabled { opacity: .78; filter: saturate(.78); }
.hellbreak-game-action.coming-soon:hover { filter: none; transform: none; }
.hellbreak-game-action strong,
.hellbreak-game-action small { display: block; }
.hellbreak-game-action strong { font-size: 13px; text-transform: uppercase; }
.hellbreak-game-action small { margin-top: 2px; color: var(--text-muted); font-size: 11px; }
.hellbreak-game-action.primary small { color: var(--text-muted); }
.hellbreak-action-icon { color: var(--hb-gold-soft); font-size: 19px; }
.hellbreak-game-action.coming-soon .hellbreak-action-icon img {
  display: block;
  width: 18px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .48));
}
.hellbreak-game-action.coming-soon small {
  color: #cf765f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hellbreak-game-action.invite { display: none !important; grid-column: 1 / -1; }
.hellbreak-game-action.invite.is-visible { display: flex !important; }
.hellbreak-inline-notice,
.hellbreak-inline-error { margin-top: 11px; padding: 10px 12px; border-radius: 7px; font-size: 13px; }
.hellbreak-inline-notice { color: var(--on-success); background: var(--success-surface); }
.hellbreak-inline-error { color: var(--on-danger); background: var(--danger-surface); }
.hellbreak-inline-notice[hidden],
.hellbreak-inline-error[hidden] { display: none; }

.hellbreak-info-panel { display: flex; flex-direction: column; }
.hellbreak-info-tabs {
  display: grid;
  grid-template-columns: minmax(100px, 140px);
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hb-border);
}
.hellbreak-info-tabs span { padding: 9px 6px; color: var(--hb-muted); text-align: center; font-size: 13px; font-weight: 700; }
.hellbreak-info-tabs .is-active { border: 1px solid var(--hb-gold); border-radius: 7px; color: var(--text); }
.hellbreak-welcome { padding: 15px 0 17px; border-bottom: 1px solid var(--border); }
.hellbreak-welcome h2 { font-size: 29px; }
.hellbreak-welcome p { margin: 16px 0 0; color: var(--hb-muted); line-height: 1.5; }
.hellbreak-tip {
  position: relative;
  margin: 16px 0;
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(var(--border-rgb, 255, 238, 216), .02);
}
.hellbreak-eyebrow { display: block; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hellbreak-tip p { margin: 18px 0 0; color: var(--text-muted); line-height: 1.6; }
.hellbreak-quick-reference h3 { margin: 0 0 12px; color: var(--text); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.hellbreak-quick-reference > div { display: grid; grid-template-columns: 55px 1fr; align-items: center; gap: 12px; margin-top: 8px; color: var(--text-muted); }
.hellbreak-quick-reference kbd { padding: 4px 8px; border: 1px solid var(--border); border-radius: 5px; color: var(--text); background: var(--surface-sunken); text-align: center; }
.disclaimer {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 4px;
  padding: 3px 0;
}
.disclaimer p { font-size: 10.5px; line-height: 1.45; }

body.hellbreak-picker-open { overflow: hidden; }
.hellbreak-deck-picker { position: fixed; inset: 0; z-index: 9998; display: none; place-items: center; padding: 20px; }
.hellbreak-deck-picker.is-open { display: grid; }
.hellbreak-deck-picker-backdrop {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--overlay-scrim) !important;
  backdrop-filter: blur(5px);
}
.hellbreak-deck-picker-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: min(760px, 88vh);
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .62);
}
.hellbreak-deck-picker-dialog h2 { margin: 7px 0 5px; font-family: Georgia, serif; font-size: 27px; }
.hellbreak-deck-picker-dialog > p { margin: 0 0 18px; color: var(--text-muted); }
.hellbreak-deck-picker-close {
  position: absolute !important;
  top: 12px;
  right: 14px;
  padding: 3px 9px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text) !important;
  font-size: 28px;
}
.hellbreak-picker-group[hidden] { display: none; }
.hellbreak-picker-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.hellbreak-picker-tabs button {
  position: relative;
  padding: 0 2px 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
  font-weight: 700;
}
.hellbreak-picker-tabs button::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}
.hellbreak-picker-tabs button.is-active { color: var(--text) !important; }
.hellbreak-picker-tabs button.is-active::after { background: var(--accent); }
.hellbreak-picker-group h3 { margin: 0 0 10px; color: var(--accent); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hellbreak-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: min(560px, 60vh);
  padding: 2px 8px 2px 2px;
  overflow-y: auto;
}
button.hellbreak-picker-option {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 92px;
  padding: 8px 12px !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  background: rgba(var(--border-rgb, 255, 238, 216), .025) !important;
  box-shadow: none !important;
  color: var(--text) !important;
  text-align: left;
  white-space: normal;
  filter: none !important;
  transform: none !important;
}
button.hellbreak-picker-option:hover,
button.hellbreak-picker-option.is-selected { border-color: var(--accent) !important; background: rgba(var(--accent-rgb, 216, 179, 106), .07) !important; }
.hellbreak-picker-option > span:nth-child(2) { min-width: 0; }
.hellbreak-picker-option strong,
.hellbreak-picker-option small { display: block; }
.hellbreak-picker-option strong { overflow: hidden; text-overflow: ellipsis; color: var(--text); font-size: 15px; }
.hellbreak-picker-option small { margin-top: 5px; color: var(--text-muted); }
.hellbreak-picker-art { position: relative; width: 62px; height: 72px; }
.hellbreak-picker-art img { position: absolute; top: 3px; left: 16px; width: 46px; height: 64px; object-fit: cover; border: 1px solid var(--border); border-radius: 5px; }
.hellbreak-picker-art img:first-child { z-index: 1; left: 0; transform: rotate(-3deg); }
.hellbreak-picker-art img:last-child { transform: rotate(4deg); }
.hellbreak-picker-check { display: none; place-items: center; width: 34px; height: 34px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); }
.hellbreak-picker-option.is-selected .hellbreak-picker-check { display: grid; }
.hellbreak-picker-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--border); border-radius: 8px; color: var(--text-muted); text-align: center; }

.hellbreak-button { display: inline-flex; align-items: center; justify-content: center; padding: var(--btn-pad); border: var(--btn-bw) solid var(--btn-border); border-radius: var(--btn-radius); color: var(--btn-text) !important; background: var(--btn-surface); text-decoration: none; font-weight: 700; }
.hellbreak-button.secondary { background: var(--surface-raised); border-color: var(--border); }
.hellbreak-modal[hidden] { display: none; }
.hellbreak-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; }
.hellbreak-modal-backdrop { position: absolute; inset: 0; background: rgba(4, 2, 5, .82); backdrop-filter: blur(5px); }
.hellbreak-modal-dialog { position: relative; width: min(500px, 100%); padding: 30px; border: 1px solid var(--hb-border); border-radius: 14px; background: var(--surface-raised); text-align: center; box-shadow: 0 30px 90px #000; }
.hellbreak-modal-close { position: absolute; top: 9px; right: 12px; border: 0; color: var(--text-muted); background: none; font-size: 28px; cursor: pointer; }
.hellbreak-modal-mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; color: var(--btn-text); background: var(--btn-surface); font-size: 25px; font-weight: 900; }
.hellbreak-modal-dialog h2 { margin: 0 0 8px; }
.hellbreak-modal-dialog p { color: var(--hb-muted); }
.hellbreak-invite-wrap { display: flex; gap: 8px; margin: 17px 0; }
.hellbreak-invite-wrap[hidden] { display: none; }
.hellbreak-invite-wrap input { min-width: 0; flex: 1; padding: 10px; }
.hellbreak-invite-wrap button { padding: 0 14px; }

@media (max-width: 1400px) {
  .hellbreak-menu-grid { grid-template-columns: minmax(250px, .7fr) minmax(570px, 1.65fr); }
  .hellbreak-info-panel { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .home-header { height: auto; margin-top: 0; }
  .hellbreak-shell { width: min(100% - 24px, 720px); }
  .hellbreak-menu-grid { grid-template-columns: 1fr; min-height: 0; }
  .hellbreak-play-panel { grid-row: 1; }
  .hellbreak-active-panel { grid-row: 2; min-height: 420px; }
  .hellbreak-info-panel { grid-column: auto; }
  .hellbreak-selected-deck { grid-template-columns: 130px 1fr 52px; }
}

@media (max-width: 620px) {
  .hellbreak-panel { padding: 16px; }
  .hellbreak-workspace-heading { display: block; }
  .hellbreak-workspace-heading span { display: block; margin-top: 7px; }
  .hellbreak-library-heading { align-items: flex-start; flex-direction: column; }
  .hellbreak-selected-deck { grid-template-columns: 92px 1fr 42px; padding: 12px; }
  .hellbreak-deck-art { height: 96px; }
  .hellbreak-deck-art img { width: 57px; height: 84px; left: 14px; }
  .hellbreak-deck-art img:first-child { left: 0; }
  .hellbreak-selected-check { width: 38px; height: 38px; font-size: 19px; }
  .hellbreak-game-actions { grid-template-columns: 1fr 1fr; }
  .hellbreak-game-action.invite { grid-column: 1 / -1; }
  .hellbreak-info-tabs span { font-size: 12px; }
  .hellbreak-selected-actions { grid-column: 1 / -1; }
  .hellbreak-deck-picker-dialog { padding: 20px 14px; }
  .hellbreak-picker-grid { grid-template-columns: 1fr; }
  button.hellbreak-picker-option { grid-template-columns: 72px 1fr 34px; padding: 8px 10px !important; }
  .hellbreak-active-game { align-items: flex-start; flex-direction: column; }
  .hellbreak-spectate-actions { width: 100%; }
  .hellbreak-spectate-actions button { flex: 1; }
}

/* northbeach.gg menu identity -------------------------------------------------
   The Hellbreak engine remains underneath; the public-facing place is North Beach. */
:root {
  --surface: #061014;
  --surface-raised: rgba(7, 18, 22, .89);
  --surface-sunken: rgba(3, 11, 14, .94);
  --border: rgba(157, 188, 181, .2);
  --card-border: rgba(157, 188, 181, .28);
  --text: #e9e8df;
  --text-muted: #99a9a7;
  --accent: #d6a253;
  --accent-strong: #efc574;
  --on-accent: #102024;
  --danger: #b75843;
  --danger-surface: #301a18;
  --on-danger: #ffd2c8;
  --success: #6fa99d;
  --success-surface: #102b2a;
  --on-success: #c5e8df;
  --btn-surface: linear-gradient(180deg, rgba(37, 65, 68, .96), rgba(13, 34, 38, .96));
  --btn-fill: var(--btn-surface);
  --btn-border: rgba(214, 162, 83, .42);
  --btn-hover-surface: linear-gradient(180deg, rgba(51, 82, 83, .98), rgba(18, 45, 49, .98));
  --btn-hover-border: rgba(239, 197, 116, .7);
  --accent-rgb: 214, 162, 83;
  --danger-rgb: 183, 88, 67;
  --text-rgb: 233, 232, 223;
  --border-rgb: 157, 188, 181;
  --overlay-scrim: rgba(2, 9, 12, .82);
}

html { background: #061014; }
body {
  position: relative;
  background:
    linear-gradient(180deg, rgba(2, 9, 13, .14) 0, rgba(2, 10, 13, .27) 44%, rgba(2, 8, 10, .58) 100%),
    linear-gradient(90deg, rgba(3, 11, 14, .24), transparent 38%, rgba(3, 10, 13, .18)),
    url("../assets/north-beach-menu-dusk-v2.png") center bottom / cover fixed no-repeat;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .21;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.home-header {
  height: 82px;
  margin: -10px 0 0;
  padding: 12px 0 18px 50px;
}
.home-header .title { position: relative; margin-top: 0; }
.home-header .title::before {
  content: "NORTH BEACH  /  COASTAL DISTRICT 09";
  display: block;
  margin-bottom: 3px;
  color: rgba(214, 162, 83, .82);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .28em;
}
.home-header .title h1 {
  margin: 0;
  color: #f0eee5;
  font-size: clamp(31px, 3.3vw, 50px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .96;
  text-transform: lowercase;
  text-shadow: 0 4px 24px rgba(0, 10, 15, .7);
}
.home-header .title h1::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 9px; border-radius: 50%; background: #b75843; box-shadow: 0 0 14px rgba(183, 88, 67, .65); vertical-align: .25em; }
.home-header .title p { margin-top: 7px; color: rgba(204, 214, 207, .7); font-size: 11px; letter-spacing: .17em; text-transform: uppercase; }

.nav-bar-user,
.nav-bar-links { border-color: rgba(157, 188, 181, .16) !important; background: rgba(3, 11, 14, .72) !important; backdrop-filter: blur(16px); }
.nav-bar-user .nav-item-icon,
.nav-bar-links img { filter: sepia(.15) saturate(.6); }
.hellbreak-replay-intro { display: none; }
.nav-bar-user .rightnav .hellbreak-replay-intro {
  display: flex !important;
  height: 50px;
  align-items: center;
  gap: 9px;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--text) !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transform: none !important;
}
.nav-bar-user .rightnav .hellbreak-replay-intro:hover { color: var(--accent-strong) !important; }
.nav-bar-user .rightnav .hellbreak-replay-intro > span { color: var(--accent); font-size: 20px; line-height: 1; }
.nav-bar-user .rightnav .hellbreak-replay-intro strong { font-size: 16px; }

.hellbreak-shell { margin-top: 4px; }
.hellbreak-menu-grid { gap: 14px; }
.hellbreak-panel {
  position: relative;
  border-color: rgba(157, 188, 181, .27);
  border-radius: 2px;
  background: linear-gradient(155deg, rgba(9, 24, 28, .92), rgba(3, 13, 17, .91));
  box-shadow: 0 24px 65px rgba(0, 7, 10, .48), inset 0 1px rgba(225, 235, 228, .035);
  backdrop-filter: blur(15px) saturate(.8);
}
.hellbreak-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 58px;
  height: 1px;
  background: #b75843;
  box-shadow: 0 0 12px rgba(183, 88, 67, .4);
}
.hellbreak-panel-heading,
.hellbreak-workspace-heading,
.hellbreak-library-heading,
.hellbreak-library-tabs,
.hellbreak-selected-heading,
.hellbreak-ready-label,
.hellbreak-info-tabs,
.hellbreak-welcome { border-color: rgba(157, 188, 181, .16); }
.hellbreak-panel-heading h3,
.hellbreak-library-heading h3,
.hellbreak-ready-label,
.hellbreak-selected-heading,
.hellbreak-quick-reference h3 { letter-spacing: .13em; }
.hellbreak-heading-icon,
.hellbreak-action-icon { color: #d6a253; }
.hellbreak-panel-heading h3 strong { border: 1px solid rgba(214, 162, 83, .45); color: #e9d1a2; background: rgba(214, 162, 83, .1); }
.hellbreak-icon-button { border: 1px solid rgba(157, 188, 181, .18); border-radius: 50%; color: #a9c0bb; }

.hellbreak-radar-mark {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px !important;
  border: 1px solid rgba(157, 188, 181, .29);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 162, 83, .8) 0 2px, transparent 3px 16px, rgba(157, 188, 181, .16) 17px 18px, transparent 19px 29px, rgba(157, 188, 181, .12) 30px 31px, transparent 32px);
}
.hellbreak-radar-mark::before { content: ""; position: absolute; top: 37px; left: 37px; width: 31px; height: 1px; background: linear-gradient(90deg, rgba(214, 162, 83, .8), transparent); transform-origin: left center; transform: rotate(-38deg); }
.hellbreak-radar-mark::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; border-right: 1px solid rgba(214, 162, 83, .25); transform: rotate(-38deg); }
.hellbreak-active-empty strong { font-family: Georgia, serif; font-size: 18px; font-weight: 400; }
.hellbreak-active-empty small { max-width: 220px; margin-right: auto; margin-left: auto; }

.hellbreak-workspace-heading h2,
.hellbreak-welcome h2,
.hellbreak-selected-copy strong,
.hellbreak-deck-picker-dialog h2 { font-weight: 400; letter-spacing: -.02em; }
.hellbreak-workspace-heading h2 { color: #ede9dd; font-size: 22px; }
.hellbreak-workspace-heading span { font-size: 13px; letter-spacing: .03em; }
.hellbreak-create-deck { border-radius: 2px; }
.hellbreak-selected-deck { border-color: rgba(157, 188, 181, .23); border-left-color: #b75843; border-radius: 2px; background: linear-gradient(90deg, rgba(183, 88, 67, .065), rgba(157, 188, 181, .025)); }
.hellbreak-selected-check { border-color: rgba(214, 162, 83, .6); color: #efc574; }
.hellbreak-game-action { border-radius: 2px; background: rgba(11, 29, 33, .82); }
.hellbreak-game-action.primary { border-color: rgba(183, 88, 67, .72); background: linear-gradient(180deg, rgba(114, 50, 41, .94), rgba(70, 31, 29, .94)); }
.hellbreak-game-action small { color: #8ea09d; }

.hellbreak-info-tabs { grid-template-columns: minmax(130px, 160px); }
.hellbreak-info-tabs .is-active { border-color: rgba(214, 162, 83, .48); border-radius: 1px; color: #e8dfcc; }
.hellbreak-station-id { display: block; margin-bottom: 10px; color: #b75843; font-size: 9px; font-weight: 800; letter-spacing: .22em; }
.hellbreak-welcome h2 { color: #efede3; font-size: 32px; line-height: 1.04; }
.hellbreak-welcome p { max-width: 340px; }
.hellbreak-tip { border-color: rgba(157, 188, 181, .18); border-radius: 2px; background: rgba(2, 11, 14, .45); }
.hellbreak-tip::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: rgba(183, 88, 67, .75); }
.hellbreak-eyebrow { color: #d8b46e; }
.hellbreak-eyebrow i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #b75843; box-shadow: 0 0 9px rgba(183, 88, 67, .7); }
.hellbreak-tip p strong { color: #d5d8d0; font-weight: 500; }
.hellbreak-quick-reference kbd { border-radius: 1px; background: rgba(3, 12, 15, .72); }
.disclaimer { color: rgba(202, 213, 207, .62); text-shadow: 0 2px 8px #02090b; }

.hellbreak-deck-picker-dialog,
.hellbreak-modal-dialog { border-radius: 2px; background: linear-gradient(155deg, rgba(9, 24, 28, .98), rgba(3, 13, 17, .98)); }
.hellbreak-modal-mark { border: 1px solid rgba(214, 162, 83, .5); color: #efc574; background: transparent; font-size: 14px; letter-spacing: .08em; }

@media (max-width: 900px) {
  body { background-position: 58% bottom; }
  .home-header { height: auto; padding: 68px 0 18px 22px; }
  .home-header .title::before { font-size: 8px; }
  .nav-bar-user .NavBarItem { padding-right: 8px !important; padding-left: 8px !important; font-size: 14px; white-space: nowrap; }
  .nav-bar-user .rightnav .hellbreak-replay-intro { width: auto; height: 44px; justify-content: flex-start; gap: 5px; padding: 0 7px !important; }
  .nav-bar-user .rightnav .hellbreak-replay-intro > span { font-size: 16px; }
  .nav-bar-user .rightnav .hellbreak-replay-intro strong { font-size: 12px; }
}

@media (max-width: 620px) {
  .hellbreak-game-action { min-width: 0; gap: 6px; padding-right: 5px; padding-left: 5px; }
  .hellbreak-game-action > span:last-child { min-width: 0; }
  .hellbreak-game-action strong { font-size: 11px; white-space: nowrap; }
  .hellbreak-game-action small { font-size: 9px; white-space: nowrap; }
  .hellbreak-action-icon { flex: 0 0 auto; font-size: 17px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hellbreak-radar-mark::before { animation: nb-menu-radar 8s linear infinite; }
  @keyframes nb-menu-radar { to { transform: rotate(322deg); } }
}
