:root {
  --night: #0b1112;
  --night-soft: #111a19;
  --night-raised: #17221f;
  --ink: #202a27;
  --ink-soft: #5e6863;
  --paper: #f0ede3;
  --paper-deep: #e2ded1;
  --paper-muted: #d6d2c6;
  --gold: #aa8548;
  --gold-bright: #d0b06f;
  --jade: #376e63;
  --jade-bright: #6f9d8e;
  --cinnabar: #913b32;
  --danger: #994b43;
  --line-dark: rgba(227, 218, 195, 0.14);
  --line-paper: rgba(45, 55, 50, 0.16);
  --shadow-low: 0 10px 28px rgba(0, 0, 0, 0.2);
  --header-height: 68px;
  --mobile-nav-height: 58px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  min-height: 100%;
  background: var(--night);
  color-scheme: dark;
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #dce2dd;
  background: #0b1112;
  font-family: "Microsoft YaHei", "Noto Serif SC", serif;
  font-size: 14px;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: url("ink-mountains.svg") center / cover no-repeat;
  opacity: 0.5;
}

body.game-active::before {
  opacity: 0.32;
}

.noscript-message {
  max-width: 720px;
  margin: 48px auto;
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
  border-left: 3px solid var(--gold);
  line-height: 1.8;
}

.noscript-message h1 {
  margin: 0 0 10px;
  font-size: 24px;
}

.noscript-message p {
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ink {
  display: none;
}

main {
  position: relative;
  z-index: 1;
}

.page {
  min-height: calc(100vh - var(--header-height));
  animation: page-in 220ms ease-out;
}

.paper {
  position: relative;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  box-shadow: var(--shadow-low);
}

.paper::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(52, 47, 36, 0.08);
  pointer-events: none;
}

/* Header */
.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(8, 14, 15, 0.96);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 250px;
}

.seal {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #c55a4e;
  border: 1px solid #a9473c;
  box-shadow: inset 0 0 0 3px #101719, inset 0 0 0 4px #78322d;
  font-size: 21px;
  transform: rotate(-2deg);
}

.brand h1 {
  margin: 0;
  color: #f0eadb;
  font-size: 18px;
  font-weight: 600;
}

.brand p {
  margin: 3px 0 0;
  color: #7f8c86;
  font-size: 10px;
}

.topbar > nav {
  display: flex;
  align-self: stretch;
  margin-left: clamp(24px, 5vw, 80px);
}

.nav-btn {
  min-width: 76px;
  padding: 0 18px;
  color: #89928e;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-btn:hover {
  color: #e4d8bd;
  background: rgba(255, 255, 255, 0.025);
}

.nav-btn.active {
  color: #eadcbf;
  border-bottom-color: var(--gold);
}

.header-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.ghost {
  min-height: 36px;
  padding: 7px 14px;
  color: #aeb7b2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ghost:hover {
  color: #f1eadb;
  border-color: #a98c5e;
  background: rgba(255, 255, 255, 0.035);
}

.ghost:active {
  transform: translateY(1px);
}

.danger:hover {
  color: #f0a49a;
  border-color: var(--danger);
}

.mobile-more,
.mobile-character,
.mobile-dock {
  display: none;
}

/* Start screen */
.start-screen {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(480px, 570px);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
  min-height: calc(100vh - var(--header-height));
  padding: 48px clamp(32px, 8vw, 128px) 64px;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0;
  color: #b79a69;
  font-size: 12px;
}

.hero-copy h2 {
  margin: 16px 0 24px;
  color: #e8e4d9;
  font-size: 52px;
  font-weight: 300;
  line-height: 1.2;
}

.hero-copy h2 em {
  color: #c7a76d;
  font-style: normal;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin: 0;
  color: #9ba49f;
  font-size: 14px;
  line-height: 1.95;
}

.catalog-stats {
  display: flex;
  gap: 40px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.catalog-stats div {
  display: flex;
  flex-direction: column;
  min-width: 86px;
}

.catalog-stats strong {
  color: #d8cfb8;
  font-size: 25px;
  font-weight: 400;
}

.catalog-stats span {
  margin-top: 4px;
  color: #77827d;
  font-size: 11px;
}

.birth-card {
  width: 100%;
  padding: 30px 34px 32px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-paper);
}

.card-title > span {
  color: var(--cinnabar);
  font-size: 26px;
}

.card-title h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
}

.card-title p {
  margin: 3px 0 0;
  color: #7a7f77;
  font-size: 12px;
}

.name-field {
  display: block;
  margin-bottom: 18px;
}

.name-field > span,
.choice-label {
  display: block;
  margin: 0 0 8px;
  color: #5d665f;
  font-size: 12px;
  font-weight: 600;
}

.birth-card input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid #b5ae9e;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.38);
  transition: border-color 160ms ease, background 160ms ease;
}

.birth-card input:hover {
  border-color: #95876d;
}

.birth-card input:focus {
  border-color: var(--jade);
  background: rgba(255, 255, 255, 0.65);
}

.birth-fieldset {
  min-width: 0;
  margin: 0 0 17px;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.roots {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice {
  min-width: 0;
  min-height: 39px;
  padding: 8px 5px;
  overflow-wrap: anywhere;
  color: #4b5550;
  border: 1px solid #b8b09e;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  font-size: 12px;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.choice:hover {
  border-color: #6e8178;
  background: rgba(55, 110, 99, 0.09);
}

.choice.selected,
.choice[aria-checked="true"] {
  color: #f1eadb;
  border-color: #294940;
  background: #294940;
}

.choice:disabled {
  color: #92948e;
  background: #d8d5cb;
}

.birth-footer {
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid var(--line-paper);
}

.birth-summary {
  min-height: 38px;
  color: #70766f;
  font-size: 12px;
  line-height: 1.65;
}

.primary {
  width: 100%;
  min-height: 46px;
  margin-top: 11px;
  padding: 12px 16px;
  color: #f0e7d3;
  border: 1px solid #29453d;
  border-radius: 2px;
  background: #29453d;
  cursor: pointer;
  font-weight: 600;
  transition: background 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.primary:hover {
  border-color: #3d665b;
  background: #355a50;
}

.primary:active {
  transform: translateY(1px);
}

.primary span {
  float: right;
}

/* Main game layout */
body.game-active {
  height: 100vh;
  overflow: hidden;
}

body.game-active main {
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

#gamePage {
  display: grid;
  grid-template-columns: 272px minmax(480px, 1fr) 258px;
  gap: 18px;
  height: 100%;
  min-height: 0;
  padding: 18px clamp(18px, 3vw, 48px);
  overflow: hidden;
}

.profile-panel,
.world-panel,
.chronicle-panel {
  min-width: 0;
  min-height: 0;
}

.profile-panel {
  height: 100%;
  padding: 22px 18px;
  overflow-y: auto;
  scrollbar-width: none;
}

.profile-panel::-webkit-scrollbar {
  display: none;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-paper);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  color: #dfd2ae;
  border: 3px double #c0a773;
  border-radius: 50%;
  background: #233b34;
  font-size: 20px;
}

.profile-head h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.profile-head p {
  margin: 4px 0 0;
  color: #737b75;
  font-size: 12px;
  line-height: 1.4;
}

.year-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0 14px;
  text-align: center;
}

.year-row div + div {
  border-left: 1px solid var(--line-paper);
}

.year-row span {
  display: block;
  color: #7b817a;
  font-size: 10px;
}

.year-row strong {
  display: block;
  margin-top: 4px;
  color: #26362f;
  font-size: 15px;
}

.realm-progress,
.wide-progress {
  position: relative;
  height: 5px;
  overflow: hidden;
  background: #cbc7b8;
}

.realm-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 24.5%, rgba(51, 54, 48, 0.35) 25%, transparent 25.5%, transparent 49.5%, rgba(51, 54, 48, 0.35) 50%, transparent 50.5%, transparent 74.5%, rgba(51, 54, 48, 0.35) 75%, transparent 75.5%);
  pointer-events: none;
}

.realm-progress div,
.wide-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--jade), var(--gold));
  transition: width 360ms ease;
}

.realm-hint {
  margin: 6px 0 14px;
  color: #747b74;
  font-size: 11px;
  text-align: right;
}

.breakthrough {
  width: 100%;
  min-height: 40px;
  margin: 0 0 14px;
  color: #f5e8c8;
  border: 1px solid #9a7540;
  border-radius: 2px;
  background: #795632;
  cursor: pointer;
  font-weight: 600;
  animation: breakthrough-pulse 1.8s ease-in-out infinite;
}

.breakthrough:hover {
  background: #8b6438;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 8px 9px;
  color: #5c665f;
  background: rgba(52, 64, 58, 0.065);
  font-size: 11px;
}

.stat strong {
  color: #315d52;
  font-size: 12px;
}

.mini-section {
  margin-top: 17px;
}

.mini-section h4 {
  margin: 0 0 9px;
  padding-bottom: 7px;
  color: #666f68;
  border-bottom: 1px solid var(--line-paper);
  font-size: 12px;
  font-weight: 600;
}

.goal-card {
  padding: 9px 10px;
  color: #667069;
  border-left: 2px solid var(--gold);
  background: rgba(66, 85, 76, 0.06);
  font-size: 11px;
  line-height: 1.65;
}

.goal-card b {
  display: block;
  color: #31594f;
  font-size: 12px;
}

.goal-progress {
  height: 3px;
  margin: 7px 0 4px;
  background: #c9c3b4;
}

.goal-progress i {
  display: block;
  height: 100%;
  background: var(--jade);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  padding: 4px 7px;
  color: #59625c;
  border: 1px solid #aaa391;
  font-size: 10px;
}

.relations,
.relation {
  font-size: 11px;
}

.relation {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed #c5c0b2;
}

.relation b {
  color: #365e54;
  font-weight: 600;
}

.empty {
  color: #888e87;
  font-size: 11px;
}

.chronicle-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  overflow: hidden;
}

.chapter-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 4px 12px;
}

.chapter-head p {
  margin: 0;
  color: #a59069;
  font-size: 11px;
}

.chapter-head h2 {
  margin: 4px 0 0;
  color: #e6e4da;
  font-size: 27px;
  font-weight: 400;
}

.weather {
  flex: 0 0 auto;
  color: #84918b;
  font-size: 11px;
}

.event-log {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  padding: 4px 9px 16px 2px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #7e6944 rgba(255, 255, 255, 0.035);
  scrollbar-width: thin;
}

.event-log:empty::before {
  content: "命数尚未落笔。完成这一年的选择，浮生纪事将从此展开。";
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 40px;
  color: #77847e;
  border: 1px dashed rgba(189, 161, 109, 0.22);
  text-align: center;
  line-height: 1.8;
}

.event-log::-webkit-scrollbar {
  width: 8px;
}

.event-log::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
}

.event-log::-webkit-scrollbar-thumb {
  border: 2px solid #111918;
  border-radius: 8px;
  background: #7e6944;
}

.year-card {
  position: relative;
  padding: 12px 15px 13px;
  border: 1px solid rgba(188, 165, 116, 0.14);
  border-left: 2px solid rgba(188, 165, 116, 0.3);
  background: rgba(255, 255, 255, 0.028);
  animation: chronicle-in 240ms ease-out both;
}

.year-card:not(.latest-year) {
  opacity: 0.82;
}

.year-card.latest-year {
  border-color: rgba(201, 173, 115, 0.46);
  border-left-color: var(--gold);
  background: rgba(181, 139, 72, 0.075);
}

.year-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(188, 165, 116, 0.12);
}

.year-card > header div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.year-card > header b {
  color: #d8bd83;
  font-size: 16px;
  font-weight: 600;
}

.year-card > header span {
  color: #78857f;
  font-size: 10px;
}

.year-card > header i {
  padding: 3px 7px;
  color: #15241f;
  background: #c2a46b;
  font-size: 9px;
  font-style: normal;
}

.year-events {
  display: grid;
  gap: 9px;
}

.event-entry {
  position: relative;
  padding-left: 13px;
  border-left: 2px solid rgba(177, 151, 97, 0.3);
}

.event-entry.important {
  padding-left: 32px;
  border-left-color: var(--gold);
}

.event-entry.important::before {
  content: "要";
  position: absolute;
  left: 8px;
  top: 1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #d8b875;
  border: 1px solid #8e7040;
  font-size: 9px;
}

.event-entry h3 {
  margin: 0 0 4px;
  color: #dcd7c8;
  font-size: 14px;
  font-weight: 500;
}

.event-entry.important h3 {
  color: #e4c47f;
}

.event-entry p {
  margin: 0;
  color: #aeb7b2;
  font-size: 12px;
  line-height: 1.72;
}

.delta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.delta span {
  padding: 3px 6px;
  color: #c1b78f;
  border: 1px solid rgba(178, 169, 132, 0.28);
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  animation: delta-in 260ms ease-out both;
}

.action-dock {
  z-index: 3;
  margin-top: 10px;
  padding: 15px 18px 17px;
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.14);
}

.dock-title {
  position: relative;
  min-height: 30px;
}

.dock-title > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-right: 100px;
}

.dock-title strong {
  color: #26342f;
  font-size: 13px;
}

.dock-title span {
  color: #747a73;
  font-size: 10px;
}

.ghost.small {
  position: absolute;
  top: -5px;
  right: 0;
  min-height: 30px;
  padding: 4px 9px;
  color: #5d675f;
  border-color: #a9a493;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 11px;
}

.action {
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  color: #3f4a44;
  border: 1px solid #b9b3a4;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  text-align: left;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 120ms ease;
}

button.action:hover:not(:disabled) {
  color: #f0e9d7;
  border-color: #31554b;
  background: #31554b;
  transform: translateY(-1px);
}

button.action:active:not(:disabled) {
  transform: translateY(0);
}

.action b {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.action span {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 10px;
  opacity: 0.72;
}

.action .odds {
  float: right;
  margin-left: 5px;
  color: #856638;
  font-size: 9px;
  font-style: normal;
}

.action:hover .odds {
  color: #e1c98f;
}

.action.cooldown {
  background: rgba(128, 70, 55, 0.08);
}

.infant-note {
  grid-column: 1 / -1;
  min-height: 48px;
  cursor: default;
}

/* Right rail */
.world-panel {
  display: flex;
  flex-direction: column;
  gap: 11px;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.world-panel::-webkit-scrollbar {
  display: none;
}

.side-card {
  padding: 15px 16px;
  box-shadow: none;
}

.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-paper);
}

.side-title h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.side-title span {
  color: #777d75;
  font-size: 10px;
  text-align: right;
}

.path-panel {
  padding-top: 10px;
  color: #69716b;
  font-size: 11px;
}

.path-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.path-row b {
  color: #765b32;
}

.technique {
  margin-top: 7px;
  padding: 8px;
  border-left: 2px solid var(--jade);
  background: rgba(55, 110, 99, 0.06);
}

.technique strong {
  font-size: 11px;
}

.technique span {
  display: block;
  margin-top: 3px;
  color: #727a73;
  font-size: 10px;
}

.rumor {
  padding: 9px 0;
  color: #626a64;
  border-bottom: 1px dashed #c7c1b2;
  font-size: 11px;
  line-height: 1.6;
}

.rumor:last-child {
  border-bottom: 0;
}

.rumor b {
  color: #855f38;
  font-weight: 600;
}

.inventory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding-top: 11px;
}

.inventory.empty {
  display: block;
  padding: 18px 0 8px;
  text-align: center;
}

.item {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: var(--ink);
  border: 1px solid #bcb5a6;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  font-size: 18px;
  transition: border-color 150ms ease, background 150ms ease, transform 120ms ease;
}

.item:hover {
  border-color: #806b43;
  background: #d9cfb8;
  transform: translateY(-1px);
}

.item-tip {
  margin: 8px 0 0 !important;
  color: #80847d !important;
  text-align: center;
}

.karma-track {
  position: relative;
  height: 7px;
  margin: 16px 0 13px;
  background: linear-gradient(90deg, #80483f, #c9c3b5 50%, #487064);
}

.karma-track i {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 4px;
  height: 15px;
  background: #211f1b;
  transition: left 360ms ease;
}

.side-card > p {
  margin-bottom: 0;
  color: #717971;
  font-size: 11px;
  line-height: 1.6;
}

/* Choice dialog and general modal */
.choice-box,
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 8, 0.82);
  animation: overlay-in 180ms ease-out;
}

.choice-dialog {
  width: min(660px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 28px 30px;
  color: #d8d8c9;
  border: 1px solid #92794d;
  border-radius: 3px;
  background: #1b2d28;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.choice-dialog small {
  color: #c2a36c;
  font-size: 10px;
}

.choice-dialog h3 {
  margin: 10px 0 8px;
  color: #ead9b4;
  font-size: 23px;
  font-weight: 500;
}

.choice-dialog p {
  margin: 0;
  color: #b1bbb5;
  font-size: 13px;
  line-height: 1.85;
}

.event-choices {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.event-choice {
  min-height: 48px;
  padding: 12px 14px;
  color: #c8c9bb;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: left;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.event-choice:hover {
  color: #f0dfb9;
  border-color: #9b8153;
  background: rgba(181, 139, 72, 0.09);
}

.event-choice:active {
  background: rgba(181, 139, 72, 0.15);
}

.choice-dialog em {
  display: block;
  margin-top: 14px;
  color: #7d8983;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.event-choice.choice-skip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #9ca8a2;
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
}

.event-choice.choice-skip small {
  color: #6f7b75;
  text-align: right;
}

.event-choice.choice-skip:hover {
  color: #d5d9d4;
  border-color: rgba(197, 176, 130, 0.34);
  background: rgba(255, 255, 255, 0.025);
}

.modal-card {
  width: min(570px, 100%);
  max-height: calc(100dvh - 48px);
  padding: 32px;
  overflow-y: auto;
}

.modal-close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -18px -18px 0 12px;
  color: #5d655f;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  font-size: 23px;
}

.modal-close:hover {
  color: var(--cinnabar);
  border-color: #b49a8b;
}

.ending {
  text-align: center;
}

.ending .ending-seal {
  color: var(--cinnabar);
  font-size: 44px;
}

.ending h2 {
  margin: 10px 0;
  font-size: 27px;
}

.ending p {
  color: #636c66;
  line-height: 1.9;
}

.ending-stats {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 23px 0;
}

.ending-stats div {
  font-size: 10px;
}

.ending-stats strong {
  display: block;
  color: #376057;
  font-size: 19px;
}

.share-dialog {
  display: grid;
  justify-items: center;
  gap: 13px;
  text-align: center;
}

.share-dialog h2,
.share-dialog p {
  margin: 0;
}

.share-dialog p {
  max-width: 32em;
  color: #646c66;
  line-height: 1.75;
}

.share-qr {
  width: min(256px, 64vw);
  height: auto;
  border: 1px solid #bbb29d;
  background: #f3eedf;
}

.share-url {
  max-width: 100%;
  padding: 7px 10px;
  overflow-wrap: anywhere;
  color: #31554b;
  border-block: 1px solid #c6bfaf;
  font-size: 11px;
}

.share-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 20px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 10px 17px;
  color: #eee4cb;
  border: 1px solid #806d49;
  border-radius: 2px;
  background: #202d29;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 12px;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Atlas, legacy, help */
.atlas-page,
.legacy-page,
.help-page {
  padding: 42px clamp(22px, 7vw, 100px) 64px;
}

.page-heading {
  max-width: 1040px;
  margin: 0 auto 27px;
  text-align: center;
}

.page-heading p {
  margin: 0;
  color: #a18f6c;
  font-size: 11px;
}

.page-heading h2 {
  margin: 7px 0;
  font-size: 31px;
  font-weight: 400;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 17px;
}

.filter {
  min-width: 84px;
  padding: 8px 16px;
  color: #89938e;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}

.filter:hover {
  color: #dcc696;
}

.filter.active,
.filter[aria-pressed="true"] {
  color: #e2c88f;
  border-color: #b59761;
}

.atlas-progress {
  display: grid;
  grid-template-columns: 96px minmax(120px, 1fr) auto;
  align-items: center;
  gap: 18px;
  max-width: 780px;
  margin: 0 auto 24px;
  padding: 17px 22px;
}

.atlas-progress strong {
  font-size: 24px;
}

.atlas-progress span,
.atlas-progress p {
  color: #727a73;
  font-size: 10px;
}

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  max-width: 1200px;
  margin: auto;
}

.atlas-card {
  min-height: 118px;
  padding: 16px;
  color: var(--ink);
  border-top: 2px solid var(--jade);
  background: var(--paper);
}

.atlas-card.locked {
  color: #737872;
  border-top-color: #9d9b93;
  background: #d8d5cc;
  opacity: 0.62;
}

.atlas-card small {
  color: #846f4d;
  font-size: 10px;
}

.atlas-card h3 {
  margin: 8px 0 5px;
  font-size: 14px;
}

.atlas-card p {
  margin: 0;
  color: #68716b;
  font-size: 11px;
  line-height: 1.6;
}

.legacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 18px;
  max-width: 1100px;
  margin: auto;
}

.legacy-main,
.past-lives {
  padding: 26px;
}

.legacy-main h3,
.past-lives h3 {
  margin: 0 0 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-paper);
  font-size: 14px;
}

.legacy-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 28px;
}

.legacy-stat {
  padding: 13px 8px;
  background: rgba(53, 68, 61, 0.065);
  text-align: center;
}

.legacy-stat strong {
  display: block;
  color: #366057;
  font-size: 21px;
}

.legacy-stat span {
  color: #737a73;
  font-size: 10px;
}

.perk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.perk {
  padding: 12px;
  border: 1px solid #b9b2a2;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.perk:hover {
  border-color: var(--jade);
}

.perk.owned {
  color: #eee7d6;
  border-color: #314b43;
  background: #314b43;
}

.perk b {
  font-size: 12px;
}

.perk p {
  margin: 5px 0 0;
  color: #747a73;
  font-size: 10px;
}

.perk.owned p {
  color: #c3cec7;
}

.life {
  padding: 11px 0;
  border-bottom: 1px dashed #bbb5a7;
}

.life b {
  font-size: 12px;
}

.life p {
  margin: 4px 0;
  color: #717871;
  font-size: 10px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 960px;
  margin: auto;
}

.help-grid article {
  min-height: 190px;
  padding: 25px;
  border-top: 2px solid var(--gold);
  box-shadow: none;
}

.help-grid b {
  color: #a4885a;
  font-size: 25px;
}

.help-grid h3 {
  margin: 12px 0 8px;
  font-size: 17px;
}

.help-grid p {
  margin: 0;
  color: #66706a;
  font-size: 12px;
  line-height: 1.85;
}

.guide-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 960px;
  margin: 18px auto 0;
}

.guide-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: #d9d7ca;
  border: 1px solid rgba(190, 162, 105, 0.26);
  border-left: 2px solid var(--gold);
  background: rgba(11, 18, 18, 0.74);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.guide-links a:hover {
  border-color: rgba(202, 174, 116, 0.58);
  background: rgba(24, 37, 34, 0.88);
}

.guide-links strong {
  color: #e3c98e;
  font-size: 14px;
}

.guide-links span {
  color: #8f9c96;
  font-size: 11px;
}

/* Searchable guide pages */
.article-body {
  min-height: 100vh;
}

.article-topbar {
  justify-content: space-between;
}

.article-topbar .brand {
  color: inherit;
  text-decoration: none;
}

.article-topbar .brand strong {
  color: #f0eadb;
  font-size: 18px;
  font-weight: 600;
}

.article-nav {
  display: flex;
  gap: 8px;
}

.article-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 14px;
  color: #aeb7b2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.article-nav a:hover {
  color: #f1eadb;
  border-color: #a98c5e;
}

.article-shell {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 32px));
  margin: 42px auto 70px;
}

.article-hero {
  margin-bottom: 18px;
  padding: 28px 30px;
  border-left: 3px solid var(--gold);
  background: rgba(10, 17, 17, 0.86);
}

.article-hero small {
  color: #b89a65;
}

.article-hero h1 {
  margin: 9px 0 12px;
  color: #ece6d7;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 400;
}

.article-hero p {
  max-width: 700px;
  margin: 0;
  color: #a8b2ad;
  line-height: 1.9;
}

.article-content {
  padding: clamp(24px, 5vw, 54px);
}

.article-content h2 {
  margin: 36px 0 12px;
  padding-bottom: 9px;
  color: #2c433b;
  border-bottom: 1px solid #c8c1af;
  font-size: 22px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 24px 0 8px;
  color: #5d4b2f;
  font-size: 16px;
}

.article-content p,
.article-content li {
  color: #46524d;
  font-size: 14px;
  line-height: 2;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
}

.article-note {
  margin: 22px 0;
  padding: 15px 18px;
  color: #36574e;
  border-left: 3px solid var(--jade);
  background: #e3e4d9;
  line-height: 1.8;
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #c8c1af;
}

.article-cta a {
  padding: 11px 18px;
  color: #f2e6c8;
  background: #315f54;
  text-decoration: none;
}

.article-footer {
  position: relative;
  z-index: 1;
  padding: 0 16px 32px;
  color: #77847e;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 700px) {
  .guide-links {
    grid-template-columns: 1fr;
  }

  .guide-links a,
  .article-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-topbar {
    padding: 0 12px;
  }

  .article-topbar .brand {
    min-width: 0;
  }

  .article-topbar .brand p {
    display: none;
  }

  .article-nav a:first-child {
    display: none;
  }

  .article-shell {
    margin-top: 22px;
  }

  .article-hero {
    padding: 22px 20px;
  }
}

.mobile-dock {
  display: none;
}

/* Medium desktop */
@media (max-width: 1180px) and (min-width: 821px) {
  #gamePage {
    grid-template-columns: 232px minmax(420px, 1fr) 218px;
    gap: 12px;
    padding: 14px;
  }

  .profile-panel {
    padding: 18px 14px;
  }

  .side-card {
    padding: 13px;
  }

  .stat {
    padding: 7px;
  }

  .action-dock {
    padding: 13px 14px 14px;
  }

  .action-grid {
    gap: 6px;
  }
}

@media (max-height: 820px) and (min-width: 821px) {
  #gamePage {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .chapter-head {
    padding-bottom: 8px;
  }

  .chapter-head h2 {
    font-size: 23px;
  }

  .profile-head {
    padding-bottom: 10px;
  }

  .year-row {
    margin: 11px 0;
  }

  .mini-section {
    margin-top: 12px;
  }

  .stat {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .action {
    min-height: 52px;
  }
}

/* Keep the chronicle readable on compact landscape windows just above the
   mobile breakpoint. */
@media (max-width: 900px) and (max-height: 620px) and (min-width: 821px) {
  .chronicle-panel {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .chapter-head {
    display: none;
  }

  .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 5px;
  }

  .action-dock {
    min-height: 145px;
    padding: 8px 10px 9px;
  }

  .action {
    min-height: 44px;
    padding: 7px;
  }

  .action span {
    display: none;
  }

  .dock-title {
    margin-bottom: 7px;
  }
}

/* Mobile and portrait tablet */
@media (max-width: 820px) {
  :root {
    --header-height: 54px;
  }

  body {
    font-size: 14px;
  }

  .topbar {
    height: var(--header-height);
    padding: 0 12px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .seal {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .brand h1 {
    font-size: 15px;
  }

  .brand p {
    display: none;
  }

  .mobile-character:not(.hidden) {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-left: 10px;
    overflow: hidden;
  }

  .mobile-character strong,
  .mobile-character span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-character strong {
    color: #e6dfcf;
    font-size: 12px;
  }

  .mobile-character span {
    margin-top: 2px;
    color: #89958f;
    font-size: 10px;
  }

  .mobile-more {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    color: #c9c5b8;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
  }

  .topbar > nav,
  .header-actions {
    display: none;
  }

  .topbar.menu-open > nav {
    position: absolute;
    top: calc(100% + 6px);
    right: 10px;
    display: grid;
    align-self: auto;
    width: min(260px, calc(100vw - 20px));
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(202, 182, 141, 0.26);
    background: #15201e;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  }

  .topbar.menu-open .nav-btn {
    min-height: 42px;
    border: 0;
    border-left: 2px solid transparent;
    text-align: left;
  }

  .topbar.menu-open .nav-btn.active {
    border-left-color: var(--gold);
    background: rgba(255, 255, 255, 0.035);
  }

  .topbar.menu-open .header-actions {
    position: absolute;
    z-index: 2;
    top: calc(100% + 190px);
    right: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(260px, calc(100vw - 20px));
    padding: 0 7px 7px;
    background: #15201e;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  }

  .topbar.menu-open .header-actions .ghost {
    width: 100%;
  }

  .start-screen {
    display: block;
    min-height: calc(100vh - var(--header-height));
    padding: 26px 16px 42px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy h2 {
    margin: 10px 0 14px;
    font-size: 32px;
    line-height: 1.25;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.75;
  }

  .catalog-stats {
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-top: 14px;
  }

  .catalog-stats div {
    min-width: 0;
  }

  .catalog-stats strong {
    font-size: 20px;
  }

  .catalog-stats span {
    font-size: 10px;
  }

  .birth-card {
    margin-top: 26px;
    padding: 22px 18px 24px;
  }

  .card-title {
    margin-bottom: 17px;
    padding-bottom: 14px;
  }

  .choice-grid,
  .roots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice {
    min-height: 42px;
  }

  body.game-active {
    position: fixed;
    inset: 0;
    width: 100%;
    height: var(--app-height, 100dvh);
  }

  body.game-active main {
    height: calc(var(--app-height, 100dvh) - var(--header-height) - var(--mobile-nav-height) - env(safe-area-inset-bottom));
  }

  #gamePage {
    position: relative;
    display: block;
    height: 100%;
    padding: 0;
    overflow: hidden;
  }

  .profile-panel,
  .world-panel,
  .chronicle-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .paper::after {
    display: none;
  }

  body[data-mobile-view="chronicle"] .profile-panel,
  body[data-mobile-view="chronicle"] .world-panel,
  body[data-mobile-view="profile"] .chronicle-panel,
  body[data-mobile-view="profile"] .world-panel,
  body[data-mobile-view="world"] .chronicle-panel,
  body[data-mobile-view="world"] .profile-panel {
    display: none;
  }

  .profile-panel {
    padding: 18px 16px 28px;
    overflow-y: auto;
  }

  .profile-head {
    max-width: 560px;
    margin: auto;
  }

  .stat-list,
  .mini-section,
  .profile-panel .mini-section {
    display: grid;
  }

  .chronicle-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 8px 10px 0;
    background: rgba(11, 17, 18, 0.84);
  }

  body::before {
    background-position: 58% center;
    opacity: 0.4;
  }

  body.game-active::before {
    opacity: 0.28;
  }

  .chapter-head {
    padding: 2px 3px 8px;
  }

  .chapter-head h2 {
    font-size: 21px;
  }

  .chapter-head p,
  .weather {
    font-size: 10px;
  }

  .event-log {
    gap: 7px;
    padding-right: 4px;
    padding-bottom: 12px;
  }

  .year-card {
    padding: 11px 11px 12px;
  }

  .event-entry p {
    font-size: 12px;
    line-height: 1.65;
  }

  .action-dock {
    margin: 0 -10px;
    padding: 12px 12px calc(13px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.2);
  }

  .dock-title > div {
    display: block;
    padding-right: 92px;
  }

  .dock-title strong,
  .dock-title span {
    display: block;
  }

  .dock-title span {
    margin-top: 3px;
  }

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 30dvh;
    overflow-y: auto;
  }

  .action {
    min-height: 54px;
  }

  .world-panel {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    padding: 12px 12px 28px;
    overflow-y: auto;
    background: var(--night-soft);
  }

  .side-card {
    padding: 16px;
  }

  .inventory {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .mobile-dock {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: #101817;
  }

  body.game-active.has-character .mobile-dock {
    display: grid;
  }

  .mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    color: #8d9892;
    border: 0;
    border-top: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
  }

  .mobile-tab span {
    font-size: 16px;
  }

  .mobile-tab.active {
    color: #e1c890;
    border-top-color: var(--gold);
    background: rgba(255, 255, 255, 0.025);
  }

  .choice-box,
  .modal {
    padding: 12px;
  }

  .choice-dialog,
  .modal-card {
    max-height: calc(100dvh - 24px);
  }

  .choice-dialog {
    padding: 22px 17px;
  }

  .choice-dialog h3 {
    font-size: 20px;
  }

  .event-choice {
    min-height: 50px;
  }

  .event-choice.choice-skip {
    display: block;
  }

  .event-choice.choice-skip small {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .toast {
    top: calc(var(--header-height) + 10px);
    bottom: auto;
    transform: translate(-50%, -8px);
  }

  .toast.show {
    transform: translate(-50%, 0);
  }

  .atlas-page,
  .legacy-page,
  .help-page {
    padding: 28px 14px 44px;
  }

  .page-heading {
    margin-bottom: 20px;
  }

  .page-heading h2 {
    font-size: 25px;
  }

  .filters {
    justify-content: flex-start;
    padding: 0 2px 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter {
    flex: 0 0 auto;
  }

  .atlas-progress {
    grid-template-columns: 76px minmax(80px, 1fr);
    gap: 12px;
    padding: 15px;
  }

  .atlas-progress p {
    display: none;
  }

  .atlas-grid {
    grid-template-columns: 1fr;
  }

  .legacy-layout,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .legacy-main,
  .past-lives {
    padding: 20px 17px;
  }

  .legacy-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .perk-grid {
    grid-template-columns: 1fr;
  }

  .help-grid article {
    min-height: 0;
    padding: 20px;
  }
}

@media (max-width: 380px) {
  .topbar {
    padding: 0 8px;
  }

  .brand h1 {
    font-size: 14px;
  }

  .mobile-character {
    margin-left: 6px;
  }

  .start-screen {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero-copy h2 {
    font-size: 29px;
  }

  .birth-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .action-grid {
    gap: 5px;
  }

  .action {
    padding: 8px;
  }

  .inventory {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) and (max-height: 620px) {
  .chronicle-panel {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .chapter-head {
    display: none;
  }

  .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 35dvh;
  }

  .action {
    min-height: 48px;
  }

  .action span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .breakthrough {
    animation: none !important;
  }
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes chronicle-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes delta-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes breakthrough-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(181, 139, 72, 0); }
  50% { box-shadow: 0 0 14px rgba(181, 139, 72, 0.26); }
}
