/* Isolated welcome screen. Setup steps and the game keep their existing styles. */
body.bylo-ne-bylo-page .bnb-welcome {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(116, 218, 180, .15);
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 5%, rgba(77, 229, 169, .13), transparent 34%),
    radial-gradient(circle at 94% 90%, rgba(255, 102, 154, .12), transparent 34%),
    linear-gradient(145deg, rgba(8, 25, 27, .98), rgba(9, 15, 25, .99) 54%, rgba(29, 12, 25, .98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .035);
  isolation: isolate;
}

body.bylo-ne-bylo-page .bnb-welcome::before,
body.bylo-ne-bylo-page .bnb-welcome::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

body.bylo-ne-bylo-page .bnb-welcome::before {
  width: 42%;
  height: 1px;
  top: 0;
  left: 8%;
  background: linear-gradient(90deg, transparent, rgba(88, 231, 177, .72), transparent);
  box-shadow: 0 0 28px rgba(88, 231, 177, .34);
}

body.bylo-ne-bylo-page .bnb-welcome::after {
  width: 320px;
  height: 320px;
  right: -235px;
  bottom: -220px;
  border: 1px solid rgba(255, 104, 156, .18);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(255, 76, 141, .08);
}

.bnb-welcome-exit {
  position: absolute;
  z-index: 10;
  top: 18px;
  right: 18px;
  display: inline-flex;
  min-width: 68px;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(204, 229, 220, .13);
  border-radius: 11px;
  background: rgba(31, 48, 51, .6);
  color: rgba(237, 248, 244, .78);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.bnb-welcome-exit:hover,
.bnb-welcome-exit:focus-visible {
  border-color: rgba(93, 226, 176, .4);
  background: rgba(35, 70, 63, .78);
  color: #fff;
}

.bnb-welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(400px, .94fr);
  gap: 18px;
  align-items: stretch;
}

.bnb-welcome-story,
.bnb-welcome-controls {
  position: relative;
  min-width: 0;
  min-height: 500px;
  border: 1px solid rgba(185, 225, 210, .1);
  border-radius: 26px;
}

.bnb-welcome-story {
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr) auto;
  gap: 16px;
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 60%, rgba(64, 224, 166, .09), transparent 34%),
    linear-gradient(160deg, rgba(12, 39, 39, .74), rgba(13, 17, 29, .9) 56%, rgba(36, 16, 31, .72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.bnb-welcome-story::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #61e4b2, rgba(91, 223, 174, .18) 48%, rgba(255, 104, 158, .72) 82%, transparent 98%);
  box-shadow: 0 0 28px rgba(83, 226, 172, .32);
}

.bnb-welcome-story::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .2;
  background: repeating-linear-gradient(180deg, transparent 0 41px, rgba(255, 255, 255, .045) 41px 42px);
  pointer-events: none;
}

.bnb-welcome-copy {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: start;
  gap: 9px;
  padding-right: 58px;
}

.bnb-welcome-copy .hero-panel__eyebrow {
  margin: 0;
  color: #72e5b9;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bnb-welcome-copy h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 9px;
  margin: 0;
  color: #f7fffc;
  font-size: clamp(2.55rem, 4vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -.058em;
  line-height: .96;
}

.bnb-welcome-copy h1 span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(98, 229, 179, .33);
  border-radius: 999px;
  background: rgba(74, 224, 166, .08);
  color: #78e7bc;
  font-size: .22em;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

.bnb-welcome-copy > p:not(.hero-panel__eyebrow) {
  max-width: 53ch;
  margin: 0;
  color: rgba(210, 229, 222, .72);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.48;
}

.bnb-welcome-deck {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 174px;
  place-items: center;
}

.bnb-welcome-deck::before,
.bnb-welcome-deck::after {
  content: '';
  position: absolute;
  width: min(76%, 390px);
  height: 132px;
  border-radius: 21px;
  background: rgba(8, 14, 23, .68);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .2);
}

.bnb-welcome-deck::before {
  border: 1px solid rgba(89, 226, 174, .2);
  transform: translate(-28px, 3px) rotate(-5deg);
}

.bnb-welcome-deck::after {
  border: 1px solid rgba(255, 104, 158, .2);
  transform: translate(28px, 3px) rotate(5deg);
}

.bnb-welcome-card {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(88%, 430px);
  min-height: 154px;
  align-content: center;
  gap: 12px;
  padding: 17px 19px;
  border: 1px solid rgba(181, 222, 207, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(75, 222, 166, .11), transparent 39%),
    radial-gradient(circle at 100% 100%, rgba(255, 99, 154, .1), transparent 38%),
    rgba(7, 13, 23, .94);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .035);
  transform: rotate(-.7deg);
  backdrop-filter: blur(16px);
}

.bnb-welcome-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bnb-welcome-card__top img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(115, 228, 184, .23);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(35, 173, 120, .16);
}

.bnb-welcome-card__top span {
  color: #76dfb8;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.15;
  text-transform: uppercase;
}

.bnb-welcome-card > strong {
  max-width: 31ch;
  color: #f9fffd;
  font-size: 1.03rem;
  font-weight: 900;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.bnb-welcome-card__answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bnb-welcome-card__answers span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 11px;
  font-size: .66rem;
  font-weight: 900;
  line-height: 1;
}

.bnb-welcome-card__answers span:first-child {
  border: 1px solid rgba(89, 227, 174, .28);
  background: rgba(72, 224, 166, .1);
  color: #7ae8bd;
}

.bnb-welcome-card__answers span:last-child {
  border: 1px solid rgba(255, 112, 164, .27);
  background: rgba(255, 98, 153, .09);
  color: #ff8db5;
}

.bnb-welcome-facts {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bnb-welcome-facts > span {
  display: grid;
  min-height: 62px;
  place-content: center;
  gap: 2px;
  padding: 8px;
  border: 1px solid rgba(185, 225, 210, .1);
  border-radius: 15px;
  background: rgba(255, 255, 255, .023);
  text-align: center;
}

.bnb-welcome-facts strong {
  color: #f7fffc;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.bnb-welcome-facts small {
  color: rgba(202, 222, 215, .58);
  font-size: .63rem;
  font-weight: 700;
  line-height: 1.15;
}

.bnb-welcome-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 100, 154, .08), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(69, 222, 165, .06), transparent 40%),
    linear-gradient(160deg, rgba(23, 29, 39, .86), rgba(10, 15, 24, .95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.bnb-welcome-controls__head {
  display: grid;
  gap: 4px;
}

.bnb-welcome-controls__head strong {
  color: #f8fffc;
  font-size: 1.23rem;
  font-weight: 900;
  line-height: 1.12;
}

.bnb-welcome-controls__head span {
  color: rgba(204, 221, 215, .6);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.35;
}

.bnb-welcome-options {
  display: grid;
  gap: 9px;
}

.bnb-welcome-option {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid rgba(186, 219, 207, .11);
  border-radius: 18px;
  background: rgba(255, 255, 255, .024);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.bnb-welcome-option::after {
  content: '';
  justify-self: end;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border: 1px solid rgba(212, 226, 220, .28);
  border-radius: 50%;
  background: rgba(5, 10, 16, .4);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.bnb-welcome-option:hover,
.bnb-welcome-option:focus-visible {
  border-color: rgba(88, 226, 173, .34);
  background: rgba(69, 222, 165, .055);
  transform: translateY(-1px);
}

.bnb-welcome-option:hover::after,
.bnb-welcome-option:focus-visible::after {
  border-color: rgba(112, 227, 182, .68);
}

.bnb-welcome-option.is-selected {
  border-color: rgba(84, 225, 171, .34);
  background:
    radial-gradient(circle at 100% 50%, rgba(72, 224, 166, .11), transparent 44%),
    linear-gradient(100deg, rgba(21, 67, 57, .42), rgba(25, 31, 42, .72));
  box-shadow: inset 3px 0 0 rgba(83, 226, 172, .76), 0 12px 30px rgba(0, 0, 0, .12);
}

.bnb-welcome-option.is-selected::after {
  border-color: #69dfb0;
  background: #69dfb0;
  box-shadow: inset 0 0 0 5px #15231f, 0 0 0 3px rgba(85, 226, 173, .1);
}

.bnb-welcome-option__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(184, 221, 207, .12);
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
  color: rgba(202, 224, 215, .7);
}

.bnb-welcome-option--solo .bnb-welcome-option__icon {
  border-color: rgba(95, 227, 177, .27);
  background: rgba(66, 220, 162, .08);
  color: #71e2b5;
}

.bnb-welcome-option--chat .bnb-welcome-option__icon {
  border-color: rgba(255, 122, 171, .22);
  background: rgba(255, 100, 156, .065);
  color: #ff8fb6;
}

.bnb-welcome-option.is-selected .bnb-welcome-option__icon {
  border-color: rgba(95, 227, 177, .27);
  background: rgba(66, 220, 162, .08);
  color: #71e2b5;
}

.bnb-welcome-continue {
  width: 100%;
  min-height: 56px;
  margin-top: auto;
  padding: 12px 20px;
  border: 1px solid rgba(255, 226, 115, .62);
  border-radius: 17px;
  background: linear-gradient(180deg, #ffd55b, #e7aa23);
  box-shadow: 0 15px 34px rgba(223, 161, 27, .18), inset 0 1px 0 rgba(255, 255, 255, .5);
  color: #30200a;
  font: inherit;
  font-size: .94rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.bnb-welcome-continue:hover,
.bnb-welcome-continue:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(223, 161, 27, .24), inset 0 1px 0 rgba(255, 255, 255, .58);
}

.bnb-welcome-option__icon svg,
.bnb-welcome-join svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bnb-welcome-option__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bnb-welcome-option__copy strong {
  color: #f8fffc;
  font-size: .93rem;
  font-weight: 900;
  line-height: 1.15;
}

.bnb-welcome-option__copy small {
  color: rgba(202, 220, 213, .61);
  font-size: .67rem;
  font-weight: 600;
  line-height: 1.3;
}

.bnb-welcome-join {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  margin-top: auto;
  padding: 8px 12px;
  border: 1px solid rgba(186, 219, 207, .085);
  border-radius: 15px;
  background: rgba(5, 11, 17, .28);
  color: rgba(208, 224, 218, .66);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.bnb-welcome-join::after {
  content: '\203A';
  justify-self: end;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.bnb-welcome-join > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
}

.bnb-welcome-join svg {
  width: 20px;
  height: 20px;
}

.bnb-welcome-join > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.bnb-welcome-join strong {
  color: rgba(248, 255, 252, .82);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.12;
}

.bnb-welcome-join small {
  color: rgba(198, 216, 209, .46);
  font-size: .62rem;
  font-weight: 600;
  line-height: 1.2;
}

.bnb-welcome-join:hover,
.bnb-welcome-join:focus-visible {
  border-color: rgba(255, 117, 167, .25);
  background: rgba(255, 101, 157, .04);
  color: #ff8fb6;
}

@media (max-width: 980px) {
  .bnb-welcome-layout {
    grid-template-columns: 1fr;
  }

  .bnb-welcome-story,
  .bnb-welcome-controls {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  body.bylo-ne-bylo-page .bnb-welcome {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px;
    border-radius: 23px;
  }

  .bnb-welcome-exit {
    top: 12px;
    right: 12px;
    min-width: 62px;
    min-height: 29px;
    padding: 5px 8px;
    border-radius: 10px;
    font-size: .64rem;
  }

  .bnb-welcome-layout {
    gap: 11px;
  }

  .bnb-welcome-story {
    grid-template-rows: auto 118px auto;
    gap: 10px;
    padding: 3px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .bnb-welcome-story::before,
  .bnb-welcome-story::after {
    display: none;
  }

  .bnb-welcome-copy {
    gap: 7px;
    padding-right: 58px;
  }

  .bnb-welcome-copy .hero-panel__eyebrow {
    max-width: 31ch;
    font-size: .58rem;
    letter-spacing: .14em;
  }

  .bnb-welcome-copy h1 {
    gap: 2px 7px;
    font-size: clamp(2.05rem, 9.2vw, 2.46rem);
    line-height: .95;
  }

  .bnb-welcome-copy h1 span {
    min-height: 20px;
    padding: 3px 6px;
    font-size: .21em;
  }

  .bnb-welcome-copy > p:not(.hero-panel__eyebrow) {
    font-size: .72rem;
    line-height: 1.38;
  }

  .bnb-welcome-deck {
    min-height: 118px;
  }

  .bnb-welcome-deck::before,
  .bnb-welcome-deck::after {
    width: 72%;
    height: 88px;
    border-radius: 15px;
  }

  .bnb-welcome-deck::before {
    transform: translate(-18px, 2px) rotate(-4deg);
  }

  .bnb-welcome-deck::after {
    transform: translate(18px, 2px) rotate(4deg);
  }

  .bnb-welcome-card {
    width: 85%;
    min-height: 104px;
    gap: 7px;
    padding: 10px 11px;
    border-radius: 16px;
  }

  .bnb-welcome-card__top {
    gap: 7px;
  }

  .bnb-welcome-card__top img {
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }

  .bnb-welcome-card__top span {
    font-size: .45rem;
    letter-spacing: .1em;
  }

  .bnb-welcome-card > strong {
    font-size: .68rem;
    line-height: 1.22;
  }

  .bnb-welcome-card__answers {
    gap: 6px;
  }

  .bnb-welcome-card__answers span {
    min-height: 25px;
    border-radius: 8px;
    font-size: .52rem;
  }

  .bnb-welcome-facts {
    gap: 6px;
  }

  .bnb-welcome-facts > span {
    min-height: 46px;
    padding: 6px;
    border-radius: 12px;
  }

  .bnb-welcome-facts strong {
    font-size: .81rem;
  }

  .bnb-welcome-facts small {
    font-size: .51rem;
  }

  .bnb-welcome-controls {
    gap: 10px;
    padding: 13px;
    border-radius: 20px;
  }

  .bnb-welcome-controls__head {
    gap: 2px;
  }

  .bnb-welcome-controls__head strong {
    font-size: 1rem;
  }

  .bnb-welcome-controls__head span {
    font-size: .64rem;
  }

  .bnb-welcome-options {
    gap: 7px;
  }

  .bnb-welcome-option {
    grid-template-columns: 42px minmax(0, 1fr) 22px;
    gap: 10px;
    min-height: 62px;
    padding: 8px 10px;
    border-radius: 15px;
  }

  .bnb-welcome-option::after {
    width: 22px;
    height: 22px;
  }

  .bnb-welcome-option__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .bnb-welcome-option__icon svg {
    width: 22px;
    height: 22px;
  }

  .bnb-welcome-option__copy strong {
    font-size: .79rem;
  }

  .bnb-welcome-option__copy small {
    font-size: .59rem;
  }

  .bnb-welcome-join {
    min-height: 45px;
    margin-top: 0;
    padding: 6px 10px;
    border-radius: 13px;
  }

  .bnb-welcome-join > span:first-child {
    width: 32px;
    height: 32px;
  }

  .bnb-welcome-join strong {
    font-size: .72rem;
  }

  .bnb-welcome-join small {
    font-size: .55rem;
  }

  .bnb-welcome-continue {
    min-height: 52px;
    padding: 10px 16px;
    border-radius: 15px;
    font-size: .86rem;
  }
}

@media (max-width: 360px) {
  body.bylo-ne-bylo-page .bnb-welcome {
    padding: 13px;
  }

  .bnb-welcome-copy {
    padding-right: 54px;
  }

  .bnb-welcome-copy h1 {
    font-size: 1.88rem;
  }

  .bnb-welcome-copy > p:not(.hero-panel__eyebrow) {
    font-size: .67rem;
  }

  .bnb-welcome-card {
    width: 88%;
  }

  .bnb-welcome-controls {
    padding: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bnb-welcome-option,
  .bnb-welcome-option::after,
  .bnb-welcome-join,
  .bnb-welcome-continue {
    transition: none;
  }
}
