/* Mugshot Abduction game. Scoped to the ArrestedTN games app. */
.dry-records-alien-game{
  --alien-ink:#f6f2e8;
  --alien-muted:#b7c3bd;
  --alien-line:rgba(255,255,255,.18);
  --alien-panel:rgba(5,8,8,.78);
  --alien-panel-strong:rgba(3,5,6,.94);
  --alien-orange:#ff7a00;
  --alien-orange-soft:#ffb35b;
  --alien-teal:#42f5c8;
  --alien-danger:#ff493d;
  position:relative;
  width:100%;
  height:var(--dry-records-alien-height, 760px);
  min-height:520px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.12);
  border-radius:8px;
  background:#050606;
  color:var(--alien-ink);
  font-family:"Courier New", Courier, monospace;
  letter-spacing:0;
  isolation:isolate;
}

.dry-records-alien-game,
.dry-records-alien-game *{
  box-sizing:border-box;
}

.dry-records-alien-game button{
  font:inherit;
}

.dry-records-alien-game .alienCanvas{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  background:#070707;
  touch-action:none;
}

.dry-records-alien-game .alienHud{
  position:absolute;
  top:max(14px, env(safe-area-inset-top));
  left:max(14px, env(safe-area-inset-left));
  right:max(14px, env(safe-area-inset-right));
  z-index:5;
  display:grid;
  grid-template-columns:minmax(118px, 190px) minmax(104px, 132px) auto minmax(84px, 120px) 42px;
  align-items:start;
  gap:10px;
  pointer-events:none;
}

.dry-records-alien-game .alienHudPanel{
  min-height:38px;
  padding:8px 10px;
  border:1px solid var(--alien-line);
  background:var(--alien-panel);
  box-shadow:0 8px 24px rgba(0,0,0,.38);
  backdrop-filter:blur(10px);
}

.dry-records-alien-game .alienHudLabel{
  display:block;
  margin-bottom:5px;
  color:var(--alien-ink);
  font-size:10px;
  font-weight:800;
  line-height:1;
  text-transform:uppercase;
}

.dry-records-alien-game .alienHealthTrack{
  display:grid;
  grid-template-columns:repeat(10, 1fr);
  gap:3px;
  height:12px;
}

.dry-records-alien-game .alienHealthTrack span{
  min-width:0;
  background:#e9e9e9;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.22);
}

.dry-records-alien-game .alienHealthTrack span.is-empty{
  background:rgba(255,255,255,.12);
}

.dry-records-alien-game .alienHealthTrack span.is-critical{
  background:var(--alien-danger);
}

.dry-records-alien-game .alienTimer,
.dry-records-alien-game .alienScore{
  text-align:center;
  font-weight:900;
  line-height:1;
}

.dry-records-alien-game .alienTimer{
  justify-self:center;
  min-width:74px;
  font-size:22px;
}

.dry-records-alien-game .alienScore{
  justify-self:end;
  min-width:84px;
  font-size:20px;
}

.dry-records-alien-game .alienSlash{
  color:var(--alien-orange-soft);
  padding:0 3px;
}

.dry-records-alien-game .alienTaskPanel{
  justify-self:center;
  width:100%;
  min-width:0;
  font-size:11px;
  line-height:1.1;
}

.dry-records-alien-game .alienTaskLine{
  display:flex;
  justify-content:space-between;
  gap:8px;
  color:var(--alien-muted);
  white-space:nowrap;
}

.dry-records-alien-game .alienTaskLine + .alienTaskLine{
  margin-top:3px;
}

.dry-records-alien-game .alienTaskLine strong{
  color:var(--alien-ink);
  font-size:12px;
}

.dry-records-alien-game .alienIconButton{
  width:42px;
  height:38px;
  border:1px solid var(--alien-line);
  background:var(--alien-panel);
  color:var(--alien-ink);
  cursor:pointer;
  pointer-events:auto;
  box-shadow:0 8px 24px rgba(0,0,0,.38);
}

.dry-records-alien-game .alienIconButton:focus-visible,
.dry-records-alien-game .alienPrimaryButton:focus-visible,
.dry-records-alien-game .alienBeamButton:focus-visible{
  outline:2px solid var(--alien-orange-soft);
  outline-offset:3px;
}

.dry-records-alien-game .alienMinimap{
  position:absolute;
  right:max(14px, env(safe-area-inset-right));
  bottom:max(14px, env(safe-area-inset-bottom));
  z-index:5;
  width:144px;
  height:144px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(5,7,6,.72);
  box-shadow:0 12px 36px rgba(0,0,0,.46);
}

.dry-records-alien-game .alienScreen{
  position:absolute;
  inset:0;
  z-index:10;
  display:grid;
  place-items:center;
  padding:22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,122,0,.16), transparent 34%),
    rgba(0,0,0,.56);
  opacity:0;
  pointer-events:none;
  transition:opacity 180ms ease;
}

.dry-records-alien-game .alienScreen.is-open{
  opacity:1;
  pointer-events:auto;
}

.dry-records-alien-game .alienScreenPanel{
  width:min(430px, calc(100vw - 44px));
  padding:24px;
  border:1px solid rgba(255,255,255,.24);
  background:var(--alien-panel-strong);
  box-shadow:0 24px 70px rgba(0,0,0,.58);
  text-align:center;
}

.dry-records-alien-game .alienKicker{
  margin:0 0 10px;
  color:var(--alien-orange-soft);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.dry-records-alien-game .alienScreenTitle{
  margin:0;
  color:var(--alien-ink);
  font-size:clamp(34px, 7vw, 56px);
  line-height:.92;
  letter-spacing:0;
  text-shadow:4px 4px 0 #171717;
}

.dry-records-alien-game .alienScreenCopy{
  margin:16px auto 22px;
  max-width:32ch;
  color:#dddddd;
  font-size:15px;
  line-height:1.45;
}

.dry-records-alien-game .alienLoadStatus{
  min-height:18px;
  margin:14px 0 0;
  color:var(--alien-muted);
  font-size:12px;
  line-height:1.35;
}

.dry-records-alien-game .alienPrimaryButton{
  min-width:138px;
  min-height:44px;
  border:0;
  background:var(--alien-orange);
  color:#1b0c00;
  cursor:pointer;
  font-size:18px;
  font-weight:900;
  box-shadow:0 8px 0 #913f00;
}

.dry-records-alien-game .alienPrimaryButton:disabled{
  cursor:wait;
  filter:grayscale(.65) brightness(.76);
  box-shadow:0 8px 0 #4b4b4b;
}

.dry-records-alien-game .alienPrimaryButton:not(:disabled):active{
  transform:translateY(3px);
  box-shadow:0 5px 0 #913f00;
}

.dry-records-alien-game .alienTouchControls{
  position:absolute;
  inset:auto 0 max(24px, env(safe-area-inset-bottom)) 0;
  z-index:6;
  display:none;
  align-items:end;
  justify-content:space-between;
  padding:0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
  pointer-events:none;
}

.dry-records-alien-game .alienStick{
  position:relative;
  width:112px;
  height:112px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:50%;
  background:rgba(0,0,0,.34);
  box-shadow:inset 0 0 32px rgba(255,255,255,.08);
  pointer-events:auto;
  touch-action:none;
}

.dry-records-alien-game .alienStickKnob{
  position:absolute;
  top:50%;
  left:50%;
  width:42px;
  height:42px;
  border-radius:50%;
  background:#e9e9e9;
  transform:translate(-50%, -50%);
  box-shadow:0 10px 24px rgba(0,0,0,.38);
}

.dry-records-alien-game .alienBeamButton{
  position:relative;
  width:86px;
  height:86px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:50%;
  background:rgba(255,122,0,.86);
  box-shadow:0 0 34px rgba(255,122,0,.34);
  pointer-events:auto;
  touch-action:none;
}

.dry-records-alien-game .alienBeamButton span,
.dry-records-alien-game .alienBeamButton span::before,
.dry-records-alien-game .alienBeamButton span::after{
  position:absolute;
  left:50%;
  display:block;
  border:3px solid #2a1200;
  border-radius:50%;
  transform:translateX(-50%);
  content:"";
}

.dry-records-alien-game .alienBeamButton span{
  top:22px;
  width:34px;
  height:12px;
}

.dry-records-alien-game .alienBeamButton span::before{
  top:16px;
  width:48px;
  height:15px;
}

.dry-records-alien-game .alienBeamButton span::after{
  top:36px;
  width:62px;
  height:18px;
}

.dry-records-alien-game .alienBeamButton.is-active{
  filter:brightness(1.25);
  transform:scale(.96);
}

.dry-records-games-app .gamesAppView[data-game-view="abduction"]{
  height:calc(100svh - var(--games-shell-height));
  min-height:0;
  overflow:hidden;
}

.dry-records-games-app .dry-records-alien-game{
  width:100%;
  height:100% !important;
  min-height:0 !important;
  border:0;
  border-radius:0;
  box-shadow:none;
}

@media (pointer:coarse), (max-width:760px){
  .dry-records-alien-game .alienTouchControls{
    display:flex;
  }

  .dry-records-alien-game .alienHud{
    grid-template-columns:minmax(104px, 1fr) minmax(84px, 100px) 64px 72px 38px;
    gap:8px;
  }

  .dry-records-alien-game .alienHudPanel{
    min-height:34px;
    padding:7px 8px;
  }

  .dry-records-alien-game .alienTimer{
    min-width:62px;
    font-size:19px;
  }

  .dry-records-alien-game .alienScore{
    min-width:72px;
    font-size:18px;
  }

  .dry-records-alien-game .alienTaskPanel{
    font-size:10px;
  }

  .dry-records-alien-game .alienTaskLine strong{
    font-size:11px;
  }

  .dry-records-alien-game .alienIconButton{
    width:38px;
    height:34px;
  }

  .dry-records-alien-game .alienMinimap{
    width:112px;
    height:112px;
    bottom:calc(max(24px, env(safe-area-inset-bottom)) + 116px);
  }
}

@media (max-width:430px){
  .dry-records-alien-game .alienHud{
    left:8px;
    right:8px;
    grid-template-columns:minmax(92px, 1fr) 54px 58px 32px;
    gap:5px;
    grid-auto-rows:min-content;
  }

  .dry-records-alien-game .alienHudLabel{
    font-size:9px;
  }

  .dry-records-alien-game .alienHealthTrack{
    gap:2px;
  }

  .dry-records-alien-game .alienScore,
  .dry-records-alien-game .alienTimer{
    font-size:16px;
  }

  .dry-records-alien-game .alienTaskPanel{
    grid-column:1 / -1;
    grid-row:2;
    justify-self:start;
    display:flex;
    align-items:center;
    width:auto;
    min-height:26px;
    padding:6px 8px;
    gap:10px;
  }

  .dry-records-alien-game .alienTaskPanel .alienHudLabel{
    margin:0;
  }

  .dry-records-alien-game .alienTaskLine{
    gap:5px;
    font-size:9px;
  }

  .dry-records-alien-game .alienTaskLine + .alienTaskLine{
    margin-top:0;
  }

  .dry-records-alien-game .alienTaskLine strong{
    font-size:10px;
  }

  .dry-records-alien-game .alienIconButton{
    width:34px;
  }
}
