/* Haven's continent pages (Haven/*.html). Built by ImageBatch/GoodberryMap/continents/build-continent-pages.cjs.
   Each page sets --accent and --accent-rgb on <body>. */
.hc-page *, .hc-page *::before, .hc-page *::after { box-sizing: border-box; }

.hc-page {
  --bg: #07090c;
  --card: #0e1116;
  --line: rgba(var(--accent-rgb), 0.16);
  --text: #eee7da;
  --muted: rgba(236, 228, 214, 0.68);
  --dim: rgba(236, 228, 214, 0.26);
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
.hc-page::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 80% 45% at 50% 0%, rgba(var(--accent-rgb), 0.10) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hc-page a { color: var(--accent); text-decoration: none; }
.hc-page a:hover { text-decoration: underline; }

/* Header */
.hc-head { position: relative; z-index: 1; text-align: center; padding: 96px 20px 36px; }
.hc-eyebrow {
  font-family: 'Syncopate', sans-serif; font-size: 0.6rem; letter-spacing: 0.46em; text-transform: uppercase;
  color: var(--accent); opacity: 0.85; margin: 0 0 14px;
}
.hc-title {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 7rem); letter-spacing: 0.06em; line-height: 0.95;
  color: #fff6e6; margin: 0 0 16px;
  text-shadow: 0 0 110px rgba(var(--accent-rgb), 0.35);
}
.hc-tag { max-width: 620px; margin: 0 auto; font-weight: 300; font-size: 1rem; color: var(--muted); }

/* The map */
.hc-wrap { position: relative; z-index: 1; padding: 0 16px 90px; }
.hc-map { max-width: 1240px; margin: 0 auto; }
.hc-map-frame {
  position: relative; margin: 0 auto; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: #0b1620;
  box-shadow: 0 0 90px rgba(var(--accent-rgb), 0.10);
  aspect-ratio: 16 / 9; width: 100%;
}
.hc-map.portrait .hc-map-frame { aspect-ratio: 9 / 16; width: auto; height: min(86vh, 1100px); max-width: 100%; }
.hc-map-frame img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity 0.35s ease; }
.hc-map-frame img.hc-clean { opacity: 0; }
.hc-map.clean .hc-map-frame img.hc-clean { opacity: 1; }
.hc-map.clean .hc-map-frame img.hc-labeled { opacity: 0; }
.hc-map-bar {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center;
  margin: 14px auto 0; font-size: 0.8rem; color: var(--muted);
}
.hc-btn {
  font: 500 0.74rem 'Outfit', sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); background: rgba(var(--accent-rgb), 0.08); border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 999px; padding: 6px 16px; cursor: pointer;
}
.hc-btn:hover { background: rgba(var(--accent-rgb), 0.18); text-decoration: none; }

/* Fact pills */
.hc-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 980px; margin: 30px auto 0; }
.hc-facts span {
  font-size: 0.8rem; letter-spacing: 0.02em; color: var(--text);
  background: rgba(var(--accent-rgb), 0.05); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px;
}
.hc-facts b { color: var(--accent); font-weight: 500; margin-right: 4px; }

/* Contents */
.hc-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 26px auto 0; max-width: 900px; }
.hc-toc a {
  font-family: 'Syncopate', sans-serif; font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.hc-toc a:hover { color: var(--accent); text-decoration: none; }

/* Sections */
.hc-sec { max-width: 880px; margin: 64px auto 0; scroll-margin-top: 80px; }
.hc-sec > h2 {
  font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 2.3rem; letter-spacing: 0.08em;
  color: #fff6e6; margin: 0 0 14px; text-align: center;
}
.hc-sec > h2::after {
  content: ''; display: block; width: 60px; height: 1px; margin: 8px auto 0;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.hc-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 26px 30px; position: relative; overflow: hidden;
}
.hc-box + .hc-box { margin-top: 14px; }
.hc-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent); opacity: 0.35;
}
.hc-box h3 {
  font-family: 'Syncopate', sans-serif; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px; font-weight: 700;
}
.hc-box p { margin: 0; font-weight: 300; color: var(--muted); }
.hc-box p + p { margin-top: 12px; }
.hc-box b { color: var(--text); font-weight: 500; }
.hc-box ul { margin: 0; padding-left: 1.1em; font-weight: 300; color: var(--muted); }
.hc-box li + li { margin-top: 8px; }

/* Climate table */
.hc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hc-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 640px; }
.hc-table th, .hc-table td { border: 0; background: none; }
.hc-table th {
  text-align: left; font: 500 0.68rem 'Outfit', sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line);
}
.hc-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: top; color: var(--muted); font-weight: 300; }
.hc-table tr:last-child td { border-bottom: none; }
.hc-table td:first-child { color: var(--text); font-weight: 500; min-width: 150px; }
.hc-table td:nth-child(2) { min-width: 210px; }
.hc-table td.n { min-width: 105px; }
.hc-note { font-size: 0.8rem; color: var(--dim); margin-top: 12px !important; }

/* Seasons */
.hc-seasons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hc-season { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; }
.hc-season h4 { margin: 0; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.5rem; letter-spacing: 0.06em; color: #fff6e6; }
.hc-season .when { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.hc-season p { margin: 0; font-weight: 300; color: var(--muted); font-size: 0.93rem; }

/* Lands from the bubble */
.hc-lands { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hc-land { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; }
.hc-land h4 { margin: 0 0 6px; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.45rem; letter-spacing: 0.05em; color: #fff6e6; }
.hc-land p { margin: 0; font-weight: 300; color: var(--muted); font-size: 0.93rem; }
.hc-land .more { display: inline-block; margin-top: 10px; font-size: 0.8rem; }

/* Other continents */
.hc-strip { max-width: 1100px; margin: 80px auto 0; }
.hc-strip h2 {
  font-family: 'Syncopate', sans-serif; font-size: 0.62rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--accent); text-align: center; margin: 0 0 20px; font-weight: 400;
}
.hc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hc-tile {
  position: relative; display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 16 / 10; background: #0b1620;
}
.hc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.hc-tile:hover img { transform: scale(1.05); }
.hc-tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(5, 7, 10, 0.92), transparent);
  font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.08em; color: #fff6e6;
}
.hc-tile small { display: block; font-family: 'Outfit', sans-serif; font-size: 0.72rem; letter-spacing: 0.02em; color: var(--muted); }
.hc-tile.here { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hc-tile:hover { text-decoration: none; }

/* The world page (Haven/Haven.html) */
.hc-eyebrow a, .hc-strip h2 a { color: inherit; }
.hc-map.wide .hc-map-frame { aspect-ratio: 2 / 1; }
.hc-sec-wide { max-width: 1100px; }
.hc-planet img { float: right; width: 190px; height: 190px; border-radius: 50%; margin: 0 0 14px 24px; box-shadow: 0 0 60px rgba(70, 140, 255, 0.25); }
.hc-planet::after { content: ''; display: block; clear: both; }
.hc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hc-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; color: var(--text); }
.hc-card:hover { border-color: var(--accent); text-decoration: none; }
.hc-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.hc-card-body { display: block; padding: 14px 18px 18px; }
.hc-card-body b { display: block; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 1.6rem; letter-spacing: 0.06em; color: #fff6e6; line-height: 1.1; }
.hc-card-body em { display: block; font-style: normal; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 2px 0 8px; }
.hc-card-body span { display: block; font-weight: 300; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.hc-kingdoms td:nth-child(2) { min-width: 110px; }
.hc-kingdoms td:nth-child(3) { min-width: 230px; }
.hc-matrix { min-width: 760px; font-size: 0.82rem; }
.hc-matrix th { white-space: nowrap; }
.hc-matrix td { text-align: center; padding: 9px 6px; min-width: 0 !important; }
.hc-matrix td:first-child { text-align: left; white-space: nowrap; }
.hc-matrix td b { display: block; color: var(--text); font-weight: 500; }
.hc-matrix td small { display: block; font-size: 0.72rem; color: var(--dim); }
.hc-matrix td.x { color: var(--dim); }

.hc-foot { position: relative; z-index: 1; text-align: center; padding: 40px 20px; border-top: 1px solid var(--dim); }
.hc-foot p {
  margin: 0; font-family: 'Syncopate', sans-serif; font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim);
}
.hc-foot a { color: var(--muted); }

@media (max-width: 700px) {
  .hc-head { padding-top: 70px; }
  .hc-box { padding: 20px; }
  .hc-seasons { grid-template-columns: 1fr; }
  .hc-grid { grid-template-columns: 1fr 1fr; }
  .hc-tile span { font-size: 1.2rem; padding: 20px 10px 8px; }
  .hc-map.portrait .hc-map-frame { height: auto; width: 100%; }
  .hc-cards { grid-template-columns: 1fr; }
  .hc-planet img { width: 130px; height: 130px; margin-left: 14px; }
}
@media (min-width: 701px) and (max-width: 980px) {
  .hc-cards { grid-template-columns: 1fr 1fr; }
}
