/* Toywars Legend — shared site styles (matches template design) */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:#0e0b1a;color:#eef0f4;font-family:'Kanit',system-ui,sans-serif;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
a{color:#F2912A;text-decoration:none}
a:hover{color:#FFA94D}
/* ::selection only honours a solid background-color — a gradient here is dropped
   and leaves the dark selection text on a transparent (i.e. dark) background */
::selection{background:#F2912A;color:#0e0b1a}
::-webkit-scrollbar{width:10px}
::-webkit-scrollbar-track{background:#0e0b1a}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#3b3450,#272338)}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#FB9E2A,#EC6A17)}
/* the page itself scrolls without a visible bar (wheel, touch and keys still
   work); inner scroll areas such as wide tables keep the styled bar above */
html{scrollbar-width:none}
html::-webkit-scrollbar{display:none}
@keyframes fadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
.fade-up{animation:fadeUp .5s ease both}
html{scroll-behavior:smooth;scroll-padding-top:92px}

/* ===== scroll reveal =====
   The hidden state hangs off .tw-motion, which site.js puts on <html> only when
   it runs and the visitor has not asked for reduced motion — so a script error
   can never leave a section stuck invisible. --rv-d staggers items in a group.
   The offset rides on the standalone translate/scale properties rather than
   transform, so a revealed card can still use transform for its hover lift
   without the two fighting over the same declaration. */
.tw-motion [data-reveal]{opacity:0;translate:0 26px;
  transition:opacity .6s cubic-bezier(.16,1,.3,1) var(--rv-d,0s),
             translate .6s cubic-bezier(.16,1,.3,1) var(--rv-d,0s),
             scale .6s cubic-bezier(.16,1,.3,1) var(--rv-d,0s)}
.tw-motion [data-reveal="left"]{translate:-30px 0}
.tw-motion [data-reveal="right"]{translate:30px 0}
.tw-motion [data-reveal="zoom"]{translate:0 14px;scale:.97}
.tw-motion [data-reveal].revealed{opacity:1;translate:none;scale:none}

/* back to top — appears once the first screenful is behind you */
.to-top{position:fixed;right:26px;bottom:26px;z-index:90;width:46px;height:46px;
  display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1;cursor:pointer;
  color:#eef0f4;background:rgba(23,20,48,.86);backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.14);border-radius:0;
  opacity:0;visibility:hidden;transform:translateY(14px);
  transition:opacity .25s ease,transform .3s cubic-bezier(.16,1,.3,1),visibility 0s linear .3s,
             border-color .2s ease,color .2s ease}
.to-top.show{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.to-top:hover{border-color:rgba(242,145,42,.7);color:#F2912A;transform:translateY(-3px)}

/* ===== NAV ===== */
.nav{position:sticky;top:0;z-index:60;display:flex;align-items:stretch;justify-content:space-between;padding:0 0 0 44px;min-height:74px;background:rgba(14,11,26,.82);backdrop-filter:blur(16px) saturate(1.2);border-bottom:1px solid rgba(255,255,255,.07)}
.nav-left{display:flex;align-items:center;gap:clamp(20px,3vw,46px);min-width:0}
.nav-logo img{height:42px;width:auto;display:block}
.nav-links{display:flex;gap:clamp(18px,2.4vw,40px);font-size:15px;font-weight:400;white-space:nowrap}
.nav-links a{color:#b8bac4}
.nav-links a:hover{color:#fff}
.nav-links a.active{color:#F2912A}
.nav-right{display:flex;align-items:center;gap:clamp(14px,1.8vw,22px);padding-left:clamp(16px,2vw,28px);white-space:nowrap;flex:none}
.nav-link{font-size:14.5px;font-weight:400;color:#eef0f4}
.nav-link:hover{color:#F2912A}
.nav-link.active{color:#F2912A}

/* orange gradient CTA with sweep hover */
.btn-cta{--p:0;position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;font-family:'Kanit',sans-serif;font-size:21px;font-weight:600;color:#0e0b1a;background:linear-gradient(180deg,#FB9E2A,#EC6A17);padding:18px 56px;border:none;border-radius:0;cursor:pointer}
.btn-cta::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#FFC46A,#F5852E);transform:scaleX(var(--p,0));transform-origin:left;transition:transform .45s cubic-bezier(.4,0,.2,1)}
.btn-cta:hover{--p:1;color:#0e0b1a}
.btn-cta>span{position:relative;z-index:1}
.btn-cta:disabled{opacity:.55;cursor:default}
/* nav sign-up: the same CTA as the download button, filling the bar's full height */
.nav-register{align-self:stretch;display:flex;padding:0 clamp(28px,4vw,52px);font-size:21px}
.btn-cta.sm{font-size:15px;font-weight:500;padding:11px 26px}

.btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:'Kanit',sans-serif;font-size:14.5px;font-weight:400;color:#eef0f4;background:#171430;border:1px solid rgba(255,255,255,.14);border-radius:0;padding:11px 22px;cursor:pointer;transition:border-color .16s,background .16s}
.btn-ghost:hover{border-color:rgba(255,255,255,.34);background:#1c1938;color:#fff}
.btn-danger{border-color:rgba(255,138,122,.4);color:#ff8a7a}
.btn-danger:hover{border-color:#ff8a7a;color:#ff8a7a}

/* lang menu */
.lang-menu{position:relative}
.lang-btn{font-family:'Kanit',sans-serif;display:flex;align-items:center;gap:6px;background:none;border:none;padding:6px 0;cursor:pointer;font-size:13.5px;letter-spacing:.05em;color:#8a8c96;transition:color .16s}
.lang-btn:hover{color:#fff}
/* The menu stays in the DOM and animates on .open — display:none would give it
   nothing to transition from, which is what made it pop in so abruptly. */
/* matches the profile menu (.user-drop): same panel, spacing and item styling */
.lang-drop{position:absolute;top:calc(100% + 14px);right:0;min-width:150px;display:flex;flex-direction:column;padding:6px 0;background:rgba(23,20,48,.97);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.1);box-shadow:0 18px 40px rgba(0,0,0,.5);z-index:80;overflow:hidden;
  opacity:0;visibility:hidden;pointer-events:none;transform-origin:top right;transform:translateY(-7px) scale(.95);
  transition:opacity .15s ease,transform .22s cubic-bezier(.16,1,.3,1),visibility 0s linear .22s}
.lang-drop.open{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition-delay:0s}
/* the two entries drift in just behind the panel so the open reads as one motion */
.lang-drop .lang-opt{opacity:0;transform:translateY(-5px);
  transition:opacity .18s ease,transform .18s ease,background .14s,color .14s}
.lang-drop.open .lang-opt{opacity:1;transform:none}
.lang-drop.open .lang-opt:nth-child(1){transition-delay:.05s}
.lang-drop.open .lang-opt:nth-child(2){transition-delay:.1s}
/* chevron flips while the menu is open */
.lang-btn span{transition:transform .22s cubic-bezier(.16,1,.3,1)}
.lang-menu:has(.lang-drop.open) .lang-btn span{transform:rotate(180deg)}

@media (prefers-reduced-motion: reduce){
  .lang-drop,.lang-drop .lang-opt,.lang-btn span{transition-duration:.01s;transition-delay:0s}
  .lang-drop,.lang-drop .lang-opt{transform:none}
}
.lang-opt{font-family:'Kanit',sans-serif;text-align:left;display:flex;align-items:center;background:transparent;border:none;padding:10px 18px;cursor:pointer;font-size:14px;font-weight:300;color:#c2c4ce;transition:background .14s,color .14s}
.lang-opt:hover{background:rgba(255,255,255,.05);color:#fff}
.lang-opt.active{color:#F2912A;cursor:default}
.lang-opt.active:hover{background:transparent;color:#F2912A}

/* ---- logged-in account area: lang | top up · profile menu ---- */
/* logged out, the sign-up block runs to the edge; logged in, keep a margin */
.nav-right.authed{padding-right:clamp(14px,1.4vw,22px)}
.nav-sep{width:1px;height:22px;background:rgba(255,255,255,.1)}
/* top up — plain text link, styled like the main nav links */
.nav-topup{font-size:15px;font-weight:400;color:#b8bac4;transition:color .2s ease}
.nav-topup:hover,.nav-topup.active{color:#fff}

.user-menu{position:relative}
/* profile trigger — a plain person icon, coloured like the nav links */
.user-btn{display:flex;align-items:center;justify-content:center;width:50px;height:50px;padding:0;background:none;border:none;
  cursor:pointer;color:#b8bac4;transition:color .2s ease}
.user-btn:hover,.user-btn.active,.user-menu:has(.user-drop.open) .user-btn{color:#fff}
/* the button shows the player's picture once one is chosen, else the plain person icon */
/* round avatar frame — the same with a chosen face or the default silhouette */
.user-btn-av{width:48px;height:48px;display:flex;overflow:hidden;border-radius:50%;background:#1c1838;border:1px solid rgba(255,255,255,.14);transition:border-color .2s ease}
.user-btn:hover .user-btn-av,.user-menu:has(.user-drop.open) .user-btn-av{border-color:rgba(255,255,255,.4)}

/* profile menu: a panel with a small pointer up to the avatar, a picture + name
   header, the links, and log out set apart in its own footer band */
.user-drop{position:absolute;top:calc(100% + 12px);right:0;min-width:240px;display:flex;flex-direction:column;padding:10px 0 0;
  background:#1a1734;border:1px solid rgba(255,255,255,.1);box-shadow:0 18px 40px rgba(0,0,0,.5);z-index:80;
  opacity:0;visibility:hidden;pointer-events:none;transform-origin:top right;transform:translateY(-6px);
  transition:opacity .15s ease,transform .22s cubic-bezier(.16,1,.3,1),visibility 0s linear .22s}
.user-drop::before{content:"";position:absolute;top:-6px;right:20px;width:10px;height:10px;transform:rotate(45deg);
  background:#1a1734;border-left:1px solid rgba(255,255,255,.1);border-top:1px solid rgba(255,255,255,.1)}
.user-drop.open{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition-delay:0s}

.user-head{display:flex;align-items:center;gap:14px;padding:6px 20px 14px}
.user-head-av{width:46px;height:46px;flex:none;display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden;border-radius:50%;
  color:#b8bac4;background:#221d44;border:1px solid rgba(255,255,255,.1)}
.user-head-name{font-size:15px;font-weight:300;color:#fff;min-width:0;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.user-item{display:block;padding:10px 20px;font-size:14.5px;font-weight:300;color:#c2c4ce;transition:background-color .14s,color .14s}
.user-item:hover{background:rgba(255,255,255,.05);color:#fff}
.user-item.active{color:#F2912A}
.user-foot{margin-top:8px;border-top:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.user-foot .user-item{padding:13px 20px;color:#8a8c96}
.user-foot .user-item:hover{color:#fff}
@media (max-width:560px){
  .nav-sep{display:none}
}
@media (prefers-reduced-motion: reduce){
  .user-drop{transition-duration:.01s;transition-delay:0s}
  .user-drop{transform:none}
}

/* ===== sections ===== */
.wrap{max-width:1280px;margin:0 auto;padding:0 48px;width:100%}
.section{padding:96px 0 76px}
.section.alt{background:#121022;border-top:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07)}
.h2{font-size:clamp(28px,3.6vw,42px);font-weight:500;margin:8px 0 0;color:#fff}
.muted{color:#9a9ca6}
/* "view all" link beside a section heading; the arrow nudges forward on hover */
.see-all{display:inline-flex;align-items:center;gap:8px;padding:6px 0;font-size:15px;font-weight:400;color:#b8bac4;transition:color .16s}
.see-all svg{transition:translate .24s cubic-bezier(.16,1,.3,1)}
.see-all:hover{color:#F2912A}
.see-all:hover svg{translate:4px 0}
.see-all.back:hover svg{translate:-4px 0}

/* image placeholder slot (until real art is dropped into assets/img/content) */
.slot{position:relative;background:#1c1938;overflow:hidden;display:flex;align-items:center;justify-content:center}
.slot img.content{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.slot img.content.contain{object-fit:contain}
.slot .ph{display:flex;flex-direction:column;align-items:center;gap:8px;color:#5c5e68;font-size:13px;text-align:center;padding:12px}
.slot .ph svg{opacity:.5}
.slot.filled .ph{display:none}
/* hero: crop nearer the top of the artwork than its centre so the characters sit
   higher in the frame while their heads stay clear of the sticky nav */
#heroSlot{position:absolute;inset:0}
#heroSlot img.content{object-position:50% 15%}

/* hero veil: a soft edge vignette plus a bottom fade into the page background.
   The bottom fade uses eased stops instead of a straight two-stop ramp — a
   linear ramp banks up visibly at both ends, this one has no discernible
   start or finish. */
.hero-veil{position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(130% 110% at 50% 42%,rgba(14,11,26,.22),rgba(14,11,26,.58) 100%),
    linear-gradient(0deg,
      rgba(14,11,26,.97) 0%,
      rgba(14,11,26,.93) 5%,
      rgba(14,11,26,.84) 11%,
      rgba(14,11,26,.70) 18%,
      rgba(14,11,26,.54) 25%,
      rgba(14,11,26,.38) 33%,
      rgba(14,11,26,.23) 41%,
      rgba(14,11,26,.11) 48%,
      rgba(14,11,26,.04) 53%,
      transparent 58%)}

/* embers drifting up through the key art */
.hero-embers{position:absolute;inset:0;overflow:hidden;pointer-events:none;mix-blend-mode:screen}
.hero-embers i{position:absolute;bottom:-8px;width:3px;height:3px;border-radius:50%;
  background:radial-gradient(circle,#ffd08a 0%,rgba(242,145,42,.75) 45%,rgba(242,145,42,0) 70%);
  animation:emberRise linear infinite}
@keyframes emberRise{
  0%{transform:translate3d(0,0,0) scale(.5);opacity:0}
  14%{opacity:.85}
  72%{opacity:.5}
  100%{transform:translate3d(var(--dx,14px),calc(var(--rise,60vh) * -1),0) scale(1.15);opacity:0}
}

@media (prefers-reduced-motion: reduce){
  .hero-embers{display:none}
}

/* ===== section backdrop =====
   One faint square grid shared by every home section so the page reads as a single
   surface. It sits on a pseudo-element at z-index:-1 inside an isolated stacking
   context: above the section's own background, below its content. The mask fades
   it out top and bottom so no hard seam shows where sections meet. */
.bg-deco{position:relative;isolation:isolate}
.bg-deco::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);
  background-size:56px 56px;background-position:center top;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 22%,#000 78%,transparent);
          mask-image:linear-gradient(180deg,transparent,#000 22%,#000 78%,transparent)}

/* cards */
.card{display:flex;flex-direction:column;background:#171430;border:1px solid rgba(255,255,255,.07);border-radius:0;overflow:hidden;color:#eef0f4;
  box-shadow:0 24px 48px -20px rgba(0,0,0,0);will-change:transform;backface-visibility:hidden;
  transition:border-color .6s cubic-bezier(.22,1,.36,1),transform .6s cubic-bezier(.22,1,.36,1),box-shadow .6s cubic-bezier(.22,1,.36,1)}
/* a card that also reveals on scroll would otherwise lose the hover
   transitions above to the more specific [data-reveal] rule and snap */
.tw-motion .card[data-reveal]{
  transition:opacity .6s cubic-bezier(.16,1,.3,1) var(--rv-d,0s),
             translate .6s cubic-bezier(.16,1,.3,1) var(--rv-d,0s),
             scale .6s cubic-bezier(.16,1,.3,1) var(--rv-d,0s),
             border-color .6s cubic-bezier(.22,1,.36,1),transform .6s cubic-bezier(.22,1,.36,1),box-shadow .6s cubic-bezier(.22,1,.36,1)}
.card:hover{border-color:rgba(255,255,255,.14);transform:translate3d(0,-3px,0);color:#eef0f4;
  box-shadow:0 24px 48px -20px rgba(0,0,0,.75)}
/* the cover pushes in slightly behind the card's own lift, and a faint
   sheen sweeps across it once — no glow, no coloured outline */
.card .slot img.content,.card .slot .ph{will-change:transform;transition:transform 1.1s cubic-bezier(.22,1,.36,1)}
.card:hover .slot img.content{transform:scale(1.04)}
.card:hover .slot .ph{transform:scale(1.03)}
.card .slot::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.07) 50%,transparent 65%);
  transform:translateX(-100%)}
.card:hover .slot::after{transform:translateX(100%);transition:transform 1.1s cubic-bezier(.22,1,.36,1)}
.card h3{color:#fff;transition:color .4s ease}
.card:hover h3{color:#FFA94D}
.tag{display:inline-flex;align-items:center;font-size:10.5px;font-weight:300;letter-spacing:.06em;text-transform:uppercase;color:#f4f2f8;background:rgba(14,11,26,.35);backdrop-filter:blur(10px) saturate(1.3);border:1px solid rgba(255,255,255,.18);padding:6px 15px}

/* forms */
.field{display:flex;flex-direction:column;gap:8px;text-align:left}
.field>span.lbl{font-size:13px;font-weight:400;letter-spacing:.02em;color:#b8bac4}
.input{font-family:'Kanit',sans-serif;font-size:15px;font-weight:300;color:#eef0f4;background:#171430;border:1px solid rgba(255,255,255,.14);border-radius:0;padding:14px 16px;width:100%;transition:border-color .16s}
.input::placeholder{color:#5c5e68}
.input:focus{outline:none;border-color:#F2912A}
/* Browser autofill paints its own pale-blue box with dark text; an inset shadow is
   the only way to cover it, and the long transition keeps it from flashing back. */
.input:-webkit-autofill,.input:-webkit-autofill:hover,.input:-webkit-autofill:focus{
  -webkit-text-fill-color:#eef0f4;caret-color:#eef0f4;
  -webkit-box-shadow:0 0 0 1000px #171430 inset;box-shadow:0 0 0 1000px #171430 inset;
  transition:background-color 9999s ease-out 0s}
.input.err{border-color:#ff8a7a}
/* Edge's built-in "show password" eye is dark by default — make it white on our dark inputs */
.input::-ms-reveal{filter:invert(1) brightness(2)}
.err-msg{font-size:12.5px;color:#ff8a7a}
/* Inline link inside body copy (e.g. the terms checkbox label). A <button> so it
   opens the dialog without navigating or submitting; these resets make it read
   as text rather than a control. */
.inline-link{display:inline;appearance:none;background:none;border:none;padding:0;margin:0;
  font:inherit;font-weight:400;color:#F2912A;text-decoration:underline;text-underline-offset:3px;
  text-decoration-thickness:1px;cursor:pointer}
.inline-link:hover{color:#FFA94D;text-decoration-thickness:2px}
.inline-link:focus-visible{outline:2px solid #F2912A;outline-offset:2px}
.ok-msg{font-size:12.5px;color:#7ae0a3}
select.input{font-weight:400}
textarea.input{resize:vertical;min-height:90px}

/* modal */
/* profile picture (character face) — fills its round frame */
.av-img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.av-default{color:#5f5a86;background:#262148}
/* ---- toast (TW.toast): bottom-right notices that never move the layout ---- */
.toast-box{position:fixed;right:24px;bottom:24px;z-index:400;display:flex;flex-direction:column;align-items:flex-end;gap:10px;pointer-events:none}
.toast{pointer-events:auto;cursor:pointer;max-width:min(380px,calc(100vw - 48px));padding:14px 18px 14px 16px;font-size:14px;font-weight:300;line-height:1.5;
  color:#eef0f4;background:#1d1940;border:1px solid rgba(255,255,255,.12);border-left:3px solid #8a8c96;box-shadow:0 14px 34px rgba(0,0,0,.45);
  opacity:0;transform:translateY(10px);transition:opacity .25s ease,transform .3s cubic-bezier(.22,1,.36,1)}
.toast.show{opacity:1;transform:none}
.toast.error{border-left-color:#ff8a7a}
.toast.success{border-left-color:#7ae0a3}
@media (max-width:560px){ .toast-box{left:16px;right:16px;bottom:16px;align-items:stretch} .toast{max-width:none} }

/* ---- news post popup (TW.openPost) — article styles come from article.css ---- */
.post-modal{max-width:860px;position:relative}
.post-modal .modal-body{padding:40px 52px 48px;gap:0}
.post-modal .art-head{border-bottom-color:rgba(255,255,255,.14);margin-bottom:30px}
.post-modal .art-body > :last-child{margin-bottom:0}
.post-modal .art-body th{background:#1f1b40}
.post-modal .art-body th,.post-modal .art-body td{border-color:rgba(255,255,255,.08);padding:12px 16px}
/* plain ✕, no box */
.post-close{position:absolute;top:14px;right:16px;z-index:2;width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  background:none;border:none;color:#8a8c96;font-size:18px;cursor:pointer;transition:color .2s ease}
.post-close:hover{color:#fff}
.post-loading{padding:40px 0;text-align:center;font-size:14px;font-weight:300;color:#8a8c96}
body.modal-open{overflow:hidden}
@media (max-width:700px){ .post-modal .modal-body{padding:30px 22px 34px} }

.modal-back{position:fixed;inset:0;z-index:300;background:rgba(7,5,16,.8);backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:clamp(16px,5vh,64px) 24px}
.modal{width:100%;max-width:800px;max-height:100%;display:flex;flex-direction:column;text-align:left;background:#171430;border:1px solid rgba(255,255,255,.12);box-shadow:0 44px 100px rgba(0,0,0,.65);animation:fadeUp .3s ease both}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:28px 34px 22px;border-bottom:1px solid rgba(255,255,255,.09);flex:none}
.modal-title{font-size:26px;font-weight:500;margin:0;color:#fff;line-height:1.3}
.modal-sub{font-size:12.5px;color:#6c6e78}
.modal-close{flex:none;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:0;border:1px solid rgba(255,255,255,.18);background:rgba(14,11,26,.45);color:#fff;font-family:'Kanit',sans-serif;font-size:17px;line-height:1;cursor:pointer;transition:all .16s}
.modal-close:hover{border-color:rgba(255,255,255,.4);background:rgba(14,11,26,.75)}
.modal-body{overflow-y:auto;padding:28px 34px 34px;display:flex;flex-direction:column;gap:26px}
.modal-body h4{font-size:16px;font-weight:500;margin:0;color:#F2912A}
.modal-body p{font-size:14.5px;line-height:1.8;font-weight:300;color:#c2c4ce;margin:0;text-wrap:pretty}

/* ---- download window (TW.openDownload): pick an installer, one button, three steps ---- */
.dlw{max-width:720px}
.dlw:focus{outline:none}
.dlw-head{position:relative;isolation:isolate;overflow:hidden;flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;
  padding:26px 34px 22px;border-bottom:1px solid rgba(255,255,255,.09)}
/* key art behind the title, veiled so the text always wins; stays hidden until it has loaded */
.dlw-art{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center 30%;opacity:0;transition:opacity .5s ease}
.dlw-art.in{opacity:.6}
.dlw-head::after{content:'';position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,#171430 0%,rgba(23,20,48,.92) 36%,rgba(23,20,48,.42) 100%),linear-gradient(180deg,rgba(23,20,48,0) 35%,#171430 100%)}
.dlw-title{font-size:28px;font-weight:500;line-height:1.25;color:#fff;margin:0}
.dlw-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;min-height:26px}
.dlw-chip{font-size:12.5px;font-weight:300;line-height:1;color:#b8bac4;padding:6px 10px;border:1px solid rgba(255,255,255,.14);background:rgba(14,11,26,.6)}
.dlw-chip b{font-weight:400;color:#ecd07f;margin-left:4px}
.dlw-body{overflow-y:auto;padding:24px 34px 26px;display:flex;flex-direction:column;gap:20px}
.dlw-state{padding:36px 0;text-align:center;font-size:14.5px;font-weight:300;color:#8a8c96;margin:0}

/* the two installers: square radio marks, the chosen one lit in orange */
.dlw-pick{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.dlw-opt{position:relative;display:flex;flex-direction:column;gap:5px;text-align:left;font-family:'Kanit',sans-serif;cursor:pointer;
  padding:15px 18px 16px 46px;color:#eef0f4;background:#131026;border:1px solid rgba(255,255,255,.1);border-radius:0;transition:border-color .16s,background .16s}
.dlw-opt::before{content:'';position:absolute;left:17px;top:20px;width:14px;height:14px;border:1px solid rgba(255,255,255,.32);transition:border-color .16s}
.dlw-opt::after{content:'';position:absolute;left:21px;top:24px;width:6px;height:6px;background:#F2912A;transform:scale(0);transition:transform .2s cubic-bezier(.16,1,.3,1)}
.dlw-opt:hover{border-color:rgba(255,255,255,.3)}
.dlw-opt:focus-visible{outline:2px solid #F2912A;outline-offset:2px}
.dlw-opt.on{border-color:#F2912A;background:linear-gradient(180deg,rgba(242,145,42,.14),rgba(242,145,42,.04))}
.dlw-opt.on::before{border-color:#F2912A}
.dlw-opt.on::after{transform:scale(1)}
.dlw-opt-name{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:16.5px;font-weight:500;line-height:1.3;color:#fff}
.dlw-tag{font-size:11.5px;font-weight:500;line-height:1;color:#140c04;background:#F2912A;padding:4px 8px}
.dlw-opt-meta{font-size:13px;font-weight:300;color:#8a8c96;transition:color .16s}
.dlw-opt.on .dlw-opt-meta{color:#ecd07f}

/* what the chosen installer is, its button, then how to install it */
.dlw-in{display:flex;flex-direction:column;gap:18px}
.tw-motion .dlw-in{animation:dlwIn .26s ease both}
@keyframes dlwIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.dlw-solo{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;font-size:19px;font-weight:500;color:#fff;margin:0}
.dlw-solo span{font-size:13px;font-weight:300;color:#ecd07f}
.dlw-desc{font-size:14.5px;font-weight:300;line-height:1.75;color:#c2c4ce;margin:0;text-wrap:pretty}
.dlw-go{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px}
.dlw-go .btn-cta{flex:1 1 280px;font-size:18px;padding:16px 28px}
.dlw-go .btn-cta>span{display:inline-flex;align-items:center;gap:10px}
.dlw-go .btn-ghost{font-size:15px;padding:16px 22px}
.dlw-go .btn-ghost svg{color:#8a8c96}
.dlw-file{font-size:12.5px;font-weight:300;color:#6c6e78;word-break:break-all;margin:-8px 0 0}
.dlw-soon{flex:1;display:flex;align-items:center;justify-content:center;min-height:58px;padding:0 24px;font-size:15px;font-weight:300;color:#8a8c96;
  border:1px dashed rgba(255,255,255,.18)}
.dlw-how{display:flex;flex-direction:column;gap:14px;padding-top:20px;border-top:1px solid rgba(255,255,255,.08)}
.dlw-h{font-size:13px;font-weight:400;letter-spacing:.02em;color:#8a8c96;margin:0}
.dlw-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px}
.dlw-steps li{display:flex;flex-direction:column;gap:9px;font-size:13.5px;font-weight:300;line-height:1.6;color:#c2c4ce}
.dlw-n{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:500;color:#F2912A;font-variant-numeric:tabular-nums}
.dlw-n::after{content:'';flex:1;height:1px;background:rgba(255,255,255,.13)}
.dlw-steps li:last-child .dlw-n::after{background:linear-gradient(90deg,rgba(255,255,255,.13),transparent)}
.dlw-steps code{font-family:inherit;color:#ecd07f;overflow-wrap:anywhere}

/* the admin's note, the requirements (closed until asked for) and the small print */
.dlw-note{font-size:13.5px;font-weight:300;line-height:1.7;color:#e3d6ae;background:rgba(236,208,127,.07);border-left:2px solid #ecd07f;padding:11px 16px;margin:0;white-space:pre-line}
.dlw-spec{border:1px solid rgba(255,255,255,.09);background:#131026}
.dlw-spec summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;padding:13px 18px;
  font-size:14.5px;font-weight:400;color:#eef0f4;transition:background .16s}
.dlw-spec summary::-webkit-details-marker{display:none}
.dlw-spec summary:hover{background:rgba(255,255,255,.03)}
.dlw-spec summary:focus-visible{outline:2px solid #F2912A;outline-offset:-2px}
.dlw-spec summary svg{flex:none;color:#8a8c96;transition:transform .2s ease}
.dlw-spec[open] summary svg{transform:rotate(180deg)}
.dlw-spec-body{overflow-x:auto;padding:2px 6px 6px;border-top:1px solid rgba(255,255,255,.07)}
.dlw-spec .table{min-width:420px}
.dlw-spec .table th:last-child{color:#F2912A}
.dlw-spec .table td:first-child{color:#8a8c96;white-space:nowrap}
.dlw-spec .table td:last-child{color:#eef0f4}
.dlw-spec .table tr:last-child td{border-bottom:none}
.dlw-notes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.dlw-notes li{position:relative;padding-left:14px;font-size:12.5px;font-weight:300;line-height:1.6;color:#8a8c96}
.dlw-notes li::before{content:'';position:absolute;left:1px;top:.7em;width:4px;height:4px;background:#5c5e68}
@media (max-width:640px){
  .dlw-head{padding:24px 20px 20px}
  .dlw-title{font-size:23px}
  .dlw-body{padding:20px 20px 24px;gap:20px}
  .dlw-pick{grid-template-columns:1fr}
  .dlw-steps{grid-template-columns:1fr;gap:12px}
  .dlw-steps li{flex-direction:row;gap:12px}
  .dlw-n::after{display:none}
  .dlw-go .btn-cta,.dlw-go .btn-ghost{flex:1 1 100%}
}

/* arrow buttons */
.arrow-btn{width:52px;height:52px;border-radius:0;border:1px solid rgba(255,255,255,.18);background:rgba(14,11,26,.45);backdrop-filter:blur(8px);color:#fff;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:border-color .18s ease,background .18s ease,color .18s ease,scale .26s cubic-bezier(.16,1,.3,1)}
/* `scale` rather than `transform` — these buttons are centred with an inline
   transform:translateY(-50%) that would otherwise win over the hover rule */
.arrow-btn:hover{border-color:rgba(242,145,42,.7);background:rgba(14,11,26,.8);color:#F2912A;scale:1.09}
.arrow-btn:active{scale:.97}

/* ===== footer ===== */
.footer{background:#0b0915;padding:56px 48px 48px;border-top:1px solid rgba(255,255,255,.07);margin-top:auto}
/* Page backdrop for the quieter pages: the room artwork, faded and tinted toward
   the site's night-blue so it reads as atmosphere, not content. Fixed in place. */
.page-art{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.page-art::before{content:'';position:absolute;inset:-20px;background:var(--art,url('/assets/img/content/bg.jpg')) center/cover no-repeat;
  filter:blur(3px) saturate(.7) brightness(.8);opacity:.05}
.page-art::after{content:'';position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(14,11,26,.55) 0%,rgba(23,20,48,.35) 40%,rgba(14,11,26,.6) 75%,#0e0b1a 100%),
    radial-gradient(ellipse at 50% 45%,rgba(14,11,26,0) 0%,rgba(14,11,26,.5) 70%,rgba(14,11,26,.85) 100%)}.footer-inner{max-width:900px;margin:0 auto;text-align:center}
.social-row{display:flex;gap:12px;justify-content:center;margin-bottom:36px}
.social-row a{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;transition:all .16s}
.social-row a:hover{background:rgba(255,255,255,.12)}
.social-row img{width:20px;height:20px;object-fit:contain}
.footer-links{display:flex;flex-wrap:wrap;gap:0 20px;align-items:center;justify-content:center;margin-bottom:24px;font-size:13.5px}
.footer-links a{color:#b8bac4;cursor:pointer}
.footer-links a:hover{color:#F2912A}
.footer-links .sep{color:#3a3d47}
.footer-copy{font-size:13px;color:#5c5e68;display:block;margin-bottom:40px}
.footer-logo{height:44px;width:auto;display:block;margin:0 auto;opacity:.4;filter:grayscale(1);
  transition:opacity .35s ease,filter .35s ease}
.footer-logo:hover{opacity:.85;filter:grayscale(0)}

/* ===== page helpers ===== */
.center-page{flex:1;display:flex;align-items:center;justify-content:center;padding:64px 48px 72px}
.auth-box{width:100%;max-width:420px}
/* The tagline under an auth heading reads badly broken across two lines, so on
   anything wider than a phone it is allowed to run past the 420px form column,
   centred on it. Below that it wraps normally. */
.auth-sub{font-size:15px;font-weight:300;line-height:1.7;color:#9a9ca6;margin:12px 0 32px}
@media (min-width:780px){
  .auth-sub{position:relative;left:50%;translate:-50% 0;
    width:max-content;max-width:min(86vw,760px);white-space:nowrap}
}
/* small action button sitting inside the right end of an input box */
.input-wrap{position:relative}
.input-wrap .input{padding-right:104px}
.input-btn{position:absolute;top:50%;right:8px;translate:0 -50%;min-width:80px;padding:7px 14px;
  font-family:'Kanit',sans-serif;font-size:13px;font-weight:400;color:#b8bac4;cursor:pointer;
  background:rgba(255,255,255,.06);border:none;border-radius:0;transition:background .16s,color .16s}
.input-btn:hover{background:rgba(255,255,255,.12);color:#fff}
.input-btn:disabled{opacity:.5;cursor:default}

/* quiet checkbox: a dark box that matches the inputs instead of the browser's
   bright white square; it only turns orange once ticked */
.check{appearance:none;-webkit-appearance:none;flex:none;width:16px;height:16px;margin:0;cursor:pointer;
  background:#171430;border:1px solid rgba(255,255,255,.22);border-radius:0;
  display:inline-grid;place-content:center;transition:border-color .16s,background .16s}
.check:hover{border-color:rgba(255,255,255,.4)}
.check:checked{background:#EC6A17;border-color:#EC6A17}
.check:checked::after{content:'';width:9px;height:5px;margin-top:-2px;border:solid #0e0b1a;border-width:0 0 2px 2px;rotate:-45deg}
.check:focus-visible{outline:2px solid #F2912A;outline-offset:2px}

/* consent line under a form: links read as part of the sentence, not as CTAs */
.terms-text{font-size:13px;font-weight:300;color:#8a8c96;line-height:1.6}
.terms-text .inline-link{font-weight:300;color:#b8bac4;text-decoration-color:rgba(184,186,196,.35)}
.terms-text .inline-link:hover{color:#eef0f4;text-decoration-color:currentColor;text-decoration-thickness:1px}

/* secondary links under the auth submit button: "Forgot password | Create account" */
.auth-links{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:22px;font-size:13.5px}
.auth-links a{color:#8a8c96;transition:color .16s}
.auth-links a:hover{color:#eef0f4}
.auth-links .sep{width:1px;height:13px;background:rgba(255,255,255,.16)}
.panel{background:#171430;border:1px solid rgba(255,255,255,.07);padding:26px 28px}
.stat{display:flex;flex-direction:column;gap:4px;background:#171430;border:1px solid rgba(255,255,255,.07);padding:18px 20px}
.stat .v{font-size:24px;font-weight:500;color:#fff}
.stat .k{font-size:12.5px;color:#8a8c96}
.table{width:100%;border-collapse:collapse;font-size:13.5px}
.table th{font-weight:400;color:#8a8c96;text-align:left;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.09);white-space:nowrap}
.table td{padding:11px 12px;border-bottom:1px solid rgba(255,255,255,.05);color:#c2c4ce}
.table tr:hover td{background:rgba(255,255,255,.02)}
.badge{display:inline-block;font-size:11px;letter-spacing:.04em;padding:4px 10px;border:1px solid}
.badge.pending{color:#ecd07f;border-color:rgba(236,208,127,.45)}
.badge.paid{color:#7fb8ec;border-color:rgba(127,184,236,.45)}
.badge.approved{color:#7ae0a3;border-color:rgba(122,224,163,.45)}
.badge.rejected,.badge.cancelled{color:#ff8a7a;border-color:rgba(255,138,122,.4)}

@media (max-width:860px){
  .nav{padding-left:20px}
  .nav-links{display:none}
  .wrap{padding:0 22px}
  .center-page{padding:44px 22px 60px}
  .to-top{right:16px;bottom:16px;width:42px;height:42px}
}

/* Visitors who ask for reduced motion get the layout with none of the movement.
   site.js also skips adding .tw-motion for them, so nothing starts out hidden. */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;transition-delay:0s!important}
  .card:hover,.to-top:hover{transform:none}
  .card:hover .slot img.content,.card:hover .slot .ph{transform:none}
  .card .slot::after{display:none}
  .arrow-btn:hover,.arrow-btn:active{scale:none}
}
