
:root {
  --accent-primary: rgba(160, 210, 255, 0.85);
  --accent-secondary: rgba(160, 210, 255, 0.25);
  --bg-color: #e3e7ee;
  --text-color: #333;
}

/* Reset & Base Styles */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
  overflow: hidden;
  background-image: url('../assets/images/bg.png');
  background-size: cover;
  background-position: center;
}

/* Main Stage Layout */
.stage {
  height: 100vh;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 0;
  position: relative;
  z-index: 1;
}

/* Desk Container - keeps image and SVG aligned */
.desk-wrap {
  position: relative;
  width: 50%;
  margin-top: -12vh;
}

/* Desk Image - prevents selection and dragging */
.desk {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Interactive Hotspots Overlay */
.hotspots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.spot {
  pointer-events: all;
}

.spot path {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
}

/* ------------------------------------------------------------
   Guestbook Page
   ------------------------------------------------------------ */
body.guestbook-page {
  overflow: auto;
  overflow-x: hidden;
  background: #000 url('../assets/images/guestbook-bg.png') center / cover fixed no-repeat;
  color: #fff;
}

.guestbook-page,
.guestbook-page * {
  box-sizing: border-box;
}

.guestbook-shell {
  width: 100%;
  max-width: none;
  margin: 2rem 0 3rem;
  padding: 0 1.25rem;
}

.guestbook-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.guestbook-back:hover {
  text-decoration: underline;
}

.guestbook-title {
  margin: 0 0 0.5rem 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
}

.guestbook-subtitle {
  margin: 0 0 1.5rem 0;
  color: rgba(255, 255, 255, 0.8);
}

.guestbook-form {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  background: transparent;
  resize: both;
  overflow: auto;
  min-width: 320px;
  min-height: 280px;
  max-width: 100%;
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
}

.guestbook-form--compact {
  max-width: none;
}

.guestbook-row {
  display: flex;
  gap: 0.75rem;
}

.guestbook-field--half {
  flex: 1;
}

.guestbook-field--comment {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guestbook-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
}

.guestbook-input,
.guestbook-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.6rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.95rem;
}

.guestbook-textarea {
  resize: none;
  min-height: 140px;
  height: 100%;
}

.guestbook-input:focus,
.guestbook-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(160, 210, 255, 0.2);
}

.guestbook-submit {
  padding: 0.5rem 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
}

.guestbook-toggle {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.guestbook-toggle__icon {
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 120ms ease;
}

.guestbook-toggle.is-open .guestbook-toggle__icon {
  transform: rotate(180deg);
}

.guestbook-form-wrap {
  margin-top: 0.35rem;
}

.guestbook-comments {
  margin-top: 1rem;
  width: 100%;
}

.guestbook-comment {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 100%;
  width: 100%;
  overflow-wrap: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.guestbook-comment:last-of-type {
  border-bottom: none;
}

.guestbook-comment__header {
  margin: 0 0 0.35rem 0;
  font-weight: 700;
  color: #fff;
}

.guestbook-comment__meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-left: 0.35rem;
  font-weight: 400;
}

.guestbook-comment__text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #fff;
}
