:root {
  --wine-950: #210108;
  --wine-900: #33030d;
  --wine-800: #520817;
  --gold: #e6bd68;
  --gold-soft: #f3d99e;
  --white: #fffaf3;
  --muted: rgba(255, 250, 243, .68);
  --line: rgba(239, 200, 119, .24);
  --panel: rgba(30, 3, 10, .58);
  --tile: rgba(84, 10, 28, .56);
  --tile-hover: rgba(112, 16, 39, .78);
  --shadow: 0 28px 80px rgba(9, 0, 3, .54);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: var(--wine-950);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(90deg, rgba(22, 0, 7, var(--overlay-opacity)), rgba(22, 0, 7, var(--overlay-opacity))),
    var(--bg-url);
  background-size: cover;
  background-position: var(--bg-x) var(--bg-y);
  background-repeat: no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 42%, rgba(120, 19, 43, .08), rgba(22, 0, 7, .30) 70%),
    linear-gradient(180deg, rgba(20, 0, 6, .04), rgba(20, 0, 6, .30));
  pointer-events: none;
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: start center;
  padding: clamp(285px, 31vh, 330px) 22px 42px;
  position: relative;
}


.site-brand {
  position: absolute;
  top: clamp(218px, 23.5vh, 250px);
  left: 50%;
  transform: translate(calc(-50% + var(--brand-x, 0px)), var(--brand-y, 0px));
  z-index: 2;
  white-space: nowrap;
  color: #f1c56d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 1.85vw, 34px);
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 0 7px rgba(255, 205, 111, .36),
    0 0 22px rgba(223, 162, 54, .28),
    0 7px 24px rgba(0, 0, 0, .72);
  filter: drop-shadow(0 1px 0 rgba(255, 237, 185, .25));
}

.portal {
  width: min(900px, 100%);
  position: relative;
  z-index: 2;
  transform: translate(var(--panel-x, 0px), var(--panel-y, 0px));
  transition: transform .28s ease;
}

.portal-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid rgba(241, 205, 132, .25);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(74, 7, 22, .64), rgba(24, 2, 8, .66)),
    rgba(40, 2, 12, .54);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(19px) saturate(125%);
  -webkit-backdrop-filter: blur(19px) saturate(125%);
}

.portal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.07), transparent 25%),
    radial-gradient(circle at 100% 0, rgba(230, 189, 104, .10), transparent 33%);
}

.portal-header { text-align: center; position: relative; z-index: 1; margin-bottom: 20px; }
.eyebrow {
  display: inline-block;
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .25em;
  margin-bottom: 8px;
}
.portal-header h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -.04em;
  text-shadow: 0 8px 28px rgba(0,0,0,.24);
}
.portal-header p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  position: relative;
  z-index: 1;
}

.tile {
  min-height: 128px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 17px;
  border: 1px solid rgba(239, 202, 124, .18);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(114, 16, 40, .46), rgba(49, 5, 16, .58));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 28px rgba(10,0,4,.18);
  transform: translateY(12px);
  opacity: 0;
  animation: tileIn .62s cubic-bezier(.2,.72,.25,1) forwards;
  animation-delay: var(--delay);
  transition: transform .26s ease, border-color .26s ease, background .26s ease, box-shadow .26s ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: auto -25% -70% 12%;
  height: 125%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 178, 83, .16), transparent 65%);
  pointer-events: none;
}

.tile:hover, .tile:focus-visible {
  transform: translateY(0) scale(1.006);
  border-color: rgba(242, 207, 136, .52);
  background: linear-gradient(145deg, rgba(133, 22, 49, .72), rgba(54, 5, 18, .72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 22px 36px rgba(12,0,5,.30), 0 0 0 1px rgba(228, 182, 91, .08);
  outline: none;
}

.tile-shine {
  position: absolute;
  top: -120%;
  left: -55%;
  width: 45%;
  height: 300%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transition: left .7s ease;
  pointer-events: none;
}
.tile:hover .tile-shine { left: 130%; }

.tile-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(236, 198, 121, .20), rgba(236, 198, 121, .08));
  border: 1px solid rgba(237, 199, 122, .25);
  color: var(--gold-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}
.tile-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile-copy { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 18px; text-align: center; }
.tile-copy strong { font-size: clamp(14px, 1.35vw, 17px); line-height: 1.25; }
.tile-copy small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.tile-arrow {
  position: absolute;
  right: 15px;
  bottom: 14px;
  color: var(--gold-soft);
  font-size: 19px;
  opacity: .58;
  transition: transform .25s ease, opacity .25s ease;
}
.tile:hover .tile-arrow { transform: translate(3px, -3px); opacity: 1; }

.portal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: rgba(255,250,243,.52);
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #8de3a4; box-shadow: 0 0 12px rgba(141,227,164,.8); }

.ambient { position: fixed; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: .18; z-index: -1; }
.ambient-one { width: 260px; height: 260px; background: #b51d46; left: 12%; top: 31%; }
.ambient-two { width: 220px; height: 220px; background: #d6a44e; right: 10%; bottom: 8%; opacity: .08; }
.noscript, .config-error { padding: 16px; text-align: center; background: #fff; color: #4a0712; }

@keyframes tileIn { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .page-shell { padding: 190px 13px 26px; align-items: start; }
  .portal-panel { padding: 20px 14px; border-radius: 22px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { min-height: 122px; padding: 14px; border-radius: 16px; }
  .tile-icon { width: 39px; height: 39px; }
}

@media (max-width: 430px) {
  .page-shell { padding-top: 175px; }
  .portal-header p { font-size: 12px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { min-height: 116px; }
  .tile-copy strong { font-size: 13px; }
  .tile-copy small { font-size: 10px; }
}

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

@media (max-width: 760px) {
  body::before { background-position: 55% top; }
  .page-shell { padding-top: 245px; }
  .site-brand { top: 170px; font-size: 25px; letter-spacing: .13em; }
}


@media (max-width: 760px) {
  body::before {
    background-position: 62% -4vh;
  }

  .page-shell {
    padding-top: 245px;
  }

  .site-brand {
    top: 188px;
    font-size: clamp(21px, 7vw, 29px);
    letter-spacing: .15em;
  }
}

#weatherCanvas,#cloudLayer{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}#weatherCanvas{z-index:1}#cloudLayer{z-index:0;overflow:hidden}.cloud{position:absolute;width:420px;height:140px;border-radius:50%;background:radial-gradient(ellipse at center,rgba(255,255,255,.28),rgba(255,255,255,.04) 70%,transparent 72%);filter:blur(12px);animation:cloudMove linear infinite;opacity:.45}.announcement{position:fixed;top:0;left:0;right:0;z-index:20;overflow:hidden;background:rgba(44,3,13,.88);border-bottom:1px solid rgba(241,205,132,.32);color:#f5d78e;font-weight:800;letter-spacing:.06em;backdrop-filter:blur(12px)}.announcement div{width:max-content;padding:9px 0;animation:marquee 20s linear infinite}.has-announcement .page-shell{padding-top:calc(clamp(285px,31vh,330px) + 34px)}
@keyframes marquee{from{transform:translateX(100vw)}to{transform:translateX(-100%)}}@keyframes cloudMove{from{transform:translateX(-520px)}to{transform:translateX(calc(100vw + 520px))}}
@media (prefers-reduced-motion:reduce){.tile,.announcement div,.cloud{animation:none!important}.tile{opacity:1;transform:none}}
