/* =========================
   01. Theme Variables
========================= */

:root {
    --bg:#fff8e8;
    --paper:#ffffff;
    --ink:#2f241a;
    --sub:#715f4b;
    --accent:#e4542f;
    --accent2:#1876b7;
    --accent3:#f3b43f;
    --green:#1c9a70;
    --line:#ead8b8;
    --dark:#23160f;
    --shadow:0 18px 45px rgba(88,54,16,.16);
}

/* =========================
   02. Base
========================= */

* {
    box-sizing:border-box;
}

body {
    margin:0;
    background:linear-gradient(180deg,#fff3cf 0,#fff8e8 420px,#f9efd9 100%);
    color:var(--ink);
    font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
    line-height:1.75;
    padding-top:104px;
    padding-bottom:58px;
}

body:before {
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background:radial-gradient(circle at 12% 8%,rgba(228,84,47,.12),transparent 26%),radial-gradient(circle at 88% 12%,rgba(24,118,183,.10),transparent 30%);
    z-index:-1;
}

/* =========================
   03. Header / Navigation
========================= */

.site-header {
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:10;
    background:rgba(255,253,246,.97);
    border-bottom:4px solid var(--accent3);
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:16px;
    align-items:center;
    padding:14px 22px;
    box-shadow:0 10px 28px rgba(91,54,16,.15);
}

.brand {
    font-weight:900;
    font-size:25px;
    letter-spacing:.08em;
    cursor:pointer;
    color:var(--accent);
    text-shadow:1px 1px 0 #fff;
}

.brand:before {
    content:"🎡";
    margin-right:.35em;
}

.nav {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    justify-content:center;
}

.nav button,.search-box button,.chat-form button,.chat-toggle,.link-button {
    border:0;
    background:var(--accent2);
    color:white;
    border-radius:999px;
    padding:8px 15px;
    cursor:pointer;
    font-weight:800;
    box-shadow:0 4px 0 rgba(0,0,0,.14);
}

.nav button:hover,.search-box button:hover,.chat-form button:hover,.link-button:hover {
    transform:translateY(1px);
    filter:brightness(1.08);
}

.search-box {
    display:flex;
    gap:6px;
}

.search-box input,.chat-form input {
    border:2px solid var(--line);
    border-radius:999px;
    padding:9px 13px;
    background:white;
}

.search-box input {
    width:190px;
}

/* =========================
   04. Page Layout / Typography
========================= */

.page {
    max-width:1120px;
    margin:0 auto 84px;
    padding:28px;
}

.eyebrow {
    letter-spacing:.16em;
    color:var(--accent2);
    font-size:12px;
    font-weight:900;
    margin:0 0 6px;
}

h1 {
    font-size:clamp(32px,4vw,52px);
    line-height:1.18;
    margin:0 0 18px;
    letter-spacing:.04em;
}

h2 {
    font-size:26px;
    line-height:1.35;
    margin:0 0 14px;
}

h3 {
    margin:0 0 8px;
}

/* =========================
   05. Home Hero
========================= */

.hero-visual {
    position:relative;
    min-height:520px;
    border-radius:34px;
    overflow:hidden;
    box-shadow:var(--shadow);
    background:#f2d79b;
    border:7px solid #fff;
}

.hero-image {
    position:absolute;
    inset:0;
    height:100%;
    border-radius:0;
}

.hero-image:after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,rgba(58,33,13,.72),rgba(58,33,13,.25) 48%,rgba(58,33,13,.06));
}

.hero-copy {
    position:relative;
    z-index:2;
    max-width:610px;
    padding:70px 58px;
    color:#fff;
    text-shadow:0 2px 10px rgba(0,0,0,.35);
}

.hero-copy .eyebrow {
    color:#ffe28d;
}

.hero-copy p {
    font-size:18px;
}

/* =========================
   06. Common Sections / Cards
========================= */

.section-block {
    margin-top:42px;
    background:rgba(255,255,255,.72);
    border:1px solid var(--line);
    border-radius:28px;
    padding:28px;
    box-shadow:var(--shadow);
}

.section-head {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    border-bottom:3px dotted var(--line);
    padding-bottom:14px;
    margin-bottom:22px;
}

.feature-grid,.show-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
}

.feature-card,.show-card,.attraction-card,.news-card,.contact-card,.card,.notice,.doc {
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 12px 25px rgba(88,54,16,.1);
}

.feature-card>div:not(.image-box),.show-card>div:not(.image-box),.news-card>div:not(.image-box) {
    padding:18px;
}
.card,
.doc{
    padding: 32px 44px;
}
.full-image{
    display:block;
    width:100%;
    height:auto;
    border-radius:14px;
}
.article-image{
    display:block;

    width:100%;
    max-width:900px;

    height:auto;

    margin:28px auto;

    border-radius:16px;

    box-shadow:0 8px 22px rgba(0,0,0,.18);
}
/* =========================
   07. Image Blocks
========================= */

.image-box {
    position:relative;
    min-height:190px;
    background-size:cover;
    background-position:center;
    background-color:#f0d99f;
    background-image:linear-gradient(135deg,#f6cf6b,#68b6dd);
    display:block;
    overflow:hidden;
}

.image-box span {
    position:absolute;
    left:12px;
    bottom:12px;
    background:rgba(255,255,255,.92);
    color:#644427;
    border-radius:999px;
    padding:5px 10px;
    font-size:12px;
    font-weight:800;
}

.image-box:before {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,0) 45%,rgba(0,0,0,.08));
}

.link-button {
    display:inline-block;
    margin-top:20px;
    background:var(--accent);
    font-size:15px;
}

.page-title {
    background:#fff;
    border-radius:28px;
    border:1px solid var(--line);
    padding:34px;
    box-shadow:var(--shadow);
    margin-bottom:28px;
}

/* =========================
   08. Park Map
========================= */

.map-section {
    background:#fff;
    border-radius:30px;
    padding:24px;
    border:1px solid var(--line);
    box-shadow:var(--shadow);
}

.map-visual {
    position:relative;
    min-height:680px;
    border-radius:24px;
    overflow:hidden;
    border:5px solid #fff;
    background-size:cover;
    background-position:center;
    background-color:#f6d685;
    background-image:linear-gradient(135deg,#fbdb76,#8fd4aa 45%,#80c5e7);
}

.map-visual:before {
    content: none !important;
    position:absolute;
    inset:0;
    display: none !important;
    place-items:center;
    font-size:26px;
    font-weight:900;
    color:rgba(71,46,20,.35);
    text-align:center;
    padding:30px;
}

.map-label {
    position:absolute;
    z-index:2;
    transform:translate(-50%,-50%);
    width:44px;
    height:44px;
    border-radius:50%;
    background:var(--accent);
    color:#fff;
    display:grid;
    place-items:center;
    font-weight:900;
    border:4px solid #fff;
    box-shadow:0 5px 14px rgba(0,0,0,.28);
}

.map-label.entrance {
    background:var(--green);
}

.map-label.staff {
    background:#5b5b5b;
}

.map-label span {
    position:absolute;
    top:44px;
    white-space:nowrap;
    background:rgba(255,255,255,.95);
    color:var(--ink);
    border-radius:8px;
    padding:2px 7px;
    font-size:12px;
    border:1px solid var(--line);
}

.legend-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
    gap:10px;
    margin-top:18px;
}

.legend-grid div {
    background:#fff8e8;
    border:1px solid var(--line);
    border-radius:12px;
    padding:8px 10px;
    font-weight:800;
}

/* =========================
   09. Attractions
========================= */

.attraction-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:22px;
}

.attraction-card .image-box {
    min-height:230px;
}

.attraction-body {
    padding:22px;
    position:relative;
}

.number-badge,.code-badge {
    display:inline-grid;
    place-items:center;
    min-width:38px;
    height:38px;
    padding:0 10px;
    border-radius:999px;
    background:var(--accent3);
    color:#3c2609;
    font-weight:900;
    margin-bottom:10px;
}

.meta {
    color:var(--sub);
    font-weight:800;
    font-size:14px;
}

/* =========================
   10. Show Schedule
========================= */

.show-card {
    display:grid;
    grid-template-columns:1fr 1.1fr;
}

.show-card .image-box {
    min-height:260px;
}

.show-card>div:not(.image-box) {
    padding:22px;
}

.schedule-table {
    width:100%;
    border-collapse:separate;
    border-spacing:0 10px;
}

.schedule-table th,.schedule-table td {
    background:#fff;
    padding:14px;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}

.schedule-table th {
    width:190px;
    color:#fff;
    background:var(--accent2);
    border-radius:14px 0 0 14px;
}

.schedule-table td {
    border-radius:0 14px 14px 0;
    font-weight:800;
}

/* =========================
   11. News
========================= */

.news-list {
    display:grid;
    gap:18px;
}

.news-list.compact {
    gap:10px;
}

.news-row{
    background:#fff;
    border-left:8px solid var(--accent3);
    border-radius:16px;
     padding:20px 24px;
    box-shadow:0 8px 18px rgba(88,54,16,.08);
}

.news-row p {
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
margin-left:16px;
}

.news-card {
    display:grid;
    grid-template-columns:260px 1fr;
}

.news-card .image-box {
    min-height:210px;
}

.news-card time,.news-row time {
    font-weight:900;
    color:var(--accent);
    font-size:14px;
}

/* =========================
   12. Contact / Forms
========================= */

.contact-card {
    padding:30px;
}

.error {
    color:#d12424;
    font-weight:900;
}

.error.big {
    font-size:24px;
    background:#fff0f0;
    border:2px solid #ffb8b8;
    border-radius:18px;
    padding:18px;
    text-align:center;
}

.dummy-form {
    display:grid;
    gap:16px;
    max-width:720px;
    margin:auto;
}

.dummy-form label {
    display:grid;
    gap:6px;
    font-weight:900;
}

.dummy-form input,.dummy-form textarea,.dummy-form select {
    padding:12px;
    border:2px solid var(--line);
    border-radius:12px;
    background:#eee;
    color:#888;
}

.dummy-form textarea {
    min-height:150px;
}

.dummy-form button {
    padding:13px;
    border:0;
    border-radius:999px;
    background:#aaa;
    color:#fff;
    font-weight:900;
}

.password-box {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:16px;
}

.password-box input {
    padding:10px;
    border:1px solid var(--line);
    border-radius:10px;
}

/* =========================
   13. Footer
========================= */

.site-footer {
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    background:#2d2017;
    color:#fff;
    display:flex;
    gap:20px;
    justify-content:flex-end;
    align-items:center;
    font-size:12px;
    padding:9px 24px;
    z-index:9;
}

/* =========================
   14. Chat Panel
========================= */

.chat-panel {
    position:fixed;
    top:114px;
    right:18px;
    width:360px;
    max-width:calc(100vw - 36px);
    height:620px;
    max-height:calc(100vh - 182px);
    background:#e8f4e7;
    border-radius:22px;
    box-shadow:0 18px 50px rgba(0,0,0,.3);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    z-index:20;
    border:1px solid rgba(0,0,0,.18);
}

.chat-panel.min {
    height:58px;
}

.chat-panel.min .chat-log,.chat-panel.min .chat-form {
    display:none;
}

.chat-head {
    background:#233b2a;
    color:white;
    padding:10px 14px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.chat-name {
    font-weight:800;
}

.chat-status {
    font-size:12px;
    opacity:.8;
}

.chat-log {
    flex:1;
    overflow:auto;
    padding:16px;
    background:linear-gradient(#dcebdc,#eaf5ea);
}

.bubble {
    max-width:82%;
    margin:8px 0;
    padding:10px 13px;
    border-radius:16px;
    white-space:pre-wrap;
    box-shadow:0 2px 6px rgba(0,0,0,.08);
}

.moritaka {
    background:white;
    border-top-left-radius:4px;
}

.player {
    background:#9eea7e;
    margin-left:auto;
    border-top-right-radius:4px;
}

.system {
    background:#fff5bd;
    color:#574319;
    margin-left:auto;
    margin-right:auto;
    text-align:center;
    font-size:12px;
}

.chat-form {
    display:flex;
    gap:8px;
    padding:10px;
    background:#f7fff7;
}

.chat-form input {
    flex:1;
    border-radius:12px;
}

.photo-placeholder {
    background:#2b2b2b;
    color:#fff;
    border-radius:14px;
    padding:28px;
    text-align:center;
    margin-top:10px;
    font-size:14px;
}

.share {
    display:inline-block;
    background:#111;
    color:#fff;
    border-radius:999px;
    padding:10px 16px;
    text-decoration:none;
    margin-top:16px;
}

/* =========================
   15. Responsive
========================= */

@media(max-width:980px) {
.site-header {
        grid-template-columns:1fr;
    }

.page {
        padding:18px;
    }

.show-card,.news-card {
        grid-template-columns:1fr;
    }

.hero-copy {
        padding:50px 30px;
    }

.map-visual {
        min-height:560px;
    }

}

@media(max-width:850px) {
body {
        padding-top:190px;
    }

.chat-panel {
        top:auto;
        bottom:62px;
        right:10px;
        width:calc(100vw - 20px);
        height:55vh;
    }

.site-footer {
        font-size:10px;
    }

.map-label span {
        display:none;
    }

.schedule-table th,.schedule-table td {
        display:block;
        width:100%;
        border-radius:14px;
    }

.schedule-table th {
        margin-top:8px;
    }

.hero-visual {
        min-height:460px;
    }

}


/* ===== NEWS TEXT-ONLY FIX =====
お知らせページを画像なしの1カラム表示にする修正。
既存の .news-card が画像あり前提でも崩れないように強めに上書きしています。
*/

.news-list {
    display: grid;
    gap: 18px;
}

.news-list .news-card.text-only {
    display: block;
    grid-template-columns: none;
    min-height: auto;
    padding: 0;
    overflow: hidden;
}

.news-card.text-only .news-text {
    display: block;
    width: 100%;
    max-width: none;
    padding: 26px 44px 30px;
    box-sizing: border-box;
}

.news-card.text-only time {
    display: block;
    width: auto;
    min-width: 0;
    margin: 0 0 8px;
    color: #e95735;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
}

.news-card.text-only h2 {
    margin: 0 0 14px;
    color: #2f241b;
    font-size: 1.45rem;
    line-height: 1.5;
    text-align: left;
}

.news-card.text-only p {
    width: auto;
    max-width: none;
    margin: 0;
    color: #3b3128;
    line-height: 1.9;
    text-align: left;
    white-space: normal;
}

.news-list.compact .news-row {
    display: block;
    padding: 18px 0 18px 24px;
}

.news-list.compact .news-row time {
    display: inline-block;
    margin-bottom: 6px;
    color: #e95735;
    font-weight: 700;
}

.news-list.compact .news-row h3 {
    margin: 0 0 6px;
    text-align: left;
}

.news-list.compact .news-row p {
    max-width: none;
    margin: 0;
    line-height: 1.8;
    text-align: left;
}

/* =========================
   16. Footer Page Number Fix
   注意文は残し、ページ番号だけ右端に寄せる
========================= */

.site-footer span:first-child {
    margin-left: auto;
    font-weight: 800;
    letter-spacing: .08em;
    order: 2;
}

.site-footer span:last-child {
    flex: 1;
    text-align: center;
    order: 1;
}
/* 検索ページ用：ニュース記事・報告書・プロフィール・黒塗り */
.news-article .article-meta,
.report-label,
.profile-label {
  color: #7a5a2e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.news-article .lead {
  border-left: 5px solid var(--accent3);
  padding: 12px 0 12px 18px;
  font-weight: 800;
  background: #fff8e8;
}

.report-table,
.profile-table,
.priest-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
}

.report-table th,
.report-table td,
.profile-table th,
.profile-table td,
.priest-table th,
.priest-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.report-table th,
.profile-table th,
.priest-table th {
  width: 180px;
  background: #fff8e8;
  color: #5a422a;
}

.report-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.profile-header {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
}

.profile-photo {
  height: 150px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #2b2b2b;
  color: #fff;
  font-weight: 900;
  letter-spacing: .12em;
}

.attachment-list,
.locked-document,
.memo-document {
  margin-top: 24px;
}

.redacted {
  display: inline-block;
  min-width: 120px;
  background: #111;
  color: #111;
  border-radius: 2px;
  user-select: none;
}

.hint {
  color: #7a5a2e;
  font-weight: 800;
}

.full-image,
.article-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

@media(max-width:700px){
  .profile-header {
    grid-template-columns: 1fr;
  }
  .report-table th,
  .profile-table th,
  .priest-table th {
    width: 120px;
  }
}
/* 検索ページ用：ニュース記事・報告書・プロフィール・黒塗り */
.news-article .article-meta,
.report-label,
.profile-label {
  color: #7a5a2e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.news-article .lead {
  border-left: 5px solid var(--accent3);
  padding: 12px 0 12px 18px;
  font-weight: 800;
  background: #fff8e8;
}

.report-table,
.profile-table,
.priest-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
}

.report-table th,
.report-table td,
.profile-table th,
.profile-table td,
.priest-table th,
.priest-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.report-table th,
.profile-table th,
.priest-table th {
  width: 180px;
  background: #fff8e8;
  color: #5a422a;
}

.report-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.profile-header {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
}

.profile-photo {
  height: 150px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #2b2b2b;
  color: #fff;
  font-weight: 900;
  letter-spacing: .12em;
}

.attachment-list,
.locked-document,
.memo-document {
  margin-top: 24px;
}

.redacted {
  display: inline-block;
  min-width: 120px;
  background: #111;
  color: #111;
  border-radius: 2px;
  user-select: none;
}

.hint {
  color: #7a5a2e;
  font-weight: 800;
}

.full-image,
.article-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

@media(max-width:700px){
  .profile-header {
    grid-template-columns: 1fr;
  }
  .report-table th,
  .profile-table th,
  .priest-table th {
    width: 120px;
  }
}


/* 青木丈一郎のメモ書き */
.memo-doc {
  background: #fffdf8;
  border: 1px solid #d9c5a1;
  color: #2f241a;
}

.memo-entry {
  margin: 0 0 28px;
  padding: 0 0 24px;
  border-bottom: 1px dashed #d8c29b;
}

.memo-entry h2 {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  background: #3b2b1f;
  color: #fff;
  border-radius: 6px;
  font-size: 1.05rem;
  letter-spacing: .08em;
}

.memo-entry p {
  margin: 0 0 14px;
  line-height: 1.95;
}

.memo-end {
  margin: 18px 0 0;
  color: #7a1e1e;
  font-weight: 800;
  text-align: right;
}
/* Chat Save / Load Controls */
.chat-control-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 8px 10px 6px;
  background: rgba(255,255,255,.35);
}

.chat-save-slot {
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff;
  color: #243326;
  font-weight: 700;
  font-size: 12px;
}

.chat-control-button {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #1f7ab8;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
}

.chat-control-button.danger {
  background: #6f6258;
}

.chat-save-info {
  min-width: 82px;
  color: #35503c;
  font-size: 11px;
  font-weight: 700;
  opacity: .82;
}

.chat-save-toast {
  position: fixed;
  right: 22px;
  bottom: 62px;
  z-index: 9999;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(45,32,23,.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.chat-save-toast.show {
  opacity: 1;
  transform: translateY(0);
}

#routeLabel {
  display: none !important;
}
/* =====================================================
   Chat Hamburger Save Menu
===================================================== */

#routeLabel {
  display: none !important;
}

.chat-menu-button {
  margin-left: 8px;
  border: 0;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.chat-menu-button:hover {
  background: rgba(255,255,255,.26);
}

.chat-menu-overlay {
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(0,0,0,.18);
  z-index: 30;
}

.chat-menu-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  max-width: 280px;
  height: 100%;
  background: #f8fff7;
  box-shadow: -12px 0 28px rgba(0,0,0,.24);
  transform: translateX(105%);
  transition: transform .22s ease;
  z-index: 31;
  display: flex;
  flex-direction: column;
}

.chat-panel.menu-open .chat-menu-overlay {
  display: block;
}

.chat-panel.menu-open .chat-menu-drawer {
  transform: translateX(0);
}

.chat-menu-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #233b2a;
  color: #fff;
  padding: 13px 14px;
  font-weight: 800;
}

.chat-menu-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.chat-menu-content {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.chat-menu-item,
.chat-menu-slot,
.chat-menu-back {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  background: #ffffff;
  color: #233b2a;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.chat-menu-item:hover,
.chat-menu-slot:hover,
.chat-menu-back:hover {
  filter: brightness(.98);
}

.chat-menu-item.danger {
  color: #8b2f24;
}

.chat-menu-section-title {
  margin: 4px 0 2px;
  color: #233b2a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.chat-menu-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-menu-slot small {
  color: #5f7165;
  font-size: 11px;
  font-weight: 700;
}

.chat-menu-slot.empty {
  opacity: .65;
}

.chat-save-toast {
  position: fixed;
  right: 22px;
  bottom: 62px;
  z-index: 9999;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(45,32,23,.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.chat-save-toast.show {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   Chat / Ending Images
========================= */

.image-bubble {
    padding: 8px;
    background: #fff;
}

.image-bubble img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 12px;
}

.image-caption {
    margin: 6px 4px 0;
    color: #5a4a3a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.ending-image {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 26px auto 20px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
/* =====================================================
   Chat bug fix support / Image modal
========================= */

.chat-photo {
    cursor: zoom-in;
}

.chat-image-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.74);
}

.chat-image-modal.show {
    display: flex;
}

.chat-image-modal-inner {
    max-width: min(92vw, 980px);
    max-height: 88vh;
    display: grid;
    gap: 10px;
    place-items: center;
}

.chat-image-modal-inner img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

.chat-image-modal-inner p {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.chat-image-modal-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #1d1d1d;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

