/* Extras on top of desk.css for the local hub and games */
.game-wrap { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 10px 30px rgba(20,73,54,.06); }
.panel h3 { font-family: Chango, Georgia, serif; font-weight: 400; margin: 0 0 12px; font-size: 1.3rem; }
label.field { display: block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--brand-deep); margin-bottom: 10px; }
input[type=text], input[type=number], select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 12px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; text-transform: none; letter-spacing: 0; }
input:focus, select:focus { outline: 3px solid rgba(25,193,85,.4); border-color: var(--brand); }
.btn { font: inherit; font-weight: 600; cursor: pointer; border: 0; padding: 10px 18px; border-radius: 999px;
  background: var(--brand); color: #fff; box-shadow: 0 4px 0 var(--brand-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--brand-deep); }
.btn.ghost { background: transparent; color: var(--brand-deep); box-shadow: none; border: 1px solid var(--brand); }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 140px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab { font: inherit; font-weight: 600; cursor: pointer; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.tab.on { background: rgba(25,193,85,.16); color: var(--brand-deep); border-color: var(--brand); }
table.board { width: 100%; border-collapse: collapse; font-size: 1rem; }
table.board td, table.board th { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line); }
table.board th { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); }
table.board td.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: rgba(20,73,54,.6); }
.msg { min-height: 1.4em; font-weight: 600; color: var(--brand-deep); }
.msg.bad { color: #b3261e; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } }
/* Game header links (About / Commands / Share on X) and the player docs pages (about.html, commands.html) */
.gg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.gg-head h1 { margin: 6px 0 4px; }
.gg-links { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.gg-links a { font-weight: 600; color: var(--brand-deep); text-decoration: none; padding: 5px 12px; min-height: 34px; display: inline-flex; align-items: center; border: 1px solid var(--brand); border-radius: 999px; background: #fff; }
.gg-links a:hover, .gg-links a:focus-visible { background: rgba(25,193,85,.16); outline: none; }
.gg-doc-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.gg-doc-nav .back { font-weight: 600; }
.gg-doc { line-height: 1.6; overflow-wrap: anywhere; }
.gg-doc h1 { margin: 0 0 6px; font-size: clamp(2rem, 5vw, 3rem); }
.gg-doc h2 { font-family: Chango, Georgia, serif; font-weight: 400; font-size: 1.35rem; margin: 1.4em 0 .5em; color: var(--brand-deep); scroll-margin-top: 12px; }
.gg-doc h3 { font-family: Gluten, Georgia, serif; font-weight: 600; font-size: 1.12rem; margin: 1.1em 0 .3em; scroll-margin-top: 12px; }
.gg-doc ul, .gg-doc ol { padding-left: 1.3em; margin: .4em 0 .8em; }
.gg-doc li { margin: .2em 0; }
.gg-doc code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; background: #08150f; color: #7dffa8; padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.gg-doc a { color: var(--brand-deep); }
.gg-doc .gg-lead { font-size: 1.12rem; font-weight: 600; color: var(--brand-deep); margin: 0 0 .8em; }
.gg-doc-table { overflow-x: auto; margin: .6em 0 1em; }
.gg-doc-table table { min-width: 480px; }
.gg-doc-table td code { white-space: normal; }
.gg-doc-toc { margin-bottom: 14px; }
.gg-doc-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gg-doc-toc a { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.gg-doc-foot { text-align: center; margin-top: 18px; }
.gg-doc-foot .btn { text-decoration: none; display: inline-block; }
@media (max-width: 560px) { .gg-doc { padding: 14px; font-size: .97rem; } .gg-doc code { white-space: normal; } }
