/* DeepSeeIn look for the learning games (DeepSeeInvestigate, DeepSeeFort).
   Loaded after the game's own style.css. It changes only type, colour, surfaces and spacing to match the
   DeepSeeIn app: Wix Madefor, calm paper, navy and sky blue, hairline borders, 4-px rhythm. No game logic,
   layout or content depends on it; delete this file and the game looks as it was made. */
@font-face { font-family: 'Wix Madefor Display'; src: url('/assets/fonts/WixMadeforDisplay.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Wix Madefor Text'; src: url('/assets/fonts/WixMadeforText.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --ds-brand: #123F63; --ds-brand-2: #1F78B8; --ds-brand-3: #E4F1FA; --ds-coral: #E4572E;
  --ds-bg: #FCFAF5; --ds-wall: #F3EFE6; --ds-panel: #FFFFFF; --ds-line: #E6E0D2;
  --ds-ink: #0F1E26; --ds-ink-2: #4A5A63; --ds-muted: #6B7880;
  --ds-font: 'Wix Madefor Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --ds-display: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  /* the games' own variables, pointed at the DeepSeeIn palette */
  --ink: var(--ds-ink); --muted: var(--ds-muted); --line: var(--ds-line); --paper: var(--ds-bg);
  --accent: var(--ds-coral); --blue: var(--ds-brand-2); --wash: var(--ds-wall);
  font-family: var(--ds-font); color: var(--ds-ink); background: var(--ds-bg);
}
html, body { background: var(--ds-bg); }
body { font-family: var(--ds-font); color: var(--ds-ink); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font-family: var(--ds-font); }
a { color: var(--ds-brand-2); }
a:hover { color: var(--ds-brand); }

/* type: Display for headings, sentence case, no wide tracking */
h1, h2, h3, .wordtitle, .brand { font-family: var(--ds-display); color: var(--ds-ink); }
h1 { font-weight: 600; letter-spacing: -.02em; }
h2 { font-weight: 600; letter-spacing: -.01em; }
h3 { font-weight: 600; letter-spacing: 0; }
.eyebrow, .section-label { font-family: var(--ds-font); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ds-muted); font-weight: 500; }
.lead { color: var(--ds-ink-2); }
small, .small, .muted { color: var(--ds-muted); }

/* the app bar and footer the DeepSeeIn products share */
.ds-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 12px max(24px, calc((100vw - 1200px) / 2)); background: var(--ds-bg); border-bottom: 1px solid var(--ds-line); }
.ds-bar .ds-vv img { display: block; width: 36px; height: 36px; }
.ds-word { font-family: var(--ds-display); font-weight: 700; font-size: 22px; color: var(--ds-brand); text-decoration: none; letter-spacing: -.01em; line-height: 1; }
.ds-word i { font-style: normal; color: var(--ds-coral); }
.ds-word:hover { color: var(--ds-brand); }
.ds-bar .ds-sp { flex: 1; }
.ds-bar .ds-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--ds-brand-3); color: var(--ds-brand); font-weight: 600; font-size: 13px; text-decoration: none; }
.ds-bar .ds-btn:hover { background: #d6e9f6; }
.ds-bar .ds-btn svg { width: 16px; height: 16px; }
.ds-foot { max-width: 1200px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--ds-line); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 12.5px; color: var(--ds-muted); }
.ds-foot a { color: var(--ds-muted); }

/* the game's own title bar sits under the app bar, on the same paper */
body > header { max-width: 1200px; padding: 16px 24px; margin: 0 auto; background: transparent; border-bottom: 1px solid var(--ds-line); gap: 16px; }
body > header p { color: var(--ds-ink-2); font-size: 14px; }
.brand { font-size: 22px; font-weight: 700; color: var(--ds-brand); letter-spacing: -.01em; }
.brandmark { color: var(--ds-coral); font-size: 32px; }
.edition { color: var(--ds-muted); font-size: 12.5px; border-left-color: var(--ds-line); }
.wordtitle { font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--ds-brand); }
.wordtitle:after { background: var(--ds-line); }
main { max-width: 1200px; padding: 32px 24px 64px; }

/* controls: hairline buttons, one blue primary pill */
button { border-color: var(--ds-line); border-radius: 12px; background: var(--ds-panel); color: var(--ds-ink); transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
button:hover:not(:disabled) { border-color: color-mix(in srgb, var(--ds-brand-2) 45%, var(--ds-line)); background: #FAFCFE; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2.5px solid #F2A541; outline-offset: 2px; }
.primary { background: var(--ds-brand-2); border-color: var(--ds-brand-2); color: #fff; border-radius: 999px; font-weight: 600; }
.primary:hover:not(:disabled) { background: var(--ds-brand); border-color: var(--ds-brand); color: #fff; }
.quiet { background: transparent; color: var(--ds-brand-2); }
.pill { border-color: var(--ds-line); background: var(--ds-panel); color: var(--ds-ink-2); border-radius: 999px; }
.steps span { background: var(--ds-wall); color: var(--ds-ink-2); border-radius: 999px; }

/* surfaces: white cards on paper, 14-px corners, hairlines */
.plan, .scene, .scene-panel, .roomtile, .clue, .option, .building-card, .mission-card, .observation, .journal, .journalentry, .feedback, .completion, .resume, .side, .card-copy, .summary, .illustrated-plan, .intro-scene .art {
  border-color: var(--ds-line); border-radius: 14px;
}
.building-card, .mission-card, .roomtile, .clue, .plan, .scene, .scene-panel, .illustrated-plan { background: var(--ds-panel); overflow: hidden; }
.resume { background: var(--ds-brand-3); border: 1px solid color-mix(in srgb, var(--ds-brand-2) 22%, var(--ds-line)); border-radius: 14px; }
.context { border-left: 0; padding-left: 0; }   /* no coloured side stripes anywhere */
.feedback { border: 1px solid color-mix(in srgb, var(--ds-brand-2) 22%, var(--ds-line)); border-radius: 14px; }
.feedback.warning { border-color: #E9D9B5; }
.metrics { border-top-color: var(--ds-line); }
.mission-card .enter, .enter { color: var(--ds-brand-2); }
.map-label { font-family: var(--ds-font); }

@media (max-width: 640px) {
  .ds-bar { padding: 8px 16px; }
  body > header { padding: 12px 16px; }
  main { padding: 24px 16px 48px; }
  .ds-word { font-size: 20px; }
}

/* headings the games set in their own faces (Georgia, Calibri) take the DeepSeeIn display face */
.hero h1, .casehead h1, .sectionhead h2, .collection-intro h1, .building-info h2 { font-family: var(--ds-display); font-weight: 600; letter-spacing: -.02em; }
.building-info h2 span { font-family: var(--ds-font); }
svg text { font-family: var(--ds-font); }
.mission-card h3, .scene-heading h2, .mission-heading h2 { font-weight: 600; }
.wordtitle:after { display: none; }

/* each game's own mark: the app icon from the Products page (same glyph, same colour) and the DeepSee wordmark */
.gt { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.gt .g-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c)); box-shadow: 0 8px 16px -10px var(--c), inset 0 1px 0 rgba(255,255,255,.35); }
.gt .g-ic svg { width: 22px; height: 22px; }
.gt .g-word { font-family: var(--ds-display); font-weight: 700; font-size: 24px; letter-spacing: -.01em; color: var(--ds-brand); line-height: 1; white-space: nowrap; }
.gt .g-word .sfx { color: var(--ds-coral); }
.brand.gt { padding: 0; border: 0; background: none; }
.brand.gt:hover { background: none; }
.brand.gt .edition { font-family: var(--ds-font); font-size: 13px; font-weight: 400; color: var(--ds-muted); border-left: 1px solid var(--ds-line); padding-left: 12px; margin-left: 4px; }
.wordtitle.gt { font-size: inherit; letter-spacing: 0; line-height: 1; }
.g-sub { color: var(--ds-ink); font-weight: 500; }
.art, .art-frame, .intro-scene > span { background: transparent; }

/* 26.11.02.01.03.03: the bar every DeepSeeIn product has: Exit <product>, Products, Sign out and the profile button
   (or Sign in), filled in by /js/ds-bar.js from the app's own sign-in in this browser */
.ds-acts { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ds-bar .ds-btn.ds-exit, .ds-bar .ds-btn.ds-out { background: var(--ds-panel); color: var(--ds-ink); border: 1px solid var(--ds-line); }
.ds-bar .ds-btn.ds-exit:hover, .ds-bar .ds-btn.ds-out:hover { background: #FAFCFE; border-color: color-mix(in srgb, var(--ds-brand-2) 45%, var(--ds-line)); }
.ds-bar .ds-btn.ds-exit { max-width: 260px; }
.ds-bar .ds-btn .ds-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-bar .ds-btn.primary { background: var(--ds-brand); color: #fff; }
.ds-bar .ds-btn.primary:hover { background: var(--ds-brand-2); }
.ds-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--ds-brand); color: #fff; font: 600 13px/1 var(--ds-font); text-decoration: none; border: 2px solid var(--ds-panel); box-shadow: 0 0 0 1px var(--ds-line); }
.ds-dot:hover { color: #fff; box-shadow: 0 0 0 2px var(--ds-brand-2); }
.ds-dot img { width: 100%; height: 100%; object-fit: cover; }
.ds-dot svg { width: 18px; height: 18px; }
.ds-foot a:hover { color: var(--ds-brand); }
@media (max-width: 760px) {
  .ds-bar .ds-btn.ds-exit .ds-lbl, .ds-bar .ds-btn.ds-prod .ds-lbl, .ds-bar .ds-btn.ds-out .ds-lbl { display: none; }
  .ds-bar .ds-btn.ds-exit, .ds-bar .ds-btn.ds-prod, .ds-bar .ds-btn.ds-out { padding: 8px 10px; }
  .ds-acts { gap: 6px; }
  .ds-bar { gap: 8px; }
  .ds-dot { width: 34px; height: 34px; }
  .ds-bar .ds-vv img { width: 32px; height: 32px; }
}
