@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink: #1a1a1a;
  --ink-soft: #3d4a52;
  --surface: #ffffff;
  --deep: #0b3b4a;
  --teal: #14b8a6;
  --cyan: #0e7490;
  --amber: #f59e0b;
  --coral: #f43f5e;
  --sky-top: #bfe9f2;
  --sky-bottom: #f2fbfc;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(11, 59, 74, 0.16);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 62%);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#scene { cursor: grab; transition: opacity 0.35s ease; }
.switching #scene { opacity: 0; }
#scene.looking { cursor: grabbing; }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center; text-align: center;
  background: var(--surface);
  transition: opacity 0.8s ease, visibility 0.8s;
}
.splash.gone { opacity: 0; visibility: hidden; }
/* Switching worlds: hide the splash and show a small loader over the sky until the park is built. */
.world-loader { display: none; }
.switching .splash { opacity: 0; pointer-events: none; }
.switching .world-loader {
  position: fixed; inset: 0; z-index: 31; display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--deep);
}
.world-loader-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); animation: loader-pulse 0.9s ease-in-out infinite alternate; }
@keyframes loader-pulse { from { transform: scale(0.6); opacity: 0.5; } to { transform: scale(1.2); opacity: 1; } }
.splash-inner { padding: 24px; display: grid; justify-items: center; gap: 16px; }
.splash-eyebrow {
  margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; font-size: 12px; color: var(--cyan);
}
.wordmark {
  margin: 0; font-family: var(--display); font-weight: 700; color: var(--deep);
  font-size: clamp(56px, 13vw, 168px); line-height: 0.9; letter-spacing: -0.04em;
  display: flex; flex-direction: column; align-items: center;
}
.wordmark span { font-size: 0.36em; letter-spacing: 0.52em; margin-right: -0.52em; color: var(--teal); margin-top: 0.12em; }
.splash-sub { margin: 0; font-size: 17px; color: var(--ink-soft); }
.enter {
  position: relative; width: 120px; height: 120px; margin-top: 32px;
  border: 0; border-radius: 50%; background: transparent;
  font-family: var(--display); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 14px; color: #be123c;
}
.enter-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--deep); transition: transform 0.3s ease, background 0.3s; }
.enter:not(:disabled):hover .enter-ring { transform: scale(1.08); background: rgba(20, 184, 166, 0.08); }
.enter:disabled { cursor: progress; color: var(--ink-soft); }
.enter:disabled .enter-ring { border-style: dashed; animation: spin 6s linear infinite; }
.enter-label { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
.splash-hire { margin: 0; font-weight: 700; font-size: 15px; }
.splash-hire a { color: var(--deep); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hud-btn.hud-hire { background: var(--deep); color: #fff; white-space: nowrap; }
.hud-hire .short { display: none; }
.hud-btn.hud-hire:hover { background: #0e4d60; }
.splash-alt { margin: 24px 0 0; font-size: 14px; color: var(--ink-soft); }
.linkish { background: none; border: 0; padding: 0; color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(16px, env(safe-area-inset-top)) 20px 0;
  pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud-mark {
  background: none; border: 0; padding: 4px 0; text-align: left;
  font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em;
  color: var(--deep); line-height: 1; display: flex; flex-direction: column;
}
.hud-mark span { font-size: 9px; letter-spacing: 0.62em; color: var(--teal); margin-top: 3px; }
.hud-actions { display: flex; gap: 8px; }
.hud-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow);
  font-weight: 700; font-size: 14px; color: var(--deep); backdrop-filter: blur(8px);
}
.hud-btn svg { width: 20px; height: 20px; }
.hud-icon { padding: 0; width: 44px; justify-content: center; }
.hud-icon .cross { display: none; }
.hud-icon.muted .wave { display: none; }
.hud-icon.muted .cross { display: inline; }
.hud-icon.muted { color: var(--ink-soft); }
.hud-btn:hover { background: #fff; }
.hud-btn.bump { animation: bump 0.6s ease; }
@keyframes bump { 40% { transform: scale(1.14); } }

/* ---------- Floating labels ---------- */
.labels { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.label {
  position: absolute; left: 0; top: 0; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 8px 12px 8px 8px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, 0.94); box-shadow: 0 6px 16px rgba(11, 59, 74, 0.18);
  font-weight: 700; font-size: 13px; color: var(--deep);
  transform-origin: 50% 100%; will-change: transform, opacity;
  transition: background 0.2s;
}
.label:hover { background: #fff; }
.label::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px;
  background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1;
}
.label-pip { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.label-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 6px; border-radius: 6px; }
.tag-open { background: #ccfbf1; color: #0f766e; }
.tag-soon { background: #e0f2fe; color: #075985; }
.tag-build { background: #fef3c7; color: #92400e; }
.label.visited .label-pip { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--teal); }

/* ---------- Dialogue ---------- */
.dialog {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); z-index: 12;
  width: min(560px, calc(100% - 32px)); transform: translateX(-50%);
  padding: 20px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  animation: rise 0.35s ease;
}
.dialog::after {
  content: ''; position: absolute; left: 50%; top: -10px; width: 20px; height: 20px; background: var(--surface);
  transform: translateX(-50%) rotate(45deg); border-radius: 4px;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } }
.dialog-who { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.dialog-who span:last-child { color: var(--ink-soft); font-weight: 500; letter-spacing: 0.04em; }
.dot-face { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 45%, #5eead4 0 2px, transparent 3px), radial-gradient(circle at 65% 45%, #5eead4 0 2px, transparent 3px), #12313b; }
.dialog-text { margin: 0; font-size: 17px; line-height: 1.5; min-height: 3em; text-wrap: pretty; }
.dialog-text strong { color: var(--deep); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  border: 2px solid var(--deep); background: transparent; color: var(--deep); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
}
.btn:hover { background: rgba(8, 145, 178, 0.08); }
.btn-ink { background: var(--deep); color: #fff; }
.btn-ink:hover { background: #0e4d60; }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #042f2e; }
.btn-teal:hover { background: #2dd4bf; }
.btn[aria-disabled='true'] { border-style: dashed; color: var(--ink-soft); border-color: #94a3b8; cursor: default; background: none; }
.btn-quiet { border-color: transparent; }

/* ---------- Dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: calc(16px + var(--safe-b)); z-index: 11; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; max-width: calc(100% - 16px);
  padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.dock-track { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.dock-track::-webkit-scrollbar { display: none; }
.dock-arrow { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eef7f8; font-size: 24px; line-height: 1; color: var(--deep); }
.dock-arrow:hover { background: #dff1f3; }
.dock-item {
  flex: none; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--ink-soft); white-space: nowrap;
}
.dock-item:hover { background: #eef7f8; color: var(--deep); }
.dock-item[aria-current='true'] { background: var(--deep); color: #fff; }
.dock-item .label-pip { width: 10px; height: 10px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: calc(84px + env(safe-area-inset-top, 0px)); left: 20px; z-index: 20; display: grid; gap: 8px; justify-items: start; pointer-events: none; max-width: calc(100% - 40px); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px;
  background: var(--deep); color: #fff; box-shadow: var(--shadow); font-size: 14px;
  animation: toast-in 0.4s cubic-bezier(.2,1.4,.4,1);
}
.toast b { display: block; font-family: var(--display); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; color: #5eead4; }
.toast-stamp { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--deep); font-size: 18px; flex: none; }
.toast.out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(0.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- Zoom transition into a project ---------- */
/* Clicking a building with a screenshot panel zooms that picture out to
   fill the screen, fades to black, and then the browser goes to the site.
   The picture starts at exactly the rectangle the panel occupies on screen,
   so the first frame of the zoom is the panel itself and nothing jumps. */
.zoom-out {
  position: fixed; inset: 0; z-index: 60;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}
.zoom-out img,
.zoom-out canvas {
  position: absolute;
  left: 0; top: 0;
  transform-origin: top left;
  will-change: transform;
  /* The capture is 16:10 and the picture is shown without the browser bar,
     so it is cropped rather than letterboxed as it grows. */
  object-fit: cover;
}
.zoom-out.fading img,
.zoom-out.fading canvas { animation: zoom-fade 0.45s ease forwards; }
@keyframes zoom-fade { to { opacity: 0; } }

/* ---------- Sheets ---------- */
.sheet {
  width: min(480px, calc(100% - 24px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 24px;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(11, 59, 74, 0.3); overflow: auto;
}
.sheet-wide { width: min(760px, calc(100% - 24px)); }
.sheet::backdrop { background: rgba(11, 59, 74, 0.36); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in 0.3s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }
.sheet-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 12px; background: var(--surface); z-index: 1; }
.sheet-head h2 { margin: 0; font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; color: var(--deep); }
.sheet-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eef7f8; font-size: 24px; line-height: 1; }
.sheet-lede { margin: 0 24px 16px; color: var(--ink-soft); }
.stamps { list-style: none; margin: 0; padding: 0 24px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stamp { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: 16px; border: 2px dashed #cbd5e1; text-align: center; font-size: 12px; font-weight: 700; color: #94a3b8; }
.stamp-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #f1f5f9; filter: grayscale(1); opacity: 0.5; }
.stamp.got { border-style: solid; border-color: var(--teal); color: var(--deep); }
.stamp.got .stamp-ico { filter: none; opacity: 1; background: #ccfbf1; transform: rotate(-8deg); }
.directory-body { padding: 0 24px 24px; display: grid; gap: 24px; }
.directory-body h3 { margin: 0 0 12px; font-family: var(--display); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.dir-lede { font-size: 18px; line-height: 1.5; margin: 0 0 20px; }
.services { margin: 0 0 20px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.services li { padding: 12px 16px; border-radius: 12px; background: #f0fafb; font-weight: 500; }
.dir-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.dir-card { display: grid; grid-template-columns: 16px 1fr auto; gap: 4px 12px; align-items: start; padding: 16px; border-radius: 16px; border: 1px solid #e2e8f0; }
.dir-card .label-pip { margin-top: 4px; }
.dir-card h4 { margin: 0; font-family: var(--display); font-size: 18px; }
.dir-card p { grid-column: 2 / -1; margin: 0; color: var(--ink-soft); line-height: 1.5; }
.dir-card .dir-kind { font-size: 12px; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.04em; }
.dir-card a, .dir-card .dir-walk { grid-column: 2 / -1; justify-self: start; margin-top: 4px; }
.dir-links { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dir-links .btn { height: 36px; padding: 0 14px; font-size: 13px; }

.noscript { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 24px; background: #fff; text-align: center; }

.no-webgl .hud, .no-webgl .dock, .no-webgl .dialog { display: none !important; }

@media (max-width: 640px) {
  .hud { padding-left: 16px; padding-right: 16px; }
  .hud-mark { font-size: 20px; }
  .hud-btn { padding: 0 12px; }
  .hud-btn [data-hide-sm], .hud-btn:not(.hud-hire) span:not(#pass-count) { display: none; }
  .hud-hire .long { display: none; }
  .hud-hire .short { display: inline; }
  .hud-actions { gap: 6px; }
  .hud-btn.hud-hire { padding: 0 12px; font-size: 13px; }
  .dialog { bottom: calc(80px + var(--safe-b)); padding: 16px 18px; }
  .dialog-text { font-size: 16px; }
  .label { font-size: 12px; padding: 6px 10px 6px 6px; }
  .label-tag { display: none; }
  .dock-arrow { width: 40px; height: 40px; }
  .stamps { grid-template-columns: repeat(3, 1fr); padding: 0 16px 16px; gap: 8px; }
  .dir-card { grid-template-columns: 12px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.directory-body h2 { margin: 8px 0 12px; font-family: var(--display); font-size: 20px; color: var(--deep); }
.directory-body h3 a { color: var(--deep); }
.directory-body p { line-height: 1.6; }
.faq dt { font-weight: 700; margin-top: 12px; }
.faq dd { margin: 4px 0 0; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Skin: Ancient Egypt (?skin=egypt) ---------- */
/* ---------- World picker ---------- */
.skin-picker { margin: 20px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; max-width: 560px; }
.skin-picker-label { width: 100%; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.skin-picker .world { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); border: 1.5px solid rgba(11, 59, 74, 0.14); color: var(--deep); font-size: 13px; font-weight: 700; text-decoration: none; }
.skin-picker .world:hover { border-color: var(--deep); }
.skin-picker .world[aria-current] { background: var(--deep); border-color: var(--deep); color: #fff; }
.world-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 24px 24px; }
.world-list .world { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border-radius: 16px; border: 2px solid #e2e8f0; color: var(--deep); text-decoration: none; }
.world-list .world:hover { border-color: var(--deep); }
.world-list .world[aria-current] { border-color: var(--teal); background: rgba(20, 184, 166, 0.08); }
.world-list .world-ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; font-size: 20px; }
.world-list .world-name { font-family: var(--display); font-weight: 700; font-size: 15px; }
.world-list .world-guide { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 420px) {
  .world-list { grid-template-columns: 1fr; }
  .hud { padding-left: 12px; padding-right: 12px; }
  .hud-actions { gap: 4px; }
  .hud-btn { padding: 0 10px; }
  .hud-icon { width: 40px; padding: 0; }
  .hud-btn.hud-hire { padding: 0 10px; }
}

/* ---------- Civilisation skins: one set of rules, coloured per skin ---------- */
.skin-greece { --deep: #1e3a8a; --teal: #c2410c; --cyan: #1d4ed8; --ink-soft: #4b5563; --paper: #f8f5ee; --paper2: #ece6d8; --edge: #c9a227; }
.skin-rome { --deep: #7f1d1d; --teal: #b7791f; --cyan: #991b1b; --ink-soft: #57493a; --paper: #f6f0e4; --paper2: #ebe1cd; --edge: #b7791f; }
.skin-maya { --deep: #0f5132; --teal: #b91c1c; --cyan: #0f766e; --ink-soft: #4a4a3a; --paper: #f4efe0; --paper2: #e5dcc4; --edge: #10b981; }
.skin-norse { --deep: #3b2a1e; --teal: #1d4ed8; --cyan: #9a3412; --ink-soft: #4b4540; --paper: #f1e9da; --paper2: #e2d6c0; --edge: #7c5a3a; }
.skin-atlantis { --deep: #0e4f63; --teal: #d97706; --cyan: #0e7490; --ink-soft: #3f5560; --paper: #f0fdff; --paper2: #cffafe; --edge: #f59e0b; }
.skin-atlantis .dot-face { background: radial-gradient(circle at 50% 50%, #fde68a 0 28%, #0891b2 55%, transparent 56%); }
.skin-china { --deep: #7f1d1d; --teal: #b45309; --cyan: #b91c1c; --ink-soft: #57493a; --paper: #fef9ec; --paper2: #fbeccb; --edge: #dc2626; }
.skinned:not(.skin-egypt) .splash { background: var(--paper); }
.skinned:not(.skin-egypt) .dialog, .skinned:not(.skin-egypt) .dialog::after { background: var(--paper); }
.skinned:not(.skin-egypt) .dialog { box-shadow: 0 0 0 2px var(--edge), var(--shadow); }
.skinned:not(.skin-egypt) .dialog-who { color: var(--cyan); }
.skinned:not(.skin-egypt) .enter { color: var(--cyan); }
.skinned:not(.skin-egypt) .enter-ring { border-color: var(--deep); box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 8px var(--edge); }
.skinned:not(.skin-egypt) .wordmark span, .skinned:not(.skin-egypt) .hud-mark span { color: var(--teal); }
.skinned:not(.skin-egypt) .btn-teal { background: var(--deep); border-color: var(--deep); color: #fff; }
.skinned:not(.skin-egypt) .btn-teal:hover { filter: brightness(1.15); }
.skinned:not(.skin-egypt) .sheet, .skinned:not(.skin-egypt) .sheet-head { background: var(--paper); }
.skinned:not(.skin-egypt) .sheet-close, .skinned:not(.skin-egypt) .dock-arrow, .skinned:not(.skin-egypt) .services li { background: var(--paper2); }
.skinned:not(.skin-egypt) .stamp.got { border-color: var(--edge); }
.skinned:not(.skin-egypt) .splash-hire a { text-decoration-color: var(--edge); }
.skinned:not(.skin-egypt) .about { border-top-color: var(--paper2); }
.skin-maya .dot-face { background: radial-gradient(circle at 50% 50%, #6ee7b7 0 30%, #0f766e 55%, transparent 56%); }
.skin-norse .dot-face { background: radial-gradient(circle at 50% 50%, #18181b 0 40%, #3f3f46 41% 60%, transparent 61%); }
.skin-china .dot-face { background: radial-gradient(circle at 50% 50%, #fde68a 0 30%, #dc2626 55%, transparent 56%); }
.skin-greece .dot-face { background: radial-gradient(circle at 50% 50%, #fbbf24 0 22%, #8b6b4a 25% 60%, transparent 61%); }
.skin-rome .dot-face { background: radial-gradient(circle at 50% 50%, #fde68a 0 30%, #b7791f 55%, transparent 56%); }

.t-egypt { display: none; }
.skin-egypt .t-egypt { display: inline; }
.skin-egypt .t-default { display: none; }
.skin-egypt {
  --deep: #1e3a8a;
  --teal: #c98a0b;
  --cyan: #9a3412;
  --ink-soft: #5b4a32;
}
.skin-egypt body { background: linear-gradient(180deg, #86c5df 0%, #cfe6ea 34%, #fde5bf 62%); }
.skin-egypt .splash { background: #f7ecd2; }
.skin-egypt .splash::before, .skin-egypt .splash::after {
  content: ''; position: absolute; left: 0; right: 0; height: 16px;
  background: repeating-linear-gradient(90deg, #1e3a8a 0 24px, #e0a526 24px 32px, #2ab3a6 32px 56px, #e0a526 56px 64px);
}
.skin-egypt .splash::before { top: 0; }
.skin-egypt .splash::after { bottom: 0; }
.skin-egypt .wordmark span { color: #c98a0b; }
.skin-egypt .enter { color: #9a3412; }
.skin-egypt .enter-ring { border-color: #1e3a8a; box-shadow: inset 0 0 0 6px #f7ecd2, inset 0 0 0 8px #e0a526; }
.skin-egypt .splash-hire a { text-decoration-color: #e0a526; }
.skin-egypt .dialog, .skin-egypt .dialog::after { background: #fbf3df; }
.skin-egypt .dialog { box-shadow: 0 0 0 2px #e0a526, var(--shadow); }
.skin-egypt .dialog-who { color: #9a3412; }
.skin-egypt .dot-face { background: radial-gradient(circle at 50% 50%, #ffcf6b 0 30%, #ff7a1a 55%, #e0a526 56% 70%, transparent 71%); }
.skin-egypt .btn-teal { background: #e0a526; border-color: #e0a526; color: #1e1b4b; }
.skin-egypt .btn-teal:hover { background: #f0b93a; }
.skin-egypt .hud-mark span { color: #c98a0b; }
.skin-egypt .toast b { color: #f6c453; }
.skin-egypt .sheet, .skin-egypt .sheet-head { background: #fbf3df; }
.skin-egypt .services li { background: #f3e6c4; }
.skin-egypt .sheet-close, .skin-egypt .dock-arrow { background: #f3e6c4; }
.skin-egypt .stamp.got { border-color: #e0a526; }
.skin-egypt .stamp.got .stamp-ico { background: #fde7b0; }

/* ---------- About: visible under the splash, moved into the Directory sheet once inside ---------- */
.splash { overflow-y: auto; display: block; }
.splash-inner { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; }
.wordmark { text-transform: uppercase; }
.about { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; text-align: left; display: grid; gap: 24px; border-top: 1px solid #e2e8f0; }
.about h2 { margin: 8px 0 12px; font-family: var(--display); font-size: 22px; color: var(--deep); }
.about h3 { margin: 16px 0 4px; font-family: var(--display); font-size: 18px; }
.about h3 a { color: var(--deep); }
.about p { line-height: 1.6; }
.about .services li { line-height: 1.5; }
.directory-body .about { padding: 0; border: 0; }
.skin-egypt .about { border-top-color: #e0c896; }

/* Contrast: the brand teal is for fills; text uses the darker shade (AA on white) */
.wordmark span, .hud-mark span { color: #0f766e; }
.skin-egypt .wordmark span, .skin-egypt .hud-mark span { color: #a16207; }

.legal { font-size: 13px; color: var(--ink-soft); border-top: 1px solid #e2e8f0; padding-top: 16px; }

/* Email addresses the guide says, and in toasts, are links. */
.dialog-text a.mail { color: var(--cyan); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dialog-text a.mail:hover { color: var(--deep); }
.toast a.mail { color: inherit; text-decoration: underline; }
