@font-face {
  font-family: "Blitz Display";
  src: url("/art/blitz-display.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}
:root {
  color-scheme: dark;
  --bb-bg: #100e18;
  --bb-text: #f8f6ff;
  --bb-muted: #bab5c8;
  --bb-line: #393343;
  --bb-lime: #c7ff5b;
  --bb-violet: #c79aff;
  --bb-wrap: 1240px;
  --bb-gutter: clamp(20px, 4.2vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--bb-bg);
  background-image: radial-gradient(ellipse at 59% -40%, #42315458 1%, transparent 64%), radial-gradient(#a09aba13 .85px, transparent .95px);
  background-size: auto, 13px 13px;
  color: var(--bb-text);
  font: 400 16px/1.5 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:where(a, button, input):focus-visible { outline: 3px solid #a5f9ff; outline-offset: 4px; }
[hidden] { display: none !important; }
.bb-header {
  border-bottom: 1px solid #2e2937;
  background: #15121c;
}
.bb-nav, .bb-main, .bb-footinner {
  width: min(calc(100% - var(--bb-gutter) * 2), var(--bb-wrap));
  margin-inline: auto;
}
.bb-nav { min-height: 75px; display: flex; align-items: center; gap: 45px; }
.bb-brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: #f8f5fd; font-weight: 850; font-size: 23px; line-height: 1.05;
  letter-spacing: -.9px; text-decoration: none; white-space: nowrap;
}
.bb-brandmark {
  flex: none; display: inline-grid; width: 35px; height: 35px; place-items: center;
  border-radius: 9px; background: var(--bb-lime); color: #281b36;
  box-shadow: inset 0 -3px 0 #8fb841;
}
.bb-brandmark svg, .bb-brandmark img { display: block; width: 23px; height: 23px; }
.bb-links { display: flex; align-items: center; gap: 5px; }
.bb-links a, .bb-teacher {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; border: 1px solid transparent; border-radius: 7px;
  padding: 7px 14px; color: #c4bed0; font-size: 14px; font-weight: 650;
  line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.bb-links a:hover { color: white; background: #29252f; }
.bb-links .bb-active, .bb-links [aria-current="page"] { color: #d2ff80; background: #2a3322; border-color: #3a492c; }
.bb-links svg, .bb-teacher svg { width: 16px; height: 16px; flex: none; }
.bb-teacher { margin-left: auto; color: #e2ddeb; background: #1b1822; border-color: #494150; }
.bb-teacher:hover { background: #2b2434; border-color: #776889; }
.bb-main { padding-block: clamp(28px, 3.8vw, 55px) 0; }
.bb-deck {
  display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(318px, 1fr);
  align-items: stretch; gap: clamp(15px, 1.65vw, 23px);
}
.bb-feature, .bb-entry { position: relative; min-width: 0; isolation: isolate; border-radius: 16px; overflow: hidden; }
.bb-feature {
  display: flex; align-items: end; min-height: 414px;
  background: #2b1954 url("/art/cipher-city.webp") 53% center / cover no-repeat;
  border: 1px solid #664a85; box-shadow: inset 0 0 0 1px #ad7ef112;
}
.bb-feature::before {
  position: absolute; content: ""; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #100b22e6 0%, #180e2ac9 21%, #190d294f 49%, transparent 75%),
              linear-gradient(0deg, #0c081bcc 0%, #15102526 32%, transparent 62%);
}
.bb-feature-copy { position: relative; width: min(100%, 450px); padding: 32px clamp(23px, 2.8vw, 39px) 34px; }
.bb-feature-tag {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px;
  padding: 5px 8px; border: 1px solid #a789d3b0; border-radius: 4px;
  background: #312044e0; color: #ead3ff; font: 750 10px/1 "Courier New", monospace;
  letter-spacing: 1.2px; text-transform: uppercase;
}
.bb-feature-tag svg { width: 12px; height: 12px; }
.bb-title {
  margin: 0; color: #fffaff; font-family: "Blitz Display", Impact, sans-serif; font-weight: 700;
  font-size: clamp(51px, 5.45vw, 80px); line-height: .98; letter-spacing: -.035em;
  text-shadow: 0 4px 0 #593285, 3px 6px 0 #2a154b;
}
.bb-title > span { display: block; }
.bb-title > span + span { color: var(--bb-lime); }
.bb-feature-copy p {
  max-width: 35ch; margin: 16px 0 0; color: #f5edf9; font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.52; font-weight: 550; text-shadow: 0 2px 6px #10091c;
}
.bb-entry {
  display: flex; flex-direction: column; justify-content: center; padding: clamp(23px, 2.15vw, 33px);
  border: 1px solid #4a3f58;
  background: radial-gradient(ellipse at 104% 0%, #392b47 0%, transparent 52%), linear-gradient(125deg,#24202d,#211d2a 64%,#252030);
}
.bb-entry::before {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 48%; height: 42%;
  opacity: .45; pointer-events: none; background-image: radial-gradient(#b896db81 1.2px, transparent 1.25px);
  background-size: 12px 12px; mask-image: linear-gradient(228deg, #000 0%, transparent 76%);
}
.bb-entry-icon {
  display: inline-grid; width: 43px; height: 43px; flex: none; place-items: center; margin-bottom: 15px;
  border-radius: 11px; border: 1px solid #77569e; background: #49355e; color: #d3adff;
  box-shadow: inset 0 1px #a782cd3b;
}
.bb-entry-icon svg { width: 24px; height: 24px; }
.bb-entry h2 { margin: 0; font-size: clamp(27px, 2.31vw, 35px); font-weight: 795; letter-spacing: -1.5px; line-height: 1.15; }
.bb-entry > p { margin: 7px 0 0; color: #c6c0d1; font-size: 14px; line-height: 1.5; }
#join-form { margin: 22px 0 0; }
#join-form label {
  display: inline-block; margin: 0 0 8px; color: #ebe7f3; font-size: 13px; font-weight: 690;
}
.bb-pin { position: relative; }
.bb-pin #room-code {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  appearance: none; border: 0; border-radius: 6px; margin: 0; background: transparent;
  color: transparent; caret-color: transparent; -webkit-text-fill-color: transparent; font: inherit;
  text-align: center; opacity: 1; cursor: text; outline: 0;
}
.bb-pin #room-code::selection { color: transparent; background: transparent; }
.bb-pin #room-code::placeholder { color: transparent; }
.bb-digits { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 6px; pointer-events: none; }
.bb-digits span {
  display: grid; place-items: center; min-height: 44px; border: 1px solid #63566f; border-radius: 6px;
  background: #17141f; color: #f4eefc; box-shadow: inset 0 2px 0 #0e0c15;
  font: 700 clamp(18px, 1.75vw, 24px)/1 "Blitz Display", monospace;
}
.bb-digits span:empty::before { content: ""; width: 6px; height: 2px; border-radius: 1px; background: #766b82; }
.bb-pin:focus-within { border-radius: 7px; outline: 2px solid #c6a0fa; outline-offset: 3px; }
.bb-pin:focus-within .bb-digits span { border-color: #a183ba; }
.bb-join {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 46px;
  margin: 14px 0 0; padding: 8px 14px; border: 1px solid #d7ff87; border-radius: 7px;
  background: var(--bb-lime); color: #1a2310; font: 790 15px/1.25 Inter, "Segoe UI", Arial, sans-serif;
  cursor: pointer; box-shadow: inset 0 -2px 0 #9ac842, 0 2px 0 #131510;
}
.bb-join:hover:enabled { background: #d4ff80; }
.bb-join:active:enabled { transform: translateY(1px); }
.bb-join:disabled { opacity: .66; cursor: wait; }
.bb-join svg { width: 17px; height: 17px; }
.bb-error { margin: 8px 0 0; color: #ffc4cc; font-size: 13px; line-height: 1.4; }
.bb-error:empty { display: none; }
.bb-entry .bb-room-note {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 15px 0 0;
  color: #b7adbf; font-size: 11.5px; line-height: 1.45; text-align: center;
}
.bb-room-note svg { width: 13px; height: 13px; flex: none; }
.bb-briefing { margin-top: clamp(30px, 3.3vw, 48px); scroll-margin-top: 22px; }
.bb-section-title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.bb-section-title h2 { margin: 0; color: #f5f1fc; font-weight: 740; font-size: clamp(22px, 2.08vw, 30px); letter-spacing: -1px; line-height: 1.18; }
.bb-section-title > span {
  display: inline-flex; align-items: center; color: #b7abca;
  font: 700 10px/1.25 "Courier New", monospace; letter-spacing: 1px; text-transform: uppercase;
  border-left: 1px solid #4c4058; padding-left: 12px;
}
.bb-guides { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(12px, 1.4vw, 20px); }
.bb-guide-card {
  display: flex; align-items: center; min-width: 0; gap: clamp(11px, 1.1vw, 17px); padding: 18px;
  border: 1px solid #3d3647; border-radius: 12px; background: linear-gradient(119deg,#24202d 0%,#1c1823 80%);
}
.bb-item-art {
  display: grid; flex: 0 0 clamp(48px, 4.6vw, 68px); width: clamp(48px, 4.6vw, 68px);
  aspect-ratio: 1; place-items: center; border-radius: 9px; border: 1px solid #5c426e;
  background: radial-gradient(ellipse at center,#413052,#292133 80%);
}
.bb-guide-card:nth-child(2) .bb-item-art { border-color: #415548; background: radial-gradient(ellipse at center,#324632,#232d29 80%); }
.bb-guide-card:nth-child(3) .bb-item-art { border-color: #36535b; background: radial-gradient(ellipse at center,#29434b,#212a34 80%); }
.bb-item-art img { display: block; width: 90%; height: 90%; object-fit: contain; image-rendering: pixelated; }
.bb-guide-card h3 { margin: 0; color: #f3eefa; font-size: clamp(15px, 1.28vw, 18px); line-height: 1.2; letter-spacing: -.4px; }
.bb-guide-card p { margin: 5px 0 0; color: #c2bace; font-size: clamp(12px, 1.06vw, 14px); line-height: 1.45; }
.bb-footer { margin: clamp(36px, 4.8vw, 68px) 0 0; border-top: 1px solid #342d3d; }
.bb-footinner { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 66px; color: #a79bb7; font-size: 12px; }
.bb-footinner p { margin: 0; }
.bb-footinner a { text-underline-offset: 3px; }
.bb-footinner a:hover { color: var(--bb-lime); }
@media (min-width:1600px) { .bb-feature { min-height: 430px; } }
@media (max-width:1050px) {
  :root { --bb-gutter: clamp(24px, 3.5vw, 38px); }
  .bb-nav { gap: 24px; }
  .bb-deck { grid-template-columns: minmax(0,1.68fr) minmax(295px,1fr); }
  .bb-feature { min-height: 375px; }
  .bb-title { font-size: clamp(48px, 6.6vw, 70px); }
  .bb-guides { gap: 10px; }
  .bb-guide-card { padding: 14px; gap: 12px; }
}
@media (max-width:800px) {
  .bb-deck { grid-template-columns: minmax(0,1.35fr) minmax(260px,1fr); gap: 12px; }
  .bb-feature { min-height: 350px; background-position: 60% center; }
  .bb-feature-copy { padding: 20px 20px 25px; }
  .bb-entry { padding: 20px; }
  .bb-guide-card { flex-direction: column; align-items: flex-start; }
  .bb-item-art { flex-basis: auto; width: 47px; }
  .bb-nav { gap: 18px; }
}
@media (max-width:660px) {
  :root { --bb-gutter: 17px; }
  .bb-nav { min-height: 62px; gap: 12px; }
  .bb-brand { gap: 8px; font-size: 19px; }
  .bb-brandmark { width: 30px; height: 30px; border-radius: 8px; }
  .bb-brandmark svg { width: 20px; height: 20px; }
  .bb-links { display: none; }
  .bb-teacher { padding: 6px 9px; font-size: 12px; min-height: 33px; }
  .bb-main { padding-top: 19px; }
  .bb-deck { grid-template-columns: 1fr; gap: 14px; }
  .bb-feature { min-height: clamp(245px, 55vw, 330px); background-position: center 48%; }
  .bb-feature-copy { padding: 24px; }
  .bb-feature-tag { margin-bottom: 10px; }
  .bb-title { font-size: clamp(44px, 8.7vw, 62px); }
  .bb-feature-copy p { max-width: 27ch; margin-top: 12px; font-size: 14px; }
  .bb-entry { padding: 23px; }
  .bb-entry-icon { width: 38px; height: 38px; margin-bottom: 12px; }
  .bb-entry h2 { font-size: 28px; }
  #join-form { margin-top: 16px; }
  .bb-briefing { margin-top: 28px; }
  .bb-guides { grid-template-columns: 1fr; gap: 9px; }
  .bb-guide-card { flex-direction: row; align-items: center; padding: 13px 15px; gap: 14px; }
  .bb-item-art { flex: 0 0 48px; width: 48px; }
  .bb-guide-card h3 { font-size: 16px; }
  .bb-guide-card p { font-size: 13px; }
  .bb-footer { margin-top: 32px; }
  .bb-footinner { min-height: 58px; flex-wrap: wrap; row-gap: 5px; padding-block: 12px; }
}
@media (max-width:360px) {
  :root { --bb-gutter: 12px; }
  .bb-digits { gap: 4px; }
  .bb-teen, .bb-teacher { gap: 4px; }
  .bb-feature-copy { padding: 18px; }
  .bb-entry { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bb-join { transform: none !important; } }
@media (forced-colors: active) {
  .bb-pin #room-code { forced-color-adjust: none; }
  .bb-digits span, .bb-item-art, .bb-feature, .bb-guide-card, .bb-entry, .bb-join, .bb-teacher { border-color: CanvasText; }
  .bb-digits span:empty::before { background: GrayText; }
}
.bb-footinner{display:flex;align-items:center;justify-content:space-between;gap:15px}
.bb-footinner>span,.bb-footinner>button,.bb-section-title>span{display:inline-flex;align-items:center;gap:7px}
.bb-footinner>button{border:0;background:transparent;color:#b8b0c6;font-size:.82rem;min-height:42px;cursor:pointer}
.bb-footinner>button:hover{color:#d4ff88}
body:has(.td-app)>.bb-header{display:none}
body:has(.td-app)>.bb-main,body:has(.td-app) .bb-main{width:100%;max-width:none;margin:0;padding:0}
