@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/lora-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/lora-latin-700.woff2") format("woff2");
}

:root {
  --bg-page: #ead8bc;
  --bg-card: #fffaf2;
  --bg-card-soft: #f3e4cb;
  --text-main: #2f2418;
  --text-soft: #765c42;
  --line: #d6b894;
  --accent: #bc6c25;
  --accent-strong: #8f4513;
  --success: #436b38;
  --warning: #9b5f18;
  --muted: #68727a;
  --shadow: rgba(72, 37, 11, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top, rgba(255, 250, 242, 0.85), transparent 38%),
    linear-gradient(180deg, #f2e6d3 0%, var(--bg-page) 45%, #d6b58c 100%);
  color: var(--text-main);
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

small {
  color: var(--text-soft);
}

.hidden {
  display: none !important;
}

.page {
  min-height: 100vh;
  padding: 24px 0 40px;
}

.wrapper {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 16px;
}

.site-footer {
  align-items: center;
  color: var(--text-soft);
  display: flex;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  padding: 18px 16px 0;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
}

.hero-mini {
  align-items: center;
  background: linear-gradient(135deg, rgba(68, 33, 13, 0.96), rgba(121, 63, 22, 0.94));
  border: 1px solid rgba(255, 241, 214, 0.28);
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(82, 42, 16, 0.18);
  color: #fff4e0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  position: sticky;
  top: 10px;
  z-index: 24;
}

.hero-mini__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.hero-mini__stats {
  display: flex;
  gap: 12px;
}

.hero-mini__actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.hero-mini__stat {
  background: rgba(255, 246, 232, 0.12);
  border: 1px solid rgba(255, 234, 200, 0.2);
  border-radius: 14px;
  color: #fff8ee;
  min-width: 120px;
  padding: 10px 12px;
}

.hero__copy {
  max-width: 720px;
}

.hero__intro {
  color: rgba(255, 236, 210, 0.9);
  margin-top: 14px;
  max-width: 52ch;
}

.hero__stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  transition: gap 0.24s ease;
}

.hero__stat,
.stat-card,
.room-card,
.resource-card,
.guest-card,
.panel,
.flash {
  background: var(--bg-card);
  border: 1px solid rgba(214, 184, 148, 0.9);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(82, 42, 16, 0.08);
}

.hero__stat {
  background: rgba(255, 246, 232, 0.12);
  border-color: rgba(255, 234, 200, 0.2);
  color: #fff8ee;
  padding: 16px;
  transition: opacity 0.22s ease, transform 0.22s ease, padding 0.22s ease;
}

.hero__label,
.stat-card__label,
.eyebrow {
  color: var(--text-soft);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__label {
  color: rgba(255, 234, 200, 0.82);
}

.hero__actions {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.hero__action-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

[data-counter] {
  display: inline-block;
}

.counter--gain {
  animation: counterPulse 0.9s ease;
  color: #fff8d1;
  text-shadow: 0 0 16px rgba(255, 236, 166, 0.55);
}

@keyframes counterPulse {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.12);
  }

  60% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge,
.status-pill {
  background: rgba(255, 245, 228, 0.12);
  border: 1px solid rgba(255, 233, 194, 0.26);
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 12px;
}

.status-pill {
  background: var(--bg-card-soft);
  border-color: var(--line);
  color: var(--text-main);
}

.status-pill--completed,
.status-pill--success {
  background: rgba(67, 107, 56, 0.12);
  color: var(--success);
}

.status-pill--warning,
.status-pill--active {
  background: rgba(155, 95, 24, 0.12);
  color: var(--warning);
}

.status-pill--available,
.status-pill--pending {
  background: rgba(188, 108, 37, 0.12);
  color: var(--accent-strong);
}

.status-pill--away {
  background: rgba(104, 114, 122, 0.12);
  color: var(--muted);
}

.content {
  align-items: flex-start;
  display: grid;
  gap: 18px;
  grid-template-columns: 84px minmax(0, 1fr);
  margin-top: 18px;
}

.navigation {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 18px;
}

.navigation__link {
  align-items: center;
  background: rgba(107, 63, 29, 0.9);
  border: 1px solid rgba(255, 236, 205, 0.28);
  border-radius: 18px;
  display: flex;
  height: 58px;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease;
  width: 58px;
}

.navigation__link:hover,
.navigation__link--active {
  background: var(--accent);
  transform: translateY(-2px);
}

.navigation__link--settings {
  flex-shrink: 0;
}

.navigation__icon {
  height: 28px;
  width: 28px;
}

.section-wrapper {
  min-width: 0;
}

.section {
  display: none;
  position: relative;
}

.section--active {
  display: block;
}

.panel-stack {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 22px;
}

.panel--feature {
  background: linear-gradient(180deg, #fffaf1, #f2dfc1);
}

.panel__header,
.room-card__top,
.guest-card__top,
.timeline__head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.headline-big {
  display: block;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.headline-med {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.headline-sml {
  display: block;
  font-size: 1.05rem;
  font-weight: 400;
  margin-top: 8px;
}

.flash-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.flash {
  padding: 14px 16px;
}

.flash--success {
  border-left: 5px solid var(--success);
}

.flash--warning {
  border-left: 5px solid var(--warning);
}

.stat-grid,
.quest-summary,
.room-grid,
.resource-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.stat-grid,
.quest-summary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.room-grid,
.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.stat-card,
.room-card,
.resource-card {
  padding: 18px;
}

.resource-card--victory {
  background: linear-gradient(135deg, #fff5cc 0%, #f4d98b 52%, #e0b65c 100%);
  border-color: rgba(143, 93, 12, 0.45);
  box-shadow: 0 16px 30px rgba(123, 84, 18, 0.2);
  margin-top: 18px;
}

.resource-card--victory p,
.resource-card--victory strong {
  color: #4d3410;
}

.stat-card strong,
.hero__stat strong {
  display: block;
  font-size: 1.45rem;
  margin-top: 8px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.timeline__item {
  border-left: 3px solid var(--line);
  padding-left: 14px;
}

.check-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.check-list li::before {
  color: var(--accent);
  content: "•";
  margin-right: 10px;
}

.customer-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 18px;
}

.guest-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  overflow: hidden;
}

.guest-card--locked,
.resource-card--locked,
.room-card--locked {
  opacity: 0.82;
}

.guest-card__image {
  align-self: end;
  background: linear-gradient(180deg, #f8e8ce, #ead0a9);
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.guest-card__content {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.guest-card__content .inline-form {
  align-self: start;
}

.room-card__image {
  background: linear-gradient(180deg, #f7ead3, #ecd0a2);
  border: 1px solid rgba(214, 184, 148, 0.8);
  border-radius: 16px;
  height: 130px;
  margin-bottom: 14px;
  object-fit: cover;
  width: 100%;
}

.chart-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 14px;
}

.chart-filter {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.finance-chart {
  background: rgba(255, 248, 238, 0.92);
  border: 1px solid rgba(214, 184, 148, 0.8);
  border-radius: 16px;
  display: block;
  width: 100%;
}


.guest-detail {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.guest-detail__image {
  background: linear-gradient(180deg, #f7e4c6, #e5c08a);
  border-radius: 18px;
  object-fit: contain;
  padding: 0;
  width: 100%;
}

.guest-detail__content {
  display: grid;
  gap: 14px;
}

.quote {
  background: rgba(255, 250, 242, 0.85);
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  color: var(--text-soft);
  padding: 14px 16px;
}

.reward-box {
  align-items: center;
  background: rgba(188, 108, 37, 0.12);
  border-radius: 16px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.requirement-list,
.metric-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.requirement,
.metric-list__row {
  align-items: center;
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.guest-card--locked .guest-card__content,
.resource-card--locked,
.room-card--locked {
  background: linear-gradient(180deg, #f7efe2, #efe2cd);
}

.requirement--done {
  background: rgba(67, 107, 56, 0.08);
  border-color: rgba(67, 107, 56, 0.2);
}

.action-row,
.inline-form,
.settings-form,
.economy-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.top-space {
  margin-top: 16px;
}

.addon-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.addon-chip {
  background: #fff7ea;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-main);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 12px;
}

.addon-chip--owned {
  background: rgba(67, 107, 56, 0.08);
  border-color: rgba(67, 107, 56, 0.18);
  color: var(--success);
}

.room-addon-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.room-addon-grid .resource-card {
  padding: 14px;
}

.room-addon-grid .room-card__top strong {
  font-size: 0.92rem;
}

.room-addon-grid .status-pill,
.room-addon-grid .button {
  font-size: 0.8rem;
}

.settings-form,
.economy-form {
  align-items: flex-end;
  margin-top: 18px;
}

.economy-form__actions {
  align-self: flex-end;
}

.form-field {
  display: grid;
  gap: 8px;
  min-width: min(100%, 200px);
}

.input {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-main);
  padding: 12px 14px;
}

.input--small {
  max-width: 120px;
}

.input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(188, 108, 37, 0.16);
}

.button {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border: 1px solid rgba(255, 239, 214, 0.24);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(124, 69, 24, 0.18);
  color: #fffaf2;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  padding: 11px 18px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.button--secondary {
  background: #fff8ed;
  border-color: var(--line);
  box-shadow: none;
  color: var(--text-main);
}

.button--absolute {
  position: absolute;
  right: 0;
  top: -60px;
}

.button--settings-close {
  top: -28px;
}

.helper-text {
  color: var(--text-soft);
  margin-top: 16px;
  max-width: 60ch;
}

.store-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.store-table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.store-table th,
.store-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
  vertical-align: middle;
}

.store-table th {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-table tbody tr:last-child td {
  border-bottom: 0;
}

.store-table__hint {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-top: 4px;
}

@media screen and (max-width: 900px) {
  .hero,
  .guest-detail,
  .content {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .navigation {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    position: static;
  }

  .navigation__link {
    width: 100%;
  }

  .button--absolute {
    margin-bottom: 12px;
    position: static;
  }
}

@media screen and (max-width: 640px) {
  .page {
    padding-top: 14px;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.35rem;
  }

  .hero-mini {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    padding-right: 58px;
    position: sticky;
  }

  .hero-mini__actions {
    align-items: center;
    gap: 0;
    width: 100%;
  }

  .hero-mini__stats {
    gap: 8px;
    width: 100%;
  }

  .hero-mini__title {
    line-height: 1.1;
    width: 100%;
  }

  .hero-mini__stat {
    min-width: 0;
    padding: 8px 10px;
    width: calc(50% - 4px);
  }

  .hero-mini .navigation__link--settings {
    border-radius: 12px;
    height: 36px;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 36px;
  }

  .hero-mini .navigation__icon {
    height: 18px;
    width: 18px;
  }

  .hero,
  .panel {
    padding: 18px;
  }

  .hero__stats,
  .economy-form {
    grid-template-columns: 1fr;
  }

  .guest-card {
    grid-template-columns: 1fr;
  }

  .guest-card__image {
    max-height: 180px;
  }

  .store-table {
    min-width: 0;
  }

  .store-table thead {
    display: none;
  }

  .store-table,
  .store-table tbody,
  .store-table tr,
  .store-table td {
    display: block;
    width: 100%;
  }

  .store-table tr {
    background: #fffaf2;
    border: 1px solid var(--line);
    border-radius: 16px;
    margin-bottom: 14px;
    padding: 14px;
  }

  .store-table tbody tr:last-child td {
    border-bottom: 1px solid var(--line);
  }

  .store-table td {
    align-items: center;
    border-bottom: 1px solid rgba(214, 184, 148, 0.5);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 0;
    text-align: right;
  }

  .store-table td::before {
    color: var(--text-soft);
    content: attr(data-label);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
  }

  .store-table td:first-child {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

  .store-table td:first-child::before {
    content: none;
  }

  .store-table td:last-child {
    border-bottom: 0;
  }

  .store-table td:last-child .inline-form,
  .store-table td:last-child .button {
    width: 100%;
  }
}
