/* Grind Board: a painted MapleStory field with framed windows on it. Bricolage Grotesque for text, Lilita One for numbers and titles (both OFL). */
@font-face { font-family: "Lilita One"; src: url("/fonts/LilitaOne-Regular.woff2") format("woff2"), url("/fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
:root {
  --page: #e8edf4; --frame: #c3d0df; --frame-line: #4a5a71; --frame-hi: #f4f8fc;
  --title-bg: #fff; --title-line: #6c7c93; --title-fg: #16233a;
  --body: #fff; --body-line: #8d9db1;
  --row: #e6e3d8; --row-line: #cec9be; --row-hi: #dbd8cb; --slot: #d8d3c4; --slot-in: #c9c3b0;
  --ink: #16233a; --ink2: #3f4a5c; --mute: #5f6675;
  --gold: #a86f00; --gold-stroke: #3a2600; --up: #1c7d17; --down: #c0301d; --rare: #7a2fd0;
  --red: #d8361f; --red-line: #4a1207; --blue: #2d6fd6; --blue-line: #10306a;
  --link: #1550b0; --crown: #e8b800; --crown-in: #fff7cc;
  --plate: #fffdf4; --plate-ink: #16233a; --brown: #4a2c00;
  --scene: url("/img/scene-900.webp");
  --body-font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif; --num-font: "Lilita One", "Bricolage Grotesque", Arial, sans-serif;
}
@media (min-width: 700px) { :root { --scene: url("/img/scene-1400.webp"); } }
@media (min-width: 1500px) { :root { --scene: url("/img/scene-2048.webp"); } }
:root[data-theme="dark"] {
  --page: #151b17; --frame: #2a3a2f; --frame-line: #0e1410; --frame-hi: #3f5546;
  --title-bg: #1c2520; --title-line: #4d6455; --title-fg: #eef2e6;
  --body: #212b24; --body-line: #3b5043;
  --row: #2d3930; --row-line: #435949; --row-hi: #374739; --slot: #34423a; --slot-in: #263029;
  --ink: #f4f1e4; --ink2: #d9dfcf; --mute: #a3b3a2;
  --gold: #ffd84a; --gold-stroke: #3a2600; --up: #8be36a; --down: #ff9482; --rare: #d1aaff;
  --link: #9fd0ff; --crown-in: #3a3513; --blue: #4a88ec;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: var(--page); color: var(--ink); font: 500 15px/1.45 var(--body-font);
  display: flex; flex-direction: column; overflow-x: hidden; }
a { color: var(--link); }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 16px; padding-bottom: 32px; }
h1, h2 { margin: 0; }

/* top strip */
.topbar { background: var(--frame); border-bottom: 2px solid var(--frame-line); padding-top: env(safe-area-inset-top); }
.topbar .wrap { display: flex; align-items: center; gap: 8px; min-height: 52px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-height: 40px; }
.brand img { width: 20px; height: 20px; image-rendering: pixelated; }
.brand span { font: 24px/1 var(--num-font); color: #ffd84a; -webkit-text-stroke: 4px var(--gold-stroke); paint-order: stroke fill; letter-spacing: .5px; white-space: nowrap; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--title-fg); text-decoration: none; font-weight: 700; font-size: 14px; padding: 0 12px; min-height: 40px; display: inline-flex; align-items: center;
  justify-content: center; background: var(--title-bg); border: 2px solid var(--title-line); }
.nav a:hover { border-color: var(--red); }
.nav a[aria-current="page"] { border-color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.theme { width: 40px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: space-around; padding: 3px 0;
  background: var(--title-bg); border: 2px solid var(--title-line); cursor: pointer; }
.theme i { display: block; width: 14px; height: 14px; border-radius: 50%; opacity: .3; }
.theme .sun { background: radial-gradient(circle, #fff6a0 0 35%, #ffc21a 36% 58%, transparent 59%); }
.theme .moon { box-shadow: inset -4px -1px 0 0 #e0a800; transform: rotate(-20deg); }
:root:not([data-theme="dark"]) .theme .sun, :root[data-theme="dark"] .theme .moon { opacity: 1; }
:root[data-theme="dark"] .theme .moon { box-shadow: inset -4px -1px 0 0 #ffd24a; }
.theme:hover { border-color: var(--red); }
@media (max-width: 600px) {
  .topbar .wrap { gap: 6px 8px; padding-top: 4px; padding-bottom: 8px; }
  .theme { margin-left: auto; order: 2; }
  .nav { order: 3; width: 100%; margin-left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .nav a { padding: 0 4px; }
}

/* the painted hero (ported from the approved hero.html) */
.hero { position: relative; height: clamp(520px, 78svh, 680px); overflow: hidden; background: #7cc6f5; }
.hero .bg { position: absolute; inset: -12px; background: var(--scene) 50% calc(100% + var(--cut, 0px)) / cover no-repeat; }
:root[data-theme="dark"] .hero .bg { filter: brightness(.46) saturate(.75) hue-rotate(8deg); }
.hero .copy { position: absolute; left: max(16px, env(safe-area-inset-left), calc(50vw - 504px)); top: clamp(28px, 6vw, 64px); max-width: 900px;
  right: 16px; z-index: 3; pointer-events: none; }
.hero h1 { font: 400 clamp(68px, 11vw, 132px)/.9 var(--num-font); margin: 0; color: #ffd84a; -webkit-text-stroke: 10px var(--brown); paint-order: stroke fill; }
.hero h1 span { display: inline-block; }
.hero .copy p { margin: 16px 0; max-width: 30em; background: var(--plate); color: var(--plate-ink); border: 2px solid var(--brown); padding: 9px 13px; display: inline-block; font-weight: 600; }
.hero a.b { pointer-events: auto; display: inline-flex; align-items: center; min-height: 44px; font: 400 20px var(--num-font); color: #fff; background: var(--red);
  border: 3px solid var(--red-line); padding: 0 20px; text-decoration: none; margin: 0 8px 8px 0; }
.hero a.b.w { background: #fff; color: #16233a; border-color: #16233a; }
.hero a.b:hover { filter: brightness(1.08); }
.hero .mob { position: absolute; left: 0; bottom: 0; background: none; border: 0; padding: 0; cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent; min-width: 40px; min-height: 40px; }
.hero .mob img { display: block; image-rendering: pixelated; max-width: none; }
.hero .mob i { position: absolute; left: 8%; right: 8%; bottom: -5px; height: 9px; border-radius: 50%; background: rgba(20, 30, 10, .35); z-index: -1; }
.hero .mob b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #14181f; color: #fff; font: 700 13px var(--body-font);
  padding: 3px 7px; opacity: 0; margin-bottom: 6px; pointer-events: none; }
.hero .mob.on b, .hero .mob:hover b, .hero .mob:focus-visible b { opacity: 1; }
.hero .mob:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hero.compact { height: clamp(300px, 44svh, 380px); }
.hero.compact .copy { top: clamp(18px, 3vw, 34px); }
.hero.compact h1 { font-size: clamp(40px, 7.5vw, 84px); -webkit-text-stroke: 7px var(--brown); line-height: 1; overflow-wrap: anywhere; }
.hero.compact .copy p { margin: 10px 0; font-size: 14px; }
.hero.compact .copy p.kick { margin: 0 0 8px; padding: 4px 10px; font-size: 14px; }
@media (max-width: 600px) { .hero.compact h1 { -webkit-text-stroke: 6px var(--brown); } .hero .copy p { font-size: 15px; } }

/* the numbers under the hero */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.stat { background: var(--body); border: 2px solid var(--frame-line); padding: 8px 12px; min-width: 0; }
.stat .num { font-size: 32px; line-height: 1.05; display: block; }
.stat span.l { color: var(--mute); font-size: 14px; font-weight: 600; display: block; line-height: 1.25; }
.stat .sk-n { height: 34px; background: var(--row); display: block; margin-bottom: 4px; }
@media (max-width: 420px) { .stat .num { font-size: 26px; } .stat { padding: 8px; } }

/* windows */
.win { background: var(--frame); border: 2px solid var(--frame-line); padding: 4px 5px 5px; box-shadow: inset 0 0 0 1px var(--frame-hi); min-width: 0; }
.win > .top { display: flex; align-items: center; gap: 5px; min-height: 28px; margin-bottom: 4px; }
.win > .top .t { flex: 1; min-width: 0; display: flex; align-items: center; padding: 4px 8px; background: var(--title-bg); border: 1px solid var(--title-line);
  font: 700 14px/1.2 var(--body-font); color: var(--title-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win > .top .x { width: 16px; height: 16px; border: 2px solid var(--blue-line); background: var(--blue); flex: none; }
.win > .body { background: var(--body); border: 1px solid var(--body-line); padding: 10px; min-width: 0; }
.stack { display: grid; gap: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cols > .side { display: grid; gap: 16px; }
@media (max-width: 820px) { .cols { grid-template-columns: minmax(0, 1fr); } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 400 18px var(--num-font); color: #fff; padding: 0 18px; min-height: 44px;
  border: 3px solid var(--red-line); background: var(--red); cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.alt { color: var(--title-fg); background: var(--title-bg); border-color: var(--title-line); }

/* picker */
.picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.picker label { display: grid; gap: 3px; font: 700 13px/1.1 var(--body-font); color: var(--ink2); }
.picker select { width: 100%; font: 500 15px var(--body-font); color: var(--ink); background: var(--row); border: 2px solid var(--row-line); padding: 0 6px; border-radius: 0; min-height: 44px; }
@media (max-width: 520px) { .picker { grid-template-columns: minmax(0, 1fr); } .picker select { font-size: 16px; } }

/* rows */
.rows { display: grid; gap: 4px; }
.row { display: grid; align-items: center; gap: 10px; padding: 8px 10px; background: var(--row); border: 1px solid var(--row-line); min-width: 0; color: var(--ink); text-decoration: none; }
a.row:hover { background: var(--row-hi); }
.row b { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.sub { color: var(--mute); font-size: 13px; }
.maprow { grid-template-columns: 28px minmax(0, 1fr) auto; }
.rank { font: 17px/1 var(--num-font); color: var(--mute); text-align: center; }
.num { font: 400 20px/1 var(--num-font); letter-spacing: .3px; white-space: nowrap; }
.exp { color: var(--gold); } .up { color: var(--up); } .down { color: var(--down); } .rare { color: var(--rare); }
.right { text-align: right; }
.boardrow { grid-template-columns: 28px minmax(0, 1fr) auto; }
.boardrow .who { min-width: 0; }
.boardrow:nth-child(1) .rank, .boardrow:nth-child(2) .rank, .boardrow:nth-child(3) .rank { color: var(--gold); }

/* feed */
.feedrow { grid-template-columns: 48px minmax(0, 1fr); align-items: start; }
.feedrow a { color: var(--ink); font-weight: 700; }
.feedrow time { color: var(--mute); font-size: 13px; display: block; }
.feedrow .what { min-width: 0; overflow-wrap: anywhere; }
.tile-lv, .tile-item, .tile-crown { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid; position: relative; }
.tile-lv { background: #2e9b25; border-color: #124a0d; color: #fff; text-align: center; align-content: center; gap: 0; }
.tile-lv small { font: 700 12px/1 var(--body-font); display: block; }
.tile-lv b { font: 400 24px/1 var(--num-font); color: #fff; display: block; }
.tile-item { background: var(--slot); border-color: var(--rare); }
.tile-item .ico { width: 34px; height: 34px; }
.tile-crown { background: var(--crown-in); border-color: var(--crown); }
.tile-crown i { width: 28px; height: 16px; background: var(--crown); clip-path: polygon(0 100%, 0 20%, 25% 55%, 50% 0, 75% 55%, 100% 20%, 100% 100%); display: block; }

/* map cards with painted art */
.maps { display: grid; gap: 8px; }
.mapcard { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: stretch; background: var(--row); border: 1px solid var(--row-line); text-decoration: none; color: var(--ink); padding: 6px; min-width: 0; }
.mapcard:hover { background: var(--row-hi); }
.mapcard.first { grid-template-columns: minmax(0, 1fr); padding: 0; background: none; border: 0; gap: 8px; }
.mc-body { display: grid; gap: 2px; align-content: start; min-width: 0; position: relative; }
.mc-rank { color: var(--gold); margin-right: 8px; }
.mc-name { font: 400 20px/1.15 var(--num-font); letter-spacing: .3px; overflow-wrap: anywhere; color: var(--ink); }
.mapcard.first .mc-name { font-size: 26px; }
.mc-street { color: var(--mute); font-size: 13px; font-weight: 600; }
.mc-num { font-size: 13px; color: var(--mute); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.mapcard.first .mc-num .num { font-size: 34px; }
.art { position: relative; overflow: hidden; background: #7cc6f5; min-height: 64px; }
.art::before { content: ""; position: absolute; inset: 0; background: var(--scene) no-repeat; background-size: auto 520%; background-position: 0% 86.7%; }
:root[data-theme="dark"] .art::before { filter: brightness(.5) saturate(.75) hue-rotate(8deg); }
.art.crop-1::before { background-position: 33% 86.7%; } .art.crop-2::before { background-position: 66% 86.7%; } .art.crop-3::before { background-position: 100% 86.7%; }
.art.thumb { min-height: 72px; }
.art.wide { height: 132px; }
.art.hdr { height: 140px; }
.stand { position: absolute; left: 0; right: 0; bottom: 17%; display: flex; justify-content: center; align-items: flex-end; gap: 6px; padding: 0 6px; }
.stand img { image-rendering: pixelated; max-width: 32%; height: auto; display: block; }
.art.thumb .stand { bottom: 15%; }

/* who lives here */
.who-lives { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.lives { background: var(--row); border: 1px solid var(--row-line); padding: 6px 6px 8px; text-align: center; display: grid; gap: 1px; align-content: start; min-width: 0; }
.lives .pic { height: 84px; display: flex; align-items: flex-end; justify-content: center; }
.lives img { image-rendering: pixelated; max-width: 100%; height: auto; }
.lives b { font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.lives span { color: var(--mute); font-size: 13px; }

/* podium (name plates, no figure) */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: end; padding-top: 4px; }
.pstep { display: grid; gap: 6px; align-content: end; min-width: 0; }
.plate { text-align: center; display: grid; gap: 2px; justify-items: center; min-width: 0; padding: 0 2px; }
.plate .pname { font: 700 15px/1.15 var(--body-font); color: var(--ink); overflow-wrap: anywhere; text-decoration: none; }
a.pname:hover { text-decoration: underline; }
.plate .num { font-size: 22px; }
.plate .sub { font-size: 12px; line-height: 1.25; }
.plate.open .pname { color: var(--mute); font-family: var(--num-font); font-weight: 400; font-size: 20px; }
.block { display: grid; place-items: center; border: 3px solid var(--brown); background: #cfd2d8; color: #fff; }
.block span { font: 400 40px/1 var(--num-font); -webkit-text-stroke: 5px var(--brown); paint-order: stroke fill; }
.pstep[data-rank="1"] .block { height: 112px; background: #f2c21b; }
.pstep[data-rank="2"] .block { height: 84px; background: #c9ced6; }
.pstep[data-rank="3"] .block { height: 64px; background: #c08a5a; }
@media (max-width: 420px) { .plate .num { font-size: 19px; } .plate .pname { font-size: 14px; } }

/* slots (trophies, badges) */
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wall .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 520px) { .wall .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.slot { position: relative; aspect-ratio: 1; min-height: 48px; display: grid; place-items: center; background: var(--slot); border: 2px solid; border-color: var(--slot-in) var(--frame-hi) var(--frame-hi) var(--slot-in);
  box-shadow: inset 0 0 0 1px var(--row-line); padding: 0; font: inherit; color: inherit; text-decoration: none; cursor: default; min-width: 0; }
.slot.empty { background: var(--slot-in); border-color: var(--row-line); box-shadow: none; opacity: .75; }
.slot.full { cursor: pointer; background: var(--slot); box-shadow: inset 0 0 0 2px var(--rare); }
.slot.sel { outline: 3px solid var(--red); outline-offset: 1px; }
.slot .ico { width: 62%; height: 62%; }
.slot .tip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: #14181f; color: #fff; font: 700 13px var(--body-font);
  padding: 3px 7px; opacity: 0; pointer-events: none; z-index: 5; }
.slot:hover .tip, .slot:focus-visible .tip { opacity: 1; }
.ico .t-a { fill: var(--ia, #9a6fe0); } .ico .t-b { fill: var(--ib, #4a2a8c); } .ico .t-c { fill: var(--ic, #efe3ff); }
.ik-scroll { --ia: #d6a13a; --ib: #7a4b12; --ic: #fff0c2; } .ik-hat { --ia: #8e5fd8; --ib: #4a2a8c; --ic: #e8dcff; }
.ik-armor { --ia: #3f7fd6; --ib: #1b3f7a; --ic: #cfe2ff; } .ik-shoes { --ia: #b8693a; --ib: #5a2e12; --ic: #f2d2b8; }
.ik-gloves { --ia: #d6603a; --ib: #6a2410; --ic: #ffd8c8; } .ik-shield { --ia: #5a8fa0; --ib: #1f4350; --ic: #e0f3f8; }
.ik-cape { --ia: #c93a52; --ib: #6a1424; --ic: #ffd0d8; } .ik-ring { --ia: #d6a13a; --ib: #7a4b12; --ic: #5ad0f0; }
.ik-weapon { --ia: #8a93a4; --ib: #3a4252; --ic: #dfe6f2; } .ik-potion { --ia: #e0443a; --ib: #6a1410; --ic: #f4f1e4; }
.ik-gem { --ia: #3fb6d6; --ib: #14566a; --ic: #d8f6ff; } .ik-misc { --ia: #b09060; --ib: #5a4426; --ic: #efe0c0; }
.detail { margin-top: 10px; padding: 10px; background: var(--row); border: 1px solid var(--row-line); min-height: 64px; }
.detail b { display: block; font-size: 17px; }
.detail .sub { display: block; }
.badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; }
.badge { display: grid; gap: 4px; align-content: start; justify-items: center; text-align: center; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.badge .slot { width: 100%; }
.badge .mark { font: 400 clamp(20px, 6vw, 30px)/1 var(--num-font); color: #ffd84a; -webkit-text-stroke: 4px var(--gold-stroke); paint-order: stroke fill; }
.badge .nm { font-weight: 700; font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.badge.locked .nm { color: var(--mute); font-weight: 600; }
.badge.sel .slot { outline: 3px solid var(--red); outline-offset: 1px; }
@media (max-width: 420px) { .badges, .slots { gap: 6px 4px; } }

/* profile numbers */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.tile { background: var(--body); border: 2px solid var(--frame-line); padding: 8px 12px 10px; min-width: 0; }
.tile .l { font: 700 14px/1 var(--body-font); color: var(--ink2); }
.tile .n { font: 34px/1.1 var(--num-font); letter-spacing: .3px; margin: 4px 0 0; overflow-wrap: anywhere; }
.tile .s { font-size: 13px; color: var(--mute); }

/* record holder frame: CSS crown on a gold double border */
.crown { position: relative; padding: 14px 12px 10px; margin-top: 16px; background: var(--crown-in); border: 2px solid var(--crown);
  box-shadow: inset 0 0 0 2px var(--body), inset 0 0 0 3px var(--crown); }
.crown::before { content: ""; position: absolute; left: 14px; top: -14px; width: 30px; height: 16px; background: var(--crown);
  clip-path: polygon(0 100%, 0 20%, 25% 55%, 50% 0, 75% 55%, 100% 20%, 100% 100%); }
.crown .l { font: 700 13px/1 var(--body-font); color: var(--ink2); }
.crown .who { font: 24px/1.15 var(--num-font); letter-spacing: .3px; margin: 4px 0 0; overflow-wrap: anywhere; }
.crown .who a { color: var(--ink); text-decoration: none; }
.crown .big { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.crown .sub { margin-top: 2px; }

/* states */
.sk { display: grid; gap: 4px; }
.sk i { display: block; height: 48px; background: var(--row); border: 1px solid var(--row-line); position: relative; overflow: hidden; }
.sk i::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: sweep 1.2s infinite; }
:root[data-theme="dark"] .sk i::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); }
@keyframes sweep { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sk i::after { animation: none; } }
.empty { padding: 14px 12px; color: var(--ink2); background: var(--row); border: 2px dashed var(--row-line); }
.empty b { display: block; color: var(--ink); margin-bottom: 2px; font-size: 16px; }
.err { padding: 12px; background: var(--row); border: 2px solid var(--down); display: grid; gap: 10px; justify-items: start; }
.err p { margin: 0; color: var(--ink); }
.more { margin-top: 8px; }

/* how and download pages */
.prose { max-width: 66ch; color: var(--ink2); font-size: 16px; }
.prose h2 { font: 400 24px/1.2 var(--num-font); color: var(--ink); margin: 20px 0 8px; letter-spacing: .3px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { margin: 0 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 10px; }
.prose code { background: var(--row); border: 1px solid var(--row-line); padding: 0 4px; }
.sent { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.sent th, .sent td { text-align: left; padding: 6px 10px; border: 1px solid var(--row-line); background: var(--row); vertical-align: top; font-size: 15px; }
.sent th { width: 30%; color: var(--ink); }
.credit { margin: 10px 2px 0; }
.credit a { font-weight: 700; }
.muted { color: var(--mute); font: 700 14px var(--body-font); margin-left: 8px; }

footer { background: var(--frame); border-top: 2px solid var(--frame-line); color: var(--title-fg); font-size: 14px; }
footer .wrap { padding-top: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
a.btn, .nav a { -webkit-tap-highlight-color: transparent; }

/* inline links keep their line height but get a 40px tall hit area */
.feedrow a, .boardrow .who a, .plate a.pname, .prose a:not(.btn), .credit a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.crown .who a { display: inline-block; padding: 8px 0; margin: -8px 0; }

/* on wide screens slots keep a game inventory size instead of stretching */
@media (min-width: 640px) {
  .slots { grid-template-columns: repeat(6, 84px); }
  .badges { grid-template-columns: repeat(7, 84px); gap: 8px; }
  .badge { width: 84px; }
  .wall .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.podium { max-width: 560px; margin-left: auto; margin-right: auto; }
.win > .body.prose { max-width: none; }
.prose > * { max-width: 66ch; }

.sharerow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
