﻿:root {
  --bg: #0d5568;
  --panel: rgba(255, 248, 228, 0.96);
  --panel-2: rgba(255, 250, 236, 0.94);
  --line: rgba(138, 90, 36, 0.18);
  --text: #2d1909;
  --ink: #2d1909;
  --gold: #dca83b;
  --muted: rgba(45, 25, 9, 0.66);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 213, 102, 0.18), transparent 24%),
    linear-gradient(180deg, #0d5568 0%, #083240 100%);
}
.app-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom));
}
.topbar {
  position: relative;
  padding: 18px 4px 12px;
  color: #fff1c9;
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0 auto auto -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  opacity: 0.12;
  background: radial-gradient(circle, transparent 58%, rgba(255, 241, 201, 0.8) 59%, transparent 60%);
}
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: #f3d594;
}
h1, h2, h3 { font-family: "Cinzel", serif; line-height: 1.08; }
h1 { margin: 0; font-size: clamp(2rem, 8vw, 3.4rem); }
.lead { margin: 12px 0 0; line-height: 1.55; color: rgba(255, 241, 201, 0.82); font-size: 1.02rem; }
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pill {
  display: inline-flex; align-items: center; padding: 10px 14px;
  border: 1px solid rgba(255, 241, 201, 0.18); border-radius: 999px;
  background: rgba(255,255,255,.08); font-weight: 700;
}
.notice-card {
  margin-top: 18px; padding: 20px; border-radius: 22px;
  background: rgba(255, 248, 228, 0.96); color: var(--text);
  box-shadow: 0 22px 40px rgba(0,0,0,.18);
}
.notice-card p { margin: 10px 0 0; line-height: 1.6; }
.back-link { display: inline-flex; margin-top: 14px; color: #0e495d; font-weight: 700; text-decoration: none; }
.hint-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
.hint-card {
  overflow: hidden; border-radius: 24px; background: var(--panel-2); color: var(--ink);
  box-shadow: 0 20px 38px rgba(0,0,0,.18); border: 1px solid var(--line);
}
.hint-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.hint-image {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  background: linear-gradient(135deg, rgba(18,57,73,.2), rgba(220,168,59,.24));
}
.hint-image-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 56%, rgba(6, 17, 25, 0.24) 100%);
  pointer-events: none;
}
.hint-zoom-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 248, 228, 0.84);
  color: #2d1909;
  font-size: .82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 14px rgba(0,0,0,.14);
}
.hint-body { padding: 16px 16px 18px; }
.hint-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.hint-number { font-family: "Cinzel", serif; font-size: 1.1rem; font-weight: 900; }
.hint-stamp { font-size: .88rem; color: rgba(45,25,9,.62); }
.hint-title { margin: 0 0 8px; font-size: 1.3rem; }
.hint-description { margin: 0; line-height: 1.62; }
.hidden { display: none !important; }
@media (min-width: 720px) { .hint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.image-dialog {
  width: min(92vw, 980px);
  border: 0;
  padding: 0;
  background: transparent;
}
.image-dialog::backdrop {
  background: rgba(5, 17, 24, 0.82);
  backdrop-filter: blur(4px);
}
.image-dialog-card {
  position: relative;
  margin: 0;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 248, 228, 0.98);
  box-shadow: 0 28px 60px rgba(0,0,0,.3);
}
.image-dialog-card img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fffdf7;
}
.image-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(13, 85, 104, 0.9);
  color: #fffaf0;
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
}
.image-dialog-caption {
  margin: 10px 6px 2px;
  font-size: .92rem;
  color: rgba(45,25,9,.78);
}
@media (max-width: 700px) {
  .image-dialog {
    width: min(96vw, 980px);
  }
  .image-dialog-card {
    padding: 10px;
  }
  .image-dialog-close {
    width: 38px;
    height: 38px;
  }
}
