:root {
  --bg: #eef3ea;
  --card: #fff9f1;
  --text: #3a2c22;
  --muted: #6d5848;
  --primary: #2d6652;
  --accent: #e3a338;
  --wood: #b98b5d;
  --mint: #89b49e;
  --radius: 16px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .08);
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --space: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: #1f4a3a; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[data-gf-frame]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid #e4d5c2;
}

.head-row,
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-mark { flex: none; line-height: 0; }
.brand-mark svg { display: block; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.site-nav a:hover { color: var(--primary); }

.first-screen {
  padding-top: 24px;
  padding-bottom: 32px;
}

.play-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
}

.play-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
}

.stage-shell {
  background: #7ea792;
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-2);
}

.stage-lintel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 8px;
}

.lintel-window {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  background: #e8f0e9;
  position: relative;
  box-shadow:
    inset 8px 0 0 -7px #8a5a32,
    inset 0 8px 0 -7px #8a5a32,
    inset -8px 0 0 -7px #8a5a32,
    inset 0 -8px 0 -7px #8a5a32;
}

.lintel-window::before,
.lintel-window::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;

  top: 9px;
  height: 2px;
  background: #8a5a32;
  border-radius: 2px;
  transform: rotate(45deg);
}

.lintel-window::after { transform: rotate(-45deg); }

.lintel-lamp {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(227, 163, 56, .25);
}

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1f3d33;
  border-radius: 12px;
  overflow: hidden;
}

.stage iframe,
.cover,
.loader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
}

.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.btn-play {
  position: relative;
  z-index: 1;
  min-height: 48px;
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-2);
}

.btn-play:hover { background: #1f4a3a; border-color: #1f4a3a; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover { background: #1f4a3a; border-color: #1f4a3a; color: #fff; }

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: #d7c4a8;
}

.btn-secondary:hover { background: #f3eadc; color: var(--text); }

.btn[aria-pressed="true"],
.btn[data-gf-liked] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-text {
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.loader {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #2d6652;
  color: #fff9f1;
  text-align: center;
  padding: 24px;
}

[data-gf-state="loading"] .loader { display: flex; }
[data-gf-state="loading"] .cover,
[data-gf-state="playing"] .cover,
[data-gf-state="playing"] .loader { display: none; }

.loader p { margin: 0; font-family: var(--font-display); font-weight: 600; }

.loader-house {
  position: relative;
  width: 72px;
  height: 72px;
}

.loader-floor {
  display: block;
  height: 16px;
  margin: 4px auto 0;
  border-radius: 4px;
  background: #89b49e;
  animation: floor-glow 1.2s ease-in-out infinite;
}

.loader-floor:nth-child(1) { width: 40px; animation-delay: 0s; }

.loader-floor:nth-child(2) { width: 52px; animation-delay: .15s; }
.loader-floor:nth-child(3) { width: 64px; animation-delay: .3s; }

.loader-lamp {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent);
  animation: lamp-bob 1.2s ease-in-out infinite;
}

@keyframes floor-glow {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

@keyframes lamp-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.desk {
  background: var(--card);
  border: 1px solid #e4d5c2;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.desk-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-transform: none;
}

.desk-lead { margin: 0; font-size: 16px; }

.desk-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desk-facts li {
  padding: 8px 12px;
  background: #eef3ea;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.actions .btn { flex: 1 1 100%; }
.share-msg { font-size: 14px; color: var(--primary); }

.doc {
  padding-block: 48px;
}

.doc > .shot { margin: 0 0 32px; }

.shot img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  border: 1px solid #e4d5c2;
}

.block { margin-bottom: 48px; }
.block:last-child { margin-bottom: 0; }

.doc h1,
.doc h2,
.doc h3,
.empty-room h1 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.doc h1,
.empty-room h1 {
  font-size: 36px;
  margin: 0 0 24px;
}

.doc h2 { font-size: 28px; margin: 0 0 16px; }
.doc h3 { font-size: 22px; margin: 0 0 8px; }

.doc p,
.doc li {
  max-width: 70ch;
  margin: 0 0 16px;
}

.doc ul, .doc ol { padding-left: 24px; }

.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.steps li {
  max-width: none;
  margin: 0;
  background: var(--card);
  border: 1px solid #e4d5c2;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 16px 16px 16px 64px;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps p { margin: 0; }

.tips {
  display: grid;

  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tip-card {
  background: var(--card);
  border: 1px solid #e4d5c2;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 16px;
}

.tip-card p { margin: 0; max-width: none; }

.faq details {
  background: var(--card);
  border: 1px solid #e4d5c2;
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-bottom: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
}

.faq details p { margin: 12px 0 0; }

.board {
  padding-bottom: 64px;
}

.board h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.board-intro { margin: 0 0 24px; max-width: 70ch; }

.note-form {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  background: var(--card);
  border: 1px solid #e4d5c2;
  border-radius: var(--radius);
  padding: 24px;
  max-width: 70ch;
}

.field { display: grid; gap: 8px; font-weight: 600; font-size: 14px; }

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d7c4a8;
  border-radius: var(--radius);
  padding: 12px 16px;
  font: 400 16px/1.6 var(--font-body);
  color: var(--text);
  background: #fff;
}

.form-msg { margin: 0; font-size: 14px; color: var(--primary); }

.note-list { display: grid; gap: 16px; max-width: 70ch; }

.note-list[data-gf-empty]::before {
  content: "The notice board is empty. Leave the first landlord note.";
  display: block;
  padding: 24px;
  background: var(--card);
  border: 1px dashed #d7c4a8;
  border-radius: var(--radius);
  color: var(--muted);
}

.note {
  background: var(--card);
  border: 1px solid #e4d5c2;
  border-radius: var(--radius);
  padding: 16px;
}

.note[data-gf-owner] { border-color: var(--mint); box-shadow: var(--shadow-1); }

.note-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 14px;
}

.note-head time { color: var(--muted); }

.note-owner {
  display: none;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
}

[data-gf-owner] > .note-head .note-owner,
.note-head [data-gf-c-owner]:not(:empty) { display: inline-block; }

.note p { margin: 0 0 8px; }
.note-reply { margin-top: 12px; background: #eef3ea; }
.note-replies { margin-top: 8px; }

.site-footer {
  background: #2d6652;
  color: #eef3ea;
  padding: 48px 0;
}

.foot-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.foot-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: #fff9f1;
}

.foot-tag,
.foot-copy { margin: 0; font-size: 14px; color: #d5e6dc; max-width: 70ch; }

.foot-nav { display: flex; flex-wrap: wrap; gap: 16px; }

.foot-nav a { color: #fff9f1; }

.empty-room { padding-block: 64px; }
.empty-room .btn { margin-top: 8px; }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }

  .play-title,
  .doc h1,
  .empty-room h1 { font-size: 28px; }

  .play-grid,
  .tips { grid-template-columns: 1fr; }

  .head-row { flex-wrap: wrap; }

  .actions .btn,
  .note-form .btn,
  .empty-room .btn { width: 100%; }

  .stage { aspect-ratio: 4 / 3; }

  .first-screen { padding-top: 16px; }
  .doc { padding-block: 32px; }
}
