/* PAINTED SKIN (design preview, not shipped). One override layer, loaded LAST on every page.
   Re-skins the site with the game's painted UI kit (Skill Tree look): steel frames with studs tinted violet/gold, dark navy panels,
   purple pill buttons with a gold edge, hexagon tabs, W1 divider with a gem. Layout, copy, JS and structure are untouched.
   Art lives in /assets/skin/*.webp (pre-tinted copies of the game's own kit pieces). Every frame is a 9-slice border-image drawn on a
   pseudo-element, so it scales with the box. States are CSS transitions only; prefers-reduced-motion switches the loops off. */
:root {
  --sk: "/assets/skin/";
  --pk-panel: radial-gradient(130% 55% at 50% 0, rgba(157, 107, 255, .2), transparent 62%), linear-gradient(180deg, rgba(18, 10, 30, .94), rgba(10, 6, 18, .97));
  --pk-spring: cubic-bezier(.2, .8, .3, 1.5); --pk-out: cubic-bezier(.2, .8, .3, 1);
  --pk-gold: 255, 210, 77; --pk-vio: 157, 107, 255;
}
/* ------------ scrollbars + focus ------------ */
* { scrollbar-width: thin; scrollbar-color: #7a58c0 #0d0916; }
::-webkit-scrollbar { width: 12px; height: 12px; background: #0a0712; }
::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #5a3da0, #8d6be0 50%, #5a3da0); border: 2px solid #0a0712; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 210, 77, .55); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #7a58c0, #b394ff 50%, #7a58c0); }
::selection { background: rgba(157, 107, 255, .55); color: #fff; }
:focus-visible { outline: 2px solid #ffe28a; outline-offset: 3px; }

/* ------------ shared pseudo-frame recipe ------------ */
/* big steel frame (W7) */
.frame, .portal, .loc, .hero-show, .fh-card, .acct-card, .lightbox img { position: relative; isolation: isolate; }
.frame { border-color: transparent; box-shadow: 0 22px 60px rgba(0, 0, 0, .65), 0 0 40px rgba(157, 107, 255, .1); background: var(--pk-panel); }
.frame::before { content: ""; position: absolute; inset: 0; width: auto; height: auto; z-index: 4; pointer-events: none; filter: none; border: solid transparent; border-width: 28px; border-image: url(/assets/skin/frame-violet.webp) 32 / 28px / 0 round; image-rendering: pixelated; }
.frame::after { display: none; }
.hero-show { border-color: transparent; }
.hero-show::before, .fh-card::before, .acct-card::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border: solid transparent; border-width: 28px; border-image: url(/assets/skin/frame-violet.webp) 32 / 28px / 0 round; image-rendering: pixelated; }
.fh-card, .acct-card { border-color: transparent; background: var(--pk-panel); }
.acct-card.frame::before { border-width: 28px; }
/* picture frames: the same steel frame at half size */
.gal button, .moods figure, .shots figure, .nfeat article, .bld article, .loops figure, .phone-row .frame { position: relative; isolation: isolate; }
.gal button::before, .moods figure::before, .shots figure::before, .nfeat article::before, .bld article::before, .loops figure::before { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border: solid transparent; border-width: 16px; border-image: url(/assets/skin/frame-violet.webp) 32 / 16px / 0 round; image-rendering: pixelated; transition: filter .25s; }
.gal button:hover::before, .shots figure:hover::before, .moods figure:hover::before { filter: brightness(1.25) drop-shadow(0 0 8px rgba(157, 107, 255, .7)); }
.moods figure, .shots figure, .nfeat article, .bld article { border-color: transparent; }
.gal button { transition: transform .18s var(--pk-spring); } .gal button:hover { transform: translateY(-2px); }
.gal figcaption, .cap, .moods figcaption, .shots figcaption { z-index: 6; }
.moods figcaption, .shots figcaption { left: 16px; bottom: 16px; border-radius: 0; background: rgba(10, 6, 18, .88); border: 1px solid rgba(255, 210, 77, .5); }

/* row card frame (W2, hexagon corners) for tiles, cards, list items */
.pillar, .icard, .stat, .rel, .inspired, .disc-q, .disc-form, .disc-soon, .faq details, .portal-note, .confirm-box, .msg, .acct-info { position: relative; isolation: isolate; clip-path: none; border-color: transparent; background: none; box-shadow: none; }
.pillar::before, .icard::before, .stat::before, .rel::before, .inspired::before, .disc-q::before, .disc-form::before, .disc-soon::before, .faq details::before, .portal-note::before, .confirm-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-sizing: border-box; border: solid transparent; border-width: 12px; border-image: url(/assets/skin/row-violet.webp) 12 / 12px / 0 round; image-rendering: pixelated;
  background: linear-gradient(90deg, rgba(60, 38, 108, .72), rgba(20, 12, 34, .88)); background-clip: padding-box; transition: filter .2s; }
.pillar, .icard, .stat { transition: transform .18s var(--pk-spring), filter .18s; }
.pillar:hover, .icard:hover, a.pillar:focus-visible { transform: translateY(-3px) scale(1.012); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)) drop-shadow(0 0 9px rgba(157, 107, 255, .6)); border-color: transparent; }
.pillar:active, .icard:active { transform: scale(.985); }
.pillar:hover::before, .icard:hover::before { filter: brightness(1.14); }
.pillar { padding: 26px 14px 22px; } .icard { padding: 26px 24px 28px; } .stat { padding: 24px 14px 20px; }
.rel { padding: 22px 26px; border-left-color: transparent; } .inspired { padding: 20px 26px; } .disc-q { padding: 20px 24px 18px; } .disc-form { padding: 22px; }
.disc-q.pinned::before, .faq details[open]::before { background-image: linear-gradient(90deg, rgba(120, 82, 24, .55), rgba(20, 12, 34, .88)); border-image-source: url(/assets/skin/row-gold.webp); }
.disc-q.pinned { border-color: transparent; }
.pillar img, .icard img { filter: drop-shadow(0 0 10px rgba(157, 107, 255, .7)); }
.rel .ver { text-shadow: 0 0 12px rgba(255, 210, 77, .45); }
.msg { padding: 14px 18px; border-color: transparent; }
.msg::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid rgba(157, 107, 255, .5); background: rgba(157, 107, 255, .12); }
.msg.err::before { border-color: #ff5a68; background: rgba(216, 40, 59, .14); } .msg.ok::before { border-color: #ffd24d; background: rgba(232, 163, 61, .12); }
.msg:empty::before { display: none; }

/* ------------ dividers (W1: caps + gem + rule) ------------ */
.hud-in { border-bottom-color: transparent; }
.hud-in::after, .foot::before, .s-head::after, .rule { content: ""; display: block; height: 15px; pointer-events: none; image-rendering: pixelated; opacity: 1;
  background: url(/assets/skin/div-gem-gold.webp) center / auto 100% no-repeat, url(/assets/skin/div-cap-l-gold.webp) left / auto 100% no-repeat, url(/assets/skin/div-cap-r-gold.webp) right / auto 100% no-repeat, url(/assets/skin/div-rule-gold.webp) left / auto 100% repeat-x; }
.hud-in::after { position: absolute; left: 0; right: 0; bottom: -7px; top: auto; background-color: transparent; }
.foot { border-top-color: transparent; position: relative; } .foot::before { position: absolute; left: 0; right: 0; top: -7px; }
.s-head::after { margin-top: 6px; max-width: 460px; }
.discord .s-head::after, .support .s-head::after { margin-inline: auto; width: 100%; }
.rule { max-width: 520px; margin-inline: auto; height: 15px; }
.sub::before, .sub::after { height: 2px; background: linear-gradient(90deg, transparent, #ffd24d); }
.sub::after { transform: scaleX(-1); }
.danger { border-top-color: transparent; position: relative; } .danger::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 15px; background: url(/assets/skin/div-gem-violet.webp) center / auto 100% no-repeat, url(/assets/skin/div-cap-l-violet.webp) left / auto 100% no-repeat, url(/assets/skin/div-cap-r-violet.webp) right / auto 100% no-repeat, url(/assets/skin/div-rule-violet.webp) left / auto 100% repeat-x; image-rendering: pixelated; }
.acct-h { border-bottom-color: transparent; position: relative; } .acct-f { border-top-color: transparent; position: relative; }
.acct-h::after, .acct-f::before { content: ""; position: absolute; left: 0; right: 0; height: 15px; background: url(/assets/skin/div-gem-gold.webp) center / auto 100% no-repeat, url(/assets/skin/div-cap-l-gold.webp) left / auto 100% no-repeat, url(/assets/skin/div-cap-r-gold.webp) right / auto 100% no-repeat, url(/assets/skin/div-rule-gold.webp) left / auto 100% repeat-x; image-rendering: pixelated; pointer-events: none; }
.acct-h::after { bottom: -7px; } .acct-f::before { top: -7px; }

/* ------------ Play launcher ONLY: the game's pill buttons (every other page keeps the website's own buttons) ------------ */
body:has(#hostToggle) .btn { clip-path: none; background: none; border: solid transparent; border-width: 12px 22px; border-image: url(/assets/skin/pill.webp) 14 40 fill / 12px 22px / 0 stretch; padding: 0 12px; color: #ffe9b0; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); min-height: 54px;
  transition: filter .15s, transform .12s var(--pk-out); overflow: visible; white-space: nowrap; }
body:has(#hostToggle) .btn::before { inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%) -160% 0 / 60% 100% no-repeat; mix-blend-mode: screen; opacity: .0; transition: background-position .6s var(--pk-out), opacity .2s; margin: -4px -14px; border-radius: 12px; }
body:has(#hostToggle) .btn::after { display: none; }
body:has(#hostToggle) .btn:hover { filter: brightness(1.2); transform: translateY(-1px); }
body:has(#hostToggle) .btn:hover::before { opacity: .9; background-position: 260% 0; }
body:has(#hostToggle) .btn:active { transform: scale(.96); filter: brightness(1.35); }
body:has(#hostToggle) .btn.big { min-height: 68px; padding: 0 30px; } body:has(#hostToggle) .btn.sm { min-height: 42px; border-width: 9px 16px; border-image-width: 9px 16px; padding: 0 4px; }
body:has(#hostToggle) .btn.dark, body:has(#hostToggle) .store-btn { border-image-source: url(/assets/skin/pill-dark.webp); color: #e6dcf5; }
body:has(#hostToggle) .btn.dark { background: none; }
body:has(#hostToggle) .btn[aria-disabled="true"], body:has(#hostToggle) .btn[disabled], body:has(#hostToggle) .btn:disabled { border-image-source: url(/assets/skin/pill-dark.webp); filter: brightness(.55) saturate(.6); color: #9a90b4; }
/* primary actions breathe a gold glow (the game's pkCta) */
body:has(#hostToggle) .btn.big:not(.dark):not([aria-disabled]) { animation: pkCta 2.4s ease-in-out infinite; }
body:has(#hostToggle) .btn.big:not(.dark):not([aria-disabled]):hover { animation: none; filter: drop-shadow(0 0 18px rgba(255, 210, 77, .85)) brightness(1.22); }
@keyframes pkCta { 0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 210, 77, .22)); } 50% { filter: drop-shadow(0 0 15px rgba(255, 210, 77, .65)) brightness(1.08); } }


/* ------------ header / nav ------------ */
.hud { background: linear-gradient(180deg, rgba(10, 6, 18, .97), rgba(10, 6, 18, .82) 75%, transparent); }
.brand { text-shadow: 0 0 20px rgba(157, 107, 255, .8), 0 2px 2px #000; }
.nav a::after { height: 3px; background: linear-gradient(90deg, transparent, #ffd24d, transparent); box-shadow: 0 0 10px #ffd24d; bottom: 8px; }
.nav a.on { color: #fff2c4; text-shadow: 0 0 10px rgba(255, 210, 77, .55); }
.hud-login, .acct-h nav a:not(.btn) { transition: color .15s, text-shadow .15s; }
.sheet { background: radial-gradient(80% 60% at 50% 20%, rgba(120, 60, 220, .3), transparent), rgba(7, 5, 13, .97); }

/* ------------ map / headquarters strips (website class tabs and buttons keep their own look) ------------ */
.fac-strip button, .portal-side a, .loc-list button { position: relative; isolation: isolate; clip-path: none; background: none; border-color: transparent; transition: color .15s, transform .15s var(--pk-spring), filter .15s; }

/* headquarters viewer + its tab strip */
.portal-side { background: linear-gradient(180deg, rgba(18, 10, 30, .96), rgba(10, 6, 18, .98)); border-right-color: transparent; padding: 22px 14px; gap: 6px; }
.portal-side a { padding: 12px 14px; border-left-color: transparent; border-radius: 0; min-height: 46px; }
.portal-side a::before { content: ""; position: absolute; inset: 0; z-index: -1; box-sizing: border-box; border: solid transparent; border-width: 12px; border-image: url(/assets/skin/row-off.webp) 12 / 12px / 0 round; image-rendering: pixelated; background: rgba(20, 12, 34, .8); background-clip: padding-box; transition: filter .2s; }
.portal-side a:first-child::before, .portal-side a:hover::before { border-image-source: url(/assets/skin/row-gold.webp); background: linear-gradient(90deg, rgba(150, 100, 30, .5), rgba(20, 12, 34, .85)); background-clip: padding-box; }
.portal-side a:first-child, .portal-side a:hover { background: none; color: #fff6d6; transform: translateX(3px); }
.portal-view { background: #05030a; }
.home .loc-text, .loc-text { background: linear-gradient(180deg, rgba(18, 10, 30, .98), rgba(7, 5, 13, .99)); border-top-color: transparent; position: relative; }
.home .loc-text::before { content: ""; position: absolute; left: 0; right: 0; top: -7px; height: 15px; background: url(/assets/skin/div-gem-gold.webp) center / auto 100% no-repeat, url(/assets/skin/div-cap-l-gold.webp) left / auto 100% no-repeat, url(/assets/skin/div-cap-r-gold.webp) right / auto 100% no-repeat, url(/assets/skin/div-rule-gold.webp) left / auto 100% repeat-x; image-rendering: pixelated; z-index: 3; }
.loc-text h3 { text-shadow: 0 0 16px rgba(255, 210, 77, .5), 0 2px 2px #000; }
.home .loc-text .big { border-color: transparent; box-shadow: none; outline: 3px solid transparent; }
.home .loc-text .big { border: 14px solid transparent; border-image: url(/assets/skin/frame-gold.webp) 32 / 14px / 0 round; image-rendering: auto; }
.loc-list { background: linear-gradient(180deg, rgba(18, 10, 30, .96), rgba(10, 6, 18, .98)); border-right-color: transparent; }
.loc-list button { border-bottom-color: transparent; }
.loc-list button[aria-selected="true"] { box-shadow: inset 3px 0 0 #ffd24d, inset 0 0 24px rgba(255, 210, 77, .15); }
/* hotspots: octagon medallions that pulse a violet/gold glow */
.hot i, .hot:hover i, .hot[aria-pressed="true"] i { border-color: transparent; border-radius: 0; width: 28px; height: 28px; background: url(/assets/skin/med-violet.webp) center / 100% 100% no-repeat; image-rendering: pixelated; box-shadow: none; animation: pkHot 2.6s ease-in-out infinite; }
.hot:hover i, .hot[aria-pressed="true"] i { background-image: url(/assets/skin/med-gold.webp); transform: scale(1.3); filter: drop-shadow(0 0 10px rgba(255, 210, 77, .9)); animation: none; }
.hot i::after { content: ""; position: absolute; inset: 9px; background: #ffd24d; transform: rotate(45deg) scale(.7); box-shadow: 0 0 8px #ffd24d; }
.hot i { position: relative; }
@keyframes pkHot { 0%, 100% { filter: drop-shadow(0 0 4px rgba(157, 107, 255, .6)); } 50% { filter: drop-shadow(0 0 14px rgba(255, 210, 77, .85)); } }
.hot span { border-color: transparent; background: none; isolation: isolate; padding: 9px 14px; }
.hot span::before { content: ""; position: absolute; inset: 0; z-index: -1; box-sizing: border-box; border: solid transparent; border-width: 8px; border-image: url(/assets/skin/chip-gold.webp) 8 / 8px / 0 round; image-rendering: pixelated; background: rgba(10, 6, 18, .94); background-clip: padding-box; }
.fac-strip button { padding: 10px 6px 10px; border-color: transparent; width: 100px; transition: transform .18s var(--pk-spring), color .15s, filter .15s; }
.fac-strip button::before { content: ""; position: absolute; inset: 0; z-index: -1; box-sizing: border-box; border: solid transparent; border-width: 12px; border-image: url(/assets/skin/row-off.webp) 12 / 12px / 0 round; image-rendering: pixelated; background: rgba(20, 12, 34, .85); background-clip: padding-box; transition: filter .2s; }
.fac-strip button img { border-color: transparent; border-radius: 0; outline: 2px solid rgba(157, 107, 255, .5); outline-offset: -2px; }
.fac-strip button:hover { transform: translateY(-2px) scale(1.03); filter: drop-shadow(0 0 8px rgba(157, 107, 255, .6)); }
.fac-strip button[aria-pressed="true"] { background: none; border-color: transparent; color: #fff6d6; transform: translateY(-2px); filter: drop-shadow(0 0 10px rgba(255, 210, 77, .55)); }
.fac-strip button[aria-pressed="true"]::before { border-image-source: url(/assets/skin/row-gold.webp); background: linear-gradient(180deg, rgba(150, 100, 30, .5), rgba(20, 12, 34, .85)); background-clip: padding-box; }
.fac-strip button[aria-pressed="true"] img { outline-color: #ffd24d; }
.map-hint { background: #0a0712; border-top-color: transparent; }

/* ------------ FAQ accordion ------------ */
.faq details { padding: 0; border-color: transparent; }
.faq summary { padding: 18px 60px 18px 28px; min-height: 58px; transition: color .15s; }
.faq summary:hover { color: #fff2c4; }
.faq summary::after { content: ""; right: 24px; width: 24px; height: 15px; translate: 0 -50%; background: url(/assets/skin/div-gem-violet.webp) center / 100% 100% no-repeat; image-rendering: pixelated; font: 0; transition: transform .25s var(--pk-spring), filter .2s; }
.faq details[open] summary::after { content: ""; background-image: url(/assets/skin/div-gem-gold.webp); transform: rotate(90deg) scale(1.15); filter: drop-shadow(0 0 7px rgba(255, 210, 77, .85)); }
.faq details[open] { border-color: transparent; }
.faq p { padding: 0 28px 22px; }
.faq summary:focus-visible { outline-offset: -6px; }
.faq-pin span::before { background: #ffd24d; }

/* ------------ forms ------------ */
.fld input, .discuss input[type="search"], .discuss input[type="text"], .discuss textarea, .discuss select, #login input, .disc-tools input[type="search"], .disc-form input, .disc-form select, .disc-form textarea {
  border: 12px solid transparent; border-image: url(/assets/skin/row-off.webp) 12 / 12px / 0 round; border-radius: 0; background: rgba(10, 6, 18, .96); background-clip: padding-box; image-rendering: pixelated; padding: 4px 6px; min-height: 56px; color: #f1e9ff; transition: filter .15s; }
.discuss textarea, .disc-form textarea { min-height: 110px; }
.fld input:focus, .discuss input:focus, .discuss textarea:focus, .discuss select:focus, #login input:focus, .disc-form input:focus, .disc-form textarea:focus, .disc-form select:focus { border-image-source: url(/assets/skin/row-gold.webp); box-shadow: none; filter: drop-shadow(0 0 8px rgba(255, 210, 77, .55)); outline: none; }
.fld input[aria-invalid="true"] { filter: hue-rotate(80deg) saturate(1.6); }
.fld > span { color: #ffd24d; text-shadow: 0 0 10px rgba(255, 210, 77, .3); }
input[type="checkbox"] { appearance: none; -webkit-appearance: none; position: relative; width: 26px; height: 26px; flex: none; border: 8px solid transparent; border-image: url(/assets/skin/row-off.webp) 12 / 8px / 0 round; image-rendering: pixelated; cursor: pointer; background: rgba(10, 6, 18, .96); background-clip: padding-box; transition: filter .15s, transform .12s var(--pk-spring); accent-color: auto; }
input[type="checkbox"]:hover { filter: brightness(1.3); } input[type="checkbox"]:active { transform: scale(.9); }
input[type="checkbox"]::after { content: ""; position: absolute; inset: 1px; background: #ffd24d; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transform: scale(0); transition: transform .18s var(--pk-spring); box-shadow: 0 0 8px #ffd24d; }
input[type="checkbox"]:checked { border-image-source: url(/assets/skin/row-gold.webp); } input[type="checkbox"]:checked::after { transform: scale(1); }
input[type="checkbox"]:focus-visible { outline: 2px solid #ffe28a; outline-offset: 3px; }
.disc-q .tag, .disc-meta .tag { border-radius: 0; background: rgba(20, 12, 34, .8); border-color: #6a4aa8; }

/* ------------ lightbox, footer, misc ------------ */
.lightbox { background: rgba(4, 3, 8, .95); }
.lightbox img { border: solid transparent; border-width: 20px; border-image: url(/assets/skin/frame-violet.webp) 32 / 20px / 0 round; image-rendering: auto; background: #05030a; box-sizing: content-box; max-width: calc(94vw - 40px); max-height: calc(90vh - 40px); }
.foot { background: linear-gradient(180deg, #0a0712, #05030a); }
.foot a:hover, .foot a:focus-visible { color: #fff2c4; text-shadow: 0 0 10px rgba(255, 210, 77, .5); }
.discord { background: radial-gradient(60% 80% at 50% 0, rgba(88, 101, 242, .2), transparent 70%); }
.stat .n { text-shadow: 0 0 20px rgba(255, 210, 77, .5), 0 2px 2px #000; }
.s-head h2, .page-head h1 { text-shadow: 0 0 30px rgba(157, 107, 255, .6), 0 2px 3px #000; }

/* ------------ legal / support pages (their own tiny stylesheet) ------------ */
.lh { border-bottom-color: transparent; position: relative; }
.lh::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 15px; background: url(/assets/skin/div-gem-gold.webp) center / auto 100% no-repeat, url(/assets/skin/div-cap-l-gold.webp) left / auto 100% no-repeat, url(/assets/skin/div-cap-r-gold.webp) right / auto 100% no-repeat, url(/assets/skin/div-rule-gold.webp) left / auto 100% repeat-x; image-rendering: pixelated; }
.lm { position: relative; isolation: isolate; }
details { position: relative; isolation: isolate; }

/* ------------ Play launcher (gate / loading / error) ------------ */
.g-panel[data-for="loading"], .g-panel[data-for="error"] { position: relative; isolation: isolate; padding: 28px 34px; background: var(--pk-panel); box-shadow: 0 20px 60px rgba(0, 0, 0, .7); }
.g-panel[data-for="loading"]::before, .g-panel[data-for="error"]::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border: solid transparent; border-width: 28px; border-image: url(/assets/skin/frame-violet.webp) 32 / 28px / 0 round; image-rendering: pixelated; }
.bar { height: 26px; border-color: transparent; clip-path: none; background: url(/assets/skin/bar-cap-l-violet.webp) left / auto 100% no-repeat, url(/assets/skin/bar-cap-r-violet.webp) right / auto 100% no-repeat, url(/assets/skin/bar-mid-violet.webp) 0 0 / auto 100% repeat-x; image-rendering: pixelated; overflow: hidden; }
.bar i { inset: 7px 13px; height: auto; border-radius: 2px; box-shadow: 0 0 10px rgba(195, 164, 255, .75); }
.bar.indet i { width: 30%; }
.g-panel h2 { text-shadow: 0 0 16px rgba(255, 210, 77, .5), 0 2px 2px #000; }
.fh-card { padding: 34px; } .fh-card::before { border-width: 28px; }
#hostToggle, #hostBar { border-color: rgba(157, 107, 255, .7); background: rgba(10, 6, 18, .95); }
#hostBar button:hover, #hostBar a:hover { background: rgba(157, 107, 255, .25); box-shadow: inset 0 0 0 1px rgba(255, 210, 77, .5); }
.link { transition: color .15s, text-shadow .15s; } .link:hover:not(:disabled) { color: #fff2c4; text-shadow: 0 0 10px rgba(255, 210, 77, .55); }
#net { border-color: #ffd24d; }

/* ------------ phones: smaller frames, 40px+ targets ------------ */
@media (max-width: 720px) {
  .frame::before, .hero-show::before, .fh-card::before, .acct-card::before, .g-panel::before { border-width: 20px; border-image-width: 20px; }
  .gal button::before, .moods figure::before, .shots figure::before, .nfeat article::before, .bld article::before, .loops figure::before { border-width: 12px; border-image-width: 12px; }
  body:has(#hostToggle) .btn { border-width: 11px 20px; border-image-width: 11px 20px; padding: 0 8px; } body:has(#hostToggle) .btn.big { padding: 0 8px; }
  .pillar { padding: 24px 12px 20px; } .icard { padding: 22px 20px 24px; } .rel { padding: 18px 20px; }
  .faq summary { padding: 16px 54px 16px 22px; }
  .portal-side { padding: 8px 10px; flex-direction: row; gap: 6px; }
  .g-panel[data-for="loading"], .g-panel[data-for="error"] { padding: 22px 22px; }
}
@media (pointer: coarse) { body:has(#hostToggle) .btn { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  body:has(#hostToggle) .btn { animation: none !important; } .hot i { animation: none !important; }
  body:has(#hostToggle) .btn::before { transition: none; }
}
.g-panel[data-for="loading"] .bar, .g-panel[data-for="error"] .bar { width: min(420px, 100%); }
.toc { position: relative; isolation: isolate; border-color: transparent; background: none; padding: 22px 26px; }
.toc::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-sizing: border-box; border: solid transparent; border-width: 12px; border-image: url(/assets/skin/row-violet.webp) 12 / 12px / 0 round; image-rendering: pixelated; background: linear-gradient(90deg, rgba(60, 38, 108, .72), rgba(20, 12, 34, .88)); background-clip: padding-box; }

/* Play launcher: store badges in the same dark pill */
body:has(#hostToggle) .store-btn { border: solid transparent; border-width: 12px 22px; border-image: url(/assets/skin/pill-dark.webp) 14 40 fill / 12px 22px / 0 stretch; border-radius: 0; background: none; padding: 0 8px; filter: brightness(.7); }
