/* Pixel Heroes landing — night camp palette from the game: deep violet sky, brass UI, campfire orange */
:root {
  --bg: #0a0710; --bg2: #120c1a; --panel: #1a1222; --panel2: #23182c; --ink: #050308;
  --brass: #e0a83a; --brass-l: #ffd870; --brass-d: #8a5a18; --ember: #ff8a30; --violet: #9a6cff; --teal: #3fe0c0;
  --text: #f3e9d8; --dim: #b4a59a; --mute: #7c6f72; --good: #6dffa0; --bad: #ff6a5a;
  --pix: 4px;
  --th: "Kanit", "IBM Plex Sans Thai", system-ui, sans-serif;
  --body: "IBM Plex Sans Thai", "Kanit", system-ui, sans-serif;
  --px: "Silkscreen", "Kanit", monospace;
  --max: 1200px;
  --sa-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--th); line-height: 1.2; margin: 0; }
p { margin: 0; }
.dim { color: var(--dim); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--brass); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brass-l); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* ---------------------------------------------------------------- pixel bits */
.pix-border { box-shadow: 0 calc(-1 * var(--pix)) 0 0 var(--ink), 0 var(--pix) 0 0 var(--ink), calc(-1 * var(--pix)) 0 0 0 var(--ink), var(--pix) 0 0 0 var(--ink); }
.pi { display: inline-block; width: 18px; height: 18px; background: currentColor; flex: none;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; image-rendering: pixelated; }
/* 8x8 pixel glyphs as SVG masks */
.pi.play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M2 1h1v1h1v1h1v1h1v1H5v1H4v1H3v1H2z'/%3E%3C/svg%3E"); }
.pi.pause { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M2 1h1v6H2zM5 1h1v6H5z'/%3E%3C/svg%3E"); }
.pi.globe { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h4v1h1v1h1v4H7v1H6v1H2V7H1V6H0V2h1V1h1zM3 1v2H1v2h2v2h2V5h2V3H5V1z'/%3E%3C/svg%3E"); }
.pi.phone { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h4v8H2zM3 1v5h2V1zM3.5 6.5h1v1h-1z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.pi.pc { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M0 1h8v5H5v1h1v1H2V7h1V6H0zM1 2v3h6V2z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.pi.bolt { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M4 0h2v1H5v2h2v1H6v1H5v1H4v1H3v1H2V6h1V5H1V4h1V3h1V2h1z'/%3E%3C/svg%3E"); }
.pi.chest { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M1 1h6v1h1v5H0V2h1zM0 4h3v1h2V4h3v1H5v1H3V5H0z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.pi.shield { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h6v5H6v1H5v1H4v1H4V7H3V6H2V5H1zM3 2v2h2V2z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
.pi.hammer { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h5v1h1v2H5v1H4v1H3v1H2v1H1v1H0V7h1V6h1V5h1V4H1z'/%3E%3C/svg%3E"); }
.pi.coin { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h4v1h1v1h1v4H7v1H6v1H2V7H1V6H0V2h1V1h1zM3 2v4h2V2z' fill-rule='evenodd'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------- buttons */
.btn { --bg: var(--panel2); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--th); color: var(--text); text-decoration: none; background: var(--bg); overflow: hidden;
  box-shadow: inset 3px 3px 0 rgba(255, 230, 180, .18), inset -3px -3px 0 rgba(0, 0, 0, .45), 0 0 0 3px var(--ink); transition: transform .12s, filter .12s; }
.btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn.gold { --bg: linear-gradient(#ffd870, var(--brass) 55%, #a06a1e); color: #2a1600; text-shadow: 0 1px 0 rgba(255, 240, 200, .6);
  box-shadow: inset 3px 3px 0 #fff0b0, inset -3px -3px 0 var(--brass-d), 0 0 0 3px var(--ink), 0 0 28px rgba(255, 170, 60, .35); }
.btn.gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 230, .6), transparent); animation: shine 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 60% { left: -40%; } 100% { left: 130%; } }
.btn.ghost { --bg: rgba(20, 12, 26, .55); backdrop-filter: blur(6px); }
.btn.big { padding: 18px 34px; font-size: 20px; }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn .pi { width: 16px; height: 16px; }
.btn:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 12px max(20px, calc((100vw - var(--max)) / 2));
  transition: background .25s, box-shadow .25s; }
.nav.solid { background: rgba(10, 7, 16, .92); backdrop-filter: blur(10px); box-shadow: 0 3px 0 var(--ink), 0 4px 0 rgba(224, 168, 58, .25); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand b { font: 700 18px/1 var(--px); letter-spacing: .06em; color: var(--brass-l); text-shadow: 2px 2px 0 var(--ink); }
.brand-ico { width: 30px; height: 30px; background: url(/media/icon-192.png) center / cover; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--ink); }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; font: 600 15px var(--th); color: var(--dim); position: relative; padding: 4px 0; }
.links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brass); transition: right .2s; }
.links a:hover, .links a.on { color: var(--text); }
.links a:hover::after, .links a.on::after { right: 0; }
@media (max-width: 860px) { .links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -3; background: #000; }
.hv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; opacity: 0; transition: opacity 1.1s; transform: scale(1.04); }
.hv.on { opacity: 1; animation: kb 9s linear both; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; image-rendering: pixelated; }
.hero-shade { position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(10, 7, 16, .25), rgba(10, 7, 16, .78) 75%), linear-gradient(rgba(10, 7, 16, .55), transparent 30%, transparent 60%, var(--bg));
  }
.hero-shade::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 3px, rgba(0, 0, 0, .14) 3px 4px); mix-blend-mode: multiply; }
.hero-in { text-align: center; padding: 110px 20px 120px; max-width: 900px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--px); letter-spacing: .12em; color: var(--good); background: rgba(10, 30, 18, .7); padding: 6px 12px; box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px rgba(109, 255, 160, .35); }
.badge .dot { width: 8px; height: 8px; background: var(--good); animation: blink 1.4s steps(2) infinite; box-shadow: 0 0 10px var(--good); }
@keyframes blink { 50% { opacity: .2; } }
.logo { margin: 22px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 700 clamp(48px, 11vw, 132px)/.9 var(--px); letter-spacing: .04em; }
.logo span { background: linear-gradient(#fff6c8 0 18%, #ffd870 18% 46%, #e0a83a 46% 70%, #a06a1e 70%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(4px 4px 0 var(--ink)) drop-shadow(0 0 26px rgba(255, 170, 60, .45)); animation: rise .9s cubic-bezier(.2, .9, .3, 1.2) both; }
.logo span + span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(30px) scale(.9); opacity: 0; } }
.tag { display: inline-block; font: 800 clamp(22px, 3.6vw, 36px)/1.2 var(--th); color: var(--text); text-shadow: 3px 3px 0 var(--ink); padding: 4px 18px; border-top: 3px solid var(--brass-d); border-bottom: 3px solid var(--brass-d); background: rgba(10, 7, 16, .45); }
.lede { margin: 18px auto 0; max-width: 640px; font-size: clamp(15px, 1.8vw, 18px); color: #e4d8c8; text-shadow: 1px 1px 0 var(--ink); }
.cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.plats { list-style: none; display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; padding: 0; margin: 26px 0 0; font: 600 14px var(--th); color: var(--dim); }
.plats li { display: flex; align-items: center; gap: 7px; }
.plats .pi { color: var(--brass); width: 16px; height: 16px; }
.hero-live { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; font: 600 14px var(--th); padding: 8px 16px; white-space: nowrap;
  background: rgba(40, 20, 50, .8); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px rgba(154, 108, 255, .5); max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.hero-live b { color: var(--brass-l); }
.scroll { position: absolute; bottom: 22px; left: 50%; width: 26px; height: 40px; transform: translateX(-50%); box-shadow: 0 0 0 2px var(--dim); }
.scroll i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--brass-l); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(14px); opacity: 0; } 61% { transform: none; opacity: 0; } }

/* ---------------------------------------------------------------- strip */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); max-width: var(--max); margin: -40px auto 0; position: relative; z-index: 2; background: var(--panel); box-shadow: 0 0 0 4px var(--ink), inset 0 0 0 2px var(--brass-d); }
.strip div { padding: 22px 12px; text-align: center; }
.strip div + div { border-left: 2px dashed rgba(224, 168, 58, .25); }
.strip b { display: block; font: 700 clamp(28px, 4vw, 42px)/1 var(--px); color: var(--brass-l); text-shadow: 3px 3px 0 var(--ink); }
.strip span { font: 600 14px var(--th); color: var(--dim); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); margin: -30px 16px 0; } .strip div:last-child { grid-column: 1 / -1; } .strip div + div { border-left: 0; } .strip div { border-top: 2px dashed rgba(224, 168, 58, .2); } .strip div:first-child, .strip div:nth-child(2) { border-top: 0; } }

/* ---------------------------------------------------------------- sections */
.sec { max-width: var(--max); margin: 0 auto; padding: 110px 20px 0; }
.sec-h { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.kicker { font: 700 13px var(--px); letter-spacing: .3em; color: var(--brass); margin-bottom: 10px; }
.kicker::before, .kicker::after { content: "◆"; font-size: 9px; vertical-align: 2px; margin: 0 10px; color: var(--brass-d); }
.kicker.red { color: var(--bad); }
.sec-h h2, .pvp h2 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; text-shadow: 4px 4px 0 var(--ink); }
.sec-h p:not(.kicker) { margin-top: 14px; color: var(--dim); font-size: 17px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- theater */
.theater { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
.screen { position: relative; background: #000; box-shadow: 0 0 0 4px var(--ink), 0 0 0 7px var(--brass-d), 0 0 0 10px var(--ink), 0 30px 80px rgba(0, 0, 0, .6); aspect-ratio: 16 / 9; overflow: hidden; }
.screen video { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.screen-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; background: linear-gradient(transparent, rgba(5, 3, 8, .85)); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.screen-cap b { font: 800 22px var(--th); text-shadow: 2px 2px 0 var(--ink); }
.screen-cap span { color: var(--dim); font-size: 14px; }
.sound { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; display: grid; place-items: center; background: rgba(10, 7, 16, .7); color: var(--text); cursor: pointer; box-shadow: 0 0 0 2px var(--ink); }
.playlist { display: flex; flex-direction: column; gap: 10px; max-height: calc((min(100vw, var(--max)) - 358px) * 9 / 16); overflow: auto; padding: 4px; scrollbar-width: thin; scrollbar-color: var(--brass-d) transparent; }
.pl { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 6px; border: 0; text-align: left; cursor: pointer; background: var(--panel); color: var(--text); box-shadow: 0 0 0 2px var(--ink); transition: background .15s; font: inherit; }
.pl img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }
.pl b { display: block; font: 600 15px/1.3 var(--th); }
.pl small { color: var(--dim); font-size: 12px; }
.pl:hover { background: var(--panel2); }
.pl.on { background: linear-gradient(90deg, rgba(224, 168, 58, .25), var(--panel)); box-shadow: 0 0 0 2px var(--ink), inset 3px 0 0 var(--brass); }
@media (max-width: 900px) { .theater { grid-template-columns: 1fr; } .playlist { flex-direction: row; max-height: none; overflow-x: auto; } .pl { grid-template-columns: 1fr; min-width: 150px; } .pl img { width: 100%; } }

/* ---------------------------------------------------------------- four */
.four { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card4 { background: var(--panel); box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 2px rgba(224, 168, 58, .14); padding: 14px 14px 22px; transition: transform .2s; }
.card4:hover { transform: translateY(-4px); }
.c4-media { aspect-ratio: 16 / 9; background: #000; overflow: hidden; margin-bottom: 16px; box-shadow: 0 0 0 2px var(--ink); }
.c4-media video { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.card4 h3 { font-size: 23px; font-weight: 800; display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.num { font: 700 14px var(--px); color: var(--ink); background: var(--brass); padding: 3px 7px; box-shadow: 2px 2px 0 var(--ink); }
.card4 p { color: var(--dim); margin-top: 10px; padding: 0 6px; }
.keys { font-size: 14px; color: var(--mute) !important; }
kbd { display: inline-block; min-width: 26px; padding: 1px 7px; margin: 0 2px; font: 700 12px/20px var(--px); color: var(--text); text-align: center; background: var(--panel2); box-shadow: inset 0 -3px 0 var(--ink), 0 0 0 2px var(--ink); }
@media (max-width: 760px) { .four { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- heroes */
.roster { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.roster-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; }
.rh { --cc: var(--brass); position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 8px; border: 0; cursor: pointer; color: var(--text); font: inherit;
  background: linear-gradient(color-mix(in srgb, var(--cc) 16%, var(--panel)), var(--panel)); box-shadow: 0 0 0 2px var(--ink), inset 0 -3px 0 color-mix(in srgb, var(--cc) 60%, transparent); transition: transform .15s; }
.rh:hover { transform: translateY(-3px); }
.rh.on { background: linear-gradient(color-mix(in srgb, var(--cc) 40%, var(--panel)), var(--panel2)); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px var(--cc), 0 0 22px color-mix(in srgb, var(--cc) 40%, transparent); }
.rh b { font: 600 15px/1.2 var(--th); }
.rh small { font-size: 12px; color: var(--cc); }
.spr { width: 72px; height: 84px; background: var(--img) 0 0 / 200% 100% no-repeat; image-rendering: pixelated; animation: idle 1s steps(1) infinite; }
.spr.big { width: 96px; height: 112px; flex: none; }
.spr.huge { width: 168px; height: 196px; }
.spr.flip { transform: scaleX(-1); }
@keyframes idle { 50% { background-position: 100% 0; } }
.roster-stage { background: var(--panel); box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 2px rgba(224, 168, 58, .14); display: grid; grid-template-rows: auto 1fr; }
.st-video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.st-video { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 65%, #293659, #101423 60%, #090b13); }
.st-video img { height: 94%; width: auto; object-fit: contain; image-rendering: pixelated; }
.st-cls { position: absolute; top: 12px; left: 12px; font: 700 13px var(--px); letter-spacing: .1em; padding: 5px 10px; background: rgba(5, 3, 8, .75); box-shadow: 0 0 0 2px var(--ink); }
.st-info { padding: 18px 20px 22px; }
.st-head { display: flex; gap: 16px; align-items: center; margin-top: -64px; position: relative; }
.st-head h3 { font-size: 34px; font-weight: 800; text-shadow: 3px 3px 0 var(--ink); }
.st-head p { color: var(--brass-l); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.stat { font-size: 13px; color: var(--dim); }
.stat i { display: block; height: 8px; margin-top: 4px; background: var(--ink); position: relative; }
.stat i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--cc, var(--brass)); transition: width .5s; }
.skills { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.skills li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; padding: 8px; background: var(--bg2); box-shadow: 0 0 0 2px var(--ink); }
.skills img { width: 44px; height: 44px; image-rendering: pixelated; box-shadow: 0 0 0 2px var(--ink); background: #140c08; }
.skills b { font: 600 15px/1.3 var(--th); display: block; }
.skills small { display: block; font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.skills em { font-style: normal; font: 700 10px var(--px); color: var(--teal); }
@media (max-width: 900px) { .roster { grid-template-columns: 1fr; } .roster-list { grid-template-columns: repeat(5, 1fr); } .rh small { display: none; } .spr { width: 48px; height: 56px; } }
@media (max-width: 560px) { .roster-list { grid-template-columns: repeat(5, 1fr); gap: 6px; } .rh b { font-size: 12px; } .skills { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, 1fr); } .st-head { margin-top: -44px; } .st-head h3 { font-size: 26px; } .spr.big { width: 72px; height: 84px; } }
.secret { margin-top: 26px; background: repeating-linear-gradient(-45deg, #140a10 0 14px, #1a0d14 14px 28px); box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 2px rgba(255, 60, 80, .3); overflow: hidden; }
.secret-in { display: flex; gap: 26px; align-items: center; padding: 22px 26px; }
.secret h3 { font-size: 24px; font-weight: 800; }
.secret p:not(.kicker) { color: var(--dim); margin: 8px 0 14px; }
.sil { display: flex; gap: 4px; flex: none; }
.sil .spr { filter: brightness(0) drop-shadow(0 0 8px rgba(255, 50, 70, .7)); transition: filter .4s; }
.secret.peek .sil .spr { filter: none; }
.secret .kicker::before, .secret .kicker::after { color: #7a2030; }
@media (max-width: 640px) { .secret-in { flex-direction: column; text-align: center; } }

/* ---------------------------------------------------------------- systems */
.sys { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.forge { background: linear-gradient(#2a1810, var(--panel)); box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 2px var(--brass-d); padding: 22px; }
.fg-top { display: flex; gap: 16px; align-items: center; }
.fg-item { position: relative; width: 88px; height: 88px; display: grid; place-items: center; background: #140c08; box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 3px #ffb347, 0 0 24px rgba(255, 179, 71, .3); flex: none; }
.fg-item img { width: 64px; height: 64px; image-rendering: pixelated; }
.fg-item b { position: absolute; right: 4px; top: 2px; font: 700 14px var(--px); color: var(--brass-l); text-shadow: 2px 2px 0 var(--ink); }
.fg-tx h3 { font-size: 24px; font-weight: 800; color: #ffb347; text-shadow: 2px 2px 0 var(--ink); }
.fg-tx h3 span { color: var(--brass-l); }
.fg-odds { margin: 18px 0 12px; }
.obar { display: flex; height: 16px; background: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.obar i { display: block; height: 100%; transition: flex-basis .4s; }
.obar .ok { background: repeating-linear-gradient(90deg, #4ac850 0 6px, #3aa840 6px 8px); }
.obar .dn { background: repeating-linear-gradient(90deg, #e0b030 0 6px, #c09020 6px 8px); }
.obar .br { background: repeating-linear-gradient(90deg, #e04030 0 6px, #b02a20 6px 8px); }
#fg-odds { margin-top: 8px; font-size: 14px; font-weight: 600; }
#fg-odds .g { color: var(--good); } #fg-odds .y { color: var(--brass-l); } #fg-odds .r { color: var(--bad); }
.fg-res { text-align: center; padding: 10px; font: 800 18px var(--th); background: var(--bg2); box-shadow: 0 0 0 2px var(--ink); min-height: 50px; }
.fg-res.up { background: #1d4a22; color: var(--good); animation: pop .25s steps(3); }
.fg-res.down { background: #4a3a12; color: var(--brass-l); animation: shake .35s; }
.fg-res.break { background: #4a1414; color: #ffb0a0; animation: shake .45s; }
.fg-res.saved { background: #12304a; color: #9fd8ff; animation: pop .25s steps(3); }
@keyframes pop { from { transform: scale(1.12); } }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(4px); } }
.forge.flash .fg-item { animation: glow .5s; }
.forge.boom .fg-item { animation: shake .45s; filter: saturate(0) brightness(1.6); }
@keyframes glow { 40% { box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 3px #fff, 0 0 60px rgba(255, 220, 120, .9); } }
.fg-row { display: flex; gap: 12px; margin-top: 14px; align-items: stretch; }
.fg-row .btn { flex: 1; font-size: 20px; }
.charm { flex: 1.3; display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: var(--bg2); box-shadow: 0 0 0 2px var(--ink); cursor: pointer; }
.charm input { width: 20px; height: 20px; accent-color: var(--brass); }
.charm b { display: block; font: 600 14px var(--th); }
.charm small { color: var(--dim); font-size: 12px; }
.fg-log { margin-top: 12px; font-size: 13px; color: var(--mute); text-align: center; }
.sys-list { display: grid; gap: 14px; }
.sys-list article { display: flex; gap: 16px; padding: 18px; background: var(--panel); box-shadow: 0 0 0 3px var(--ink); }
.sys-list .pi { width: 34px; height: 34px; color: var(--brass); margin-top: 4px; }
.sys-list h3 { font-size: 19px; font-weight: 800; }
.sys-list p { color: var(--dim); font-size: 15px; margin-top: 4px; }
@media (max-width: 900px) { .sys { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- pvp */
.pvp { max-width: none; padding-left: 0; padding-right: 0; }
.pvp-in { max-width: var(--max); margin: 0 auto; padding: 50px 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center;
  background: radial-gradient(ellipse at 75% 50%, rgba(154, 108, 255, .28), transparent 60%), linear-gradient(110deg, #1a0e24, #0e0a18); box-shadow: 0 0 0 4px var(--ink), inset 0 0 0 2px rgba(154, 108, 255, .4); }
.pvp-tx p:not(.kicker) { color: var(--dim); margin-top: 14px; font-size: 17px; }
.pvp .kicker { text-align: left; }
.pvp .kicker::before { display: none; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; background: var(--teal); box-shadow: 2px 2px 0 var(--ink); }
.pvp-vs { display: flex; align-items: center; justify-content: center; gap: 4px; }
.pvp-vs b { font: 700 54px var(--px); color: var(--bad); text-shadow: 4px 4px 0 var(--ink), 0 0 30px rgba(255, 60, 60, .6); animation: vs 1.2s ease-in-out infinite; }
@keyframes vs { 50% { transform: scale(1.15) rotate(-4deg); } }
@media (max-width: 760px) { .pvp-in { grid-template-columns: 1fr; padding: 34px 20px; margin: 0 16px; } .spr.huge { width: 112px; height: 130px; } }

/* ---------------------------------------------------------------- maps */
.maps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: m; }
.mapc { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; box-shadow: 0 0 0 3px var(--ink); counter-increment: m; }
.mapc img, .mapc video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform .6s; }
.mapc video { opacity: 0; transition: opacity .3s; }
.mapc.play video { opacity: 1; }
.mapc:hover img { transform: scale(1.06); }
.mapc .cap { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(5, 3, 8, .92)); }
.mapc .cap::before { content: "0" counter(m); position: absolute; left: 16px; bottom: 58px; font: 700 13px var(--px); color: var(--brass); }
.mapc h3 { font-size: 22px; font-weight: 800; text-shadow: 2px 2px 0 var(--ink); }
.mapc p { font-size: 13px; color: var(--dim); }
@media (max-width: 900px) { .maps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .maps { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- board */
.board { max-width: 760px; margin: 0 auto; background: var(--panel); box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 2px rgba(224, 168, 58, .14); }
.b-tabs { display: flex; }
.b-tabs button { flex: 1; padding: 14px; border: 0; cursor: pointer; font: 600 15px var(--th); color: var(--dim); background: var(--bg2); box-shadow: inset 0 -3px 0 var(--ink); }
.b-tabs button.on { color: var(--text); background: var(--panel); box-shadow: inset 0 -3px 0 var(--brass); }
.b-rows { list-style: none; margin: 0; padding: 10px; display: grid; gap: 6px; min-height: 120px; }
.b-rows li { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--bg2); box-shadow: 0 0 0 2px var(--ink); }
.b-rows li.empty { display: block; text-align: center; color: var(--dim); }
.b-rows .rk { font: 700 18px var(--px); color: var(--mute); text-align: center; }
.b-rows li:nth-child(1) .rk { color: #ffd45e; } .b-rows li:nth-child(2) .rk { color: #d8e0ff; } .b-rows li:nth-child(3) .rk { color: #e09a5a; }
.b-rows li:nth-child(-n+3) { background: linear-gradient(90deg, rgba(224, 168, 58, .14), var(--bg2)); }
.b-rows b { font: 600 16px var(--th); }
.b-rows small { display: block; color: var(--violet); font-size: 12px; }
.b-rows .v { font: 700 15px var(--px); color: var(--brass-l); text-align: right; }

/* ---------------------------------------------------------------- steps + faq */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { position: relative; padding: 28px 22px 22px; background: var(--panel); box-shadow: 0 0 0 3px var(--ink); }
.steps li > b { position: absolute; top: -18px; left: 22px; width: 40px; height: 40px; display: grid; place-items: center; font: 700 20px var(--px); color: var(--ink); background: var(--brass); box-shadow: 3px 3px 0 var(--ink); }
.steps h3 { font-size: 21px; font-weight: 800; margin-top: 6px; }
.steps p { color: var(--dim); margin-top: 6px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 30px; } }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--panel); box-shadow: 0 0 0 3px var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font: 600 17px var(--th); display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 20px/1 var(--px); color: var(--brass); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--dim); }

/* ---------------------------------------------------------------- Discord update */
.discord-update {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr);
  align-items: center; gap: clamp(20px, 5vw, 72px);
}
.discord-update-copy { min-width: 0; }
.discord-update h2 { margin: 0 0 12px; color: #ffe6a4; font: 800 clamp(28px, 4vw, 49px)/1.12 "Kanit", sans-serif; }
.discord-update p, .discord-update ol { line-height: 1.65; }
.discord-update ol { padding-inline-start: 1.6em; }
.discord-update code { padding: 1px 5px; border-radius: 4px; background: #302451; color: #e7d9ff; }
.discord-update .cta { justify-content: flex-start; margin-top: 16px; }
.discord-update .discord-join { background: #4b55bf; border-color: #8b93fa; color: #fff; }
.discord-update .discord-join:hover { background: #5865d5; }
.discord-poster { display: block; width: min(100%, 390px); height: auto; justify-self: center; border-radius: 12px; border: 1px solid #a98659; }
@media (max-width: 680px) {
  .discord-update { grid-template-columns: minmax(0, 1fr); }
  .discord-poster { width: min(100%, 360px); }
}

/* ---------------------------------------------------------------- final + footer */
.final { position: relative; margin-top: 120px; min-height: 70vh; display: grid; place-items: center; overflow: hidden; text-align: center; isolation: isolate; }
.final video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; z-index: -2; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--bg), rgba(10, 7, 16, .35) 30%, rgba(10, 7, 16, .5) 70%, var(--bg)); }
.final h2 { font-size: clamp(36px, 6vw, 68px); font-weight: 800; text-shadow: 4px 4px 0 var(--ink), 0 0 40px rgba(255, 140, 50, .5); }
.final p { font-size: 19px; margin: 10px 0 28px; text-shadow: 2px 2px 0 var(--ink); }
.foot { max-width: var(--max); margin: 0 auto; padding: 40px 20px calc(40px + var(--sa-b)); display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; border-top: 2px dashed rgba(224, 168, 58, .2); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { color: var(--dim); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--text); }
.foot p { width: 100%; font-size: 13px; }
.mbar { display: none; }
@media (max-width: 860px) {
  .mbar { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; gap: 8px; padding: 8px 12px calc(8px + var(--sa-b)); background: rgba(10, 7, 16, .95); box-shadow: 0 -3px 0 var(--ink), 0 -4px 0 rgba(224, 168, 58, .25); transform: translateY(110%); transition: transform .25s; }
  .mbar.on { transform: none; }
  .mbar > a:not(.btn) { text-align: center; text-decoration: none; font: 600 14px var(--th); color: var(--dim); }
  .foot { padding-bottom: calc(96px + var(--sa-b)); }
  .sec { padding-top: 84px; }
}
@media (max-height: 860px) { .scroll { display: none; } }
video::-internal-media-controls-overlay-cast-button { display: none; }
.mapc .cap::before { position: static; display: block; margin-bottom: 2px; }
/* the live bar only when there is something live (display:flex above beats the hidden attribute) */
.hero-live[hidden] { display: none; }
/* the scroll cue sits clear of the stats strip that overlaps the bottom of the hero */
.scroll { bottom: 78px; }
.hero-live { bottom: 128px; }

/* ---- the MMO world */
.mmo-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px !important; padding: 6px 14px; font: 600 15px var(--th); color: var(--good) !important; background: rgba(10, 30, 18, .7); box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 1px rgba(109, 255, 160, .35); }
.mmo-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: mlive 1.2s ease-in-out infinite; }
@keyframes mlive { 50% { opacity: .25; } }
.mmo-gal { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, auto); gap: 14px; }
.mmo-gal figure { position: relative; margin: 0; background: var(--panel); box-shadow: 0 0 0 4px var(--ink), inset 0 0 0 2px var(--brass-d); overflow: hidden; }
.mmo-gal .mmo-big { grid-row: 1 / span 3; }
.mmo-gal img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform .4s; }
.mmo-gal figure:hover img { transform: scale(1.04); }
.mmo-gal figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: 14px; color: var(--dim); background: linear-gradient(transparent, rgba(5, 3, 8, .92)); }
.mmo-gal figcaption b { display: block; font: 700 17px var(--th); color: var(--brass-l); text-shadow: 2px 2px 0 var(--ink); }
.mmo-feats { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mmo-feats li { padding: 18px 16px; background: var(--panel); box-shadow: 0 0 0 4px var(--ink), inset 0 0 0 2px rgba(224, 168, 58, .25); }
.mmo-feats b { display: block; font: 700 18px/1.3 var(--th); color: var(--brass-l); margin-bottom: 6px; }
.mmo-feats span { color: var(--dim); font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) { .mmo-gal { grid-template-columns: 1fr 1fr; } .mmo-gal .mmo-big { grid-column: 1 / -1; grid-row: auto; } .mmo-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mmo-gal { grid-template-columns: 1fr; } .mmo-feats { grid-template-columns: 1fr; } }

/* Motion pass: give the pixel-art landing page a deliberate entrance and tactile
   hover states while keeping every effect cheap and honoring reduced motion. */
.hero-shade::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(112deg, transparent 35%, rgba(255, 220, 142, .08) 48%, transparent 61%) 0 0 / 220% 100%;
  animation: hero-glint 8s ease-in-out infinite; }
@keyframes hero-glint { 0%, 42% { background-position: 150% 0; } 82%, 100% { background-position: -40% 0; } }
.hero-in > .badge, .hero-in > .lede, .hero-in > .cta, .hero-in > .plats { animation: hero-arrive .72s cubic-bezier(.18, .82, .24, 1) both; }
.hero-in > .badge { animation-delay: .08s; }
.hero-in > .lede { animation-delay: .22s; }
.hero-in > .cta { animation-delay: .34s; }
.hero-in > .plats { animation-delay: .46s; }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.logo span { background-size: 180% 100%; animation: rise .9s cubic-bezier(.2, .9, .3, 1.2) both, logo-glow 6s ease-in-out 1s infinite; }
@keyframes logo-glow { 0%, 100% { background-position: 0 0; filter: drop-shadow(4px 4px 0 var(--ink)) drop-shadow(0 0 18px rgba(255, 170, 60, .32)); } 50% { background-position: 100% 0; filter: drop-shadow(4px 4px 0 var(--ink)) drop-shadow(0 0 34px rgba(255, 205, 105, .62)); } }
.card4, .mmo-gal figure, .mmo-feats li, .mapc, .sys-list article { transition: transform .24s cubic-bezier(.2, .8, .2, 1), box-shadow .24s, filter .24s; }
.card4:hover, .mmo-feats li:hover, .mapc:hover, .sys-list article:hover { transform: translateY(-5px); filter: brightness(1.08); }
.mmo-gal figure:hover { transform: translateY(-3px); box-shadow: 0 0 0 4px var(--ink), 0 14px 34px rgba(0, 0, 0, .45), inset 0 0 0 2px var(--brass); }
.btn { transition: transform .16s cubic-bezier(.2, .8, .2, 1), filter .16s, box-shadow .16s; }
.btn:focus-visible, .links a:focus-visible { outline: 3px solid #fff0a8; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .hero-shade::before, .hero-in > *, .logo span, .card4, .mmo-gal figure, .mmo-feats li, .mapc, .sys-list article { animation: none !important; transition: none !important; }
}

/* The play-page hero: one centred column of type over the game footage (no side panel). */
.hero {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  align-items: center;
  justify-items: center;
  padding: 84px max(24px, calc((100vw - 1180px) / 2)) 104px;
}
.hero-in { max-width: 860px; padding: 60px 0 70px; text-align: center; }
.hero-in .logo { align-items: center; font-size: clamp(56px, 8vw, 112px); }
.hero-in .lede { margin-left: auto; margin-right: auto; }
.hero-in .cta, .hero-in .plats { justify-content: center; }
.mmo-gal figure:not(.mmo-big) img { aspect-ratio: 4 / 3; }
.mmo-gal figure:nth-child(2) { outline: 2px solid rgba(255, 216, 112, .55); outline-offset: 2px; }

@media (max-width: 760px) {
  .hero { padding: 78px 18px 116px; }
  .hero-in { max-width: 620px; padding: 36px 0 10px; }
  .hero-in .logo { font-size: clamp(48px, 13.5vw, 82px); }
  .hero-live { bottom: 68px; }
  .scroll { display: none; }
}
@media (max-width: 380px) {
  .hero { padding-right: 16px; padding-left: 16px; }
  .hero-in .cta { gap: 12px; }
  .hero-in .cta .btn.big { padding: 15px 20px; font-size: 17px; }
}
@media (max-width: 760px) and (orientation: landscape) {
  .hero { padding-top: 68px; padding-bottom: 92px; }
  .hero-in { padding: 8px 0; }
  .hero-in .logo { font-size: clamp(42px, 8vw, 66px); }
}
