@font-face {
  font-family: "Barlow Condensed";
  src: url(guild/barlow-condensed.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root[data-world="campamento"], #dialog[data-detail-world="campamento"] {
  --world-art:url(guild/mundos/campamento.webp);
  --world-art-side:var(--world-art);
  --world-base:#202629;
  --world-panel:28,26,22;
  --world-nav:31,26,20;
  --world-gold:#ffcf80;
  --world-line:#a47b49;
  --world-text:#fff3dd;
  --world-sub:#eee1cc;
  --world-glow:#a5622a;
  --world-head-font:"Barlow Condensed","Source Sans 3",sans-serif;
}

:root[data-world] {
  --scene-plate:rgba(var(--world-panel),calc(var(--world-opacity) + .08));
  --scene-cut:polygon(5px 0,calc(100% - 8px) 0,100% 8px,100% calc(100% - 5px),calc(100% - 5px) 100%,6px 100%,0 calc(100% - 6px),0 5px);
}
.world-backdrop {background-position:center,center 56%}
.world-backdrop::after {
  background:linear-gradient(90deg,#090b0ccb,transparent 35%),
    radial-gradient(ellipse at 38% 30%,#080b104f,transparent 70%);
}
:root[data-world="campamento"] .world-backdrop {background-position:center,center 55%}
body>header {
  min-height:95px;
  padding:12px clamp(14px,2.4vw,36px);
  background:linear-gradient(180deg,#0d1016b5,transparent);
  border:0;
  box-shadow:none;
}
body>header::after {display:none}
.brand {text-shadow:0 2px 6px #000}
:root[data-world="campamento"] .brand {
  font-family:"Barlow Condensed",sans-serif;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
:root[data-world="campamento"] .brand b {font-weight:700}
:root[data-world] body>main {
  min-height:0;
  padding:12px 0 42px;
  background:none;
  border:0;
  border-radius:0;
  backdrop-filter:none;
  box-shadow:none;
}
body>main::after {display:none}
body>main h1 {
  width:fit-content;
  text-shadow:0 2px 4px #0a0909,0 0 17px #090909;
}
:root[data-world="campamento"] body>main h1 {
  font-size:clamp(39px,4.2vw,72px);
  letter-spacing:.02em;
  text-transform:uppercase;
  font-style:italic;
}
.guild-collection #top {background:none}
.guild-rubric {text-shadow:0 1px 4px #080708,0 0 7px #080708}
:root[data-world] .guild-search input,:root[data-world] .search input {
  color:var(--world-text);
  background:rgba(var(--world-panel),.92);
  border:1px solid var(--world-line);
  box-shadow:0 2px 8px #0009,inset 0 1px 4px #0008;
}
:root[data-world] .guild-search input::placeholder {color:var(--world-sub)}
:root[data-world] .guild-search::before {border-color:var(--world-gold)}
:root[data-world] .guild-search::after {background:var(--world-gold)}
.guild-collection .sectionhead>small {
  padding:3px 8px;
  border-radius:4px;
  background:var(--scene-plate);
}
:root[data-world] .intro,.guild-rubric,.guild-collection .sectionhead>small {line-height:1.4}
:root[data-world] .intro {
  width:fit-content;
  padding:7px 10px;
  border-radius:5px;
  background:var(--scene-plate);
}
:root[data-world] :is(.empty,.panel,.line) {background:var(--scene-plate)}
:root[data-world] .empty {width:fit-content;max-width:100%;padding:12px 15px}
:root[data-world] .tile {box-shadow:0 3px 12px #000c}
:root[data-world="campamento"] .guild-collection .tile {
  border-color:#674521;
  background:linear-gradient(125deg,#d9af72,#6a4b31 36%,#2d2822 70%,#986439);
  border-radius:8px;
}
:root[data-world="campamento"] .guild-collection .guild-plate {
  background:url(guild/grano.svg),linear-gradient(150deg,#30261c,#171819);
  color:#fff3dd;
}
:root[data-world="campamento"] .guild-plate :is(.meta,.guild-state) {color:#eee1cc}
.guild-collection .tile .shelf {padding:4px;background:#1a1b1a}
.guild-collection .tile h3 {min-height:0;margin-bottom:5px}
.guild-collection .guild-plate {padding:7px 8px 9px}
.guild-collection .guild-list .tile .shelf {border-radius:5px 0 0 5px}
.guild-collection .badge {border-top-left-radius:0}
.guild-collection .new {width:44px;height:44px;min-width:44px}

nav {
  background:none;
  border:0;
  box-shadow:none;
  backdrop-filter:none;
}
nav button {
  position:relative;
  isolation:isolate;
  color:var(--world-text);
  background:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  text-shadow:0 1px 3px #000;
}
nav button:is(:hover,.active) {background:none;border:0;box-shadow:none}
nav button::before,nav button::after {
  position:absolute;
  inset:1px;
  z-index:-1;
  clip-path:var(--scene-cut);
  pointer-events:none;
  content:"";
}
nav button::before {background:linear-gradient(145deg,var(--world-line),#6b47232b)}
nav button::after {
  inset:2px;
  background:url(guild/grano.svg),linear-gradient(110deg,rgba(var(--world-nav),.96),rgba(var(--world-nav),.63));
}
nav button.active::before {background:var(--world-gold)}
nav button.active::after {
  background:url(guild/grano.svg),linear-gradient(100deg,#75481d,#3a261c 72%,#29231d);
  box-shadow:inset 0 0 12px #ffc97b58;
}
nav .scene-icon {display:inline-flex;align-items:center;justify-content:center;line-height:1}
.scene-icon svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
:root[data-world="steampunk"] nav button.active::after {background:linear-gradient(105deg,#624524,#102b36)}
:root[data-world="cyberpunk"] nav button.active::before {background:#f085e8}
:root[data-world="cyberpunk"] nav button.active::after {background:linear-gradient(100deg,#612552,#18172c);box-shadow:inset 0 0 9px #57d8f863}
:root[data-world="space"] nav button.active::after,
:root[data-world="observatory"] nav button.active::after {background:linear-gradient(100deg,#304d74,#101d39)}
nav :is(button:focus-visible,button.active:focus-visible) {outline:2px solid #fff2bd;outline-offset:2px;z-index:2}

@media(min-width:900px){
  body {--rail:175px}
  nav {top:106px;left:16px;width:var(--rail);bottom:auto;max-height:calc(100dvh - 118px);padding:4px;gap:4px}
  nav button {min-height:44px;padding:5px 15px;text-transform:uppercase;letter-spacing:.04em;font-size:.94rem}
  :root[data-world] body>main {margin:9px clamp(22px,3vw,60px) 25px calc(var(--rail) + 52px)}
  .guild-collection .grid:not(.guild-list) {grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
}
@media(min-width:1540px) {
  .guild-collection .grid:not(.guild-list) {grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media(max-width:899px){
  :root[data-world] body>main {margin:0 12px 83px}
  body>header {padding:9px 12px 5px}
  nav {position:fixed;left:0;right:0;bottom:0;padding:4px 5px max(5px,env(safe-area-inset-bottom));gap:3px;background:linear-gradient(transparent,#101014de)}
  nav button {min-height:48px;display:grid;align-content:center;justify-items:center;gap:3px;font-size:.74rem}
  nav .guild-secondary {display:none}
  nav .guild-more {display:grid}
  .guild-collection .grid:not(.guild-list){grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
}
@media(max-width:600px){
  :root[data-world="campamento"],#dialog[data-detail-world="campamento"]{--world-art:url(guild/mundos/campamento-mobile.webp)}
  :root[data-world="campamento"] .world-backdrop {background-position:center,center 65%}
  .guild-actions {justify-content:flex-end}
  .guild-theme select {max-width:144px}
}
@media(prefers-contrast:more) {
  :root[data-world] {--scene-plate:rgb(var(--world-panel))}
  .world-backdrop::after {background:#0007}
  nav button::after {background:rgb(var(--world-nav))}
}
:root[data-scene-contrast="high"] {--scene-plate:rgb(var(--world-panel))}
:root[data-scene-contrast="high"] .world-backdrop::after {background:#0008}
:root[data-scene-contrast="high"] nav button::after {background:rgb(var(--world-nav))}
#reset-demo-sample {margin-top:14px}
