:root {
  --ink: #f4efe4;
  --muted: #cbbfa8;
  --gold: #e4c36a;
  --gold-deep: #9a7420;
  --paper: #f3ead6;
  --bg: #0c0d10;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Nunito, system-ui, sans-serif;
  color: var(--ink);
  background: #08090c url("../img/home-hero.jpg") center / cover no-repeat fixed;
  min-height: 100dvh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% 18%, rgba(20,16,10,.15), transparent 55%),
    linear-gradient(180deg, rgba(6,7,10,.42) 0%, rgba(6,7,10,.72) 55%, rgba(6,7,10,.88) 100%);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 22px 14px 64px;
}
.hero, .panel, .top, section { min-width: 0; max-width: 100%; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.brand strong {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 0.9;
}
.brand em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(228,195,106,.35);
  border-radius: 999px;
  padding: 0.45em 0.9em;
  background: rgba(12,10,8,.45);
}
.nav-links a:hover { background: rgba(228,195,106,.12); }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .nav-links { margin-left: 0; }
  .nav-links a { padding: 0.35em 0.7em; font-size: 0.85rem; }
  .brand strong { font-size: 1.7rem; }
  .brand em { letter-spacing: 0.06em; }
  .panel { padding: 16px 14px 16px; }
  .rooms-head { flex-direction: column; align-items: flex-start; }
}

.panel {
  background: rgba(10, 9, 8, 0.72);
  border: 1px solid rgba(228,195,106,.22);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  border-radius: 18px;
  padding: 22px 22px 20px;
  backdrop-filter: blur(8px);
}

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  letter-spacing: 0.06em;
  line-height: 0.86;
  margin: 0 0 8px;
  text-shadow: 0 6px 24px rgba(0,0,0,.55);
}
h1 span {
  display: block;
  font-family: Fraunces, serif;
  font-size: 0.28em;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}
.lede {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.how {
  display: grid;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.how li {
  display: grid;
  grid-template-columns: 1.6em minmax(0, 1fr);
  gap: 8px;
  color: #efe6d2;
  font-size: 0.95rem;
}
.how li span, .lede, .tiny, .empty {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.how b { color: var(--gold); }

.circle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pip {
  border-radius: 999px;
  padding: 0.25em 0.7em;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.pip.Salt { background: #d7e36a; color: #2f3608; }
.pip.Soft { background: #f6b04c; color: #3d2208; }
.pip.Life { background: #7dcea0; color: #14352a; }
.pip.Hard { background: #9eb6c8; color: #17232c; }

form.open {
  display: grid;
  gap: 10px;
}
label {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
input {
  width: 100%;
  border: 1px solid rgba(228,195,106,.28);
  background: rgba(255,248,232,.08);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.75em 0.85em;
  font: inherit;
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
}
input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
}

button.go, button.refresh {
  font: inherit;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
}
button.go {
  background: linear-gradient(#f0d78a, #c9a03a);
  color: #2a1d05;
  padding: 0.8em 1.15em;
  box-shadow: 0 8px 20px rgba(180,130,20,.28);
}
button.go:hover { filter: brightness(1.05); }
button.refresh {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(228,195,106,.35);
  padding: 0.45em 0.75em;
}

.err {
  color: #ffb4a2;
  min-height: 1.2em;
  margin: 4px 0 0;
  font-weight: 700;
}

.rooms-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 10px;
}
.rooms-head h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.7rem;
}
.rooms {
  display: grid;
  gap: 8px;
}
.table-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(228,195,106,.2);
  background: rgba(255,248,232,.05);
  color: inherit;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
}
.table-row:hover { background: rgba(228,195,106,.1); }
.table-row strong { font-size: 1.05rem; }
.table-row .meta { color: var(--muted); font-size: 0.85rem; }
.table-row .sit {
  color: #2a1d05;
  background: var(--gold);
  border-radius: 999px;
  padding: 0.25em 0.7em;
  font-weight: 800;
  font-size: 0.8rem;
}
.empty {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.tiny {
  margin: 14px 0 0;
  color: #a89b86;
  font-size: 0.82rem;
}
