/* doc.css: the pages built from text/<page>.<lang>.html (about, howto, shots, shop, support), board m18.
   The chrome (top bar, tabs, footer, world colours) is the same inline CSS as every other page. */
.bd-tabs a[data-p] { --c: var(--blue); }
#docMain:empty::after { content: "…"; }
.dk { padding: 18px 22px 20px; }
.dk + .dk { margin-top: 0; }
.dk h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; font-family: var(--disp); font-weight: 400; font-size: 21px; letter-spacing: .2px; color: var(--ink); }
.dk h3 { margin: 18px 0 6px; font-size: 15.5px; font-weight: 900; color: var(--ink); }
.dk p, .dk li { font-size: 14.5px; font-weight: 600; line-height: 1.6; color: var(--ink2); }
.dk p { margin: 0 0 10px; }
.dk ul, .dk ol { margin: 0 0 10px; padding-left: 22px; }
.dk li { margin: 3px 0; }
.dk a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.dk b, .dk strong { color: var(--ink); }
.dk .arch { vertical-align: 2px; }
.dk .note { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: #f4f7fc; border: 1px solid #e3e9f2; font-size: 13.5px; }
.dk .now { padding: 10px 14px; border-radius: 12px; background: #eefaf1; border: 1px solid #bfe6c9; color: #1f5130; }
.dk .now b { color: #11401f; }
.dk figure { margin: 12px 0; }
.dk figure img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 22px -16px rgba(29, 39, 66, .6); }
.dk figcaption { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.dk .btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 12px; font-weight: 900; font-size: 14px; color: #fff; background: linear-gradient(#ff8b4a, var(--play) 55%, var(--play2)); box-shadow: 0 3px 0 #b8350a; }
.dk .btn.ghost { color: var(--blue); background: #fff; border: 1.5px solid #cdd8e8; box-shadow: 0 3px 0 #dfe7f2; }
.dk .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dk .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dk .dtile { padding: 14px 16px; border-radius: 14px; background: #f7f9fd; border: 1px solid #e6ecf4; min-width: 0; }
.dk .dtile h3 { margin-top: 0; }
.dk .dtile p:last-child { margin-bottom: 0; }

/* tables (items, awards, ranks, rules) */
.dk .tw { overflow-x: auto; margin: 6px 0 12px; }
.dk table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-weight: 600; color: var(--ink2); }
.dk th { text-align: left; font-size: 11.5px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding: 8px 8px; border-bottom: 2px solid #e6ecf3; white-space: nowrap; }
.dk td { padding: 8px 8px; border-bottom: 1px dashed #e8edf4; vertical-align: top; }
.dk td.n, .dk th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* a row with a rank badge: its words sit level with the badge */
.dk tr:has(img.g) td { vertical-align: middle; }
.dk td img.g { width: 28px; height: auto; image-rendering: pixelated; display: inline-block; vertical-align: middle; margin-right: 8px; }
.dk td.minus { color: #c0392b; }
.dk td.plus { color: #1d8b3c; }

/* keys on the Controls page */
.dk kbd { display: inline-block; min-width: 30px; padding: 3px 8px; border-radius: 7px; background: #fff; border: 1.5px solid #cdd8e8; box-shadow: 0 2px 0 #cdd8e8; font: 800 13px Nunito, sans-serif; color: var(--ink); text-align: center; }
.dk .keys td:first-child { white-space: nowrap; width: 1%; }

/* pictures: screenshots, art, wallpapers */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 6px; }
.gal.two { grid-template-columns: repeat(2, 1fr); }
.gal.modes, .dk .gal.modes { grid-template-columns: repeat(3, 1fr); }
.gal.modes img { aspect-ratio: auto; object-fit: contain; background: #0b2e4a; }
.gal a, .gal div.pic { display: block; position: relative; border-radius: 14px; overflow: hidden; background: #eef3fa; box-shadow: 0 10px 20px -14px rgba(29, 39, 66, .6); }
.gal img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.gal.art img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.gal a:hover img { transform: scale(1.05); }
.gal span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(transparent, rgba(5, 15, 40, .72)); }
.gal.art span { color: var(--ink2); background: none; position: static; display: block; padding: 6px 10px 8px; }

/* the mobiles and the moons */
.mob { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 12px; }
.mob div { padding: 10px 12px; border-radius: 12px; background: #f7f9fd; border: 1px solid #e6ecf4; font-size: 14px; font-weight: 800; color: var(--ink); }
.mob small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.types .dtile { border-top: 4px solid var(--c, #7b9af0); }

/* the avatar catalogue (shop) */
.av-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
.av-tools button { height: 34px; padding: 0 12px; border-radius: 10px; border: 1.5px solid #d5deea; background: #fff; font: 800 13px Nunito, sans-serif; color: var(--ink2); cursor: pointer; }
.av-tools button.on { background: var(--blue); border-color: transparent; color: #fff; }
.av-tools input { flex: 1 1 180px; min-width: 0; height: 34px; border-radius: 10px; border: 1.5px solid #d5deea; background: #f7faff; padding: 0 11px; font: 600 14px Nunito, sans-serif; color: var(--ink); }
.av-tools select { height: 34px; border-radius: 10px; border: 1.5px solid #d5deea; background: #fff; padding: 0 8px; font: 700 13px Nunito, sans-serif; color: var(--ink2); max-width: 100%; }
.av-count { font-size: 12.5px; font-weight: 800; color: var(--muted); margin: 0 0 8px; }
.av-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.av { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border-radius: 13px; background: #f7f9fd; border: 1px solid #e6ecf4; min-width: 0; }
.av b { font-size: 14px; font-weight: 900; color: var(--ink); overflow-wrap: anywhere; }
.av i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--ink2); overflow-wrap: anywhere; }
.av small { font-size: 11px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; color: var(--faint); }
.av .pr { margin-top: auto; padding-top: 4px; font-size: 12.5px; font-weight: 800; color: #9a6a00; font-variant-numeric: tabular-nums; }
.av-more { margin-top: 12px; }
.mine-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mine-box img { width: 64px; height: 64px; object-fit: contain; background: #eef4fc; border-radius: 14px; }
.mine-box .num { font-variant-numeric: tabular-nums; }

/* side card */
#docSide .side h3 { margin: 0 0 6px; font-family: var(--disp); font-weight: 400; font-size: 17px; color: var(--ink); }
#docSide .side a { color: var(--blue); }
#docSide .side ul { list-style: none; padding: 0; }
#docSide .side li { padding: 4px 0; border-top: 1px solid #eef2f7; }
#docSide .side li:first-child { border-top: 0; }
#docSide .side li a.on { color: var(--ink); font-weight: 900; text-decoration: none; }
#docSide .side img { width: 100%; border-radius: 10px; margin-top: 8px; }

@media (max-width: 1100px) {
  .av-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mob { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .dk { padding: 14px 15px 16px; }
  .dk h2 { font-size: 19px; }
  .dk p, .dk li { font-size: 14px; }
  .dk .row2, .dk .row3, .types { grid-template-columns: 1fr; }
  .gal, .gal.two { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gal.modes { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mob { grid-template-columns: repeat(2, 1fr); }
  .av-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .av { padding: 9px 10px; }
  .av b { font-size: 13px; }
  .av i { font-size: 12px; }
  .av .pr { font-size: 11.5px; }
  .dk table { font-size: 13px; }
  .dk th, .dk td { padding: 7px 5px; }
}
