/* Relic identity: cobalt ink and lake-blue accents on warm field paper.
   Terrain, creature colors and reward rarities retain their own palettes. */
:root {
  --relic-blue: #294a9f;
  --relic-blue-light: #3d60b6;
  --relic-blue-deep: #20387e;
  --relic-ink: #263d61;
  --relic-muted: #65758c;
  --relic-paper: #f9f7ec;
  --relic-wash: #e8edf5;
  --relic-border: #cbd6e7;
  --relic-bone: #f4deab;
  --relic-orange: #d77945;
}

html, body { color: var(--relic-ink); background: #bfd3e7; }
button, input { color: var(--relic-ink); }
button:focus-visible, input:focus-visible { outline-color: var(--relic-orange); }
.wordmark { color: var(--relic-ink); opacity: 1; }
.wordmark img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.wordmark .period { color: var(--relic-orange); }
.welcome-head .wordmark, .game-top .wordmark {
  opacity: 1;
  background: #fbf9eef0;
  border: 1px solid #fff9;
  border-radius: 12px;
  padding: 5px 11px 5px 5px;
  box-shadow: 0 4px 14px #263f7015;
}
.game-top .wordmark img { width: 30px; height: 30px; border-radius: 8px; }
.welcome-shade { background: linear-gradient(90deg, #a6bfdf50, transparent 58%); }
.welcome-card { box-shadow: 0 25px 90px #263f7025, 0 2px 5px #fff5; }
.welcome-card h1 { color: var(--relic-ink); }
.welcome-card > p, .drawer-head p, .trainer-chip small, .route-card p,
.region-card small, .notebook-intro p, .social-summary p,
.crossing-heading p, .field-heading p, .field-activity p,
.field-card-footer > small, .field-activity-copy > small,
.field-activity-status, .task-card p, .task-card .task-meta,
.signal-location, .signal-fineprint, .signal-map-wrap > p {
  color: var(--relic-muted);
}
.card-tag { color: #6b7e9b; }
.card-tag span { color: var(--relic-blue); background: #e2e9f5; }
.welcome-field { border-color: var(--relic-border); }
.welcome-field input { color: var(--relic-ink); }
.welcome-detail, .welcome-footer, .welcome-footer button,
.map-caption, .tiny, .signal-open kbd { color: #6b7d93; }
.pill { color: #4d6387; box-shadow: 0 2px 5px #263f7010; }
.pill i { background: #648dc0; }

.btn:not(.secondary):not(.gold) {
  color: #fff8e4;
  border-color: #2b438a;
  background: linear-gradient(var(--relic-blue-light), var(--relic-blue));
  box-shadow: inset 0 1px #b5c8ef66, 0 4px 0 #1e3476, 0 6px 15px #263f7026;
}
.btn:not(.secondary):not(.gold):hover:not(:disabled) {
  background: linear-gradient(#4b70c4, #3356aa);
}
.btn:not(.secondary):not(.gold):active {
  box-shadow: inset 0 1px #b5c8ef66, 0 2px 0 #1e3476;
}
.btn.secondary {
  color: #46618f; background: #edf1f7; border-color: var(--relic-border);
  box-shadow: inset 0 1px white, 0 3px 0 #c9d3e4;
}
.trainer-avatar { background: #dce5f3; color: var(--relic-blue); }
.trainer-chip, .energy-chip { box-shadow: 0 5px 18px #263f7017; }
.xp-track { background: #dce3ef; }
.xp-track > span { background: #658ac4; }
.round-btn, .nav-tool, .habitat-routes button, .social-chip,
.route-progress button, .drawer .close, .menu-brand,
.notebook-heading, .social-roster li, .crossing-heading h3,
.field-activity .field-contributors, .chart-stepper button {
  color: #46618f;
}
.nav-tool > span, .nav-tool small { color: #6f8ab2; }
.round-btn:hover, .nav-tool:hover, .habitat-routes button:hover,
.drawer .close, .chart-stepper button { background: #e5ebf5; border-color: var(--relic-border); }
.drawer-backdrop { background: #172e5940; }
.drawer { box-shadow: 0 25px 100px #18305c40; scrollbar-color: #c2d1e6 transparent; }
.task-card, .field-activity, .social-roster li { border-color: #d5deea; }
.notebook-intro, .energy-rest { background: #e8edf5; border-color: var(--relic-border); }
.notebook-intro > span, .field-heading > span, .rest-leaf { color: #7794bd; }
.energy-chip b, .energy-rest > p, .energy-detail-link { color: #476595; }
.energy-chip small, .energy-rest > small { color: #7386a2; }
.energy-pips i { background: #e0e7f2; border-color: #ccd7e8; }
.energy-pips i.charged { background: #6b91ca; border-color: #557eb9; }
.social-dot.live { background: #6d95d2; box-shadow: 0 0 0 3px #dce6f5; }
.social-roster .jacket-dot.lake, .jacket-dot.lake { background: #7397c1; }

.minimap { background: #86afd3; box-shadow: 0 5px 20px #263f7022; }
.minimap .lagoon { background: #77a6d0; }
.signal-chart { background: #84add2; border-color: #ede8d8; box-shadow: inset 0 0 0 1px #7399bf, 0 5px 0 #d5deea; }
.chart-water { background: #7da8cf; }
.chart-shore, .chart-north { color: #284c77; }
.chart-peer.self { background: var(--relic-blue); }
.chart-crosshair { border-color: #5077a6; color: #345f90; }
.signal-open > span { color: #637fa9; }
.signal-seal:not(.secret):not(.help), .world-ping:not(.secret):not(.help) i {
  background: #e2eaf5; border-color: #bfd0e6; color: #4d6e9a;
}
.signal-choices button { background: #eaf0f8; border-color: #cedaeb; }
.signal-choices button > span { color: #6281ad; }
.signal-choices button:hover:not(:disabled) { background: #dfe8f6; border-color: #7c9ac1; }
.signal-choices button[data-signal=secret] { background: #f0e9cf; border-color: #dfd4ab; }
.signal-choices button[data-signal=help] { background: #e9e2e7; border-color: #dbcfdf; }
.signal-log, .social-rules { border-color: #d5deea; }
#signal-send-status { color: #4d6b98; }
.signal-location button { color: #4e70a1; }
.field-activity .field-cue, .field-target .field-cue {
  background: #e8eef7; color: #536e96;
}
.island-card.current { border-color: #91aed7; box-shadow: 0 0 0 2px #b6cbe83d; }
.chart-banner { background: #e4ecf8; }
.chart-banner .tiny, .chart-banner p, .chart-footer { color: #6b7f9f; }
.chart-boat { color: #8faad0; }
.crossing-paper { background: #edf0f4; border-color: #cdd7e7; }
.crossing-heading small { color: #7388a4; }
.crossing-boat:before { background: #7293bf; }
.crossing-boat i { background: #57769f; }
.crossing-boat span { border-color: #90b1d0; }
.crossing-crew li { border-color: #d7dfeb; }
.crossing-progress { color: #6b7e99; }

@media (max-width: 700px) {
  .wordmark img { width: 30px; height: 30px; border-radius: 8px; }
  .welcome-shade { background: linear-gradient(0deg, #acc5e244, transparent 80%); }
}

/* The keeper's first trail uses the same field-paper vocabulary. */
.first-trail-note > p { color: var(--relic-muted); font-size: 12px; line-height: 1.8; }
.first-trail-note blockquote { font-size: 19px; line-height: 1.6; }
.first-promise-bookmark { display: flex; align-items: center; gap: 13px; padding: 16px; margin: 0 0 22px; border: 1px solid var(--relic-border); border-left: 4px solid #7395c5; border-radius: 11px; background: #eef2f8; }
.first-promise-bookmark > span { font-size: 28px; color: #7395c5; }
.first-promise-bookmark > div { flex: 1; }
.first-promise-bookmark b { font-size: 12px; }
.first-promise-bookmark p { font-size: 10px; color: var(--relic-muted); margin-top: 5px; line-height: 1.6; }
.first-find-story { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 24px; padding: 24px; background: #eef2f8; border: 1px solid var(--relic-border); border-radius: 19px; }
.first-find-portrait { width: 145px; height: 145px; display: grid; place-items: center; border-radius: 50%; background: #f3e7ca; }
.first-find-portrait svg { width: 135px; height: 135px; }
.first-find-story h3 { font-size: 29px; letter-spacing: -.9px; margin: 8px 0 11px; }
.first-find-story p { font-size: 12px; color: var(--relic-muted); line-height: 1.8; }
.first-find-receipt { margin-top: 17px; display: grid; gap: 6px; }
.first-find-receipt > span { font-size: 10px; color: var(--relic-muted); }
.first-find-receipt b { font-size: 11px; }
.first-find-receipt small { font-size: 9px; color: #688468; }
.first-find-bonus { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 15px 0 26px; padding: 13px 16px; border: 1px solid #e0d6bb; border-radius: 12px; background: #f4ecd5; font-size: 11px; }
.first-find-bonus.claimed { color: #6e8064; }
.first-next-heading { font-size: 21px; letter-spacing: -.6px; margin: 25px 0 14px; }
.first-next-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.first-next-choices > button { text-align: left; padding: 19px; border: 1px solid var(--relic-border); border-radius: 14px; background: #fffdf5; display: grid; grid-template-columns: 30px 1fr; gap: 7px 10px; }
.first-next-choices > button:hover { background: #e9eff8; border-color: #8faed5; }
.first-next-choices > button > span { grid-row: span 2; font-size: 26px; color: #7895bd; }
.first-next-choices b { font-size: 13px; font-weight: 700; }
.first-next-choices small { font-size: 10px; color: var(--relic-muted); line-height: 1.7; }
@media (max-width: 700px) {
  .first-trail-note > p { font-size: 11px; }
  .first-trail-note blockquote { font-size: 17px; }
  .first-promise-bookmark { flex-wrap: wrap; padding: 13px; gap: 10px; }
  .first-promise-bookmark .btn { margin-left: 38px; }
  .first-find-story { grid-template-columns: 1fr; text-align: center; gap: 15px; padding: 20px 17px; }
  .first-find-portrait { width: 112px; height: 112px; margin: auto; }
  .first-find-portrait svg { width: 105px; height: 105px; }
  .first-find-story h3 { font-size: 26px; }
  .first-find-story p { font-size: 11px; }
  .first-next-choices { grid-template-columns: 1fr; gap: 9px; }
  .first-next-choices > button { padding: 16px; }
  .first-find-bonus .btn { width: 100%; }
}

/* The faded beacon: a field journal, cobalt glass and warm light. */
.beacon-bookmark{display:flex;align-items:center;gap:14px;width:100%;padding:18px 20px;margin:0 0 22px;text-align:left;background:#e9edf6;border:1px solid #cbd5e5;border-radius:17px;color:#304871}
.beacon-bookmark>span:first-child{display:grid;place-items:center;width:47px;height:47px;flex-shrink:0;background:#dce5f4;border-radius:14px}
.beacon-bookmark svg{width:31px;height:31px}.beacon-bookmark b{display:block;font-size:16px;letter-spacing:-.4px}.beacon-bookmark small{display:block;line-height:1.7;font-size:10px;margin-top:4px;color:#677b96}.beacon-bookmark>span:last-child{margin-left:auto;font-size:10px;text-decoration:underline;flex-shrink:0}
.beacon-cover{display:grid;grid-template-columns:115px minmax(0,1fr);gap:25px;align-items:center;padding:27px;background:#e8edf7;border-radius:20px;color:#304871}
.beacon-cover.restored{background:#f1e8cc}.beacon-cover-art{height:130px;display:grid;place-items:center;background:#d8e2f3;border-radius:48% 48% 41% 41%}.restored .beacon-cover-art{background:#e7d8a6}.beacon-cover-art svg{width:86px;height:86px}.beacon-cover span{font-size:9px;color:#687e99}.beacon-cover h3{font-size:28px;letter-spacing:-1px;margin:9px 0 12px;line-height:1.2}.beacon-cover p{font-size:11px;line-height:1.9;color:#60738b}
.lamp-parts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:19px 0}.lamp-part{display:grid;justify-items:center;text-align:center;padding:17px 8px 14px;border-bottom:2px solid #d8deea;background:#f0f1ed;border-radius:14px 14px 4px 4px;color:#8993a0}.lamp-part.found{background:#e4ecf8;border-color:#526daf;color:#324f85}.lamp-part>span{height:39px}.lamp-part svg{width:34px;height:34px}.lamp-part b{font-size:11px;margin-top:6px}.lamp-part small{font-size:8px;margin-top:5px;line-height:1.6}
.beacon-part-notes{border-left:2px solid #c7d2e6;padding-left:17px;margin:22px 0}.beacon-part-notes p{font-size:11px;color:#63718a;line-height:1.9;margin:0 0 12px}.beacon-part-notes b{display:block;color:#344c70}
.beacon-current{padding:23px 0;border-top:1px solid #d5dbe4;border-bottom:1px solid #d5dbe4}.beacon-current>span{font-size:10px;color:#6c7b93}.beacon-current h3{font-size:21px;letter-spacing:-.6px;margin:9px 0}.beacon-current p{font-size:12px;line-height:1.9;color:#586d88}.beacon-watermarks{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.beacon-watermarks span{padding:8px 11px;border-radius:7px;background:#e9ecf2;font-size:10px;color:#7e8896}.beacon-watermarks .read{background:#dfeafa;color:#3f6093}
.beacon-relic-receipt{display:flex;align-items:center;gap:17px;padding:21px;margin:18px 0;background:#eee3be;border-radius:16px;color:#4b5267}.beacon-relic-receipt svg{width:70px;height:70px}.beacon-relic-receipt b{font-size:17px}.beacon-relic-receipt p{font-size:10px;line-height:1.8;margin-top:7px}.beacon-story .card-actions{flex-wrap:wrap}.lamp-part-found{display:flex;align-items:center;justify-content:center;gap:8px;font-size:10px!important;padding:10px 12px!important;background:#e1e9f6;border-radius:9px;color:#375b96!important;margin:14px 0!important;line-height:1.7!important}.lamp-part-found svg{width:25px;height:25px;flex-shrink:0}
.lantern-control{position:absolute;left:24px;bottom:91px;display:flex;align-items:center;gap:8px;background:#f6f5e9ed;border:1px solid #d0d9e7;border-radius:13px;padding:9px 13px;font-size:10px;color:#59708d;box-shadow:0 4px 15px #29416315;min-height:43px}.lantern-control svg{width:24px;height:24px}.lantern-control.lit{background:#f5e7bb;color:#624e2e;border-color:#dfcb8b}.lantern-control kbd{font-size:8px;padding:2px 4px;border:1px solid #a0a5ad66;border-radius:4px}.aiming .lantern-control{display:none}
@media(max-width:700px){.beacon-bookmark{gap:10px;padding:14px}.beacon-bookmark>span:first-child{width:38px;height:42px}.beacon-bookmark b{font-size:14px}.beacon-bookmark>span:last-child{font-size:8px;max-width:45px;line-height:1.6}.beacon-cover{grid-template-columns:1fr;gap:18px;padding:22px;text-align:left}.beacon-cover-art{height:100px;width:95px;margin:auto}.beacon-cover-art svg{width:70px;height:70px}.beacon-cover h3{font-size:25px}.lamp-parts{gap:5px}.lamp-part{padding:14px 4px 12px}.lamp-part b{font-size:9px}.lamp-part small{font-size:7px}.beacon-current{padding:18px 0}.beacon-current h3{font-size:20px}.beacon-relic-receipt{padding:14px;gap:12px}.beacon-relic-receipt svg{width:52px;height:52px}.beacon-relic-receipt b{font-size:14px}.lantern-control{left:auto;right:14px;top:67px;bottom:auto;min-height:32px;padding:5px 9px;gap:5px;font-size:8px;border-radius:10px}.lantern-control svg{width:19px;height:19px}.lantern-control kbd{display:none}.lamp-part-found{font-size:9px!important}}

.first-next-choices button:last-child:nth-child(3){grid-column:1/-1}
