/* Short Video Club — Full-Web Enchanted Christmas Frame & Grand 25-Tag Tree Showcase */
:root {
  --bg-ivory: #f9f6ed;
  --bg-ivory-warm: #f1ebdf;
  --bg-mint: #edf1e7;
  --bg-mint-strong: #dce6d7;
  --bg-honey-soft: #faf1df;
  --text-main: #263f35;
  --text-secondary: #617064;
  --text-muted: #6b776b;
  --cranberry: #b6404c;
  --cranberry-hover: #9d303d;
  --cranberry-soft: #f9e9e7;
  --sage-accent: #4c7056;
  --sage-deep: #294b3b;
  --honey-gold: #ba8d43;
  --honey-ink: #816134;
  --border-card: #e4e5d8;
  --border-sage: #d5dfcf;
  --border-honey: #e5d6b8;
  --border-input: #d9ddd2;
  --radius-lg: 24px;
  --shadow-card: 0 22px 52px -18px rgba(4, 15, 10, 0.62), 0 0 0 1px rgba(235, 204, 134, 0.36);
}

html { background: #142b20; scroll-padding-top: 112px; }
body {
  color: var(--text-main);
  background-color: #163024;
  background-image:
    radial-gradient(circle at 16% 22%, rgba(238, 196, 104, 0.13), transparent 34%),
    radial-gradient(circle at 85% 28%, rgba(196, 58, 72, 0.15), transparent 36%),
    radial-gradient(circle at 50% 88%, rgba(238, 196, 104, 0.10), transparent 42%),
    radial-gradient(ellipse at 50% 8%, #2d5841 0%, #1b382a 54%, #11241b 100%);
  background-size: 100% 100%;
  background-attachment: fixed;
  position: relative;
}
button, input, textarea { font-family: var(--font-sans); }
button, a, input { -webkit-tap-highlight-color: transparent; }

/* Full-Viewport Decorative Christmas Card Border & Holly Corners */
.christmas-web-frame {
  position: fixed;
  inset: 8px;
  border-radius: 18px;
  border: 1.5px solid rgba(233, 198, 120, 0.42);
  box-shadow: inset 0 0 42px rgba(8, 22, 15, 0.35);
  pointer-events: none;
  z-index: 320;
}
.christmas-web-frame::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 13px;
  border: 1px dashed rgba(233, 198, 120, 0.22);
}
.christmas-web-frame .frame-corner {
  position: absolute;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 6px rgba(5, 16, 10, 0.55));
}
.christmas-web-frame .frame-corner.is-tl { top: -3px; left: -3px; }
.christmas-web-frame .frame-corner.is-tr { top: -3px; right: -3px; transform: scaleX(-1); }
.christmas-web-frame .frame-corner.is-bl { bottom: -3px; left: -3px; transform: scaleY(-1); }
.christmas-web-frame .frame-corner.is-br { bottom: -3px; right: -3px; transform: scale(-1, -1); }

.season-ribbon {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 31px; padding: 6px 16px;
  background: linear-gradient(90deg, #7c1f29 0%, #a8303d 50%, #7c1f29 100%);
  border-bottom: 1px solid rgba(240, 206, 130, 0.42);
  color: #fff6e4; font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
}
.season-ribbon > span { color: #f6d588; font-size: 12px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 400; border-radius: 10px; padding: 12px 18px; background: white; color: var(--sage-deep); }
.skip-link:focus { top: 12px; }

.site-header {
  background: rgba(18, 39, 29, 0.90);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(5, 16, 10, 0.28);
  border-bottom: 1px solid rgba(232, 198, 122, 0.30);
}
.header-inner { max-width: 1360px; min-height: 80px; padding: 14px 32px; gap: 24px; }
.brand { gap: 12px; }
.brand-badge {
  width: 42px; height: 46px; border-radius: 13px 13px 16px 16px;
  background: linear-gradient(155deg, #c94451, #962632);
  color: #ffe8a8;
  box-shadow: inset 0 0 0 2px rgba(246, 214, 140, 0.55), 0 6px 14px rgba(8, 20, 14, 0.45);
  transform: rotate(-5deg);
}
.brand-title { font-size: 23px; line-height: 1.2; font-weight: 600; letter-spacing: -.8px; color: #fff8e8; }
.brand-tagline { display: block; margin-top: 3px; font-size: 10px; color: #ebd08f; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.header-meta { gap: 8px; margin-left: auto; }
.header-meta .btn {
  width: auto; min-height: 38px; border-radius: 10px; padding: 8px 12px; font-size: 11px;
  background: rgba(255, 250, 236, 0.10); color: #fff7e5; border-color: rgba(232, 198, 122, 0.34);
}
.header-meta .btn:hover { background: rgba(255, 250, 236, 0.20); border-color: rgba(242, 212, 142, 0.58); }
.header-meta .account-pill {
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; font-size: 11px;
  background: rgba(255, 250, 236, 0.10); color: #f9efda; border-color: rgba(232, 198, 122, 0.30);
}
#openAccountsHeaderBtn:not(.hidden) { display: inline-flex !important; }
#headerStatusPill {
  font-size: 10px; padding: 7px 12px;
  background: rgba(236, 199, 114, 0.18); color: #ffeab8; border: 1px solid rgba(236, 199, 114, 0.35);
}
body[data-page="1"] #headerStatusPill, body[data-page="2"] #headerStatusPill { display: none; }

/* Full-Width Pine Garland & Twinkling String Lights Valence Across Every Page */
.festive-garland-crown {
  display: block;
  position: relative;
  width: 100%;
  height: 46px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  margin-bottom: -8px;
}
.festive-garland-crown .garland-bough-img {
  width: 100%;
  max-width: 1680px;
  height: 54px;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto;
  opacity: 0.92;
  filter: drop-shadow(0 6px 12px rgba(5, 16, 10, 0.55));
}
.festive-garland-crown .garland-lights-img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1520px;
  height: 42px;
  object-fit: cover;
  object-position: center top;
  filter: drop-shadow(0 3px 10px rgba(248, 208, 116, 0.55));
}

/* Progress rail hidden per user preference while preserving DOM hooks. */
.steps-strip-wrap { display: none !important; }
.steps-strip {
  grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 0;
  border: 0; border-radius: 0; background: none;
}
.step-item { gap: 9px; padding: 5px 10px; border-radius: 0; position: relative; }
.step-item:not(:last-child)::after { content: ''; position: absolute; width: 20px; height: 1px; right: -8px; top: 19px; background: #d6dccc; }
.step-item.is-current { background: none; }
.step-num { height: 28px; width: 28px; border: 1px solid #d8ddcf; background: #f7f5ed; color: #85917e; font-size: 11px; }
.step-item.is-current .step-num { background: #b6404c; border-color: #b6404c; box-shadow: 0 0 0 4px #b6404c0b; }
.step-item.is-done .step-num { background: #56765b; border-color: #56765b; }
.step-text { font-size: 12px; color: #83907d; line-height: 1.4; }
.step-text strong { font-weight: 800; }
.step-item.is-current .step-text, .step-item.is-done .step-text { color: #344c3d; }
.step-sub { margin-top: 2px; font-size: 9px; color: #7e8978; }

/* Desktop pages use an editorial story column and a focused form card. */
.step-page-shell {
  max-width: 1160px; margin: 0 auto; padding: 34px 32px 44px;
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); column-gap: 72px; row-gap: 28px;
  align-items: center;
}
.step-page-shell > .alert-msg { grid-column: 1 / -1; }
.story-panel { position: relative; min-width: 0; padding-top: 6px; }
.eyebrow { display: block; color: #8a6d45; font-size: 9px; letter-spacing: .15em; font-weight: 800; line-height: 1.6; }
.story-panel > .eyebrow, .room-page-heading .eyebrow { color: #f2d28b; }
.tiny-star { color: #f6cf7d; font-size: 16px; margin-right: 7px; vertical-align: -1px; }
.story-title {
  font-family: var(--font-display); font-size: clamp(42px,4.8vw,61px); line-height: 1.07;
  letter-spacing: -2.3px; font-weight: 600; margin: 17px 0 17px; color: #fff8eb;
  text-shadow: 0 4px 18px rgba(5, 16, 10, 0.38);
}
.story-title em, .room-page-heading em { color: #ff8d96; font-style: italic; font-weight: inherit; }
.story-description { font-size: 14px; line-height: 1.75; color: #d8e6d3; margin: 0; max-width: 420px; }
.christmas-post-scene { position: relative; margin: 8px -32px 0 -28px; filter: drop-shadow(0 14px 28px rgba(4, 14, 9, 0.45)); }
.christmas-post-scene > img { width: 100%; height: auto; border-radius: 16px; }
.scene-sticker {
  position: absolute; right: 3%; bottom: 6%; padding: 10px 15px; border: 1px dashed #d1b98a;
  border-radius: 5px; background: #fcf5e4; font-size: 9px; color: #8c744f; line-height: 1.5; text-align: center;
  transform: rotate(-9deg); box-shadow: 0 6px 14px rgba(5, 16, 10, 0.32);
}
.scene-sticker strong { font-size: 11px; font-family: var(--font-display); font-weight: 600; }
.story-promise {
  display: flex; gap: 12px; align-items: center; margin-top: 4px; padding: 10px 14px;
  border-radius: 14px; background: rgba(255, 249, 235, 0.09); border: 1px solid rgba(232, 198, 122, 0.28);
  max-width: 390px;
}
.promise-icon { height: 34px; width: 34px; display: grid; place-items: center; border: 1px solid rgba(235, 198, 126, 0.45); background: rgba(182, 64, 76, 0.26); border-radius: 50%; color: #ff9ca4; font-size: 22px; }
.story-promise p { font-size: 10.5px; line-height: 1.6; color: #dce7d7; margin: 0; }
.story-promise strong { font-weight: 700; color: #fff7e2; }
.stationery-card {
  position: relative; padding: 32px; border-radius: 20px; border: 1px solid rgba(235, 206, 140, 0.55);
  background: #fffdf7; box-shadow: 0 24px 54px -18px rgba(4, 15, 10, 0.65), 0 3px 0 #e6d4b0;
}
.stationery-card::before {
  height: 6px; background: repeating-linear-gradient(125deg,#b83b47 0 13px,#fff8ea 13px 23px,#2f6348 23px 36px,#e6c373 36px 46px);
}
.card-intro { margin-bottom: 26px; position: relative; }
.card-intro > .eyebrow { padding-right: 40px; font-size: 8px; letter-spacing: .13em; }
.stationery-card .card-heading { display: block; font-size: 35px; font-weight: 600; line-height: 1.12; letter-spacing: -1.1px; margin: 14px 0 13px; color: var(--text-main); }
.stationery-card .card-subtext { font-size: 12px; line-height: 1.7; margin: 0; max-width: 310px; }
.card-postmark { position: absolute; right: 24px; top: 51px; width: 65px; height: 65px; border: 1px solid #d7bda3; border-radius: 50%; transform: rotate(14deg); color: #bb9d83; font-size: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.5; }
.card-postmark span { font-size: 5px; font-weight: 800; letter-spacing: 1px; }
.welcome-seal { display: none; }
.form-stack { gap: 18px; }
.field { gap: 7px; }
.field-label { font-size: 12px; font-weight: 800; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.field-annotation { font-size: 9px; color: #88927e; }
.text-input, .ornament-name-input {
  min-height: 49px; background: #fbfbf6; border: 1px solid #d9ded1; border-radius: 10px;
  padding: 12px 14px; font-size: 14px; font-weight: 600;
}
.text-input::placeholder, .ornament-name-input::placeholder { color: #8b9585; font-weight: 500; font-family: var(--font-sans); font-size: 13px; }
.password-input-wrap .text-input { font-family: var(--font-sans); letter-spacing: .01em; }
.text-input.is-secret-masked { -webkit-text-security: disc; letter-spacing: .08em; }
.text-input.is-secret-masked:placeholder-shown { -webkit-text-security: none; letter-spacing: .01em; }
.pw-toggle-btn { font-size: 13px; }
.text-input:focus, .ornament-name-input:focus { border-color: #718763; box-shadow: 0 0 0 3px #7187631a; }
.game-cta-btn {
  min-height: 50px; margin-top: 4px; padding: 13px 15px; border: 1px solid #ac3d49; border-radius: 11px;
  background: #b6404c; color: #fff9f0; font-size: 12px; font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 3px 0 #91323c, 0 7px 15px #b6404c16;
}
.game-cta-btn > span { margin-left: auto; font-size: 20px; font-weight: 500; line-height: 1; }
.game-cta-btn:hover:not(:disabled) { background: #a53542; box-shadow: 0 3px 0 #812b35, 0 8px 18px #b6404c26; }
.game-cta-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #91323c; }
.login-help { margin: 20px 0 0; color: #7e8775; font-size: 10px; line-height: 1.7; text-align: center; }
.card-bottom-note { border-top: 1px dashed #dddcc9; padding-top: 17px; margin-top: 23px; font-size: 9px; text-align: center; color: #8b7657; }
.card-bottom-note > span { margin-right: 6px; color: #b6404c; }
.christmas-rules {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px;
  border: 1px solid rgba(235, 206, 140, 0.48); background: rgba(255, 251, 241, 0.96);
  box-shadow: 0 16px 36px -18px rgba(4, 15, 10, 0.55);
  border-radius: 15px; padding: 17px 23px;
}
.christmas-rules > div { min-width: 0; }
.christmas-rules strong { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-main); }
.christmas-rules p { margin: 3px 0 0; font-size: 10px; line-height: 1.7; color: #657260; }
.rules-calendar { width: 42px; min-width: 42px; height: 45px; border: 1px solid #e0d6be; border-radius: 8px; background: #fffbf1; overflow: hidden; text-align: center; transform: rotate(-6deg); }
.rules-calendar small { display: block; background: #b6404c; color: #fff8ed; font-size: 7px; letter-spacing: 1px; line-height: 14px; }
.rules-calendar strong { display: block; line-height: 27px; font-size: 21px; color: #4e604b; }
.rules-sparkle { font-size: 28px; color: #bd9a57; margin: 0 4px 0 auto; }

/* A real keepsake tag is the focal point of the name workshop. */
.name-layout { padding-top: 32px; }
.name-story .story-title { font-size: 51px; }
.tag-showcase { position: relative; height: 300px; width: 100%; display: flex; flex-direction: column; align-items: center; margin: 10px 0 -5px; }
.tag-showcase::before {
  content: ''; position: absolute; width: 330px; height: 230px; border-radius: 50%; top: 55px;
  background: radial-gradient(circle, rgba(242, 206, 126, 0.24) 0%, rgba(44, 92, 66, 0.36) 65%, transparent 100%);
  transform: rotate(-12deg);
}
.gift-tag-bow { width: 145px; height: 93px; margin-bottom: -33px; z-index: 2; transform: rotate(-8deg); }
.preview-gift-tag {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 255px; height: 210px; padding: 32px 18px 17px;
  background: #fffaf0; border: 1px solid #d7bf92; border-radius: 34px 34px 13px 13px; transform: rotate(-8deg);
  box-shadow: 8px 12px 0 -4px rgba(10, 26, 18, 0.35), 0 20px 34px -14px rgba(5, 16, 10, 0.6);
}
.preview-gift-tag::before { content: ''; position: absolute; inset: 10px; border: 1px dashed #d8c4a2; border-radius: 24px 24px 6px 6px; pointer-events: none; }
.tag-grommet { position: absolute; top: 12px; left: calc(50% - 5px); width: 10px; height: 10px; background: #d9d9bf; border: 3px solid #c0a36f; border-radius: 50%; }
.tag-preview-eyebrow { font-size: 6px; font-weight: 800; letter-spacing: 1.7px; color: #997e55; }
#liveNamePreview { width: 100%; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); color: #b6404c; font-size: 46px; line-height: 1.5; letter-spacing: -1.5px; font-weight: 600; text-align: center; }
.tag-preview-rule { width: 42px; border-top: 1px solid #dbcaa6; margin: 1px 0 10px; }
.tag-preview-seal { display: grid; place-items: center; height: 28px; width: 28px; background: #b6404c; border: 3px double #d78480; border-radius: 50%; font-family: var(--font-display); font-size: 12px; color: #fff1cf; }
.tag-preview-footer { font-size: 5px; letter-spacing: 1.5px; font-weight: 800; color: #997e55; margin-top: 12px; }
.showcase-star { position: absolute; color: #f0ca78; font-size: 30px; }
.star-one { top: 85px; left: 9%; transform: rotate(-12deg); }
.star-two { bottom: 75px; right: 10%; font-size: 38px; }
.showcase-caption { margin: 17px 0 0 170px; font-size: 10.5px; font-style: italic; font-family: var(--font-display); color: #efd498; transform: rotate(-6deg); white-space: nowrap; }
#nameTagBoard { padding-top: 35px; }
#nameTagBoard::before { content: ''; position: absolute; top: 0; right: 0; left: 0; }
.name-workshop-note { display: flex; align-items: center; gap: 12px; margin: 23px 0; padding: 14px 17px; border: 1px solid #e4e6d7; border-radius: 12px; background: #f1f4e9; }
.name-workshop-note > span { font-size: 30px; }
.name-workshop-note p { margin: 0; font-size: 11px; line-height: 1.6; color: #7c876d; }
.name-workshop-note strong { color: #52674c; }
.mobile-tag-preview { display: none; }
.ornament-name-input { text-align: left; font-family: var(--font-sans); font-size: 16px; font-weight: 700; }
#nameLengthHint { margin: 0; font-size: 10px; color: #7d8875; }
.suggested-names { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.suggested-names > span { color: #7d8875; font-size: 10px; margin-right: 4px; }
.quick-name-chip { min-height: 36px; padding: 6px 12px; font-size: 11px; color: #6c7658; background: #f4f2e7; border: 1px solid #e0dfc9; }
.quick-name-chip:hover { background: #eaeedc; }
.utility-link { font-size: 11px; min-height: 44px; }

/* Grand 14-Tier 3D Tree Showcase (Sized for ~25+ Hanging Name Tags) */
.app-shell {
  max-width: 1380px; padding: 24px 32px 44px; gap: 24px;
  grid-template-columns: minmax(0, 1.74fr) minmax(335px, 0.92fr);
  grid-template-rows: auto auto 1fr;
}
.room-page-heading { grid-column: 1 / -1; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 2px; }
.room-page-heading h2 {
  margin: 8px 0 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px,3.8vw,44px); letter-spacing: -1.5px; line-height: 1.14;
  color: #fff8eb; text-shadow: 0 4px 18px rgba(5, 16, 10, 0.42);
}
.room-page-heading > p { font-size: 11.5px; color: #d8e6d3; line-height: 1.7; margin: 0 0 2px; }
.tree-stage-slot { grid-column: 1; grid-row: 2 / 4; position: sticky; top: 96px; }
.primary-action-slot { grid-column: 2; grid-row: 2; }
.secondary-cards-slot { grid-column: 2; grid-row: 3; gap: 18px; }
.tree-stage-card {
  min-height: 880px;
  border: 5px solid #f7eed8;
  outline: 2px solid rgba(232, 198, 120, 0.52);
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 24%, #356348 0%, #1d3c2d 58%, #12261d 100%);
  box-shadow: 0 28px 64px -18px rgba(4, 14, 9, 0.78), 0 0 36px rgba(235, 198, 114, 0.16);
}
.tree-stage-card::after { content: ''; position: absolute; inset: 7px; border: 1px solid #e8cb8348; border-radius: 14px; pointer-events: none; z-index: 200; }
.tree-lights-drape img { max-height: 50px; filter: drop-shadow(0 2px 9px #f0c56555); }
.tree-stage-topbar { padding: 42px 24px 0; gap: 12px; }
.stage-room-heading { font-size: 25px; color: #fff4da; font-weight: 600; letter-spacing: -.6px; }
.stage-room-caption { font-size: 10.5px; color: #d1dfca; line-height: 1.55; max-width: 340px; margin-top: 4px; }
.stage-counter-badge { border-radius: 10px; padding: 7px 12px; font-size: 11px; background: rgba(242, 212, 142, 0.14); color: #ffecbe; border-color: rgba(242, 212, 142, 0.36); }
.stage-counter-badge strong { font-family: var(--font-sans); }
.tree-viewport { min-height: 720px; }
.tree-stage-controls { padding: 8px 20px 18px; background: transparent; gap: 8px; }
.rotate-btn { min-height: 40px; padding: 7px 13px; font-size: 10.5px; background: rgba(255, 250, 236, 0.08); border-color: rgba(235, 206, 140, 0.32); color: #f6eed9; }
.rotate-btn:hover { background: rgba(255, 250, 236, 0.16); }
.tree-stage-hint { font-size: 9.5px; color: #c4d5ba; max-width: 190px; }

/* Sleek Jewel-Proportioned Hanging Name Tags (Comfortable for ~25+ Tags) */
.hanging-tag-card {
  background: #fffaec;
  padding: 0.48rem 0.66rem 0.32rem 0.46rem;
  min-width: 80px;
  max-width: 146px;
  gap: 0.36rem;
}
.hanging-tag-seal { width: 21px; height: 21px; font-size: 0.68rem; background: #b6404c; }
.hanging-tag-name { font-weight: 700; font-size: 0.88rem; }
.hanging-tag.tag-style-1 .hanging-tag-card { background: #af404c; }
.hanging-tag.tag-style-2 .hanging-tag-card { background: #f5e7ca; }
.hanging-tag.tag-style-3 .hanging-tag-card { background: #4c7056; }
.hanging-tag.tag-style-4 .hanging-tag-card { background: #e3c68d; }
.primary-action-slot .game-board-card {
  padding: 24px; border: 1px solid rgba(235, 206, 140, 0.52); background: #fffdf6; border-radius: 18px; box-shadow: var(--shadow-card);
}
.primary-action-slot .game-board-card::before {
  height: 5px; background: repeating-linear-gradient(125deg,#b83b47 0 13px,#fff8ea 13px 23px,#2f6348 23px 36px,#e6c373 36px 46px);
}
.primary-action-slot .tree-lights-drape { display: none; }
.joined-success-box { padding: 0; border: 0; background: transparent; }
.player-card-illustration { height: 105px; overflow: hidden; display: flex; justify-content: center; margin: -14px 0 15px; }
.player-card-illustration img { width: 210px; height: auto; align-self: center; }
.joined-success-box > .eyebrow { font-size: 8px; margin-bottom: 10px; }
.joined-success-title { color: #344d3a; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.5px; line-height: 1.3; margin-bottom: 12px; }
.joined-success-title > span:first-child { display: none; }
#joinedWaitingNote { font-size: 11px !important; color: #74816b; line-height: 1.7 !important; margin-bottom: 15px !important; }
.joined-success-box .btn-sm { min-height: 38px; font-size: 10px; border-radius: 9px; }
.card { border-radius: 18px; padding: 22px; border: 1px solid rgba(235, 206, 140, 0.48); box-shadow: var(--shadow-card); background: #fffdf7; }
.card-heading { font-weight: 600; font-size: 20px; }
.card-host .card-heading { font-size: 18px; }
.host-state-banner { font-size: 10px; line-height: 1.65; padding: 12px; background: #faf4e5; border-color: #e6dbc0; }
.host-actions .btn, #adminWaitingActions .btn, #adminPairedActions .btn { font-size: 11px; }
.mission-box { background: #faf4e5; border-color: #e7d9bb; border-radius: 12px; padding: 22px 18px; }
.mission-eyebrow { font-size: 9px; letter-spacing: .13em; color: #9a7a45; }
.mission-recipient { font-size: 40px; font-weight: 600; color: #b6404c; margin: 6px 0; }
.mission-box p { font-size: 11px !important; line-height: 1.7; }
.mission-box .btn { min-height: 36px; border-radius: 9px; font-size: 10px; padding: 7px 10px; }
.angel-lock-box { margin-top: 16px; border-radius: 12px; padding: 16px; }
.angel-lock-box .status-pill { font-size: 8px !important; }
.angel-lock-box > div > span:first-child { font-size: 9px !important; letter-spacing: .06em !important; }
.angel-countdown { font-size: 12px; line-height: 1.8; }
#angelLockedView p { font-size: 10px !important; line-height: 1.7; }
#roomRosterPanel .card-heading { font-size: 18px !important; }
.roster-chip { border-radius: 9px; background: #f3f4e9; font-size: 11px; }

/* Crisp High-Contrast Friends on the Tree Chips */
.member-chip {
  background: #faf5e8;
  border: 1px solid #dcd1b8;
  color: #1e382c;
}
.member-chip:hover {
  background: #f3ebd6;
  border-color: #c8b68e;
}
.member-chip .chip-name {
  color: #1e382c;
  font-weight: 800;
}
.member-chip.is-me {
  background: #fdecef;
  border-color: #e59ca4;
  color: #841e2a;
}
.member-chip.is-me .chip-name {
  color: #841e2a;
}

.hanging-tag-text-col {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.12;
  min-width: 0;
}
.hanging-tag-giftee {
  font-size: 0.63rem;
  font-weight: 800;
  color: #9e2f3c;
  margin-top: 2px;
  white-space: nowrap;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hanging-tag.tag-style-1 .hanging-tag-giftee,
.hanging-tag.tag-style-3 .hanging-tag-giftee {
  color: #ffe9ad;
}

/* Prominent Everybody Unlocked Pairs Card & Modal Table */
.card-unlocked-pairs {
  background: linear-gradient(180deg, #fffdf5 0%, #fbf3df 100%);
  border: 2px solid #dfbe78;
  box-shadow: 0 22px 48px -18px rgba(4, 15, 10, 0.65), 0 0 22px rgba(235, 196, 108, 0.22);
}
.pair-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.72rem;
  border-radius: 10px;
  background: #fffcf4;
  border: 1px solid #e4d9be;
  font-size: 0.85rem;
}
.pair-row.is-clickable {
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.pair-row.is-clickable:hover {
  background: #f7eed7;
  border-color: #cfb784;
  transform: translateX(2px);
}
.pair-row.is-mine {
  background: #fdecef;
  border-color: #e49aa3;
}
.pair-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #8b7652;
}
.pair-angel {
  font-weight: 800;
  color: #a9303d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pair-arrow {
  font-size: 0.72rem;
  color: #967b4c;
  font-weight: 800;
  white-space: nowrap;
}
.pair-giftee {
  font-weight: 800;
  color: #214535;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pair-you-tag {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 99px;
  background: #b6404c;
  color: #fff8ec;
  font-size: 0.6rem;
  font-weight: 800;
  vertical-align: 1px;
}
.modal-pairs-wrap {
  margin: 0.2rem 0 1rem;
  text-align: left;
  border: 1px solid #e4d7b8;
  border-radius: 12px;
  background: #faf3e1;
  padding: 0.65rem;
}
.modal-pairs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #85693d;
  margin-bottom: 0.45rem;
  padding: 0 0.25rem;
}
.modal-pairs-scroll {
  max-height: 240px;
  overflow-y: auto;
  margin: 0;
  padding-right: 2px;
}
.reveal-modal-card { max-width: 500px; max-height: calc(100dvh - 40px); overflow-y: auto; }

/* Festive Holiday Footer with Santa & Gifts */
.site-footer {
  max-width: 1360px; margin: 6px auto 12px; padding: 16px 32px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: #d9e6d4; font-size: 10px; border-top: 1px solid rgba(232, 198, 122, 0.26);
}
.footer-santa-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #f4ebd5; }
.footer-santa-art { width: 46px; height: auto; filter: drop-shadow(0 3px 8px rgba(4, 14, 9, 0.5)); }
.footer-club-stamp { letter-spacing: .12em; font-size: 8.5px; font-weight: 800; color: #ebd08f; }

/* Closed dialogs are absent from focus navigation and the accessibility tree. */
.modal-backdrop { visibility: hidden; transition: opacity .2s ease, visibility .2s; padding: 20px; z-index: 400; }
.modal-backdrop.is-open { visibility: visible; transition: opacity .2s ease; }
body.has-open-dialog { overflow: hidden; }
.reveal-modal-card, .accounts-modal-card { border-radius: 20px; border: 1px solid #e5d8bb; background: #fffcf3; }
.reveal-big-name { color: #b6404c; }
.reveal-wax-emblem { background: #f4ead5; box-shadow: none; }
.accounts-modal-card { max-width: 690px; max-height: calc(100dvh - 40px); overflow-y: auto; }
.accounts-modal-card .card-title-row { flex-wrap: wrap; }
.accounts-modal-card .btn { width: auto; }

/* Gmail Auto-Sender Setup & Selective Test-Member Invite Controls */
.gmail-setup-box {
  margin-bottom: 0.75rem;
  border-radius: 14px;
  border: 1.5px solid #dcc48e;
  background: linear-gradient(180deg, #faf3e1 0%, #fffdf7 100%);
  overflow: hidden;
}
.gmail-setup-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.62rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 800;
  color: #1f3c2e;
}
.gmail-setup-summary::-webkit-details-marker { display: none; }
.gmail-status-pill {
  font-size: 0.72rem;
  padding: 0.18rem 0.58rem;
  background: #f1ebdc;
  border: 1px solid #d5c7a9;
  color: #5c4b2b;
}
.gmail-status-pill.is-ready {
  background: #e4f6eb;
  border-color: #8fd2aa;
  color: #155534;
}
.gmail-setup-body {
  padding: 0.15rem 0.85rem 0.85rem;
  border-top: 1px dashed #e1cfa6;
}
.gmail-setup-steps {
  margin: 0.55rem 0 0.65rem;
  padding-left: 1.25rem;
  font-size: 0.79rem;
  line-height: 1.58;
  color: #2c4639;
}
.gmail-setup-steps li { margin-bottom: 0.28rem; }
.gmail-setup-steps code {
  background: #fff8e7;
  border: 1px solid #e3c888;
  border-radius: 5px;
  padding: 0.05rem 0.32rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.inline-action-pill {
  appearance: none;
  cursor: pointer;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #c99b42;
  background: #fff6df;
  color: #6b4507;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
}
.inline-action-pill:hover { background: #fcebc0; }
.inline-action-link {
  color: #b43644;
  font-weight: 800;
  text-decoration: underline;
}
.gmail-url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.gmail-url-row .text-input {
  flex: 1 1 240px;
}
.accounts-invite-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  background: #f5efe0;
  border: 1px solid #e2d4b5;
}
.accounts-select-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.quick-select-pill {
  appearance: none;
  cursor: pointer;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  border: 1px solid #d4c39f;
  background: #fffdf8;
  color: #284537;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
}
.quick-select-pill:hover { background: #fff3d6; border-color: #c8a45c; }
.accounts-send-selected-btn {
  min-height: 36px !important;
  padding: 0.38rem 0.85rem !important;
  font-size: 0.79rem !important;
}
.send-confirm-box {
  margin-top: 0.55rem;
  padding: 0.68rem 0.8rem;
  border-radius: 12px;
  background: #fff6e3;
  border: 1.5px solid #d9a441;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.send-confirm-text {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #3a2b0f;
  flex: 1 1 260px;
}
.send-confirm-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.accounts-list { max-height: 320px; }
.account-row.is-selected {
  background: #fff7e2;
  border-color: #d9b464;
}
.account-select-cb {
  width: 18px;
  height: 18px;
  accent-color: #b93846;
  cursor: pointer;
  flex-shrink: 0;
}
.account-invited-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  background: #e5f7ec;
  border: 1px solid #9ad7b2;
  color: #165936;
  font-size: 0.7rem;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .step-page-shell { column-gap: 40px; }
  .story-title { font-size: 51px; }
  .name-story .story-title { font-size: 45px; }
  .stationery-card { padding: 28px; }
  .card-postmark { right: 18px; opacity: .75; }
  .header-meta .account-pill { max-width: 130px; }
  .header-meta { gap: 5px; }
  .app-shell { grid-template-columns: minmax(0,1.48fr) minmax(310px,0.95fr); gap: 18px; }
  .tree-stage-card { min-height: 770px; }
  .tree-viewport { min-height: 615px; }
  .room-page-heading > p { display: none; }
}
@media (max-width: 800px) {
  .christmas-web-frame { inset: 5px; border-radius: 14px; }
  .christmas-web-frame .frame-corner { width: 38px; height: 38px; }
  .header-inner { min-height: 74px; padding: 12px 24px; gap: 12px; }
  .brand-title { font-size: 20px; }
  .brand-badge { width: 37px; height: 41px; }
  .festive-garland-crown { height: 36px; margin-bottom: -6px; }
  .festive-garland-crown .garland-bough-img { height: 42px; }
  .festive-garland-crown .garland-lights-img { height: 32px; }
  #headerStatusPill { display: none; }
  .header-meta .account-pill { display: none; }
  .step-page-shell { padding: 24px 24px 32px; gap: 24px; grid-template-columns: 1fr; max-width: 560px; }
  .story-panel { text-align: center; }
  .story-title { font-size: 43px; letter-spacing: -1.6px; margin: 10px 0 12px; }
  .story-description { margin: 0 auto; font-size: 12px; }
  .christmas-post-scene { max-width: 300px; margin: -3px auto -5px; }
  .scene-sticker { right: -15px; bottom: 12px; padding: 6px 10px; font-size: 7px; }
  .scene-sticker strong { font-size: 9px; }
  .story-promise { display: none; }
  .stationery-card { padding: 30px; width: 100%; }
  .stationery-card .card-heading { font-size: 34px; }
  .card-postmark { right: 28px; }
  .text-input, .ornament-name-input { font-size: 16px; }
  .text-input::placeholder, .ornament-name-input::placeholder { font-size: 14px; }
  .form-stack { gap: 18px; }
  .field-label { font-size: 13px; }
  .game-cta-btn { font-size: 13px; min-height: 51px; }
  .christmas-rules { padding: 17px; gap: 13px; }
  .christmas-rules p { font-size: 10px; }
  .rules-sparkle { display: none; }
  .name-story .story-title { font-size: 39px; }
  .tag-showcase { height: 265px; transform: scale(.9); transform-origin: center; margin: -10px 0 5px; }
  .tag-showcase::before { width: 290px; }
  .app-shell { grid-template-columns: 1fr; grid-template-rows: auto; max-width: 680px; padding: 24px 22px 32px; }
  .room-page-heading { grid-column: 1; grid-row: 1; text-align: center; justify-content: center; }
  .room-page-heading h2 { font-size: 34px; }
  .tree-stage-slot { grid-column: 1; grid-row: 2; position: static; }
  .primary-action-slot { grid-column: 1; grid-row: 3; }
  .secondary-cards-slot { grid-column: 1; grid-row: 4; }
  .tree-stage-card { min-height: 700px; }
  .tree-viewport { min-height: 545px; }
  .player-card-illustration { float: right; width: 130px; height: 90px; margin: -8px -10px 5px 5px; }
  .joined-success-title { font-size: 24px; }
  .site-footer { max-width: 620px; padding: 18px 24px 24px; flex-wrap: wrap; justify-content: center; gap: 12px 20px; font-size: 9.5px; }
}
@media (max-width: 480px) {
  .christmas-web-frame { inset: 4px; border-radius: 12px; }
  .christmas-web-frame .frame-corner { width: 30px; height: 30px; }
  .season-ribbon { min-height: 25px; gap: 8px; font-size: 8px; letter-spacing: .025em; padding: 4px 9px; }
  .season-ribbon > span { font-size: 9px; }
  .header-inner { min-height: 58px; padding: 9px 14px; flex-wrap: nowrap; }
  .brand { gap: 8px; }
  .brand-title { font-size: 17px; letter-spacing: -.55px; }
  .brand-badge { height: 34px; width: 31px; border-radius: 9px; }
  .brand-badge svg { width: 18px; }
  .brand-tagline { font-size: 7px; margin-top: 1px; }
  .header-meta .btn { min-height: 38px; font-size: 9px; padding: 6px 8px; }
  .header-meta { flex-wrap: nowrap; justify-content: flex-end; gap: 4px; }
  #logoutAccountBtn { padding: 5px 8px; }
  #openAccountsHeaderBtn { display: none !important; }
  .festive-garland-crown { height: 26px; margin-bottom: -8px; }
  .festive-garland-crown .garland-bough-img { height: 30px; }
  .festive-garland-crown .garland-lights-img { height: 24px; }
  .step-page-shell { padding: 16px 16px 24px; gap: 16px; }
  .story-panel { text-align: left; padding-right: 0; }
  .eyebrow { font-size: 7px; letter-spacing: .115em; }
  .tiny-star { font-size: 12px; margin-right: 3px; }
  .story-title { font-size: 32px; line-height: 1.1; letter-spacing: -1.15px; margin: 7px 0 8px; }
  .story-description { font-size: 11px; line-height: 1.6; margin: 0; max-width: 280px; }
  .christmas-post-scene { display: none; }
  .welcome-layout .story-panel::after { content: '✦'; position: absolute; top: 20px; right: 5px; font-size: 34px; color: #f0ca78; transform: rotate(10deg); }
  .stationery-card { padding: 22px 20px 20px; border-radius: 17px; }
  .stationery-card .card-heading { font-size: 28px; margin-top: 10px; margin-bottom: 8px; }
  .card-intro { margin-bottom: 16px; }
  .card-intro > .eyebrow { font-size: 7px; }
  .stationery-card .card-subtext { font-size: 11px; }
  .card-postmark { width: 96px; height: 70px; right: 8px; top: 42px; border: 0; background: url('/assets/christmas/christmas-post.svg') center / contain no-repeat; color: transparent; opacity: 1; transform: rotate(5deg); }
  .card-postmark span { visibility: hidden; }
  .form-stack { gap: 13px; }
  .field-label { font-size: 12px; }
  .text-input, .ornament-name-input { padding: 10px 12px; min-height: 46px; }
  .text-input::placeholder { font-size: 12px; }
  .game-cta-btn { font-size: 11.5px; min-height: 48px; }
  .login-help { font-size: 9px; margin-top: 14px; }
  .card-bottom-note { font-size: 8px; margin-top: 14px; padding-top: 12px; }
  .christmas-rules { padding: 14px; gap: 12px; }
  .christmas-rules strong { font-size: 12px; }
  .christmas-rules p { font-size: 9px; }
  /* Keep Page 2 compact on 375x812 so primary CTA fits comfortably above the fold */
  .name-story { display: none; }
  .name-workshop-note { display: none; }
  .mobile-tag-preview { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 10px 14px; background: #faf2df; border: 1px dashed #d8c5a0; border-radius: 15px 15px 8px 8px; transform: rotate(-1.5deg); }
  .mobile-tag-preview > span:first-child { font-size: 22px; }
  .mobile-tag-preview > span:last-child { color: #bd9456; margin-left: auto; font-size: 20px; }
  .mobile-tag-preview > div { min-width: 0; }
  .mobile-tag-preview small { display: block; font-size: 6px; letter-spacing: .12em; color: #91754f; }
  .mobile-tag-preview strong { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; color: #b6404c; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
  .suggested-names .quick-name-chip { min-height: 44px; }
  .app-shell { padding: 18px 14px 28px; gap: 18px; }
  .room-page-heading { text-align: left; justify-content: flex-start; }
  .room-page-heading h2 { font-size: 30px; margin-top: 6px; }
  .room-page-heading h2 em { display: block; }
  .tree-stage-card { border-width: 4px; min-height: 600px; }
  .tree-stage-topbar { padding: 38px 16px 0; }
  .stage-room-heading { font-size: 20px; }
  .stage-room-caption { font-size: 9.5px; }
  .tree-viewport { min-height: 455px; }
  .tree-stage-controls { padding: 8px 14px 16px; }
  .rotate-btn { min-height: 44px; padding: 7px 11px; }
  .tree-stage-hint { display: none; }
  .stage-counter-badge { font-size: 9px; padding: 6px 9px; }
  .primary-action-slot .game-board-card { padding: 22px; }
  .player-card-illustration { width: 110px; }
  .joined-success-title { font-size: 22px; }
  .card { padding: 20px; }
  .angel-lock-box > div { gap: 8px !important; }
  .accounts-modal-card { padding: 20px 16px; }
  .single-account-grid { grid-template-columns: 1fr; }
  .accounts-modal-card .card-heading { font-size: 19px !important; }
  .modal-backdrop { padding: 12px; }
  .reveal-modal-card { padding: 25px 20px; }
}
@media (max-width: 359px) {
  .brand-title { font-size: 15px; }
  .brand-tagline { font-size: 6px; }
  .header-inner { padding-left: 12px; padding-right: 12px; }
  .story-title { font-size: 29px; }
  .stationery-card { padding-left: 18px; padding-right: 18px; }
  .card-intro > .eyebrow { max-width: 170px; }
  .card-postmark { right: 9px; width: 79px; height: 60px; top: 56px; }
  .field-annotation { font-size: 8px; }
  .room-page-heading h2 { font-size: 27px; }
  .stage-room-heading { font-size: 18px; }
  .stage-counter-badge { padding: 5px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
