.awb-house-app [hidden] {
  display: none !important;
}

.awb-house-app {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  color: var(--awb-frost);
}

.awb-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;
}

.awb-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.awb-mode-pill {
  font-family: var(--awb-font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--awb-glow);
}

.awb-top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.awb-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 247, 235, 0.06);
  color: var(--awb-frost);
  border: 1px solid var(--awb-line);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--awb-font-body);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.awb-icon-btn:hover {
  background: rgba(255, 247, 235, 0.12);
  border-color: var(--awb-stitch);
}

.awb-notice {
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--awb-panel);
  border: 1px solid var(--awb-glow);
  color: var(--awb-frost);
  font-size: 0.9rem;
  line-height: 1.45;
}

.awb-notice.is-error {
  border-color: var(--awb-cherry);
  background: rgba(240, 68, 98, 0.16);
}

.awb-house-wrap {
  position: relative;
}

.awb-house-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 896 / 1200;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(4, 9, 18, 0.65);
  background: var(--awb-night-deep);
}

.awb-house-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.awb-doors-overlay {
  position: absolute;
  top: 41.8%;
  left: 13.4%;
  right: 13.4%;
  bottom: 7.4%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  z-index: 2;
}

.awb-burst-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.awb-door-slot {
  position: relative;
  perspective: 720px;
  border-radius: 9px;
}

.awb-door-cavity {
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 184, 48, 0.34), rgba(21, 37, 59, 0.96) 76%);
  box-shadow: inset 0 3px 10px rgba(4, 9, 18, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.awb-door-cavity .awb-sticker-art {
  width: 78%;
  height: 78%;
  opacity: 0;
  transform: scale(0.72) rotate(-6deg);
  transition: transform 0.36s cubic-bezier(0.22, 1.3, 0.36, 1) 0.14s, opacity 0.25s ease 0.12s;
}

.awb-door-slot.is-opened .awb-door-cavity .awb-sticker-art {
  opacity: 1;
  transform: scale(1) rotate(-4deg);
}

.awb-door-flap {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 4px;
  border-radius: 9px;
  border: 1.5px dashed var(--awb-stitch);
  background: rgba(21, 37, 59, 0.88);
  color: var(--awb-frost);
  font-family: var(--awb-font-display);
  font-weight: 800;
  font-size: clamp(0.92rem, 2.2vw, 1.25rem);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-shadow: 0 3px 0 rgba(4, 9, 18, 0.55);
  transition: transform 0.52s cubic-bezier(0.2, 1.32, 0.34, 1), background-color 0.16s ease, border-color 0.16s ease;
}

.awb-door-flap:hover {
  background: var(--awb-panel-up);
  border-color: var(--awb-glow);
  transform: rotateY(-12deg);
}

.awb-door-slot.is-today .awb-door-flap {
  background: var(--awb-cherry);
  border: 1.5px dashed rgba(255, 247, 235, 0.72);
  color: var(--awb-frost);
  box-shadow: 0 0 18px rgba(240, 68, 98, 0.65), 0 3px 0 var(--awb-cherry-dark);
  animation: awbTodayPulse 2.2s ease-in-out infinite;
}

.awb-door-slot.is-today .awb-door-flap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: linear-gradient(225deg, var(--awb-glow) 48%, rgba(255, 247, 235, 0.45) 52%);
  border-bottom-left-radius: 4px;
}

.awb-door-slot.is-filled-edit .awb-door-flap {
  background: rgba(240, 68, 98, 0.24);
  border-color: rgba(255, 184, 48, 0.6);
}

.awb-door-slot.is-editing .awb-door-flap {
  border-style: solid;
  border-color: var(--awb-glow);
  box-shadow: 0 0 0 2px rgba(255, 184, 48, 0.35);
}

.awb-door-slot.is-locked .awb-door-flap {
  background: rgba(13, 26, 43, 0.78);
  color: var(--awb-mist);
  border-color: rgba(255, 247, 235, 0.16);
}

.awb-door-slot.is-opened .awb-door-flap {
  transform: rotateY(-108deg);
  opacity: 0.22;
  pointer-events: none;
}

.awb-door-reopen {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 9px;
}

.awb-door-reopen:hover {
  box-shadow: inset 0 0 0 1.5px var(--awb-glow);
}

.awb-door-slot.is-shaking .awb-door-flap {
  animation: awbDoorShake 0.42s ease;
}

.awb-door-sub {
  font-family: var(--awb-font-body);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  color: var(--awb-glow);
  letter-spacing: 0.01em;
}

.awb-door-lock-ico {
  width: 11px;
  height: 11px;
  opacity: 0.75;
}

.awb-door-mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--awb-glow);
}

@keyframes awbTodayPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes awbDoorShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px) rotate(-2deg); }
  45% { transform: translateX(4px) rotate(2deg); }
  70% { transform: translateX(-3px); }
}

.awb-sticker-art {
  display: inline-block;
  background-image: url('https://img.adventwithbuddies.com/s_2e0i4306373k5m/stickers-sheet.c6e2f741bf.webp');
  background-size: 400% 300%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 4px 8px rgba(4, 9, 18, 0.35));
  flex-shrink: 0;
}

.awb-sill-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 4px 0;
}

.awb-sill-status {
  font-size: 0.9rem;
  color: var(--awb-mist);
}

.awb-sill-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.awb-edit-header {
  margin-bottom: 14px;
  background: var(--awb-panel);
  border: 1px dashed var(--awb-stitch);
  border-radius: 14px;
  padding: 14px;
}

.awb-gable-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.awb-gable-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.awb-inline-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 17, 30, 0.55);
  border: 1px solid var(--awb-line);
  border-radius: 9px;
  padding: 7px 10px;
}

.awb-inline-lbl {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--awb-mist);
  white-space: nowrap;
}

.awb-gable-input {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--awb-frost);
  font-family: var(--awb-font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0;
}

.awb-gable-title {
  font-family: var(--awb-font-display);
  font-size: 1.08rem;
  font-weight: 700;
}

.awb-gable-input:focus {
  outline: none;
}

.awb-vibe-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.awb-vibe-lbl {
  font-size: 0.8rem;
  color: var(--awb-mist);
  font-weight: 600;
}

.awb-vibe-btn {
  background: rgba(255, 247, 235, 0.08);
  color: var(--awb-frost);
  border: 1px solid var(--awb-stitch);
  border-radius: 8px;
  padding: 5px 10px;
  font-family: var(--awb-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.awb-vibe-btn:hover,
.awb-vibe-btn.is-active {
  background: var(--awb-cherry);
  border-color: var(--awb-cherry);
  color: var(--awb-frost);
}

.awb-lock-drawer {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--awb-mist);
}

.awb-lock-drawer summary {
  cursor: pointer;
  color: var(--awb-glow);
  font-weight: 600;
}

.awb-lock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.awb-create-footer {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.awb-btn-wide {
  width: 100%;
}

.awb-text-btn {
  background: transparent;
  border: 0;
  color: var(--awb-mist);
  font-family: var(--awb-font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 6px;
}

.awb-text-btn:hover {
  color: var(--awb-frost);
}

.awb-note-backdrop,
.awb-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 17, 30, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.awb-note-backdrop[hidden],
.awb-sheet-backdrop[hidden] {
  display: none;
}

.awb-note-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--awb-note);
  color: var(--awb-note-ink);
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 28px 70px rgba(4, 9, 18, 0.7);
  animation: awbNoteRise 0.32s cubic-bezier(0.2, 1.25, 0.35, 1);
}

@keyframes awbNoteRise {
  from { opacity: 0; transform: translateY(18px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.awb-note-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(23, 35, 52, 0.16);
  background: rgba(23, 35, 52, 0.06);
  color: var(--awb-note-ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.awb-note-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.awb-note-sticker {
  width: 72px;
  height: 72px;
  transform: rotate(-5deg);
}

.awb-note-day {
  margin: 0;
  font-family: var(--awb-font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--awb-cherry-dark);
}

.awb-note-from {
  margin: 2px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--awb-note-muted);
}

.awb-note-body {
  margin: 0 0 14px;
  font-family: var(--awb-font-hand);
  font-size: 1.28rem;
  line-height: 1.48;
  color: var(--awb-note-ink);
  word-break: break-word;
}

.awb-note-prompt {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(240, 68, 98, 0.09);
  border: 1px dashed rgba(200, 43, 71, 0.32);
  color: var(--awb-note-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.awb-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed rgba(23, 35, 52, 0.16);
}

.awb-note-card .awb-btn-ghost {
  background: rgba(23, 35, 52, 0.07);
  color: var(--awb-note-ink);
  border-color: rgba(23, 35, 52, 0.22);
}

.awb-note-card .awb-btn-ghost:hover {
  background: rgba(23, 35, 52, 0.13);
  color: var(--awb-note-ink);
}

.awb-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--awb-panel);
  border: 1.5px solid var(--awb-stitch);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 28px 64px rgba(4, 9, 18, 0.72);
}

.awb-share-sheet {
  max-width: 720px;
}

.awb-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.awb-sheet-title {
  margin: 0;
  font-family: var(--awb-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--awb-frost);
}

.awb-sheet-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.awb-chip-btn {
  background: rgba(255, 247, 235, 0.08);
  color: var(--awb-frost);
  border: 1px solid var(--awb-line);
  border-radius: 8px;
  padding: 7px 12px;
  font-family: var(--awb-font-body);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.awb-chip-btn:hover {
  background: rgba(255, 247, 235, 0.16);
  border-color: var(--awb-glow);
}

.awb-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.awb-sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.awb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.awb-field > span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--awb-frost);
}

.awb-input,
.awb-select,
.awb-textarea,
.awb-url-readout {
  width: 100%;
  background: rgba(8, 17, 30, 0.65);
  color: var(--awb-frost);
  border: 1.5px solid var(--awb-line);
  border-radius: 10px;
  padding: 11px 12px;
  font-family: var(--awb-font-body);
  font-size: 0.95rem;
}

.awb-input::placeholder,
.awb-textarea::placeholder {
  color: rgba(157, 177, 201, 0.62);
}

.awb-input:focus,
.awb-select:focus,
.awb-textarea:focus {
  border-color: var(--awb-glow);
  outline: none;
}

.awb-char-count {
  font-size: 0.78rem;
  color: var(--awb-mist);
  text-align: right;
}

.awb-sticker-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.awb-sticker-choice {
  padding: 6px;
  border-radius: 10px;
  border: 1.5px solid var(--awb-line);
  background: rgba(8, 17, 30, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.awb-sticker-choice:hover {
  transform: translateY(-2px);
  border-color: var(--awb-stitch);
}

.awb-sticker-choice.is-selected {
  border-color: var(--awb-glow);
  background: rgba(255, 184, 48, 0.16);
}

.awb-sticker-choice .awb-sticker-art {
  width: 100%;
  height: 100%;
}

.awb-panel-box {
  background: var(--awb-panel);
  border: 1.5px dashed var(--awb-stitch);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
}

.awb-panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.awb-panel-title {
  margin: 0 0 6px;
  font-family: var(--awb-font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--awb-frost);
}

.awb-panel-sub {
  margin: 0 0 16px;
  color: var(--awb-mist);
  font-size: 0.94rem;
}

.awb-form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.awb-gate-row,
.awb-share-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.awb-gate-row .awb-input,
.awb-gate-row .awb-url-readout {
  flex: 1 1 200px;
}

.awb-day-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.awb-day-btn {
  padding: 9px 4px;
  border-radius: 8px;
  border: 1px solid var(--awb-line);
  background: rgba(8, 17, 30, 0.55);
  color: var(--awb-frost);
  font-family: var(--awb-font-display);
  font-weight: 700;
  cursor: pointer;
}

.awb-day-btn.is-selected {
  background: var(--awb-cherry);
  border-color: var(--awb-cherry);
  color: var(--awb-frost);
}

.awb-check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--awb-mist);
  cursor: pointer;
  margin-top: 4px;
}

.awb-story-preview-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.awb-story-thumb-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--awb-stitch);
  background: var(--awb-night-deep);
}

.awb-story-canvas {
  width: 100%;
  height: auto;
  display: block;
}

.awb-share-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.awb-share-lead {
  margin: 0;
  font-size: 0.92rem;
  color: var(--awb-mist);
}

.awb-share-sub-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.awb-hooks-box {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.awb-hooks-lbl {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--awb-glow);
}

.awb-hooks-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.awb-hook-btn {
  text-align: left;
  background: rgba(8, 17, 30, 0.55);
  color: var(--awb-frost);
  border: 1px solid var(--awb-line);
  border-radius: 9px;
  padding: 9px 11px;
  font-family: var(--awb-font-body);
  font-size: 0.84rem;
  line-height: 1.4;
  cursor: pointer;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.awb-hook-btn:hover {
  border-color: var(--awb-glow);
  background: rgba(255, 184, 48, 0.10);
}

.awb-board-extra {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--awb-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.awb-viewer-header {
  text-align: center;
  margin-bottom: 12px;
}

.awb-viewer-title {
  margin: 0 0 4px;
  font-family: var(--awb-font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--awb-frost);
}

.awb-viewer-meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--awb-glow);
  font-weight: 600;
}

.awb-viewer-note {
  margin: 6px auto 0;
  max-width: 48ch;
  font-size: 0.9rem;
  color: var(--awb-mist);
}

.awb-viewer-footer {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.awb-sticker-shelf {
  background: var(--awb-panel);
  border: 1px solid var(--awb-line);
  border-radius: 12px;
  padding: 12px 14px;
}

.awb-shelf-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--awb-glow);
  margin-bottom: 8px;
}

.awb-shelf-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.awb-shelf-icons .awb-sticker-art {
  width: 40px;
  height: 40px;
}

.awb-code-fallback {
  font-size: 0.88rem;
  color: var(--awb-mist);
}

.awb-code-fallback summary {
  cursor: pointer;
  color: var(--awb-mist);
  font-weight: 600;
  margin-bottom: 8px;
}

.awb-viewer-bottom-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.awb-viral-nudge {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--awb-stitch);
  text-align: center;
}

.awb-viral-nudge p {
  margin: 0 0 10px;
  color: var(--awb-mist);
  font-size: 0.92rem;
}

.awb-mine-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.awb-mine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(8, 17, 30, 0.55);
  border: 1px solid var(--awb-line);
}

.awb-mine-row strong {
  display: block;
  font-size: 0.96rem;
  color: var(--awb-frost);
}

.awb-mine-row span {
  font-size: 0.82rem;
  color: var(--awb-mist);
}

@media (max-width: 640px) {
  .awb-story-preview-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .awb-story-thumb-wrap {
    max-width: 210px;
    margin: 0 auto;
  }

  .awb-lock-grid,
  .awb-gable-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .awb-sheet-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .awb-sheet {
    border-radius: 18px 18px 0 0;
    max-height: 82dvh;
  }
}

@media (max-width: 460px) {
  .awb-doors-overlay {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
  }

  .awb-sticker-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 981px) {
  .awb-house-app {
    max-width: clamp(390px, calc((100dvh - 148px) * 0.746), 500px);
  }
}