/* Maple ReAnimated home (reanimated/index.html) */
/* The sky stops at the grass line; the soil below fades into the page's dotted grey (Derek 2026-09-27). */
.hero { position: relative; overflow-x: clip; overflow-y: visible; z-index: 0; --s: 2;
  background: linear-gradient(180deg, #a9dcf2 0%, #cdeefa 60%, #e9f8fd 100%) top / 100% calc(100% - 48px * var(--s)) no-repeat; }
.hero-in { position: relative; padding-block: 40px 8px; }
.hero-copy { position: relative; z-index: 2; display: grid; gap: 16px; justify-items: start; max-width: 620px; }
.logo { width: min(560px, 100%); height: auto; image-rendering: auto; filter: drop-shadow(0 6px 0 rgba(0,0,0,.08)); }
.sub { margin: 0; font-size: 17px; color: #23405c; max-width: 52ch; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.icon { padding-inline: 14px; }
.discord-btn { background: var(--discord); border-color: #3c46c8; color: #fff; box-shadow: 0 3px 0 #3c46c8; }
.discord-btn:hover { background: #6b76ff; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 600 12px var(--sans); color: #23405c; background: rgba(255,255,255,.7); border: 1px solid rgba(35,64,92,.15); border-radius: 999px; padding: 3px 11px; }

/* the island stage: monsters wander on v83 grassySoil (Maple Island's own tiles,
   reanimated/art/ground.png: enH0 over bsc, composited from the WZ pieces). Sprites are
   in logical px inside #world; JS sets --s (the pixel scale) and the heights. */
.stage { position: relative; --s: 2; height: calc(130px * var(--s)); margin-top: 4px; }
.stage-world { position: absolute; left: 0; bottom: calc(22px * var(--s)); transform-origin: 0 100%; z-index: 1; }
.stage-world .spr > img { pointer-events: auto; cursor: pointer; }
.stage-world .fx > img { pointer-events: none; cursor: default; }
/* The ground: enH0 over three rows of bsc (reanimated/art/ground.png, 360x219 at 1x). Its top sits
   at the grass line; the soil hangs below the hero, behind the next section, and fades out slowly
   so there is no edge (Derek 2026-09-27). */
.ground { position: absolute; left: 0; right: 0; top: calc(100% - 58px * var(--s)); height: calc(219px * var(--s)); z-index: -1;
  background: url('/reanimated/art/ground.png') 0 0 / calc(360px * var(--s)) auto repeat-x; image-rendering: pixelated; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 22%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.18) 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 22%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.18) 70%, transparent 100%); }
.stage { height: calc(148px * var(--s)); }
.stage-world { bottom: calc(40px * var(--s)); }
/* mobs: HP bar on hit, the v83 damage digits, the meso drop, and the fade-in respawn */
.stage-world .spr.respawn { animation: respawn 600ms ease-out; }
@keyframes respawn { from { opacity: 0; } to { opacity: 1; } }
.stage-world .spr.dying { transition: opacity 400ms 200ms; opacity: 0; }
.dmgnum { position: absolute; display: flex; transform: translateX(-50%); pointer-events: none; animation: dmgrise 1000ms ease-out forwards; }
.dmgnum img { display: block; margin-left: -9px; }
.dmgnum img:first-child { margin-left: 0; }
@keyframes dmgrise { 0% { transform: translate(-50%, 0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(-50%, -30px); opacity: 0; } }
.meso-drop { position: absolute; transform: translate(-50%, -100%); pointer-events: none; animation: mesodrop 1800ms ease-out forwards; }
@keyframes mesodrop { 0% { transform: translate(-50%, -100%) translateY(-18px); opacity: 1; } 18% { transform: translate(-50%, -100%) translateY(0); } 80% { opacity: 1; } 100% { opacity: 0; } }
.stage-world .boss > img { pointer-events: none !important; cursor: default !important; }
.boss-name { position: absolute; transform: translate(-50%, 2px); font: 700 6.5px var(--sans); color: #fff; background: rgba(20,28,44,.8); padding: 1px 6px; border-radius: 3px; white-space: nowrap; pointer-events: none; }
.dmg { position: absolute; font: 700 16px var(--round); color: #ffb640; -webkit-text-stroke: 1px #7a3d00; pointer-events: none; animation: dmg 900ms ease-out forwards; }
@keyframes dmg { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -34px); opacity: 0; } }

.home-grid, .explore, main > .wrap { position: relative; z-index: 1; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 18px; padding-block: 26px 10px; align-items: start; }
@media (max-width: 880px) { .home-grid { grid-template-columns: 1fr; } }
.small { font-size: 12px; margin: 8px 0 0; }

/* rankings */
.rank-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { font: 600 13px var(--round); border: 0; background: transparent; color: var(--ink-mid); padding: 5px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
.find input { font: 14px var(--sans); padding: 7px 12px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; width: 200px; }
.podium { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.podium:empty { display: none; }
.podium li { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; background: linear-gradient(180deg, #fff, var(--paper-2)); border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.podium li:first-child { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(232,163,58,.25); }
.podium .pic { min-height: 92px; width: 100%; display: grid; place-items: end center; }
.podium .pic img { max-width: none; image-rendering: pixelated; }   /* 1x, never resized (Derek 2026-09-27) */
.podium .pic .ph { width: 38px; height: 70px; border-radius: 18px 18px 6px 6px; background: rgba(35,64,92,.12); }
.podium b { font: 600 13px var(--round); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.podium small { color: var(--ink-dim); font-size: 11.5px; }
.podium .r { position: absolute; top: 6px; left: 8px; font: 600 12px var(--round); color: var(--ink-dim); }
.podium li:first-child .r { color: var(--gold-lo); }
.podium .open { position: absolute; left: 6px; right: 6px; bottom: 6px; opacity: 0; transition: opacity .12s; justify-content: center; }
.podium li:hover .open, .podium li:focus-within .open { opacity: 1; }
@media (max-width: 560px) { .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); } .podium li:nth-child(n+4) { display: none; } }
table.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th { text-align: left; font: 700 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); padding: 6px 8px; border-bottom: 1.5px solid var(--line-2); }
.board td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.board .pos { width: 34px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.board .act { width: 160px; text-align: right; }
.board .act .btn { opacity: 0; transition: opacity .12s; }
.board tr:hover .act .btn, .board tr:focus-within .act .btn, .board tr.hit .act .btn { opacity: 1; }
.board tr.hit td { background: #fff4d6; }
.board .pct { color: var(--ink-dim); font-size: 12px; margin-left: 4px; }
@media (hover: none) { .board .act .btn, .podium .open { opacity: 1; } }
@media (max-width: 560px) { .board .act { width: auto; } }

/* patch notes */
.notes ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notes li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.notes h3 { margin: 0 0 3px; font-size: 15px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.notes p { margin: 0; font-size: 13.5px; color: var(--ink-mid); }
.more { display: inline-block; margin-top: 12px; font: 600 14px var(--round); text-decoration: none; }

/* explore */
.explore { padding-block: 24px 6px; }
.explore h2 { margin: 0; font-size: 26px; }
.explore > p { margin: 4px 0 14px; }
.ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 880px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ex { display: grid; align-content: end; gap: 2px; min-height: 104px; padding: 14px 16px; border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); transition: transform .12s, border-color .12s; }
.ex:hover { transform: translateY(-2px); border-color: var(--leaf); }
.ex b { font: 600 19px var(--round); }
.ex span { font-size: 13px; color: var(--ink-dim); }
.ex.big { grid-row: span 2; background: linear-gradient(180deg, rgba(255,250,241,0) 30%, var(--paper) 78%), url('/reanimated/art/worldmap-thumb.png') center 20% / cover no-repeat, var(--paper); image-rendering: pixelated; }
.ex.big b { font-size: 26px; }
@media (max-width: 880px) { .ex.big { grid-column: span 2; grid-row: auto; min-height: 200px; } }

.discord { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 22px; background: var(--discord); border-color: #3c46c8; box-shadow: 0 2px 0 #3c46c8; color: #fff; }
.discord h2 { color: #fff; margin: 0 0 2px; }
.discord p { margin: 0; color: #e3e6ff; }
.discord .btn { border-color: #fff; }

/* hit feel: a short white flash on the struck mob (tuned to the game's numbers when msw exports them) */
.stage-world .spr.flash > img { filter: brightness(2.2) saturate(.3); }

/* the v83 NoRed0 digits, laid out bottom-centred and flown by home.js (the game's glyph path) */
.dmgglyph { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; transform-origin: 0 0; z-index: 3; }
.dmgglyph img { position: absolute; display: block; max-width: none; }
.stage-world .fx { z-index: 2; }

/* Mai's lance telegraph (stage.bosses.Mai.telegraphFx.lane): scrim + red band fading up from the floor,
   a 2 px floor line and a far-end cap; home.js drives the accelerating flicker through opacity */
.lane-decal { position: absolute; pointer-events: none; z-index: -1;
  background: linear-gradient(0deg, rgba(255,214,196,.62) 0 2px, transparent 2px),
              linear-gradient(0deg, rgba(255,64,64,.98), rgba(255,64,64,0)),
              linear-gradient(0deg, rgba(40,2,6,.55), rgba(40,2,6,0)); }
.lane-decal::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: rgba(255,190,175,.85); }
.lane-decal.from-right::after { right: auto; left: 0; }

/* players online (hero chip): a live green dot */
.chips li.online { display: inline-flex; align-items: center; gap: 6px; }
.chips li[hidden] { display: none; }   /* the rule above beat [hidden]: an empty dot showed when nobody's online */
.chips li.online i { width: 7px; height: 7px; border-radius: 50%; background: #3fb34f; box-shadow: 0 0 0 0 rgba(63,179,79,.6); animation: livedot 2s infinite; }
@keyframes livedot { 0% { box-shadow: 0 0 0 0 rgba(63,179,79,.6); } 70% { box-shadow: 0 0 0 6px rgba(63,179,79,0); } 100% { box-shadow: 0 0 0 0 rgba(63,179,79,0); } }
