/* GFC Door Games — terminal client. Dark BBS-green look, mirrors twgs-bridge. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #030605;
  color: #cfe9d6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  display: flex;
  flex-direction: column;
}

#top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid #16241b;
  background: #050a07;
}
.brand { font-size: 13px; letter-spacing: 0.12em; color: #8fdca6; }
.brand em { font-style: normal; color: #57d97b; }
.chip {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #7fae8f;
  border: 1px solid #1d3326;
  border-radius: 3px;
  padding: 3px 8px;
  white-space: nowrap;
}
.chip.on { color: #57d97b; border-color: #2c5a3c; }

#termwrap { position: relative; flex: 1; min-height: 0; padding: 6px; }
#playarea { position: absolute; inset: 0; }
#playarea.hidden { display: none; }
#term { position: absolute; inset: 6px; }

#overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 6, 5, 0.82);
  z-index: 5;
}
#overlay.hidden, #gate.hidden { display: none; }
#overlayText { font-size: 14px; letter-spacing: 0.14em; color: #8fdca6; }

#gate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 6, 5, 0.92);
  z-index: 6;
}
.gatebox { max-width: 520px; padding: 26px 30px; border: 1px solid #1d3326; background: #050a07; text-align: center; }
.gtitle { font-size: 15px; letter-spacing: 0.12em; color: #8fdca6; margin-bottom: 10px; }
.gtitle em { font-style: normal; color: #57d97b; }
.gsub { font-size: 13px; line-height: 1.5; color: #a9cdb6; margin-bottom: 18px; }
.gbtn {
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #030605;
  background: #57d97b;
  border: 0;
  border-radius: 3px;
  padding: 10px 18px;
  cursor: pointer;
}
.gbtn:hover { background: #6fe08c; }
.galt { display: block; margin-top: 14px; font-size: 12px; color: #4f7f60; text-decoration: none; }
.galt:hover { color: #8fdca6; }

#bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px;
  border-top: 1px solid #16241b;
  background: #050a07;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.stat { color: #7fae8f; }
.stat.ok { color: #57d97b; }
.stat.bad { color: #d98b57; }
.hint { color: #3f5f4b; text-align: right; }

@media (max-width: 640px) {
  .hint { display: none; }
  .brand em { display: inline; }
}

/* ---- game menu ---- */
#menu { position: absolute; inset: 0; overflow-y: auto; padding: 26px 20px 34px; z-index: 4; }
#menu.hidden { display: none; }
.menuhead { font-size: 15px; letter-spacing: 0.14em; color: #8fdca6; margin-bottom: 6px; }
.menuhead em { font-style: normal; color: #57d97b; }
.menusub { font-size: 12px; color: #4f7f60; margin-bottom: 22px; }
#menuGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  max-width: 1120px;
}
.mtile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #1d3326;
  background: #050a07;
  padding: 14px 16px;
  text-decoration: none;
  min-height: 122px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.mtile:hover { border-color: #2c5a3c; background: #071009; }
.mtitle { font-size: 14px; letter-spacing: 0.06em; color: #cfe9d6; }
.mblurb { font-size: 11px; line-height: 1.5; color: #5f8a6e; flex: 1 1 auto; }
.mplay { font-size: 11px; letter-spacing: 0.12em; color: #57d97b; }
.mtile.twgs .mplay { color: #6fa8dc; }
.mtile.twgs:hover { border-color: #2c4a5a; }
