/* world/css/guide.css - THE GUIDE (world/guide.html), on top of world.css: the same night, gold and side colours, laid
 * out as a long read. No script and no inline style: the header is solid from the start, and nothing waits to be
 * revealed. Phone first: one column and 16px gutters, no horizontal scroll; two columns from 900px.
 */

.guide .bar { background: rgba(7, 11, 30, 0.86); }
.bar__back {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 231, 160, .35); background: rgba(10, 14, 40, .55); color: #fff; text-decoration: none; font-size: 14px; font-weight: bold; white-space: nowrap;
  transition: border-color .2s, background .2s;
}
.bar__back:hover { border-color: var(--gold); background: rgba(30, 36, 80, .7); }
.bar__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 760px) { .bar__back { margin-left: 18px; } }

/* ---------------------------------------------------------------------------------------------- the cover */
.cover {
  position: relative; display: grid; align-items: end; min-height: 82vh; min-height: 82svh; overflow: hidden; isolation: isolate;
  padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter) 56px;
}
.cover__art { position: absolute; inset: 0; z-index: -2; background: url("../../assets/backgrounds/painted/web/splash-key-art.jpg") 62% 40% / cover no-repeat; }
.cover__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 11, 30, .6) 0%, rgba(7, 11, 30, .15) 28%, rgba(7, 11, 30, .55) 62%, var(--ink) 100%),
    radial-gradient(80% 60% at 20% 80%, rgba(5, 8, 26, .7), transparent 70%);
}
.cover__copy { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.cover .hero__kicker { justify-content: flex-start; }
.cover .hero__kicker .rule:first-child { display: none; }
.cover__title {
  margin: 0; font-family: var(--title-font); font-weight: bold; line-height: .95; font-size: clamp(22px, 3.2vw, 34px); font-style: italic; color: var(--parchment);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .8));
}
.cover__title span {
  display: block; font-style: normal; font-size: clamp(52px, 10vw, 128px); letter-spacing: .05em; text-transform: uppercase;
  background: linear-gradient(180deg, #FFF8DC 0%, #FFE7A0 30%, #F5C242 58%, #C68A1C 78%, #FFE39A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.cover__lead { max-width: 38em; margin: 18px 0 0; font-size: clamp(16px, 1.7vw, 20px); color: #ECE6FF; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.cover__chapters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cover__chapters a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px 8px 10px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: bold; letter-spacing: .04em; color: #fff; background: rgba(12, 16, 44, .6); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s, background .2s;
}
.cover__chapters a:hover { border-color: var(--gold-hi); background: rgba(24, 30, 72, .75); }
.cover__chapters b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; font-family: var(--title-font); font-size: 13px; color: #2A1703; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }

/* ---------------------------------------------------------------------------------------------- chapters */
.chapter { position: relative; padding: 64px var(--gutter); isolation: isolate; }
.chapter > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter--story::before, .chapter--herd::before, .chapter--horde::before, .chapter--mercs::before, .chapter--games::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; max-width: none;
}
.chapter--story::before { background: radial-gradient(50% 40% at 50% 0%, rgba(92, 70, 190, .22), transparent 70%); }
.chapter--herd { --accent: var(--candy-pink); }
.chapter--herd::before { background: radial-gradient(45% 35% at 10% 10%, rgba(255, 143, 199, .14), transparent 70%); }
.chapter--horde { --accent: var(--toxic-green); }
.chapter--horde::before { background: radial-gradient(45% 35% at 90% 10%, rgba(107, 224, 74, .12), transparent 70%), #080C1A; }
.chapter--mercs { --accent: var(--gold); }
.chapter--mercs::before { background: radial-gradient(50% 40% at 50% 0%, rgba(245, 194, 66, .1), transparent 70%); }
.chapter--games::before { background: radial-gradient(50% 30% at 50% 0%, rgba(92, 70, 190, .2), transparent 70%); }

.tag { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; font-size: 11px; letter-spacing: .2em; vertical-align: 2px; color: #0B1233; }
.tag--def { background: var(--candy-pink); }
.tag--off { background: var(--toxic-green); }

.sub { margin: 48px auto 8px; font-family: var(--title-font); font-size: clamp(24px, 3vw, 32px); line-height: 1.15; color: #fff; text-align: center; }
.sub--left { margin: 0 0 10px; text-align: left; }
.sub__lead { max-width: 44em; margin: 0 auto 22px; text-align: center; color: var(--muted); }
.note { max-width: 52em; margin: 30px auto 0; padding: 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: #E3E0F5; }
.note b { color: var(--gold-hi); }
.note a { color: var(--gold-hi); }

/* the story */
.prose { max-width: 44em; margin: 0 auto; font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.7; color: #E6E2F8; }
.prose p { margin: 0 0 1.1em; }
.prose__drop::first-letter { float: left; margin: .06em .12em 0 0; font-family: var(--title-font); font-size: 3.6em; line-height: .8; color: var(--gold); }
.prose__sign { font-family: var(--title-font); font-style: italic; font-size: 1.15em; color: var(--gold-hi); text-align: center; }

.gods { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .gods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .gods { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
.god {
  --g: var(--gold); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 12px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid color-mix(in srgb, var(--g) 30%, transparent);
}
.god img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; box-shadow: 0 0 0 2px var(--g), 0 0 22px color-mix(in srgb, var(--g) 45%, transparent); }
.god b { font-family: var(--title-font); font-size: 16px; line-height: 1.2; color: #fff; }
.god i { font-size: 12px; color: var(--g); line-height: 1.3; }
.god span { margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.god--hollow { --g: #6BE04A; } .god--swarm { --g: #A78BFA; } .god--tyrant { --g: #8C93B8; } .god--sump { --g: #3FA02C; } .god--widow { --g: #F5B98A; }
.god--hush { --g: #F5C242; } .god--choir { --g: #C9A8F5; } .god--bell { --g: #B4F0E9; } .god--map { --g: #FBF3E7; } .god--ember { --g: #F97C3C; }

/* two sides */
.sides { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 860px) { .sides { grid-template-columns: 1fr auto 1fr; gap: 20px; } }
.side {
  --s: var(--candy-pink); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border-radius: 22px; overflow: hidden; isolation: isolate;
  color: #fff; text-decoration: none; border: 1px solid color-mix(in srgb, var(--s) 45%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 40px color-mix(in srgb, var(--s) 14%, transparent); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.side::before { content: ""; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .5; }
.side::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 11, 30, .55), rgba(7, 11, 30, .92)); }
.side--herd::before { background-image: url("../../assets/backgrounds/painted/web/room-village.jpg"); }
.side--horde { --s: var(--toxic-green); }
.side--horde::before { background-image: url("../../assets/backgrounds/painted/web/splash-evil.jpg"); }
.side:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 50px color-mix(in srgb, var(--s) 26%, transparent); }
.side__role { align-self: flex-start; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: bold; letter-spacing: .3em; text-transform: uppercase; color: #0B1233; background: var(--s); }
.side__name { font-family: var(--title-font); font-weight: bold; font-size: clamp(34px, 5vw, 52px); line-height: 1; }
.side__goal { color: #E6E2F8; font-size: 16.5px; line-height: 1.55; }
.side__coin { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-weight: bold; font-size: 14px; letter-spacing: .06em; color: var(--s); }
.side__coin img { width: 28px; height: 28px; object-fit: contain; }
.sides__vs { align-self: center; justify-self: center; font-family: var(--title-font); font-style: italic; font-size: 26px; color: var(--gold); }

/* a screenshot beside its words */
.feature { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.25fr 1fr; gap: 40px; }
  .feature--flip { grid-template-columns: 1fr 1.25fr; }
  .feature--flip .shot { order: 2; }
}
.feature + .feature, .feature--flip { margin-top: 46px; }
.feature__copy { color: #E6E2F8; font-size: 16.5px; }
.feature__copy > p:first-child { margin-top: 0; }
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .03);
}
.shot figcaption { margin-top: 10px; font-size: 13.5px; color: var(--dim); font-style: italic; }

.points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 26px; line-height: 1.55; }
.points li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; transform: rotate(45deg); background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.points b { color: #fff; }
.points--tight { gap: 8px; font-size: 15.5px; }

/* the portrait rows: card art with a name and a line */
.roster { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .roster { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } }
.roster li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.roster img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; margin-bottom: 6px; background: var(--night-2);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
}
.roster b { font-family: var(--title-font); font-size: 17px; color: #fff; line-height: 1.2; }
.roster i { font-size: 12.5px; font-style: normal; letter-spacing: .04em; color: var(--accent); }
.roster u { text-decoration: none; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #2A1703; background: var(--gold); }
.roster span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* the war machines */
.machines { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .machines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .machines { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.machines li {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .04); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.machines img { width: 96px; height: 128px; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); }
/* the Plague Wagon's card art carries a white mat: the frame crops it to the painting */
.machines .matte { display: block; width: 96px; height: 128px; overflow: hidden; border-radius: 10px; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); }
.machines .matte img { transform: scale(1.66) translateY(2%); box-shadow: none; border-radius: 0; }
.machines div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.machines b { font-family: var(--title-font); font-size: 17px; color: #fff; line-height: 1.2; }
.machines i { font-size: 12.5px; font-style: normal; color: var(--accent); }
.machines span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.machines em { margin-top: 4px; font-size: 13.5px; line-height: 1.45; font-style: normal; color: #fff; }

.dragon, .breach {
  display: grid; gap: 18px; align-items: center; margin-top: 44px; padding: 22px; border-radius: 22px; color: #E6E2F8;
  background: linear-gradient(135deg, rgba(107, 224, 74, .08), rgba(255, 255, 255, .02)); border: 1px solid rgba(107, 224, 74, .25);
}
.dragon p, .breach p { margin: 0; }
@media (min-width: 700px) { .dragon { grid-template-columns: 180px 1fr; gap: 28px; } }
.dragon__art { width: 180px; height: 180px; justify-self: center; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .6)); }

/* the games */
.play { --c: #B07BFF; --c2: #5A1FB0; display: grid; gap: 22px; align-items: center; margin-top: 44px; }
@media (min-width: 900px) {
  .play { grid-template-columns: 1.3fr 1fr; gap: 40px; }
  .play:nth-of-type(even) { grid-template-columns: 1fr 1.3fr; }
  .play:nth-of-type(even) .shot { order: 2; }
}
.play--gate { --c: #3FD98A; --c2: #0E6B3B; }
.play--casino { --c: #FF4D6A; --c2: #8E0F28; }
.play--tenderfoot { --c: #FFA436; --c2: #B8520B; }
.play--tavern { --c: #FFB060; --c2: #8A3A0B; }
.play--chess { --c: #FF4FB8; --c2: #7A1FA0; }
.play .shot img { border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 40px color-mix(in srgb, var(--c) 16%, transparent); }
.play__copy { color: #E6E2F8; font-size: 16px; --accent: var(--c); }
.play__copy > p { margin: 8px 0 0; }
.play__icon { width: 72px; height: 72px; border-radius: 22.37%; box-shadow: 0 10px 24px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .18), 0 0 26px color-mix(in srgb, var(--c) 45%, transparent); }
.play__kind { margin: 14px 0 0; font-size: 12px; font-weight: bold; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 80%, #fff); }
.play__kind i { font-style: normal; opacity: .55; margin: 0 .3em; }
.play__name { margin: 4px 0 0; font-family: var(--title-font); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; color: #fff; }
.play__go {
  display: inline-flex; align-items: center; margin-top: 18px; min-height: 44px; padding: 10px 22px; border-radius: 999px; text-decoration: none;
  font-weight: bold; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 92%, #fff) 0%, var(--c2) 100%); border: 1px solid color-mix(in srgb, var(--c) 60%, #fff);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--c2) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45); text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease);
}
.play__go:hover { transform: translateY(-2px); }
.note--soon { margin-top: 48px; text-align: center; }

/* one world */
.chapter--together { padding-top: 80px; padding-bottom: 90px; overflow: hidden; }
.chapter--together::before {
  content: ""; position: absolute; inset: 0; z-index: -1; max-width: none; opacity: .3;
  background: url("../../assets/backgrounds/painted/web/room-farm-sky.jpg") center 30% / cover no-repeat;
}
.together { text-align: center; }
.together h2 { font-size: clamp(30px, 4.4vw, 50px); }
.together p { max-width: 42em; margin: 16px auto 0; color: #E6E2F8; font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .side, .play__go { transition: none; }
  .side:hover, .play__go:hover { transform: none; }
}
.together .hero__actions { justify-content: center; }
