:root {
  color-scheme: dark;
  --page-ink: #edf2f7;
  --page-muted: #b7c5d2;
  --page-soft: #8fa5b8;
  --page-violet: #b884d1;
  --page-line: rgba(137, 166, 190, .28);
  --page-surface: #0d1826;
  --page-surface-deep: #070d17;
  --page-serif: Georgia, "Times New Roman", serif;
  --page-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: #070c14; scroll-behavior: smooth; overflow-anchor: none; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--page-ink);
  background: #070c14;
  font-family: var(--page-sans);
}

a { color: inherit; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.game-page { overflow: hidden; }

.game-hero {
  position: relative;
  min-height: clamp(530px, 64vw, 700px);
  display: grid;
  align-items: center;
  isolation: isolate;
  border-bottom: 1px solid var(--page-line);
  background: var(--page-surface-deep);
}

.game-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: var(--hero-image);
  background-position: var(--hero-position, 76% center);
  background-size: cover;
  content: "";
}

.game-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 14, .99) 0%, rgba(3, 8, 14, .96) 35%, rgba(3, 8, 14, .62) 58%, rgba(3, 8, 14, .12) 100%),
    linear-gradient(180deg, rgba(8, 16, 27, .05), rgba(8, 16, 27, .4));
  content: "";
}

.hero-inner,
.page-section {
  width: min(1240px, calc(100% - clamp(40px, 8vw, 128px)));
  margin-inline: auto;
}

.hero-copy { width: min(680px, 58%); padding: clamp(70px, 9vw, 120px) 0; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 38px;
  color: #a6bacb;
  font-size: .82rem;
}

.breadcrumbs a { color: #c5d3df; text-decoration: none; }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.game-label {
  margin: 0 0 16px;
  color: var(--label-color, #b884d1);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3 { text-wrap: balance; }

h1 {
  max-width: 820px;
  margin: 0;
  font: 600 clamp(3rem, 6.5vw, 6.25rem)/.94 var(--page-serif);
  letter-spacing: -.035em;
}

.hero-summary {
  max-width: 700px;
  margin: 30px 0 0;
  color: #cad5df;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.hero-status { margin: 22px 0 0; color: #d9e4ec; font-weight: 700; }
.hero-status[data-state="online"] { color: #8fc7b4; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid rgba(184, 132, 209, .72);
  background: rgba(122, 42, 138, .86);
  color: #fff;
  font-weight: 760;
  text-decoration: none;
}
.button:hover, .button:focus-visible { background: #9442a6; }
.button.secondary { border-color: rgba(173, 193, 210, .48); background: rgba(8, 16, 28, .7); }
.button.secondary:hover, .button.secondary:focus-visible { border-color: #cad6e1; background: #142437; }

.page-section { padding-block: clamp(64px, 8vw, 110px); }
.page-section + .page-section { border-top: 1px solid var(--page-line); }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading p { margin: 0 0 10px; color: var(--page-violet); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font: 600 clamp(2.15rem, 4.5vw, 4rem)/1 var(--page-serif); }
.section-heading span { display: block; margin-top: 15px; color: var(--page-muted); line-height: 1.7; }

.play-frame {
  width: min(100%, 1120px);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(152, 178, 199, .36);
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38);
}
.play-frame iframe { width: 100%; height: 100%; border: 0; }
.tale-player {
  aspect-ratio: auto;
  height: clamp(1320px, 112vw, 1560px);
}
.oracle-player { aspect-ratio: 10 / 9; }

.overview-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .7fr); gap: clamp(42px, 7vw, 90px); }
.prose { color: var(--page-muted); font-size: 1rem; line-height: 1.82; }
.prose p { margin: 0 0 1.35em; }
.prose strong { color: var(--page-ink); }
.prose h3 { margin: 42px 0 12px; color: var(--page-ink); font: 600 1.55rem/1.2 var(--page-serif); }
.prose ul { padding-left: 20px; }

.game-facts { margin: 0; border-top: 1px solid var(--page-line); }
.game-facts div { padding: 17px 0; border-bottom: 1px solid var(--page-line); }
.game-facts dt { color: var(--page-soft); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.game-facts dd { margin: 7px 0 0; color: var(--page-ink); line-height: 1.55; }

.save-note { margin-top: 28px; padding: 22px 0; border-block: 1px solid var(--page-line); color: #c7d4df; line-height: 1.7; }
.save-note strong { color: #fff; }

.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--page-line); border: 1px solid var(--page-line); }
.feature { min-height: 230px; padding: clamp(28px, 4vw, 48px); background: #0a1421; }
.feature h3 { margin: 0 0 16px; font: 600 1.55rem var(--page-serif); }
.feature p { margin: 0; color: var(--page-muted); line-height: 1.72; }

.manual-shelf {
  position: relative;
  min-height: 370px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 34px;
  padding: 34px clamp(26px, 5vw, 56px) 58px;
  border-top: 1px solid var(--page-line);
  background: linear-gradient(180deg, rgba(15, 29, 45, .42), rgba(7, 14, 24, .82));
}
.manual-shelf::after {
  position: absolute;
  right: 3%;
  bottom: 28px;
  left: 3%;
  height: 18px;
  border: 1px solid rgba(150, 132, 177, .46);
  background:
    linear-gradient(rgba(24, 32, 43, .12), rgba(8, 12, 18, .32)),
    url("assets/metal-texture.webp") center / cover;
  box-shadow: 0 18px 26px rgba(0, 0, 0, .42), 0 1px 0 rgba(217, 203, 235, .16) inset;
  content: "";
}
.manual-volume, .manual-link { position: relative; z-index: 1; }
.manual-volume { width: 180px; display: grid; gap: 10px; padding: 0; border: 0; color: #dbe5ed; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.manual-volume img { width: 180px; height: 240px; object-fit: cover; border: 1px solid rgba(199, 214, 226, .34); box-shadow: 0 14px 28px rgba(0, 0, 0, .38); transition: transform 180ms ease, border-color 180ms ease; }
.manual-volume span { font-weight: 700; }
.manual-volume:hover img, .manual-volume:focus-visible img { border-color: #d6b0e1; transform: translateY(-4px); }
.manual-link { width: 180px; display: grid; gap: 10px; color: #dbe5ed; text-decoration: none; }
.manual-link img { width: 180px; height: 240px; object-fit: cover; border: 1px solid rgba(199, 214, 226, .34); box-shadow: 0 14px 28px rgba(0, 0, 0, .38); }
.manual-link span { font-weight: 700; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery button { padding: 0; overflow: hidden; border: 1px solid var(--page-line); background: #08111d; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.035); }

/* The gallery's picture lightbox (call outs 411 and 1139): the forums' viewer look, this page's own copy. The picture large
   on a dark backdrop, the count and the Zoom, Download and Close buttons above it, Previous and Next at its sides. */
.image-viewer { position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: transparent; color: #f3ead2; touch-action: pinch-zoom; }
.image-viewer[open] { display: grid; place-items: center; }
.image-viewer::backdrop { background: rgba(2, 4, 12, .9); }
.image-viewer-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; width: min(100%, 1200px); height: 100%; margin: 0 auto; padding: 8px 12px 12px; }
.image-viewer-bar { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.image-viewer-count { margin-right: auto; padding-left: 4px; color: #a5aecb; font-size: 13px; }
.image-viewer-tool { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 9px; border: 1px solid rgba(255, 236, 190, .22); background: #1a2140; color: #f3ead2; font-size: 24px; line-height: 1; text-decoration: none; cursor: pointer; }
.image-viewer-tool[hidden] { display: none; }
.image-viewer-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.image-viewer-tool:hover, .image-viewer-tool[aria-pressed="true"] { border-color: rgba(227, 197, 106, .7); color: #e3c56a; }
.image-viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.image-viewer-frame { max-width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.image-viewer-frame img { display: block; max-width: 100%; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); background: #0b0f22; }
.image-viewer:not(.zoomed) .image-viewer-frame img { cursor: zoom-in; }
.image-viewer.zoomed .image-viewer-stage { align-items: stretch; }
.image-viewer.zoomed .image-viewer-frame { display: block; width: 100%; height: calc(100vh - 68px); height: calc(100dvh - 68px); overflow: auto; cursor: grab; touch-action: none; }
.image-viewer.zoomed .image-viewer-frame img { max-width: none; max-height: none; margin: 0 auto; border-radius: 0; }
.image-viewer-step { position: absolute; top: 50%; z-index: 1; width: 44px; height: 60px; margin-top: -30px; padding: 0; border-radius: 10px; border: 1px solid rgba(255, 236, 190, .25); background: #1a2140; color: #f3ead2; font-size: 30px; line-height: 1; cursor: pointer; }
.image-viewer-step[data-lightbox="prev"] { left: 4px; }
.image-viewer-step[data-lightbox="next"] { right: 4px; }
.image-viewer-step:hover { border-color: rgba(227, 197, 106, .7); }
.image-viewer.single .image-viewer-step { display: none; }
.image-viewer button:focus-visible, .image-viewer a:focus-visible { outline: 2px solid #e3c56a; outline-offset: 2px; }
@media (max-width: 760px) {
  .image-viewer-panel { padding: 6px 6px 10px; }
  .image-viewer-tool { width: 36px; height: 36px; }
  .image-viewer-step { width: 36px; height: 52px; margin-top: -26px; font-size: 26px; }
  .image-viewer-frame img { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); }
}

/* Share the adventure (call outs 587 and 1094): one compact band, the words on the left and the five ways to share on the
   right, all five the same size (solid, softly rounded, never pills). More opens the Activity feed's share box: campfire.css
   .cf-share with its values exactly (the game pages' own copy, .gp-share below) */
.player-response { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 56px); }
.player-response.page-section { padding-block: clamp(30px, 3.6vw, 44px); }
.share-copy { min-width: 0; }
.response-heading { margin: 0 0 8px; color: var(--page-violet); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.player-response h2 { margin: 0; font: 600 clamp(1.45rem, 2.3vw, 2.05rem)/1.15 var(--page-serif); }
.share-actions { flex-shrink: 0; display: grid; gap: 8px; }
.share-buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 104px)); gap: 8px; }
.share-option { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(184, 132, 209, .72); border-radius: 6px; background: #7c2a8a; color: #fff; font-size: .86rem; font-weight: 760; white-space: nowrap; cursor: pointer; }
.share-option:hover, .share-option:focus-visible { background: #9442a6; }
.share-option:focus-visible { outline: 2px solid #f3dc8a; outline-offset: 2px; }
.share-icon { width: 20px; height: 20px; flex-shrink: 0; display: grid; place-items: center; border-radius: 5px; background: rgba(255, 255, 255, .16); color: #fff; font: 800 12px/1 "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; font-style: normal; }
.share-option[data-share-to="facebook"] .share-icon { background: #1877f2; }
.share-option[data-share-to="x"] .share-icon { background: #000; box-shadow: inset 0 0 0 1px #555; }
.share-option[data-share-to="reddit"] .share-icon { background: #ff4500; }
.response-message { min-height: 1.4em; margin: 0; color: var(--page-muted); font-size: .82rem; line-height: 1.4; text-align: right; }
.gp-share { width: min(420px, calc(100vw - 32px)); padding: 16px; border: 1px solid rgba(227, 197, 106, .45); border-radius: 14px; background: linear-gradient(180deg, #1e2650, #11163a); color: #d6dcf0; box-shadow: 0 24px 60px rgba(0, 0, 0, .7); font: 15px/1.5 "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; }
.gp-share::backdrop { background: rgba(3, 5, 14, .72); }
.gp-share button { font: inherit; cursor: pointer; }
.gp-share-top { display: flex; justify-content: space-between; align-items: center; }
.gp-share-top h2 { margin: 0; font: 700 18px/1.2 "Fraunces", Georgia, serif; color: #f3ead2; letter-spacing: normal; text-transform: none; }
.gp-share-x { width: 34px; height: 34px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .06); color: #f3ead2; font-size: 18px; }
.gp-share-x:hover { background: rgba(227, 197, 106, .2); }
.gp-share-link { display: flex; gap: 8px; margin: 12px 0; }
.gp-share-link input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(255, 236, 190, .16); background: rgba(4, 6, 16, .55); color: #d6dcf0; font: inherit; font-size: 13px; }
.gp-share-btn { padding: 8px 15px; border-radius: 9px; border: 0; background: linear-gradient(180deg, #f2d98a, #c8a84b); color: #1d1404; font-weight: 700; }
.gp-share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gp-share .gp-share-to { display: grid; justify-items: center; gap: 5px; padding: 8px 0; border-radius: 10px; border: 1px solid rgba(255, 236, 190, .12); background: rgba(255, 255, 255, .03); color: #d6dcf0; font-size: 12.5px; text-decoration: none; cursor: pointer; }
.gp-share .gp-share-to:hover, .gp-share .gp-share-to:focus-visible { border-color: rgba(227, 197, 106, .55); color: #f3ead2; outline: none; }
.gp-share-to i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 800 17px "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; font-style: normal; }
.gp-share-to[data-to="facebook"] i { background: #1877f2; } .gp-share-to[data-to="x"] i { background: #000; border: 1px solid #444; }
.gp-share-to[data-to="reddit"] i { background: #ff4500; } .gp-share-to[data-to="bluesky"] i { background: #1185fe; }
.gp-share-to[data-to="whatsapp"] i { background: #25d366; } .gp-share-to[data-to="discord"] i { background: #5865f2; }
.gp-share-to[data-to="email"] i { background: #6b7280; } .gp-share-to[data-to="device"] i { background: #3a3f5c; }
.gp-share-done { min-height: 1.4em; margin: 10px 0 0; color: #e3c56a; font-size: 13px; }

/* If you enjoyed this game, you may like (call out 587): the homepage's game cards (transition.css .game-card with
   home.css .home-grid), four in a row. The four places are drawn with the page at the cards' exact size, so the cards
   drop in without moving anything. */
.more-games-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.more-card { position: relative; height: 236px; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; border: 1px solid rgba(186, 205, 230, .24); border-radius: 18px; background: linear-gradient(155deg, rgba(31, 44, 74, .7), rgba(10, 15, 30, .62)); box-shadow: 0 18px 42px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .07); color: #f8fafc; text-decoration: none; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
a.more-card:hover, a.more-card:focus-visible { border-color: rgba(248, 199, 107, .66); box-shadow: 0 22px 52px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .12); transform: translateY(-3px); outline: none; }
.more-card-media { position: relative; overflow: hidden; background: #080d1c; }
.more-card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.76) saturate(.88); transition: transform 280ms ease; }
a.more-card:hover .more-card-media > img, a.more-card:focus-visible .more-card-media > img { transform: scale(1.035); }
.more-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(5, 10, 20, .48)); }
.more-card-copy { position: relative; z-index: 1; display: grid; gap: 4px; padding: 11px 13px 13px; background: linear-gradient(145deg, rgba(23, 36, 58, .98), rgba(13, 23, 39, .98)); }
.more-card-copy strong { min-width: 0; min-height: 1.3em; overflow: hidden; font-size: 1rem; font-weight: 600; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.more-card-copy small { display: -webkit-box; height: 2.8em; overflow: hidden; color: #cbd5e1; font-size: .8rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
@media (max-width: 980px) {
  .more-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .more-games-grid { grid-template-columns: 1fr; }
}

.mobile-game-notice { display: none; }

.shell-embedded body { background: transparent; }

@media (max-width: 980px) {
  .game-hero { align-items: end; padding-top: min(42vw, 330px); }
  .game-hero::before { background-position: var(--hero-position-tablet, center 18%); background-size: auto min(56vw, 480px); background-repeat: no-repeat; }
  .game-hero::after { background: linear-gradient(180deg, rgba(3, 8, 14, .08) 0, rgba(3, 8, 14, .5) 30%, rgba(3, 8, 14, .98) 58%, #03080e 100%); }
  .hero-copy { width: 100%; padding: 40px 0 72px; }
  .breadcrumbs { margin-bottom: 26px; }
  .overview-layout { grid-template-columns: 1fr; }
  .game-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .game-facts div:nth-child(odd) { padding-right: 24px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-response { align-items: stretch; flex-direction: column; }
  .share-buttons { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .response-message { text-align: left; }
}

@media (max-width: 700px) {
  .game-page { display: none; }
  .mobile-game-notice {
    min-height: 100vh;
    display: grid;
    align-content: center;
    padding: 42px 24px;
    background:
      linear-gradient(rgba(4, 10, 19, .65), rgba(4, 10, 19, .96)),
      url("../assets/crossroads-fantasy.webp") 68% top / auto 100% no-repeat;
  }
  .mobile-game-notice > div { width: min(100%, 560px); margin: 0 auto; }
  .mobile-game-notice p:first-child { color: #c6b6df; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .mobile-game-notice h1 { margin: 10px 0 20px; font-size: clamp(2.6rem, 13vw, 4rem); }
  .mobile-game-notice p { color: #d3dce7; line-height: 1.72; }
  .mobile-actions { display: grid; gap: 12px; margin-top: 28px; }
  .mobile-playable .game-page { display: block; }
  .mobile-playable .mobile-game-notice { display: none; }
  .mobile-playable .game-hero { min-height: 520px; }
  .mobile-playable .hero-copy { width: 100%; padding: 64px 0; }
  .mobile-playable .play-frame { aspect-ratio: auto; height: 76vh; min-height: 620px; }
  .mobile-playable .tale-player { height: 1480px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}

/* Space glass inside the site (approved 30 Sep 2026): the page opens up to the site's stars and every panel is the same dark glass. Only inside the site shell. */
html.shell-embedded {
  --sg-glass: linear-gradient(160deg, rgba(14, 20, 40, .78), rgba(6, 10, 22, .74));
  --sg-line: rgba(255, 236, 190, .12);
  --sg-radius: 22px;
  --sg-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
}
html.shell-embedded,
html.shell-embedded body { background: transparent; }
html.shell-embedded .game-page .page-section { width: min(1320px, calc(100% - 48px)); margin: 26px auto; padding: clamp(24px, 3vw, 40px); background: var(--sg-glass); border: 1px solid var(--sg-line); border-radius: var(--sg-radius); box-shadow: var(--sg-shadow); box-sizing: border-box; }
html.shell-embedded .feature,
html.shell-embedded .gallery button { background: rgba(10, 18, 34, .55); }
html.shell-embedded .feature-list { background: var(--sg-line); }
