/* PARADOX harmony layer (2026-10-15).
   Loaded after the byte-identical web2 sheets and bridge.css on every public shell (home, news/pages,
   catalogue, account). Layout and legibility only: no route, form, script or data contract depends on it.
   Rollback: remove the harmony.css <link> from resources/views/web2/head.blade.php. */

/* -- 01. Shell: footer sits at the bottom of short pages ------------------------------------------ */
body.web2-site{display:flex;flex-direction:column;min-height:100vh}
body.web2-site>#main-content{flex:1 0 auto;min-width:0}
body.web2-site>.footer{flex-shrink:0}

/* -- 02. Footer legibility (template labels were 6-7px) -------------------------------------------- */
.footer--v4{padding:34px 4vw;gap:32px}
.footer--v4 .footer__brand b{font-size:9px}
.footer--v4 nav{gap:12px 22px}
.footer--v4 nav a{font-size:11px;letter-spacing:.12em;color:#8796ad}
.footer--v4 p{font-size:12px;line-height:1.7;color:#7a879e}
.footer--v7 p span{color:#5d6a82}

/* -- 03. Home hero: clean artwork edges, readable HUD text ----------------------------------------- */
/* The cyan/magenta echo copies and blurred slice bands drew rectangular "cut" artefacts over the artwork. */
.dnv4-hero__slice,.dnv4-hero__echo{display:none}
/* The artwork is cut at its left/top/bottom edges; feather them so no hard border shows on any width. */
.dnv4-hero__character{-webkit-mask-image:linear-gradient(90deg,transparent 2%,#000 22%,#000 100%),linear-gradient(180deg,transparent 0,#000 7%,#000 72%,transparent 97%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 2%,#000 22%,#000 100%),linear-gradient(180deg,transparent 0,#000 7%,#000 72%,transparent 97%);mask-composite:intersect}
.dnv4-kicker{font-size:10px;letter-spacing:.2em}
.dnv4-brandline{font-size:11px;letter-spacing:.18em}
.dnv4-hero__copy>p{max-width:540px;font-size:15px;line-height:1.8;color:#a6b2c6;text-shadow:0 2px 14px rgba(3,5,12,.9)}
.dnv4-cta{font-size:11px}
.dnv4-cta--ghost b{font-size:10px}
.dnv4-hero__rail span,.dnv4-hero__rail b{font-size:9px}
.dnv4-signalcard__head{font-size:9.5px}
.dnv4-signalcard>small{font-size:9.5px}
.dnv4-signalcard p{font-size:12px;color:#97a4ba}
.dnv4-signalcard>a{font-size:10px}
.dnv4-signals>div{width:auto;min-width:200px;max-width:260px}
.dnv4-signals>div>b{font-size:12px}
.dnv4-signals strong{font-size:11px;letter-spacing:.03em}
.dnv4-signals small{font-size:9.5px}
.dnv4-scroll{font-size:9.5px}
.dnv4-ticker>div{font-size:11px}
@media(max-width:480px){.dnv4-kicker{font-size:9px;letter-spacing:.12em}.dnv4-hero__copy>p{font-size:13.5px}}

/* -- 04. Home sections: shared rhythm and readable headings ---------------------------------------- */
.dnv4-section{padding:112px 0}
.dnv4-heading{margin-bottom:52px}
.dnv4-heading>div>span,.dnv4-final__inner>span{font-size:11px;letter-spacing:.22em}
.dnv4-heading>p{font-size:14px;line-height:1.8}
.dnv4-heading--compact>a{font-size:11px}
.dnv4-final{min-height:640px}
.dnv4-final p{font-size:14px}
@media(max-width:820px){.dnv4-section{padding:80px 0}.dnv4-heading{margin-bottom:36px}.dnv4-final{min-height:540px}}

/* -- 05. Classes: 5 x 2 card grid, every name and artwork fits without clipping -------------------- */
.dnv5-classes__heading{margin-bottom:46px}
.dnv5-classrail{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;min-height:0;margin:0;border:0;overflow:visible;scroll-snap-type:none}
.dnv5-class,.dnv5-class:first-child{flex:none;min-width:0;min-height:clamp(330px,25vw,420px);padding:18px 18px 20px;border:1px solid rgba(12,19,31,.1);clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px));transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s,border-color .3s,background .3s}
.dnv5-class:hover,.dnv5-class:focus-visible{flex:none;transform:translateY(-4px)}
.dnv5-class:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.dnv5-class__media{inset:32px 12px 120px;opacity:1;-webkit-mask-image:linear-gradient(180deg,#000 0,#000 86%,transparent 100%);mask-image:linear-gradient(180deg,#000 0,#000 86%,transparent 100%)}
.dnv5-class:hover .dnv5-class__media,.dnv5-class:focus-visible .dnv5-class__media{inset:28px 8px 116px}
.dnv5-class__media img{object-fit:contain;object-position:center bottom;transform:none}
.dnv5-class:hover .dnv5-class__media img,.dnv5-class:focus-visible .dnv5-class__media img{transform:scale(1.04)}
.dnv5-class__letter,.dnv5-class:hover .dnv5-class__letter{top:30px;font-size:clamp(110px,9vw,160px)}
.dnv5-class__index{top:14px;left:16px;font-size:10px;letter-spacing:.1em}
.dnv5-class__source{top:15px;right:16px;font-size:8.5px;letter-spacing:.1em}
.dnv5-class__data{padding-right:22px}
.dnv5-class__data small{font-size:10px;letter-spacing:.14em}
.dnv5-class__data h3{margin:8px 0 6px;font-size:clamp(19px,1.65vw,28px);line-height:1;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dnv5-class__data p{min-height:0;margin:0 0 10px;font-size:12px;line-height:1.45}
.dnv5-class__data b{font-size:10px;letter-spacing:.08em}
.dnv5-class__arrow{right:16px;bottom:18px;font-size:14px}
.dnv5-classes__foot{padding-top:24px;font-size:10px;letter-spacing:.12em}
@media(max-width:1180px){.dnv5-classrail{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;min-height:0;overflow:visible}.dnv5-class,.dnv5-class:first-child{min-height:320px;padding:16px 14px 18px}.dnv5-class__media{inset:30px 8px 112px}.dnv5-class__source{display:none}}
@media(max-width:820px){.dnv5-classrail{display:flex;gap:10px;margin:0;padding:0 0 12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;overscroll-behavior-x:contain}.dnv5-class,.dnv5-class:first-child,.dnv5-class:hover,.dnv5-class:focus-visible{flex:0 0 210px;min-height:330px;scroll-snap-align:start}.dnv5-class:hover,.dnv5-class:focus-visible{transform:none}.dnv5-classes__foot{flex-direction:column;align-items:flex-start;gap:12px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.dnv5-class,.dnv5-class:hover,.dnv5-class:focus-visible{transform:none;transition:none}}

/* -- 06. Mission dossier, event wall, operations, feed: legibility + no grid holes ------------------ */
.dnv3-dossier{min-height:620px}
.dnv3-dossier__topline{font-size:11px}
.dnv3-days button i{font-size:8px}
.dnv3-missionlist span{font-size:11px}
.dnv3-missionlist p{font-size:15px;line-height:1.4}
.dnv3-missionlist i{font-size:9px}
.dnv3-dossier__stamp small{font-size:9px}
.dnv3-dossier__stamp b{font-size:11px}
.dnv3-dossier__foot p{font-size:12px}
.dnv3-dossier__foot a{font-size:10px}
.web2-event-copy{max-height:300px;font-size:14px;scrollbar-width:thin;scrollbar-color:#37516b transparent}
.dnv4-event__num{font-size:11px}
.dnv4-event__body small{font-size:10px}
.dnv4-event__body h3{font-size:clamp(22px,2vw,30px);line-height:1.02}
.dnv4-event:first-child .dnv4-event__body h3{font-size:clamp(30px,3vw,46px)}
.dnv4-event__body p{font-size:13px;line-height:1.65;color:#8f9cb3}
.dnv4-event__body>div{font-size:10px}
/* 1-4 published events always fill the 3-column wall (4 events used to leave an empty cell). */
@media(min-width:1181px){
  .dnv4-eventwall>.dnv4-event:only-child{grid-column:1/-1;grid-row:auto;min-height:560px}
  .dnv4-eventwall>.dnv4-event:first-child:nth-last-child(2)+.dnv4-event{grid-column:2/4;grid-row:1/3}
  .dnv4-eventwall>.dnv4-event:first-child:nth-last-child(3)~.dnv4-event{grid-column:2/4}
  .dnv4-eventwall>.dnv4-event:first-child:nth-last-child(4)~.dnv4-event:last-child{grid-column:2/4}
}
@media(min-width:821px) and (max-width:1180px){
  .dnv4-eventwall>.dnv4-event:first-child:nth-last-child(2)+.dnv4-event,
  .dnv4-eventwall>.dnv4-event:first-child:nth-last-child(4)~.dnv4-event:last-child{grid-column:1/-1}
}
.dnv4-op{height:auto;min-height:340px}
.dnv4-op>span{font-size:11px}
.dnv4-op small{font-size:10px}
.dnv4-op h3{font-size:clamp(44px,4.2vw,72px)}
.dnv4-op p{font-size:13px;line-height:1.7;color:#8f9cb3}
.dnv4-op>b{font-size:11px}
.dnv4-feed__row{min-height:96px}
.dnv4-feed__row>span{font-size:11px}
.dnv4-feed__row small{font-size:10px}
.dnv4-feed__row time{font-size:11px}
.dnv4-feed__row h3{font-size:16px}
.dnv4-feed__row p{font-size:13px}
@media(min-width:1181px){.dnv4-feed__row{grid-template-columns:48px 128px 96px minmax(240px,.8fr) minmax(240px,1fr) 26px}}

/* -- 07. Home tone: unified dark by default; Admin > Branding "seksi terang" restores the split tone - */
body[data-home-tone=dark] .dnv4-section+.dnv4-section{border-top:1px solid rgba(196,218,255,.06)}
body[data-home-tone=dark] .dnv5-classes-section{background:radial-gradient(ellipse at 12% 0%,rgba(113,58,250,.13),transparent 55%),radial-gradient(ellipse at 90% 100%,rgba(100,239,255,.06),transparent 50%),#070a17;color:#eef3ff}
body[data-home-tone=dark] .dnv5-classes-section:before{background:linear-gradient(90deg,transparent 49.95%,rgba(169,205,255,.035) 50%,transparent 50.05%),linear-gradient(180deg,transparent 49.95%,rgba(169,205,255,.03) 50%,transparent 50.05%);background-size:80px 80px}
body[data-home-tone=dark] .dnv5-classes__word{color:rgba(184,215,255,.025)}
body[data-home-tone=dark] :is(.dnv5-classes-section,.dnv4-mission-section,.dnv4-news-section) .dnv4-heading>div>span{color:var(--v4-cyan,#64efff)}
body[data-home-tone=dark] :is(.dnv5-classes-section,.dnv4-mission-section,.dnv4-news-section) .dnv4-heading h2{color:#f4f7ff}
body[data-home-tone=dark] :is(.dnv5-classes-section,.dnv4-mission-section,.dnv4-news-section) .dnv4-heading h2 em{color:transparent;-webkit-text-stroke:1px rgba(225,238,255,.42);text-shadow:3px 0 rgba(100,239,255,.08),-3px 0 rgba(255,63,166,.08)}
body[data-home-tone=dark] :is(.dnv5-classes-section,.dnv4-mission-section,.dnv4-news-section) .dnv4-heading>p{color:#97a4ba}
body[data-home-tone=dark] .dnv5-class{background:linear-gradient(180deg,rgba(15,20,40,.94),rgba(7,10,22,.97));border-color:rgba(196,218,255,.12);color:#eef3ff;box-shadow:0 18px 40px rgba(0,0,0,.28)}
body[data-home-tone=dark] .dnv5-class:after{background:radial-gradient(ellipse at 50% 38%,color-mix(in srgb,var(--accent) 20%,transparent),transparent 70%)}
body[data-home-tone=dark] .dnv5-class:is(:hover,:focus-visible){border-color:color-mix(in srgb,var(--accent) 55%,transparent);box-shadow:0 24px 54px rgba(0,0,0,.42)}
body[data-home-tone=dark] .dnv5-class__letter{-webkit-text-stroke:1px rgba(196,218,255,.07)}
body[data-home-tone=dark] .dnv5-class:hover .dnv5-class__letter{color:color-mix(in srgb,var(--accent) 6%,transparent);-webkit-text-stroke-color:color-mix(in srgb,var(--accent) 32%,transparent)}
body[data-home-tone=dark] .dnv5-class__scan{mix-blend-mode:screen;opacity:.3;background:repeating-linear-gradient(180deg,transparent 0 4px,rgba(100,239,255,.03) 5px,transparent 6px)}
body[data-home-tone=dark] .dnv5-class__data{text-shadow:0 2px 14px rgba(0,0,0,.7)}
body[data-home-tone=dark] .dnv5-class__data p{color:#97a4ba}
body[data-home-tone=dark] :is(.dnv5-class__index,.dnv5-class__source,.dnv5-class__data b,.dnv5-class__arrow,.dnv5-classes__foot){color:#7f8ca6}
body[data-home-tone=dark] .dnv5-classes__foot a{color:#c7d3e5;border-color:rgba(196,218,255,.22)}
body[data-home-tone=dark] .dnv5-classes__foot a:hover{color:var(--v4-cyan,#64efff);border-color:var(--v4-cyan,#64efff)}
body[data-home-tone=dark] .dnv4-mission-section{background:radial-gradient(ellipse at 85% 10%,rgba(91,55,255,.09),transparent 50%),#050711;color:#eef3ff}
body[data-home-tone=dark] .dnv4-mission-section .dnv3-dossier{background:#080b17;border-color:rgba(196,218,255,.12);box-shadow:0 30px 80px rgba(0,0,0,.35)}
body[data-home-tone=dark] .dnv4-news-section{background:#070a17;color:#eef3ff}
body[data-home-tone=dark] .dnv4-news-section .dnv4-heading--compact>a{color:#c7d3e5;border-color:rgba(196,218,255,.22)}
body[data-home-tone=dark] .dnv4-feed{border-top-color:rgba(196,218,255,.12)}
body[data-home-tone=dark] .dnv4-feed__row{border-bottom-color:rgba(196,218,255,.1);color:#eef3ff}
body[data-home-tone=dark] .dnv4-feed__row>span{color:#7f8ca6}
body[data-home-tone=dark] .dnv4-feed__row small{color:#a99bff}
body[data-home-tone=dark] .dnv4-feed__row time{color:#8a97ad}
body[data-home-tone=dark] .dnv4-feed__row p{color:#8f9cb3}
body[data-home-tone=dark] .dnv4-feed__row i{color:var(--v4-cyan,#64efff)}
body[data-home-tone=dark] .dnv4-feed__row:hover{background:rgba(100,239,255,.04)}
/* Split (original light) tone keeps the template colours; cards only gain a frame so the grid reads as cards. */
body[data-home-tone=split] .dnv5-class{background:rgba(255,255,255,.5)}
body[data-home-tone=split] .dnv5-class:is(:hover,:focus-visible){border-color:color-mix(in srgb,var(--accent) 45%,transparent);box-shadow:0 24px 60px rgba(27,38,59,.12)}

/* Default Laravel pagers (player inventory etc.) have no Tailwind CSS: keep arrow icons icon-sized. */
.web2-site nav[role=navigation] svg{width:16px;height:16px;vertical-align:middle}

/* -- 08. Catalogue polish ---------------------------------------------------------------------------- */
/* Item detail: one calm call-to-action instead of a full-width rainbow bar. */
.web2-catalog-content .enchant-link{display:flex;align-items:center;justify-content:center;gap:10px;width:auto;max-width:420px;min-height:46px;margin:16px auto 0;padding:12px 22px;border:1px solid #64efff55;border-radius:2px;background:linear-gradient(110deg,rgba(100,239,255,.12),rgba(141,60,255,.16));color:#e9f7ff;font-weight:700;letter-spacing:.03em;text-decoration:none;transition:border-color .2s,background .2s,filter .2s}
.web2-catalog-content .enchant-link:hover{border-color:#64efff;background:linear-gradient(110deg,rgba(100,239,255,.2),rgba(141,60,255,.24));filter:none}
.web2-catalog-content .enchant-link.gacha-link{border-color:#fbbf2466;background:linear-gradient(110deg,rgba(251,191,36,.14),rgba(249,115,22,.16));color:#fff3d6}
.web2-catalog-content .enchant-link.gacha-link:hover{border-color:#fbbf24;background:linear-gradient(110deg,rgba(251,191,36,.22),rgba(249,115,22,.24))}
.web2-catalog-content aside.catatan{border-radius:3px}
/* Map cards without artwork: compact, intentional placeholder instead of a tall empty panel. */
body .web2-catalog-content .pcard:has(.atlas-map-placeholder){min-height:172px;background:repeating-linear-gradient(135deg,rgba(100,239,255,.025) 0 12px,transparent 12px 24px),linear-gradient(130deg,#12233e,#11132c)}
.web2-catalog-content .pcard .atlas-map-placeholder{top:16px;left:20px;display:inline-flex;align-items:center;gap:7px;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#7f93b5}
.web2-catalog-content .pcard .atlas-map-placeholder:before{content:"";width:12px;height:12px;border:1px solid #64efff66;transform:rotate(45deg)}
