/* ========================================================
   غيمة — Ghaima
   Daytime sky, dreamy pastel, soft lavender shadows.
   ======================================================== */

:root {
  --white: #ffffff;
  --sky: #aedff7;
  --sky-2: #d6f0ff;
  --sky-3: #eaf8ff;
  --lav: #cdb4f2;
  --pink: #ffc9d6;
  --sun: #ffe89a;
  --ink: #2f3e5c;
  --ink-2: #5b6c8c;
  --shadow: 0 18px 38px rgba(205, 180, 242, 0.3);
  --shadow-sm: 0 10px 22px rgba(205, 180, 242, 0.22);
  --r: 28px;
  --font-head: "Baloo Bhaijaan 2", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: #ffffff;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

body.locked { overflow: hidden; }

h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.35; }
p { margin: 0; }
button {
  font-family: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

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

:focus-visible {
  outline: 3px solid rgba(110, 180, 220, 0.9);
  outline-offset: 3px;
  border-radius: 14px;
}

/* ==================== SKY ==================== */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #d6f0ff 0%, #e9f7ff 38%, #ffffff 76%);
}

.sun {
  position: absolute;
  top: 6%;
  inset-inline-start: 4%;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 232, 154, 0.95) 0%, rgba(255, 232, 154, 0.55) 42%, rgba(255, 232, 154, 0) 72%);
  opacity: 0.9;
}

.clouds {
  position: absolute;
  left: 0;
  width: 100%;
  will-change: transform;
}
.clouds .cloud-track {
  display: flex;
  width: 200%;
  height: 100%;
}
.clouds .cloud-track > div {
  width: 50%;
  height: 100%;
  flex: 0 0 50%;
}
.clouds svg { width: 100%; height: 100%; }

.clouds--back {
  top: -2%;
  height: 42vh;
  opacity: 0.85;
  filter: blur(2px);
  animation: drift 60s linear infinite;
}
.clouds--mid {
  top: 16%;
  height: 38vh;
  opacity: 0.7;
  animation: drift 40s linear infinite reverse;
}
.clouds--front {
  top: 46%;
  height: 32vh;
  opacity: 0.55;
  animation: drift 25s linear infinite;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.sky-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 40vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 82%);
}

/* ==================== LAYOUT ==================== */
main, header, footer { position: relative; z-index: 1; }

.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: 16px;
}

/* ==================== TOP BAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(174, 223, 247, 0.75);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding-inline-end: 6px;
}
.brand-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #eaf8ff);
  border: 1.5px solid var(--sky);
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0;
}
.brand-text small { font-size: 0.66rem; color: var(--ink-2); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-round {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--sky);
  color: var(--lav);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, color 0.2s ease;
}
.icon-round:active { transform: scale(0.94); }
.icon-round[aria-pressed="true"] { color: #f08ca8; background: #fff6f8; }

.badge {
  position: absolute;
  top: -4px;
  inset-inline-start: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--lav);
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(205, 180, 242, 0.6);
}
.badge--ink { background: var(--ink); box-shadow: 0 4px 10px rgba(47, 62, 92, 0.35); }
.badge.bump { animation: bump 0.42s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-sun {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(255, 220, 130, 0.6);
}
.btn-sun:hover { box-shadow: 0 14px 28px rgba(255, 220, 130, 0.75); }
.btn-sun:active { transform: scale(1.03); }
.btn-sun:disabled { opacity: 0.65; box-shadow: none; transform: none; cursor: default; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid var(--sky);
  color: var(--ink);
}
.btn-ghost:active { transform: scale(1.02); background: #ffffff; }
.btn-ghost:disabled { opacity: 0.55; cursor: default; }

.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.cart-btn { gap: 7px; padding: 0 14px; }
.cart-btn .badge { position: static; }
.cart-btn-label { font-size: 0.95rem; }

/* ==================== HERO ==================== */
.hero {
  display: grid;
  gap: 22px;
  padding-block: 26px 10px;
}
.hero-copy { order: 2; }
.hero-art { order: 1; display: grid; place-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(174, 223, 247, 0.9);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px rgba(255, 232, 154, 0.45);
}

.hero-title {
  position: relative;
  font-size: clamp(1.65rem, 5.8vw, 3rem);
  font-weight: 800;
  line-height: 1.42;
  color: var(--ink);
  max-width: 20ch;
}
.hero-title::before {
  content: "";
  position: absolute;
  inset: -20px -30px -10px -30px;
  background: radial-gradient(60% 60% at 40% 50%, rgba(205, 180, 242, 0.45), rgba(205, 180, 242, 0) 72%);
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

.hero-sub {
  margin-top: 14px;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.mascot-wrap {
  width: min(280px, 68vw);
  animation: floaty 4s ease-in-out infinite;
  filter: drop-shadow(0 18px 26px rgba(205, 180, 242, 0.45));
}
.mascot-svg { width: 100%; height: auto; overflow: visible; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.m-face-sleep, .m-yawn, .m-zzz { display: none; }
.mascot-svg.sleepy .m-face-open,
.mascot-svg.sleepy .m-smile { display: none; }
.mascot-svg.sleepy .m-face-sleep,
.mascot-svg.sleepy .m-yawn,
.mascot-svg.sleepy .m-zzz { display: block; }
.m-zzz text {
  animation: zz 2.4s ease-in-out infinite;
  transform-box: fill-box;
}
@keyframes zz {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

.mascot-svg.happy .m-blush { opacity: 1; }
.mascot-svg.happy { animation: happyBounce 0.6s cubic-bezier(0.2, 1.5, 0.4, 1); }
@keyframes happyBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.06) rotate(-1.5deg); }
  100% { transform: scale(1); }
}

.m-arm { transform-box: view-box; }
.m-arm--l { transform-origin: 64px 140px; }
.m-arm--r { transform-origin: 176px 140px; }
.mascot-svg.wave .m-arm--r { animation: waveArm 0.6s ease-in-out 3; }
@keyframes waveArm {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-26deg); }
}

/* ==================== ISLANDS ==================== */
.islands-wrap { padding-block: 18px 6px; }

.islands-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.islands-title::after {
  content: "";
  height: 1.5px;
  flex: 1;
  background: linear-gradient(90deg, rgba(174, 223, 247, 0.9), rgba(174, 223, 247, 0));
}

.islands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.island {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 148px;
  padding: 18px 12px 16px;
  border-radius: 46% 54% 44% 56% / 56% 44% 56% 44%;
  background: #ffffff;
  border: 1.5px solid var(--sky);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  isolation: isolate;
}
.island:active { transform: scale(0.97); }
.island:hover { box-shadow: 0 22px 44px rgba(205, 180, 242, 0.42); }
.island-icon { width: 62px; height: 62px; }
.island-icon svg { width: 100%; height: 100%; }
.island-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  text-align: center;
}
.island-sub { font-size: 0.74rem; color: var(--ink-2); text-align: center; }

/* ==================== SECTIONS ==================== */
.section-head { margin-bottom: 16px; }
.section-title {
  position: relative;
  display: inline-block;
  font-size: clamp(1.35rem, 4.4vw, 2rem);
  font-weight: 800;
  z-index: 0;
}
.halo {
  position: absolute;
  inset: -14px -26px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(205, 180, 242, 0.55), rgba(205, 180, 242, 0) 72%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
.section-sub { margin-top: 8px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.7; }

.catalog { padding-block: 30px 40px; }

.chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-block: 4px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1.5px solid var(--sky);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.chip:active { transform: scale(0.97); }
.chip[aria-selected="true"] {
  background: var(--lav);
  border-color: var(--lav);
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(205, 180, 242, 0.5);
}

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

/* ==================== CARD ==================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid var(--sky);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.card:nth-child(2n) { animation-delay: 0.05s; }
.card:nth-child(3n) { animation-delay: 0.1s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.card-art {
  display: block;
  width: 100%;
  padding: 8px;
  background: none;
  border: 0;
}
.art-tile {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, #edf9ff, #ffffff);
  box-shadow: inset 0 0 0 6px #ffffff, inset 0 -16px 28px rgba(205, 180, 242, 0.28);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.art-tile svg { width: 92%; height: 92%; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 14px 14px;
  flex: 1;
}
.card-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}
.card-note { font-size: 0.76rem; color: var(--ink-2); }
.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
}
.price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  white-space: nowrap;
}
.price small { font-size: 0.72rem; font-weight: 500; color: var(--ink-2); }

.tag-love {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(255, 232, 154, 0.8);
}

.heart {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: #c3aee4;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s cubic-bezier(0.2, 1.6, 0.4, 1), color 0.2s ease;
}
.heart:active { transform: scale(0.88); }
.heart[aria-pressed="true"] { color: #f08ca8; }
.heart[aria-pressed="true"] svg { fill: currentColor; }

/* ==================== EMPTY STATE ==================== */
.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 44px 20px;
  text-align: center;
  color: var(--ink-2);
}
.empty-cloud { font-size: 2.4rem; opacity: 0.8; }

/* ==================== ROOM ==================== */
.room-section {
  display: grid;
  gap: 20px;
  align-items: center;
  padding-block: 30px 50px;
}
.room-copy p {
  margin-top: 12px;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 44ch;
  font-size: 0.98rem;
}
.room-copy .btn { margin-top: 18px; }
.room-art {
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(180deg, #f4fbff, #ffffff);
  border: 1.5px solid var(--sky);
  box-shadow: var(--shadow);
}
.room-art svg { width: 100%; height: auto; }

/* ==================== FOOTER ==================== */
.footer {
  padding-block: 26px 40px;
  border-top: 1.5px solid rgba(174, 223, 247, 0.8);
  text-align: center;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}
.footer-note { font-size: 0.82rem; color: var(--ink-2); line-height: 1.7; }

/* ==================== SCRIM / OVERLAYS ==================== */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(47, 62, 92, 0.26);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.22s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==================== DRAWER ==================== */
.drawer {
  position: fixed;
  z-index: 50;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f5fcff 0%, #ffffff 26%);
  box-shadow: 0 0 70px rgba(47, 62, 92, 0.2);
  animation: slideIn 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes slideIn {
  from { transform: translateX(102%); }
  to { transform: translateX(0); }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1.5px solid rgba(174, 223, 247, 0.8);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}
.drawer-head h2 { font-size: 1.2rem; font-weight: 800; }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-items { display: flex; flex-direction: column; gap: 10px; }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--sky);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 8px 18px rgba(205, 180, 242, 0.16);
  animation: rise 0.35s ease both;
}
.ci-art {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  background: linear-gradient(180deg, #edf9ff, #ffffff);
  box-shadow: inset 0 0 0 3px #ffffff, inset 0 -8px 16px rgba(205, 180, 242, 0.24);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ci-art svg { width: 90%; height: 90%; }
.ci-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ci-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.93rem;
  line-height: 1.3;
}
.ci-var { font-size: 0.74rem; color: var(--ink-2); }
.ci-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3fbff;
  border: 1.5px solid rgba(174, 223, 247, 0.9);
  border-radius: 999px;
  padding: 2px;
  width: max-content;
}
.ci-qty button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(205, 180, 242, 0.3);
  transition: transform 0.12s ease;
}
.ci-qty button:active { transform: scale(0.9); }
.ci-qty span {
  min-width: 22px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
}
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-inline-end: 4px; }
.ci-line { font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.ci-del {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e07d97;
  background: #fff4f7;
  border: 1.5px solid #ffdfe7;
  transition: transform 0.14s ease;
}
.ci-del:active { transform: scale(0.9); }

.cart-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  padding: 18px 10px 6px;
}
.sleepy-mascot { width: 150px; }
.sleepy-mascot svg { width: 100%; height: auto; }
.cart-empty-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.cart-empty-sub { font-size: 0.86rem; color: var(--ink-2); max-width: 28ch; }
.cart-empty .btn { margin-top: 10px; }

.panel-block {
  background: #ffffff;
  border: 1.5px solid var(--sky);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.block-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.tiny-star { color: var(--sun); font-size: 0.95rem; line-height: 1; text-shadow: 0 0 8px rgba(255, 232, 154, 0.9); }

.pack-choices { display: flex; flex-direction: column; gap: 8px; }
.pack-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1.5px dashed rgba(174, 223, 247, 1);
  background: #fbfeff;
  text-align: start;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.14s ease;
}
.pack-opt:active { transform: scale(0.99); }
.pack-opt-name { font-size: 0.88rem; font-weight: 500; }
.pack-opt-price { font-family: var(--font-head); font-weight: 700; font-size: 0.84rem; color: var(--ink-2); white-space: nowrap; }
.pack-opt[aria-checked="true"] {
  border-style: solid;
  border-color: var(--lav);
  background: #f7f2ff;
  box-shadow: 0 0 0 3px rgba(205, 180, 242, 0.22);
}
.pack-opt[aria-checked="true"] .pack-opt-price { color: var(--ink); }

.pack-preview {
  margin-top: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eaf8ff, #ffffff);
  box-shadow: inset 0 0 0 5px #ffffff, inset 0 -14px 24px rgba(205, 180, 242, 0.22);
  padding: 8px;
  display: grid;
  place-items: center;
  min-height: 150px;
}
.pack-preview svg { width: min(190px, 70%); height: auto; animation: floaty 5s ease-in-out infinite; }
.pack-none-note {
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 0.84rem;
  text-align: center;
  padding: 18px 10px;
}
.pack-none-note span { font-size: 1.6rem; }

textarea#giftMsg {
  width: 100%;
  resize: none;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--sky);
  background: #fbfeff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
textarea#giftMsg::placeholder { color: #9aa9c4; }
textarea#giftMsg:focus { outline: none; border-color: var(--lav); background: #ffffff; box-shadow: 0 0 0 4px rgba(205, 180, 242, 0.22); }

.gift-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.hint { font-size: 0.76rem; color: var(--ink-2); }

.totals { margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.totals div { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--ink-2); }
.totals dd { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.totals-grand { border-top: 1.5px dashed rgba(174, 223, 247, 1); padding-top: 10px; }
.totals-grand dt { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1rem; }
.totals-grand dd { font-size: 1.12rem; }

.order-text {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1.5px solid rgba(174, 223, 247, 0.8);
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.85;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
}

.fineprint { margin-top: 10px; font-size: 0.74rem; color: var(--ink-2); text-align: center; }

/* ==================== MODAL ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: 93vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px rgba(47, 62, 92, 0.2);
  animation: sheetUp 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes sheetUp {
  from { transform: translateY(24px); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 3;
}
.modal-art { padding: 14px 14px 0; }
.modal-art .art-tile { aspect-ratio: 4 / 3; }
.modal-art .art-tile svg { width: min(300px, 74%); height: auto; }

.modal-info { padding: 16px 18px 26px; display: flex; flex-direction: column; gap: 6px; }
.modal-info h2 { font-size: 1.35rem; font-weight: 800; }
.modal-note { font-size: 0.8rem; color: var(--ink-2); }
.modal-desc { font-size: 0.92rem; line-height: 1.8; color: var(--ink-2); margin-top: 4px; }

.variant-block { margin-top: 14px; }
.variant-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 9px;
}
.variants { display: flex; flex-wrap: wrap; gap: 10px; }

.variant-swatch {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1.5px var(--sky), 0 6px 14px rgba(205, 180, 242, 0.3);
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}
.variant-swatch:active { transform: scale(0.92); }
.variant-swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--lav), 0 8px 18px rgba(205, 180, 242, 0.5);
  transform: scale(1.06);
}
.variant-swatch .tick {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0;
  font-family: var(--font-head);
}
.variant-swatch[aria-pressed="true"] .tick { opacity: 1; }

.variant-pill {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--sky);
  background: #ffffff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease;
}
.variant-pill:active { transform: scale(0.96); }
.variant-pill[aria-pressed="true"] {
  background: var(--sky-2);
  border-color: var(--lav);
  box-shadow: 0 0 0 3px rgba(205, 180, 242, 0.22);
}

.qty-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 16px;
}
.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3fbff;
  border: 1.5px solid var(--sky);
  border-radius: 999px;
  padding: 3px;
}
.qty-stepper button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(205, 180, 242, 0.3);
  transition: transform 0.12s ease;
}
.qty-stepper button:active { transform: scale(0.9); }
.qty-stepper span {
  min-width: 32px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
}
.modal-price { font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; }
#modalFav { margin-top: 10px; font-size: 0.9rem; min-height: 46px; }

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  z-index: 70;
  inset-inline: 0;
  bottom: 22px;
  margin-inline: auto;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 16px 34px rgba(47, 62, 92, 0.3);
  animation: toastIn 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== FLYING CLOUD ==================== */
.fly-cloud {
  position: fixed;
  z-index: 65;
  width: 64px;
  height: 64px;
  pointer-events: none;
  will-change: transform;
}
.fly-cloud svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 12px rgba(205, 180, 242, 0.6)); }

/* ==================== DESKTOP ==================== */
@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 30px;
    padding-block: 46px 20px;
  }
  .hero-copy { order: 1; }
  .hero-art { order: 2; }
  .mascot-wrap { width: min(340px, 34vw); }

  .islands { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .island { min-height: 172px; }

  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

  .room-section { grid-template-columns: 0.85fr 1.15fr; gap: 34px; padding-block: 44px 64px; }

  .modal { align-items: center; padding: 24px; }
  .modal-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 28px;
    max-height: 88vh;
    animation: rise 0.32s ease both;
  }
  .modal-art { padding: 18px; }
  .modal-art .art-tile { aspect-ratio: 1 / 1; height: 100%; }
  .modal-info { padding: 30px 24px 26px; justify-content: center; }
  .modal-close { top: 14px; inset-inline-start: 14px; }

  .toast { bottom: 32px; }
}

@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .clouds { animation: none !important; }
  .mascot-wrap, .pack-preview svg { animation: none !important; }
}