/* ==========================================================================
   PARTY — the Department of Party Supplies, the party programme inside the
   Celebration Chamber, and the staff birthday card. Mobile-first.
   ========================================================================== */

/* ---------- 06 · Department of Party Supplies (pegboard stockroom) ---------- */
.s6s {
  position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  background-color: #B98E62;
  background-image: radial-gradient(circle, rgba(60, 38, 20, .55) 2.2px, transparent 2.8px), var(--noise);
  background-size: 22px 22px, auto;
  padding-bottom: calc(120px + var(--safe-b));
}
.s6s-shelves { position: absolute; left: 0; right: 0; top: calc(var(--top) + 64px); pointer-events: none; }
.s6s-shelves { display: none; }
.s6s-shelves i { display: block; height: 12px; margin-bottom: 150px; background: #6B4A33; border-top: 3px solid #8A6447; border-bottom: 2px solid var(--ink); box-shadow: 0 8px 10px -4px rgba(0, 0, 0, .35); }
.dept-sign--crate { background: var(--kraft); background-image: var(--fibres); border: 2px dashed var(--ink); box-shadow: 4px 4px 0 #5B3E28; }
.dept-sign--crate .dept-sign__title { font-family: var(--f-mono); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(.86rem, 3.8vw, 1.15rem); }
.s6s-layout { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 14px; }
.req-form {
  position: relative; width: min(760px, 100%); padding: 20px 16px 22px;
  background-color: #F7ECCF;
  background-image: linear-gradient(rgba(140, 155, 123, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 155, 123, .18) 1px, transparent 1px), var(--noise);
  background-size: 20px 20px, 20px 20px, auto;
  border-top: 8px solid var(--terracotta); box-shadow: var(--shadow-lift);
}
.req-form__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.req-form__title { font: 800 clamp(1.3rem, 5.6vw, 1.85rem)/1.05 var(--f-display); letter-spacing: -.02em; margin-top: 4px; }
.req-form__copy { flex: none; align-self: flex-start; padding: 4px 8px; border: 1.5px solid var(--terracotta); color: var(--terracotta); font: 600 .54rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; transform: rotate(4deg); }
.req-form__intro { margin: 10px 0 14px; font: italic 400 1rem/1.4 var(--f-display); color: var(--ink-soft); }
.sup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sup-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 12px 10px 10px; background: var(--paper-hi) var(--noise); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 rgba(39, 60, 74, .35);
  transition: transform var(--t-impact) var(--e-settle), box-shadow var(--t-impact);
}
.sup-card.is-approved { transform: rotate(-1.2deg); box-shadow: 4px 5px 0 var(--terracotta); }
.sup-card:nth-child(even).is-approved { transform: rotate(1.2deg); }
.sup-card__no { align-self: flex-start; font: 600 .56rem var(--f-mono); letter-spacing: .12em; color: var(--terracotta); }
.sup-card__art { width: 74px; height: 74px; }
.sup-card__art svg, .party-item__art svg, .slice-card__plate svg { width: 100%; height: 100%; overflow: visible; }
.sup-card__name { font: 700 .92rem/1.2 var(--f-body); }
.sup-card__note { flex: 1; font: italic 400 .8rem/1.35 var(--f-display); color: var(--ink-soft); }
.sup-approve { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 6px; border: 1.5px dashed var(--ink-60); font: 600 .64rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; transition: background-color var(--t-micro), border-color var(--t-micro); }
.sup-approve:hover { background: rgba(231, 187, 104, .3); border-color: var(--ink); }
.sup-approve__box { position: relative; width: 16px; height: 16px; border: 1.5px solid var(--ink); background: var(--paper-hi); }
.sup-approve[aria-pressed='true'] { border-style: solid; border-color: var(--terracotta); color: var(--terracotta-deep); background: rgba(216, 107, 69, .08); }
.sup-approve[aria-pressed='true'] .sup-approve__box::after { content: ''; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid var(--terracotta); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.sup-card__stamp { position: absolute; left: 30%; right: 4%; top: 7%; mix-blend-mode: multiply; pointer-events: none; opacity: 0; visibility: hidden; }
.req-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.crate-zone { display: flex; justify-content: center; width: 100%; padding-top: 10px; scroll-margin: 120px; }
.crate { position: relative; width: min(280px, 76vw); }
.crate__box {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 170px; padding: 18px 12px;
  background-color: #C79B66; background-image: linear-gradient(90deg, rgba(60, 38, 20, .25) 2px, transparent 2px), var(--fibres), var(--noise); background-size: 56px 100%, auto, auto;
  border: 2.5px solid var(--ink); box-shadow: inset 0 0 0 8px rgba(110, 72, 36, .25), 6px 8px 0 rgba(40, 25, 10, .35);
}
.crate__box span { font: 600 .74rem var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: rgba(39, 60, 74, .85); }
.crate__box span:first-child { font-size: 1.05rem; letter-spacing: .14em; color: var(--ink); }
.crate__count { margin-top: 8px; padding: 2px 8px; background: var(--paper-hi); border: 1px solid var(--ink); font: 600 .6rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.crate__lid { position: absolute; left: -6px; right: -6px; top: -14px; height: 22px; z-index: 2; background: #B98A55 var(--fibres); border: 2.5px solid var(--ink); transform-origin: 0 100%; transition: transform .45s var(--e-settle); }
.crate.is-open .crate__lid { transform: rotate(-24deg) translate(-10px, -16px); }
.crate.is-closed .crate__lid { transform: none; }
.crate__stamp { position: absolute; left: 6%; right: 6%; top: 34%; z-index: 3; mix-blend-mode: multiply; pointer-events: none; }
.sup-ghost { position: fixed; z-index: 80; pointer-events: none; }
.sup-ghost svg { width: 100%; height: 100%; }
.s6s-dock { position: fixed; right: 8px; bottom: calc(4px + var(--safe-b)); z-index: 12; width: 84px; pointer-events: none; }
.slip--s6s { right: 4px; bottom: calc(100% + 2px); }
.slip--s6s::after { left: auto; right: 28px; }
.s6s-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; padding: 18px 96px calc(14px + var(--safe-b)) 16px; background: linear-gradient(transparent, rgba(91, 62, 40, .9) 55%); }

/* ---------- 07 · The party programme (Celebration Chamber) ---------- */
.party { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(640px, 100%); margin-bottom: 8px; }
.party__title { font: 600 .62rem var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ochre); }
.party__note { text-align: center; font: italic 400 .92rem var(--f-display); color: rgba(251, 246, 238, .8); }
.party__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.party-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 76px; padding: 6px 4px 8px;
  color: var(--paper); background: rgba(245, 235, 221, .06); border: 1.5px solid rgba(245, 235, 221, .55); border-radius: 2px;
  font: 600 .56rem/1.25 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; text-align: center;
  transition: transform var(--t-micro) var(--e-press), background-color var(--t-micro), border-color var(--t-micro);
}
.party-item:hover { background: rgba(231, 187, 104, .16); transform: translateY(-2px); }
.party-item:active { transform: translateY(1px); }
.party-item__art { width: 34px; height: 34px; }
.party-item small { font: 500 .5rem var(--f-mono); letter-spacing: .04em; text-transform: none; opacity: .7; }
.party-item.is-done { border-color: var(--ochre); background: rgba(231, 187, 104, .14); }
.party-item.is-done::after { content: '✓'; position: absolute; top: 3px; right: 6px; color: var(--ochre); font: 700 .8rem var(--f-body); }
.party__tip { text-align: center; font: 500 .56rem var(--f-mono); letter-spacing: .1em; color: rgba(245, 235, 221, .55); }
.s6[data-phase='party'] .popup { min-height: 170px; }
@media (max-width: 599px) {
  .s6[data-phase='party'] .pl--cake { width: min(190px, 46%, 19vh); }
  .s6[data-phase='party'] .reveal__sub, .s6[data-phase='party'] .party__note { display: none; }
  .s6[data-phase='party'] .s6-pigeon { width: 66px; bottom: auto; top: 34%; }
  .s6[data-phase='party'] .reveal__headline { font-size: clamp(2.2rem, 10.5vw, 3.4rem); }
}
.balloon-layer, .fx-layer { position: absolute; inset: 0; z-index: 9; overflow: hidden; pointer-events: none; }
.balloon { position: absolute; bottom: -190px; width: clamp(54px, 13vw, 84px); pointer-events: auto; filter: drop-shadow(3px 5px 0 rgba(0, 0, 0, .25)); }
.balloon svg { width: 100%; height: auto; }
.balloon-tag { position: absolute; z-index: 10; translate: -50% 0; white-space: nowrap; padding: 4px 10px; background: var(--paper-hi); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--terracotta); font: 600 .66rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.streamer { position: absolute; top: 0; width: 12px; height: 150px; background: repeating-linear-gradient(160deg, var(--c) 0 12px, transparent 12px 15px); border-radius: 6px; opacity: .95; }
.music-note { position: absolute; z-index: 10; font: 700 1.8rem var(--f-display); color: var(--ochre); text-shadow: 2px 2px 0 var(--terracotta-deep); }
.reveal__headline .word { position: relative; }
.headline-hat { position: absolute; left: 4%; top: -.62em; width: .5em; transform-origin: 50% 100%; pointer-events: none; filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, .3)); }
.headline-hat svg, .cake-hat svg { width: 100%; height: auto; }
.cake-hat { position: absolute; left: 6%; bottom: 70%; width: 12%; z-index: 5; pointer-events: none; transform: rotate(-14deg); }
.candle.is-sparkling .flame { transform: scale(1.25) rotate(var(--bend)); }
.candle.is-sparkling .flame i { background: radial-gradient(ellipse at 50% 70%, #fff 0 25%, #FFE9A8 45%, rgba(255, 210, 122, 0) 72%); }
.tier--bottom.is-cut::after { content: ''; position: absolute; left: 58%; top: 12%; width: 13%; height: 72%; background: #3B2A22; clip-path: polygon(0 0, 100% 0, 60% 100%, 40% 100%); opacity: .85; }
.slice-card {
  position: absolute; right: 3%; bottom: 36%; z-index: 8; width: 140px; padding: 8px 10px 10px; text-align: center;
  background: var(--paper-hi) var(--noise); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 4px 5px 0 var(--terracotta);
}
.slice-card__plate { width: 64px; height: 64px; margin: 0 auto; }
.slice-card__no { font: 800 1.05rem var(--f-display); }
.slice-card__tag { font: italic 400 .74rem/1.3 var(--f-display); color: var(--ink-soft); }

/* ---------- 08 · The staff birthday card ---------- */
.staff-card-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; width: min(560px, 100%); margin: auto 0; }
.staff-card { position: relative; width: 100%; }
.staff-card__inside { position: relative; min-height: 420px; padding: 24px 18px 20px; background: #FFF9EE var(--noise); border: 1.5px solid var(--ink); box-shadow: var(--shadow-lift); }
.staff-card__inside::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--terracotta) 0 20px, var(--ochre) 20px 40px, var(--sage) 40px 60px); }
.staff-card__title { margin-top: 6px; text-align: center; font: 800 clamp(1.9rem, 8vw, 2.6rem)/1 var(--f-display); color: var(--terracotta-deep); }
.staff-card__sub { margin-top: 4px; text-align: center; font: 600 .58rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.staff-card__notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.sig-note { padding: 4px 2px; }
.sig-note p { font: italic 500 .98rem/1.3 var(--f-display); }
.sig-note span { display: block; margin-top: 4px; font: 600 .52rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.sig-note--0 { transform: rotate(-2deg); } .sig-note--0 p { color: #2F4A6A; }
.sig-note--1 { transform: rotate(1.5deg); } .sig-note--1 p { color: var(--sage-deep); font-weight: 700; }
.sig-note--2 { transform: rotate(-1deg); } .sig-note--2 p { color: var(--terracotta-deep); font-style: normal; font-family: var(--f-body); }
.sig-note--3 { transform: rotate(2deg); } .sig-note--3 p { color: var(--ink); }
.sig-note--4 { transform: rotate(-1.5deg); } .sig-note--4 p { color: var(--ochre-deep); font-weight: 700; }
.sig-note--5 { grid-column: 1 / -1; text-align: center; transform: rotate(1deg); } .sig-note--5 p { font-size: 1.15rem; color: #2F4A6A; }
.staff-card__pigeon { width: 70px; margin: 8px auto 0; }
.staff-card__cover { position: absolute; inset: 0; z-index: 2; transform-style: preserve-3d; }
.staff-card__face, .staff-card__back { position: absolute; inset: 0; border: 1.5px solid var(--ink); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.staff-card__face { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; overflow: hidden; background: var(--terracotta) var(--noise); box-shadow: var(--shadow-lift); }
.staff-card__back { transform: rotateY(180deg); background: #F3E6CF var(--noise); }
.staff-card__bunting { position: absolute; top: 0; left: 0; width: 100%; }
.staff-card__front { max-width: 18ch; padding: 14px 16px; text-align: center; background: var(--paper-hi); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--terracotta-deep); font: 800 clamp(1.3rem, 6vw, 1.8rem)/1.1 var(--f-display); transform: rotate(-2deg); }
.staff-card__cake { width: 120px; height: 120px; }
.staff-card__cake svg { width: 100%; height: 100%; }
.staff-card__actions { display: flex; justify-content: center; }

/* ---------- larger screens ---------- */
@media (min-width: 600px) {
  .sup-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .req-form { padding: 26px 28px 28px; }
  .s6s-dock { right: 18px; width: 120px; }
  .party__list { grid-template-columns: repeat(6, 1fr); }
  .party-item { min-height: 88px; }
  .party-item__art { width: 40px; height: 40px; }
  .staff-card__inside { padding: 32px 34px 26px; }
  .slice-card { width: 170px; }
}
@media (min-width: 1024px) {
  .s6s-layout { flex-direction: row; align-items: flex-start; justify-content: center; gap: 32px; }
  .crate-zone { position: sticky; top: calc(var(--top) + 40px); width: 300px; margin-top: 60px; }
}
