/* Fernhaven: a walkable town, with interfaces opened by places and game keys. */
html:has(.ct-game),
body:has(.ct-game) {
  margin: 0;
  overflow: hidden;
  background: #cbd4b9;
  color: #34473b;
  color-scheme: light;
}
.ct-game {
  --ct-ink: #34473b;
  --ct-paper: #f7f2e5;
  --ct-muted: #798071;
  --ct-line: #d9ddcd;
  --ct-green: #486c54;
  --ct-amber: #ce9659;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 500px;
  overflow: hidden;
  isolation: isolate;
  font-size: 14px;
}
.ct-game * {
  box-sizing: border-box;
}
.ct-game button,
.ct-game input,
.ct-game textarea,
.ct-game select {
  font: inherit;
}
.ct-game button,
.ct-game a {
  touch-action: manipulation;
}
.ct-game button {
  cursor: pointer;
  color: var(--ct-ink);
  border: 1px solid #bfc8b5;
  background: #f5f1e5;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  transition:
    background 0.15s,
    transform 0.15s,
    border-color 0.15s;
  min-height: 44px;
}
.ct-game button:hover:not(:disabled) {
  background: #fffbed;
  border-color: #87977d;
}
.ct-game button:active:not(:disabled) {
  transform: translateY(1px);
}
.ct-game button:disabled {
  cursor: default;
  opacity: 0.5;
}
.ct-game button:focus-visible,
.ct-game a:focus-visible,
.ct-game input:focus-visible,
.ct-game select:focus-visible,
.ct-game textarea:focus-visible {
  outline: 3px solid #bd8747;
  outline-offset: 4px;
}
.ct-game .ct-primary {
  background: #496e56;
  color: #fffced;
  border-color: #496e56;
}
.ct-game .ct-primary:hover:not(:disabled) {
  background: #365b43;
  border-color: #365b43;
}
.ct-game kbd {
  display: inline-grid;
  place-content: center;
  font:
    500 11px Inter,
    sans-serif;
  min-width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-bottom-width: 2px;
  border-radius: 5px;
  opacity: 0.72;
  padding: 0 5px;
}
.ct-game h1,
.ct-game h2,
.ct-game h3,
.ct-game h4,
.ct-game p {
  margin: 0;
}
.ct-game h1,
.ct-game h2,
.ct-game h3 {
  letter-spacing: -0.045em;
}
.ct-game a {
  color: inherit;
}
.ct-world {
  position: absolute;
  inset: 0;
  outline: none;
  overflow: hidden;
  touch-action: none;
}
.ct-world > canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.ct-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #e5e8d9;
  z-index: 5;
}
.ct-place-label {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 8px 15px !important;
  border: 1px solid #d6dcca !important;
  background: #f8f5e5eb !important;
  box-shadow:
    0 4px 0 #4b675220,
    0 7px 22px #48654b13;
  text-align: center;
  min-width: 135px;
  min-height: 49px !important;
  border-radius: 8px !important;
  backdrop-filter: blur(8px);
  z-index: 1;
}
.ct-place-label small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.17em;
  color: #81866c;
  margin-bottom: 4px;
}
.ct-place-label span {
  font-size: 11px;
  font-weight: 600;
}
.ct-place-label i {
  font-style: normal;
  margin-left: 10px;
  color: #71876b;
}
.ct-place-label[data-near="true"] {
  border-color: #b18e56 !important;
  background: #fff7dc !important;
}
.ct-game .ct-place-label:active {
  transform: translate(-50%, -49%) !important;
}
.ct-hud-top {
  position: absolute;
  inset: 28px 32px auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.ct-town-title {
  text-shadow: 0 1px 16px #f5f3df;
}
.ct-town-title > span {
  font-size: 9px;
  letter-spacing: 0.26em;
  font-weight: 700;
}
.ct-town-title h1 {
  font-size: 40px;
  font-weight: 600;
  margin: 7px 0 4px;
  line-height: 1.1;
}
.ct-town-title h1 span {
  font-size: 21px;
  color: #a67f42;
  margin-left: 12px;
  vertical-align: middle;
}
.ct-town-title small {
  font-size: 10px;
  color: #66705d;
}
.ct-top-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  pointer-events: auto;
}
.ct-top-actions > button {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #f7f3e5dc;
  backdrop-filter: blur(10px);
}
.ct-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 30px;
  background: #faf1dccc;
  color: #795a2c;
  font-size: 16px;
  font-weight: 650;
  border: 1px solid #ddd1ac;
}
.ct-wallet i {
  font-style: normal;
  color: #ae8948;
  font-size: 22px;
}
.ct-wallet small {
  font-size: 10px;
  font-weight: 400;
}
.ct-objective {
  position: absolute;
  top: 150px;
  left: 32px;
  max-width: 282px;
  display: flex;
  gap: 11px;
  pointer-events: none;
  background: #f6f3e2e3;
  border: 1px solid #d3d9c4;
  border-radius: 11px;
  padding: 15px 17px;
  box-shadow: 0 8px 25px #4e604b09;
  z-index: 2;
}
.ct-quest-mark {
  display: grid;
  place-content: center;
  flex-shrink: 0;
  background: #dab779;
  color: #fff7da;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}
.ct-objective small {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #8a826b;
  display: block;
  margin-bottom: 6px;
}
.ct-objective b {
  font-size: 12px;
  line-height: 1.5;
}
.ct-objective p {
  font-size: 10px;
  line-height: 1.65;
  color: #78816e;
  margin-top: 5px;
}
.ct-first-hint {
  position: absolute;
  bottom: 155px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.ct-first-hint > kbd {
  display: block;
  width: 25px;
  margin: 0 auto 4px;
  background: #f8f2d9;
}
.ct-first-hint span {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.ct-first-hint span kbd {
  background: #f8f2d9;
}
.ct-first-hint p {
  font-size: 11px;
  background: #f8f2d9d9;
  border-radius: 20px;
  padding: 8px 15px;
  margin-top: 9px;
  color: #536b50;
}
.ct-context {
  position: absolute;
  bottom: 147px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  max-width: 90%;
}
.ct-context button {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  background: #344e3fee;
  color: #fff3d9;
  border-color: #728675;
  box-shadow: 0 8px 35px #32463229;
  min-width: 256px;
  padding: 14px 17px;
  border-radius: 12px;
}
.ct-context button:hover {
  background: #3c6049 !important;
  color: #fff4dc !important;
}
.ct-context button > kbd {
  height: 32px;
  width: 32px;
  opacity: 1;
  color: #f1d19a;
}
.ct-context span {
  font-size: 12px;
  font-weight: 600;
  flex: 1;
}
.ct-context small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #c3ccb9;
  margin-top: 5px;
}
.ct-context b {
  font-size: 17px;
  color: #d4bb8b;
}
.ct-bottom-hud {
  position: absolute;
  bottom: 29px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
  z-index: 3;
}
.ct-bottom-hud > * {
  pointer-events: auto;
}
.ct-game .ct-buddy {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: #f9f5e8f2;
  box-shadow: 0 8px 28px #50604412;
  border: 1px solid #ced4c0;
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 255px;
}
.ct-buddy > span:nth-child(2) {
  flex: 1;
}
.ct-buddy small {
  font-size: 8px;
  letter-spacing: 0.09em;
  display: block;
  color: #7e8674;
  margin-bottom: 6px;
}
.ct-buddy b {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ct-buddy i {
  display: block;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  color: #7e8774;
  margin-top: 5px;
}
.ct-buddy.has-result {
  border-color: #b58a4d;
  background: #fff0c9;
}
.ct-buddy.has-result i {
  color: #a5712e;
}
.ct-species-dot {
  height: 55px;
  width: 55px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  font-size: 30px;
  background: #dfe5cd;
  color: #6d895a;
}
.ct-hotbar {
  display: flex;
  gap: 6px;
  padding: 7px;
  background: #faf7e9ed;
  border: 1px solid #d1d6c4;
  border-radius: 15px;
  box-shadow: 0 7px 32px #54614710;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
}
.ct-game .ct-hotbar button {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  padding: 8px 12px;
  position: relative;
  gap: 7px;
}
.ct-hotbar button > span {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}
.ct-hotbar b {
  font-size: 9px;
  font-weight: 500;
}
.ct-hotbar kbd {
  position: absolute;
  right: 4px;
  top: 0;
  min-width: 17px;
  height: 17px;
  font-size: 8px;
  background: #fdfbf4;
  color: #81856b;
}
.ct-day {
  text-align: right;
  padding: 12px 0;
  color: #566b53;
  pointer-events: none;
}
.ct-day b {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.ct-day span {
  display: block;
  font-size: 9px;
  margin-top: 6px;
  color: #7e8972;
}
.ct-touch-move {
  display: none;
}
.ct-sr-notice {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.ct-game .ct-dialog {
  color: var(--ct-ink);
  background: var(--ct-paper);
  width: min(1040px, calc(100vw - 64px));
  max-height: calc(100dvh - 70px);
  padding: 32px;
  border: 1px solid #fff7e9;
  border-radius: 18px;
  box-shadow: 0 40px 120px #2439263d;
  overscroll-behavior: contain;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b2bba1 transparent;
}
.ct-dialog::backdrop {
  background: #23392a56;
  backdrop-filter: blur(6px);
}
.ct-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.ct-eyebrow {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #93835d;
  display: block;
}
.ct-panel-head h2 {
  font-size: 31px;
  font-weight: 550;
  margin-top: 9px;
  line-height: 1.2;
  color: #354b3b;
}
.ct-game .ct-close {
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 26px;
  line-height: 1;
  min-width: 42px;
  height: 42px;
}
.ct-close small {
  font-size: 8px;
  line-height: 1;
  margin-top: 5px;
  font-weight: 400;
  color: #919682;
}
.ct-panel-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  border-top: 1px solid var(--ct-line);
  border-bottom: 1px solid var(--ct-line);
  padding: 12px 0;
  margin-bottom: 22px;
}
.ct-panel-meta > b {
  margin-left: auto;
  color: #a27a3c;
  font-weight: 500;
}
.ct-party-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #828874;
}
.ct-game .ct-party-select select {
  padding: 7px 10px;
  min-height: 32px;
  font-size: 11px;
  width: auto;
}
.ct-intro {
  font-size: 13px;
  line-height: 1.75;
  color: #7a8271;
  margin-bottom: 22px !important;
  max-width: 680px;
}
.ct-caption {
  font-size: 10px;
  line-height: 1.8;
  color: #90917d;
  margin: 18px 0 !important;
}
.ct-panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--ct-line);
  padding-top: 20px;
  margin-top: 26px;
}
.ct-panel-foot > span,
.ct-panel-foot > p {
  font-size: 11px;
  color: #838975;
  line-height: 1.7;
  max-width: 65%;
}
.ct-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ct-game input,
.ct-game textarea,
.ct-game select {
  display: block;
  width: 100%;
  background: #fffbf1;
  color: #45533f;
  padding: 13px 15px;
  border: 1px solid #d4dac7;
  border-radius: 7px;
  min-height: 46px;
  font-size: 13px;
  line-height: 1.6;
}
.ct-game textarea {
  resize: vertical;
}
.ct-game label {
  font-size: 11px;
  color: #7a836e;
}
.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ct-form-row label > input,
.ct-form-row label > select,
.ct-field > textarea,
.ct-field > select {
  margin-top: 9px;
}
.ct-field {
  display: block;
  margin: 22px 0;
}
.ct-dino-portrait {
  height: 240px;
  width: 100%;
  position: relative;
}
.ct-dino-portrait canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ct-empty {
  max-width: 480px;
  padding: 40px 10px 50px;
  margin: auto;
  text-align: center;
}
.ct-empty-icon {
  font-size: 65px;
  color: #a3b38a;
}
.ct-empty h3 {
  font-size: 23px;
  font-weight: 500;
  margin: 15px 0;
}
.ct-empty p {
  font-size: 13px;
  line-height: 1.9;
  color: #8b907b;
  margin-bottom: 25px;
}
.ct-merchant {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 3px 0 24px;
}
.ct-merchant > span {
  width: 47px;
  height: 47px;
  display: grid;
  place-content: center;
  background: #e9d9bb;
  border-radius: 50%;
  font-size: 25px;
  color: #a78048;
}
.ct-merchant p {
  font-size: 13px;
  color: #777a62;
  font-style: italic;
}
.ct-merchant small {
  display: block;
  font-style: normal;
  font-size: 9px;
  margin-top: 6px;
  color: #a09171;
}
.ct-shop-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.ct-shop-grid article {
  border: 1px solid #e0dfcd;
  border-radius: 10px;
  overflow: hidden;
  background: #fcf8eb;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
}
.ct-item-stage {
  position: relative;
  background: #eee8d6;
  margin: 0 -12px 16px;
  padding: 8px 15px;
  height: 154px;
}
.ct-item-stage > span {
  position: absolute;
  top: 9px;
  left: 11px;
  font-size: 7px;
  letter-spacing: 0.12em;
  color: #9e9170;
}
.ct-gear-art {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 2px #90743a16);
}
.ct-shop-grid h3 {
  font-size: 15px;
  font-weight: 550;
  margin-bottom: 9px;
}
.ct-shop-grid p {
  font-size: 10px;
  color: #8c8c74;
  line-height: 1.8;
  margin-bottom: 18px;
  flex: 1;
}
.ct-shop-grid button {
  padding: 10px 5px;
  min-height: 39px;
  font-size: 10px;
  width: 100%;
}
.ct-shop-grid article[data-owned="true"] {
  border-color: #abbc99;
}
.ct-inventory-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 35px;
}
.ct-bag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ct-game .ct-bag-item {
  padding: 12px 8px;
  text-align: center;
  background: #efeedf;
  min-height: 162px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border-color: #d6ddc5;
}
.ct-bag-item .ct-gear-art {
  height: 88px;
  width: 95px;
}
.ct-bag-item > b {
  font-size: 11px;
  font-weight: 550;
}
.ct-bag-item > span {
  font-size: 8px;
  font-weight: 400;
  color: #858d73;
}
.ct-game .ct-bag-item[data-equipped="true"] {
  background: #e3eacf;
  border-color: #92a480;
}
.ct-bag-empty {
  display: grid;
  place-content: center;
  border: 1px dashed #d6dcc6;
  min-height: 162px;
  border-radius: 9px;
  color: #c8ceba;
  font-size: 20px;
}
.ct-paperdoll {
  background: #e7ecd9;
  border-radius: 12px;
  padding: 5px 24px 25px;
  text-align: center;
}
.ct-paperdoll .ct-dino-portrait {
  height: 280px;
}
.ct-paperdoll h3 {
  font-size: 26px;
  font-weight: 550;
  margin-top: -8px;
}
.ct-paperdoll > p {
  font-size: 10px;
  color: #899078;
  margin: 8px 0 22px;
}
.ct-loadout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.ct-loadout > span {
  display: block;
  text-align: left;
  border: 1px solid #ced7bd;
  background: #eff2e4;
  padding: 11px;
  border-radius: 7px;
}
.ct-loadout > span:last-child {
  grid-column: span 2;
}
.ct-loadout small {
  font-size: 7px;
  letter-spacing: 0.12em;
  color: #99a184;
  display: block;
  margin-bottom: 5px;
}
.ct-loadout b {
  font-size: 10px;
  font-weight: 500;
}
.ct-character-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ct-line);
  gap: 20px;
}
.ct-character-top h3 {
  font-size: 21px;
  font-weight: 500;
  margin: 10px 0;
}
.ct-character-top p {
  font-size: 11px;
  color: #90927d;
}
.ct-keeper-stats {
  display: flex;
  gap: 30px;
}
.ct-keeper-stats span {
  font-size: 9px;
  color: #99a086;
  text-align: center;
}
.ct-keeper-stats b {
  display: block;
  font-size: 24px;
  font-weight: 500;
  color: #738565;
  margin-bottom: 5px;
}
.ct-party-strip {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  overflow: auto;
  padding: 3px;
}
.ct-game .ct-party-strip button {
  padding: 9px 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  background: #eeeedd;
  border-color: #d9deca;
  min-height: 38px;
  font-size: 11px;
}
.ct-party-strip button[aria-pressed="true"] {
  outline: 1px solid #8ba277;
  background: #e3e9d2;
}
.ct-party-strip i {
  font-style: normal;
  color: #93a56f;
}
.ct-party-strip small {
  font-size: 8px;
  font-weight: 400;
  margin-left: 5px;
  color: #8f997e;
}
.ct-character-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.ct-character-art {
  background: radial-gradient(ellipse at 50% 70%, #eff3df, #e0e7cf);
  border: 1px solid #d9e2c8;
  border-radius: 14px;
  text-align: center;
  padding-bottom: 26px;
}
.ct-character-art > .ct-dino-portrait {
  height: 345px;
}
.ct-character-art > span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #89977a;
}
.ct-character-layout section > h3 {
  font-size: 39px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 9px 0 17px;
}
.ct-character-layout h3 > small {
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 450;
  color: #94a078;
}
.ct-xp > span {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 9px;
}
.ct-xp b {
  font-weight: 550;
  color: #788963;
}
.ct-xp small {
  font-size: 9px;
  color: #9aa188;
}
.ct-xp progress {
  width: 100%;
  height: 6px;
  display: block;
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: #e1e5d1;
  color: #8b9f70;
}
.ct-xp progress::-webkit-progress-bar {
  background: #e1e5d1;
  border-radius: 5px;
}
.ct-xp progress::-webkit-progress-value {
  background: #8b9f70;
  border-radius: 5px;
}
.ct-xp progress::-moz-progress-bar {
  background: #8b9f70;
  border-radius: 5px;
}
.ct-character-layout blockquote {
  margin: 23px 0;
  border-left: 2px solid #c5cfae;
  padding: 7px 0 7px 17px;
  font-size: 12px;
  color: #858972;
  line-height: 1.8;
}
.ct-character-layout blockquote > button {
  display: block;
  border: 0;
  background: none;
  font-size: 9px;
  min-height: 30px;
  padding: 9px 0 0;
  color: #7c9470;
}
.ct-current-mission {
  padding: 17px;
  border: 1px solid #d7ddc3;
  border-radius: 10px;
  background: #ebeedd;
}
.ct-current-mission > small {
  font-size: 8px;
  letter-spacing: 0.13em;
  color: #929976;
}
.ct-current-mission h4 {
  font-size: 14px;
  font-weight: 550;
  margin: 7px 0 14px;
}
.ct-current-mission p {
  font-size: 11px;
  color: #8e957b;
  line-height: 1.8;
  margin-bottom: 13px;
}
.ct-character-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.ct-character-links button {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ct-character-links span {
  border-radius: 20px;
  background: #e4e8d2;
  padding: 4px 7px;
  font-size: 10px;
}
.ct-mission-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: #d6c6a5;
  border: 8px solid #a98c61;
  padding: 30px 21px;
  border-radius: 13px;
  box-shadow: inset 0 2px 6px #68543422;
}
.ct-game .ct-mission-paper {
  padding: 25px 19px 18px;
  position: relative;
  text-align: left;
  background: #fff5d9;
  border: 0;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 5px 0 #8d77592c;
}
.ct-mission-paper:nth-child(1) {
  transform: rotate(-1deg);
}
.ct-mission-paper:nth-child(3) {
  transform: rotate(1.5deg);
}
.ct-paper-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #b08249;
  box-shadow: 1px 2px 2px #7453363b;
  top: 8px;
  left: 50%;
  border-radius: 50%;
}
.ct-mission-paper > small {
  font-size: 7px;
  letter-spacing: 0.06em;
  color: #a29068;
  line-height: 1.8;
  font-weight: 450;
}
.ct-mission-symbol {
  font-size: 42px;
  font-weight: 400;
  color: #ad9a68;
  margin: 18px 0 11px;
}
.ct-mission-paper h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 15px;
}
.ct-mission-paper p {
  font-size: 11px;
  line-height: 1.8;
  color: #a49877;
  flex: 1;
  margin-bottom: 22px;
  font-weight: 400;
}
.ct-mission-paper > div {
  display: flex;
  gap: 14px;
  color: #a28243;
  font-size: 10px;
  margin-bottom: 16px;
}
.ct-mission-paper b {
  font-weight: 500;
}
.ct-mission-paper > em {
  font-size: 9px;
  font-style: normal;
  color: #7b8d65;
  border-top: 1px solid #e6dcbe;
  padding-top: 12px;
}
.ct-mission-paper[data-locked="true"] > em {
  color: #a1987a;
}
.ct-panel-mission {
  max-width: 620px;
}
.ct-mission-rewards {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}
.ct-mission-rewards span {
  padding: 9px 13px;
  border: 1px solid #d9d7bb;
  border-radius: 24px;
  font-size: 10px;
  color: #9b864f;
  background: #efead6;
}
.ct-locked {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #ede9d4;
  padding: 15px;
  border-radius: 8px;
}
.ct-locked b {
  font-size: 11px;
  color: #9b8756;
  font-weight: 500;
}
.ct-report > blockquote {
  margin: 0 0 30px;
  font-size: 13px;
  line-height: 1.8;
  color: #8e957e;
  padding-left: 16px;
  border-left: 2px solid #c5d0b1;
}
.ct-report > section {
  display: flex;
  gap: 23px;
  padding: 22px 0;
  border-top: 1px solid #dde1ce;
}
.ct-report section > span {
  font-size: 10px;
  color: #c0b488;
  margin-top: 5px;
}
.ct-report h3 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 9px;
}
.ct-report section p {
  font-size: 13px;
  line-height: 1.9;
  color: #8b937b;
}
.ct-panel-report,
.ct-panel-journal {
  max-width: 740px;
}
.ct-panel-reward {
  max-width: 560px;
}
.ct-panel-reward h2 {
  font-size: 38px;
}
.ct-reward {
  text-align: center;
}
.ct-reward .ct-dino-portrait {
  height: 290px;
  background: radial-gradient(ellipse at center, #e7edd5 0%, transparent 65%);
}
.ct-reward > p {
  font-size: 13px;
  line-height: 1.8;
  color: #8b9478;
}
.ct-reward .ct-mission-rewards,
.ct-reward .ct-buttons {
  justify-content: center;
}
.ct-reward .ct-unlock {
  padding: 16px;
  border-radius: 9px;
  background: #e9edd8;
  font-size: 12px;
  margin: 20px 0 28px;
}
.ct-panel-camp {
  max-width: 680px;
}
.ct-routine-state {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #d8dec8;
  border-radius: 9px;
  padding: 19px;
  margin: 25px 0;
  gap: 20px;
}
.ct-routine-state b {
  font-weight: 550;
  font-size: 13px;
}
.ct-routine-state p {
  font-size: 10px;
  line-height: 1.9;
  color: #929a82;
  margin-top: 6px;
}
.ct-journal-stats {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 27px;
}
.ct-journal-stats span {
  font-size: 9px;
  color: #a0a68e;
}
.ct-journal-stats b {
  display: block;
  font-size: 25px;
  font-weight: 500;
  color: #7a8e67;
  margin-bottom: 6px;
}
.ct-journal-entry {
  border-bottom: 1px solid #dce0ca;
  padding: 17px 0;
}
.ct-journal-entry summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
}
.ct-journal-entry summary b {
  font-size: 12px;
  font-weight: 550;
}
.ct-journal-entry summary small {
  font-size: 9px;
  color: #a2a78f;
}
.ct-journal-entry > p {
  font-style: italic;
  color: #8f9a7c;
}
.ct-journal-entry p {
  font-size: 11px;
  line-height: 1.9;
  margin: 15px 0;
}
.ct-journal-entry h4 {
  font-size: 12px;
  font-weight: 550;
}
.ct-run-log {
  margin: 25px 0;
}
.ct-run-log summary {
  font-size: 11px;
  cursor: pointer;
  color: #869679;
}
.ct-run-log ol {
  padding: 10px 0;
  list-style: none;
  max-height: 240px;
  overflow: auto;
}
.ct-run-log li {
  font-size: 10px;
  line-height: 1.7;
  padding: 7px 0;
  border-bottom: 1px solid #e0e4d1;
}
.ct-run-log time {
  font-size: 8px;
  color: #9ea789;
  margin-right: 12px;
}
.ct-run-log li[data-tone="bad"] {
  color: #b47657;
}
.ct-town-map {
  position: relative;
  max-width: 740px;
  margin: auto;
}
.ct-town-map svg {
  display: block;
  width: 100%;
}
.ct-town-map button {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #fffae7ed;
  border-radius: 6px;
  font-size: 8px;
  padding: 7px 11px;
  min-height: 36px;
  display: flex;
  gap: 9px;
}
.ct-game .ct-town-map button:active {
  transform: translate(-50%, -50%);
}
.ct-town-map button b {
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.04em;
}
.ct-map-legend {
  display: flex;
  gap: 30px;
  justify-content: center;
  font-size: 10px;
  color: #96a083;
  margin-top: 18px;
}
.ct-panel-map {
  max-width: 840px;
}
.ct-panel-menu,
.ct-panel-reset,
.ct-panel-help {
  max-width: 590px;
}
.ct-menu {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.ct-menu p {
  font-size: 13px;
  line-height: 1.8;
  color: #8d957c;
  margin-bottom: 10px;
}
.ct-menu a {
  padding: 16px;
  background: #edeeda;
  border: 1px solid #dce1c7;
  border-radius: 9px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
}
.ct-menu small {
  font-size: 9px;
  color: #a1a48f;
  text-align: center;
  margin-top: 12px;
}
.ct-menu .ct-subtle {
  border: 0;
  background: transparent;
  color: #a99b7a;
  font-size: 10px;
}
.ct-menu .ct-danger {
  background: #a9684a;
  color: white;
  border-color: #a9684a;
}
.ct-guide dl {
  margin: 0;
}
.ct-guide dl > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid #dce1ce;
}
.ct-guide dt {
  font-size: 11px;
  color: #7c8b6d;
}
.ct-guide dd {
  font-size: 11px;
  color: #919c81;
  line-height: 1.8;
  margin: 0;
}
.ct-guide kbd {
  font-size: 8px;
  min-width: 20px;
  height: 20px;
}
@media (min-width: 1700px) {
  .ct-hud-top {
    inset: 38px 48px auto;
  }
  .ct-objective {
    left: 48px;
    top: 166px;
  }
  .ct-bottom-hud {
    left: 48px;
    right: 48px;
    bottom: 35px;
  }
  .ct-town-title h1 {
    font-size: 47px;
  }
}
@media (max-width: 1050px) {
  .ct-shop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ct-day {
    display: none;
  }
  .ct-hotbar {
    position: static;
    transform: none;
  }
  .ct-mission-board {
    gap: 10px;
    padding: 20px 12px;
  }
  .ct-mission-paper h3 {
    font-size: 19px;
  }
  .ct-dialog {
    padding: 26px !important;
  }
  .ct-character-layout {
    gap: 25px;
  }
  .ct-character-art > .ct-dino-portrait {
    height: 300px;
  }
}
@media (max-width: 700px) {
  .ct-game {
    min-height: 0;
  }
  .ct-hud-top {
    inset: 17px 17px auto;
  }
  .ct-town-title > span {
    font-size: 7px;
    letter-spacing: 0.19em;
  }
  .ct-town-title h1 {
    font-size: 28px;
    margin-top: 6px;
  }
  .ct-town-title h1 span {
    font-size: 15px;
    margin-left: 7px;
  }
  .ct-town-title small {
    display: none;
  }
  .ct-top-actions {
    gap: 5px;
  }
  .ct-top-actions > button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 10px;
  }
  .ct-top-actions > button kbd {
    display: none;
  }
  .ct-wallet {
    padding: 8px 11px;
    font-size: 13px;
    gap: 5px;
  }
  .ct-wallet i {
    font-size: 17px;
  }
  .ct-wallet small {
    display: none;
  }
  .ct-objective {
    top: 91px;
    left: 17px;
    max-width: 239px;
    padding: 11px 13px;
    gap: 8px;
  }
  .ct-objective small {
    font-size: 7px;
    margin-bottom: 4px;
  }
  .ct-objective b {
    font-size: 11px;
  }
  .ct-objective p {
    font-size: 9px;
    line-height: 1.5;
  }
  .ct-quest-mark {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
  .ct-bottom-hud {
    bottom: 17px;
    left: 17px;
    right: 17px;
    gap: 8px;
    align-items: stretch;
  }
  .ct-game .ct-buddy {
    padding: 10px;
    gap: 8px;
    min-width: 0;
    flex: 1;
    border-radius: 11px;
  }
  .ct-buddy > kbd {
    display: none;
  }
  .ct-species-dot {
    width: 37px;
    height: 37px;
    font-size: 23px;
    flex-shrink: 0;
  }
  .ct-buddy small {
    font-size: 6px;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
  }
  .ct-buddy b {
    font-size: 13px;
  }
  .ct-buddy i {
    font-size: 8px;
    margin-top: 4px;
  }
  .ct-hotbar {
    padding: 4px;
    border-radius: 11px;
    gap: 0;
  }
  .ct-game .ct-hotbar button {
    padding: 7px 9px;
    width: 52px;
    gap: 5px;
  }
  .ct-hotbar button > span {
    font-size: 21px;
  }
  .ct-hotbar b {
    font-size: 7px;
  }
  .ct-hotbar kbd {
    display: none;
  }
  .ct-hotbar button:last-child {
    display: none;
  }
  .ct-context {
    bottom: 123px;
    left: auto;
    right: 17px;
    transform: none;
    max-width: calc(100% - 145px);
  }
  .ct-context button {
    padding: 11px 12px;
    gap: 9px;
    min-width: 0;
    max-width: 100%;
  }
  .ct-context button > kbd {
    width: 25px;
    height: 25px;
    font-size: 10px;
    flex-shrink: 0;
  }
  .ct-context span {
    font-size: 10px;
  }
  .ct-context small {
    font-size: 7px;
    line-height: 1.5;
    margin-top: 3px;
  }
  .ct-context b {
    display: none;
  }
  .ct-touch-move {
    position: absolute;
    left: 19px;
    bottom: 111px;
    display: grid;
    grid-template-columns: repeat(3, 34px);
    grid-template-rows: 34px 34px;
    gap: 4px;
    z-index: 3;
  }
  .ct-game .ct-touch-move button {
    padding: 0;
    min-height: 34px;
    height: 34px;
    background: #f4f1dfcf;
    border: 1px solid #d4dbc4;
    backdrop-filter: blur(10px);
    touch-action: none;
    font-size: 17px;
    border-radius: 8px;
  }
  .ct-touch-move button:first-child {
    grid-column: 2;
    grid-row: 1;
  }
  .ct-touch-move button:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .ct-touch-move button:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .ct-touch-move button:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
  }
  .ct-first-hint {
    bottom: 216px;
    width: 230px;
  }
  .ct-first-hint > kbd,
  .ct-first-hint > span {
    display: none;
  }
  .ct-first-hint p {
    font-size: 10px;
    padding: 8px 11px;
  }
  .ct-place-label {
    min-width: 107px;
    min-height: 40px !important;
    padding: 7px 10px !important;
  }
  .ct-place-label small {
    font-size: 6px;
    letter-spacing: 0.1em;
    margin-bottom: 3px;
  }
  .ct-place-label span {
    font-size: 9px;
  }
  .ct-place-label i {
    margin-left: 5px;
  }
  .ct-game .ct-dialog {
    width: calc(100vw - 22px);
    padding: 21px !important;
    max-height: calc(100dvh - 28px);
    border-radius: 13px;
  }
  .ct-panel-head {
    gap: 10px;
    margin-bottom: 21px;
  }
  .ct-panel-head h2 {
    font-size: 25px;
    line-height: 1.1;
    max-width: 290px;
  }
  .ct-eyebrow {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .ct-close {
    min-width: 30px !important;
  }
  .ct-intro {
    font-size: 11px;
    line-height: 1.8;
  }
  .ct-panel-meta {
    font-size: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ct-party-select {
    font-size: 8px;
  }
  .ct-panel-meta > b {
    font-size: 10px;
  }
  .ct-panel-foot {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    margin-top: 20px;
    padding-top: 17px;
  }
  .ct-panel-foot > p,
  .ct-panel-foot > span {
    max-width: none;
    font-size: 10px;
  }

  .ct-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ct-game input,
  .ct-game textarea,
  .ct-game select {
    font-size: 14px;
  }
  .ct-shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .ct-merchant {
    gap: 10px;
    padding-bottom: 20px;
  }
  .ct-merchant > span {
    height: 35px;
    width: 35px;
    flex-shrink: 0;
    font-size: 19px;
  }
  .ct-merchant p {
    font-size: 10px;
    line-height: 1.7;
  }
  .ct-merchant small {
    font-size: 8px;
    margin-top: 5px;
  }
  .ct-item-stage {
    height: 130px;
  }
  .ct-shop-grid h3 {
    font-size: 14px;
  }
  .ct-shop-grid p {
    font-size: 9px;
  }
  .ct-shop-grid button {
    font-size: 9px;
    min-height: 42px;
  }
  .ct-inventory-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ct-bag-grid {
    gap: 8px;
  }
  .ct-game .ct-bag-item {
    padding: 8px 3px;
    min-height: 137px;
  }
  .ct-bag-item .ct-gear-art {
    width: 77px;
    height: 77px;
  }
  .ct-bag-item > b {
    font-size: 9px;
  }
  .ct-bag-item > span {
    font-size: 7px;
  }
  .ct-bag-empty {
    min-height: 137px;
  }
  .ct-paperdoll .ct-dino-portrait {
    height: 265px;
  }
  .ct-character-top {
    align-items: flex-start;
    gap: 12px;
  }
  .ct-character-top h3 {
    font-size: 19px;
  }
  .ct-character-top p {
    font-size: 10px;
    line-height: 1.8;
  }
  .ct-keeper-stats {
    gap: 14px;
    flex-shrink: 0;
  }
  .ct-keeper-stats span {
    font-size: 7px;
    max-width: 47px;
    line-height: 1.5;
  }
  .ct-keeper-stats b {
    font-size: 21px;
    line-height: 1;
  }
  .ct-character-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ct-character-art > .ct-dino-portrait {
    height: 260px;
  }
  .ct-character-art {
    padding-bottom: 18px;
  }
  .ct-character-art > span {
    font-size: 8px;
  }
  .ct-character-layout section > h3 {
    font-size: 33px;
  }
  .ct-mission-board {
    grid-template-columns: 1fr;
    padding: 20px 15px;
    gap: 21px;
    border-width: 6px;
  }
  .ct-game .ct-mission-paper {
    padding: 23px;
  }
  .ct-mission-symbol {
    font-size: 35px;
    margin: 12px 0;
  }
  .ct-mission-paper h3 {
    font-size: 25px;
  }
  .ct-mission-paper p {
    font-size: 11px;
    margin-bottom: 19px;
  }
  .ct-mission-paper > small {
    font-size: 8px;
  }
  .ct-mission-paper > em {
    font-size: 10px;
  }
  .ct-mission-rewards {
    gap: 7px;
  }
  .ct-mission-rewards span {
    font-size: 9px;
    padding: 8px 11px;
  }
  .ct-locked {
    flex-direction: column;
    align-items: stretch;
  }
  .ct-report section p {
    font-size: 12px;
  }
  .ct-report h3 {
    font-size: 18px;
  }
  .ct-reward .ct-dino-portrait {
    height: 245px;
  }
  .ct-routine-state {
    padding: 15px;
    gap: 12px;
  }
  .ct-routine-state button {
    font-size: 10px;
  }
  .ct-journal-stats {
    gap: 10px;
  }
  .ct-journal-stats span {
    font-size: 8px;
  }
  .ct-journal-stats b {
    font-size: 21px;
  }
  .ct-journal-entry summary {
    gap: 10px;
  }
  .ct-journal-entry summary b {
    font-size: 11px;
  }
  .ct-town-map button {
    padding: 6px;
    gap: 5px;
    min-height: 32px;
  }
  .ct-town-map button b {
    font-size: 6px;
  }
  .ct-town-map button span {
    font-size: 9px;
  }
  .ct-map-legend {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 8px;
  }
  .ct-guide dl > div {
    grid-template-columns: 110px 1fr;
    gap: 13px;
  }
  .ct-guide dt,
  .ct-guide dd {
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .ct-top-actions > button {
    padding: 8px;
  }
  .ct-wallet {
    padding: 8px;
  }
  .ct-town-title h1 {
    font-size: 25px;
  }
  .ct-buddy i {
    font-size: 7px;
  }
  .ct-context {
    right: 12px;
    max-width: calc(100% - 136px);
  }
  .ct-context span {
    font-size: 9px;
  }
  .ct-panel-head h2 {
    font-size: 23px;
  }
  .ct-character-top {
    flex-direction: column;
  }
  .ct-keeper-stats span {
    max-width: none;
  }
  .ct-keeper-stats {
    gap: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct-game * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 700px) {
  /* The store displays the balance; keep the small-screen town header clear. */
  .ct-hud-top .ct-wallet {
    display: none;
  }
}
.ct-dino-portrait {
  pointer-events: none;
}

.ct-dialog p,
.ct-dialog label,
.ct-dialog .ct-caption,
.ct-dialog blockquote {
  color: #69755f;
}

/* The nursery reveals one individual at a time, then offers adoption. */
.ct-egg-stage {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 6px;
}
.ct-nest-art {
  width: min(340px, 100%);
  margin: -10px auto 0;
}
.ct-nest-art svg {
  display: block;
  width: 100%;
}
.ct-egg-shell {
  transform-origin: 180px 207px;
}
.ct-egg-crack {
  opacity: 0;
}
.ct-hatch-phase-hatching .ct-egg-shell {
  animation: ct-shell-wobble 0.28s ease-in-out 4;
}
.ct-hatch-phase-hatching .ct-egg-crack {
  animation: ct-shell-crack 1s ease-in forwards;
}
@keyframes ct-shell-wobble {
  0%,
  100% {
    transform: rotate(0);
  }
  30% {
    transform: rotate(-4deg);
  }
  65% {
    transform: rotate(5deg);
  }
}
@keyframes ct-shell-crack {
  0%,
  25% {
    opacity: 0;
  }
  100% {
    opacity: 0.8;
  }
}
.ct-egg-stage h3,
.ct-hatch-record h3 {
  margin: 12px 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.045em;
}
.ct-egg-stage > p,
.ct-hatch-record > p {
  font-size: 12px;
  line-height: 1.8;
  margin: 10px 0 22px;
}
.ct-nest-choice {
  display: block;
  text-align: left;
  margin: 0 auto 14px;
  max-width: 310px;
}
.ct-nest-choice select {
  margin-top: 8px;
}
.ct-egg-stage > .ct-primary {
  width: min(310px, 100%);
}
.ct-hatch-note {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: #69755f;
  margin-top: 15px;
}
.ct-hatch-reveal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.ct-hatch-portrait {
  background: radial-gradient(ellipse at 50% 65%, #e0e5d3, #ecebdf);
  border: 1px solid #dce0cf;
  border-radius: 12px;
  text-align: center;
  padding: 10px 0 26px;
}
.ct-hatch-portrait .ct-dino-portrait {
  height: 365px;
}
.ct-hatch-portrait > span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #69755f;
}
.ct-hatch-record label {
  display: block;
  margin-top: 23px;
}
.ct-hatch-record input {
  margin-top: 8px;
}
.ct-hatch-record > button {
  display: block;
  width: 100%;
  margin-top: 12px;
}
.ct-game .ct-hatch-again {
  background: transparent;
  border-color: transparent;
  margin-top: 3px;
  font-weight: 400;
}
.ct-hatch-record .ct-hatch-note {
  text-align: center;
}
.ct-field-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  margin: 24px 0 0;
}
.ct-field-notes dt {
  font-size: 10px;
  color: #69755f;
  margin-bottom: 5px;
}
.ct-field-notes dd {
  margin: 0;
  font-size: 12px;
  text-transform: capitalize;
}
.ct-individual-notes {
  font-size: 11px;
  line-height: 1.7;
  margin: 12px 12px 0;
}
@media (max-width: 700px) {
  .ct-hatch-reveal {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ct-hatch-portrait .ct-dino-portrait {
    height: 235px;
  }
  .ct-hatch-portrait {
    padding-bottom: 18px;
  }
  .ct-nest-art {
    width: min(265px, 100%);
  }
  .ct-field-notes {
    margin-top: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ct-hatch-phase-hatching .ct-egg-shell,
  .ct-hatch-phase-hatching .ct-egg-crack {
    animation: none;
  }
}
