/* TorqBound ecosystem 0.11: scoped, responsive overrides. */
:root{--eco-bg:#0c0d10;--eco-panel:#17191e;--eco-line:#35373e;--eco-red:#d62b36;--eco-gold:#c5a66a}
.eco-dropdown{position:relative;flex-shrink:0}.eco-dropdown>summary{list-style:none;cursor:pointer;display:flex;gap:10px;align-items:center;padding:14px 10px;color:#eee;white-space:nowrap}.eco-dropdown>summary::-webkit-details-marker,.eco-admin-group>summary::-webkit-details-marker{display:none}.eco-dropdown>summary.active,.eco-dropdown[open]>summary{color:var(--eco-red)}.eco-dropdown-panel{position:absolute;top:100%;left:0;min-width:240px;max-width:calc(100vw - 32px);padding:8px;background:#17191efc;border:1px solid var(--eco-line);border-radius:10px;box-shadow:0 16px 40px #0009;z-index:180}.main-nav .eco-dropdown-panel a,.eco-dropdown-panel .eco-disabled{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:6px;font-size:14px;line-height:1.5;white-space:normal}.main-nav .eco-dropdown-panel a:hover{background:#d62b361c;color:#fff}.eco-disabled{color:#92949d;cursor:not-allowed}.eco-disabled small{font-size:10px;text-transform:uppercase;color:#b9a581}.eco-menu-note{max-width:240px;padding:8px 14px;font-size:12px;line-height:1.5;color:#a9aab3}.eco-dropdown:focus-within>summary,.eco-dropdown summary:focus-visible{outline:2px solid var(--eco-gold);outline-offset:3px}.header-inner{max-width:1600px}.site-header .header-search{display:none}.site-header .main-nav{gap:8px}.site-header .brand img{max-width:190px}.eco-page-heading{margin:10px 0 32px}.eco-page-heading h1{font-family:var(--font-display);font-size:clamp(30px,4vw,60px);line-height:1.15;letter-spacing:.01em;margin:10px 0;text-transform:uppercase}.eco-page-heading p{color:#b2b4be;font-size:18px;max-width:720px}.eco-kicker{font:700 12px/1.6 var(--font-body,sans-serif);letter-spacing:.12em;color:var(--eco-gold);text-transform:uppercase}.eco-news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.eco-news-card{border:1px solid var(--eco-line);border-radius:12px;overflow:hidden;background:var(--eco-panel);min-width:0}.eco-news-card>a{position:relative;display:block;isolation:isolate;min-height:360px;color:#fff;height:100%}.eco-news-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .35s}.eco-news-card>a:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#0000 0%,#090a0eb0 40%,#090a0ef5 100%);z-index:-1}.eco-news-copy{min-height:360px;padding:30px;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start}.eco-news-copy h2{font-family:var(--font-display);font-size:clamp(23px,2.5vw,34px);line-height:1.2;margin:10px 0;overflow-wrap:anywhere;letter-spacing:0}.eco-news-copy time{color:#d5d5de;font-size:12px;display:block;margin-top:6px}.eco-news-copy p{font-size:15px;line-height:1.65;color:#e2e2e8;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-width:780px;margin:0 0 18px}.eco-read-more{padding:10px 16px;border-radius:6px;background:var(--eco-red);font-weight:700;font-size:13px}.eco-news-card:hover img{transform:scale(1.025)}.eco-news-card a:focus-visible{outline:3px solid var(--eco-gold);outline-offset:-4px}.eco-news-lead{grid-column:1/-1}.eco-news-lead>a,.eco-news-lead .eco-news-copy{min-height:480px}.eco-news-lead .eco-news-copy{padding:42px}.eco-news-lead h2{font-size:clamp(28px,4vw,48px);max-width:1000px}.eco-pagination{display:flex;justify-content:space-between;gap:16px;margin-top:30px}.eco-article-cover{display:block;width:100%;max-height:620px;object-fit:cover;border-radius:12px;margin:20px 0}.eco-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.eco-hub-card{position:relative;transition:border-color .2s}.eco-hub-card:hover{border-color:var(--eco-red)}.eco-hub-card>.ui-icon{width:40px;height:40px}.eco-hub-card h2{font-size:24px;margin:20px 0 8px}.eco-hub-card p{color:#b2b4be}.eco-hub-card>span{position:absolute;right:24px;top:24px;color:var(--eco-gold)}.eco-channel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.eco-channel-grid>div{background:#ffffff04;border:1px solid var(--eco-line);border-radius:10px;padding:22px;display:flex;flex-direction:column;gap:10px}.eco-channel-grid strong{font-size:23px;color:var(--eco-gold)}.eco-channel-grid span{font-size:14px;color:#bbb}.eco-admin-group{border-bottom:1px solid #ffffff14;padding:10px 0}.eco-admin-group>summary{list-style:none;cursor:pointer;color:#ddd;font-weight:700;font-size:13px;display:flex;justify-content:space-between;gap:10px;padding:12px 10px}.eco-admin-group[open]>summary{color:var(--eco-gold)}.eco-admin-group:not([open])>.admin-nav-links{display:none}.eco-advanced{padding:20px;border:1px solid var(--eco-line);border-radius:10px;margin-top:24px}.eco-advanced summary{cursor:pointer;font-weight:700}.eco-integration-status{margin:24px 0;padding:22px;border:1px solid var(--eco-gold);border-radius:10px}.eco-integration-status.is-active{border-color:#57bd83}.eco-integration-status strong{font-size:23px}.eco-control h2{font-size:clamp(24px,3vw,40px)}.eco-locked{max-width:800px}.eco-locked>.ui-icon{width:44px;height:44px}.eco-profile-heading h2{margin:0 0 12px}.eco-collapsible>summary{padding:20px;cursor:pointer;font-weight:700;list-style:none;font-size:18px;display:flex;justify-content:space-between}.eco-collapsible{border:1px solid var(--eco-line);border-radius:12px;margin:16px 0;background:var(--eco-panel)}.eco-collapsible>section{border:0!important;margin:0!important}.eco-collapsible>summary:after{content:'⌄';color:var(--eco-gold)}
@media(min-width:1051px){.site-header .header-inner{gap:16px}.site-header .header-actions{gap:8px}.site-header .main-nav{flex:1;justify-content:center}.site-header .main-nav>a{white-space:nowrap}}
@media(max-width:1050px){.eco-dropdown-panel{position:static;box-shadow:none;min-width:0;width:100%;border-color:#ffffff12}.main-nav .eco-dropdown{width:100%}.eco-dropdown>summary{padding:14px 18px}.eco-channel-grid,.eco-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.eco-news-grid,.eco-hub-grid,.eco-channel-grid{grid-template-columns:minmax(0,1fr)}.eco-news-grid{gap:18px}.eco-news-lead>a,.eco-news-lead .eco-news-copy{min-height:400px}.eco-news-lead .eco-news-copy,.eco-news-copy{padding:24px}.eco-news-card>a,.eco-news-copy{min-height:320px}.eco-news-lead h2{font-size:32px}.eco-page-heading{margin-bottom:24px}.eco-pagination{flex-wrap:wrap}.eco-news-copy p{font-size:14px}.header-actions .user-chip{max-width:132px}.eco-advanced .btn{margin-top:10px;white-space:normal}}
@media(prefers-reduced-motion:reduce){.eco-news-card img{transition:none}.eco-news-card:hover img{transform:none}}

.site-header .main-nav>a.active{color:var(--eco-gold)}

@media(max-width:1050px){.site-header .main-nav.open{display:flex;flex-direction:column;align-items:stretch;max-height:calc(100dvh - 90px);overflow-y:auto}.site-header .main-nav>a{padding:14px 18px}.eco-dropdown-panel{max-width:none}.eco-dropdown-panel a{width:100%}}
@media(max-width:720px){.admin-nav{display:block;overflow:visible}.eco-admin-group{width:100%}.admin-nav-search{margin-bottom:12px}}

.eco-mobile-account{display:none}@media(max-width:720px){.site-header .header-actions>.tester-btn,.site-header .header-actions>form[action="/wyloguj"],.site-header .header-actions>.btn{display:none}.eco-mobile-account{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--eco-line);padding:12px 0}.eco-mobile-account>a{padding:12px 18px}.eco-mobile-account form{padding:0 18px}}

/* TORQBOUND VISUAL PATCH 0.11.1 — full-page supplied artwork and image tiles.
   Public website only. Existing navigation, account access and game gates remain in PHP.
*/
body.event-theme {
  --tb-scene:var(--tb-owner-scene,url('/assets/img/backgrounds/torqvale-fullscreen.jpg'));
  --tb-tile-dim:var(--tb-owner-tile-dim,.80);
  --tb-surface:rgba(10,13,18,.93);
  --tb-surface-soft:rgba(10,13,18,.85);
  --tb-outline:rgba(197,202,214,.27);
  position:relative;
  isolation:isolate;
  min-height:100vh;
  min-height:100svh;
  background:#07090d!important;
  color:#f3f4f6;
}
body.event-theme::before {
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(3,5,8,.30),rgba(3,5,8,.47)),var(--tb-scene) center center/cover no-repeat;
}
body.event-theme .site-header {
  background:rgba(7,10,14,.94);
  border-bottom:1px solid var(--tb-outline);
  box-shadow:0 8px 28px #0005;
}
body.event-theme .site-footer {
  background:rgba(7,10,14,.94);
  border-top:1px solid var(--tb-outline);
}
body.event-theme .eco-dropdown-panel {
  background:#10141bf7;
  border-color:var(--tb-outline);
  box-shadow:0 20px 42px #0009;
}
body.event-theme .container {width:min(calc(100% - 64px),1440px)}
body.event-theme #main {background:none}
body.event-theme #main :is(.panel,.article-body,.article-sidebar,.article-content-row,.download-panel,.studio-about,.forum-board-intro,.forum-category-group,.forum-all-topics-card,.forum-topic-row,.forum-post,.forum-reply,.music-playlist-card,.music-track-card,.launcher-panel,.launcher-shortcut,.eco-channel-grid>div,.empty-state) {
  background:var(--tb-surface);
  background-image:none;
  border:1px solid var(--tb-outline);
  border-radius:12px;
  box-shadow:0 10px 24px #0004;
}
body.event-theme #main :is(.panel,.article-sidebar,.article-content-row,.download-panel,.studio-about,.forum-board-intro,.forum-category-group,.music-playlist-card,.music-track-card)::before {opacity:.24}
body.event-theme #main :is(.eco-page-heading,.section-head) {
  padding:24px 28px;
  border:1px solid var(--tb-outline);
  border-radius:12px;
  background:var(--tb-surface-soft);
  box-shadow:0 10px 24px #0004;
}
body.event-theme #main .eco-page-heading h1 {color:#fff;text-shadow:0 2px 12px #0007}
body.event-theme #main :is(.eco-page-heading,.section-head) p {color:#c6cad2}
body.event-theme .article-layout>article {
  min-width:0;
  padding:24px;
  border:1px solid var(--tb-outline);
  border-radius:14px;
  background:var(--tb-surface);
  box-shadow:0 16px 40px #0006;
}
body.event-theme #main .article-layout>article>:is(.panel,.article-body) {
  padding:0;
  border:0;
  box-shadow:none;
  background:none;
}
body.event-theme #main .article-layout>article>.panel::before {content:none}
body.event-theme #main .article-content-row {background:rgba(17,21,28,.88);padding:20px}
body.event-theme #main .article-content-copy {color:#e2e5ec}
body.event-theme .article-sidebar {align-self:start}
body.event-theme .article-sidebar a {color:#e0e3e9;border-color:#ffffff1f}
body.event-theme .article-sidebar a:hover {color:var(--eco-gold)}
body.event-theme .eco-article-cover {border:1px solid #ffffff25;box-shadow:none}
/* The default heading is a dark panel on the shared scene. Live events retain their own hero. */
body.event-theme-default .page-hero {
  width:min(calc(100% - 64px),1440px);
  margin:28px auto 24px;
  min-height:0;
  border:1px solid var(--tb-outline);
  border-radius:14px;
  background:var(--tb-surface-soft)!important;
  filter:none;
}
body.event-theme-default .page-hero::before,
body.event-theme-default .page-hero::after {content:none}
body.event-theme-default .page-hero>.container {width:100%;padding:30px}
body.event-theme-default .page-hero .hero-copy {padding:0;width:100%;max-width:900px}
body.event-theme-default .page-hero h1 {
  color:#fff;
  background:none;
  -webkit-text-fill-color:#fff;
  font-size:clamp(32px,4vw,58px);
  text-shadow:0 3px 18px #0007;
}
body.event-theme-default .page-hero .hero-copy p {color:#c7cbd3;max-width:780px}
/* News / Patch notes — every image fills its entire tile. */
body.event-theme .eco-news-grid {gap:20px}
body.event-theme .eco-news-card {
  border:1px solid rgba(212,216,226,.37);
  border-radius:12px;
  background:#0b0e13;
  box-shadow:0 12px 30px #0006;
}
body.event-theme .eco-news-card img {object-fit:cover;object-position:center}
body.event-theme .eco-news-card>a::after {
  background:linear-gradient(90deg,rgba(5,8,12,.82),rgba(5,8,12,.28) 68%,rgba(5,8,12,.15)),linear-gradient(180deg,transparent 25%,rgba(5,8,12,.92));
}
body.event-theme .eco-news-copy {padding:26px;min-height:320px}
body.event-theme .eco-news-card>a {min-height:320px}
body.event-theme .eco-news-lead>a,
body.event-theme .eco-news-lead .eco-news-copy {min-height:460px}
body.event-theme .eco-news-lead .eco-news-copy {padding:36px}
body.event-theme .eco-news-copy h2 {color:#fff;text-shadow:0 2px 14px #000b}
body.event-theme .eco-news-copy p {color:#e1e4eb;max-width:650px;text-shadow:0 1px 7px #000}
body.event-theme .eco-news-copy time {color:#d7dbe3}
body.event-theme .eco-kicker {color:#e0bc75}
body.event-theme .eco-read-more {background:#bf2437;border:1px solid #ed566777;border-radius:7px}
/* Mechanics, game information, legacy article tiles. The HTML text remains real and selectable. */
body.event-theme #main .editorial-card {
  min-height:380px;
  height:auto;
  padding:26px;
  gap:12px;
  justify-content:flex-end;
  border:1px solid rgba(212,216,226,.37);
  border-radius:12px;
  background:#0b0e13;
  box-shadow:0 12px 30px #0006;
}
body.event-theme #main .editorial-card>.editorial-card-image {
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;height:100%;max-height:none;
  margin:0;border:0;border-radius:0;
  object-fit:cover;
  box-shadow:none;
  transition:transform .3s ease;
}
body.event-theme #main .editorial-card::after {
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(6,9,13,.08) 0%,rgba(6,9,13,.60) 38%,rgba(6,9,13,.96) 100%);
}
body.event-theme #main .editorial-card>*:not(img) {position:relative;z-index:2}
body.event-theme #main .editorial-card::before {z-index:3;opacity:.3}
body.event-theme #main .editorial-card-divider {display:none}
body.event-theme #main .editorial-card-title {
  min-height:0;margin:0;
  font-size:clamp(23px,2.2vw,32px);line-height:1.18;
  color:#fff;text-shadow:0 2px 12px #000a;
  letter-spacing:0;
}
body.event-theme #main .editorial-card-summary {
  min-height:0;flex:0 1 auto;margin:0;color:#e1e4eb;
  line-height:1.6;font-size:15px;text-shadow:0 1px 6px #000;
}
body.event-theme #main .editorial-card-read {
  align-self:flex-start;margin:6px 0 0;padding:10px 15px;
  width:auto;gap:20px;border:1px solid #ed566766;border-radius:7px;
  background:#bd2337;color:#fff;
}
body.event-theme #main .editorial-news-meta {order:-1;color:#d4d8e0}
/* Roadmap alone uses a separate, uncropped image above the scope list. */
body.event-theme #main .roadmap-board-card {
  padding:16px;gap:10px;
  background:linear-gradient(145deg,#261416 0%,#110d0e 48%,#090809 100%);
  border:1px solid #714136;border-radius:14px;
}
body.event-theme #main .roadmap-board-card>.roadmap-board-image {
  position:relative;inset:auto;z-index:1;display:block;flex:0 0 auto;
  width:100%;height:auto;max-height:190px;
  border:1px solid #744a3e;border-radius:8px;object-fit:contain;
  background:#100b0d;box-shadow:0 7px 17px #0007;
  transform:none;filter:none;
}
body.event-theme #main .roadmap-board-card::after {content:none;display:none;background:none}
body.event-theme #main .roadmap-board-card>*:not(img) {position:relative;z-index:1}
body.event-theme #main .roadmap-board-card::before {z-index:2;opacity:.88}
body.event-theme #main .roadmap-card-divider {display:block;min-height:1px}
body.event-theme #main .roadmap-board-card h3 {color:#fff1dd;font-size:clamp(17px,1.4vw,21px);line-height:1.18}
body.event-theme #main .roadmap-board-card .roadmap-scope-list {background:transparent;border-radius:0;padding:2px 4px 4px 15px;scrollbar-color:#75413a #140f10}
body.event-theme #main .roadmap-board-card .roadmap-scope-list li {font-size:13px;color:#ded3d0;border-color:#3b2929}
body.event-theme #main .roadmap-card-read {color:#f1cf8b}
/* Gallery captions overlay the photo; the existing lightbox is preserved. */
body.event-theme #main .gallery-item {
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;flex-direction:column;justify-content:flex-end;
  min-height:250px;padding:20px;
  border:1px solid var(--tb-outline);border-radius:12px;background:#0b0e13;
}
body.event-theme #main .gallery-item>img {position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;border-radius:0}
body.event-theme #main .gallery-item::after {content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,transparent 40%,#080c12ec)}
body.event-theme #main .gallery-item>*:not(img) {position:relative;z-index:2;color:#fff}
body.event-theme #main .gallery-item::before {z-index:3;opacity:.3}
body.event-theme #main .gallery-item h3 {margin:0;text-shadow:0 2px 9px #000b}
body.event-theme #main :is(.editorial-card,.roadmap-board-card,.gallery-item,.eco-news-card):hover {border-color:#b45b63;box-shadow:0 14px 34px #0008}
body.event-theme #main :is(.editorial-card,.roadmap-board-card,.gallery-item):focus-visible {outline:3px solid #e4bd72;outline-offset:3px}
body.event-theme #main .editorial-card:hover>.editorial-card-image {transform:scale(1.025)}
@media(max-width:720px) {
  body.event-theme .container,body.event-theme-default .page-hero {width:calc(100% - 28px)}
  body.event-theme::before {background-position:center,62% center}
  body.event-theme #main :is(.eco-page-heading,.section-head) {padding:20px}
  body.event-theme .article-layout>article {padding:18px}
  body.event-theme #main .article-content-row {padding:16px}
  body.event-theme-default .page-hero>.container {padding:22px}
  body.event-theme #main .editorial-card {padding:22px;min-height:360px}
  body.event-theme .eco-news-lead .eco-news-copy {padding:26px}
  body.event-theme .eco-news-lead>a,body.event-theme .eco-news-lead .eco-news-copy {min-height:400px}
  body.event-theme #main .roadmap-board-card {padding:18px}
}
@media(prefers-reduced-motion:reduce) {
  body.event-theme #main .editorial-card>.editorial-card-image {transition:none}
  body.event-theme #main .editorial-card:hover>.editorial-card-image {transform:none}
}
/* One persisted Owner setting controls every image-tile overlay, including preview. */
body.event-theme .eco-news-card>a::after,
body.event-theme #main :is(.editorial-card,.gallery-item)::after,
.tb-preview-tile::after {
  background:linear-gradient(180deg,rgba(5,8,12,calc(var(--tb-tile-dim) * .15)),rgba(5,8,12,calc(var(--tb-tile-dim) * .55)) 40%,rgba(5,8,12,var(--tb-tile-dim)));
}
.tb-appearance-form {padding:24px}
.tb-appearance-layout {display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);gap:24px;align-items:start}
.tb-appearance-controls {display:grid;gap:16px;min-width:0}
.tb-appearance-section {border:1px solid #ffffff26;border-radius:10px;background:#0e1118;overflow:hidden}
.tb-appearance-section>summary {padding:18px;cursor:pointer;font-weight:700}
.tb-appearance-fields {display:grid;gap:20px;padding:0 18px 20px}
.tb-appearance-fields input[type=range] {width:100%;padding:8px 0;accent-color:#d9394b;cursor:pointer}
.tb-appearance-fields output {float:right;color:#edc578;font-weight:700}
.tb-appearance-fields small {color:#aeb6c4;line-height:1.5}
.tb-appearance-fields input,.tb-appearance-fields select {max-width:100%;min-width:0}
.tb-appearance-preview {position:relative;isolation:isolate;overflow:hidden;border:1px solid #ffffff40;border-radius:12px;background:#080b10}
.tb-appearance-scene {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}
.tb-appearance-preview::before {content:"";position:absolute;inset:0;background:#05070a55;z-index:-1;pointer-events:none}
.tb-appearance-preview-content {display:grid;gap:18px;padding:24px}
.tb-preview-label {justify-self:start;padding:5px 10px;background:#080b10e8;border:1px solid #ffffff40;border-radius:4px;font-size:11px;letter-spacing:2px;color:#e7c37d}
.tb-preview-heading {padding:18px;border:1px solid #ffffff40;border-radius:10px;background:rgba(10,13,18,.9)}
.tb-preview-heading strong {font-size:24px;color:#fff}
.tb-preview-heading p {margin:6px 0 0;color:#cad0da;line-height:1.5}
.tb-preview-tile {position:relative;isolation:isolate;overflow:hidden;border:1px solid #ffffff60;border-radius:10px;min-height:310px;display:flex;align-items:end}
.tb-preview-tile>img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.tb-preview-tile::after {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none}
.tb-preview-tile>div {padding:24px}
.tb-preview-tile h2 {font-size:32px;line-height:1.1;color:#fff;text-shadow:0 2px 10px #000}
.tb-preview-tile p {color:#fff;text-shadow:0 1px 5px #000}
.tb-preview-tile .eco-read-more {background:#bd2337;border-radius:6px}
@media(max-width:1000px) {.tb-appearance-layout{grid-template-columns:1fr}.tb-appearance-form{padding:18px}}
@media(max-width:520px) {.tb-appearance-preview-content{padding:16px}.tb-preview-tile>div{padding:20px}.tb-preview-tile h2{font-size:28px}}
