/* ===== BigDForever v1.1 layout proposals (each one off unless its key is on, see v11-flags.js) ===== */

/* ---------- [wide:a|b] PC pages use the screen width ---------- */
html{--v11w:1100px}
html.v11-wide-a{--v11w:1440px}
html.v11-wide-b{--v11w:min(1760px, 92vw)}
@media (min-width:1000px){
  html.v11-wide .wrap, html.v11-wide main.wrap{max-width:var(--v11w)}
  html.v11-wide .hero .copy p{max-width:56ch}
  html.v11-wide-b .hero h1{font-size:clamp(56px,8vw,150px)}
  html.v11-wide .war-links{gap:18px}
  html.v11-wide .grid, html.v11-wide .chaos-cta{gap:18px}
  html.v11-wide .lede{max-width:72ch}
}

/* ---------- [header] same header everywhere: logo left, Talents + Menu right, edge-to-edge faction line ---------- */
html.v11-header body{overflow-x:clip}
html.v11-header header.top, html.v11-header header.fx-head{max-width:none!important;margin:0!important;border-bottom:0!important;
  padding-inline:max(16px, calc((100vw - var(--v11w)) / 2))!important;padding-block:10px!important}
html.v11-header body > header.top, html.v11-header body > header.fx-head{margin-inline:calc(50% - 50vw)!important}
html.v11-header header.fx-head > .wrap{max-width:none!important;padding:0!important;margin:0!important;width:100%}
html.v11-header .fx-burger{margin-right:0!important}
html.v11-header .fx-talents{margin-left:auto}
html.v11-header header.fx-head::after{left:calc(50% - 50vw)!important;right:calc(50% - 50vw)!important}
html.v11-header[data-side="horde"] header.fx-head::after{height:4px!important;bottom:-4px!important;-webkit-mask:none!important;mask:none!important;
  background:linear-gradient(var(--side) 0 3px,var(--side-2) 3px 4px)!important}
html.v11-header[data-side="alliance"] header.fx-head::after{height:4px!important;bottom:-4px!important;
  background:linear-gradient(var(--side-2) 0 2px,transparent 2px 3px,var(--side) 3px 4px)!important}
.v11-tslogo{width:22px;height:22px;margin-right:8px;object-fit:contain;flex:none}

/* ---------- [ticker] the news never runs dry ---------- */
html.v11-ticker .ticker .track{animation-duration:var(--v11tick,60s)}

/* ---------- [discord] the Discord logo inside every Discord button ---------- */
.v11-dlogo{width:1.25em;height:1.25em;flex:none;vertical-align:-.25em;margin-right:.5em;fill:currentColor}
html.v11-discord .btn:has(.v11-dlogo), html.v11-discord .fx-btn:has(.v11-dlogo){display:inline-flex;align-items:center;justify-content:center}

/* ---------- [footer] one quiet line ---------- */
html.v11-footer footer .wrap{display:block!important;text-align:center;font-size:12px!important;padding-block:18px!important;line-height:1.5}
html.v11-footer footer .wrap > span + span::before{content:" · "}
html.v11-footer footer, html.v11-footer footer *{font-size:12px}

/* ---------- [warroom:a|b] war room as a picture puzzle ---------- */
@media (min-width:861px){
  html.v11-warroom .war-links{display:grid;gap:16px}
  html.v11-warroom-a .war-links{grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(3,minmax(170px,auto));
    grid-template-areas:"map map bounty hall" "map map past hall" "spot spot clips vault"}
  html.v11-warroom-b .war-links{grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(3,minmax(165px,auto));
    grid-template-areas:"map map map hall hall bounty" "map map map hall hall past" "vault vault spot spot spot clips"}
  html.v11-warroom .wl{min-height:0!important}
  html.v11-warroom .wl:nth-child(1){grid-area:map} html.v11-warroom .wl:nth-child(2){grid-area:bounty}
  html.v11-warroom .wl:nth-child(3){grid-area:hall} html.v11-warroom .wl:nth-child(4){grid-area:past}
  html.v11-warroom .wl:nth-child(5){grid-area:clips} html.v11-warroom .wl:nth-child(6){grid-area:spot}
  html.v11-warroom .wl:nth-child(7){grid-area:vault}
}
html.v11-warroom .wl{justify-content:flex-end;background:var(--panel) var(--pic) center/cover no-repeat;isolation:isolate}
html.v11-warroom .wl::before{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(0deg,color-mix(in srgb,var(--ink) 94%,transparent) 0,color-mix(in srgb,var(--ink) 70%,transparent) 42%,color-mix(in srgb,var(--ink) 18%,transparent) 100%);transition:opacity .3s}
html.v11-warroom .wl:hover::before{opacity:.82}
/* props tiles: the cut-out sits top-right, the words stay bottom-left on the plain panel */
html.v11-warroom .wl.v11-prop{background:var(--pic) right 64px top 14px/auto min(54%,190px) no-repeat,radial-gradient(120% 90% at 85% 25%,color-mix(in srgb,var(--tint) 16%,var(--panel)) 0,var(--panel) 70%)}
html.v11-warroom .wl.v11-prop::before{background:linear-gradient(0deg,color-mix(in srgb,var(--ink) 88%,transparent) 0,color-mix(in srgb,var(--ink) 30%,transparent) 45%,transparent 75%)}
html.v11-warroom .wl.v11-prop:hover{background-size:auto min(58%,204px),auto}
html.v11-warroom .wl:hover{transform:translateY(-3px);border-color:var(--tint);box-shadow:0 16px 40px -18px #000}
html.v11-warroom .wl b{font-size:25px;text-shadow:0 2px 8px #000}
html.v11-warroom .wl:nth-child(1) b{font-size:38px}
html.v11-warroom .wl span:last-child{color:color-mix(in srgb,var(--paper) 82%,transparent);text-shadow:0 1px 6px #000}
html.v11-warroom .wl .no{text-shadow:0 2px 8px #000}
@media (max-width:860px){html.v11-warroom .wl{min-height:150px}}

/* ---------- [chaos] Launch Week Chaos fixes ---------- */
html.v11-chaos[data-side="alliance"] .chaos{background:var(--panel)}
html.v11-chaos .tile{transition:border-color .2s,transform .2s}
html.v11-chaos .tile:hover{border-color:var(--tint);transform:translateY(-2px)}
html.v11-chaos #chaos-submit{transition:border-color .2s,box-shadow .2s,background .2s}
html.v11-chaos #chaos-submit:hover, html.v11-chaos #chaos-submit:focus-visible{border-color:var(--tint);box-shadow:0 0 0 2px var(--tint);background:color-mix(in srgb,var(--tint) 18%,var(--panel2,var(--panel)))}

/* ---------- [nolines] no divider lines between sections (spacing separates them) ---------- */
html.v11-nolines .sec + .sec .wrap{border-top:0!important}
html.v11-header header.top + main, html.v11-header header.top + .wrap, html.v11-header header.top + section{margin-top:28px}

/* ---------- [menu] Change your mind + war chest ---------- */
.v11-coin{width:1.3em;height:1.3em;vertical-align:-.3em;margin-right:.45em;object-fit:contain;filter:drop-shadow(0 1px 2px #000)}
html.v11-menu .fx-kofi span{display:inline-flex;align-items:center}
a:has(.fx-ico-discord) .v11-dlogo, button:has(.fx-ico-discord) .v11-dlogo{display:none}

/* ---------- [warroom:c] Dejan's layout (10 Nov 17:19): map + big Spotlight on top, Clip Vault · Hall of Fame · How to clip below;
   numbers top-left, words bottom-left in one size, pictures on the right ---------- */
@media (min-width:861px){
  html.v11-warroom-c .war-links{grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(2,minmax(190px,auto)) minmax(170px,auto);
    grid-template-areas:"map map map spot spot bounty" "map map map spot spot past" "vault vault hall hall clips clips"}
}
html.v11-warroom-c .wl{padding:60px 20px 18px}
html.v11-warroom-c .wl .no,html.v11-warroom-c .wl.big .no{left:20px;right:auto;top:16px;font-size:30px}
html.v11-warroom-c .wl b,html.v11-warroom-c .wl:nth-child(1) b,html.v11-warroom-c .wl.big b{font-size:28px;padding-right:0;max-width:62%}
html.v11-warroom-c .wl span:last-child{max-width:58%;font-size:15px}
html.v11-warroom-c .wl:nth-child(1) b,html.v11-warroom-c .wl:nth-child(1) span:last-child,html.v11-warroom-c .wl.v11-cover b,html.v11-warroom-c .wl.v11-cover span:last-child{max-width:80%}
html.v11-warroom-c .wl.v11-prop{background:var(--pic) right 18px center/auto min(74%,210px) no-repeat,radial-gradient(90% 120% at 88% 50%,color-mix(in srgb,var(--tint) 18%,var(--panel)) 0,var(--panel) 62%)}
html.v11-warroom-c .wl.v11-prop::before{background:none}
html.v11-warroom-c .wl.v11-prop:hover{background-size:auto min(80%,226px),auto}
html.v11-warroom-c .wl.v11-cover{background:var(--panel) var(--pic) center/cover no-repeat}
html.v11-warroom-c .wl.v11-cover::before{background:linear-gradient(0deg,color-mix(in srgb,var(--ink) 92%,transparent) 0,color-mix(in srgb,var(--ink) 55%,transparent) 45%,color-mix(in srgb,var(--ink) 25%,transparent) 100%)}
@media (max-width:860px){html.v11-warroom-c .wl.v11-prop{background-size:auto min(64%,120px),auto}}
@media (min-width:861px){
  /* narrow tiles (bounty, Taste of the Past): picture top-right beside the number, words full width underneath */
  html.v11-warroom-c .wl:nth-child(2).v11-prop,html.v11-warroom-c .wl:nth-child(4).v11-prop{background-position:right 14px top 12px,0 0;background-size:auto 46%,auto}
  html.v11-warroom-c .wl:nth-child(2) b,html.v11-warroom-c .wl:nth-child(2) span:last-child,html.v11-warroom-c .wl:nth-child(4) b,html.v11-warroom-c .wl:nth-child(4) span:last-child{max-width:100%}
  html.v11-warroom-c .wl:nth-child(2).v11-prop:hover,html.v11-warroom-c .wl:nth-child(4).v11-prop:hover{background-size:auto 50%,auto}
}
html.v11-warroom-c .wl:nth-child(1)::before{background:linear-gradient(0deg,color-mix(in srgb,var(--ink) 90%,transparent) 0,color-mix(in srgb,var(--ink) 40%,transparent) 40%,transparent 62%),radial-gradient(160px 120px at 0 0,color-mix(in srgb,var(--ink) 70%,transparent),transparent)}

/* ---------- [chaos6] Launch Week Chaos: all six tiles in one row on a computer, the two buttons underneath (Dejan 10 Nov) ---------- */
@media (min-width:1200px){
  html.v11-chaos6 .chaos .grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  html.v11-chaos6 .chaos .tile h3{font-size:21px}
}
html.v11-chaos6 .chaos-cta{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-top:22px}
html.v11-chaos6 .chaos-cta .btn{width:auto;min-width:260px;display:inline-flex;align-items:center;justify-content:center}
a:has(.p11-ico) .v11-dlogo, button:has(.p11-ico) .v11-dlogo{display:none}

/* ---------- [coin] the goblin coin (11 Nov, both sides): Ko-fi button + menu war chest; flips to GG / In gold we trust on hover ---------- */
.v11-flip{display:inline-block;width:1.35em;height:1.35em;vertical-align:-.32em;perspective:240px;flex:none}
.v11-flip i{position:relative;display:block;width:100%;height:100%;transform-style:preserve-3d;transition:transform .6s cubic-bezier(.3,1.4,.5,1)}
.v11-flip img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;backface-visibility:hidden;-webkit-backface-visibility:hidden;filter:drop-shadow(0 1px 2px #000)}
.v11-flip img + img{transform:rotateY(180deg)}
a:hover .v11-flip i,a:focus-visible .v11-flip i{transform:rotateY(180deg)}
html.v11-menu .fx-kofi .v11-flip{margin-right:.45em}
html.v11-socials .links a[data-fx="kofi"] .v11-flip{width:22px;height:22px}
@media (prefers-reduced-motion:reduce){.v11-flip i{transition:none}}
