/* DRY Records Mugshot Life. Loaded only by [dry_records_life_game]. */

.dry-records-life{
  --life-bg:#020604;
  --life-ink:#f8fafc;
  --life-muted:#9ab2a3;
  --life-line:rgba(134,239,172,.22);
  --life-panel:rgba(2,6,4,.72);
  --life-green:#22c55e;
  --life-blue:#38bdf8;
  --life-red:#fb7185;
  width:100%;
  max-width:100%;
  min-height:100svh;
  margin:0;
  overflow:hidden;
  color:var(--life-ink);
  background:
    radial-gradient(800px 420px at 18% 5%, rgba(34,197,94,.18), transparent 64%),
    radial-gradient(760px 400px at 92% 0%, rgba(56,189,248,.14), transparent 62%),
    var(--life-bg);
  font-family:ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing:0;
}

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

:where(.entry-content, .wp-block-post-content, .wp-block-group, .wp-block-column) > .dry-records-life{
  width:100%;
  max-width:100%;
  margin-top:0 !important;
  margin-bottom:0 !important;
}

.dry-records-life button,
.dry-records-life a{
  -webkit-tap-highlight-color:transparent;
}

.dry-records-life .lifeTopbar{
  position:sticky;
  top:0;
  z-index:12;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:58px;
  gap:14px;
  padding:8px clamp(12px, 3vw, 34px);
  border-bottom:1px solid var(--life-line);
  background:rgba(2,6,4,.86);
  backdrop-filter:blur(16px);
}

.dry-records-life .lifeBack{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:36px;
  height:36px;
  border:1px solid var(--life-line);
  border-radius:9px;
  color:#fff;
  background:rgba(255,255,255,.06);
  text-decoration:none;
  font-size:22px;
  line-height:1;
}

.dry-records-life .lifeBrand{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:2px;
}

.dry-records-life .lifeBrand span,
.dry-records-life .lifeStat span,
.dry-records-life .lifeStatus{
  color:var(--life-muted);
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.dry-records-life .lifeBrand strong{
  color:#fff;
  font-size:17px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.dry-records-life .lifeStats{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.dry-records-life .lifeStat{
  min-width:78px;
  padding:5px 9px;
  border:1px solid rgba(134,239,172,.15);
  border-radius:8px;
  background:rgba(255,255,255,.05);
  text-align:right;
}

.dry-records-life .lifeStat strong{
  display:block;
  margin-top:1px;
  color:#fff;
  font-size:18px;
  line-height:1;
}

.dry-records-life .lifeShell{
  position:relative;
  display:grid;
  grid-template-rows:minmax(0, 1fr) auto;
  min-height:calc(100svh - 58px);
}

.dry-records-life .lifeCanvasWrap{
  position:relative;
  min-height:0;
  overflow:hidden;
}

.dry-records-life .lifeCanvasWrap::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(rgba(34,197,94,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,.05) 1px, transparent 1px);
  background-size:44px 44px;
  mix-blend-mode:screen;
}

.dry-records-life .lifeCanvas{
  position:relative;
  z-index:0;
  display:block;
  width:100%;
  height:100%;
  min-height:calc(100svh - 178px);
  cursor:crosshair;
  touch-action:none;
}

.dry-records-life .lifeControls{
  position:relative;
  z-index:4;
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto auto;
  gap:9px;
  padding:9px clamp(10px, 3vw, 26px);
  border-top:1px solid var(--life-line);
  background:rgba(2,6,4,.90);
  backdrop-filter:blur(16px);
}

.dry-records-life .lifeRuleButtons,
.dry-records-life .lifeActionButtons{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
}

.dry-records-life .lifeControls button{
  min-height:34px;
  padding:0 11px;
  border:1px solid rgba(134,239,172,.20);
  border-radius:8px;
  color:#d1fae5;
  background:rgba(255,255,255,.06);
  cursor:pointer;
  font:850 13px/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dry-records-life .lifeControls button:hover{
  border-color:rgba(134,239,172,.42);
  background:rgba(34,197,94,.12);
}

.dry-records-life .lifeControls button.is-active,
.dry-records-life .lifeControls button[data-role="playButton"]{
  color:#03130c;
  border-color:rgba(134,239,172,.78);
  background:linear-gradient(180deg, #86efac, #22c55e);
}

.dry-records-life .lifeSpeed{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:0 10px;
  border:1px solid rgba(134,239,172,.16);
  border-radius:8px;
  color:#d1fae5;
  background:rgba(255,255,255,.04);
  font-size:12px;
  font-weight:850;
}

.dry-records-life .lifeSpeed input{
  width:110px;
  accent-color:var(--life-green);
}

.dry-records-life .lifeStatus{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:16px;
  color:#86efac;
  text-transform:none;
  letter-spacing:0;
}

.dry-records-life .lifeStatus strong{
  color:#fff;
}

@media (max-width:780px){
  .dry-records-life .lifeTopbar{
    min-height:54px;
    padding:7px 9px;
  }

  .dry-records-life .lifeBrand span{
    display:none;
  }

  .dry-records-life .lifeBrand strong{
    font-size:15px;
  }

  .dry-records-life .lifeStats{
    gap:5px;
  }

  .dry-records-life .lifeStat{
    min-width:54px;
    padding:5px 6px;
  }

  .dry-records-life .lifeStat span{
    font-size:9px;
  }

  .dry-records-life .lifeStat strong{
    font-size:15px;
  }

  .dry-records-life .lifeShell{
    min-height:calc(100svh - 54px);
  }

  .dry-records-life .lifeCanvas{
    min-height:calc(100svh - 240px);
  }

  .dry-records-life .lifeControls{
    grid-template-columns:1fr;
    gap:8px;
    padding:9px;
  }

  .dry-records-life .lifeRuleButtons,
  .dry-records-life .lifeActionButtons{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:7px;
  }

  .dry-records-life .lifeActionButtons{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }

  .dry-records-life .lifeControls button{
    min-width:0;
    min-height:32px;
    padding:0 5px;
    font-size:11px;
  }

  .dry-records-life .lifeSpeed{
    justify-content:space-between;
    width:100%;
  }

  .dry-records-life .lifeSpeed input{
    flex:1 1 auto;
    width:auto;
  }

  .dry-records-life .lifeStatus{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }
}
