/* Maple ReAnimated home: the hero video, then the World Report (reanimated/index.html, built by
   dev/reanimated/report/build.mjs). The look is Maple Maker's own (Derek 2026-10-24): its dark
   theme and red accent straight from /styles/tokens.css (<html data-theme="dark" data-accent="red">),
   the pixel-dot ground, chrome panels with hairline borders, the groupbox heading's accent bar,
   Noto Sans. Sizes are larger than the Maker's editor UI, since this is a public page.
   Pixel lock: sprites and portraits stay whole-pixel (1x, or 2x for the tooltip's item icon). */
:root { --sans: 'Noto Sans', 'Noto Sans KR', 'Noto Sans TC', 'Segoe UI', Tahoma, sans-serif; }
html { background: var(--bg); }
body.report-page {
  color: var(--text); font: 15px/1.55 var(--sans);
  /* the Maker's dark pixel-dot ground */
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' x='0' y='0' fill='rgba(255,255,255,0.03)'/%3E%3Crect width='1' height='1' x='2' y='2' fill='rgba(0,0,0,0.3)'/%3E%3C/svg%3E");
  background-size: 4px 4px;
}
.report-page img { image-rendering: pixelated; }
.report-page a { color: var(--accent-text); }
.report-page .mr-foot { margin-top: 0; background: var(--chrome); border-top: 1px solid var(--border); }
.report-page .mr-foot .wrap { color: var(--text-dim); }

/* ── hero (the gameplay loop) ── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: #0d1420; isolation: isolate; color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; image-rendering: auto; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,10,14,.68) 0%, rgba(8,10,14,.3) 45%, rgba(8,10,14,.06) 70%, rgba(8,10,14,.2) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(22,23,27,0) 26%); }
.hero-in { display: grid; gap: 18px; justify-items: start; padding-block: 48px 120px; width: 100%; }
.report-page .hero .logo { width: min(560px, 86vw); height: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); image-rendering: auto; }
.hero .sub { color: #fff; font-size: 18px; max-width: 34em; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
/* Brand buttons: MapleStory Worlds and Discord in their own colours (brand colours stay literal).
   MapleStory Worlds: its app icon's teal gradient with the wordmark's navy (Derek 2026-10-24). */
.hbtn { display: inline-flex; align-items: center; gap: 10px; font: 700 18px var(--sans); text-decoration: none; padding: 12px 26px; border-radius: 10px; border: 1px solid transparent; box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: filter .12s, transform .12s; }
.report-page .hbtn { color: #fff; }
.hbtn:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }
.report-page .hbtn.msw { color: #24203f; background: linear-gradient(180deg, #0cf0fc 0%, #97ffda 100%); border-color: #08c6cf; padding-left: 12px; }
.hbtn.msw .mark { display: block; width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 1px 3px rgba(36,32,63,.35); image-rendering: auto; }
.hbtn.discord { background: #5865f2; border-color: #4752c4; }
.hero .chips { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.hero .chips li { font: 600 13px var(--sans); color: #fff; background: rgba(10,12,16,.5); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 4px 12px; backdrop-filter: blur(4px); display: inline-flex; align-items: center; gap: 7px; }
.hero .chips li[hidden] { display: none; }
.hero .chips .online i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.langs { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; gap: 2px; background: color-mix(in srgb, var(--chrome) 80%, transparent); border: 1px solid var(--border); border-radius: 999px; padding: 3px; backdrop-filter: blur(6px); }
.report-page .langs a { font: 600 13px var(--sans); color: var(--text-mid); text-decoration: none; padding: 4px 12px; border-radius: 999px; }
.report-page .langs a:hover { background: var(--hover-strong); color: var(--text); }
.report-page .langs a[aria-current="page"] { background: var(--accent-fill); color: var(--text-inv); }
.cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; text-decoration: none; font: 600 14px var(--sans); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.report-page .cue { color: #fff; }
.cue i { width: 12px; height: 12px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { .cue i { animation: cue 1.6s ease-in-out infinite; } }
@keyframes cue { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }
@media (max-width: 760px) {
  .hero { align-items: flex-end; }
  .hero-in { justify-items: center; text-align: center; padding-block: 72px 96px; }
  .hero .cta, .hero .chips { justify-content: center; }
  .hero .sub { font-size: 16px; }
  .hbtn { font-size: 16px; padding: 11px 20px; }
}
.lang-hint { margin: 0; background: var(--chrome); border-bottom: 1px solid var(--border); color: var(--text); text-align: center; font: 600 14px var(--sans); padding: 8px 16px; }
.lang-hint button { margin-left: 10px; background: none; border: 0; color: var(--text-dim); font: inherit; cursor: pointer; }

/* ── the report ── */
.report { padding: 8px 0 56px; }
.report-in { display: flex; flex-direction: column; gap: 18px; max-width: 1120px; }
.report-head { padding: 8px 2px 4px; }
.report-head h2 { font: 700 30px/1.15 var(--sans); margin: 0; color: var(--text); letter-spacing: -.01em; }
.report-head p { margin: 4px 0 0; color: var(--text-dim); }
/* until the published world sends its stats: one honest line instead of sample numbers */
.report-head .pending { margin-top: 10px; display: inline-block; color: var(--text-mid); background: var(--chrome); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: 6px; padding: 6px 12px; font-size: 14px; }
.report-head .pending[hidden] { display: none; }

/* a panel = a Maker groupbox: chrome surface, hairline border, heading with the accent bar */
.panel { background: var(--chrome); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px 18px; box-shadow: 0 2px 10px var(--shadow-soft); scroll-margin-top: 16px; }
.panel-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.panel-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 18px var(--sans); color: var(--text); }
.panel-head h2::before { content: ''; width: 3px; height: 16px; border-radius: 2px; background: var(--accent); }
.panel-head small { color: var(--text-dim); font-size: 13px; }
.panel-head .tag { margin-left: auto; font: 600 12px var(--sans); color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); border-radius: 999px; padding: 1px 9px; }
.panel-head .tag[hidden] { display: none; }
.lead { margin: -4px 0 14px; color: var(--text-dim); }
.empty { color: var(--text-dim); margin: 0; }

/* The World So Far */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.stat { display: flex; align-items: center; gap: 14px; background: var(--chrome-hi); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.stat .art { flex: 0 0 72px; height: 72px; display: grid; place-items: center; background: var(--chrome-lo); border-radius: 8px; }
.stat b { display: block; font: 700 28px/1.1 var(--sans); color: var(--text); font-variant-numeric: tabular-nums; }
.stat div > span { font-size: 14px; color: var(--text-dim); }

/* portraits: each player's own look at 1x, its feet (body origin) on the box's centre line, so
   a spear or a cape doesn't push the body off-centre. Box widths stay even (whole-pixel centre).
   The body silhouette shimmers only while a portrait renders. */
.pic { position: relative; display: block; width: 96px; height: 88px; margin: 0 auto; }
.pic img { position: absolute; bottom: 0; left: 50%; display: block; max-width: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.pic .skel { position: absolute; bottom: 0; left: calc(50% - 20px); width: 39px; height: 64px;
  -webkit-mask: url(/reanimated/art/body-silhouette.png) no-repeat center bottom / 39px 64px; mask: url(/reanimated/art/body-silhouette.png) no-repeat center bottom / 39px 64px;
  background: linear-gradient(100deg, #2e3037 30%, #4a4d57 50%, #2e3037 70%) 0 0 / 300% 100%; }
@media (prefers-reduced-motion: no-preference) { .pic .skel { animation: shimmer 1.3s linear infinite; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.pic .skel.still { animation: none; opacity: .5; }
.pic.sm { width: 56px; height: 72px; }

/* Rankings: five cards a page, up to the top 30; a search shows that player's own card */
.rank-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--chrome-lo); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.seg button { font: 600 14px var(--sans); border: 0; background: none; color: var(--text-mid); padding: 5px 16px; border-radius: 999px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--accent-fill); color: var(--text-inv); }
.find input { font: 500 14px var(--sans); color: var(--text); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--input-border); background: var(--input-bg); width: 240px; max-width: 100%; }
.find input::placeholder { color: var(--text-dim); }
.find input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.rank-stage { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 12px; align-items: center; }
.pager { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-lo); background: var(--chrome-hi); color: var(--text); cursor: pointer; display: grid; place-items: center; padding: 0; }
.pager:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-text); }
.pager:disabled { opacity: .3; cursor: default; }
.pager i { width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.pager.prev i { transform: translateX(2px) rotate(45deg); }
.pager.next i { transform: translateX(-2px) rotate(-135deg); }
.pager.off { visibility: hidden; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cards.one { grid-template-columns: minmax(0, 200px); justify-content: center; }
.rcard { aspect-ratio: 1; min-width: 0; background: var(--chrome-hi); border: 1px solid var(--border); border-radius: 8px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.rcard.top1 { border-color: color-mix(in srgb, var(--amber) 65%, transparent); }
.rcard .r { font: 700 18px/1 var(--sans); color: var(--text-mid); }
.rcard.top1 .r { color: var(--amber); }
.rcard .name { font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.rcard .val { font-size: 13px; color: var(--text-dim); line-height: 1.3; }
.rcard .val .pct { margin-left: 4px; }
.btn-sm { display: inline-flex; align-items: center; white-space: nowrap; font: 600 12px var(--sans); padding: 3px 10px; border-radius: 6px; border: 1px solid var(--border-lo); background: var(--chrome); text-decoration: none; }
.report-page .btn-sm { color: var(--text); }
.report-page .btn-sm:hover { border-color: var(--accent); color: var(--accent-text); text-decoration: none; }
.rank-range { text-align: center; color: var(--text-dim); font-size: 13px; margin: 12px 0 0; min-height: 1.5em; font-variant-numeric: tabular-nums; }
.rank-empty { grid-column: 1 / -1; align-self: center; color: var(--text-dim); text-align: center; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rcard { aspect-ratio: auto; } }
/* phones: two cards a row (an odd last one centred), the arrows under them */
@media (max-width: 560px) {
  .rank-stage { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .rank-stage .cards { grid-column: 1 / -1; order: -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cards:not(.one) .rcard:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 4px); }
  .pager.prev { justify-self: end; }
  .pager.next { justify-self: start; }
  .find { flex: 1; } .find input { width: 100%; }
}

/* Work Glove Hall of Fame: the holder beside the glove's v83 tooltip; the record history right */
.gloves { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 820px) { .gloves { grid-template-columns: minmax(0, 1fr); } }
.holder { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; background: var(--chrome-hi); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.holder .who { display: grid; justify-items: center; gap: 6px; }
.holder .who .name { font-weight: 600; }
.holder .who .tag-rec { font: 700 12px var(--sans); color: var(--amber); }
/* The v83 equip tooltip, as the game draws it (msw-7f): a flat #003355 panel at 0.86, 252 wide,
   white text, the name centred, a 68px icon box with the icon at 2x, the req sprites at 1x,
   scroll bonuses in #FFCC45. In-game UI, so its colours stay literal in every theme. */
.tip83 { width: 252px; flex: 0 0 auto; background: rgba(0,51,85,.86); color: #fff; border-radius: 4px; padding: 8px 0 10px; box-shadow: 0 6px 16px rgba(0,0,0,.45); font: 12px/1.35 Arial, var(--sans); outline: 1px solid rgba(255,255,255,.18); }
.tip83 .t-name { text-align: center; font-weight: 700; font-size: 13px; padding: 0 10px 8px; }
.tip83 .t-body { position: relative; height: 72px; }
.tip83 .t-icon { position: absolute; left: 14px; top: 0; width: 68px; height: 68px; display: grid; place-items: center; background: #fff; border-radius: 4px; }
.tip83 .t-icon img { width: 56px; height: 56px; }
.tip83 .t-reqs { position: absolute; left: 96px; top: 2px; display: grid; gap: 4px; }
.tip83 .t-req { position: relative; display: block; height: 7px; }
.tip83 .t-req .n { position: absolute; left: 60px; top: 0; display: flex; gap: 1px; }
.tip83 .t-jobs { display: flex; gap: 2px; justify-content: center; padding: 6px 8px 8px; }
.tip83 .t-sep { height: 1px; margin: 0 10px 6px; background: rgba(255,255,255,.35); }
.tip83 .t-line { padding: 0 14px; }
.tip83 .t-line.bonus { color: #ffcc45; }
.hist-h { font: 600 14px var(--sans); color: var(--text-mid); margin: 0 0 8px; }
.history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.history li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--chrome-hi); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; font-size: 14px; }
.history li .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history .plus { font-weight: 700; color: var(--accent-text); }
.history time { font-size: 12px; color: var(--text-dim); margin-left: 6px; }

/* Juggle Kings reuse the rank cards. Pet Race: each course's top 3 as a podium, 2-1-3,
   the winner's card raised; the time in tabular figures. */
.podium { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; max-width: 620px; }
.podium .rcard { aspect-ratio: auto; gap: 4px; }
.podium .val { min-height: 1.3em; }   /* a time without a pet keeps the card's height */
/* the pet at 1x, mirrored to face its owner, tucked into the portrait box's empty left side */
.racer { display: inline-flex; align-items: flex-end; max-width: 100%; }
.racer .pet { position: relative; flex: 0 0 auto; transform: scaleX(-1); margin-right: -24px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.racer .pet > img { display: block; }
.racer .pet .pethat { position: absolute; }   /* left/top from the game's fit (report.js petArt) */
.racer .pic { z-index: 1; }
@media (max-width: 560px) { .racer .pet { margin-right: -28px; } }
.podium .place1 { order: 2; padding-top: 22px; border-color: color-mix(in srgb, var(--amber) 65%, transparent); }
.podium .place1 .r { color: var(--amber); }
.podium .place2 { order: 1; }
.podium .place3 { order: 3; }
.rcard .time, .rcard .chain { font: 700 18px/1.2 var(--sans); font-variant-numeric: tabular-nums; color: var(--text); }
.rcard .chain { font-size: 15px; }
@media (max-width: 560px) { .podium { gap: 6px; } .rcard .time { font-size: 15px; } }

/* Sera's Knockouts: one big number with her boss icon (2x, whole pixels) */
.ko { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; background: var(--chrome-hi); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.ko .art { flex: 0 0 72px; height: 72px; display: grid; place-items: center; background: var(--chrome-lo); border-radius: 8px; }
.ko b { display: block; font: 700 34px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.ko div > span { color: var(--text-dim); }
/* every boss's wins, one card each (icons at 2x) */
.bosses { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.bosses li { display: flex; align-items: center; gap: 14px; background: var(--chrome-hi); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.bosses .art { flex: 0 0 64px; height: 64px; display: grid; place-items: center; background: var(--chrome-lo); border-radius: 8px; }
.bosses .boss { display: block; font-weight: 600; color: var(--text-mid); font-size: 14px; }
.bosses b { display: block; font: 700 24px/1.15 var(--sans); font-variant-numeric: tabular-nums; }
.bosses div > span:last-child { font-size: 13px; color: var(--text-dim); }

/* Recent Activity */
.tabsrow { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabsrow button { font: 600 13.5px var(--sans); border: 1px solid var(--border); padding: 5px 12px; border-radius: 6px; background: var(--chrome-hi); color: var(--text-mid); cursor: pointer; }
.tabsrow button:hover { color: var(--text); border-color: var(--border-lo); }
.tabsrow button[aria-selected="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--text-inv); }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-height: 80px; }
.feed li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--chrome-hi); border: 1px solid var(--border); border-radius: 6px; padding: 4px 12px; min-height: 60px; }
.feed .what b { font-weight: 600; }
.feed .what small { display: block; color: var(--text-dim); font-size: 13px; }
.feed time { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.feed .icon { display: grid; place-items: center; }
.feed .empty-row { grid-template-columns: 1fr; }
@media (max-width: 560px) { .feed li { grid-template-columns: 56px minmax(0, 1fr); } .feed time { grid-column: 2; } }
