@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --ink: #493052;
  --muted: #927b9c;
  --rose: #ff0486;
  --rose-deep: #d72d83;
  --lavender: #c9b4e5;
  --cream: #fff7ed;
  --night: #29213d;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--night);
  overflow: hidden;
}

button { font: inherit; }

.game-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
}

/* ROOM BACKGROUND */

.room-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #29213d;
}

.room-wall {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255,218,227,.2), transparent 55%),
    linear-gradient(135deg, #76617e 0%, #594666 48%, #302840 100%);
}

.room-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.1) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(255,255,255,.08) 50%, transparent 50.2%);
  background-size: 180px 180px;
  pointer-events: none;
}

.wall-glow {
  position: absolute;
  width: 65%;
  height: 75%;
  left: 17%;
  top: 4%;
  background: radial-gradient(ellipse, rgba(255,190,202,.2), transparent 70%);
  pointer-events: none;
}

.wall-trim {
  position: absolute;
  z-index: 1;
  left: 0;
  width: 100%;
  height: 9px;
  background: linear-gradient(#f0d7d0, #bd929f);
  box-shadow: 0 3px 8px rgba(20,12,31,.18);
}

.wall-trim-top { top: 0; }
.wall-trim-bottom { bottom: 17%; height: 12px; }

/* WINDOW */

.room-window {
  position: absolute;
  width: clamp(190px, 23vw, 330px);
  height: clamp(230px, 34vh, 390px);
  right: 9%;
  top: 12%;
  z-index: 1;
  filter: drop-shadow(0 15px 20px rgba(20,12,31,.3));
}

.window-frame {
  position: absolute;
  inset: 0 0 18px;
  padding: 12px;
  border: 8px solid #e8c9c9;
  border-radius: 110px 110px 5px 5px;
  background: #a77c91;
  box-shadow: inset 0 0 0 3px #f8e6d9, 0 0 0 3px rgba(255,255,255,.12);
}

.window-glass {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 85px 85px 2px 2px;
  background: linear-gradient(#343b60, #65577f 65%, #a28ca2);
}

.moon {
  position: absolute;
  width: 35px;
  height: 35px;
  top: 17%;
  right: 17%;
  border-radius: 50%;
  background: #fff1cf;
  box-shadow: 0 0 25px 8px rgba(255,238,198,.3);
}

.snowy-hills {
  position: absolute;
  left: -10%;
  bottom: -5%;
  width: 120%;
  height: 38%;
  border-radius: 50% 50% 0 0;
  background: #e7e4f0;
  box-shadow: 60px -15px 0 -3px #c9c5df;
}

.window-cross {
  position: absolute;
  z-index: 3;
  background: #f3d9d4;
  box-shadow: 0 0 4px rgba(255,255,255,.4);
}

.window-cross.vertical {
  width: 7px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.window-cross.horizontal {
  height: 7px;
  width: 100%;
  top: 54%;
}

.window-sill {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(#f5ddd3, #bd929f);
  box-shadow: 0 7px 10px rgba(20,12,31,.25);
}

.window-curtain {
  position: absolute;
  top: -8px;
  height: 105%;
  width: 22%;
  z-index: 4;
  background: linear-gradient(90deg, #bd7d9d, #e2a7b8 50%, #b87699);
  border-radius: 15px 15px 45% 45%;
  opacity: .9;
}

.curtain-left { left: -7%; transform: rotate(3deg); }
.curtain-right { right: -7%; transform: rotate(-3deg); }

.window-snow {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.sill-candle {
  position: absolute;
  z-index: 6;
  left: 16%;
  bottom: 12px;
  width: 11px;
  height: 19px;
  border-radius: 3px 3px 1px 1px;
  background: #fff0cf;
  box-shadow: 0 0 14px 5px rgba(255,211,151,.4);
}

.sill-candle::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 8px;
  top: -7px;
  left: 3px;
  border-radius: 50%;
  background: #ffd77d;
  filter: blur(1px);
}

.sill-plant {
  position: absolute;
  z-index: 6;
  right: 13%;
  bottom: 12px;
  color: #789b79;
  font-size: 23px;
}

/* WALL ART */

.wall-picture {
  position: absolute;
  left: 12%;
  top: 18%;
  width: 105px;
  height: 125px;
  padding: 9px;
  background: #e8c9bd;
  transform: rotate(-4deg);
  box-shadow: 0 8px 18px rgba(20,12,31,.2);
  z-index: 2;
}

.picture-inner {
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eac5d8, #bba8d5);
  color: #fff2ed;
  font-family: 'Playfair Display', serif;
  font-size: 48px;
}

.picture-two {
  left: 27%;
  top: 12%;
  width: 65px;
  height: 78px;
  padding: 6px;
  transform: rotate(5deg);
}

.picture-inner-two {
  font-size: 32px;
  background: linear-gradient(145deg, #f1d6b9, #d59bb5);
}

/* CALENDAR */

.calendar-object {
  position: absolute;
  z-index: 6;
  left: 43%;
  top: 43%;
  width: clamp(190px, 19vw, 270px);
  min-height: 310px;
  padding: 32px 18px 22px;
  border: 0;
  border-radius: 5px;
  color: #69445f;
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(-2deg);
  background:
    radial-gradient(circle at 10% 12%, rgba(255,255,255,.8) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 20%, rgba(255,255,255,.7) 0 2px, transparent 3px),
    linear-gradient(145deg, #fff5ed, #f3d8e6 55%, #dfc8e9);
  box-shadow: 0 18px 30px rgba(15,8,25,.35), 0 5px 0 #b88da9,
    inset 0 0 0 3px rgba(255,255,255,.7);
  transition: transform .25s, box-shadow .25s;
}

.calendar-object:hover {
  transform: translate(-50%, -53%) rotate(0deg);
  box-shadow: 0 24px 38px rgba(15,8,25,.4), 0 5px 0 #b88da9;
}

.calendar-ribbon {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 30px;
  height: 40px;
  transform: translateX(-50%);
  background: #ff0486;
  clip-path: polygon(0 0,100% 0,100% 100%,50% 78%,0 100%);
}

.calendar-object-title,
.calendar-object-main,
.calendar-object-script,
.calendar-object-number,
.calendar-object-hint {
  display: block;
  position: relative;
}

.calendar-object-title {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
}

.calendar-object-main {
  margin-top: 5px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  color: #a94d82;
}

.calendar-object-script {
  margin-top: 7px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 24px;
  color: #805a9b;
}

.calendar-object-number {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: .3em;
}

.calendar-object-hint {
  margin-top: 17px;
  font-size: 9px;
  letter-spacing: .2em;
  color: #a77c99;
}

/* FURNITURE LAYER */

.room-furniture {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* FIREPLACE */

.fireplace {
  position: absolute;
  left: 7%;
  bottom: 16%;
  width: clamp(170px, 20vw, 270px);
  height: clamp(190px, 30vh, 290px);
  z-index: 2;
}

.fireplace-top {
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;
  height: 23px;
  border-radius: 5px;
  background: linear-gradient(#e9c9bd, #b88791);
  box-shadow: 0 5px 12px rgba(20,12,31,.2);
}

.fireplace-body {
  position: absolute;
  inset: 18px 0 0;
  background: linear-gradient(90deg, #a87580, #d5a5a1 50%, #a87580);
  border: 5px solid #e4c4b8;
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 0 15px rgba(75,35,55,.2);
}

.fireplace-opening {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 18%;
  bottom: 9%;
  overflow: hidden;
  border: 8px solid #855b6a;
  border-radius: 50% 50% 4px 4px;
  background: #211b2b;
}

.fire-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 85%, rgba(255,125,52,.65), transparent 65%);
}

.flame {
  position: absolute;
  bottom: 15%;
  width: 35%;
  height: 60%;
  border-radius: 60% 40% 55% 45%;
  transform-origin: bottom center;
  background: linear-gradient(#fff0a5, #ff9a45 65%, #e54d3d);
  filter: drop-shadow(0 0 9px #ff8a40);
  animation: fire-flicker .8s ease-in-out infinite alternate;
}

.flame-one { left: 16%; }
.flame-two { left: 38%; height: 78%; animation-delay: -.3s; }
.flame-three { right: 12%; height: 52%; animation-delay: -.5s; }

.fire-log {
  position: absolute;
  bottom: 9%;
  left: 18%;
  width: 65%;
  height: 12px;
  border-radius: 8px;
  background: #68433d;
  transform: rotate(-5deg);
}

.fireplace-hearth {
  position: absolute;
  bottom: -9px;
  left: -8%;
  width: 116%;
  height: 17px;
  border-radius: 3px;
  background: #e1b9ad;
  box-shadow: 0 8px 12px rgba(20,12,31,.25);
}

.fireplace-stock {
  position: absolute;
  bottom: -29px;
  left: 16%;
  display: flex;
  gap: 3px;
}

.fireplace-stock span {
  width: 42px;
  height: 10px;
  border-radius: 8px;
  background: linear-gradient(#a56d55, #68433d);
  transform: rotate(8deg);
}

.fireplace-stock span:nth-child(2) { transform: rotate(-7deg); }

@keyframes fire-flicker {
  from { transform: scaleY(.88) rotate(-4deg); }
  to { transform: scaleY(1.08) rotate(4deg); }
}

/* SIDE TABLE AND LAMP */

.side-table {
  position: absolute;
  left: 34%;
  bottom: 14%;
  width: 100px;
  height: 120px;
  z-index: 4;
}

.table-top {
  position: absolute;
  top: 38%;
  width: 100%;
  height: 13px;
  border-radius: 5px;
  background: linear-gradient(#eac6b9, #b9878e);
  box-shadow: 0 4px 7px rgba(20,12,31,.2);
}

.table-leg {
  position: absolute;
  top: 48%;
  left: 44%;
  width: 12px;
  height: 48%;
  background: #a87b83;
}

.table-foot {
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 7px;
  border-radius: 50%;
  background: #8d6574;
}

.table-lamp {
  position: absolute;
  top: -15%;
  left: 25%;
  width: 50%;
  height: 58%;
}

.lamp-shade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 65%;
  clip-path: polygon(20% 0,80% 0,100% 100%,0 100%);
  background: linear-gradient(90deg, #f3c8a9, #ffe2bd, #d9a6a5);
  filter: drop-shadow(0 0 15px rgba(255,202,143,.45));
}

.lamp-stem {
  position: absolute;
  left: 46%;
  top: 62%;
  height: 32%;
  width: 8%;
  background: #c99a91;
}

.lamp-base {
  position: absolute;
  left: 25%;
  bottom: 0;
  width: 50%;
  height: 9%;
  border-radius: 50%;
  background: #c99a91;
}

/* ARMCHAIR */

.armchair {
  position: absolute;
  right: 10%;
  bottom: 12%;
  width: clamp(150px, 19vw, 245px);
  height: clamp(150px, 24vh, 230px);
  z-index: 5;
}

.chair-back {
  position: absolute;
  left: 10%;
  top: 0;
  width: 80%;
  height: 75%;
  border-radius: 48% 48% 15% 15%;
  background: linear-gradient(110deg, #a95f83, #d38da5 55%, #995578);
  box-shadow: inset 10px 0 15px rgba(255,255,255,.12), 0 8px 15px rgba(20,12,31,.2);
}

.chair-seat {
  position: absolute;
  left: 5%;
  bottom: 12%;
  width: 90%;
  height: 34%;
  border-radius: 25px;
  background: linear-gradient(#dca0b3, #a65c80);
  box-shadow: 0 8px 10px rgba(20,12,31,.25);
}

.chair-cushion {
  position: absolute;
  z-index: 2;
  top: 24%;
  left: 34%;
  width: 34%;
  height: 30%;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff0e8;
  font-size: 27px;
  background: linear-gradient(145deg, #c8a8d7, #9876ad);
  transform: rotate(-8deg);
}

.chair-arm {
  position: absolute;
  bottom: 10%;
  width: 22%;
  height: 43%;
  border-radius: 18px;
  background: linear-gradient(90deg, #9d5677, #d38da5);
}

.chair-arm.left { left: 0; }
.chair-arm.right { right: 0; }

.chair-leg {
  position: absolute;
  bottom: 0;
  width: 9px;
  height: 18%;
  background: #68485a;
  border-radius: 3px;
}

.chair-leg.left { left: 18%; }
.chair-leg.right { right: 18%; }

.chair-blanket {
  position: absolute;
  z-index: 3;
  right: 7%;
  bottom: 15%;
  width: 34%;
  height: 36%;
  border-radius: 15px 5px 12px 5px;
  transform: rotate(-13deg);
  background: repeating-linear-gradient(90deg, #e6c6d9 0 8px, #c99bbd 8px 12px);
  box-shadow: 0 5px 8px rgba(30,15,35,.18);
}

/* CHRISTMAS TREE */

.christmas-tree {
  position: absolute;
  z-index: 3;
  left: 66%;
  bottom: 15%;
  width: clamp(105px, 12vw, 155px);
  height: clamp(220px, 36vh, 320px);
  filter: drop-shadow(0 12px 12px rgba(15,8,25,.25));
}

.tree-star {
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  color: #ffe8a6;
  font-size: 30px;
  text-shadow: 0 0 14px #ffe8a6, 0 0 25px #ffcf82;
  z-index: 5;
}

.tree-top {
  position: absolute;
  top: 5%;
  left: 44%;
  width: 12%;
  height: 12%;
  background: #547b66;
  clip-path: polygon(50% 0,100% 100%,0 100%);
}

.tree-layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #244c43, #477b62 48%, #244c43);
  clip-path: polygon(50% 0,100% 100%,0 100%);
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.15));
}

.tree-layer-one {
  top: 11%;
  width: 48%;
  height: 36%;
}

.tree-layer-two {
  top: 29%;
  width: 76%;
  height: 38%;
}

.tree-layer-three {
  top: 48%;
  width: 100%;
  height: 43%;
}

.tree-trunk {
  position: absolute;
  bottom: 0;
  left: 43%;
  width: 14%;
  height: 14%;
  background: linear-gradient(90deg, #704a3e, #a57559);
}

.tree-light,
.tree-bauble {
  position: absolute;
  z-index: 3;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.tree-light {
  background: #ffe7a0;
  box-shadow: 0 0 8px 3px rgba(255,224,145,.7);
  animation: twinkle 1.8s ease-in-out infinite alternate;
}

.light-one { top: 30%; left: 46%; }
.light-two { top: 49%; left: 27%; animation-delay: -.6s; }
.light-three { top: 55%; right: 24%; animation-delay: -.9s; }
.light-four { top: 72%; left: 42%; animation-delay: -.3s; }
.light-five { top: 78%; right: 20%; animation-delay: -.8s; }

.tree-bauble {
  background: radial-gradient(circle at 30% 25%, #fff, #e8a4c4 35%, #a84c83);
  box-shadow: 0 2px 5px rgba(0,0,0,.2);
}

.bauble-one { top: 40%; left: 25%; }
.bauble-two { top: 38%; right: 24%; background: radial-gradient(circle at 30% 25%, #fff, #f5d68e 35%, #c58a43); }
.bauble-three { top: 61%; left: 45%; }
.bauble-four { top: 68%; right: 18%; background: radial-gradient(circle at 30% 25%, #fff, #b8b2e8 35%, #70619e); }
.bauble-five { top: 77%; left: 23%; }
.bauble-six { top: 56%; right: 39%; background: radial-gradient(circle at 30% 25%, #fff, #f5d68e 35%, #c58a43); }

@keyframes twinkle {
  from { opacity: .65; transform: scale(.85); }
  to { opacity: 1; transform: scale(1.15); }
}


/* =========================================
   PRESENTS — A PILE UNDER THE TREE
========================================= */

.present {
  position: absolute;
  bottom: 12%;
  width: 52px;
  height: 40px;
  border-radius: 4px;
  z-index: 8;
  box-shadow:
    0 5px 9px rgba(20,12,31,.28),
    inset 0 2px 3px rgba(255,255,255,.2);
}

/* Ribbon */
.present::before {
  content: "";
  position: absolute;
  left: 44%;
  top: 0;
  width: 8px;
  height: 100%;
  background: #f8dca8;
}

/* Bow */
.present::after {
  content: "♡";
  position: absolute;
  top: -19px;
  left: 15px;
  color: #f8dca8;
  font-size: 23px;
}

/* Lid */
.present span {
  position: absolute;
  left: -3px;
  top: -5px;
  width: calc(100% + 6px);
  height: 9px;
  border-radius: 3px;
  background: #f4d5a7;
}

/* Large pink box — left */
.present-one {
  left: 59%;
  width: 68px;
  height: 49px;
  background: linear-gradient(135deg, #efb4c9, #b85d88);
  transform: rotate(-5deg);
}

/* Purple box — right */
.present-two {
  left: 70%;
  width: 58px;
  height: 44px;
  background: linear-gradient(135deg, #cbb8eb, #8068aa);
  transform: rotate(5deg);
}

/* Small golden box — front */
.present-three {
  left: 65%;
  width: 43px;
  height: 34px;
  background: linear-gradient(135deg, #f1d5b6, #bd8964);
  transform: rotate(4deg);
  z-index: 10;
}

.present-three::before,
.present-three span {
  background: #d98b9f;
}

/* Tall red-pink box */
.present-four {
  left: 62%;
  width: 38px;
  height: 53px;
  background: linear-gradient(135deg, #d77b91, #923e68);
  transform: rotate(-3deg);
  z-index: 9;
}

.present-four::before {
  background: #f5dfb9;
}

.present-four span {
  background: #f5dfb9;
}

/* Little lavender parcel */
.present-five {
  left: 73%;
  width: 35px;
  height: 29px;
  background: linear-gradient(135deg, #d8c8ed, #9980bd);
  transform: rotate(7deg);
  z-index: 10;
}

.present-five::before,
.present-five span {
  background: #f5dfb9;
}

/* Small screens */
@media (max-width: 700px) {
  .present-one { left: 56%; }
  .present-two { left: 70%; }
  .present-three { left: 64%; }
  .present-four { left: 60%; }
  .present-five { left: 74%; }
}


/* BOOKSHELF */

.bookshelf {
  position: absolute;
  z-index: 3;
  left: 2.5%;
  top: 49%;
  width: clamp(105px, 12vw, 150px);
  height: clamp(135px, 22vh, 190px);
  filter: drop-shadow(0 8px 8px rgba(15,8,25,.25));
}

.shelf-top {
  position: absolute;
  top: 0;
  width: 100%;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(#d5a9a0, #936779);
}

.shelf-side {
  position: absolute;
  top: 5px;
  bottom: 0;
  width: 9px;
  background: linear-gradient(90deg, #986b75, #c18c91);
}

.shelf-side-left { left: 0; }
.shelf-side-right { right: 0; }

.shelf-board {
  position: absolute;
  left: 0;
  width: 100%;
  height: 9px;
  background: linear-gradient(#d5a9a0, #986b75);
}

.shelf-board-one { top: 48%; }
.shelf-board-two { bottom: 0; }

.shelf-books {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 42%;
  bottom: 52%;
  left: 12%;
}

.shelf-books i {
  display: block;
  width: 13px;
  height: 80%;
  border-radius: 2px 2px 0 0;
  background: #bd7e9c;
  box-shadow: inset 2px 0 rgba(255,255,255,.2);
}

.shelf-books i:nth-child(2) { height: 95%; background: #d6b17e; }
.shelf-books i:nth-child(3) { height: 72%; background: #8d83b6; }
.shelf-books i:nth-child(4) { height: 88%; background: #a7b18b; }
.shelf-books i:nth-child(5) { height: 78%; background: #d28d9b; }

.shelf-books-two {
  bottom: 5%;
  height: 40%;
  left: 15%;
}

.shelf-books-two i:nth-child(1) { background: #8d83b6; }
.shelf-books-two i:nth-child(2) { background: #d6b17e; }
.shelf-books-two i:nth-child(3) { background: #bd7e9c; }
.shelf-books-two i:nth-child(4) { background: #a7b18b; }

.shelf-plant {
  position: absolute;
  right: 12%;
  top: 10%;
  color: #a8c59b;
  font-size: 26px;
  text-shadow: 0 2px 4px rgba(0,0,0,.2);
}

/* GRAMOPHONE */

.gramophone {
  position: absolute;
  z-index: 4;
  left: 28%;
  bottom: 15%;
  width: 75px;
  height: 100px;
  transform: scale(.85);
  filter: drop-shadow(0 5px 5px rgba(15,8,25,.25));
}

.gramophone-horn {
  position: absolute;
  top: 0;
  left: 17px;
  width: 53px;
  height: 48px;
  border-radius: 50% 50% 10% 10%;
  background: radial-gradient(ellipse at 50% 20%, #f5d9a0, #b88755 70%, #77513f);
  clip-path: polygon(45% 100%, 55% 100%, 100% 0, 0 0);
}

.gramophone-neck {
  position: absolute;
  top: 37px;
  left: 38px;
  width: 9px;
  height: 24px;
  background: #bd925f;
}

.gramophone-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 75px;
  height: 34px;
  border-radius: 5px;
  background: linear-gradient(145deg, #9a5d65, #603d51);
  border-bottom: 5px solid #4b3044;
}

.gramophone-disc {
  position: absolute;
  top: -10px;
  left: 17px;
  width: 42px;
  height: 18px;
  border-radius: 50%;
  background: #342b3d;
  border: 3px solid #c5a06e;
}

.gramophone-label {
  position: absolute;
  top: -5px;
  left: 34px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e6bd83;
}

/* SNOW GLOBE */

.snow-globe {
  position: absolute;
  z-index: 4;
  left: 39%;
  bottom: 15%;
  width: 48px;
  height: 66px;
  filter: drop-shadow(0 4px 5px rgba(15,8,25,.25));
}

.globe-glass {
  position: absolute;
  top: 0;
  left: 2px;
  width: 44px;
  height: 48px;
  overflow: hidden;
  border-radius: 50% 50% 43% 43%;
  border: 3px solid rgba(255,255,255,.75);
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.8), transparent 28%), linear-gradient(#a9c8df, #d8d9ef);
  box-shadow: inset 0 0 10px rgba(255,255,255,.7);
}

.globe-snow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#fff 1px, transparent 2px);
  background-size: 13px 12px;
  animation: globe-fall 3s linear infinite;
}

.globe-tree {
  position: absolute;
  bottom: 7px;
  left: 14px;
  width: 15px;
  height: 25px;
  background: #477b62;
  clip-path: polygon(50% 0,100% 100%,0 100%);
}

.globe-shine {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 7px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  transform: rotate(20deg);
}

.globe-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 20px;
  border-radius: 4px 4px 8px 8px;
  background: linear-gradient(#d6a5a7, #986779);
  border-bottom: 4px solid #70485f;
}

@keyframes globe-fall {
  from { background-position: 0 -20px; }
  to { background-position: 0 30px; }
}

/* SLEEPING CAT */

.sleeping-cat {
  position: absolute;
  z-index: 7;
  right: 13%;
  bottom: 21%;
  width: 90px;
  height: 55px;
  filter: drop-shadow(0 5px 5px rgba(20,12,31,.2));
  transform: rotate(-4deg);
}

.cat-body {
  position: absolute;
  left: 13px;
  bottom: 4px;
  width: 68px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8d4c6, #b99a9c);
}

.cat-head {
  position: absolute;
  left: 0;
  bottom: 13px;
  width: 38px;
  height: 34px;
  border-radius: 48%;
  background: linear-gradient(145deg, #f0dfd1, #c4a4a6);
}

.cat-ear {
  position: absolute;
  top: -7px;
  width: 13px;
  height: 16px;
  background: #d6b5b2;
  clip-path: polygon(50% 0,100% 100%,0 100%);
}

.cat-ear-left { left: 3px; transform: rotate(-15deg); }
.cat-ear-right { right: 3px; transform: rotate(15deg); }

.cat-face {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #815b6a;
  font-size: 18px;
  transform: rotate(90deg);
}

.cat-tail {
  position: absolute;
  right: -3px;
  bottom: 13px;
  width: 30px;
  height: 24px;
  border: 7px solid #b99a9c;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(15deg);
}

.cat-paw {
  position: absolute;
  z-index: 2;
  bottom: 1px;
  width: 21px;
  height: 12px;
  border-radius: 50%;
  background: #e8d4c6;
}

.cat-paw-one { left: 17px; }
.cat-paw-two { left: 39px; }

.cat-sleep {
  position: absolute;
  top: -17px;
  right: -5px;
  color: #f7d8e8;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  animation: sleepy 2.5s ease-in-out infinite;
}

@keyframes sleepy {
  0%, 100% { opacity: .4; transform: translateY(3px); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* GARLAND */

.wall-garland {
  position: absolute;
  z-index: 4;
  left: 39%;
  top: 10%;
  width: 24%;
  height: 65px;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  color: #f8dca8;
  font-size: 18px;
  text-shadow: 0 0 10px #ffe5ad;
}

.wall-garland::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  border-bottom: 2px solid #66816d;
  border-radius: 0 0 50% 50%;
}

.wall-garland span,
.wall-garland i {
  position: relative;
  z-index: 2;
}

.wall-garland i {
  width: 7px;
  height: 7px;
  margin-top: 24px;
  border-radius: 50%;
  background: #ffe7a0;
  box-shadow: 0 0 10px 3px rgba(255,224,145,.65);
}

/* FLOOR */

.room-floor {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 17%;
  background: linear-gradient(#a77c87, #684d66);
  border-top: 7px solid #d5a8a8;
}

.floorboards {
  position: absolute;
  inset: 0;
  opacity: .32;
  background:
    repeating-linear-gradient(90deg, transparent 0 130px, rgba(49,31,53,.35) 131px 134px),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(49,31,53,.22) 43px 45px);
}

.floor-baseboard {
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 7px;
  background: #f0d3ca;
  box-shadow: 0 3px 6px rgba(20,12,31,.2);
}

.floor-rug {
  position: absolute;
  z-index: 2;
  left: 31%;
  bottom: 3%;
  width: 39%;
  height: 13%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #c99bb6, #8f6c91 70%, #6b526f);
  border: 5px solid rgba(241,203,211,.5);
  box-shadow: 0 8px 15px rgba(20,12,31,.2);
}

.rug-inner {
  position: absolute;
  inset: 9px;
  border: 2px dashed rgba(255,231,228,.45);
  border-radius: 50%;
}

.floor-shadow {
  position: absolute;
  z-index: 3;
  bottom: 15%;
  left: 0;
  width: 100%;
  height: 15%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(30,20,42,.16));
}

/* ROOM DETAILS */

.room-clock {
  position: absolute;
  z-index: 7;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  color: #f5dfd1;
  text-shadow: 0 2px 8px #211a35;
  letter-spacing: .2em;
  font-size: 11px;
}

.room-caption {
  position: absolute;
  z-index: 10;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  color: #f5dfd1;
  text-shadow: 0 2px 8px #211a35;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: .18em;
}

.caption-heart {
  color: var(--rose);
  margin-left: 8px;
}

.room-hint {
  position: absolute;
  z-index: 12;
  bottom: 6%;
  right: 3%;
  color: #fff0e9;
  font-size: 12px;
  text-shadow: 0 2px 8px #211a35;
}

.room-vignette {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(15,9,25,.3);
}

/* DECORATIONS ADDED BY THE CALENDAR */

.room-items {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}

.room-items > * { pointer-events: auto; }

.fairy-lights {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

/* CHRISTMAS LIGHTS */

.fairy-lights::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 5%;
  width: 90%;
  height: 65px;
  border-bottom: 3px solid rgba(54, 91, 69, .95);
  border-radius: 0 0 50% 50%;
  filter: drop-shadow(0 3px 3px rgba(15, 8, 25, .25));
  opacity: 0;
  transition: opacity .5s ease;
}

.fairy-lights.on::before {
  opacity: 1;
}

.fairy-bulb {
  position: absolute;
  top: 11%;
  z-index: 2;
  width: 17px;
  height: 23px;
  padding: 0;
  border: 0;
  border-radius: 45% 45% 50% 50%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  pointer-events: auto;
  outline: none;
  opacity: 0;
  background: #fff1c8;
  box-shadow:
    0 0 8px 3px rgba(255, 239, 190, .8),
    0 0 20px 8px rgba(255, 224, 160, .45);
  transform: translateX(-50%);
  transition: opacity .4s ease, filter .3s ease;
  animation: fairy-glow 1.8s ease-in-out infinite alternate;
  animation-delay: var(--bulb-delay, 0s);
}

.fairy-lights.on .fairy-bulb {
  opacity: 1;
}

.fairy-bulb:nth-child(3n + 1) {
  background: #ffd7e5;
  box-shadow: 0 0 8px 3px rgba(255, 185, 218, .8), 0 0 20px 8px rgba(255, 145, 197, .4);
}

.fairy-bulb:nth-child(3n + 2) {
  background: #ffe6a5;
  box-shadow: 0 0 8px 3px rgba(255, 230, 165, .8), 0 0 20px 8px rgba(255, 210, 125, .4);
}

.fairy-bulb:nth-child(3n) {
  background: #d9e8ff;
  box-shadow: 0 0 8px 3px rgba(190, 220, 255, .8), 0 0 20px 8px rgba(160, 195, 255, .4);
}

.fairy-bulb:nth-child(2n) { top: 14%; }
.fairy-bulb:nth-child(4n) { top: 17%; }
.fairy-bulb.bulb-off {
  opacity: .12 !important;
  filter: grayscale(1);
  box-shadow: none;
  animation: none;
}

.fairy-bulb:focus-visible {
  outline: 2px solid #fff4d8;
  outline-offset: 5px;
}

@keyframes fairy-glow {
  from { filter: brightness(.8); transform: translateX(-50%) scale(.9); }
  to { filter: brightness(1.3); transform: translateX(-50%) scale(1.12); }
}

/* INTERACTIVE ROOM OBJECTS */

.room-object {
  position: absolute;
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: center bottom;
  filter: drop-shadow(0 5px 5px rgba(20, 12, 31, .22));
  transition: transform .25s ease, filter .25s ease;
}

.room-object:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 9px 8px rgba(20, 12, 31, .3));
}

.room-object:focus-visible {
  outline: 2px solid rgba(255, 235, 210, .9);
  outline-offset: 5px;
  border-radius: 8px;
}

.room-object::before,
.room-object::after {
  content: "";
  position: absolute;
  display: block;
}

/* MUSIC BOX */

.room-object-musicbox {
  left: 34%;
  bottom: 29%;
  width: 66px;
  height: 52px;
  z-index: 8;
}

.room-object-musicbox::before {
  left: 0;
  bottom: 0;
  width: 66px;
  height: 38px;
  border: 3px solid #e7c7a6;
  border-radius: 5px 5px 8px 8px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 226, 180, .8) 48% 52%, transparent 53%),
    linear-gradient(145deg, #c88da4, #86516f);
  box-shadow: inset 0 3px 5px rgba(255,255,255,.25), 0 4px 7px rgba(30,15,35,.2);
}

.room-object-musicbox::after {
  left: 8px;
  top: 0;
  width: 50px;
  height: 17px;
  border: 3px solid #e7c7a6;
  border-radius: 50% 50% 4px 4px;
  background: linear-gradient(145deg, #f2d5a5, #c18a72);
}

/* PLUSH TOY */

.room-object-plush {
  right: 21%;
  bottom: 24%;
  width: 58px;
  height: 65px;
  z-index: 8;
}

.room-object-plush::before {
  left: 8px;
  bottom: 0;
  width: 43px;
  height: 43px;
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(145deg, #f7e5d7, #d7b6b5);
  box-shadow: inset -5px -5px 0 rgba(155, 112, 124, .12);
}

.room-object-plush::after {
  left: 15px;
  top: 0;
  width: 30px;
  height: 31px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 35% 58%, #765568 0 2px, transparent 3px),
    radial-gradient(ellipse at 67% 58%, #765568 0 2px, transparent 3px),
    radial-gradient(ellipse at 50% 72%, #c27e91 0 2px, transparent 3px),
    #f3ded2;
  box-shadow:
    -8px -5px 0 -4px #d7b6b5,
    8px -5px 0 -4px #d7b6b5;
}

/* CHRISTMAS WREATH */

.room-object-wreath {
  left: 19%;
  top: 28%;
  width: 83px;
  height: 83px;
  z-index: 4;
  border: 12px solid #416b55;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 48%, rgba(25, 55, 42, .25) 50%);
  box-shadow:
    inset 0 0 0 3px #78916c,
    0 0 0 2px rgba(239, 211, 183, .6);
}

.room-object-wreath::before {
  top: -13px;
  left: 20px;
  width: 28px;
  height: 20px;
  background: #c77b91;
  clip-path: polygon(0 0, 50% 35%, 100% 0, 78% 100%, 50% 68%, 22% 100%);
  transform: rotate(8deg);
}

.room-object-wreath::after {
  top: 17px;
  left: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e9c17e;
  box-shadow:
    35px 7px 0 #e9c17e,
    24px 36px 0 #d98ca6,
    -5px 34px 0 #d98ca6;
}

/* BELLS */

.room-object-bells {
  left: 55%;
  top: 20%;
  width: 72px;
  height: 55px;
  z-index: 5;
}

.room-object-bells::before {
  left: 7px;
  top: 12px;
  width: 25px;
  height: 29px;
  border-radius: 45% 45% 50% 50%;
  background: linear-gradient(90deg, #b88745, #ffe4a0 50%, #b88745);
  clip-path: polygon(30% 0, 70% 0, 100% 80%, 100% 90%, 0 90%, 0 80%);
  box-shadow: 0 2px 5px rgba(20,12,31,.25);
}

.room-object-bells::after {
  left: 39px;
  top: 12px;
  width: 25px;
  height: 29px;
  border-radius: 45% 45% 50% 50%;
  background: linear-gradient(90deg, #b88745, #ffe4a0 50%, #b88745);
  clip-path: polygon(30% 0, 70% 0, 100% 80%, 100% 90%, 0 90%, 0 80%);
  box-shadow: 0 2px 5px rgba(20,12,31,.25);
}

.room-object-bells {
  background:
    radial-gradient(circle at 24px 43px, #a97843 0 4px, transparent 5px),
    radial-gradient(circle at 56px 43px, #a97843 0 4px, transparent 5px);
}

.room-object-bells:hover {
  animation: bells-swing .4s ease-in-out;
}

@keyframes bells-swing {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -8deg; }
  75% { rotate: 8deg; }
}

/* HOT CHOCOLATE */

.room-object-cocoa {
  left: 37%;
  bottom: 27%;
  width: 42px;
  height: 48px;
  z-index: 9;
}

.room-object-cocoa::before {
  left: 3px;
  bottom: 0;
  width: 34px;
  height: 31px;
  border: 3px solid #f3d9d2;
  border-radius: 4px 4px 12px 12px;
  background: linear-gradient(90deg, #744333, #a96d4d);
  box-shadow: inset 0 4px 0 rgba(255,255,255,.15);
}

.room-object-cocoa::after {
  left: 10px;
  top: 3px;
  width: 21px;
  height: 10px;
  border-radius: 50%;
  background: #f1d7bd;
  box-shadow:
    4px -9px 0 -3px rgba(255, 242, 222, .8),
    10px -12px 0 -4px rgba(255, 242, 222, .65);
}

/* SNOWFLAKES */

.room-object-snowflakes {
  right: 24%;
  top: 24%;
  width: 95px;
  height: 100px;
  z-index: 4;
  filter: drop-shadow(0 0 8px rgba(215, 232, 255, .65));
}

.room-object-snowflakes::before {
  content: "✧";
  left: 5px;
  top: 10px;
  color: #fff4e8;
  font-size: 37px;
  text-shadow: 0 0 12px #dceaff;
}

.room-object-snowflakes::after {
  content: "❄";
  right: 2px;
  bottom: 0;
  color: #e6edff;
  font-size: 38px;
  text-shadow: 0 0 12px #dceaff;
}

.room-object-snowflakes:hover {
  animation: snowflake-drift 1.2s ease-in-out infinite alternate;
}

@keyframes snowflake-drift {
  from { translate: 0 0; rotate: -7deg; }
  to { translate: 4px -8px; rotate: 8deg; }
}

/* LITTLE LETTER */

.room-object-letter {
  left: 43%;
  bottom: 25%;
  width: 54px;
  height: 43px;
  z-index: 8;
  transform: rotate(-8deg);
}

.room-object-letter::before {
  inset: 0;
  border: 2px solid #e8c8a9;
  border-radius: 3px;
  background: linear-gradient(145deg, #fff6e8, #e8c8d6);
  box-shadow: 0 3px 8px rgba(20,12,31,.2);
}

.room-object-letter::after {
  left: 0;
  top: 0;
  width: 100%;
  height: 27px;
  background: #d99bb1;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* HEART ORNAMENT */

.room-object-heart {
  left: 47%;
  top: 26%;
  width: 43px;
  height: 43px;
  z-index: 5;
}

.room-object-heart::before {
  content: "♥";
  inset: 0;
  color: #e99ab6;
  font-size: 43px;
  line-height: 43px;
  text-align: center;
  text-shadow: 0 3px 6px rgba(50, 20, 45, .2), 0 0 12px rgba(255, 190, 215, .35);
}

.room-object-heart::after {
  left: 19px;
  top: -12px;
  width: 2px;
  height: 14px;
  background: #d8c1a8;
}

/* INTERACTIVE STATES */

.playing .gramophone-disc,
.gramophone.playing .gramophone-disc {
  animation: record-spin 2s linear infinite;
}

@keyframes record-spin {
  to { transform: rotate(360deg); }
}

.shaken {
  animation: globe-shake .45s ease-in-out;
}

@keyframes globe-shake {
  0%, 100% { rotate: 0deg; }
  20% { rotate: -8deg; }
  40% { rotate: 8deg; }
  60% { rotate: -6deg; }
  80% { rotate: 5deg; }
}

.twinkling {
  animation: object-twinkle .8s ease-in-out infinite alternate;
}

@keyframes object-twinkle {
  from { filter: brightness(1); }
  to { filter: brightness(1.55) drop-shadow(0 0 12px #ffe5ac); }
}

.cat-stirred {
  animation: cat-stir .7s ease-in-out;
}

@keyframes cat-stir {
  0%, 100% { rotate: 0deg; }
  30% { rotate: -5deg; }
  70% { rotate: 4deg; }
}

.window-glowing .window-glass {
  box-shadow: inset 0 0 30px rgba(255, 231, 190, .55), 0 0 22px rgba(255, 231, 190, .3);
}

.present-wiggle {
  animation: present-wiggle .5s ease-in-out;
}

@keyframes present-wiggle {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -7deg; }
  75% { rotate: 7deg; }
}

.stockings-wiggle {
  animation: present-wiggle .5s ease-in-out;
}

/* SNOW */

.snow-layer {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

.snow-layer.snowing::after {
  content: "✦   ❄      ✧        ❄     ✦       ❄";
  position: absolute;
  inset: 0;
  color: rgba(255,255,255,.85);
  font-size: 22px;
  line-height: 2.8;
  letter-spacing: 3em;
  white-space: pre-wrap;
  text-shadow: 0 0 10px #fff;
  animation: snow-drift 5s linear infinite;
}

@keyframes snow-drift {
  from { transform: translateY(-40px); }
  to { transform: translateY(100vh); }
}

/* CALENDAR SCREEN */

.calendar-screen {
  position: absolute;
  z-index: 30;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,.6), transparent 60%),
    linear-gradient(145deg, #f9e6ef, #e9dcf5 55%, #d7c8eb);
  animation: calendar-appear .45s ease both;
}

.calendar-screen[hidden] { display: none !important; }

@keyframes calendar-appear {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}

.calendar-panel {
  width: min(950px, 94%);
  margin: 0 auto;
  padding: 28px 20px 35px;
}

.back-button {
  border: 1px solid rgba(115,75,120,.2);
  background: rgba(255,255,255,.55);
  color: #76577d;
  border-radius: 30px;
  padding: 10px 17px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.back-button:hover {
  background: white;
  transform: translateX(-3px);
}

.calendar-header {
  text-align: center;
  padding: 15px 0 20px;
}

.eyebrow {
  color: #b16a9c;
  font-size: 10px;
  letter-spacing: .3em;
}

.calendar-header h1 {
  margin: 10px 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  color: #69466f;
}

.calendar-header h1 span { color: #8d68b5; }

.subtitle {
  color: #947a9a;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.date-line {
  margin-top: 18px;
  color: #ad6d9b;
  font-size: 11px;
  letter-spacing: .2em;
}

.calendar-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 15px 45px rgba(90,57,105,.12);
}

.garland {
  text-align: center;
  color: #b982aa;
  letter-spacing: .4em;
  margin-bottom: 20px;
}

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

/* DOORS */

.door {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 12px;
  color: #875a83;
  background: linear-gradient(145deg, #fff8f1, #f1d8e9);
  box-shadow: 0 5px 10px rgba(90,57,105,.12);
  font-family: 'Playfair Display', serif;
  font-size: clamp(17px, 2.5vw, 25px);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.door:hover:not(:disabled) {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 10px 18px rgba(90,57,105,.2);
}

.door:disabled {
  cursor: default;
  opacity: .65;
}

.door.opened {
  color: #fff7f2;
  background: linear-gradient(145deg, #d77eaa, #9d75b6);
  border-color: rgba(255,255,255,.65);
}

.door.window {
  grid-column: span 1 !important;
  grid-row: span 1 !important;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), transparent 38%),
    linear-gradient(145deg, #fce8fa, #d9bce9 55%, #f9d9ed);
  box-shadow: 0 0 18px rgba(255,220,250,.65),
    0 0 35px rgba(255,72,170,.22),
    inset 0 0 0 2px rgba(255,255,255,.55),
    inset 0 0 18px rgba(255,255,255,.55);
}

.door.window .window-frame {
  position: absolute;
  inset: 7px;
  border: 5px solid #fff9f0;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 47%, #fff9f0 47%, #fff9f0 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, #fff9f0 47%, #fff9f0 53%, transparent 53%),
    linear-gradient(135deg, #a9c8ed, #e8dafa 55%, #ffe5e9);
  box-shadow: 0 0 10px rgba(255,255,255,.8),
    inset 0 0 18px rgba(255,255,255,.35);
}

.door.window .window-snow {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  text-shadow: 0 1px 5px rgba(120,90,150,.45);
  pointer-events: none;
}

.door.window .window-number {
  position: absolute;
  z-index: 3;
  bottom: 7px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #805c88;
  font-weight: 700;
  text-shadow: 0 1px 2px white;
}

.door.window.opened {
  box-shadow: 0 0 22px rgba(255,220,250,.9),
    0 0 42px rgba(255,72,170,.35),
    inset 0 0 0 2px rgba(255,255,255,.8);
}

.hint {
  margin: 22px 0 0;
  color: #987e9e;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
}

.calendar-footer {
  text-align: center;
  color: #9c7da3;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  margin: 25px 0 0;
}

.calendar-footer span { color: var(--rose); }

/* GIFT DIALOG */

.gift-dialog {
  position: fixed;
  width: min(520px, calc(100% - 32px));
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 22px;
  padding: 35px;
  color: #62486d;
  background: linear-gradient(145deg, #fff9f3, #f7e6f1);
  box-shadow: 0 25px 80px rgba(20,10,35,.35);
}

.gift-dialog::backdrop {
  background: rgba(29,20,42,.65);
  backdrop-filter: blur(5px);
}

.close-dialog {
  position: absolute;
  top: 12px;
  right: 15px;
  border: 0;
  background: transparent;
  color: #9b7298;
  font-size: 28px;
  cursor: pointer;
}

.dialog-sparkle {
  text-align: center;
  color: #d48bb2;
  font-size: 30px;
}

.dialog-day {
  text-align: center;
  color: #b66f9b;
  font-size: 10px;
  letter-spacing: .25em;
}

.gift-dialog h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 500;
}

.dialog-content {
  line-height: 1.7;
  color: #725c79;
}

.dialog-signoff {
  text-align: center;
  margin-top: 25px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #b36b99;
}

/* TOAST */

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  max-width: calc(100% - 30px);
  padding: 12px 20px;
  border-radius: 30px;
  color: white;
  background: rgba(67,45,79,.92);
  box-shadow: 0 8px 25px rgba(20,10,35,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.toast.show { opacity: 1; }

/* RESPONSIVE */

@media (max-width: 760px) {
  .room-window {
    width: 155px;
    height: 210px;
    right: 5%;
    top: 13%;
  }

  .wall-picture {
    left: 5%;
    top: 14%;
    width: 70px;
    height: 85px;
  }

  .picture-two {
    left: 22%;
    top: 12%;
    width: 48px;
    height: 60px;
  }

  .calendar-object {
    left: 47%;
    top: 45%;
    width: 175px;
    min-height: 255px;
    padding: 25px 12px 16px;
  }

  .calendar-object-title { font-size: 19px; }
  .calendar-object-main { font-size: 25px; }
  .calendar-object-script { font-size: 20px; }

  .fireplace {
    left: 3%;
    bottom: 15%;
    width: 135px;
    height: 175px;
  }

  .armchair {
    right: 3%;
    bottom: 12%;
    width: 125px;
    height: 145px;
  }

  .side-table {
    left: 35%;
    bottom: 14%;
    transform: scale(.75);
    transform-origin: bottom center;
  }

  .christmas-tree {
    left: 67%;
    bottom: 15%;
    width: 85px;
    height: 190px;
  }

  .bookshelf {
    left: 1%;
    top: 51%;
    width: 85px;
    height: 115px;
  }

  .gramophone {
    left: 25%;
    bottom: 15%;
    transform: scale(.65);
  }

  .snow-globe {
    left: 39%;
    bottom: 15%;
    transform: scale(.8);
  }

  .sleeping-cat {
    right: 9%;
    bottom: 21%;
    transform: scale(.75);
    transform-origin: bottom right;
  }

  .wall-garland {
    left: 35%;
    width: 30%;
    top: 12%;
  }

  .present {
    transform: scale(.7);
    transform-origin: bottom left;
  }

  .room-caption {
    font-size: 7px;
    letter-spacing: .1em;
  }

  .room-hint {
    bottom: 7%;
    right: 4%;
    font-size: 9px;
  }

  .calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }

  .calendar-panel { padding: 18px 8px 25px; }
  .calendar-wrap { padding: 14px; }
  .gift-dialog { padding: 30px 22px; }
}

@media (max-height: 650px) and (min-width: 761px) {
  .room-window { height: 210px; }
  .fireplace { height: 185px; }
  .armchair { height: 155px; }
  .calendar-object { min-height: 260px; }
  .christmas-tree { height: 210px; }
  .bookshelf { height: 135px; }
}

/* FINAL ROOM ADJUSTMENTS */

/* Make the tree substantially larger without changing its shape. */
.christmas-tree {
  width: clamp(165px, 16vw, 205px);
  height: clamp(300px, 43vh, 390px);
  left: 64%;
  bottom: 14%;
}

/* Keep the bookshelf fully visible and above nearby furniture. */
.bookshelf {
  top: 37%;
  left: 2.5%;
  width: clamp(125px, 13vw, 160px);
  height: clamp(160px, 23vh, 205px);
  z-index: 6;
}

/* A softer, rounder sleeping cat curled into a little ball. */
.sleeping-cat {
  width: 112px;
  height: 72px;
  right: 12%;
  bottom: 20%;
  transform: rotate(-5deg);
  z-index: 7;
}

.cat-body {
  left: 18px;
  bottom: 3px;
  width: 86px;
  height: 55px;
  border-radius: 48% 52% 48% 50%;
  background: linear-gradient(145deg, #f0dfd0, #c7a6a6 80%);
  box-shadow: inset -7px -5px 0 rgba(126, 87, 99, .12);
}

.cat-head {
  left: 2px;
  bottom: 17px;
  width: 43px;
  height: 39px;
  border-radius: 48% 48% 45% 45%;
  background: linear-gradient(145deg, #f7e9dc, #d4b5ad);
  z-index: 3;
}

.cat-ear {
  top: -8px;
  width: 15px;
  height: 19px;
  background: #d8b8b0;
}

.cat-ear-left { left: 3px; }
.cat-ear-right { right: 3px; }

.cat-face {
  top: 15px;
  left: 10px;
  width: 24px;
  height: 10px;
  font-size: 0;
  transform: none;
}

.cat-face::before {
  content: "⌒  ⌒";
  position: absolute;
  left: 0;
  top: -2px;
  width: 100%;
  color: #805c68;
  font-family: Georgia, serif;
  font-size: 13px;
  letter-spacing: 1px;
}

.cat-face::after {
  content: "·";
  position: absolute;
  top: 5px;
  left: 10px;
  color: #b77986;
  font-size: 17px;
}

.cat-tail {
  right: 0;
  bottom: 5px;
  width: 42px;
  height: 39px;
  border: 9px solid #c7a6a6;
  border-left-color: transparent;
  border-bottom-color: #c7a6a6;
  border-radius: 50%;
  transform: rotate(-28deg);
  z-index: 2;
}

.cat-paw {
  bottom: 2px;
  width: 25px;
  height: 13px;
  background: #f1dfd2;
  z-index: 4;
}

.cat-paw-one { left: 32px; }
.cat-paw-two { left: 52px; }

.cat-sleep {
  top: -17px;
  right: -3px;
  font-size: 15px;
}

/* Make all existing furniture targets visibly clickable without outlines. */
.room-furniture [role="button"],
.room-window[role="button"],
.wall-picture[role="button"],
.tree-star[role="button"] {
  cursor: pointer;
  outline: none;
}

.room-furniture [role="button"]:focus-visible,
.room-window[role="button"]:focus-visible,
.wall-picture[role="button"]:focus-visible,
.tree-star[role="button"]:focus-visible {
  outline: 2px solid rgba(255, 235, 210, .9);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Keep interactive decorations clean and remove browser button styling. */
.room-object,
.fairy-bulb {
  font-size: 0;
  line-height: 0;
  color: transparent;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile room adjustments. */
@media (max-width: 760px) {
  .christmas-tree {
    left: 63%;
    bottom: 15%;
    width: 120px;
    height: 245px;
  }

  .bookshelf {
    left: 2%;
    top: 35%;
    width: 100px;
    height: 145px;
  }

  .sleeping-cat {
    right: 5%;
    bottom: 20%;
    transform: scale(.78) rotate(-5deg);
    transform-origin: bottom right;
  }

  .fairy-lights::before {
    top: 9%;
    left: 3%;
    width: 94%;
  }

  .fairy-bulb {
    top: 12%;
    width: 12px;
    height: 17px;
  }

  .fairy-bulb:nth-child(2n) { top: 15%; }
  .fairy-bulb:nth-child(4n) { top: 18%; }

  .room-object-wreath {
    left: 19%;
    top: 27%;
    transform: scale(.75);
    transform-origin: top left;
  }

  .room-object-bells {
    left: 54%;
    top: 22%;
    transform: scale(.8);
    transform-origin: top left;
  }

  .room-object-snowflakes {
    right: 21%;
    top: 29%;
    transform: scale(.75);
    transform-origin: top right;
  }

  .room-object-heart {
    left: 48%;
    top: 29%;
    transform: scale(.8);
  }

  .room-object-plush {
    right: 18%;
    bottom: 24%;
    transform: scale(.8);
  }

  .room-object-musicbox {
    left: 33%;
    bottom: 27%;
    transform: scale(.8);
    transform-origin: bottom left;
  }

  .room-object-cocoa {
    left: 39%;
    bottom: 26%;
    transform: scale(.8);
    transform-origin: bottom left;
  }

  .room-object-letter {
    left: 46%;
    bottom: 25%;
    transform: scale(.8) rotate(-8deg);
    transform-origin: bottom left;
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  .christmas-tree {
    height: 270px;
    width: 155px;
  }

  .bookshelf {
    top: 34%;
    height: 150px;
  }

  .sleeping-cat {
    transform: scale(.85) rotate(-5deg);
    transform-origin: bottom right;
  }
}
/* =========================================
   CHRISTMAS ROOM — FIREPLACE & FURNITURE
   ========================================= */

/* BOOKSHELF — move it above the fireplace */
.bookshelf {
  left: 2.5%;
  top: 28%;
  width: clamp(115px, 11vw, 140px);
  height: clamp(130px, 18vh, 160px);
  z-index: 6;
}

/* CHRISTMAS TREE — bigger and more prominent */
.christmas-tree {
  left: 63%;
  bottom: 14%;
  width: clamp(185px, 18vw, 235px);
  height: clamp(340px, 47vh, 430px);
  z-index: 4;
}

/* SNOW GLOBE — now sitting on the fireplace mantel */
.snow-globe {
  left: 13%;
  bottom: calc(16% + clamp(190px, 30vh, 290px) - 4px);
  width: 58px;
  height: 78px;
  z-index: 7;
  transform: scale(1.05);
  transform-origin: bottom center;
}

/* STOCKINGS — hang from the front of the mantel */
.fireplace-stock {
  left: 17%;
  top: 19px;
  bottom: auto;
  z-index: 6;
  display: flex;
  gap: 12px;
}

.fireplace-stock span {
  position: relative;
  width: 28px;
  height: 41px;
  border-radius: 4px 4px 11px 11px;
  border-top: 8px solid #f7e6d9;
  background: linear-gradient(135deg, #bd526f, #853d5c);
  box-shadow: 0 3px 5px rgba(30, 15, 35, .25);
  transform: rotate(5deg);
}

.fireplace-stock span:nth-child(2) {
  background: linear-gradient(135deg, #64866b, #365d4d);
  transform: rotate(-5deg);
}

.fireplace-stock span:nth-child(3) {
  background: linear-gradient(135deg, #bd526f, #853d5c);
  transform: rotate(4deg);
}

/* Little decorative greenery along the mantel */
.fireplace-top::before {
  content: "";
  position: absolute;
  left: 28%;
  top: -9px;
  width: 68%;
  height: 17px;
  border-bottom: 5px solid #416b50;
  border-radius: 0 0 50% 50%;
  background:
    radial-gradient(ellipse at 10% 70%, #72936c 0 5px, transparent 6px),
    radial-gradient(ellipse at 30% 85%, #547c59 0 6px, transparent 7px),
    radial-gradient(ellipse at 52% 85%, #72936c 0 6px, transparent 7px),
    radial-gradient(ellipse at 75% 75%, #547c59 0 6px, transparent 7px),
    radial-gradient(ellipse at 95% 70%, #72936c 0 5px, transparent 6px);
}

.fireplace-top::after {
  content: "";
  position: absolute;
  right: 12%;
  top: -7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c94f69;
  box-shadow:
    -23px 4px 0 #d9b36f,
    -44px 0 0 #c94f69,
    -64px 5px 0 #d9b36f;
}

/* GRAMOPHONE — clearer interaction feedback */
.gramophone[role="button"] {
  cursor: pointer;
  transition: filter .25s ease, transform .25s ease;
}

.gramophone[role="button"]:hover {
  filter:
    drop-shadow(0 7px 8px rgba(15, 8, 25, .35))
    brightness(1.12);
}

.gramophone.playing {
  animation: gramophone-vibration .45s ease-in-out infinite alternate;
}

.gramophone.playing .gramophone-horn {
  filter: drop-shadow(0 0 8px rgba(255, 222, 164, .65));
}

.gramophone.playing .gramophone-disc {
  animation: record-spin 2s linear infinite;
  transform-origin: center;
}

@keyframes gramophone-vibration {
  from { translate: 0 0; }
  to { translate: 0 -2px; }
}

/* Make the fireplace glow react when clicked */
.fireplace.fireplace-glow .fire-glow {
  opacity: 1;
  filter: brightness(1.4);
}

.fireplace.fireplace-glow {
  filter: drop-shadow(0 0 15px rgba(255, 143, 75, .35));
}

/* MOBILE */
@media (max-width: 760px) {
  .bookshelf {
    left: 2%;
    top: 28%;
    width: 95px;
    height: 120px;
  }

  .christmas-tree {
    left: 62%;
    bottom: 15%;
    width: 140px;
    height: 275px;
  }

  .snow-globe {
    left: 8%;
    bottom: calc(15% + 175px - 4px);
    transform: scale(.85);
  }

  .fireplace-stock {
    left: 13%;
    top: 17px;
    gap: 7px;
    transform: scale(.8);
    transform-origin: top left;
  }
}
/* CHRISTMAS TREE LIGHTS — VISIBLE STRING */

.christmas-tree::before,
.christmas-tree::after {
  content: none;
}

/* Fine curved strings following the branches */
.tree-layer {
  overflow: hidden;
}

.tree-layer::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 20%;
  width: 76%;
  height: 65%;
  border-bottom: 2px solid rgba(255, 222, 157, .9);
  border-radius: 0 0 50% 50%;
  transform: rotate(-12deg);
  filter: drop-shadow(0 1px 2px rgba(255, 205, 120, .5));
  pointer-events: none;
}

/* Individual bulbs: crisp, round and visible */
.tree-light {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 249, 218, .9);
  border-radius: 50%;
  background: #ffe8a6;
  box-shadow:
    0 0 3px 1px rgba(255, 229, 164, .9),
    0 0 7px 2px rgba(255, 205, 120, .45);
  z-index: 7;
  animation: tree-bulb-glow 1.8s ease-in-out infinite alternate;
}

@keyframes tree-bulb-glow {
  from { filter: brightness(.85); }
  to { filter: brightness(1.3); }
}

/* =========================================
   FIREPLACE — LOGS RESTING ON THE BASE
   ========================================= */

/* Lower the logs so they sit on the fireplace floor */
.fire-log {
  bottom: 1%;
  height: 15px;
  z-index: 3;
  box-shadow: 0 4px 5px rgba(0, 0, 0, .35);
}

/* A little bed of glowing embers beneath the wood */
.fireplace-opening::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 13%;
  right: 13%;
  bottom: 3%;
  height: 9px;
  border-radius: 50%;
  background: #ff9a45;
  filter: blur(7px);
  opacity: .8;
}

/* =========================================
   KIWI — BLACK & WHITE EUROPEAN SHORTHAIR
   ========================================= */

/* Black back, white underside */
.sleeping-cat {
  width: 120px;
  height: 76px;
  right: 12%;
  bottom: 20%;
  transform: rotate(-5deg);
}

.cat-body {
  left: 18px;
  bottom: 3px;
  width: 91px;
  height: 57px;
  border-radius: 48% 52% 48% 50%;
  background:
    linear-gradient(
      155deg,
      #29272d 0%,
      #17171c 46%,
      #f8f5ef 48%,
      #fffdf8 100%
    );
  box-shadow:
    inset -6px -5px 0 rgba(0, 0, 0, .08),
    inset 4px 3px 5px rgba(255, 255, 255, .12);
}

/* White face with a dark cap */
.cat-head {
  left: 2px;
  bottom: 17px;
  width: 45px;
  height: 41px;
  border-radius: 48% 48% 45% 45%;
  background:
    radial-gradient(ellipse at 50% 76%, #fff 0 45%, transparent 47%),
    linear-gradient(160deg, #242329 0 39%, #f8f5ef 40% 100%);
  z-index: 3;
}

/* Black ears */
.cat-ear {
  top: -8px;
  width: 15px;
  height: 19px;
  background: #242329;
}

.cat-ear-left {
  left: 3px;
  transform: rotate(-15deg);
}

.cat-ear-right {
  right: 3px;
  transform: rotate(15deg);
}

/* Soft pink nose and closed eyes */
.cat-face {
  top: 15px;
  left: 10px;
  width: 25px;
  height: 12px;
}

.cat-face::before {
  content: "⌒  ⌒";
  color: #39343b;
  font-size: 13px;
  letter-spacing: 1px;
}

.cat-face::after {
  content: "·";
  top: 5px;
  left: 10px;
  color: #d58b98;
  font-size: 18px;
}

/* Curled black tail */
.cat-tail {
  right: 0;
  bottom: 5px;
  width: 43px;
  height: 39px;
  border: 9px solid #242329;
  border-left-color: transparent;
  border-bottom-color: #242329;
  border-radius: 50%;
  transform: rotate(-28deg);
  z-index: 2;
}

/* White paws */
.cat-paw {
  bottom: 2px;
  width: 25px;
  height: 14px;
  border-radius: 50%;
  background: #fffdf8;
  box-shadow: inset 0 -2px 2px rgba(100, 80, 80, .12);
  z-index: 4;
}

.cat-paw-one { left: 32px; }
.cat-paw-two { left: 53px; }

/* Mobile adjustments */
@media (max-width: 760px) {
  .christmas-tree {
    left: 59%;
    bottom: 15%;
    width: 155px;
    height: 295px;
  }

  .sleeping-cat {
    right: 5%;
    bottom: 20%;
    transform: scale(.78) rotate(-5deg);
    transform-origin: bottom right;
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  .christmas-tree {
    width: 190px;
    height: 320px;
  }
}
/* TREE LIGHTS — keep the strings inside the branches */
.christmas-tree::before {
  inset: 13% 9% 9%;
  clip-path: polygon(
    50% 0, 65% 24%, 79% 45%, 96% 72%,
    89% 98%, 11% 98%, 4% 72%, 21% 45%, 35% 24%
  );
}

.christmas-tree::after {
  inset: 18% 13% 13%;
  clip-path: polygon(50% 0, 94% 98%, 6% 98%);
}

/* =========================================
   CHRISTMAS TREE — BIGGER & MORE DECORATED
========================================= */

/* Bigger tree */
.christmas-tree {
  left: 57%;
  bottom: 10%;
  width: clamp(270px, 26vw, 350px);
  height: clamp(450px, 62vh, 570px);
}

/* More visible ornaments */
.tree-bauble {
  width: 13px;
  height: 13px;
  border: 1px solid rgba(255,255,255,.65);
  box-shadow:
    0 0 4px rgba(255,255,255,.35),
    inset -2px -2px 3px rgba(0,0,0,.2);
  z-index: 7;
}

/* Extra ornaments scattered across the branches */
.christmas-tree::before {
  content: "";
  position: absolute;
  inset: 5% 7% 8%;
  z-index: 5;
  pointer-events: none;
  clip-path: polygon(
    50% 0, 65% 23%, 80% 47%, 100% 100%,
    0 100%, 20% 47%, 35% 23%
  );
  background:
    radial-gradient(circle at 35% 23%, #e85d69 0 5px, transparent 6px),
    radial-gradient(circle at 65% 29%, #f5d477 0 5px, transparent 6px),
    radial-gradient(circle at 23% 43%, #e8a4c4 0 5px, transparent 6px),
    radial-gradient(circle at 76% 48%, #e85d69 0 5px, transparent 6px),
    radial-gradient(circle at 43% 51%, #f5d477 0 5px, transparent 6px),
    radial-gradient(circle at 60% 65%, #e8a4c4 0 5px, transparent 6px),
    radial-gradient(circle at 27% 72%, #f5d477 0 5px, transparent 6px),
    radial-gradient(circle at 76% 81%, #e85d69 0 5px, transparent 6px),
    radial-gradient(circle at 49% 87%, #f5d477 0 5px, transparent 6px);
}

/* Mobile proportions */
@media (max-width: 700px) {
  .christmas-tree {
    left: 55%;
    bottom: 13%;
    width: 190px;
    height: 350px;
  }

  .tree-bauble {
    width: 10px;
    height: 10px;
  }
}

/* Short screens */
@media (max-height: 650px) and (min-width: 701px) {
  .christmas-tree {
    width: 230px;
    height: 370px;
  }
}
/* PRESENTS — IN FRONT OF THE RUG */
.present {
  z-index: 30 !important;
}

.floor-rug {
  z-index: 2;
}

.room-furniture {
  z-index: 6;
}
/* TREE TRUNK — STRAIGHT AND BEHIND THE BRANCHES */

.tree-trunk {
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 1 !important;
}

/* Branches in front of the trunk */
.tree-layer {
  z-index: 3 !important;
}

/* Presents stay in front of the trunk */
.present {
  z-index: 30 !important;
}
/* CHRISTMAS TREE — BIGGER TOP STAR */

.tree-star {
  width: 42px !important;
  height: 42px !important;
  font-size: 42px !important;
  z-index: 15 !important;
  filter:
    drop-shadow(0 0 5px rgba(255, 224, 145, .9))
    drop-shadow(0 0 13px rgba(255, 194, 90, .65));
  transform: translateX(-50%) scale(1.25);
}

@media (max-width: 700px) {
  .tree-star {
    width: 32px !important;
    height: 32px !important;
    font-size: 32px !important;
  }
}
/* TREE STAR — KEEP SIZE, FIX POSITION */

.tree-star {
  position: absolute !important;
  left: calc(50% + 4px) !important;
  right: auto !important;
  margin-left: 0 !important;
  transform: translateX(-50%) scale(1.25) !important;
}

/* =========================================
   RESPONSIVE FIX — MOBILE ROOM
   Keep desktop layout unchanged.
========================================= */

/* Use the actual visible screen height */
html,
body {
  min-height: 100%;
}

.game-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
}

.room-screen {
  width: 100%;
  height: 100%;
}

/* Keep the calendar and dialogs inside the visible screen */
.calendar-screen {
  height: 100vh;
  height: 100dvh;
  overscroll-behavior: contain;
}

.gift-dialog {
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* =========================================
   MOBILE — PORTRAIT
========================================= */

@media (max-width: 760px) and (orientation: portrait) {

  .game-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }

  /* Background and floor */
  .room-wall {
    inset: 0;
  }

  .room-floor {
    height: 15%;
  }

  .wall-trim-bottom {
    bottom: 15%;
  }

  /* Window */
  .room-window {
    width: clamp(110px, 32vw, 150px);
    height: clamp(145px, 24vh, 195px);
    right: 4%;
    top: 8%;
  }

  /* Pictures */
  .wall-picture {
    left: 5%;
    top: 15%;
    width: 58px;
    height: 70px;
    padding: 6px;
  }

  .picture-inner {
    font-size: 34px;
  }

  .picture-two {
    left: 21%;
    top: 12%;
    width: 42px;
    height: 52px;
    padding: 4px;
  }

  .picture-inner-two {
    font-size: 24px;
  }

  /* Calendar */
  .calendar-object {
    left: 50%;
    top: 49%;
    width: clamp(145px, 44vw, 175px);
    min-height: 0;
    height: 225px;
    padding: 23px 10px 15px;
    transform: translate(-50%, -50%) rotate(-2deg);
  }

  .calendar-object:hover {
    transform: translate(-50%, -50%) rotate(-2deg);
  }

  .calendar-object-title {
    font-size: 18px;
  }

  .calendar-object-main {
    font-size: clamp(22px, 7vw, 27px);
  }

  .calendar-object-script {
    font-size: 19px;
  }

  .calendar-object-number {
    margin-top: 20px;
  }

  .calendar-object-hint {
    margin-top: 12px;
    font-size: 8px;
  }

  /* Fireplace */
  .fireplace {
    left: 2%;
    bottom: 13%;
    width: clamp(95px, 28vw, 125px);
    height: clamp(125px, 22vh, 165px);
  }

  .fireplace-stock {
    left: 12%;
    top: 15px;
    gap: 5px;
    transform: scale(.65);
    transform-origin: top left;
  }

  .fireplace-stock span {
    width: 23px;
    height: 33px;
  }

  .snow-globe {
    left: 7%;
    bottom: calc(13% + clamp(125px, 22vh, 165px) - 4px);
    transform: scale(.65);
    transform-origin: bottom left;
  }

  /* Armchair */
  .armchair {
    right: 1%;
    bottom: 12%;
    width: clamp(95px, 29vw, 120px);
    height: clamp(110px, 20vh, 140px);
  }

  /* Christmas tree */
  .christmas-tree {
    left: 59%;
    bottom: 12%;
    width: clamp(110px, 37vw, 145px);
    height: clamp(210px, 36vh, 270px);
  }

  .tree-star {
    width: 32px !important;
    height: 32px !important;
    font-size: 32px !important;
  }

  .tree-bauble {
    width: 9px;
    height: 9px;
  }

  .tree-light {
    width: 7px;
    height: 7px;
  }

  /* Bookshelf */
  .bookshelf {
    left: 2%;
    top: 29%;
    width: clamp(68px, 23vw, 88px);
    height: clamp(90px, 17vh, 115px);
  }

  .shelf-books i {
    width: 9px;
  }

  .shelf-plant {
    font-size: 19px;
  }

  /* Small furniture */
  .side-table {
    left: 31%;
    bottom: 13%;
    transform: scale(.55);
    transform-origin: bottom center;
  }

  .gramophone {
    left: 23%;
    bottom: 13%;
    transform: scale(.5);
    transform-origin: bottom left;
  }

  .snow-globe {
    transform-origin: bottom left;
  }

  .sleeping-cat {
    right: 6%;
    bottom: 19%;
    transform: scale(.58) rotate(-5deg);
    transform-origin: bottom right;
  }

  /* Presents */
  .present {
    transform: scale(.55);
    transform-origin: bottom left;
  }

  .present-one { left: 56%; }
  .present-two { left: 70%; }
  .present-three { left: 64%; }
  .present-four { left: 60%; }
  .present-five { left: 74%; }

  /* Garland and lights */
  .wall-garland {
    left: 34%;
    top: 9%;
    width: 32%;
    font-size: 14px;
  }

  .fairy-lights::before {
    top: 7%;
    left: 3%;
    width: 94%;
  }

  .fairy-bulb {
    top: 10%;
    width: 10px;
    height: 15px;
  }

  .fairy-bulb:nth-child(2n) { top: 13%; }
  .fairy-bulb:nth-child(4n) { top: 16%; }

  /* Interactive decorations */
  .room-object-wreath {
    left: 17%;
    top: 24%;
    transform: scale(.62);
    transform-origin: top left;
  }

  .room-object-bells {
    left: 53%;
    top: 19%;
    transform: scale(.65);
    transform-origin: top left;
  }

  .room-object-snowflakes {
    right: 17%;
    top: 24%;
    transform: scale(.6);
    transform-origin: top right;
  }

  .room-object-heart {
    left: 46%;
    top: 26%;
    transform: scale(.65);
  }

  .room-object-plush {
    right: 16%;
    bottom: 22%;
    transform: scale(.65);
  }

  .room-object-musicbox {
    left: 31%;
    bottom: 25%;
    transform: scale(.65);
    transform-origin: bottom left;
  }

  .room-object-cocoa {
    left: 38%;
    bottom: 24%;
    transform: scale(.65);
    transform-origin: bottom left;
  }

  .room-object-letter {
    left: 44%;
    bottom: 23%;
    transform: scale(.65) rotate(-8deg);
    transform-origin: bottom left;
  }

  /* Text */
  .room-caption {
    bottom: 1%;
    max-width: 90%;
    font-size: 7px;
    letter-spacing: .08em;
    text-align: center;
  }

  .room-hint {
    bottom: 5%;
    right: 3%;
    font-size: 8px;
  }

  .room-clock {
    top: 2%;
    font-size: 9px;
  }
}

/* =========================================
   MOBILE — LANDSCAPE
========================================= */

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {

  .game-shell {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }

  .room-floor {
    height: 15%;
  }

  .wall-trim-bottom {
    bottom: 15%;
  }

  /* Window */
  .room-window {
    width: clamp(95px, 16vw, 130px);
    height: clamp(115px, 42vh, 155px);
    right: 5%;
    top: 7%;
  }

  /* Pictures */
  .wall-picture {
    left: 5%;
    top: 12%;
    width: 52px;
    height: 62px;
    padding: 5px;
  }

  .picture-inner {
    font-size: 30px;
  }

  .picture-two {
    left: 16%;
    top: 9%;
    width: 38px;
    height: 45px;
    padding: 4px;
  }

  .picture-inner-two {
    font-size: 22px;
  }

  /* Calendar */
  .calendar-object {
    left: 43%;
    top: 48%;
    width: 145px;
    height: 195px;
    min-height: 0;
    padding: 20px 9px 12px;
    transform: translate(-50%, -50%) rotate(-2deg);
  }

  .calendar-object:hover {
    transform: translate(-50%, -50%) rotate(-2deg);
  }

  .calendar-object-title {
    font-size: 16px;
  }

  .calendar-object-main {
    font-size: 23px;
  }

  .calendar-object-script {
    font-size: 18px;
  }

  .calendar-object-number {
    margin-top: 16px;
  }

  .calendar-object-hint {
    margin-top: 10px;
    font-size: 7px;
  }

  /* Fireplace */
  .fireplace {
    left: 2%;
    bottom: 13%;
    width: clamp(90px, 13vw, 115px);
    height: clamp(115px, 38vh, 145px);
  }

  .fireplace-stock {
    left: 12%;
    top: 13px;
    gap: 4px;
    transform: scale(.55);
    transform-origin: top left;
  }

  .fireplace-stock span {
    width: 22px;
    height: 30px;
  }

  .snow-globe {
    left: 7%;
    bottom: calc(13% + clamp(115px, 38vh, 145px) - 4px);
    transform: scale(.55);
    transform-origin: bottom left;
  }

  /* Armchair */
  .armchair {
    right: 2%;
    bottom: 12%;
    width: clamp(90px, 14vw, 115px);
    height: clamp(105px, 36vh, 135px);
  }

  /* Tree */
  .christmas-tree {
    left: 68%;
    bottom: 11%;
    width: clamp(115px, 17vw, 145px);
    height: clamp(195px, 65vh, 245px);
  }

  .tree-star {
    width: 32px !important;
    height: 32px !important;
    font-size: 32px !important;
  }

  .tree-bauble {
    width: 9px;
    height: 9px;
  }

  .tree-light {
    width: 7px;
    height: 7px;
  }

  /* Bookshelf */
  .bookshelf {
    left: 2%;
    top: 31%;
    width: 72px;
    height: 90px;
  }

  .shelf-books i {
    width: 8px;
  }

  .shelf-plant {
    font-size: 18px;
  }

  /* Small furniture */
  .side-table {
    left: 25%;
    bottom: 12%;
    transform: scale(.48);
    transform-origin: bottom center;
  }

  .gramophone {
    left: 22%;
    bottom: 12%;
    transform: scale(.45);
    transform-origin: bottom left;
  }

  .sleeping-cat {
    right: 9%;
    bottom: 18%;
    transform: scale(.52) rotate(-5deg);
    transform-origin: bottom right;
  }

  /* Presents */
  .present {
    transform: scale(.48);
    transform-origin: bottom left;
  }

  /* Garland and lights */
  .wall-garland {
    left: 35%;
    top: 5%;
    width: 26%;
    height: 45px;
    font-size: 13px;
  }

  .fairy-lights::before {
    top: 4%;
    height: 40px;
  }

  .fairy-bulb {
    top: 7%;
    width: 9px;
    height: 13px;
  }

  .fairy-bulb:nth-child(2n) { top: 10%; }
  .fairy-bulb:nth-child(4n) { top: 13%; }

  /* Interactive decorations */
  .room-object-wreath {
    left: 18%;
    top: 20%;
    transform: scale(.55);
    transform-origin: top left;
  }

  .room-object-bells {
    left: 52%;
    top: 15%;
    transform: scale(.6);
    transform-origin: top left;
  }

  .room-object-snowflakes {
    right: 19%;
    top: 18%;
    transform: scale(.5);
    transform-origin: top right;
  }

  .room-object-heart {
    left: 44%;
    top: 23%;
    transform: scale(.55);
  }

  .room-object-plush {
    right: 17%;
    bottom: 20%;
    transform: scale(.55);
  }

  .room-object-musicbox {
    left: 29%;
    bottom: 23%;
    transform: scale(.55);
    transform-origin: bottom left;
  }

  .room-object-cocoa {
    left: 35%;
    bottom: 22%;
    transform: scale(.55);
    transform-origin: bottom left;
  }

  .room-object-letter {
    left: 41%;
    bottom: 21%;
    transform: scale(.55) rotate(-8deg);
    transform-origin: bottom left;
  }

  /* Text */
  .room-caption {
    bottom: 1%;
    max-width: 85%;
    font-size: 6px;
    letter-spacing: .07em;
    text-align: center;
  }

  .room-hint {
    bottom: 4%;
    right: 2%;
    font-size: 8px;
  }

  .room-clock {
    top: 1%;
    font-size: 8px;
  }
}

/* =========================================
   MOBILE — CALENDAR SCREEN
========================================= */

@media (max-width: 760px) {

  .calendar-panel {
    width: 100%;
    padding: 14px 8px 22px;
  }

  .calendar-wrap {
    width: 100%;
    padding: 12px;
  }

  .calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .door {
    min-width: 0;
    font-size: clamp(15px, 4vw, 21px);
  }

  .gift-dialog {
    width: calc(100% - 24px);
    max-height: 85vh;
    max-height: 85dvh;
    padding: 28px 18px;
  }

  .gift-dialog h2 {
    font-size: clamp(22px, 6vw, 28px);
  }
}

/* Compact calendar on short landscape screens */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {

  .calendar-panel {
    padding: 8px 12px 15px;
  }

  .calendar-header {
    padding: 5px 0 10px;
  }

  .calendar-header h1 {
    margin: 5px 0;
    font-size: 28px;
  }

  .date-line {
    margin-top: 8px;
  }

  .calendar-wrap {
    padding: 10px;
  }

  .garland {
    margin-bottom: 8px;
  }

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

  .hint {
    margin-top: 12px;
  }

  .calendar-footer {
    margin-top: 12px;
  }
}