/* ============================================================
   PANELS / side readouts / blog
   ============================================================ */

.deck {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  grid-template-areas: "left board right";
  gap: 1.2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.4rem 1.2rem 2rem;
  align-items: start;
}
#panel-status { grid-area: left; }
.side-col {
  grid-area: right;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.panel { padding: .9rem; }

.panel-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  letter-spacing: .28em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: .7rem;
  white-space: nowrap;
}
.pt-tail {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--cyan), transparent);
  box-shadow: 0 0 6px var(--cyan);
}

/* terminal readout */
.term { display: flex; flex-direction: column; gap: .3rem; }
.tline {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  font-size: .72rem;
  padding: .22rem .4rem;
  border-left: 2px solid var(--line);
  animation: tline-in .4s ease-out both;
}
.tline:nth-child(2) { animation-delay: .08s; }
.tline:nth-child(3) { animation-delay: .16s; }
.tline:nth-child(4) { animation-delay: .24s; }
@keyframes tline-in {
  from { opacity: 0; transform: translateX(-6px); }
}
.tkey { color: var(--dim); letter-spacing: .12em; }
.tval { color: var(--ink); text-align: right; }

/* editable visitor handle */
.tline-edit { border-left-color: var(--magenta); }
.visitor-input {
  background: rgba(0, 234, 255, .04);
  border: none;
  border-bottom: 1px dashed var(--line);
  border-radius: 0;
  padding: 0 .1rem .1rem;
  font: inherit;
  color: var(--ink);
  text-align: right;
  text-transform: uppercase;
  outline: none;
  max-width: 14ch;
  transition: border-color .15s, box-shadow .15s;
}
.visitor-input:focus {
  border-bottom-color: var(--magenta);
  box-shadow: 0 1px 0 var(--magenta);
}
.visitor-input:hover { border-bottom-color: var(--cyan); }

.about-blurb {
  margin-top: .8rem;
  padding-top: .7rem;
  border-top: 1px dashed var(--line);
  font-size: .78rem;
  line-height: 1.55;
}
.about-blurb p { margin: 0 0 .5rem; }
.about-blurb b { color: var(--yellow); }
.about-blurb code { color: var(--magenta); font-size: .72rem; }

/* move log */
.movelist {
  max-height: 6.9em;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .7rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
}
.ml-row {
  display: flex;
  gap: .6rem;
  padding: .18rem .35rem;
  animation: tline-in .3s ease-out both;
}
.ml-row.latest { background: rgba(0, 234, 255, .07); box-shadow: inset 2px 0 0 var(--cyan); }
.ml-seq { color: var(--dim); min-width: 3.2ch; text-align: right; }
.ml-dot { width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.ml-dot.b { background: radial-gradient(circle at 35% 30%, #9adfff, #0a2540 70%); box-shadow: 0 0 4px rgba(0,234,255,.8); }
.ml-dot.w { background: radial-gradient(circle at 35% 30%, #fff, #b89ae0 70%); box-shadow: 0 0 4px rgba(178,107,255,.8); }
.ml-coord { color: var(--ink); letter-spacing: .08em; }
.ml-pass { color: var(--yellow); letter-spacing: .14em; }
.ml-player {
  margin-left: auto;
  color: var(--dim);
  font-size: .6rem;
  letter-spacing: .1em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9ch;
}
.ml-row.latest .ml-player { color: var(--cyan); }
.ml-empty { color: var(--dim); padding: .4rem; }

/* fx console */
.fxline {
  font-size: .72rem;
  color: var(--green);
  text-shadow: 0 0 6px rgba(60, 255, 110, .4);
  min-height: 2.6em;
  line-height: 1.3;
}
.fxline .caret { animation: blink 1s steps(2, start) infinite; cursor: pointer; }

/* contact / uplinks */
.contact-block { margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.uplink {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem .3rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: background .12s, box-shadow .12s;
  animation: tline-in .4s ease-out both;
}
.uplink:nth-child(3) { animation-delay: .08s; }
.uplink:nth-child(4) { animation-delay: .16s; }
.uplink:hover {
  background: rgba(0, 234, 255, .07);
  box-shadow: inset 2px 0 0 var(--cyan);
}
.up-glyph {
  width: 24px; height: 24px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  position: relative;
}
.mail-glyph {
  background: linear-gradient(160deg, rgba(255,230,0,.25), rgba(255,230,0,.05));
}
.mail-glyph::after {
  content: "";
    position: absolute;
  inset: 5px 4px;
  background:
    linear-gradient(to bottom right, transparent 46%, var(--yellow) 46%, var(--yellow) 54%, transparent 54%);
  border: 1px solid var(--yellow);
  box-shadow: 0 0 5px rgba(255,230,0,.5);
}
.git-glyph {
  background: linear-gradient(160deg, rgba(0,234,255,.25), rgba(0,234,255,.05));
}
.git-glyph::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed var(--cyan);
  box-shadow: 0 0 5px rgba(0,234,255,.5);
}
.chat2-glyph {
  background: linear-gradient(160deg, rgba(178,107,255,.25), rgba(178,107,255,.05));
}
.chat2-glyph::after {
  content: "";
  position: absolute;
  inset: 6px 4px 4px;
  border: 1px solid var(--magenta);
  box-shadow: 0 0 5px rgba(178,107,255,.5);
}
.up-body { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.up-body b { color: var(--cyan); font-size: .68rem; letter-spacing: .12em; }
.up-body small { color: var(--dim); font-size: .64rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiny { font-size: .62rem; margin: .4rem 0 0; }

/* file cabinet */
.filelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.frow {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  padding: .35rem .3rem;
  border-left: 2px solid var(--line);
  animation: tline-in .4s ease-out both;
}
.frow:nth-child(2) { animation-delay: .07s; }
.frow:nth-child(3) { animation-delay: .14s; }
.frow:nth-child(4) { animation-delay: .21s; }
.frow:hover { border-left-color: var(--magenta); background: rgba(178,107,255,.05); }
.ficon {
  width: 14px; height: 16px;
  flex: none;
  margin-top: .1rem;
  position: relative;
}
.ficon::after {
  content: "";
  position: absolute;
  inset: 1px 2px;
  border: 1px solid currentColor;
  clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%);
}
.ficon.dir { color: var(--yellow); filter: drop-shadow(0 0 3px rgba(255,230,0,.6)); }
.ficon.app { color: var(--cyan); filter: drop-shadow(0 0 3px rgba(0,234,255,.6)); }
.ficon.doc { color: var(--green); filter: drop-shadow(0 0 3px rgba(60,255,110,.6)); }
.ficon.bin { color: var(--magenta); filter: drop-shadow(0 0 3px rgba(178,107,255,.6)); }
.fbody { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.fbody b { color: var(--ink); font-size: .68rem; letter-spacing: .12em; }
.fbody small { color: var(--dim); font-size: .64rem; line-height: 1.35; }

/* blog */
.blog-wrap {
  position: relative;
  z-index: 5;
  max-width: 760px;
  margin: 2rem auto;
  padding: 0 1.2rem;
}
.crumbs a { color: var(--cyan); text-decoration: none; font-size: .78rem; letter-spacing: .14em; }
.crumbs a:hover { text-shadow: var(--glow-cyan); }

.entry {
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
  animation: tline-in .4s ease-out both;
}
.entry:nth-child(3) { animation-delay: .1s; }
.entry:nth-child(4) { animation-delay: .2s; }
.entry header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .4rem;
}
.entry h2 {
  margin: 0;
  font-size: .9rem;
  letter-spacing: .14em;
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}
.entry time { font-size: .7rem; }
.entry p { margin: 0; font-size: .84rem; line-height: 1.6; }

/* confirm modal // 90s system dialog */
.modal-veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 12, .72);
  backdrop-filter: blur(2px);
}
.modal-veil[hidden] { display: none; }
.modal {
  width: min(340px, 92vw);
  padding: .9rem;
  animation: modal-in .18s steps(4, end) both;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(.92) translateY(10px); }
}
.modal-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .7rem;
}
.modal-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
  animation: blink 1.2s steps(2, start) infinite;
  cursor: pointer;
}
.modal-title {
  flex: 1;
  font-size: .7rem;
  letter-spacing: .26em;
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}
.modal-x { color: var(--dim); font-size: .7rem; }
.modal-body {
  font-size: .78rem;
  line-height: 1.6;
  color: var(--ink);
  padding: .6rem .7rem;
  margin-bottom: .9rem;
  border: 1px dashed var(--line);
  background: rgba(0, 234, 255, .03);
}
.modal-btns { display: flex; gap: .6rem; justify-content: flex-end; }
.modal-no { color: var(--dim); }
.modal-no:hover { color: var(--cyan); }

/* responsive collapse */
@media (max-width: 1100px) {
  .deck {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
      "board side"
      "left side";
  }
  #panel-status { grid-area: left; }
  .side-col { grid-area: side; }
}
@media (max-width: 780px) {
  .deck {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "board"
      "left"
      "right";
  }
  #panel-status { grid-area: left; }
  .side-col { grid-area: right; flex-direction: row; }
  .side-col .panel { flex: 1; }
}
@media (max-width: 560px) {
  .side-col { flex-direction: column; }
  .turn-banner { font-size: .6rem; letter-spacing: .1em; }
  .board-hud { flex-wrap: wrap; justify-content: center; }
}

/* message board // node relay */
.msg-panel { padding-bottom: .7rem; }
.msglist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 14em;
  overflow-y: auto;
  font-size: .72rem;
  scrollbar-width: thin;
  scrollbar-color: var(--magenta) transparent;
}
.msg-row {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .28rem .4rem;
  border-left: 2px solid rgba(178, 107, 255, .55);
  animation: tline-in .3s ease-out both;
}
.msg-row:hover { background: rgba(178, 107, 255, .06); }
.msg-row.fresh {
  border-left-color: var(--magenta);
  background: rgba(178, 107, 255, .1);
  box-shadow: 0 0 12px rgba(178, 107, 255, .15);
}
.msg-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .05rem;
  flex: none;
  max-width: 46%;
}
.msg-who {
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(0, 234, 255, .4);
  letter-spacing: .1em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msg-when {
  color: var(--dim);
  font-size: .58rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.msg-text { color: var(--ink); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.msg-empty { color: var(--dim); padding: .35rem .4rem; font-size: .68rem; }
.msg-compose {
  margin-top: .55rem;
  padding-top: .55rem;
  border-top: 1px dashed var(--line);
}
.msg-row2 { display: flex; flex-direction: column; gap: .4rem; }
.msg-inputrow {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
  padding: .35rem .4rem;
  border: 1px dashed rgba(178, 107, 255, .5);
  border-radius: 3px;
  background: rgba(178, 107, 255, .05);
  animation: tline-in .18s ease-out both;
}
.emoji-bar[hidden] { display: none; }
.emoji-pick {
  background: none;
  border: none;
  font-size: .95rem;
  line-height: 1;
  padding: .18rem .22rem;
  cursor: pointer;
  filter: grayscale(.35);
  transition: transform .12s, filter .12s;
}
.emoji-pick:hover {
  transform: scale(1.25);
  filter: none;
}
.msg-handle {
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
  font-size: .68rem;
  letter-spacing: .12em;
  white-space: nowrap;
}
.msg-handle::before { content: '> '; color: var(--dim); text-shadow: none; }
.msg-input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 234, 255, .04);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .32rem .5rem;
  font: inherit;
  font-size: .72rem;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.msg-input::placeholder { color: var(--dim); opacity: .8; }
.msg-input:focus {
  border-color: rgba(178, 107, 255, .7);
  box-shadow: 0 0 10px rgba(178, 107, 255, .2), inset 0 0 8px rgba(178, 107, 255, .06);
}
.msg-send {
  padding: .32rem .55rem;
  font-size: .8rem;
  line-height: 1;
  flex: none;
  color: var(--magenta);
}
.msg-send:hover { color: var(--yellow); }
.msg-emoji {
  padding: .32rem .5rem;
  font-size: .8rem;
  line-height: 1;
  flex: none;
  color: var(--yellow);
}
.msg-emoji:hover { color: var(--magenta); }
#msgHint { margin: .35rem 0 0; display: none; }
#msgHint.show { display: block; }
