* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: #050507;
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
  color: #e9e9f2;
}
#c {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.glass {
  background: rgba(20, 20, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  z-index: 5;
  transition: opacity 0.5s;
  flex-wrap: wrap;
}
#hud .brand {
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #cfcfe0;
}
#hud .brand span {
  color: #8a8aa0;
  font-weight: 400;
  letter-spacing: 0.06em;
}
#hud .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}
.hbtn {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  min-height: 40px;
}
.hbtn:hover {
  background: rgba(40, 40, 60, 0.7);
}
#contactBox {
  position: absolute;
  right: 0;
  top: 48px;
  width: 260px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.7;
  display: none;
}
#contactBox.show {
  display: block;
}
#pin {
  position: fixed;
  z-index: 4;
  transform: translate(-50%, -140%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: opacity 0.4s;
}
#pin .lbl {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}
#pin .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5ee3ff;
  box-shadow: 0 0 0 0 rgba(94, 227, 255, 0.6);
  animation: ping 1.6s infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 227, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(94, 227, 255, 0);
  }
}
#hint {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #9a9ab0;
  z-index: 4;
  text-align: center;
  padding: 0 16px;
  transition: opacity 0.4s;
}
#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #7c7c90;
  z-index: 6;
  background: #050507;
  transition: opacity 0.6s;
}
.hide {
  opacity: 0 !important;
  pointer-events: none !important;
}

#bezel {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 0;
  background: linear-gradient(180deg, #1a1b20 0%, #0e0f12 40%, #0b0b0e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
#bezel.on {
  opacity: 1;
}
#bezel::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 20px;
  right: 22px;
  bottom: 42px;
  border-radius: 5px;
  box-shadow:
    0 0 0 2px #050506,
    0 0 0 3px rgba(255, 255, 255, 0.04);
}
#bezel .bz-logo {
  position: absolute;
  bottom: 13px;
  left: 50%;
  transform: translateX(-50%);
  font:
    600 11px/1 Inter,
    sans-serif;
  letter-spacing: 0.38em;
  color: #4a4b56;
}
#bezel .bz-led {
  position: absolute;
  bottom: 17px;
  right: 34px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5ee3ff;
  box-shadow: 0 0 6px #5ee3ff;
}
#os.framed {
  left: 22px !important;
  top: 20px !important;
  right: 22px !important;
  bottom: 42px !important;
  width: auto !important;
  height: auto !important;
  border-radius: 5px;
}
#hint button {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 20, 32, 0.6);
  color: #e9e9f2;
  margin: 0 4px;
}

/* UEFI setup screen */
#uefi {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #05060a;
  color: #d6d6e4;
  font-family: 'JetBrains Mono', monospace;
  display: none;
  flex-direction: column;
}
#uefi.on {
  display: flex;
}
#uefi header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #22232e;
  flex-wrap: wrap;
  gap: 8px;
}
#uefi header b {
  color: var(--uefi-accent);
  letter-spacing: 0.1em;
}
#uefi nav {
  display: flex;
  gap: 4px;
  padding: 10px 24px;
  border-bottom: 1px solid #22232e;
  flex-wrap: wrap;
}
#uefi nav button {
  background: none;
  border: 0;
  color: #9a9ab0;
  padding: 8px 14px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}
#uefi nav button.on {
  background: var(--uefi-accent);
  color: #fff;
}
#uefi .bd {
  flex: 1;
  overflow: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  align-content: start;
}
#uefi .bx {
  border: 1px solid #22232e;
  border-radius: 12px;
  padding: 16px;
  background: #0b0c12;
}
#uefi .bx h4 {
  margin: 0 0 10px;
  font-size: 12px;
  color: #7c7c90;
  font-weight: 400;
  letter-spacing: 0.1em;
}
#uefi .kv {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}
#uefi .ub {
  height: 6px;
  border-radius: 3px;
  background: #1a1b24;
  margin-top: 6px;
}
#uefi .ub i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--uefi-accent);
}
#uefi footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 24px;
  border-top: 1px solid #22232e;
  flex-wrap: wrap;
}
#uefi footer button {
  font: inherit;
  border-radius: 10px;
  padding: 10px 16px;
  border: 1px solid #2a2b38;
  background: #11121a;
  color: #e9e9f2;
  cursor: pointer;
}
#uefi footer .p {
  background: var(--uefi-accent);
  border-color: transparent;
  color: #fff;
}
#uefi .ord div {
  padding: 10px 12px;
  border: 1px solid #22232e;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
