#guestbook {border-top:1px solid var(--line);position:relative;}
#guestbook .section-copy {max-width:700px;}
.guestbook-layout {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:32px;align-items:start;}
.guestbook-form {padding:26px;border:1px solid #634350;background:linear-gradient(145deg,#24171d,#101013);}
.guestbook-form fieldset {padding:0;margin:0;border:0;min-width:0;}
.guestbook-form legend {font:700 24px 'Barlow Condensed',sans-serif;text-transform:uppercase;margin-bottom:22px;}
.guestbook-form label {display:block;font:600 15px 'Barlow Condensed',sans-serif;letter-spacing:.5px;margin:0 0 8px;}
.guestbook-form input,.guestbook-form textarea {display:block;width:100%;min-width:0;border:1px solid #73515e;background:#0e0d10;color:#eee5e6;border-radius:0;font:16px/1.6 Arial,sans-serif;padding:12px;margin-bottom:20px;}
.guestbook-form textarea {min-height:150px;resize:vertical;}
.guestbook-form input:focus-visible,.guestbook-form textarea:focus-visible {outline:2px solid #cd8ba0;outline-offset:3px;}
.guestbook-help {color:#c2b3b8;font-size:13px;line-height:1.6;margin:0 0 20px;}
.guestbook-button {min-height:48px;padding:12px 20px;border:1px solid #b37d8f;background:#633243;color:#fff;font:600 15px 'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:.7px;cursor:pointer;}
.guestbook-button:hover {background:#804357;}
.guestbook-button:disabled {opacity:.6;cursor:wait;}
.guestbook-button[hidden] {display:none;}
.guestbook-result,.guestbook-list-status {font-size:14px;line-height:1.6;color:#dcc9ce;overflow-wrap:anywhere;}
.guestbook-result:empty,.guestbook-list-status:empty {display:none;}
.guestbook-result {margin:18px 0 0;}
.guestbook-entry {padding:22px 24px;margin-bottom:16px;background:#141115;border:1px solid #4e3843;border-left:2px solid #a46b7f;}
.guestbook-entry-head {display:flex;justify-content:space-between;align-items:baseline;gap:16px;}
.guestbook-entry h3 {margin:0;color:#eee3e5;font:700 22px 'Barlow Condensed',sans-serif;overflow-wrap:anywhere;min-width:0;}
.guestbook-entry time {font-size:12px;color:#b5a4aa;white-space:nowrap;}
.guestbook-entry p {font-size:15px;line-height:1.7;color:#d5c8cc;white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0 0;}
/* Invisible decoy; keyboard and assistive technology skip this field. */
.guestbook-trap {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
@media(max-width:700px) {
  .guestbook-layout {grid-template-columns:minmax(0,1fr);gap:24px;}
  .guestbook-form {padding:20px 18px;}
  .guestbook-entry {padding:18px;}
  .guestbook-button {width:100%;}
}

.guestbook-details {margin:-6px 0 20px;color:#c2b3b8;font-size:13px;line-height:1.6;}
.guestbook-details summary {cursor:pointer;min-height:44px;padding:12px 0;}
.guestbook-details summary:focus-visible {outline:2px solid #cd8ba0;outline-offset:3px;}
.guestbook-details .guestbook-help {margin:4px 0 0;}

.access-dialog {width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px;color:#eee3e5;background:#131014;border:1px solid #996573;}
.access-dialog::backdrop {background:#000b;}
.access-dialog h2 {font-size:clamp(32px,8vw,44px);}
.access-dialog .guestbook-form {border:0;padding:0;background:none;}
.access-game-title {font:700 23px 'Barlow Condensed',sans-serif;color:#d6a9b8;}
.access-close {display:block;margin:0 0 12px auto;width:44px;height:44px;background:none;color:inherit;border:1px solid #73515e;font-size:28px;cursor:pointer;}
.access-confirm-page {padding-top:clamp(40px,10vh,100px);max-width:760px;line-height:1.7;}
.access-confirm-page h1 {font:800 44px 'Barlow Condensed',sans-serif;}
.access-confirm-page p[role=status] {overflow-wrap:anywhere;}
@media(max-width:700px){.access-dialog {padding:20px;}.access-dialog .guestbook-button {width:100%;}}
