/* desktop.css — the physical "device" that represents the club's admin
   desktop: a status screen up top, a control panel with launcher keys
   below, styled after the reference sampler/workstation hardware. */

.device {
  width: 100%;
  max-width: 720px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--chassis-100), var(--chassis-200) 40%, var(--chassis-300));
  border: 1px solid var(--chassis-500);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  padding: 14px;
}

.device--boot .device__screen {
  animation: boot-flicker 900ms ease-out;
}
@keyframes boot-flicker {
  0% { opacity: 0.2; filter: brightness(2); }
  8% { opacity: 1; filter: brightness(0.6); }
  16% { opacity: 0.4; }
  24% { opacity: 1; filter: brightness(1.3); }
  100% { opacity: 1; filter: brightness(1); }
}

.device__screen-bezel {
  background: linear-gradient(180deg, var(--chassis-700), var(--chassis-800));
  border-radius: 8px;
  padding: 14px 14px 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 -2px 6px rgba(0, 0, 0, 0.3) inset;
}

.device__screen {
  background: radial-gradient(ellipse at 50% 0%, var(--screen-bg-raised), var(--screen-bg) 75%);
  border-radius: 4px;
  min-height: 148px;
  padding: 16px 18px;
  box-shadow: 0 0 0 1px #000 inset, 0 0 24px rgba(62, 209, 126, 0.08) inset;
  position: relative;
  overflow: hidden;
}

.crt-content {
  color: var(--phosphor-300);
  text-shadow: 0 0 6px rgba(62, 209, 126, 0.55);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.boot-line {
  padding: 3px 0;
  white-space: pre-wrap;
}
.boot-line--dim { color: var(--phosphor-700); }
.boot-line--clock { color: var(--phosphor-100); margin-top: 8px; }
.boot-line--hint { color: var(--phosphor-700); margin-top: 10px; font-size: 12px; }
.boot-line--alert { color: var(--red-300); text-shadow: 0 0 8px rgba(224, 74, 61, 0.6); }

.device__vents {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  padding: 8px 4px 0;
}
.device__vent-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--chassis-600);
}
.device__vent-dot--live {
  background: var(--phosphor-500);
  box-shadow: 0 0 5px var(--phosphor-500);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.device__panel {
  padding: 16px 8px 6px;
}

.device__brandrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 6px 14px;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.device__brand { color: var(--ink); font-weight: 600; }
.device__model { color: var(--ink-muted); }

.device__controls {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 4px 6px 20px;
  flex-wrap: wrap;
}

.dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dial__knob {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--orange-300), var(--orange-500) 55%, var(--orange-700));
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35), 0 0 0 3px var(--chassis-200), 0 0 0 4px var(--chassis-500);
  position: relative;
}
.dial__knob::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 2px; height: 14px;
  background: var(--chassis-900);
  transform: translateX(-50%);
  border-radius: 2px;
}
.dial__readout {
  background: var(--screen-bg);
  color: var(--phosphor-300);
  text-shadow: 0 0 5px rgba(62, 209, 126, 0.6);
  font-size: 13px;
  min-width: 32px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #000;
}
.dial__label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.device__keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 4px;
}

.key {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--chassis-500);
  background: linear-gradient(180deg, var(--chassis-100), var(--chassis-300));
  box-shadow: var(--shadow-hard);
  transition: transform 80ms ease;
}
.key:hover { transform: translateY(-1px); }
.key:active { transform: translateY(1px); box-shadow: 0 1px 1px rgba(0,0,0,0.2) inset; }

.key__led {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--chassis-500);
}
.key:not(.key--locked) .key__led {
  background: var(--phosphor-500);
  box-shadow: 0 0 6px var(--phosphor-500);
}
.key__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--ink);
}

.key--locked {
  background: linear-gradient(180deg, var(--chassis-200), var(--chassis-300));
  opacity: 0.75;
}
.key--locked .key__label { color: var(--ink-muted); }

.device__footrow {
  display: flex;
  justify-content: flex-end;
  padding: 14px 6px 4px;
}

.pinbutton {
  background: transparent;
  border: 1px solid var(--chassis-500);
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.pinbutton:hover { color: var(--ink); border-color: var(--chassis-600); }

@media (max-width: 480px) {
  .device__keys { grid-template-columns: 1fr; }
  .device__controls { gap: 18px; }
}
