:root {
  --bg-primary: #000000;
  --surface: rgba(12, 14, 18, 0.82);
  --surface-solid: rgba(15, 18, 24, 0.94);
  --surface-soft: rgba(27, 32, 40, 0.88);
  --text-primary: #ffffff;
  --text-secondary: #e4e6eb;
  --text-muted: #b8bec8;
  --accent-primary: #00d4ff;
  --success: #78ffb7;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.hud {
  position: relative;
  width: 600px;
  height: 600px;
  overflow: hidden;
  background: var(--bg-primary);
}

.student-photo {
  position: absolute;
  inset: 0;
  width: 600px;
  height: 600px;
  object-fit: cover;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 620ms cubic-bezier(0.4, 0.04, 0.5, 1),
    transform 620ms cubic-bezier(0.4, 0.04, 0.5, 1);
  cursor: pointer;
}

.hud.is-transitioning .student-photo {
  opacity: 0.24;
  will-change: opacity, transform;
}

.brand-logo {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 64px;
  height: 64px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.46));
}

.context-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 224px;
  padding: 42px 24px 28px;
  display: grid;
  grid-template-columns: 1fr;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(6, 8, 12, 0.72) 58%, rgba(0, 0, 0, 0) 100%);
  cursor: pointer;
  outline: none;
  z-index: 1;
  transition:
    box-shadow 300ms cubic-bezier(0.4, 0.04, 0.5, 1),
    opacity 300ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

.identity {
  align-self: end;
  min-width: 0;
}

.home-name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.alert-text {
  margin: 0 0 8px;
  color: var(--success);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.18;
}

h1 {
  margin: 0;
  max-width: 360px;
  color: var(--text-primary);
  font-size: 56px;
  font-weight: 820;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-name-row h1 {
  flex: 1 1 auto;
  max-width: none;
}

.suggestion-text {
  margin: 12px 0 0;
  max-width: 376px;
  color: var(--text-secondary);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.22;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.tag-list {
  align-self: center;
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.tag {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 32px;
  line-height: 1;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.hud.is-arrival-mode {
  background: #000000;
}

.hud.is-arrival-mode .student-photo,
.hud.is-arrival-mode .brand-logo,
.hud.is-arrival-mode .context-panel {
  opacity: 0;
  pointer-events: none;
}

.arrival-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.arrival-layer.is-hidden {
  display: none;
}

.arrival-card {
  position: absolute;
  left: 50%;
  width: min(536px, calc(100% - 48px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(28, 32, 40, 0.96) 0%, rgba(12, 15, 20, 0.94) 100%);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.46),
    0 0 22px rgba(0, 212, 255, 0.18);
  opacity: 0;
  transform: translateX(-50%) translateY(-14px) scale(0.96);
  transition:
    opacity 260ms cubic-bezier(0.4, 0.04, 0.5, 1),
    transform 300ms cubic-bezier(0.4, 0.04, 0.5, 1);
  will-change: opacity, transform;
}

.arrival-card {
  top: 234px;
  min-height: 132px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: 26px;
  cursor: pointer;
  pointer-events: auto;
}

.arrival-card.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.arrival-card.is-shrinking {
  opacity: 0;
  transform: translateX(-50%) translateY(4px) scale(0.72);
}

.arrival-photo {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  object-fit: cover;
}

.arrival-copy {
  min-width: 0;
}

.arrival-kicker {
  margin: 0 0 7px;
  color: var(--success);
  font-size: 17px;
  font-weight: 780;
  line-height: 1.05;
}

.arrival-card h2 {
  max-width: 300px;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 36px;
  font-weight: 840;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrival-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 34px;
  line-height: 1;
}

.arrival-icon.is-hidden {
  display: none;
}

.arrival-card.is-hidden {
  visibility: hidden;
}

.overlay {
  position: absolute;
  inset: 8px;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(12, 16, 22, 0.96) 0%, rgba(6, 8, 12, 0.93) 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 220ms cubic-bezier(0.4, 0.04, 0.5, 1),
    transform 260ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

.overlay.is-hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px);
}

.menu-overlay,
.detail-overlay {
  padding: 22px;
}

.overlay-header {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.mini-photo {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  object-fit: cover;
}

.overlay-title-block {
  flex: 1 1 auto;
  min-width: 0;
}

.overlay-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex-wrap: nowrap;
}

.overlay-name-row h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-status {
  flex: 0 0 auto;
  max-width: 160px;
  margin-left: auto;
  color: var(--success);
  font-size: 20px;
  font-weight: 780;
  line-height: 0.98;
  white-space: pre-line;
  text-align: right;
}

.mini-tags {
  display: none;
  margin: 0 0 5px;
  min-height: 22px;
  color: var(--text-secondary);
  font-size: 22px;
  line-height: 1;
}

h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h2 {
  color: var(--text-primary);
  font-size: 34px;
  font-weight: 820;
  line-height: 1;
}

.menu-options {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-option {
  width: 100%;
  min-height: 96px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: var(--surface-soft);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition:
    transform 300ms cubic-bezier(0.6, 0, 0.4, 1),
    border-color 300ms cubic-bezier(0.4, 0.04, 0.5, 1),
    box-shadow 300ms cubic-bezier(0.4, 0.04, 0.5, 1),
    background 300ms cubic-bezier(0.4, 0.04, 0.5, 1);
}

.menu-option.is-selected,
.menu-option:focus-visible {
  transform: scale(0.97);
  border-color: rgba(0, 212, 255, 0.72);
  background: var(--surface-solid);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.36);
}

.menu-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 31px;
  line-height: 1;
}

.menu-label {
  display: block;
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.08;
}

.menu-summary {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.18;
}

.detail-title-row {
  margin-top: 20px;
}

.detail-eyebrow {
  margin: 0 0 6px;
  color: var(--accent-primary);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.1;
  text-transform: uppercase;
}

h3 {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 820;
  line-height: 1;
}

.detail-list {
  position: relative;
  max-height: 360px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: none;
}

.detail-list::-webkit-scrollbar {
  display: none;
}

.detail-item {
  min-height: 70px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: var(--surface-soft);
}

.detail-label {
  margin: 0 0 5px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1;
}

.detail-value {
  margin: 0;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 760;
  line-height: 1.18;
}

.info-overlay {
  padding: 22px;
}

.info-header-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: var(--surface-soft);
  font-size: 36px;
  line-height: 1;
}

.info-list {
  max-height: 416px;
  margin-top: 18px;
}

.info-section-label {
  margin: 4px 0 2px 4px;
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-keys {
  font-size: 17px !important;
  color: var(--text-secondary) !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
