*{box-sizing:border-box}
:root{--g:#32ff65;--bright:#b6ffc8;--dim:#168b39;--bg:#000}
html,body{margin:0;width:100%;height:100%;background:#000;overflow:hidden}
body{font-family:"SFMono-Regular","Cascadia Mono","Courier New",monospace;color:var(--g)}
#matrix{position:fixed;inset:0;width:100%;height:100%;z-index:0;background:#000}
#terminal{position:relative;z-index:2;width:100%;height:100%}
.screen{display:none;width:100%;height:100%;padding:clamp(14px,2.2vw,34px)}
.screen.active{display:block}
#boot{background:rgba(0,0,0,.86);font-size:clamp(12px,1.4vw,18px);line-height:1.65;text-shadow:0 0 7px #00ff55}
#bootText{white-space:pre-wrap;margin:0}
.ok{color:#aaffbd}.warn{color:#77ff8f}
.hidden{visibility:hidden}
#progressWrap{margin-top:22px}
.progressRow{margin-top:8px;color:var(--bright);white-space:pre}
.skip{position:absolute;bottom:24px;left:34px;color:#168b39;font-size:12px}
#hero{padding:0;background:#000;position:relative}
.heroArt{position:absolute;inset:0;background:url("/undnyc-hero-v7.png?v=1") center/cover no-repeat;filter:contrast(1.06) saturate(1.12);animation:reveal 1.2s steps(18,end) both}
.heroArt::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at center,transparent 42%,rgba(0,0,0,.45) 100%)}
.heroOverlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding-bottom:3.5vh;pointer-events:none}
.connect{padding:10px 18px;border:1px solid #32ff65;background:rgba(0,0,0,.72);color:#c9ffd6;font-weight:700;letter-spacing:.1em;text-shadow:0 0 9px #00ff55}
.hint{font-size:11px;margin-top:10px;color:#40b65d;background:rgba(0,0,0,.72);padding:3px 8px}
@keyframes reveal{from{clip-path:inset(0 0 100% 0);filter:brightness(.4)}to{clip-path:inset(0 0 0 0);filter:brightness(1)}}
.blink{animation:blink 1s steps(1,end) infinite}@keyframes blink{50%{opacity:.25}}
.scanlines{position:fixed;inset:0;z-index:20;pointer-events:none;background:repeating-linear-gradient(to bottom,rgba(255,255,255,.015) 0,rgba(255,255,255,.015) 1px,rgba(0,0,0,.12) 2px,rgba(0,0,0,.12) 4px);box-shadow:inset 0 0 100px rgba(0,0,0,.7)}
#bbs{background:rgba(0,4,1,.92);overflow:auto}
.bbsLogo{font-size:clamp(8px,1.35vw,16px);color:#72ff93;margin:0}
.status{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #126a2b;border-bottom:1px solid #126a2b;padding:8px 0;margin:12px 0 18px;color:#55ce70;font-size:12px}
.content{min-height:62vh;white-space:pre-wrap;line-height:1.55;color:#b8ffc8;font-size:clamp(13px,1.35vw,17px)}
.title{color:#32ff65;font-weight:bold}.hot{color:#fff}.dim{color:#4da45f}
.cmd{display:flex;gap:8px;border-top:1px solid #126a2b;padding-top:10px;position:sticky;bottom:0;background:#000}
.cmd input{flex:1;background:transparent;border:0;outline:0;color:#fff;font:inherit;caret-color:transparent}
.cursor{animation:blink .75s steps(1,end) infinite}
@media(max-width:700px){.heroArt{background-size:cover}.screen{padding:12px}.skip{left:12px}.content{min-height:65vh}}
@media(prefers-reduced-motion:reduce){*{animation:none!important}}

/* UNDNYC connection transition */
#connecting {
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.94);
  z-index: 20;
}

#connecting.active {
  display: flex;
}

#connectText {
  width: min(760px, 88vw);
  margin: 0;
  font: inherit;
  line-height: 1.7;
  color: #39ff68;
  text-shadow:
    0 0 4px rgba(57,255,104,.75),
    0 0 12px rgba(57,255,104,.28);
}

/* =========================================================
   UNDNYC MOBILE TERMINAL
   ========================================================= */

.mobileDeck {
  display: none;
}

@media (max-width: 700px) {
  #bbs {
    padding: 10px 10px 72px;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .bbsLogo {
    font-size: clamp(7px,2.5vw,11px);
    white-space: pre;
    overflow-x: auto;
  }

  .status {
    font-size: 10px;
    gap: 6px;
    margin: 8px 0 12px;
    padding: 6px 0;
  }

  .content {
    min-height: 0;
    font-size: clamp(11px,3.15vw,14px);
    line-height: 1.45;
    overflow-x: auto;
    overflow-y: visible;
    white-space: pre-wrap;
    padding-bottom: 14px;
  }

  .cmd {
    position: sticky;
    bottom: 48px;
    padding: 8px 0;
    font-size: 14px;
    z-index: 30;
  }

  .cmd input {
    min-width: 0;
    font-size: 16px;
  }

  .mobileDeck {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;

    grid-template-columns: repeat(8,1fr);
    gap: 3px;

    padding:
      6px
      max(6px,env(safe-area-inset-right))
      calc(6px + env(safe-area-inset-bottom))
      max(6px,env(safe-area-inset-left));

    background: rgba(0,0,0,.96);
    border-top: 1px solid #126a2b;
  }

  body.bbs-connected .mobileDeck {
    display: grid;
  }

  .mobileDeck button {
    min-width: 0;
    min-height: 38px;
    padding: 0;
    border: 1px solid #168b39;
    border-radius: 2px;
    background: #020603;
    color: #b8ffc8;
    font: 700 13px "SFMono-Regular","Cascadia Mono","Courier New",monospace;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobileDeck button:active {
    background: #12351b;
    color: #fff;
  }

  #hero .connect {
    font-size: 12px;
    padding: 9px 13px;
    text-align: center;
  }

  #hero .hint {
    font-size: 9px;
  }

  #connectText {
    width: 92vw;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .mobileDeck button {
    font-size: 12px;
  }

  .content {
    font-size: 11px;
  }
}

/* Touch-enabled CONNECT prompt */
#hero .connect {
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

#hero .connect:active {
  background: rgba(30,100,45,.75);
  color: #fff;
}

/* UNDNYC Hero v4 mobile framing */
@media (max-width:700px) {
  .heroArt {
    background-position: 55% center;
  }
}

/* =========================================================
   UNDNYC Main Board v1
   LIC / Queensboro ANSI command center
   ========================================================= */

.mainBoard {
  width: min(1050px, 100%);
  margin: 0 auto;
}

.mainAnsi {
  position: relative;
  width: 100%;
  height: clamp(260px, 47vh, 500px);
  overflow: hidden;
  border: 1px solid rgba(57,255,104,.48);
  background: #000;
  box-shadow:
    0 0 8px rgba(57,255,104,.18),
    inset 0 0 22px rgba(0,0,0,.75);
}

.mainAnsi img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(0);
  filter:
    saturate(.72)
    contrast(1.10)
    brightness(.88)
    hue-rotate(4deg);
}

.mainAnsi::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(0,0,0,.20) 4px
    );
}

.mainPanel {
  position: relative;
  margin-top: 10px;
  border: 1px solid #168b39;
  padding: 18px 18px 14px;
  background: rgba(0,8,2,.94);
  box-shadow:
    0 0 12px rgba(50,255,101,.14),
    inset 0 0 20px rgba(50,255,101,.025);
}

.mainPanelTitle {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 12px;
  background: #000;
  color: #b6ffc8;
  white-space: nowrap;
  text-shadow: 0 0 7px rgba(57,255,104,.8);
}

.mainInfo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 34px;
  color: #32ff65;
  line-height: 1.45;
}

.mainInfo b {
  color: #b6ffc8;
  font-weight: normal;
  animation: undnycOnline 1.8s steps(1,end) infinite;
}

.mainRule {
  height: 1px;
  margin: 12px 0;
  background: linear-gradient(
    90deg,
    transparent,
    #168b39 8%,
    #32ff65 50%,
    #168b39 92%,
    transparent
  );
}

.mainMenu {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px 22px;
  line-height: 1.45;
}

.mainMenu > span {
  white-space: nowrap;
}

.mainTag {
  margin-top: 13px;
  text-align: center;
  color: #168b39;
  letter-spacing: .20em;
  font-size: .9em;
}

@keyframes undnycOnline {
  0%, 78% { opacity: 1; }
  79%, 100% { opacity: .38; }
}

@media (max-width:700px) {
  .mainBoard {
    width: 100%;
  }

  .mainAnsi {
    height: 230px;
  }

  .mainAnsi img {
    width: auto;
    max-width: none;
    height: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .mainPanel {
    margin-top: 8px;
    padding: 17px 10px 10px;
  }

  .mainPanelTitle {
    font-size: 11px;
  }

  .mainInfo {
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 11px;
  }

  .mainMenu {
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
    font-size: 12px;
  }

  .mainTag {
    font-size: 9px;
    letter-spacing: .10em;
  }
}

@media (max-width:390px) {
  .mainAnsi {
    height: 195px;
  }

  .mainMenu {
    font-size: 11px;
  }
}

/* =========================================================
   UNDNYC Main Board v1 layout corrections
   ========================================================= */

/* Main Board contains structured HTML, not preformatted text */
.content:has(.mainBoard) {
  white-space: normal;
  min-height: 0;
  line-height: normal;
}

/* Keep artwork + control panel together naturally */
.mainBoard {
  white-space: normal;
}

/* Compact ANSI artwork viewport */
.mainAnsi {
  height: clamp(300px, 38vw, 440px);
}

/* Crop away the generated menu/status portion of the PNG */
.mainAnsi img {
  width: 100%;
  height: auto;
  transform: translateY(0);
}

/* Tighten the real BBS panel */
.mainPanel {
  margin-top: 12px;
  padding: 22px 18px 14px;
}

.mainInfo {
  margin: 0;
  line-height: 1.5;
}

.mainMenu {
  margin: 0;
  line-height: 1.45;
}

.mainTag {
  margin-top: 12px;
}

/* Give Command? its own space after Main Board */
.content:has(.mainBoard) + .cmd {
  margin-top: 14px;
}

/* Mobile Main Board */
@media (max-width:700px) {
  .content:has(.mainBoard) {
    white-space: normal;
    min-height: 0;
    padding-bottom: 12px;
    overflow: visible;
  }

  .mainAnsi {
    height: 220px;
  }

  .mainAnsi img {
    width: auto;
    height: 100%;
    max-width: none;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
  }

  .mainPanel {
    padding: 20px 10px 12px;
  }
}

/* UNDNYC Main Board v2 — full-width artwork */
.content:has(.mainBoard) {
  width: 100%;
  white-space: normal;
  min-height: 0;
}

.mainBoard {
  width: 100%;
  max-width: none;
  margin: 0;
}

.mainAnsi {
  width: 100%;
  height: auto;
  max-height: none;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  background: #000;
}

.mainAnsi img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  max-width: none;
  transform: none;
  filter:
    saturate(.78)
    contrast(1.10)
    brightness(.90);
}

.mainMenuOpen {
  width: min(1200px, 96%);
  margin: 18px auto 0;
  padding: 14px 0;
  border-top: 1px solid #168b39;
  border-bottom: 1px solid #168b39;
  grid-template-columns: repeat(3,1fr);
  gap: 10px 36px;
}

.mainTag {
  margin: 13px auto 4px;
  text-align: center;
}

@media (max-width:700px) {
  .mainAnsi {
    height: auto;
  }

  .mainAnsi img {
    position: static;
    width: 100%;
    height: auto;
    max-width: none;
    transform: none;
  }

  .mainMenuOpen {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    margin-top: 10px;
    padding: 10px 4px;
  }
}

/* Main Board uses the artwork as its primary UNDNYC branding */
#bbs.main-view .bbsLogo {
  display: none;
}

#bbs.main-view .status {
  margin-top: 0;
}

/* Main Board v3 — crop baked-in fake BBS panel */
.mainAnsi {
  aspect-ratio: 1536 / 760;
  height: auto;
  overflow: hidden;
}

.mainAnsi img {
  width: 100%;
  height: auto;
  display: block;
  transform: none;
}

@media (max-width:700px) {
  .mainAnsi {
    aspect-ratio: 1536 / 760;
    height: auto;
  }

  .mainAnsi img {
    width: 100%;
    height: auto;
    position: static;
    transform: none;
  }
}

/* UNDNYC Main Board v2 artwork — native clean banner */
.mainAnsi {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.mainAnsi img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  max-width: none;
  transform: none;
  filter:
    saturate(.82)
    contrast(1.08)
    brightness(.92);
}

@media (max-width:700px) {
  .mainAnsi {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
  }

  .mainAnsi img {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    max-width: none;
    transform: none;
  }
}

/* Main Board v3 — tighten space below status bar */
#bbs.main-view .status {
  margin-bottom: 4px;
}

#bbs.main-view .content {
  margin-top: 0;
  padding-top: 0;
}

#bbs.main-view .mainBoard,
#bbs.main-view .mainAnsi {
  margin-top: 0;
  padding-top: 0;
}

/* Main Board v3 — remove empty space above status bar */
#bbs.main-view {
  padding-top: 0;
}

#bbs.main-view .status {
  margin-top: 0;
  margin-bottom: 4px;
}

#bbs.main-view .bbsLogo {
  display: none;
  margin: 0;
  padding: 0;
}

/* ============================================================
   UNDNYC ANSI Gallery
   ============================================================ */

.galleryViewer {
  width: 100%;
  white-space: normal;
}

.galleryHeader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #168b39;
}

.galleryImage {
  width: 100%;
  margin: 14px 0 10px;
  overflow: hidden;
  background: #000;
}

.galleryImage img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.galleryMeta {
  color: #55ce70;
  font-size: 12px;
  text-align: center;
  padding: 5px 0 12px;
}

.galleryNav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  border-top: 1px solid #168b39;
  border-bottom: 1px solid #168b39;
  padding: 11px 8px;
  color: #b8ffc8;
}

.galleryNav .hot {
  color: #72ff93;
  text-shadow: 0 0 6px rgba(57,255,104,.7);
}

@media (max-width:700px) {
  .galleryHeader {
    display: block;
  }

  .galleryHeader .dim {
    display: block;
    margin-top: 4px;
  }

  .galleryImage {
    margin-top: 10px;
  }

  .galleryNav {
    gap: 8px 16px;
    font-size: 12px;
  }
}

/* Gallery clickable terminal controls */

.galleryEntry {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: #b8ffc8;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.galleryEntry:hover,
.galleryEntry:focus {
  background: rgba(57,255,104,.08);
  outline: 1px solid #168b39;
}

.galleryEntrySub {
  display: block;
  margin: 3px 0 0 42px;
  color: #55ce70;
}

.galleryNav button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #b8ffc8;
  font: inherit;
  cursor: pointer;
  padding: 6px 8px;
}

.galleryNav button:hover,
.galleryNav button:focus {
  background: rgba(57,255,104,.08);
  outline: 1px solid #168b39;
}

@media (max-width:700px) {
  .galleryEntry {
    padding: 12px 8px;
    margin-bottom: 6px;
    touch-action: manipulation;
  }

  .galleryNav button {
    min-height: 42px;
    padding: 10px 8px;
    touch-action: manipulation;
  }
}

/* Clickable BBS menu controls */
.mainMenuOpen button,
[data-bbs-command] {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 5px 7px;
}

.mainMenuOpen button:hover,
.mainMenuOpen button:focus,
[data-bbs-command]:hover,
[data-bbs-command]:focus {
  background: rgba(57,255,104,.08);
  outline: 1px solid #168b39;
}

@media (max-width:700px) {
  .mainMenuOpen button,
  [data-bbs-command] {
    min-height: 42px;
    padding: 10px 8px;
    touch-action: manipulation;
  }
}


/* UNDNYC universal terminal command buttons */
.bbsInlineCommand {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  white-space: pre;
  text-align: left;
  text-shadow: inherit;
  cursor: pointer;
  margin: 0;
  padding: 2px 4px;
}

.bbsInlineCommand:hover,
.bbsInlineCommand:focus-visible {
  color: #b8ffc8;
  background: rgba(57,255,104,.08);
  outline: 1px solid #168b39;
  box-shadow: 0 0 8px rgba(57,255,104,.14);
}

.bbsInlineCommand:active {
  background: rgba(57,255,104,.16);
}

@media (max-width:700px) {
  .bbsInlineCommand {
    min-height: 40px;
    padding: 9px 7px;
    touch-action: manipulation;
  }
}

/* Native clickable terminal rows */
.bbsTextRow {
  display: block;
  width: fit-content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  white-space: pre;
  cursor: pointer;
}

.bbsTextRow:hover,
.bbsTextRow:focus {
  color: #72ff93;
  text-shadow: 0 0 7px rgba(57,255,104,.75);
  outline: none;
}

@media (max-width:700px) {
  .bbsTextRow {
    min-height: 32px;
    padding: 4px 8px 4px 0;
    touch-action: manipulation;
  }
}

/* =========================================================
   UNDNYC unified terminal selection highlight
   ========================================================= */

.mainMenuOpen button,
[data-bbs-command],
.bbsTextRow,
.bbsInlineCommand,
.galleryNav button {
    transition:
        background-color .08s linear,
        color .08s linear,
        text-shadow .08s linear;
}

/* Mouse / keyboard terminal selection */
.mainMenuOpen button:hover,
.mainMenuOpen button:focus-visible,
[data-bbs-command]:hover,
[data-bbs-command]:focus-visible,
.bbsTextRow:hover,
.bbsTextRow:focus-visible,
.bbsInlineCommand:hover,
.bbsInlineCommand:focus-visible,
.galleryNav button:hover,
.galleryNav button:focus-visible {
    background: rgba(57,255,104,.08);
    color: #72ff93;
    text-shadow: 0 0 7px rgba(57,255,104,.75);
    outline: none;
}

/* Keep native buttons from drawing browser focus chrome */
.mainMenuOpen button:focus,
[data-bbs-command]:focus,
.bbsTextRow:focus,
.bbsInlineCommand:focus,
.galleryNav button:focus {
    outline: none;
}

/* Full terminal-row feel for native BBS rows */
.bbsTextRow {
    width: 100%;
    box-sizing: border-box;
}

/* Slight breathing room without looking like a web button */
.bbsTextRow:hover,
.bbsTextRow:focus-visible {
    padding-left: 7px;
}

/* Respect users who disable animation */
@media (prefers-reduced-motion: reduce) {
    .mainMenuOpen button,
    [data-bbs-command],
    .bbsTextRow,
    .bbsInlineCommand,
    .galleryNav button {
        transition: none;
    }
}

/* SysOp invitation manager */
.inviteManagerRow {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 110px auto;
    gap: 12px;
    align-items: center;
    padding: 5px 4px;
    border-bottom: 1px dotted rgba(0,255,90,.15);
}

.inviteManagerRow:hover {
    background: rgba(0,255,90,.07);
}

.inviteManagerRow .bbsInlineCommand {
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 680px) {
    .inviteManagerRow {
        grid-template-columns: 1fr auto;
    }

    .inviteManagerRow > span:nth-child(2) {
        text-align: right;
    }

    .inviteManagerRow .bbsInlineCommand {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

/* ============================================================
   UNDNYC CONNECTION OPTIONS
   ============================================================ */

#access {
  align-items: center;
  justify-content: center;
}

.accessPanel {
  width: min(560px, calc(100vw - 36px));
  padding: 28px 24px 22px;
  box-sizing: border-box;

  border: 1px solid rgba(65,255,105,.48);
  background: rgba(0,12,3,.93);

  box-shadow:
    0 0 22px rgba(35,255,80,.12),
    inset 0 0 30px rgba(20,255,65,.035);

  text-align: center;
}

.accessTitle {
  color: #7dff9b;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(70,255,110,.55);
}

.accessSub {
  opacity: .72;
  font-size: .88em;
  margin-bottom: 24px;
}

.accessPanel button {
  display: block;

  width: 100%;
  margin: 9px 0;
  padding: 12px 14px;

  border: 1px solid rgba(50,255,95,.28);
  background: transparent;

  color: #42ff73;

  font: inherit;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: left;

  cursor: pointer;
}

.accessPanel button:hover,
.accessPanel button:focus-visible {
  background: rgba(40,255,90,.09);
  border-color: rgba(65,255,105,.65);

  outline: none;

  text-shadow:
    0 0 7px rgba(70,255,110,.65);
}

.accessPanel button:hover::before,
.accessPanel button:focus-visible::before {
  content: "> ";
}

.accessInfo {
  margin-top: 22px;

  opacity: .62;
  font-size: .76em;
  line-height: 1.7;
}

.accessBack {
  margin-top: 20px;

  opacity: .52;
  font-size: .8em;
}

@media (max-width:600px) {
  .accessPanel {
    padding: 22px 16px 18px;
  }

  .accessPanel button {
    padding: 11px 10px;
  }
}

/* ============================================================
   UNDNYC CONNECTION SELECTOR — MINIMAL CENTERED
   ============================================================ */

#access.screen.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.accessPanel {
  width: min(420px, calc(100vw - 40px)) !important;

  margin: 0 !important;
  padding: 28px 20px !important;

  border: 0 !important;
  background: rgba(0,8,2,.72) !important;

  box-shadow: none !important;

  text-align: center !important;
}

.accessTitle {
  margin: 0 0 10px !important;

  color: #72ff91 !important;

  font-size: 1.05em !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;

  text-shadow:
    0 0 8px rgba(70,255,110,.45) !important;
}

.accessTitle {
  font-size: 0 !important;
}

.accessTitle::after {
  content: "UNDNYC.NET";

  font-size: 17px !important;
}

.accessSub {
  margin: 0 0 28px !important;

  opacity: .58 !important;

  font-size: .75em !important;
  letter-spacing: .12em !important;
}

.accessPanel button {
  display: block !important;

  width: 100% !important;

  margin: 7px 0 !important;
  padding: 11px 14px !important;

  border: 1px solid transparent !important;
  background: transparent !important;

  color: #42ff73 !important;

  font: inherit !important;
  font-weight: 700 !important;
  letter-spacing: .05em !important;

  text-align: left !important;

  cursor: pointer;
}

.accessPanel button::before {
  content: "  " !important;

  display: inline-block !important;
  width: 1.4em !important;
}

.accessPanel button:hover,
.accessPanel button:focus-visible {
  border-color: rgba(65,255,105,.25) !important;

  background:
    rgba(40,255,90,.07) !important;

  outline: none !important;

  text-shadow:
    0 0 7px rgba(70,255,110,.65) !important;
}

.accessPanel button:hover::before,
.accessPanel button:focus-visible::before {
  content: "> " !important;
}

.accessInfo {
  display: none !important;
}

.accessBack {
  margin-top: 24px !important;

  opacity: .42 !important;

  font-size: .72em !important;
  letter-spacing: .08em !important;
}

@media (max-width:600px) {

  .accessPanel {
    width: min(360px, calc(100vw - 28px)) !important;
    padding: 22px 12px !important;
  }

  .accessTitle::after {
    font-size: 15px !important;
  }

  .accessPanel button {
    padding: 10px 8px !important;
  }
}

/* ============================================================
   UNDNYC.NET // SECURE MEMBER TERMINAL
   ============================================================ */

#nativeAuthPanel {
  position: fixed;
  inset: 0;
  z-index: 60;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
  box-sizing: border-box;

  background:
    radial-gradient(
      circle at center,
      rgba(0,40,12,.18),
      rgba(0,0,0,.20) 45%,
      rgba(0,0,0,.52) 100%
    );
}

#nativeAuthPanel .ansiLoginBox {
  width: min(560px, 92vw);

  box-sizing: border-box;

  border: 1px solid rgba(55,255,105,.38);

  background:
    linear-gradient(
      180deg,
      rgba(0,22,7,.88),
      rgba(0,8,3,.94)
    );

  box-shadow:
    0 0 18px rgba(0,255,80,.10),
    inset 0 0 30px rgba(0,255,80,.025);

  padding: 30px 34px 24px;

  color: #6dff98;

  font-family:
    "Courier New",
    "Lucida Console",
    monospace;
}


/* Header */

#nativeAuthPanel .ansiTitle {
  text-align: center;

  color: #a8ffbd;

  font-size: clamp(22px,3vw,32px);
  font-weight: 700;

  letter-spacing: .04em;

  text-shadow:
    0 0 5px rgba(80,255,125,.75),
    0 0 12px rgba(0,255,80,.24);
}

#nativeAuthPanel .ansiSubTitle {
  margin-top: 7px;
  margin-bottom: 24px;

  text-align: center;

  color: #36c85d;

  font-size: 13px;
  letter-spacing: .18em;
}


/* Small terminal status */

#nativeAuthPanel .ansiStatus {
  display: flex;
  justify-content: space-between;
  gap: 12px;

  padding: 8px 0;
  margin-bottom: 25px;

  border-top: 1px solid rgba(45,210,85,.22);
  border-bottom: 1px solid rgba(45,210,85,.22);

  color: #278f45;

  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}


/* Form */

#nativeAuthPanel .ansiBody {
  width: 100%;
}

#nativeAuthPanel .ansiRow {
  margin-bottom: 20px;
}

#nativeAuthPanel .ansiPrompt {
  margin-bottom: 7px;

  color: #47d76a;

  font-size: 12px;
  letter-spacing: .12em;
}

#nativeAuthPanel .ansiInput {
  display: block;

  width: 100%;
  height: 42px;

  box-sizing: border-box;

  padding: 8px 12px;

  border: 1px solid rgba(55,255,105,.30);
  border-radius: 0;

  outline: none;

  background: rgba(0,0,0,.58);

  color: #caffd6;

  font: inherit;
  font-size: 16px;

  caret-color: #55ff7d;

  box-shadow:
    inset 0 0 12px rgba(0,255,80,.035);
}

#nativeAuthPanel .ansiInput:focus {
  border-color: rgba(80,255,125,.70);

  box-shadow:
    0 0 8px rgba(0,255,80,.13),
    inset 0 0 14px rgba(0,255,80,.05);
}


/* MFA status text */

#nativeAuthPanel .ansiMessage {
  margin-bottom: 22px;

  color: #55ce70;

  font-size: 12px;
  line-height: 1.8;
}

#nativeAuthPanel .ansiOK {
  color: #9cffb5;
}

#nativeAuthPanel .ansiBlink {
  color: #72ff93;
}


/* Errors */

#nativeAuthPanel .nativeAuthError {
  min-height: 18px;

  margin: 4px 0 10px;

  color: #ff7676;

  font-size: 12px;
  text-align: center;
}


/* Divider */

#nativeAuthPanel .ansiDivider {
  height: 1px;

  margin: 8px 0 18px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(55,255,105,.30),
      transparent
    );
}


/* Actions */

#nativeAuthPanel .ansiActions {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 14px;
}

#nativeAuthPanel .ansiButton {
  min-width: 145px;

  padding: 10px 16px;

  border: 1px solid rgba(55,255,105,.30);
  border-radius: 0;

  background: rgba(0,255,75,.035);

  color: #63ef88;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;

  letter-spacing: .05em;

  cursor: pointer;

  transition:
    background 80ms linear,
    border-color 80ms linear,
    color 80ms linear,
    box-shadow 80ms linear;
}

#nativeAuthPanel .ansiButton:hover,
#nativeAuthPanel .ansiButton:focus-visible {
  outline: none;

  color: #caffd6;

  border-color: rgba(85,255,125,.65);

  background: rgba(0,255,80,.09);

  box-shadow:
    0 0 10px rgba(0,255,80,.12);
}

#nativeAuthPanel .ansiButton:disabled {
  opacity: .55;
  cursor: wait;
}


/* Footer */

#nativeAuthPanel .ansiFooter {
  margin-top: 22px;

  color: #247a3a;

  text-align: center;

  font-size: 10px;
  letter-spacing: .12em;
}


/* Mobile */

@media (max-width:600px) {

  #nativeAuthPanel {
    padding: 14px;
  }

  #nativeAuthPanel .ansiLoginBox {
    width: 100%;

    padding:
      24px
      18px
      20px;
  }

  #nativeAuthPanel .ansiStatus {
    flex-direction: column;
    align-items: center;

    gap: 4px;

    text-align: center;
  }

  #nativeAuthPanel .ansiActions {
    flex-direction: column;
  }

  #nativeAuthPanel .ansiButton {
    width: 100%;
  }

}

/* ============================================================
   UNDNYC.NET // MINIMAL MEMBER LOGIN
   ============================================================ */

#nativeAuthPanel {
  position: fixed;
  inset: 0;
  z-index: 60;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0,0,0,.10);
}

#nativeAuthPanel .ansiLoginBox {
  width: min(470px, 90vw);

  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;
  box-shadow: none;

  color: #5cff82;

  font-family:
    "Courier New",
    "Lucida Console",
    monospace;
}


/* UNDNYC.NET */

#nativeAuthPanel .ansiTitle {
  margin: 0 0 8px;

  text-align: center;

  color: #8dffa8;

  font-size: clamp(24px,3vw,34px);
  font-weight: 700;

  letter-spacing: .03em;

  text-shadow:
    0 0 7px rgba(75,255,120,.55);
}


/* MEMBER AUTHENTICATION */

#nativeAuthPanel .ansiSubTitle {
  margin: 0 0 42px;

  text-align: center;

  color: #31b852;

  font-size: 13px;
  letter-spacing: .18em;
}


/* Remove the busy status strip */

#nativeAuthPanel .ansiStatus {
  display: none;
}


/* Form */

#nativeAuthPanel .ansiBody {
  width: 100%;
}

#nativeAuthPanel .ansiRow {
  margin: 0 0 25px;
}

#nativeAuthPanel .ansiPrompt {
  margin: 0 0 5px;

  color: #42d967;

  font-size: 12px;
  letter-spacing: .13em;
}


/* Simple terminal-line input */

#nativeAuthPanel .ansiInput {
  display: block;

  width: 100%;
  height: 36px;

  box-sizing: border-box;

  padding: 4px 8px;

  border: 0;
  border-bottom: 1px solid rgba(65,255,105,.45);

  border-radius: 0;

  outline: none;

  background: rgba(0,12,3,.38);

  color: #caffd5;

  font: inherit;
  font-size: 16px;

  caret-color: #62ff89;

  box-shadow: none;
}

#nativeAuthPanel .ansiInput:focus {
  border-color: #5cff82;

  box-shadow:
    0 4px 8px -7px rgba(65,255,105,.85);
}


/* Errors */

#nativeAuthPanel .nativeAuthError {
  min-height: 18px;

  margin: -8px 0 12px;

  color: #ff7373;

  text-align: center;

  font-size: 11px;
}


/* Remove decorative divider */

#nativeAuthPanel .ansiDivider {
  display: none;
}


/* Small actions */

#nativeAuthPanel .ansiActions {
  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 14px;

  margin-top: 30px;
}

#nativeAuthPanel .ansiButton {
  width: auto;
  min-width: 0;

  margin: 0;
  padding: 7px 13px;

  border: 0;

  background: transparent;

  color: #5cff82;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;

  letter-spacing: .05em;

  cursor: pointer;

  box-shadow: none;
}

#nativeAuthPanel .ansiButton:first-child::before {
  content: "[ ENTER ] ";
}

#nativeAuthPanel .ansiButton:last-child {
  color: #2d9148;

  font-size: 11px;
  font-weight: 400;
}

#nativeAuthPanel .ansiButton:last-child::before {
  content: "[ ESC ] ";
}

#nativeAuthPanel .ansiButton:hover,
#nativeAuthPanel .ansiButton:focus-visible {
  border: 0;
  outline: none;

  background: transparent;

  color: #caffd5;

  box-shadow: none;

  text-shadow:
    0 0 7px rgba(70,255,115,.65);
}


/* MFA message */

#nativeAuthPanel .ansiMessage {
  margin: 0 0 28px;

  color: #37bd59;

  text-align: center;

  font-size: 11px;
  line-height: 1.8;
}


/* Footer becomes unnecessary */

#nativeAuthPanel .ansiFooter {
  display: none;
}


@media (max-width:600px) {

  #nativeAuthPanel {
    padding: 22px;
  }

  #nativeAuthPanel .ansiLoginBox {
    width: min(400px, 100%);

    padding: 0;
  }

  #nativeAuthPanel .ansiActions {
    flex-direction: column;
  }

  #nativeAuthPanel .ansiButton {
    width: auto;
  }

}

/* ============================================================
   MEMBER LOGIN — MINIMAL CLEANUP
   ============================================================ */

/* Hide connection text while native authentication is displayed */
#connecting:has(#nativeAuthPanel) #connectText {
  display: none !important;
}

/* Keep authentication centered over the Matrix background */
#nativeAuthPanel {
  background: transparent !important;
}

#nativeAuthPanel .ansiLoginBox {
  width: min(390px, 88vw) !important;
}

/* Slightly tighter header */
#nativeAuthPanel .ansiTitle {
  font-size: clamp(22px, 2.5vw, 30px) !important;
  margin-bottom: 8px !important;
}

#nativeAuthPanel .ansiSubTitle {
  margin-bottom: 38px !important;
  font-size: 11px !important;
}

/* Compact terminal fields */
#nativeAuthPanel .ansiRow {
  margin-bottom: 22px !important;
}

#nativeAuthPanel .ansiPrompt {
  margin-bottom: 6px !important;
  font-size: 11px !important;
}

#nativeAuthPanel .ansiInput {
  height: 31px !important;

  padding: 3px 5px !important;

  background: transparent !important;

  border: 0 !important;
  border-bottom:
    1px solid rgba(70,255,110,.42) !important;
}

#nativeAuthPanel .ansiInput:focus {
  border-bottom-color: #65ff89 !important;
  box-shadow: none !important;
}

/* Less dead space before Authenticate */
#nativeAuthPanel .ansiActions {
  margin-top: 24px !important;
  gap: 12px !important;
}

#nativeAuthPanel .ansiButton {
  padding: 5px 8px !important;
}

/* Keep errors from shifting the layout too much */
#nativeAuthPanel .nativeAuthError:empty {
  min-height: 0 !important;
  margin: 0 !important;
}

/* MFA text stays compact too */
#nativeAuthPanel .ansiMessage {
  margin-bottom: 24px !important;
}

/* Member auth — typography refinement */

#nativeAuthPanel .ansiLoginBox {
  width: min(360px, 86vw) !important;
}

#nativeAuthPanel .ansiTitle {
  font-size: clamp(21px, 2.3vw, 28px) !important;
}

#nativeAuthPanel .ansiSubTitle {
  font-size: 10px !important;
}

#nativeAuthPanel .ansiPrompt {
  font-size: 10px !important;
}

#nativeAuthPanel .ansiInput {
  font-size: 14px !important;
}

#nativeAuthPanel .ansiMessage {
  font-size: 10px !important;
  line-height: 1.75 !important;
}

#nativeAuthPanel .ansiButton {
  font-size: 11px !important;
}

#nativeAuthPanel .ansiButton:last-child {
  font-size: 10px !important;
}

/* ============================================================
   UNDNYC.NET // CYBER WARRIOR MOBILE
   Mobile framing only. Desktop remains unchanged.
   ============================================================ */

/* PHONE PORTRAIT */
@media (max-width: 600px) and (orientation: portrait) {

  #hero {
    padding: 0 !important;
    min-height: 100dvh;
    overflow: hidden;
  }

  #hero .heroArt {
    inset: 0 !important;

    background-size: cover !important;
    background-position: 55% center !important;
  }

  #hero .heroOverlay {
    inset: 0 !important;

    justify-content: flex-end !important;

    padding:
      0
      max(12px, env(safe-area-inset-right))
      calc(22px + env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left)) !important;

    box-sizing: border-box;
  }

  #hero .connect {
    font-size: clamp(11px, 3.2vw, 14px) !important;

    padding: 9px 13px !important;

    white-space: nowrap;
    text-align: center;
  }

  #hero .hint {
    margin-top: 7px !important;

    font-size: clamp(7px, 2vw, 9px) !important;

    text-align: center;
    white-space: nowrap;
  }

}


/* PHONE LANDSCAPE */
@media (orientation: landscape) and (max-height: 600px) {

  #hero {
    padding: 0 !important;
    min-height: 100dvh;
    overflow: hidden;
  }

  #hero .heroArt {
    inset: 0 !important;

    background-size: cover !important;
    background-position: center center !important;
  }

  #hero .heroOverlay {
    inset: 0 !important;

    justify-content: flex-end !important;

    padding:
      0
      max(16px, env(safe-area-inset-right))
      calc(12px + env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left)) !important;

    box-sizing: border-box;
  }

  #hero .connect {
    font-size: clamp(9px, 1.5vw, 12px) !important;

    padding: 7px 12px !important;

    white-space: nowrap;
  }

  #hero .hint {
    margin-top: 5px !important;

    font-size: clamp(7px, 1.1vw, 9px) !important;

    white-space: nowrap;
  }

}


/* ============================================================
   UNDNYC.NET // MOBILE ACCESS + MEMBER AUTH
   Portrait / landscape only.
   Desktop remains unchanged.
   ============================================================ */


/* =========================
   PHONE PORTRAIT
   ========================= */

@media (max-width: 600px) and (orientation: portrait) {

  /* ----- ACCESS SELECTOR ----- */

  #access {
    padding:
      max(16px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left)) !important;

    box-sizing: border-box;
  }

  #access .accessPanel {
    width: min(340px, 92vw) !important;
    max-width: 100% !important;

    padding: 0 !important;
    margin: auto !important;
  }

  #access .accessTitle {
    font-size: clamp(16px, 5vw, 21px) !important;
    line-height: 1.15 !important;
    margin-bottom: 8px !important;
  }

  #access .accessSub {
    font-size: 9px !important;
    margin-bottom: 24px !important;
  }

  #access .accessPanel button {
    width: 100% !important;

    padding: 9px 8px !important;
    margin: 3px 0 !important;

    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  #access .accessInfo {
    margin-top: 20px !important;

    font-size: 8px !important;
    line-height: 1.7 !important;
  }

  #access .accessBack {
    margin-top: 18px !important;
    font-size: 9px !important;
  }


  /* ----- MEMBER LOGIN / MFA ----- */

  #connecting:has(#nativeAuthPanel) {
    overflow-y: auto !important;
    align-items: center !important;

    padding:
      max(16px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left)) !important;

    box-sizing: border-box;
  }

  #nativeAuthPanel {
    width: 100% !important;
    max-width: 100% !important;

    padding: 0 !important;
    margin: auto !important;

    box-sizing: border-box;
  }

  #nativeAuthPanel .ansiLoginBox {
    width: min(330px, 92vw) !important;
    max-width: 100% !important;

    margin: auto !important;
    padding: 0 !important;
  }

  #nativeAuthPanel .ansiTitle {
    font-size: clamp(18px, 5.8vw, 23px) !important;
    line-height: 1.1 !important;

    margin-bottom: 6px !important;
  }

  #nativeAuthPanel .ansiSubTitle {
    font-size: 9px !important;

    margin-bottom: 25px !important;
  }

  #nativeAuthPanel .ansiRow {
    margin-bottom: 17px !important;
  }

  #nativeAuthPanel .ansiPrompt {
    margin-bottom: 4px !important;

    font-size: 9px !important;
  }

  #nativeAuthPanel .ansiInput {
    width: 100% !important;
    height: 34px !important;

    padding: 3px 4px !important;

    font-size: 16px !important;

    box-sizing: border-box;
  }

  #nativeAuthPanel .ansiMessage {
    margin-bottom: 18px !important;

    font-size: 9px !important;
    line-height: 1.55 !important;
  }

  #nativeAuthPanel .ansiActions {
    margin-top: 18px !important;

    gap: 5px !important;

    flex-direction: column !important;
    align-items: center !important;
  }

  #nativeAuthPanel .ansiButton {
    width: auto !important;

    padding: 7px 10px !important;

    font-size: 10px !important;
  }

  #nativeAuthPanel .ansiButton:last-child {
    font-size: 9px !important;
  }

}


/* =========================
   PHONE LANDSCAPE
   ========================= */

@media (orientation: landscape) and (max-height: 600px) {

  /* ----- ACCESS SELECTOR ----- */

  #access {
    overflow-y: auto !important;

    padding:
      max(8px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left)) !important;

    box-sizing: border-box;
  }

  #access .accessPanel {
    width: min(440px, 78vw) !important;

    padding: 0 !important;
    margin: auto !important;
  }

  #access .accessTitle {
    font-size: clamp(15px, 2.7vw, 20px) !important;

    margin-bottom: 3px !important;
  }

  #access .accessSub {
    margin-bottom: 10px !important;

    font-size: 8px !important;
  }

  #access .accessPanel button {
    padding: 5px 8px !important;
    margin: 1px 0 !important;

    font-size: 9px !important;
  }

  #access .accessInfo {
    margin-top: 8px !important;

    font-size: 7px !important;
    line-height: 1.35 !important;
  }

  #access .accessBack {
    margin-top: 7px !important;

    font-size: 8px !important;
  }


  /* ----- MEMBER LOGIN / MFA ----- */

  #connecting:has(#nativeAuthPanel) {
    overflow-y: auto !important;
    align-items: center !important;

    padding:
      max(7px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(7px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left)) !important;

    box-sizing: border-box;
  }

  #nativeAuthPanel {
    width: 100% !important;

    padding: 0 !important;
    margin: auto !important;
  }

  #nativeAuthPanel .ansiLoginBox {
    width: min(390px, 72vw) !important;

    margin: auto !important;
    padding: 0 !important;
  }

  #nativeAuthPanel .ansiTitle {
    font-size: clamp(17px, 2.8vw, 22px) !important;

    margin-bottom: 3px !important;
  }

  #nativeAuthPanel .ansiSubTitle {
    margin-bottom: 12px !important;

    font-size: 8px !important;
  }

  #nativeAuthPanel .ansiRow {
    margin-bottom: 9px !important;
  }

  #nativeAuthPanel .ansiPrompt {
    margin-bottom: 2px !important;

    font-size: 8px !important;
  }

  #nativeAuthPanel .ansiInput {
    height: 28px !important;

    padding: 2px 4px !important;

    font-size: 14px !important;
  }

  #nativeAuthPanel .ansiMessage {
    margin-bottom: 9px !important;

    font-size: 8px !important;
    line-height: 1.35 !important;
  }

  #nativeAuthPanel .ansiActions {
    margin-top: 9px !important;

    gap: 8px !important;

    flex-direction: row !important;
    justify-content: center !important;
  }

  #nativeAuthPanel .ansiButton {
    width: auto !important;

    padding: 4px 7px !important;

    font-size: 9px !important;
  }

  #nativeAuthPanel .ansiButton:last-child {
    font-size: 8px !important;
  }

}


/* ============================================================
   MOBILE ACCESS SELECTOR — hide redundant large heading
   ============================================================ */

@media (max-width: 600px) and (orientation: portrait) {

  #access .accessTitle {
    display: none !important;
  }

  #access .accessSub {
    margin-bottom: 24px !important;
  }

}

@media (orientation: landscape) and (max-height: 600px) {

  #access .accessTitle {
    display: none !important;
  }

}


/* ============================================================
   UNDNYC.NET // CLICKABLE ESC PROMPTS
   ============================================================ */

#boot .skip,
#access .accessBack {
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

#boot .skip:hover,
#boot .skip:active,
#access .accessBack:hover,
#access .accessBack:active {
  color: #baffc9 !important;
  text-shadow:
    0 0 4px rgba(80,255,120,.85),
    0 0 9px rgba(0,255,80,.45);
}


/* ============================================================
   UNDNYC HERO v7 — responsive artwork framing
   ============================================================ */

/* Desktop / laptop */
#hero .heroArt {
  background-size: cover !important;
  background-position: center center !important;
  background-color: #000 !important;
}

/* Portrait phones */
@media (max-width: 600px) and (orientation: portrait) {
  #hero .heroArt {
    background-size: cover !important;
    background-position: 50% center !important;
  }
}

/* Landscape phones */
@media (orientation: landscape) and (max-height: 600px) {
  #hero .heroArt {
    background-size: cover !important;
    background-position: center center !important;
  }
}

/* Wide desktop displays */
@media (min-aspect-ratio: 2/1) {
  #hero .heroArt {
    background-size: contain !important;
    background-position: center center !important;
  }
}

/* ============================================================
   UNDNYC HERO v7 — desktop framing refinement
   ============================================================ */

@media (min-width: 601px) {
  #hero .heroArt {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  #hero .heroOverlay {
    justify-content: flex-end !important;
    padding-bottom: 6.5vh !important;
  }
}


/* UNDNYC HERO v7 — connect position refinement */
@media (min-width: 601px) {
  #hero .heroOverlay {
    padding-bottom: 10vh !important;
  }
}

/* UNDNYC HERO v7 — connect position refinement */
@media (min-width: 601px) {
  #hero .heroOverlay {
    padding-bottom: 10vh !important;
  }
}

/* ============================================================
   UNDNYC HERO v7 — terminal-style connect prompt
   ============================================================ */

#hero .connect {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  padding: 6px 10px !important;

  color: #75ff91 !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;

  text-shadow:
    0 0 4px rgba(80,255,120,.85),
    0 0 10px rgba(0,255,80,.35) !important;

  cursor: pointer;
}

#hero .connect:hover,
#hero .connect:focus-visible {
  color: #c2ffcf !important;

  text-shadow:
    0 0 5px rgba(140,255,165,1),
    0 0 12px rgba(40,255,90,.65),
    0 0 20px rgba(0,255,80,.25) !important;
}

#hero .connect:active {
  transform: translateY(1px);
}


/* UNDNYC HERO v7 — subtle Cyber Warrior face emphasis */
#hero .heroArt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background:
    radial-gradient(
      ellipse 18% 28% at 50% 39%,
      rgba(90,255,120,.13) 0%,
      rgba(40,255,90,.06) 35%,
      rgba(0,0,0,0) 72%
    );

  mix-blend-mode: screen;
}

/* ============================================================
   UNDNYC HERO v7 — responsive Cyber Warrior focal framing
   Wide screen = NYC panorama
   Small screen = progressively closer Cyber Warrior
   ============================================================ */

/* Large desktop — show the complete composition */
@media (min-width: 1400px) {
  #hero .heroArt {
    background-size: contain !important;
    background-position: 50% 50% !important;
    background-repeat: no-repeat !important;
  }
}

/* Standard desktop / laptop — slight push toward the warrior */
@media (min-width: 1000px) and (max-width: 1399px) {
  #hero .heroArt {
    background-size: auto 100% !important;
    background-position: 50% 50% !important;
    background-repeat: no-repeat !important;
  }
}

/* Tablet / small laptop — closer */
@media (min-width: 601px) and (max-width: 999px) {
  #hero .heroArt {
    background-size: auto 115% !important;
    background-position: 50% 50% !important;
    background-repeat: no-repeat !important;
  }
}

/* Phone portrait — fit complete hero composition */
@media (max-width: 600px) and (orientation: portrait) {
  #hero .heroArt {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
}

/* Phone landscape — closer than desktop, but retain some NYC */
@media (max-height: 600px) and (orientation: landscape) {
  #hero .heroArt {
    background-size: auto 112% !important;
    background-position: 50% 50% !important;
    background-repeat: no-repeat !important;
  }
}


/* ============================================================
   UNDNYC OZZY LOGOFF // CYBER K9
   ============================================================ */

#logoff {
  padding: 0 !important;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

#logoff .ozzyLogoffArt {
  position: absolute;
  inset: 0;

  background:
    url("/undnyc-logoff-ozzy-v2.png?v=1")
    center center / contain
    no-repeat;

  background-color: #000;

  filter:
    contrast(1.06)
    saturate(1.08);
}

/* Real terminal reconnect control */
#logoffReconnect {
  position: absolute;
  z-index: 3;

  left: 50%;
  bottom: 6.5vh;
  transform: translateX(-50%);

  width: auto;
  height: auto;

  border: 0;
  padding: 6px 10px;

  background: transparent;
  color: #75ff91;

  font: inherit;
  font-weight: 700;
  letter-spacing: .12em;
  white-space: nowrap;

  text-shadow:
    0 0 4px rgba(80,255,120,.85),
    0 0 10px rgba(0,255,80,.35);

  cursor: pointer;
  touch-action: manipulation;
}

#logoffReconnect:hover,
#logoffReconnect:focus-visible {
  color: #c2ffcf;
  outline: 0;

  text-shadow:
    0 0 5px rgba(140,255,165,1),
    0 0 12px rgba(40,255,90,.65),
    0 0 20px rgba(0,255,80,.25);
}

#logoffReconnect:active {
  transform: translateX(-50%) translateY(1px);
}

/* Tablet / smaller displays: move closer to Ozzy */
@media (min-width: 601px) and (max-width: 1000px) {
  #logoff .ozzyLogoffArt {
    background-size: auto 108%;
    background-position: center center;
  }
}

/* Phone portrait: Ozzy is the focal point */
@media (max-width: 600px) and (orientation: portrait) {
  #logoff .ozzyLogoffArt {
    background-size: auto 118%;
    background-position: 50% center;
  }

  #logoffReconnect {
    bottom: calc(3vh + env(safe-area-inset-bottom));
    width: 86vw;
    height: 58px;
  }
}

/* Phone landscape */
@media (orientation: landscape) and (max-height: 600px) {
  #logoff .ozzyLogoffArt {
    background-size: auto 110%;
    background-position: center center;
  }

  #logoffReconnect {
    bottom: calc(2vh + env(safe-area-inset-bottom));
    height: 48px;
  }
}


/* UNDNYC OZZY v2 — responsive focal framing */

/* Large desktop: show the complete panorama */
@media (min-width: 1400px) {
  #logoff .ozzyLogoffArt {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
}

/* Normal desktop / laptop */
@media (min-width: 1000px) and (max-width: 1399px) {
  #logoff .ozzyLogoffArt {
    background-size: auto 100% !important;
    background-position: 50% 50% !important;
    background-repeat: no-repeat !important;
  }
}

/* Tablet: Ozzy becomes more prominent */
@media (min-width: 601px) and (max-width: 999px) {
  #logoff .ozzyLogoffArt {
    background-size: auto 112% !important;
    background-position: 50% 50% !important;
    background-repeat: no-repeat !important;
  }
}

/* Phone portrait: focus strongly on Ozzy */
@media (max-width: 600px) and (orientation: portrait) {
  #logoff .ozzyLogoffArt {
    background-size: auto 125% !important;
    background-position: 50% 50% !important;
    background-repeat: no-repeat !important;
  }

  #logoffReconnect {
    bottom: calc(5vh + env(safe-area-inset-bottom)) !important;
    font-size: clamp(9px, 3vw, 12px) !important;
  }
}

/* Phone landscape */
@media (orientation: landscape) and (max-height: 600px) {
  #logoff .ozzyLogoffArt {
    background-size: auto 112% !important;
    background-position: 50% 50% !important;
    background-repeat: no-repeat !important;
  }

  #logoffReconnect {
    bottom: calc(4vh + env(safe-area-inset-bottom)) !important;
    font-size: 10px !important;
  }
}

/* UNDNYC OZZY v2 — reconnect prompt visibility */
#logoffReconnect {
  bottom: 2.2vh !important;

  padding: 8px 14px !important;

  color: #baffc9 !important;
  font-size: clamp(12px, 1vw, 16px) !important;
  font-weight: 800 !important;
  letter-spacing: .14em !important;

  background:
    radial-gradient(
      ellipse at center,
      rgba(0,0,0,.82) 0%,
      rgba(0,0,0,.58) 52%,
      rgba(0,0,0,0) 78%
    ) !important;

  text-shadow:
    0 0 3px #000,
    0 0 6px #000,
    0 0 5px rgba(110,255,140,1),
    0 0 12px rgba(0,255,80,.75) !important;
}

@media (max-width:600px) and (orientation:portrait) {
  #logoffReconnect {
    bottom: calc(2vh + env(safe-area-inset-bottom)) !important;
    font-size: clamp(10px,3vw,13px) !important;
  }
}

@media (orientation:landscape) and (max-height:600px) {
  #logoffReconnect {
    bottom: calc(1.5vh + env(safe-area-inset-bottom)) !important;
    font-size:10px !important;
  }
}

/* UNDNYC OZZY — blinking reconnect prompt */
#logoffReconnect {
  animation: ozzyReconnectBlink 1.15s steps(1, end) infinite !important;
}

@keyframes ozzyReconnectBlink {
  0%, 54% {
    opacity: 1;
  }

  55%, 100% {
    opacity: .12;
  }
}

/* Keep prompt visible while hovering/focused */
#logoffReconnect:hover,
#logoffReconnect:focus-visible {
  animation: none !important;
  opacity: 1 !important;
}

/* ---------------------------------------------------------
   Forced password-change notice
   --------------------------------------------------------- */

#nativeAuthPanel .ansiNotice {
  margin: 18px auto 24px;
  max-width: 520px;
  padding: 0 18px;

  text-align: center;
  line-height: 1.6;

  color: #00ff66;
  font-family: inherit;
  font-size: 0.9rem;

  text-shadow:
    0 0 6px rgba(0, 255, 102, 0.35);
}

@media (max-width: 600px) {
  #nativeAuthPanel .ansiNotice {
    margin: 14px auto 20px;
    padding: 0 10px;
    font-size: 0.82rem;
  }
}

/* Forced password-change action */
#forcedPasswordForm .ansiActions .ansiButton::before,
#forcedPasswordForm .ansiActions .ansiButton::after {
  content: none !important;
}

#forcedPasswordForm .ansiActions .ansiButton {
  width: auto;
  min-width: 220px;
  margin: 0 auto;
}

/* ============================================================
   UNDNYC.NET — CRT POWER-ON
   BIOS -> phosphor ignition -> Cyber Warrior
   ============================================================ */

.crtPowerScreen {
  background: #000 !important;
  overflow: hidden !important;
  z-index: 40;
}

.crtPowerScreen.active {
  display: block;
}

.crtPowerScreen > div {
  pointer-events: none;
}

/* Center ignition point */
.crtPowerDot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #effff5;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.1);
  box-shadow:
    0 0 4px #fff,
    0 0 10px rgba(180,255,210,.95),
    0 0 24px rgba(40,255,125,.85),
    0 0 55px rgba(0,255,100,.55);
}

/* Horizontal CRT ignition line */
.crtPowerLine {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 1px;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: rgba(235,255,242,.98);
  box-shadow:
    0 0 3px #fff,
    0 0 8px rgba(180,255,210,.95),
    0 0 18px rgba(40,255,125,.8),
    0 0 40px rgba(0,255,100,.48);
}

/* Phosphor illumination as the line opens vertically */
.crtPowerBloom {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 1px;
  opacity: 0;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(
      ellipse at center,
      rgba(220,255,235,.90) 0%,
      rgba(75,255,145,.34) 25%,
      rgba(0,100,45,.16) 52%,
      rgba(0,0,0,0) 76%
    );
  filter: blur(2px);
}

/* Fine CRT scanlines */
.crtPowerRaster {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(150,255,190,.11) 0,
      rgba(150,255,190,.11) 1px,
      transparent 1px,
      transparent 3px
    );
}

/* Electronic interference */
.crtPowerNoise {
  position: absolute;
  inset: -10%;
  opacity: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      rgba(170,255,205,.08) 3px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 17px,
      rgba(80,255,140,.035) 18px,
      transparent 19px
    );
}


/* ---- POWER-ON SEQUENCE ---- */

.crtPowerScreen.crt-start .crtPowerDot {
  animation: undnycCrtDot 1100ms ease-out forwards;
}

.crtPowerScreen.crt-start .crtPowerLine {
  animation: undnycCrtLine 1100ms cubic-bezier(.20,.75,.20,1) forwards;
}

.crtPowerScreen.crt-start .crtPowerBloom {
  animation: undnycCrtBloom 1100ms cubic-bezier(.20,.75,.20,1) forwards;
}

.crtPowerScreen.crt-start .crtPowerRaster {
  animation: undnycCrtRaster 1100ms linear forwards;
}

.crtPowerScreen.crt-start .crtPowerNoise {
  animation: undnycCrtNoise 1100ms steps(7,end) forwards;
}


@keyframes undnycCrtDot {

  0% {
    opacity: 0;
    transform: translate(-50%,-50%) scale(.1);
  }

  7% {
    opacity: 1;
    transform: translate(-50%,-50%) scale(.65);
  }

  17% {
    opacity: 1;
    transform: translate(-50%,-50%) scale(2.1);
  }

  30% {
    opacity: .85;
    transform: translate(-50%,-50%) scale(1);
  }

  48% {
    opacity: .35;
    transform: translate(-50%,-50%) scale(5);
  }

  62%,
  100% {
    opacity: 0;
  }
}


@keyframes undnycCrtLine {

  0%,
  8% {
    width: 0;
    height: 1px;
    opacity: 0;
  }

  15% {
    width: 3%;
    height: 1px;
    opacity: 1;
  }

  32% {
    width: 48%;
    height: 1px;
    opacity: 1;
  }

  46% {
    width: 94%;
    height: 2px;
    opacity: 1;
  }

  56% {
    width: 100%;
    height: 2px;
    opacity: 1;
  }

  69% {
    width: 100%;
    height: 6px;
    opacity: .90;
  }

  82% {
    width: 100%;
    height: 28%;
    opacity: .38;
  }

  100% {
    width: 100%;
    height: 100%;
    opacity: 0;
  }
}


@keyframes undnycCrtBloom {

  0%,
  43% {
    height: 1px;
    opacity: 0;
  }

  55% {
    height: 3px;
    opacity: .75;
  }

  68% {
    height: 12%;
    opacity: .55;
  }

  82% {
    height: 70%;
    opacity: .28;
  }

  94% {
    height: 100%;
    opacity: .12;
  }

  100% {
    height: 100%;
    opacity: 0;
  }
}


@keyframes undnycCrtRaster {

  0%,
  55% {
    opacity: 0;
  }

  68% {
    opacity: .42;
  }

  80% {
    opacity: .28;
  }

  100% {
    opacity: 0;
  }
}


@keyframes undnycCrtNoise {

  0%,
  58% {
    opacity: 0;
    transform: translate(0,0);
  }

  63% {
    opacity: .36;
    transform: translate(-1%,1%);
  }

  68% {
    opacity: .17;
    transform: translate(1%,-1%);
  }

  74% {
    opacity: .30;
    transform: translate(0,1%);
  }

  81% {
    opacity: .12;
    transform: translate(-1%,0);
  }

  90% {
    opacity: .06;
    transform: translate(0,0);
  }

  100% {
    opacity: 0;
  }
}


/* Cyber Warrior resolves through the dying CRT interference */
#hero.crt-reveal .heroArt {
  animation: undnycHeroCrtReveal 420ms ease-out both;
}

#hero.crt-reveal .heroOverlay {
  animation: undnycHeroOverlayReveal 520ms ease-out both;
}

@keyframes undnycHeroCrtReveal {

  0% {
    opacity: 0;
    filter:
      brightness(2.2)
      contrast(1.7)
      blur(3px);
    transform: scaleY(.08) scaleX(1.02);
  }

  24% {
    opacity: .78;
    filter:
      brightness(1.8)
      contrast(1.5)
      blur(1.5px);
    transform: scaleY(.55) scaleX(1.01);
  }

  55% {
    opacity: 1;
    filter:
      brightness(1.25)
      contrast(1.18)
      blur(.4px);
    transform: scaleY(1.015) scaleX(1);
  }

  72% {
    transform: scaleY(.992) scaleX(1);
  }

  100% {
    opacity: 1;
    filter:
      brightness(1)
      contrast(1)
      blur(0);
    transform: scale(1);
  }
}

@keyframes undnycHeroOverlayReveal {

  0%,
  45% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* CRT final reveal phase:
   let the Cyber Warrior become visible underneath the dying interference */
.crtPowerScreen.crt-reveal-phase {
  background: transparent !important;
}

/* ============================================================
   CRT -> CYBER WARRIOR SMOOTH HANDOFF
   Keep Matrix rain out of the transition.
   ============================================================ */

/* Hero is already rendered underneath CRT before ignition begins. */
#hero.crt-underlay {
  visibility: visible !important;
}

#hero.crt-underlay .heroArt,
#hero.crt-underlay .heroOverlay {
  opacity: 0 !important;
}

/*
 * Instead of suddenly making the CRT screen transparent,
 * fade its black surface away onto the already-rendered hero.
 */
.crtPowerScreen.crt-handoff {
  animation: undnycCrtHandoff 340ms ease-out forwards;
}

@keyframes undnycCrtHandoff {
  0% {
    background-color: #000;
  }

  35% {
    background-color: rgba(0,0,0,.92);
  }

  70% {
    background-color: rgba(0,0,0,.45);
  }

  100% {
    background-color: rgba(0,0,0,0);
  }
}

/* Slightly smoother hero materialization during handoff. */
#hero.crt-reveal .heroArt {
  animation-duration: 500ms !important;
  animation-timing-function: cubic-bezier(.16,.72,.25,1) !important;
}

/* ============================================================
   CRT COMPLETED HERO STATE
   Prevent the original 1.2s hero reveal from restarting after
   the CRT-specific reveal animation is removed.
   ============================================================ */

#hero.crt-complete .heroArt {
  animation: none !important;
  opacity: 1 !important;
  clip-path: inset(0 0 0 0) !important;
  transform: none !important;
  filter: contrast(1.06) saturate(1.12) !important;
}
