/* Giftcodes brand tokens. Shared by the lobby and embedded game pool. */
.lobby-body,
.betting-panel {
  --brand: #b60100;
  --grand-brand: #3d0101;
  --highlight: #6ee7b7;
  --text: #fff;
  --muted: rgb(255 255 255 / 68%);
  --line: rgb(255 255 255 / 20%);
  --panel: #000;
  color: var(--text);
}
.lobby-body {
  background: radial-gradient(ellipse at 70% 0, #3d0101 0, #000 43%);
}
.lobby-body .masthead {
  max-width: 1440px;
  background: linear-gradient(180deg, rgb(255 255 255 / 5%), transparent);
  border-bottom-color: rgb(255 255 255 / 17%);
}
.lobby-body .masthead nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 650;
}
.lobby-body .brand small {
  color: rgb(255 255 255 / 60%);
}
.lobby-body .crest {
  color: var(--brand);
}
.lobby-page {
  width: 100%;
  max-width: 1320px;
  margin: auto;
  padding: 0 32px 20px;
}
.lobby-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 410px;
  padding: 64px 0 46px;
  isolation: isolate;
}
.lobby-header::before {
  content: '';
  position: absolute;
  inset: 0 -32px;
  z-index: -1;
  opacity: 0.32;
  background:
    linear-gradient(90deg, #000 5%, transparent 85%),
    url('./art/crown-battlefield.svg');
  background-size: cover;
  background-position: center right;
  pointer-events: none;
}
.lobby-hero-copy {
  max-width: 740px;
}
.lobby-header .eyebrow,
.lobby-section-heading .eyebrow,
.lobby-create .eyebrow,
.betting-panel .eyebrow {
  color: rgb(255 255 255 / 62%);
  letter-spacing: 2.5px;
}
.lobby-header h1 {
  font:
    400 clamp(42px, 5vw, 66px)/1.05 Georgia,
    serif;
  letter-spacing: -1.8px;
  color: #fff;
  margin: 0 0 22px;
}
.lobby-description {
  color: rgb(255 255 255 / 76%);
  line-height: 1.8;
  font-size: 15px;
  max-width: 650px;
}
.lobby-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.lobby-hero-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 13px 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.lobby-body .primary,
.betting-panel .primary {
  color: #fff;
  background: linear-gradient(180deg, #b60100, #780100);
  border: 1px solid #b60100;
  border-radius: 3px;
  box-shadow: inset 0 1px rgb(255 255 255 / 15%);
}
.lobby-body .primary:hover:not(:disabled),
.betting-panel .primary:hover:not(:disabled) {
  color: #fff;
  background: linear-gradient(180deg, #b60100, #950100);
  border-color: rgb(255 255 255 / 45%);
}
.lobby-body .outline {
  border: 1px solid rgb(255 255 255 / 28%);
  background: rgb(0 0 0 / 20%);
  color: #fff;
}
.lobby-body .outline:hover:not(:disabled) {
  background: rgb(255 255 255 / 7%);
  border-color: rgb(255 255 255 / 55%);
}
.lobby-hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgb(255 255 255 / 53%);
  font-size: 11px;
  margin: 22px 0 0;
}
.lobby-hero-note > span {
  width: 5px;
  height: 5px;
  background: var(--highlight);
  box-shadow: 0 0 12px rgb(110 231 183 / 35%);
}
.lobby-emblem {
  flex: 0 0 220px;
  width: 220px;
  transform: rotate(7deg);
  filter: drop-shadow(0 20px 30px #000);
  margin-right: 30px;
}
.lobby-emblem svg {
  display: block;
  width: 100%;
}
.lobby-how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
  margin-bottom: 45px;
  gap: 22px;
}
.lobby-how > div {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.lobby-step {
  font:
    23px Georgia,
    serif;
  color: rgb(255 255 255 / 27%);
  line-height: 1.4;
}
.lobby-how p {
  margin: 0;
}
.lobby-how strong {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 650;
}
.lobby-how p > span {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.lobby-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.lobby-battle-list {
  min-width: 0;
  scroll-margin-top: 22px;
}
.lobby-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.lobby-section-heading .eyebrow {
  margin-bottom: 8px;
}
.lobby-section-heading h2 {
  margin: 0;
  font:
    30px Georgia,
    serif;
  color: #fff;
}
.lobby-section-mark {
  font-size: 22px;
  color: rgb(255 255 255 / 23%);
}
.lobby-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 17px;
}
.lobby-toolbar button {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 11px;
}
#lobby-message:empty,
#create-message:empty,
.betting-message:empty {
  display: none;
}
#lobby-message:not(:empty) {
  color: #fff;
  background: #3d0101;
  border-left: 3px solid var(--brand);
  padding: 14px;
  font-size: 12px;
  line-height: 1.8;
}
.lobby-matches {
  display: grid;
  gap: 18px;
}
.lobby-match {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 23px;
  background: linear-gradient(180deg, rgb(255 255 255 / 7%), #000);
}
.lobby-match::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 24px;
  width: 3px;
  height: 30px;
  background: var(--brand);
}
.lobby-match-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.lobby-match h2 {
  margin: 0 0 8px;
  font:
    24px/1.3 Georgia,
    serif;
  overflow-wrap: anywhere;
  color: #fff;
}
.lobby-match p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.lobby-match-top p {
  margin-bottom: 12px;
}
.lobby-match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
}
.lobby-match-actions > a,
.lobby-match-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  border-radius: 3px;
}
.lobby-match-actions .primary {
  border-color: var(--brand);
  color: #fff;
}
.lobby-match [data-pool-host] {
  margin-top: 20px;
}
.lobby-match .betting-panel {
  background: linear-gradient(180deg, rgb(255 255 255 / 5%), #000);
  border: 0;
  border-radius: 4px;
  padding: 20px;
  margin: 0;
}
.lobby-empty {
  position: relative;
  border: 1px dashed rgb(255 255 255 / 25%);
  background: linear-gradient(180deg, rgb(255 255 255 / 4%), #000);
  padding: 40px 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.lobby-create {
  position: sticky;
  top: 24px;
  background: linear-gradient(180deg, rgb(255 255 255 / 9%), #000);
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 5px;
}
.lobby-create h2 {
  color: #fff;
  font:
    27px/1.2 Georgia,
    serif;
  margin-bottom: 14px;
}
.lobby-create-intro,
.lobby-account,
.lobby-form p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.lobby-account {
  margin: 16px 0;
}
.lobby-form {
  margin-top: 22px;
  background: linear-gradient(180deg, rgb(255 255 255 / 4%), #000);
  padding: 0;
  border: 0;
}
.lobby-form fieldset {
  min-width: 0;
}
.lobby-form .primary {
  width: 100%;
  min-height: 47px;
  margin-top: 6px;
}
.lobby-no-stake {
  border-left: 2px solid var(--highlight);
  padding-left: 12px;
  margin: 20px 0 16px;
}
.lobby-pool-note {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.lobby-pool-note h3 {
  font-size: 12px;
  color: #fff;
  margin: 0 0 7px;
  font-weight: 650;
}
.lobby-pool-note p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
}
.lobby-footer {
  margin: 50px 0 10px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  align-items: center;
  gap: 25px;
}
.lobby-footer > span {
  color: rgb(255 255 255 / 46%);
  font:
    15px Georgia,
    serif;
  letter-spacing: 2px;
}
.lobby-footer p {
  color: rgb(255 255 255 / 46%);
  font-size: 11px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0;
}
.lobby-footer a {
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  margin-left: auto;
}
.lobby-footer a:hover {
  color: var(--highlight);
}
.betting-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / 7%), #000);
  padding: 22px;
  border-radius: 5px;
  margin: 18px 0;
  min-width: 0;
}
.betting-panel h2 {
  font:
    25px/1.25 Georgia,
    serif;
  margin: 0 0 11px;
  color: #fff;
}
.betting-panel h3 {
  font-size: 14px;
  margin: 18px 0 10px;
  color: #fff;
}
.betting-panel p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.betting-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.betting-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 11px;
}
.betting-status {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid rgb(255 255 255 / 20%);
  background: rgb(255 255 255 / 4%);
  padding: 6px 8px;
  font-size: 9px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgb(255 255 255 / 78%);
  line-height: 1.4;
}
.betting-status.open {
  color: var(--highlight);
  border-color: rgb(110 231 183 / 34%);
  background: rgb(110 231 183 / 7%);
}
.betting-status.open::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--highlight);
  margin-right: 6px;
}
.betting-status.closed,
.betting-status.settled {
  color: rgb(255 255 255 / 72%);
}
.betting-role {
  display: block;
  color: rgb(255 255 255 / 58%);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 15px;
}
.betting-account {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0;
}
.betting-totals {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.betting-totals > div {
  min-width: 0;
}
.betting-totals span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 6px;
}
.betting-totals strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.betting-totals > div:last-child {
  text-align: right;
}
.betting-panel form {
  background: linear-gradient(180deg, rgb(255 255 255 / 3%), #000);
  padding-top: 8px;
}
.betting-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.betting-panel legend {
  color: rgb(255 255 255 / 86%);
  font-size: 12px;
  padding: 0;
  font-weight: 600;
}
.betting-outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 18px;
}
.betting-outcome {
  position: relative;
  display: block;
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid rgb(255 255 255 / 24%);
  background: #000;
  border-radius: 4px;
  cursor: pointer;
}
.betting-outcome:has(input:checked) {
  border-color: var(--highlight);
  background: rgb(110 231 183 / 8%);
  box-shadow: inset 0 0 0 1px rgb(110 231 183 / 20%);
}
.betting-outcome:has(input:disabled) {
  cursor: default;
}
.betting-outcome input {
  accent-color: var(--highlight);
  margin: 0 5px 0 0;
  vertical-align: middle;
}
.betting-outcome strong {
  font-size: 12px;
  font-weight: 650;
  color: #fff;
  overflow-wrap: anywhere;
}
.betting-outcome small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  margin: 7px 0 0 20px;
  overflow-wrap: anywhere;
}
.betting-field {
  display: block;
  color: rgb(255 255 255 / 86%);
  font-size: 12px;
  font-weight: 550;
  margin: 16px 0;
}
.betting-field input,
.betting-field select {
  display: block;
  width: 100%;
  min-height: 46px;
  background: #000;
  border: 1px solid rgb(255 255 255 / 28%);
  color: #fff;
  border-radius: 3px;
  padding: 12px;
  margin-top: 8px;
  font: inherit;
}
.betting-field input:focus,
.betting-field select:focus {
  border-color: var(--highlight);
  outline: 1px solid var(--highlight);
  outline-offset: 1px;
}
.betting-panel button {
  font: inherit;
  cursor: pointer;
  min-height: 42px;
  padding: 10px 13px;
}
.betting-panel .primary {
  width: 100%;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  min-height: 46px;
}
.betting-panel button:disabled {
  opacity: 0.55;
  cursor: default;
}
.betting-panel a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.betting-panel a:hover {
  color: var(--highlight);
}
.betting-projection {
  background: rgb(255 255 255 / 5%);
  padding: 13px;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.8;
  color: rgb(255 255 255 / 78%);
}
.betting-projection strong {
  display: block;
  color: #fff;
  font-weight: 650;
  font-size: 13px;
}
.betting-projection small {
  display: block;
  font-size: 10px;
  line-height: 1.8;
  color: rgb(255 255 255 / 62%);
  margin-top: 4px;
}
.betting-message {
  margin: 14px 0 !important;
  overflow-wrap: anywhere;
}
.betting-message.error {
  color: #fff !important;
  background: #3d0101;
  border-left: 3px solid var(--brand);
  padding: 12px;
}
.betting-review {
  border: 1px solid rgb(255 255 255 / 28%);
  background: linear-gradient(180deg, rgb(255 255 255 / 6%), #000);
  padding: 17px;
  border-radius: 4px;
}
.betting-review h3 {
  margin-top: 0;
}
.betting-review p strong {
  color: #fff;
}
.betting-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 15px;
}
.betting-actions .primary {
  margin: 0;
  width: auto;
}
.betting-actions > a {
  font-size: 11px;
  padding: 10px 5px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}
.betting-my-bets {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.betting-panel .muted {
  font-size: 10px !important;
  color: rgb(255 255 255 / 56%);
}
.betting-panel :is(button, a, input, select):focus-visible,
.lobby-body :is(button, a, input, select):focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
}
.betting-outcome:focus-within {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
}
.betting-panel button:hover:not(:disabled) {
  color: #fff;
}
.lobby-skip {
  position: fixed;
  left: 15px;
  top: -100px;
  padding: 12px 18px;
  background: #fff;
  color: #000;
  z-index: 100;
}
.lobby-skip:focus {
  top: 15px;
}
.lobby-skip:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1000px) {
  .lobby-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
  }
  .lobby-emblem {
    flex-basis: 180px;
    width: 180px;
    margin-right: 0;
  }
  .lobby-header {
    gap: 20px;
  }
  .lobby-create {
    padding: 20px;
  }
}
@media (max-width: 800px) {
  .lobby-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .lobby-create {
    position: static;
    grid-row: 2;
  }
  .lobby-header {
    min-height: 330px;
    padding-top: 45px;
    padding-bottom: 35px;
  }
  .lobby-emblem {
    flex-basis: 145px;
    width: 145px;
  }
  .lobby-header h1 {
    font-size: 46px;
  }
  .lobby-description {
    font-size: 13px;
  }
  .lobby-how {
    gap: 15px;
    margin-bottom: 30px;
  }
  .lobby-how p > span {
    font-size: 11px;
  }
  .lobby-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .lobby-footer p {
    flex-basis: calc(100% - 120px);
  }
  .lobby-footer a {
    margin-left: 0;
  }
}
@media (max-width: 500px) {
  .lobby-body .masthead {
    padding: 16px;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    height: auto;
    min-height: 82px;
  }
  .lobby-body .masthead nav {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .lobby-body .masthead nav a {
    font-size: 11px;
    padding: 9px 12px;
  }
  .lobby-page {
    padding: 0 17px 20px;
  }
  .lobby-header {
    min-height: 0;
    padding: 40px 0 30px;
  }
  .lobby-header::before {
    inset: 0 -17px;
  }
  .lobby-header h1 {
    font-size: 42px;
    letter-spacing: -1px;
  }
  .lobby-emblem {
    position: absolute;
    right: -2px;
    top: 34px;
    width: 85px;
    opacity: 0.19;
    z-index: -1;
  }
  .lobby-header .eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .lobby-description {
    font-size: 13px;
  }
  .lobby-desktop-break {
    display: none;
  }
  .lobby-hero-actions {
    gap: 10px;
  }
  .lobby-hero-actions a {
    min-height: 46px;
    font-size: 10px;
    padding: 12px 14px;
    gap: 12px;
  }
  .lobby-hero-note {
    font-size: 10px;
    line-height: 1.7;
  }
  .lobby-how {
    grid-template-columns: 1fr;
    padding: 20px 0;
    gap: 16px;
  }
  .lobby-how > div {
    align-items: center;
    gap: 13px;
  }
  .lobby-step {
    font-size: 20px;
  }
  .lobby-how strong {
    margin-bottom: 3px;
    font-size: 12px;
  }
  .lobby-how p > span {
    font-size: 11px;
  }
  .lobby-section-heading h2 {
    font-size: 27px;
  }
  .lobby-toolbar {
    font-size: 11px;
  }
  .lobby-toolbar button {
    font-size: 10px;
  }
  .lobby-match {
    padding: 19px 16px;
  }
  .lobby-match h2 {
    font-size: 21px;
  }
  .lobby-match-top {
    gap: 8px;
  }
  .lobby-match-actions {
    gap: 8px;
  }
  .lobby-match-actions > a,
  .lobby-match-actions > button {
    padding: 10px 12px;
    font-size: 10px;
  }
  .lobby-create {
    padding: 22px 19px;
  }
  .lobby-match .betting-panel {
    padding: 16px 12px;
  }
  .betting-panel {
    padding: 18px 15px;
  }
  .betting-panel h2 {
    font-size: 23px;
  }
  .betting-outcomes {
    gap: 8px;
  }
  .betting-outcome {
    padding: 12px 8px;
  }
  .betting-outcome strong {
    font-size: 11px;
  }
  .betting-outcome small {
    font-size: 9px;
    margin-left: 0;
  }
  .betting-totals strong {
    font-size: 15px;
  }
  .betting-account {
    font-size: 10px;
  }
  .betting-review {
    padding: 14px;
  }
  .lobby-footer {
    margin-top: 35px;
  }
  .lobby-footer p {
    flex-basis: 100%;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lobby-body *,
  .betting-panel * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .betting-panel,
  .lobby-page {
    display: none !important;
  }
}
