/* =========================
   Retro but Refined Theme
   (clean version)
   ========================= */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: #f4ecd8;
  background: #241915;
  font-family:
    "MS PGothic", "MS Gothic", "Meiryo", "Hiragino Kaku Gothic ProN",
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
}

#page {
  max-width: 1280px;
  margin: 22px auto 56px;
  padding: 0 16px;
}

/* ---------- panel base ---------- */
.panel {
  background: linear-gradient(180deg, rgba(54, 38, 29, 0.92), rgba(34, 24, 19, 0.92));
  border: 1px solid rgba(255, 209, 117, 0.30);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.40),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 220, 140, 0.12), transparent 35%),
    radial-gradient(circle at 82% 18%, rgba(255, 220, 140, 0.08), transparent 30%),
    radial-gradient(circle at 40% 85%, rgba(255, 220, 140, 0.07), transparent 35%);
  opacity: 0.95;
  pointer-events: none;
}

/* ---------- common text ---------- */
.mono {
  font-family: ui-monospace, "MS Gothic", monospace;
}

/* ---------- titles ---------- */
.panel-title {
  position: relative;
  z-index: 2;
  font-family: ui-monospace, "MS Gothic", monospace;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: rgba(255, 235, 200, 0.95);
  margin: 0 0 12px;
}

/* ---------- header ---------- */
/* ヘッダーの.panelだけ別幅にする */
#header.panel {
  max-width: 1050px;
  margin: 0 auto 10px;
  padding: 12px;
}

/* #header にpaddingが残ってると二重になるので0に固定 */
#header {
  padding: 0;
  margin-bottom: 18px;
}

.header-inner {
  margin: 0 auto;
  padding: 0;
}

/* ---------- hero banner ---------- */
.hero {
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 117, 0.30);
  background: rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);

  padding: 8px 0;
  cursor: default;
}

.hero-card:hover {
  box-shadow: 0 0 12px rgba(255, 209, 117, 0.15);
  transform: translateY(-1px);
  transition: 140ms ease;
}

.hero-card img {
  width: 85%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  filter: contrast(1.03) saturate(1.06);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

/* ---------- 3 columns grid ---------- */
.grid3 {
  display: grid;
  grid-template-columns: 330px 1fr 420px;
  /* MENU｜CENTER｜Twitter */
  gap: 18px;
  align-items: start;
}

/* left nav */
#navigation {
  padding: 16px;
  position: sticky;
  top: 16px;
}

.menu {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.menu-item {
  display: block;
  padding: 12px 12px 10px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255, 209, 117, 0.24);
  background: rgba(0, 0, 0, 0.14);
  color: #f4ecd8;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.menu-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 117, 0.46);
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 12px rgba(255, 209, 117, 0.15);
}

.menu-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.menu-label {
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffe9bd;
  text-shadow: 0 0 10px rgba(255, 209, 117, 0.08);
}

.menu-desc {
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(244, 236, 216, 0.88);
}

.pill {
  font-family: ui-monospace, "MS Gothic", monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 117, 0.28);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 235, 200, 0.95);
}

.menu-item.is-main {
  border-color: rgba(255, 209, 117, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 209, 117, 0.12) inset;
}

/* ---------- center column stack ---------- */
.center-col {
  display: grid;
  gap: 18px;
  align-content: start;
}

/* info */
.panel-message {
  padding: 16px;
}

.panel-message p {
  position: relative;
  z-index: 2;
  margin: 10px 0;
}

.notice {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(120, 210, 255, 0.24);
  background: rgba(0, 40, 55, 0.16);
}

.notice-title {
  font-family: ui-monospace, "MS Gothic", monospace;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-bottom: 6px;
  color: rgba(200, 250, 255, 0.92);
}

.notice-body {
  font-size: 13px;
  color: rgba(245, 255, 255, 0.88);
}

/* update (JSON fetch result) */
.update-panel {
  padding: 16px;
}

.update-panel .panel-title {
  font-size: 12px;
  opacity: 0.8;
}

.update-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
}

.update-label {
  color: #ffe9bd;
  font-weight: 700;
}

/* ---------- right twitter ---------- */
#twitter {
  padding: 16px;
}

#twitter .twitter-timeline {
  position: relative;
  z-index: 2;
}

/* ---------- footer ---------- */
.footer {
  margin-top: 18px;
}

.footer .panel {
  padding: 14px 16px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* 右寄せ */
  gap: 12px;
  flex-wrap: wrap;
}

.footer-left {
  text-align: right;
}

.footer-small {
  font-size: 12px;
  color: rgba(244, 236, 216, 0.72);
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid3 {
    grid-template-columns: 330px 1fr;
    grid-template-areas:
      "nav center"
      "tw  tw";
  }

  #navigation {
    grid-area: nav;
    position: static;
  }

  .center-col {
    grid-area: center;
  }

  #twitter {
    grid-area: tw;
  }
}

@media (max-width: 880px) {
  .grid3 {
    grid-template-columns: 1fr;
  }

  #navigation {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {

  .menu-item,
  .hero-card {
    transition: none;
  }
}
