/* forge base shell — v0.70.0 */
/* Forge world map — main game hub (character + bag + map) */
body.forge-world-page {
  margin: 0;
  min-height: 100%;
  height: 100vh;
  height: 100dvh;
  background: #010604;
  color: #cfe;
  font-family: "Courier New", Courier, monospace;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
html {
  height: 100%;
}
body.forge-world-page *,
body.forge-world-page *::before,
body.forge-world-page *::after {
  box-sizing: border-box;
}
body.forge-world-page .chess-mini-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  background: rgba(0, 12, 6, 0.95);
}
body.forge-world-page .chess-mini-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #09f530;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
}
body.forge-world-page .chess-mini-nav a {
  color: #8aab8a;
  text-decoration: none;
  margin-right: 10px;
  font-size: 0.75rem;
}
body.forge-world-page .chess-mini-nav a.is-here,
body.forge-world-page .chess-mini-nav a:hover {
  color: #09f530;
}
body.forge-world-page .chess-mini-ver {
  margin-left: auto;
  opacity: 0.5;
  font-size: 0.7rem;
}
body.forge-world-page .chess-mini-foot {
  flex: 0 0 auto;
  padding: 4px 12px;
  font-size: 0.65rem;
  opacity: 0.55;
  border-top: 1px solid rgba(0, 255, 136, 0.12);
}

.forge-world-stage {
  flex: 1 1 auto;
  min-height: 0;
  height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}

.forge-panel {
  margin: auto;
  max-width: 520px;
  width: 100%;
  padding: 22px 20px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  background: rgba(0, 16, 8, 0.92);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.08);
}
.forge-panel h1 {
  margin: 0 0 8px;
  color: #09f530;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}
.forge-panel .lead {
  opacity: 0.85;
  font-size: 0.88rem;
  line-height: 1.4;
}
.forge-char-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}
.forge-char-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 255, 136, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
  border-radius: 8px;
}
.forge-char-card:hover,
.forge-char-card.is-active {
  border-color: #09f530;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.15);
}
.forge-char-card .side {
  font-size: 1.4rem;
}
.forge-char-card .meta {
  font-size: 0.75rem;
  opacity: 0.75;
}
.btn-forge {
  appearance: none;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #629924;
  color: #fff;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.btn-forge:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-link,
.btn-linkish {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border: none;
  color: #8fd;
  font: inherit;
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.forge-msg {
  color: #ff8a8a;
  font-size: 0.8rem;
}
.hint {
  font-size: 0.72rem;
  opacity: 0.65;
  margin-top: 14px;
}
.hint a {
  color: #09f530;
}


/* Exit game → social feed */
.btn-exit-game {
  flex: 0 0 auto;
  margin-left: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(120, 200, 255, 0.45);
  background: rgba(0, 40, 60, 0.85);
  color: #9cf;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.12s, color 0.12s, box-shadow 0.12s;
}
.btn-exit-game:hover {
  color: #fff;
  border-color: #6cf;
  box-shadow: 0 0 12px rgba(80, 180, 255, 0.35);
}
.chess-mini-nav a.nav-exit-feed {
  color: #8cf !important;
  font-weight: 700;
}
.chess-mini-nav a.nav-exit-feed:hover {
  color: #fff !important;
}
.btn-exit-game-hud {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 12px 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid rgba(100, 180, 255, 0.5);
  background: linear-gradient(180deg, rgba(0, 50, 80, 0.95), rgba(0, 25, 40, 0.95));
  color: #bdf;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(60, 140, 220, 0.2);
}
.btn-exit-game-hud:hover {
  color: #fff;
  border-color: #7cf;
}
.exit-feed-hint {
  margin: 0 0 10px;
  font-size: 0.68rem;
  opacity: 0.65;
  line-height: 1.35;
}
.chess-mini-foot a {
  color: #8cf;
}
@media (max-width: 900px) {
  .btn-exit-game {
    font-size: 0.65rem;
    padding: 5px 8px;
  }
}


/* v0.86.0 — cinematic brand not constrained by old mini-bar img rules */
body.forge-world-page .chess-mini-brand img.forge-hero-logo {
  width: 104px !important;
  height: 104px !important;
  max-height: none !important;
  object-fit: cover !important;
  clip-path: circle(50%) !important;
  border-radius: 50% !important;
}
body.forge-world-page .chess-mini-bar.forge-cinematic-bar {
  padding: 0; /* cinematic.css owns padding */
}
