:root {
  --bg:           #070b17;
  --bg-card:      rgba(16, 22, 40, 0.72);
  --bg-card-h:    rgba(255,255,255,0.06);
  --bg-inset:     rgba(0,0,0,0.32);
  --accent:       #4f7fff;
  --accent2:      #7c4fff;
  --gold:         #ffc53d;
  --gold2:        #ff9800;
  --green:        #4ade80;
  --green2:       #22c55e;
  --text1:        #f0f4ff;
  --text2:        rgba(240,244,255,0.82);
  --text3:        rgba(240,244,255,0.48);
  --border:       rgba(255,255,255,0.09);
  --border-h:     rgba(79,127,255,0.5);
  --shadow:       0 4px 28px rgba(0,0,0,0.55);
  --radius:       18px;
  --radius-sm:    10px;
  --t:            0.3s cubic-bezier(.4,0,.2,1);
  --topbar-h:     65px;

  --morning-color:    #ffb74d;
  --lunch-color:      #ff9800;
  --afternoon-color:  #4fc3f7;
  --evening-color:    #ba68c8;
  --night-color:      #9fa8da;
  --late-night-color: #7986cb;
}

/* --- 🌟 ระบบ Scroll Reveal (ตั้งค่าการลอยขึ้น) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px); /* ให้จมลงไป 40px ก่อน */
    transition: all 0.8s ease-out; /* ความนุ่มนวล 0.8 วินาที */
}
.reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important; /* ลอยกลับมาที่เดิม */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sarabun', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text1);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 30px;
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
  background-image:
    radial-gradient(circle at 15% 55%, rgba(79,127,255,0.07) 0%, transparent 50%),
    radial-gradient(circle at 85% 25%, rgba(124,79,255,0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(74,222,128,0.04) 0%, transparent 40%);
}

@media (min-width: 1100px) {
  .main-wrapper { min-width: 1050px; margin: 0 auto; }
}

img { -webkit-user-drag: none; pointer-events: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(79,127,255,0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

#preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: #040810;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pre-logo {
  animation: pre-bounce 1.1s ease-in-out infinite alternate;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.pre-logo:hover { filter: drop-shadow(0 0 24px rgba(255,0,0,0.6)); }
@keyframes pre-bounce { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
.pre-bar-wrap { width: 200px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.pre-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2), #ff4466); border-radius: 4px; animation: pre-load 4s ease forwards; }
@keyframes pre-load { from { width: 0%; } to { width: 100%; } }
.pre-text { font-size: 13px; color: rgba(255,255,255,0.6); letter-spacing: 2px; font-weight: 700; }
.pre-sub { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 1px; margin-top: -6px; }

#pcanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#confetti-canvas { position: fixed; inset: 0; z-index: 9500; pointer-events: none; display: none; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); z-index: 500;
  display: flex; align-items: center; justify-content: space-between; padding: 0 3%;
  background: rgba(7,11,23,0.80);
  border-bottom: 1px solid rgba(79,127,255,0.2);
  box-shadow: 0 2px 40px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.04);
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16px; flex-shrink: 0; cursor: pointer;
  transition: opacity .2s;
  text-decoration: none; color: inherit;
}
.topbar-brand:hover { opacity: 0.85; }
.yt-icon-wrap { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.yt-icon-wrap svg { fill: #ff2020; filter: drop-shadow(0 2px 6px rgba(255,0,0,0.55)); }

.marquee-container { flex: 1; overflow: hidden; white-space: nowrap; margin: 0 20px; display: flex; align-items: center; }
.marquee-content { display: inline-block; animation: marquee 15s linear infinite; color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: 0.5px; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

.topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.live-clock {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text2);
  white-space: nowrap;
}
.clock-divider { color: rgba(255,255,255,0.25); }

.lang-wrapper { display: flex; align-items: center; gap: 5px; }
.lang-switch-container {
  position: relative; display: flex; align-items: center;
  background: rgba(15,25,50,0.9); border-radius: 30px; padding: 4px;
  cursor: pointer; width: 95px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
  border: 1px solid rgba(79,127,255,0.25); user-select: none;
}
.lang-option { flex: 1; text-align: center; font-size: 11px; font-weight: 800; color: rgba(255,255,255,0.4); z-index: 2; transition: color 0.3s; padding: 4px 0; }
.lang-option.active { color: #fff; }
.lang-slider {
  position: absolute; top: 4px; left: 4px;
  width: calc(50% - 4px); height: calc(100% - 8px);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 20px; z-index: 1;
  transition: transform 0.3s cubic-bezier(0.4,0.0,0.2,1);
  box-shadow: 0 2px 8px rgba(59,130,246,0.5);
}
.lang-switch-container.is-en .lang-slider { transform: translateX(100%); }

@media (max-width: 950px) { .marquee-container { display: none !important; } }
@media (max-width: 650px) {
  .topbar { 
    padding: 0 10px; height: 60px; 
    flex-wrap: nowrap !important; justify-content: space-between; align-items: center; 
  }
  .topbar-brand { max-width: 40%; gap: 6px; }
  .yt-icon-wrap { width: 24px; height: 24px; }
  .yt-icon-wrap svg { width: 24px; height: 24px; }
  .topbar-brand span { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  
  .topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .live-clock { display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.2; }
  .clock-divider { display: none; }
  .lang-switch-container { width: 85px; }
}

.main { position: relative; z-index: 1; max-width: 1150px; margin: 0 auto; padding: calc(var(--topbar-h) + 30px) 20px 30px; }

.hero { text-align: center; margin-bottom: 25px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,197,61,0.1); border: 1px solid rgba(255,197,61,0.25);
  border-radius: 20px; padding: 6px 16px; font-size: 13px; font-weight: 700;
  color: var(--gold); margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(255,197,61,0.08);
}
.hero h1 { font-size: clamp(24px, 4.5vw, 40px); font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.hero p { font-size: 16px; }

.text-gradient-animated {
  background: linear-gradient(90deg, #93c5fd, #38bdf8, #818cf8, #93c5fd);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-gradient 4s linear infinite;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.45));
}
@keyframes shine-gradient {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.sub-glow-beautiful {
  color: #cbd5e1 !important;
  font-weight: 400 !important;
  text-shadow: none !important;
}

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 25px; }
@media (max-width: 768px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 12px; text-align: center;
  transition: var(--t); 
}
.stat-card:hover {
  border-color: var(--border-h); transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3); background: rgba(255,255,255,0.06);
}
.stat-icon { font-size: 26px; margin-bottom: 8px; display: block; }
.stat-value { font-size: 24px; font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12px; color: var(--text3); margin-top: 4px; font-weight: 500; }

.stat-card.yt .stat-icon { color: #ff2020; filter: drop-shadow(0 0 8px rgba(255,32,32,0.5)); }
.stat-card.yt .stat-value { color: #ff4444; }
.stat-card.fb .stat-icon { color: #1877f2; filter: drop-shadow(0 0 8px rgba(24,119,242,0.5)); }
.stat-card.fb .stat-value { color: #4d9fff; }
.stat-card.tt .stat-icon { color: #ffffff; filter: drop-shadow(0 0 6px rgba(255,255,255,0.3)); }
.stat-card.tt .stat-value { color: #e0e0e0; }
.stat-card.vw .stat-icon { color: #4ade80; filter: drop-shadow(0 0 8px rgba(74,222,128,0.5)); }
.stat-card.vw .stat-value { color: #6ee7a0; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 992px) { .content-grid { grid-template-columns: 1fr; } .center-card { order: -1; } }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
  transition: var(--t); display: flex; flex-direction: column;
  height: 100%;
}
.card:hover { border-color: rgba(255,255,255,0.15); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.card-title {
  font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 6px;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  color: var(--text2);
}
.card-sub { font-size: 13px; color: var(--text3); text-align: center; line-height: 1.5; margin-bottom: 16px; }

.soc-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px; border-radius: 12px; border: none;
  cursor: pointer; font-size: 14px; font-weight: 700; transition: var(--t);
  margin-bottom: 10px; color: #fff; position: relative; overflow: hidden; text-decoration: none;
}
.soc-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,0.12), transparent); opacity: 0; transition: opacity 0.3s; }
.soc-btn i { font-size: 18px; flex-shrink: 0; }
.soc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.35); filter: brightness(1.08); }
.soc-btn:hover::after { opacity: 1; }
.soc-btn.fb { background: linear-gradient(135deg, #1877f2, #0d5abf); box-shadow: 0 4px 14px rgba(24,119,242,0.3); }
.soc-btn.tt { background: #010101; border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 4px 14px rgba(0,0,0,0.5); }
.soc-btn.yt { background: linear-gradient(135deg, #ff2020, #cc0000); box-shadow: 0 4px 14px rgba(255,32,32,0.35); }
.soc-btn.yt2 { background: linear-gradient(135deg, #991b1b, #7f1d1d); box-shadow: 0 4px 14px rgba(153,27,27,0.3); }

.divider-or {
  display: flex; align-items: center; text-align: center;
  color: var(--text3); font-size: 12px; margin: 14px 0;
}
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-or::before { margin-right: 10px; }
.divider-or::after { margin-left: 10px; }

.side-promo-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; border-radius: 12px;
  border: 1px solid rgba(255,32,32,0.2);
  background: rgba(255,32,32,0.04);
  text-decoration: none; transition: var(--t); margin-bottom: 16px;
}
.side-promo-wrap:hover {
  background: rgba(255,32,32,0.08); border-color: rgba(255,32,32,0.45);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,32,32,0.12);
}
.promo-icon { margin-bottom: 10px; font-size: 2.4rem; display: flex; justify-content: center; }
.promo-icon.yt-color { color: #ff2020; filter: drop-shadow(0 2px 8px rgba(255,0,0,0.5)); }
.promo-title { font-size: 15px; font-weight: 800; color: var(--text1); margin-bottom: 4px; }
.promo-desc { font-size: 12px; color: var(--text3); line-height: 1.4; text-align: center; }

.pulse-anim { animation: pulse-yt 2s ease-in-out infinite; }
@keyframes pulse-yt {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(255,0,0,0.4)); }
  50% { transform: scale(1.18); filter: drop-shadow(0 0 18px rgba(255,0,0,0.9)); }
}
.float-anim { animation: float-icon 3s ease-in-out infinite; }
@keyframes float-icon {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 2px 4px rgba(74,222,128,0.3)); }
  50% { transform: translateY(-7px); filter: drop-shadow(0 6px 12px rgba(74,222,128,0.7)); }
}

.action-btn-row { display: flex; gap: 8px; margin-bottom: 8px; width: 100%; justify-content: center; }
.btn-action-light {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px; border-radius: 12px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #0f172a; font-size: 13px; font-weight: 800;
  border: none; cursor: pointer; transition: var(--t);
  box-shadow: 0 3px 10px rgba(0,0,0,0.25); white-space: nowrap; text-decoration: none;
}
.btn-action-light:hover {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.btn-action-light i { font-size: 14px; }
.btn-action-dark {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(74,222,128,0.12), rgba(74,222,128,0.06));
  color: #e2fef0;
  border: 1px solid rgba(74,222,128,0.35);
  font-size: 13px; font-weight: 700; cursor: pointer; transition: var(--t);
  text-decoration: none; white-space: nowrap; width: 100%; font-family: inherit;
}
.btn-action-dark:hover {
  background: rgba(74,222,128,0.18); transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74,222,128,0.15); border-color: rgba(74,222,128,0.6);
}
.btn-action-dark i { font-size: 14px; color: #4ade80; }

.center-card {
  border: 1px solid rgba(79,127,255,0.4);
  box-shadow: 0 12px 40px rgba(79,127,255,0.12), 0 0 80px rgba(79,127,255,0.04);
  background: rgba(8,14,30,0.8);
  position: relative; overflow: visible;
}
.center-card:hover {
  border-color: rgba(79,127,255,0.6);
  box-shadow: 0 16px 50px rgba(79,127,255,0.2);
}

.free-badge {
  position: absolute; top: -14px; right: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1a0800; font-size: 11.5px; font-weight: 900;
  padding: 5px 14px; border-radius: 20px;
  transform: rotate(8deg);
  box-shadow: 0 4px 16px rgba(255,197,61,0.5);
  pointer-events: none; z-index: 5;
  white-space: nowrap;
}

.center-header { text-align: center; margin-bottom: 10px; margin-top: 8px; }
.center-header-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: #ef4444;
  margin-bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.center-header-eyebrow i.fa-youtube { color: #ff2020; filter: drop-shadow(0 0 3px rgba(255,0,0,0.6)); }
.center-header h2 { font-size: clamp(20px, 3.5vw, 26px); font-weight: 800; line-height: 1.35; margin-bottom: 8px; }
.tagline { font-size: 13px; color: #cbd5e1; line-height: 1.6; }
.tagline strong {
  color: var(--gold) !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 197, 61, 0.3);
}

.qr-wrap { display: flex; justify-content: center; margin: 14px 0; }
.qr-wrap img {
  width: 165px; height: 165px; object-fit: contain;
  border-radius: 14px; padding: 8px; background: #fff;
  border: 3px solid rgba(79,127,255,0.45); transition: var(--t);
  animation: qr-float-blue 4s ease-in-out infinite;
}
@keyframes qr-float-blue {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 16px rgba(79,127,255,0.2); }
  50% { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(79,127,255,0.45); }
}
.qr-wrap img:hover { animation-play-state: paused; transform: translateY(-6px) scale(1.04); }

/* Premium capsule style for payment row */
.pay-box {
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 12px 15px; margin-bottom: 14px;
}
.pay-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 4px 0; }
.pay-row + .pay-row { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 8px; margin-top: 4px; }
.pay-label { color: var(--text3); font-weight: 600; }
.pay-val { color: var(--text1); font-weight: 600; }
.phone-group {
  display: flex; align-items: center; gap: 10px;
  color: var(--gold); font-weight: 800;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 17px; letter-spacing: 1.5px;
  text-shadow: 0 0 12px rgba(255,197,61,0.3);
}
.copy-btn {
  background: rgba(10,15,30,0.9);
  border: 1px solid var(--gold);
  border-radius: 20px;
  color: var(--gold);
  font-size: 11px; font-weight: 800; padding: 5px 14px;
  cursor: pointer; transition: var(--t); font-family: inherit;
  letter-spacing: 0.5px;
}
.copy-btn:hover {
  background: rgba(255,197,61,0.25);
  box-shadow: 0 3px 12px rgba(255,197,61,0.25);
  transform: translateY(-1px);
}
.copy-btn:active { transform: scale(0.96); }

.donate-prog-wrap { margin: 12px 0 10px 0; } 
.donate-prog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; }
.donate-prog-header span:first-child { color: var(--text3); }
.live-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(239,68,68,0.18); border: 1px solid rgba(239,68,68,0.45);
  border-radius: 4px; padding: 2px 7px; font-size: 10px; font-weight: 800; color: #ef4444;
}
.prog-track { background: rgba(255,255,255,0.08); border-radius: 6px; height: 10px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.4); }
.prog-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #ef4444); border-radius: 6px; width: 0%; transition: width 1.6s cubic-bezier(.4,0,.2,1); }
.prog-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text3); margin-top: 6px; }
.prog-labels #donate-current { color: var(--gold); font-weight: 800; }

.dl-btn-wrapper { margin-top: 6px; } 
.dl-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; padding: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: 14px; cursor: pointer;
  font-size: 16px; font-weight: 800; transition: var(--t);
  box-shadow: 0 6px 24px rgba(79,127,255,0.35); margin-bottom: 8px; font-family: inherit;
  position: relative; overflow: hidden;
}
.dl-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}
.dl-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(79,127,255,0.5); filter: brightness(1.08); }
.dl-btn.counting { background: linear-gradient(135deg, #1e293b, #334155); color: #94a3b8; box-shadow: none; cursor: not-allowed; pointer-events: none; filter: none; transform: none; }
.dl-btn.ready { animation: pulse-green 2s infinite; }
@keyframes pulse-green {
  0% { background: linear-gradient(135deg,#4ade80,#22c55e); box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  70% { background: linear-gradient(135deg,#4ade80,#22c55e); box-shadow: 0 0 0 12px rgba(74,222,128,0); }
  100% { background: linear-gradient(135deg,#4ade80,#22c55e); box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
.dl-btn .dl-sub { font-size: 11.5px; font-weight: 400; opacity: 0.88; margin-top: 4px; }
.dl-icon { font-size: 20px; margin-bottom: 4px; }
.dl-count-btn {
  padding: 10px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; text-align: center; font-size: 13px; color: var(--text3);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.25);
}
.dl-count-btn strong { color: var(--accent); font-size: 17px; font-weight: 800; margin: 0 4px; }

.right-card { border: none; background: transparent; padding: 0; gap: 16px; }
.right-sub-box {
  background: rgba(15, 20, 38, 0.88);
  border: 1px solid rgba(239,68,68,0.35);
  border-radius: 16px; padding: 20px; text-align: center;
}
.right-sub-box:hover { border-color: rgba(239,68,68,0.55); }
.yt-qr-wrap { display: flex; justify-content: center; margin: 0 0 15px 0; }
.yt-qr-wrap img {
  width: 148px; height: 148px; object-fit: contain;
  border-radius: 12px; padding: 8px; background: #fff;
  border: 3px solid rgba(255,50,50,0.45);
  animation: qr-float-red 4s ease-in-out infinite; animation-delay: 1s; transition: var(--t);
}
@keyframes qr-float-red {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 16px rgba(255,50,50,0.2); }
  50% { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(255,50,50,0.45); }
}
.yt-qr-wrap img:hover { animation-play-state: paused; transform: translateY(-6px) scale(1.04); }

.tutorial-wrap {
  /* 🚀 เพิ่ม 3 บรรทัดนี้เข้าไปครับ */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(15,20,38,0.8);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 16px; padding: 15px; text-align: center;
  transition: var(--t); flex-shrink: 0;
}
.tutorial-wrap:hover { border-color: rgba(74,222,128,0.5); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(74,222,128,0.1); }
.tutorial-label { font-size: 12px; color: var(--text3); margin-bottom: 10px; }
.vid-thumb {
  display: block; position: relative; border-radius: 10px;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.1); transition: var(--t);
}
.vid-thumb img { width: 100%; display: block; transition: var(--t); object-fit: cover; }
.vid-thumb:hover img { transform: scale(1.05); }
.vid-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.52);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; color: #fff; pointer-events: none;
}

.desktop-sidebar {
  position: fixed; top: 0; width: 240px;
  display: flex; flex-direction: column; gap: 14px; z-index: 90;
  padding-top: calc(var(--topbar-h) + 30px);
}
.sidebar-left { left: calc(50% - 575px - 260px); }
.sidebar-right { right: calc(50% - 575px - 260px); }

.sidebar-widget {
  background: rgba(12,18,36,0.96); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: var(--t);
}
.sidebar-widget:hover { border-color: rgba(79,127,255,0.35); }
.sidebar-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }

.scrollable-widget {
  overflow-y: auto; padding-right: 4px; margin-right: -2px;
  display: flex; flex-direction: column; gap: 6px;
}

/* ส่วนของ ระบบพร้อมใช้งาน: ขยายความสูงเพื่อให้แสดงผลครบ 5 เว็บพอดีก่อนขึ้น Scrollbar */
#desktop-apps-container, #mobile-apps-container {
  max-height: 440px !important; 
}

/* ส่วนของ ผู้สนับสนุน: ขีดจำกัด 7 คนให้เลื่อน Scrollbar สวยงาม */
#desktop-donors-container, #mobile-donors-container {
  max-height: 250px !important; 
  overflow-y: auto !important;
}
.scrollable-widget::-webkit-scrollbar { width: 4px; }
.scrollable-widget::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 4px; }

.lb-item {
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.05);
  padding: 7px 10px; border-radius: 8px;
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--t); min-height: 38px;
}
.lb-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); transform: translateX(2px); }
.lb-rank { font-size: 15px; margin-right: 6px; flex-shrink: 0; }
.lb-name { font-size: 12px; color: #fff; }
.lb-amt { font-size: 12px; font-weight: 800; color: var(--gold); }

.clip-card {
  display: block; position: relative; border-radius: 8px;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; text-decoration: none;
}
.clip-card img { width: 100%; display: block; object-fit: cover; }
.clip-card:hover { border-color: #ff4444; transform: scale(1.02); }
.clip-title {
  font-size: 11px; padding: 6px; color: #fff; text-align: center;
  background: rgba(0,0,0,0.8); position: absolute; bottom: 0; width: 100%;
}

.app-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; padding: 10px; transition: 0.3s; }
.app-item:hover { border-color: var(--green); background: rgba(74,222,128,0.05); }
.app-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.app-desc { font-size: 11px; color: var(--text3); margin-bottom: 8px; }
.app-btn {
  display: block; text-align: center; background: rgba(255,255,255,0.07);
  color: #fff; border-radius: 6px; padding: 5px; font-size: 11px; font-weight: 700;
  transition: 0.3s; text-decoration: none;
}
.app-item:hover .app-btn { background: var(--accent); }

@media (max-width: 1550px) { .desktop-sidebar { display: none !important; } }
.mobile-only-section { display: none; }
@media (max-width: 1550px) { .mobile-only-section { display: block; margin-top: 20px; } }

.footer { text-align: center; padding: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text3); font-size: 13px; margin-top: 10px; }

#scroll-top-btn {
  position: fixed; bottom: 28px; right: 24px; z-index: 800;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 4px 20px rgba(79,127,255,0.5);
  transition: opacity .3s, transform .3s;
  opacity: 0; transform: translateY(12px); pointer-events: none;
}
#scroll-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#scroll-top-btn:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 8px 28px rgba(79,127,255,0.65); }

#toast-container {
  position: fixed; bottom: 85px; left: 50%; transform: translateX(-50%);
  z-index: 9000; display: flex; flex-direction: column-reverse; gap: 8px;
  align-items: center; pointer-events: none;
}
.toast {
  background: rgba(12,18,36,0.96);
  border: 1px solid rgba(79,127,255,0.3); border-radius: 14px;
  padding: 12px 20px; font-size: 13px; color: var(--text1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: t-slide-in .4s cubic-bezier(0.34,1.56,0.64,1) forwards;
  
  display: flex; align-items: center; justify-content: flex-start;
  min-width: 260px; max-width: 90vw; gap: 12px; white-space: nowrap;
}
.toast-icon-wrap { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; font-size: 16px; }
.toast-content { flex: 1; text-align: center; font-weight: 600; }

.toast.out { animation: t-slide-out .35s ease forwards; }
@keyframes t-slide-in {
  from { opacity: 0; transform: translateY(18px) scale(0.88); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes t-slide-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(12px) scale(0.9); }
}

#sub-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.88); z-index: 9999; justify-content: center; align-items: center; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- ระบบไอคอนเกมมิ่ง 3D ลอยซ้ายขวา --- */
.gaming-3d-decor {
    position: absolute;
    top: 35%; /* ปรับระดับ สูง-ต่ำ จากขอบบนของหัวเว็บ */
    font-size: 5rem; /* ขนาดของไอคอน (ปรับใหญ่เล็กได้ตามชอบ) */
    z-index: 1; /* ให้อยู่เลเยอร์หลังข้อความหลักเพื่อไม่ให้บังตัวหนังสือ */
    opacity: 0.3; /* ปรับให้โปร่งแสงนิดๆ กำลังสวย ไม่แย่งซีนข้อความหลัก */
    animation: gamingFloat 4s ease-in-out infinite;
    pointer-events: none; /* ตั้งค่าไม่ให้เมาส์คลิกโดน */
}

/* ฝั่งซ้าย: ตั้งค่าสีฟ้าเรืองแสง + ดันเงาไล่ระดับให้หนาแบบ 3D */
.decor-left {
    left: 6%; /* ระยะห่างจากขอบซ้าย */
    color: #00e5ff; 
    text-shadow: 0 4px 0 #00b2cc, 
                 0 8px 0 #008399, 
                 0 12px 20px rgba(0, 229, 255, 0.4);
}

/* ฝั่งขวา: ตั้งค่าสีชมพูนีออน + ดันเงาไล่ระดับให้หนาแบบ 3D */
.decor-right {
    right: 6%; /* ระยะห่างจากขอบขวา */
    color: #ff2a75;
    text-shadow: 0 4px 0 #cc1f5d, 
                 0 8px 0 #991444, 
                 0 12px 20px rgba(255, 42, 117, 0.4);
    animation-delay: 2s; /* สั่งให้ลอยสลับจังหวะขึ้นลงกับฝั่งซ้าย */
}

/* แอนิเมชันสั่งให้ไอคอนเอียงและลอยขึ้นลงนุ่มๆ เหมือนในเกม */
@keyframes gamingFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* 📱 หมวดปรับขนาดสำหรับมือถือและแท็บเล็ต (แทนที่การซ่อน) */
@media (max-width: 1100px) {
    .gaming-3d-decor {
        font-size: 2.5rem; /* ลดขนาดไอคอนลงครึ่งนึง */
        top: 15%; /* ดันขึ้นไปข้างบนนิดนึง ให้พ้นจากข้อความ "ศูนย์รวมไฟล์..." */
        opacity: 0.25; /* ปรับให้จางลงอีกนิด จะได้เป็นแค่พื้นหลังสวยๆ ไม่กวนสายตา */
    }
    .decor-left {
        left: 3%; /* ให้ชิดขอบซ้าย */
    }
    .decor-right {
        right: 3%; /* ให้ชิดขอบขวา */
    }
}

/* --- เมาส์สไตล์ Sci-Fi Arrow (เรียบหรู ดูแพง คุ้นมือ) --- */
@media (hover: hover) and (pointer: fine) {
    /* 1. เมาส์ปกติ: ทรงลูกศรโฉบเฉี่ยว สีดำขอบฟ้าเรืองแสง */
    body, .swal2-container, .swal2-container * {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-8 2-3 8z' fill='%23070b17' stroke='%2300e5ff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important;
    }
    
    /* 2. เวลาชี้ปุ่มกด หรือลิงก์: เปลี่ยนเป็นลูกศรสีดำขอบทอง (เรืองแสงขึ้น) */
    a, button, .dl-btn, .soc-btn, .lang-switch-container, .app-rating, .app-rating *, .swal2-confirm, .swal2-cancel, .swal2-close, .swal-star {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-8 2-3 8z' fill='%23070b17' stroke='%23ffc53d' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, pointer !important;
    }
    
    /* 3. เวลาชี้ตรงเกมส์ฝึกเล็งเป้า: ใช้เป้าเล็งแบบคลาสสิกของคอมพิวเตอร์ */
    #aim-arena {
        cursor: crosshair !important;
    }
}

/* --- 👑 ดันพื้นที่กล่องให้มงกุฎไม่โดนตัด --- */
.scrollable-widget {
    padding-top: 15px; /* ดันลงมาเว้นที่ให้หัวมงกุฎ */
    padding-left: 10px; /* ดันขวาเว้นที่ให้ขอบมงกุฎ */
}

/* ไฮไลท์ผู้สนับสนุนอันดับ 1 */
.scrollable-widget .lb-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 197, 61, 0.2), rgba(255, 152, 0, 0.05));
    border: 1px solid var(--gold, #ffc53d);
    box-shadow: 0 4px 15px rgba(255, 197, 61, 0.25);
    position: relative;
    box-sizing: border-box; 
    display: flex; 
    justify-content: space-between;
    margin-bottom: 8px;
    width: calc(100% - 2px); 
}

/* มงกุฎอันดับ 1 */
.scrollable-widget .lb-item:nth-child(1)::before {
    content: '👑';
    position: absolute;
    top: -16px;
    left: -12px;
    font-size: 18px;
    transform: rotate(-15deg);
    z-index: 99;
}

/* อันดับ 2: สีเงิน (Silver) */
.scrollable-widget .lb-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.15), rgba(148, 163, 184, 0.05));
    border: 1px solid #cbd5e1;
    margin-bottom: 6px;
}
.scrollable-widget .lb-item:nth-child(2) .lb-rank { color: #cbd5e1; }

/* อันดับ 3: สีทองแดง (Bronze) */
.scrollable-widget .lb-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), rgba(180, 83, 9, 0.05));
    border: 1px solid #d97706;
    margin-bottom: 6px;
}
.scrollable-widget .lb-item:nth-child(3) .lb-rank { color: #d97706; }

/* 🌟 สไตล์กล่องข้อความและดาว */
.swal-stars { display: flex; justify-content: center; gap: 8px; font-size: 32px; color: #333; margin: 15px 0; }
.swal-star { transition: color 0.2s, transform 0.2s; cursor: pointer; }
.swal-star.active { color: #ffc53d; filter: drop-shadow(0 0 5px rgba(255,197,61,0.5)); }
.swal-star:hover { transform: scale(1.2); }
.swal-rating-text { font-size: 14px; color: #00e5ff; font-weight: bold; margin-bottom: 10px; }
.req-item { background: rgba(255,255,255,0.05); border-left: 3px solid var(--accent); border-radius: 6px; padding: 10px; margin-bottom: 8px; text-align: left; }
.req-item .req-name { font-weight: 700; font-size: 12px; color: var(--gold); }
.req-item .req-msg { font-size: 11px; color: #fff; margin-top: 4px; line-height: 1.4; }
.req-empty { text-align: center; color: var(--text3); font-size: 11px; padding: 20px 0; }

/* --- Live Notifications Toast --- */
.live-toast {
    position: fixed;
    bottom: -100px; /* ซ่อนไว้ด้านล่างจอตอนเริ่มต้น */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid #4ade80; /* กรอบสีเขียวนีออน */
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* เอฟเฟกต์เด้งดึ๋ง */
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none; /* ป้องกันไม่ให้ไปบังการคลิกปุ่มอื่นๆ */
    width: max-content;
    max-width: 90vw; /* ป้องกันไม่ให้ล้นจอในมือถือ */
    text-align: center;
}

.live-toast.show {
    bottom: 25px; /* เลื่อนลอยขึ้นมาโชว์ */
}

/* Seasonal card maker promotion */
.seasonal-card-promo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 19px 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.34);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(0,229,255,.15), rgba(124,58,237,.16) 52%, rgba(255,64,129,.13));
  box-shadow: 0 12px 35px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.08);
  color: var(--text);
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* Interactive mini studio */
.mini-studio{margin:6px 0 22px;padding:20px;border:1px solid rgba(255,255,255,.08);border-radius:22px;background:linear-gradient(150deg,rgba(15,23,42,.94),rgba(17,24,39,.9));box-shadow:0 20px 55px rgba(0,0,0,.25);overflow:hidden}.studio-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:15px}.studio-kicker{display:inline-flex;align-items:center;gap:7px;color:#67e8f9;font-size:10px;font-weight:800;letter-spacing:.13em}.studio-kicker i{font-size:6px;color:#4ade80;filter:drop-shadow(0 0 6px #4ade80)}.studio-heading h2{margin:4px 0 0;font-size:20px}.studio-heading p{margin:2px 0 0;color:var(--text3);font-size:11px}.studio-open{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid rgba(74,222,128,.2);border-radius:99px;background:rgba(74,222,128,.08);color:#86efac;font-size:10px}.studio-open>span:first-child{width:6px;height:6px;border-radius:50%;background:#4ade80;box-shadow:0 0 8px #4ade80}.office-scene{position:relative;height:270px;overflow:hidden;border:1px solid rgba(255,255,255,.07);border-radius:17px;background:linear-gradient(#111c34 0 71%,#192134 71%);isolation:isolate}.office-backdrop{position:absolute;inset:0}.office-window{position:absolute;left:5%;top:22px;width:142px;height:82px;overflow:hidden;border:7px solid #283550;border-radius:8px;background:linear-gradient(#18254a,#283968)}.office-window:before,.office-window:after{content:"";position:absolute;background:#344463;z-index:2}.office-window:before{left:50%;top:0;width:4px;height:100%}.office-window:after{top:50%;left:0;width:100%;height:4px}.office-window i{position:absolute;width:2px;height:2px;border-radius:50%;background:#fff;box-shadow:25px 12px #fff,70px 20px #c4b5fd,105px 8px #fff}.office-window i:nth-of-type(2){left:10px;top:44px}.office-moon{position:absolute;right:17px;top:10px;width:24px;height:24px;border-radius:50%;background:#fde68a;box-shadow:0 0 18px rgba(253,230,138,.45)}.office-sign{position:absolute;left:50%;top:22px;transform:translateX(-50%);padding:9px 18px;border:1px solid rgba(103,232,249,.28);border-radius:10px;background:#111827;color:#67e8f9;font:800 12px/1.1 sans-serif;text-align:center;letter-spacing:.12em;box-shadow:0 0 22px rgba(34,211,238,.1)}.office-sign small{color:#a78bfa;font-size:6px}.office-shelf{position:absolute;right:5%;top:28px;width:115px;height:9px;border-radius:5px;background:#374151;box-shadow:0 41px #374151}.office-shelf i{position:relative;display:inline-block;width:12px;height:27px;margin:-25px 4px 0;background:#fb7185;border-radius:2px}.office-shelf i:nth-child(2){height:22px;background:#60a5fa}.office-shelf i:nth-child(3){height:25px;background:#fbbf24}.office-plant{position:absolute;right:8%;bottom:43px;width:40px;height:75px}.office-plant span{position:absolute;left:17px;bottom:25px;width:16px;height:34px;border-radius:100% 0;background:#34d399;transform:rotate(-25deg);transform-origin:bottom}.office-plant span:nth-child(2){transform:rotate(28deg) scale(.85);background:#4ade80}.office-plant span:nth-child(3){transform:translateY(-14px) scale(.7);background:#22c55e}.office-plant b{position:absolute;bottom:0;width:38px;height:29px;border-radius:4px 4px 12px 12px;background:#8b5cf6}.work-desk{position:absolute;bottom:34px;width:170px;height:100px}.desk-left{left:9%}.desk-right{right:17%}.monitor{position:absolute;left:31px;top:0;width:70px;height:48px;border:5px solid #2d374e;border-radius:6px;background:#101827;box-shadow:0 0 17px rgba(59,130,246,.18)}.monitor:after{content:"";position:absolute;left:28px;bottom:-17px;width:6px;height:14px;background:#475569}.monitor span{display:grid;height:100%;place-items:center;color:#67e8f9;font:700 11px monospace}.video-monitor span{color:#fb7185;font-size:15px}.keyboard{position:absolute;left:30px;top:57px;width:76px;height:6px;border-radius:4px;background:#64748b}.desk-top{position:absolute;left:0;top:67px;width:150px;height:8px;border-radius:4px;background:#7c5c49}.desk-leg{position:absolute;left:12px;top:72px;width:8px;height:38px;background:#4b3b35;box-shadow:118px 0 #4b3b35}.tiny-worker{position:absolute;right:-1px;top:25px;width:45px;height:68px}.worker-head{position:absolute;left:9px;width:29px;height:29px;border-radius:45% 45% 48% 48%;background:#f2c6a0;border:2px solid #172033}.worker-head:before{content:"";position:absolute;left:-2px;top:-6px;width:31px;height:14px;border-radius:70% 70% 20% 20%;background:#20283c}.worker-head i:before,.worker-head i:after{content:"";position:absolute;top:13px;width:3px;height:3px;border-radius:50%;background:#1f2937}.worker-head i:before{left:7px}.worker-head i:after{right:7px}.worker-body{position:absolute;left:5px;top:27px;width:38px;height:35px;border-radius:9px 9px 3px 3px;background:#2563eb}.worker-video .worker-body{background:#db2777}.worker-label{position:absolute;right:-23px;top:91px;color:#94a3b8;font-size:8px;white-space:nowrap}.guide-character{position:absolute;z-index:7;left:45%;bottom:25px;width:92px;height:142px;padding:0;border:0;background:transparent;color:#fff;cursor:pointer;transition:left .75s cubic-bezier(.22,.8,.25,1),transform .2s}.guide-character:hover{transform:translateY(-4px)}.guide-shadow{position:absolute;left:16px;bottom:4px;width:62px;height:12px;border-radius:50%;background:rgba(0,0,0,.3);filter:blur(2px)}.guide-body{position:absolute;inset:0}.guide-head{position:absolute;left:24px;top:7px;width:49px;height:51px;border:3px solid #182033;border-radius:45% 45% 48% 48%;background:#efbf99;z-index:3}.guide-hair{position:absolute;left:-4px;top:-10px;width:53px;height:25px;border-radius:70% 60% 20% 20%;background:#172033;transform:rotate(-4deg)}.guide-hair:after{content:"";position:absolute;right:-3px;top:14px;border:8px solid transparent;border-top-color:#172033;transform:rotate(-25deg)}.guide-face b{position:absolute;top:26px;width:5px;height:6px;border-radius:50%;background:#172033;animation:studioBlink 4s infinite}.guide-face b:first-child{left:12px}.guide-face b:nth-child(2){right:12px}.guide-face em{position:absolute;left:20px;top:37px;width:9px;height:4px;border-bottom:2px solid #a34e4e;border-radius:50%}.guide-headphone{position:absolute;inset:4px -7px 5px;border:4px solid #67e8f9;border-bottom-color:transparent;border-radius:50%}.guide-shirt{position:absolute;left:24px;top:54px;width:50px;height:51px;border:3px solid #182033;border-radius:14px 14px 8px 8px;background:linear-gradient(145deg,#7c3aed,#4f46e5);z-index:2}.guide-shirt i{display:grid;place-items:center;width:100%;height:100%;color:#fff;font:900 20px sans-serif}.guide-arm{position:absolute;top:61px;width:14px;height:48px;border:3px solid #182033;border-radius:9px;background:#efbf99;z-index:1}.arm-left{left:16px;transform:rotate(10deg)}.arm-right{right:11px;transform:rotate(-30deg);transform-origin:top;animation:studioWave 2.5s ease-in-out infinite}.guide-leg{position:absolute;top:99px;width:17px;height:35px;border:3px solid #182033;border-radius:0 0 8px 8px;background:#26334c}.leg-left{left:30px}.leg-right{left:51px}.guide-name{position:absolute;left:50%;bottom:-1px;transform:translateX(-50%);padding:3px 8px;border-radius:99px;background:#111827;border:1px solid rgba(103,232,249,.3);color:#a5f3fc;font-size:8px;white-space:nowrap}.guide-character.walking{left:calc(100% - 152px);animation:studioWalk .18s linear 5}.guide-character.walking .arm-right{animation:none}.latest-site-door{position:absolute;z-index:6;right:18px;bottom:31px;width:105px;height:125px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid rgba(103,232,249,.48);border-radius:14px 14px 4px 4px;background:linear-gradient(160deg,#233256,#111827);color:#fff;box-shadow:inset 0 0 25px rgba(103,232,249,.08),0 0 22px rgba(103,232,249,.08);transition:.25s}.latest-site-door:hover,.latest-site-door.is-target{border-color:#67e8f9;box-shadow:inset 0 0 28px rgba(103,232,249,.14),0 0 30px rgba(103,232,249,.28);transform:translateY(-3px)}.latest-site-door i{font-size:27px;color:#fbbf24;margin-bottom:8px}.latest-site-door strong{font-size:11px}.latest-site-door small{color:#67e8f9;font-size:8px}.door-new{position:absolute;right:-5px;top:-7px;padding:3px 6px;border-radius:99px;background:#fb7185;font:bold 7px sans-serif;letter-spacing:.1em;box-shadow:0 4px 12px rgba(251,113,133,.35)}.office-floor{position:absolute;z-index:-1;left:0;right:0;bottom:0;height:78px;background:linear-gradient(90deg,transparent 49.5%,rgba(255,255,255,.035) 50%,transparent 50.5%),linear-gradient(#273249,#182033);background-size:80px 100%,100% 100%;transform:perspective(220px) rotateX(28deg);transform-origin:bottom}.studio-chat{position:absolute;z-index:12;left:calc(45% - 120px);bottom:139px;width:290px;padding:14px;border:1px solid rgba(103,232,249,.35);border-radius:16px;background:rgba(11,17,30,.96);box-shadow:0 18px 45px rgba(0,0,0,.42);backdrop-filter:blur(12px);opacity:0;visibility:hidden;transform:translateY(8px) scale(.97);transition:.22s}.studio-chat.open{opacity:1;visibility:visible;transform:none}.studio-chat:after{content:"";position:absolute;left:50%;bottom:-8px;width:14px;height:14px;border-right:1px solid rgba(103,232,249,.35);border-bottom:1px solid rgba(103,232,249,.35);background:#0b111e;transform:rotate(45deg)}.chat-close{position:absolute;right:7px;top:5px;border:0;background:transparent;color:#94a3b8;font-size:20px;cursor:pointer}.chat-avatar{float:left;width:34px;height:34px;display:grid;place-items:center;margin-right:9px;border-radius:11px;background:linear-gradient(135deg,#06b6d4,#7c3aed);font:bold 16px sans-serif}.chat-copy{display:flex;flex-direction:column;padding-right:16px}.chat-copy strong{font-size:11px}.chat-copy span{color:#94a3b8;font-size:9px}.chat-actions{clear:both;display:grid;gap:6px;padding-top:11px}.chat-action{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:rgba(255,255,255,.045);color:#dbeafe;text-align:left;font-family:inherit;font-size:10px;cursor:pointer;transition:.2s}.chat-action:hover{border-color:rgba(103,232,249,.45);background:rgba(103,232,249,.09);transform:translateX(2px)}.chat-action.latest{color:#fde68a}.chat-action i{width:14px;text-align:center}.office-scene.route-active:after{content:"····················";position:absolute;left:50%;right:110px;bottom:27px;color:#67e8f9;font:bold 14px monospace;letter-spacing:3px;opacity:.7;animation:routePulse .6s infinite alternate}@keyframes studioBlink{0%,46%,50%,100%{transform:scaleY(1)}48%{transform:scaleY(.12)}}@keyframes studioWave{0%,100%{transform:rotate(-30deg)}50%{transform:rotate(-58deg)}}@keyframes studioWalk{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes routePulse{to{opacity:.2}}
@media(max-width:760px){.mini-studio{padding:14px}.studio-heading{align-items:center}.studio-open{display:none}.office-scene{height:244px}.office-window{left:4%;width:100px}.office-sign{left:54%;font-size:9px}.desk-left{left:1%;transform:scale(.78);transform-origin:left bottom}.desk-right{display:none}.office-shelf,.office-plant{display:none}.guide-character{left:40%;transform:scale(.88);transform-origin:bottom}.guide-character:hover{transform:scale(.88) translateY(-3px)}.guide-character.walking{left:calc(100% - 128px);transform:scale(.88)}.latest-site-door{right:11px;width:91px}.studio-chat{left:8px;right:8px;bottom:141px;width:auto}.studio-chat:after{left:52%}.office-scene.route-active:after{left:48%;right:88px;font-size:10px;overflow:hidden;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.guide-face b,.arm-right,.guide-character.walking,.office-scene.route-active:after{animation:none!important}.guide-character{transition:none}}
.supporter-wall{display:flex;align-items:center;gap:14px;margin-top:13px;padding:12px 14px;border:1px solid rgba(251,113,133,.16);border-radius:14px;background:linear-gradient(90deg,rgba(251,113,133,.07),rgba(124,58,237,.06))}.supporter-wall-title{display:flex;align-items:center;gap:9px;min-width:220px}.supporter-wall-title>span:last-child{display:flex;flex-direction:column}.supporter-wall-title strong{font-size:11px}.supporter-wall-title small{color:var(--text3);font-size:8px}.supporter-heart{width:31px;height:31px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:rgba(251,113,133,.14);color:#fb7185;font-size:15px;animation:heartBeat 2.2s ease-in-out infinite}.studio-supporters{display:flex;align-items:center;gap:6px;flex:1;min-width:0;overflow:hidden}.studio-supporter{display:inline-flex;align-items:center;gap:5px;max-width:145px;padding:5px 8px;border:1px solid rgba(255,255,255,.08);border-radius:99px;background:rgba(255,255,255,.045);font-size:9px;white-space:nowrap}.studio-supporter i{color:#fbbf24}.studio-supporter b{overflow:hidden;text-overflow:ellipsis}.studio-supporter em{color:#f9a8d4;font-style:normal}.supporter-empty{color:var(--text3);font-size:9px}.supporter-join{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;padding:8px 11px;border:1px solid rgba(251,113,133,.3);border-radius:99px;background:rgba(251,113,133,.1);color:#fecdd3;font-family:inherit;font-size:9px;font-weight:800;cursor:pointer;transition:.2s}.supporter-join:hover{background:#fb7185;color:#fff;transform:translateY(-2px)}.support-value-box{margin:12px 0 4px;padding:12px;border:1px solid rgba(255,64,129,.18);border-radius:12px;background:linear-gradient(145deg,rgba(255,64,129,.07),rgba(124,58,237,.06));text-align:left}.support-value-head{display:flex;align-items:center;gap:7px;margin-bottom:9px;color:#f9a8d4;font-size:11px;font-weight:800}.support-value-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.support-value-grid span{display:flex;align-items:center;gap:6px;padding:7px;border-radius:8px;background:rgba(255,255,255,.035)}.support-value-grid i{color:#fbbf24;font-size:10px}.support-value-grid b{font-size:8px;line-height:1.35}.support-value-box>small{display:block;margin-top:7px;color:var(--text3);font-size:7px;text-align:center}@keyframes heartBeat{0%,100%{transform:scale(1)}10%{transform:scale(1.12)}20%{transform:scale(1)}}
@media(max-width:760px){.supporter-wall{align-items:flex-start;flex-wrap:wrap}.supporter-wall-title{min-width:100%}.studio-supporters{order:3;flex-basis:100%;overflow-x:auto;padding-bottom:2px}.supporter-join{margin-left:auto}.support-value-grid{grid-template-columns:1fr}.support-value-grid b{font-size:9px}}

/* Performance and touch refinements */
html{overflow-x:hidden}body{overflow-x:hidden;-webkit-tap-highlight-color:transparent}.mini-studio,.card,.tutorial-wrap{contain:layout paint}.guide-character.walking{will-change:left,transform}.content-grid,.mobile-only-section,footer{content-visibility:auto;contain-intrinsic-size:1px 700px}img{max-width:100%}.chat-action,.supporter-join,.copy-btn,.btn-action-light,.btn-action-dark{touch-action:manipulation}
@media(max-width:650px){#pcanvas{opacity:.45}.topbar{backdrop-filter:blur(8px)}.studio-chat{backdrop-filter:none}.chat-action{min-height:44px;font-size:11px}.supporter-join{min-height:40px}.copy-btn{min-height:36px}.btn-action-light,.btn-action-dark{min-height:44px}.seasonal-card-promo{min-height:76px}.mini-studio{box-shadow:0 12px 30px rgba(0,0,0,.2)}.card:hover,.tutorial-wrap:hover,.soc-btn:hover,.dl-btn:hover{transform:none}.gaming-3d-decor{animation-duration:6s}}
@media(max-width:390px){.studio-heading h2{font-size:17px}.studio-heading p{font-size:10px}.office-sign{display:none}.desk-left{left:-7%;transform:scale(.7)}.guide-character{left:36%}.guide-character.walking{left:calc(100% - 119px)}.latest-site-door{right:7px;width:82px}.seasonal-promo-desc{display:none}.seasonal-promo-title{font-size:13px}.supporter-wall{padding:10px}.supporter-wall-title small{max-width:245px}.support-value-box{padding:9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}#pcanvas{display:none!important}}

/* Songsak Quick Hub */
.quick-hub-trigger{--scroll-progress:0%;position:fixed;z-index:890;left:22px;bottom:24px;display:flex;align-items:center;gap:8px;height:48px;padding:4px 12px 4px 5px;border:1px solid rgba(103,232,249,.28);border-radius:999px;background:rgba(11,17,30,.92);color:#fff;box-shadow:0 10px 32px rgba(0,0,0,.36);backdrop-filter:blur(12px);font-family:inherit;cursor:pointer;transition:.22s}.quick-hub-trigger:hover{transform:translateY(-3px);border-color:#67e8f9}.quick-hub-trigger>span{position:relative;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#67e8f9 var(--scroll-progress),rgba(255,255,255,.12) 0);color:#fff}.quick-hub-trigger>span:after{content:"";position:absolute;inset:3px;border-radius:50%;background:linear-gradient(135deg,#0891b2,#7c3aed)}.quick-hub-trigger i{position:relative;z-index:1}.quick-hub-trigger b{font-size:11px}.quick-hub-trigger kbd{padding:2px 5px;border:1px solid rgba(255,255,255,.13);border-radius:5px;background:rgba(255,255,255,.06);color:#94a3b8;font:8px sans-serif}.quick-hub-backdrop{position:fixed;z-index:9700;inset:0;background:rgba(2,6,15,.68);backdrop-filter:blur(3px);opacity:0;visibility:hidden;transition:.2s}.quick-hub-backdrop.open{opacity:1;visibility:visible}.quick-hub{position:fixed;z-index:9701;left:50%;top:50%;width:min(520px,calc(100% - 28px));padding:17px;border:1px solid rgba(103,232,249,.25);border-radius:22px;background:linear-gradient(150deg,rgba(17,24,39,.99),rgba(10,15,27,.99));box-shadow:0 30px 90px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.03);opacity:0;visibility:hidden;transform:translate(-50%,-46%) scale(.96);transition:.22s}.quick-hub.open{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1)}.quick-hub-head{display:flex;align-items:center;gap:10px;padding:2px 2px 13px}.quick-hub-logo{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,#06b6d4,#7c3aed);font:bold 17px sans-serif}.quick-hub-head>div:nth-child(2){display:flex;flex:1;flex-direction:column}.quick-hub-head strong{font-size:14px}.quick-hub-head small{color:var(--text3);font-size:9px}.quick-hub-head>button{width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.05);color:#94a3b8;font-size:21px;cursor:pointer}.quick-hub-status{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding:8px 10px;border:1px solid rgba(74,222,128,.12);border-radius:10px;background:rgba(74,222,128,.05)}.quick-hub-status span{display:flex;align-items:center;gap:6px}.quick-hub-status i{width:6px;height:6px;border-radius:50%;background:#4ade80;box-shadow:0 0 7px #4ade80}.quick-hub-status b{color:#86efac;font-size:9px}.quick-hub-status small{color:#64748b;font-size:8px}.quick-hub-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.quick-hub-grid>button{position:relative;display:flex;align-items:center;gap:10px;min-height:68px;padding:11px;border:1px solid rgba(255,255,255,.07);border-radius:13px;background:rgba(255,255,255,.035);color:#fff;text-align:left;font-family:inherit;cursor:pointer;transition:.18s}.quick-hub-grid>button:hover{transform:translateY(-2px);border-color:rgba(103,232,249,.35);background:rgba(103,232,249,.07)}.quick-hub-grid>button>i{width:36px;height:36px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;background:rgba(103,232,249,.09);color:#67e8f9}.quick-hub-grid>button>span{display:flex;min-width:0;flex-direction:column}.quick-hub-grid b{font-size:10px}.quick-hub-grid small{color:var(--text3);font-size:8px}.quick-hub-grid em{position:absolute;right:7px;top:6px;padding:2px 4px;border-radius:99px;background:#fb7185;color:#fff;font:6px sans-serif;letter-spacing:.08em}.quick-hub-grid .quick-latest{border-color:rgba(251,191,36,.18);background:linear-gradient(135deg,rgba(251,191,36,.07),rgba(124,58,237,.06))}.quick-hub-grid .quick-latest>i{background:rgba(251,191,36,.1);color:#fbbf24}.quick-hub-tip{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:12px;color:#64748b;font-size:8px}.quick-hub-tip i{color:#fbbf24}
@media(max-width:650px){.quick-hub-trigger{left:12px;bottom:max(12px,env(safe-area-inset-bottom));height:46px}.quick-hub-trigger kbd{display:none}.quick-hub{top:auto;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - 24px);overflow:auto;border-radius:20px;transform:translateY(28px) scale(.98)}.quick-hub.open{transform:none}.quick-hub-grid{grid-template-columns:1fr 1fr}.quick-hub-grid>button{min-height:63px;padding:9px}.quick-hub-status small{display:none}.quick-hub-tip{padding-bottom:3px}}
@media(max-width:370px){.quick-hub-grid{grid-template-columns:1fr}.quick-hub-grid>button{min-height:56px}.quick-hub-tip{display:none}.quick-hub-trigger b{display:none}.quick-hub-trigger{padding-right:5px}}

/* Final responsive polish: readable type, pixel crew and supporter ranks */
.hero{position:relative;z-index:2;overflow:visible}.hero-badge{position:relative;z-index:4}.gaming-3d-decor{z-index:0;pointer-events:none}.seasonal-card-promo{position:relative;z-index:3;margin-top:6px}.seasonal-promo-title{font-size:19px}.seasonal-promo-desc{font-size:13px;line-height:1.55}.seasonal-promo-action{font-size:13px}.support-value-head{font-size:15px;margin-bottom:12px}.support-value-grid b{font-size:12px;line-height:1.5}.support-value-grid span{min-height:54px;padding:10px}.support-value-grid i{font-size:14px}.support-value-box>small{font-size:10px;line-height:1.5;margin-top:10px}.supporter-wall{padding:16px;gap:16px;border-color:rgba(251,113,133,.28);box-shadow:inset 0 1px rgba(255,255,255,.05)}.supporter-wall-title{min-width:250px}.supporter-heart{width:40px;height:40px;font-size:19px}.supporter-wall-title strong{font-size:14px}.supporter-wall-title small{font-size:10px;line-height:1.45;margin-top:2px}.studio-supporter{min-height:34px;max-width:175px;padding:7px 10px;font-size:11px}.supporter-join{min-height:40px;font-size:11px;padding:9px 13px}.lb-item{min-height:42px;font-size:12px}.lb-rank{display:grid;place-items:center;min-width:25px;height:25px;border-radius:8px;background:rgba(255,255,255,.08);font-weight:900}.lb-amt{font-weight:900}.lb-item.donor-rank-1{border-color:#fbbf24!important;background:linear-gradient(135deg,rgba(251,191,36,.22),rgba(245,158,11,.06))!important}.lb-item.donor-rank-2{border-color:#cbd5e1!important;background:linear-gradient(135deg,rgba(226,232,240,.18),rgba(148,163,184,.05))!important}.lb-item.donor-rank-3{border:1px solid #d97706!important;background:linear-gradient(135deg,rgba(217,119,6,.2),rgba(120,53,15,.05))!important}.donor-rank-1 .lb-rank{color:#1f1600;background:#fbbf24}.donor-rank-2 .lb-rank{color:#1e293b;background:#cbd5e1}.donor-rank-3 .lb-rank{color:#fff;background:#b45309}.donor-rank-1:before{content:'♛'!important;font-size:20px!important;top:-15px!important}.studio-supporter:nth-child(1){border-color:#fbbf24;background:rgba(251,191,36,.12)}.studio-supporter:nth-child(2){border-color:#cbd5e1;background:rgba(203,213,225,.1)}.studio-supporter:nth-child(3){border-color:#d97706;background:rgba(217,119,6,.1)}.studio-supporter:nth-child(1) i{color:#fbbf24}.studio-supporter:nth-child(2) i{color:#e2e8f0}.studio-supporter:nth-child(3) i{color:#d97706}

/* Cute blocky pixel character overrides */
.pixel-ef .guide-head,.pixel-ef .guide-shirt,.pixel-ef .guide-arm,.pixel-ef .guide-leg{border-color:#172033;border-radius:4px;box-shadow:3px 3px 0 rgba(0,0,0,.22)}.pixel-ef .guide-head{background:#ffd0a8}.pixel-ef .guide-hair{left:-3px;top:-7px;width:50px;height:18px;border-radius:3px;background:#352a47;box-shadow:8px -5px 0 #352a47,22px -7px 0 #352a47,37px -3px 0 #352a47}.pixel-ef .guide-hair:after{display:none}.pixel-ef .guide-headphone{border-width:3px;border-radius:7px;border-color:#22d3ee;border-bottom-color:#22d3ee;inset:6px -7px 8px}.pixel-ef .guide-face b{border-radius:1px;width:5px;height:6px}.pixel-ef .guide-face em{border-radius:0}.pixel-ef .guide-shirt{background:linear-gradient(#60a5fa 0 25%,#2563eb 25%)}.pixel-ef .guide-shirt i{font-family:monospace}.pixel-ef .guide-leg{background:#334155}.guide-name{bottom:-4px;padding:5px 9px;font-size:10px;font-weight:800}.tiny-worker .worker-head,.tiny-worker .worker-body{border-radius:3px;box-shadow:2px 2px 0 rgba(0,0,0,.25)}.worker-label{font-size:10px;padding:3px 6px;border-radius:5px;background:rgba(15,23,42,.8)}

.station-helper{display:flex;align-items:center;gap:9px;width:100%;margin:7px 0;padding:8px 10px;border:1px solid rgba(103,232,249,.18);border-radius:11px;background:rgba(15,23,42,.72);color:#fff;text-align:left;font-family:inherit;cursor:pointer;transition:.2s}.station-helper:hover{border-color:#67e8f9;transform:translateY(-2px)}.station-pixel{position:relative;width:35px;height:38px;flex:0 0 auto}.station-pixel i{position:absolute;left:8px;top:1px;width:21px;height:19px;border:3px solid #172033;background:#ffd0a8;box-shadow:3px 3px 0 rgba(0,0,0,.22)}.station-pixel i:before{content:'';position:absolute;left:-2px;top:-6px;width:21px;height:8px;background:#4c3b5f;box-shadow:6px -3px #4c3b5f}.station-pixel b{position:absolute;left:7px;top:20px;width:25px;height:16px;display:grid;place-items:center;border:3px solid #172033;border-radius:2px;background:#0ea5e9;color:#fff;font:900 8px monospace}.station-2 .station-pixel b{background:#ec4899}.station-3 .station-pixel b{background:#8b5cf6}.station-helper>span:nth-child(2){display:flex;flex:1;min-width:0;flex-direction:column}.station-helper strong{font-size:11px}.station-helper small{color:var(--text3);font-size:9px}.station-helper>em{color:#67e8f9;font-style:normal}.station-helper.wave .station-pixel{animation:stationWave .35s ease 3}.ef-runner{position:fixed;z-index:9600;left:16px;bottom:72px;width:42px;height:58px;pointer-events:none;opacity:0;transform:translateX(-60px)}.ef-runner i{position:absolute;left:8px;top:0;width:27px;height:25px;border:3px solid #172033;background:#ffd0a8;box-shadow:5px -5px 0 #352a47}.ef-runner b{position:absolute;left:7px;top:27px;width:29px;height:25px;display:grid;place-items:center;border:3px solid #172033;background:#2563eb;color:#fff;font:900 12px monospace}.ef-runner span,.ef-runner em{position:absolute;top:48px;width:10px;height:10px;border:3px solid #172033;background:#334155}.ef-runner span{left:8px}.ef-runner em{right:4px}.ef-runner.run{opacity:1;animation:efTravel 1.35s ease-in-out forwards}@keyframes efTravel{0%{transform:translateX(-60px) translateY(0)}20%{transform:translateX(12vw) translateY(-12px)}60%{transform:translateX(48vw) translateY(0)}100%{transform:translateX(calc(100vw - 80px)) translateY(-8px);opacity:0}}@keyframes stationWave{50%{transform:translateY(-7px) rotate(-4deg)}}

/* Minimal, larger Quick Hub */
.quick-hub{max-width:500px;padding:20px;border-color:rgba(255,255,255,.12);background:rgba(10,15,25,.98)}.quick-hub-logo{overflow:hidden;background:#fff;color:#111827}.quick-hub-logo img{display:block;width:100%;height:100%;object-fit:cover}.quick-hub-head strong{font-size:17px}.quick-hub-head small{font-size:11px}.quick-hub-status b{font-size:11px}.quick-hub-status small{font-size:10px}.quick-hub-grid{gap:10px}.quick-hub-grid>button{min-height:76px;padding:13px;background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.09)}.quick-hub-grid>button>i{background:rgba(255,255,255,.07);color:#e2e8f0}.quick-hub-grid b{font-size:13px}.quick-hub-grid small{font-size:10px;line-height:1.4;margin-top:2px}.quick-hub-tip{font-size:10px}.quick-hub-trigger b{font-size:12px}

@media(max-width:760px){.hero{margin-bottom:18px}.hero-badge{display:inline-flex!important;max-width:calc(100% - 20px);font-size:12px}.seasonal-card-promo{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;padding:14px;margin-bottom:16px}.seasonal-promo-copy{min-width:0}.seasonal-promo-title{font-size:15px;line-height:1.4}.seasonal-promo-desc{display:block!important;font-size:11px;line-height:1.45}.seasonal-promo-action{grid-column:1/-1;width:100%;padding:9px;text-align:center;font-size:12px}.mini-studio{padding:12px}.office-scene{height:280px}.office-window{width:82px;height:60px}.office-sign{display:none}.desk-left{left:-18px;transform:scale(.72)}.desk-right{display:block;right:80px;transform:scale(.62);transform-origin:right bottom}.guide-character{left:38%;bottom:24px;transform:scale(.8)}.guide-character:hover{transform:scale(.8)}.guide-character.walking{left:calc(100% - 120px);transform:scale(.8)}.latest-site-door{right:7px;width:80px;height:108px}.latest-site-door strong{font-size:10px}.supporter-wall{padding:13px;gap:10px}.supporter-wall-title{min-width:100%}.supporter-wall-title strong{font-size:13px}.supporter-wall-title small{font-size:10px}.studio-supporters{display:grid;grid-template-columns:1fr 1fr;width:100%;overflow:visible}.studio-supporter{max-width:none;width:100%;font-size:11px}.supporter-join{width:100%;justify-content:center;font-size:12px}.support-value-head{font-size:14px}.support-value-grid b{font-size:11px}.quick-hub{padding:16px}.quick-hub-grid>button{min-height:70px}.quick-hub-grid b{font-size:12px}.quick-hub-grid small{font-size:9px}}
@media(max-width:390px){.office-scene{height:265px}.desk-left{left:-35px;transform:scale(.62)}.desk-right{display:none}.guide-character{left:32%;transform:scale(.74)}.guide-character.walking{left:calc(100% - 108px);transform:scale(.74)}.latest-site-door{width:76px}.studio-supporters{grid-template-columns:1fr}.supporter-wall-title small{max-width:none}.quick-hub-grid{grid-template-columns:1fr 1fr}.quick-hub-grid>button{min-height:66px}.quick-hub-grid>button>i{width:31px;height:31px}.quick-hub-grid b{font-size:11px}.quick-hub-grid small{font-size:8px}.quick-hub-head strong{font-size:15px}}
.seasonal-card-promo::before { content:""; position:absolute; inset:-80% 45% -80% -20%; transform:rotate(18deg); background:linear-gradient(90deg,transparent,rgba(255,255,255,.09),transparent); transition:transform .55s ease; }
.seasonal-card-promo:hover { transform: translateY(-3px); border-color: rgba(0,229,255,.72); box-shadow: 0 16px 42px rgba(0,229,255,.12); }
.seasonal-card-promo:hover::before { transform:translateX(210%) rotate(18deg); }
.seasonal-promo-icon { position:relative; z-index:1; flex:0 0 52px; width:52px; height:52px; display:grid; place-items:center; border-radius:16px; background:linear-gradient(135deg,#00e5ff,#8b5cf6); color:#fff; font-size:24px; box-shadow:0 8px 24px rgba(0,229,255,.22); }
.seasonal-promo-copy { position:relative; z-index:1; flex:1; min-width:0; }
.seasonal-promo-title { display:block; font-size:18px; font-weight:800; line-height:1.35; }
.seasonal-promo-desc { display:block; margin-top:3px; color:var(--text3); font-size:12px; }
.seasonal-promo-action { position:relative; z-index:1; flex:0 0 auto; padding:10px 15px; border-radius:999px; background:#fff; color:#111827; font-size:12px; font-weight:800; white-space:nowrap; }
@media (max-width: 600px) {
  .seasonal-card-promo { gap:12px; padding:15px; border-radius:15px; }
  .seasonal-promo-icon { flex-basis:44px; width:44px; height:44px; border-radius:13px; font-size:20px; }
  .seasonal-promo-title { font-size:14px; }
  .seasonal-promo-desc { font-size:10px; }
  .seasonal-promo-action { padding:8px 10px; font-size:10px; }
}

/* Cascade-safe final overrides */
.seasonal-promo-title{font-size:19px}.seasonal-promo-desc{font-size:13px;line-height:1.55}.seasonal-promo-action{font-size:13px}.main>*{min-width:0}
@media(max-width:760px){.main{width:100%;padding-left:12px;padding-right:12px}.hero-badge{z-index:10}.seasonal-card-promo{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;padding:14px}.seasonal-promo-title{font-size:15px}.seasonal-promo-desc{display:block;font-size:11px}.seasonal-promo-action{grid-column:1/-1;width:100%;font-size:12px;text-align:center}.content-grid>*{min-width:0}.card{min-width:0;padding:16px}.topbar-right{min-width:0}.live-clock{font-size:10px}.lang-switch-container{width:78px}.quick-hub-grid b{font-size:12px}.quick-hub-grid small{font-size:9px}}
@media(max-width:390px){.seasonal-promo-desc{font-size:10px}.topbar-brand{max-width:34%}.live-clock{font-size:9px}.lang-switch-container{width:72px}.quick-hub-grid{grid-template-columns:1fr 1fr}}

/* Final layout fixes: safe guide bubble, distinct crew, filled grid gaps */
.hero{isolation:isolate}.hero-badge{z-index:30!important}.gaming-3d-decor{z-index:-1!important}
.studio-chat{left:50%;right:auto;width:min(320px,calc(100% - 20px));box-sizing:border-box;transform:translate(-50%,8px) scale(.97)}
.studio-chat.open{transform:translate(-50%,0) scale(1)}
.guide-name{bottom:-7px;width:116px;max-width:calc(100vw - 24px);box-sizing:border-box;white-space:normal;text-align:center;line-height:1.25;overflow-wrap:anywhere}
.guide-character:focus-visible{outline:2px solid #67e8f9;outline-offset:3px}
.worker-editor{animation:workerType 1.1s steps(2) infinite}.worker-video{animation:workerGroove 1.8s ease-in-out infinite}.guide-character:not(.walking) .arm-right{animation:studioWave 1.8s ease-in-out infinite}
@keyframes workerType{50%{transform:translateY(2px)}}@keyframes workerGroove{50%{transform:translateY(-4px) rotate(2deg)}}
.station-1 .station-pixel i:before{height:7px;background:#182033;box-shadow:5px -5px #182033,11px -7px #182033,17px -3px #182033}
.station-2 .station-pixel i:before{left:0;top:-8px;width:18px;height:10px;border-radius:50% 50% 0 0;background:#ec4899;box-shadow:15px 5px #ec4899,19px 12px #ec4899}
.station-3 .station-pixel i:before{left:5px;top:-10px;width:7px;height:12px;background:#8b5cf6;box-shadow:6px -3px #8b5cf6,12px 1px #8b5cf6}
.crew-promo{position:relative;display:flex;align-items:center;gap:12px;min-height:112px;width:100%;box-sizing:border-box;padding:15px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(17,24,39,.86));color:#fff;text-decoration:none;text-align:left;font-family:inherit;cursor:pointer;overflow:hidden;transition:.22s}
.crew-promo:hover{transform:translateY(-3px);border-color:rgba(103,232,249,.48);box-shadow:0 14px 30px rgba(0,0,0,.22)}.line-promo{border-color:rgba(34,197,94,.28);background:linear-gradient(135deg,rgba(34,197,94,.12),rgba(15,23,42,.95))}.surprise-promo{border-color:rgba(168,85,247,.28);background:linear-gradient(135deg,rgba(168,85,247,.13),rgba(15,23,42,.95))}
.crew-promo-character{position:relative;width:54px;height:66px;flex:0 0 54px}.crew-promo-character i{position:absolute;left:12px;top:2px;width:31px;height:28px;border:3px solid #172033;background:#ffd0a8;box-shadow:3px 3px 0 rgba(0,0,0,.24)}.crew-promo-character i:before{content:"";position:absolute;left:-3px;top:-8px;width:31px;height:11px;background:#1f2937;box-shadow:8px -4px #1f2937}.crew-promo-character b{position:absolute;left:10px;top:33px;width:35px;height:27px;display:grid;place-items:center;border:3px solid #172033;background:#22c55e;color:#fff;font:900 12px monospace}.surprise-friend i:before{background:#7c3aed;box-shadow:8px -5px #7c3aed,19px -2px #7c3aed}.surprise-friend b{background:#7c3aed}.crew-promo-character em{position:absolute;right:-2px;top:38px;width:8px;height:24px;border:3px solid #172033;background:#ffd0a8;transform-origin:top;animation:studioWave 2s ease-in-out infinite}
.crew-promo-copy{display:flex;min-width:0;flex:1;flex-direction:column}.crew-promo-copy small{color:#67e8f9;font-size:9px;font-weight:800}.line-promo .crew-promo-copy small{color:#86efac}.crew-promo-copy strong{margin:2px 0;font-size:14px}.crew-promo-copy>span{color:var(--text3);font-size:10px;line-height:1.45}.crew-promo>i:last-child{color:#67e8f9}
.studio-supporters{overflow-x:auto;scrollbar-width:thin;scrollbar-color:rgba(103,232,249,.45) transparent;padding-bottom:5px}.studio-supporter{flex:0 0 auto}.studio-supporters::-webkit-scrollbar{height:5px}.studio-supporters::-webkit-scrollbar-thumb{background:rgba(103,232,249,.4);border-radius:99px}
@media(max-width:760px){.gaming-3d-decor{display:none}.studio-chat{left:8px;right:8px;width:auto;transform:translateY(8px) scale(.97)}.studio-chat.open{transform:none}.guide-name{width:98px;font-size:9px}.crew-promo{min-height:100px}.studio-supporters{display:flex;overflow-x:auto}.studio-supporter{width:auto;min-width:150px}.free-badge{position:relative!important;z-index:20!important;top:auto!important;right:auto!important;display:inline-flex!important;margin:0 auto 12px}}
@media(max-width:390px){.studio-chat{bottom:135px;padding:11px}.chat-copy strong{font-size:10px}.chat-copy span{font-size:8px}.guide-name{width:88px;font-size:8px;padding:4px}.crew-promo{padding:12px}.crew-promo-copy strong{font-size:13px}.crew-promo-copy>span{font-size:9px}}

/* Screenshot-driven final corrections */
.free-badge{position:relative!important;inset:auto!important;transform:none!important;display:inline-flex!important;align-items:center;justify-content:center;max-width:100%;margin:0 auto 14px!important;box-sizing:border-box;white-space:normal;text-align:center;z-index:5!important}
.office-shelf{display:none!important}.office-plant{display:none!important}
.pixel-ef .guide-headphone{display:none!important}.pixel-ef .guide-hair{left:1px!important;top:-18px!important;width:42px!important;height:12px!important;border-radius:2px!important;background:#fbbf24!important;box-shadow:5px -6px 0 #fbbf24,12px -10px 0 #fbbf24,19px -12px 0 #fbbf24,26px -10px 0 #fbbf24,33px -6px 0 #fbbf24!important}.pixel-ef .guide-hair:after{display:block!important;right:11px!important;top:8px!important;border:5px solid transparent!important;border-top-color:#f59e0b!important}
.guide-character.greeting .arm-right{animation:efHello .32s ease-in-out 6!important}.guide-character.greeting{animation:efBounce .45s ease-in-out 4}.guide-name{width:auto!important;min-width:88px!important;max-width:108px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important}
@keyframes efHello{0%,100%{transform:rotate(-28deg)}50%{transform:rotate(-82deg)}}@keyframes efBounce{50%{margin-bottom:5px}}
.studio-chat{width:min(275px,calc(100% - 130px))!important;left:50%!important;bottom:145px!important;padding:11px!important}.chat-actions{gap:4px!important;padding-top:8px!important}.chat-action{min-height:34px!important;padding:6px 8px!important}.chat-copy strong{font-size:10px!important}.chat-copy span{font-size:8px!important}
.character-confirm{margin-top:8px;padding:9px;border:1px solid rgba(251,191,36,.35);border-radius:10px;background:rgba(251,191,36,.08);text-align:center}.character-confirm[hidden]{display:none!important}.character-confirm strong{display:block;margin-bottom:7px;color:#fde68a;font-size:10px}.character-confirm>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}.character-confirm button{min-height:34px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:#2563eb;color:#fff;font-family:inherit;font-size:9px;font-weight:800;cursor:pointer}.character-confirm button:last-child{background:rgba(255,255,255,.07);color:#cbd5e1}
.crew-promo{min-height:178px!important}.crew-promo-copy>span{max-width:200px}.ef-runner.run{animation-duration:1.8s!important}
.studio-supporters{scroll-behavior:smooth}.studio-supporter{min-width:max-content}
@media(max-width:760px){.office-scene{height:300px!important}.studio-chat{left:8px!important;right:auto!important;bottom:148px!important;width:calc(100% - 112px)!important;max-height:142px;overflow-y:auto;transform:translateY(8px) scale(.97)!important}.studio-chat.open{transform:none!important}.chat-avatar{display:none}.chat-copy{padding-right:14px}.guide-character{bottom:18px!important}.guide-name{max-width:84px!important;font-size:8px!important}.crew-promo{min-height:138px!important}.content-grid>div{align-self:stretch}}
@media(max-width:390px){.studio-chat{width:calc(100% - 95px)!important;max-height:138px}.chat-action{font-size:9px!important}.latest-site-door{z-index:8}.crew-promo{min-height:128px!important}.worker-label{max-width:85px;overflow:hidden;text-overflow:ellipsis}}
.station-helper{box-sizing:border-box;min-width:0;overflow:hidden}.station-helper>span:nth-child(2){overflow:hidden}.station-helper strong,.station-helper small{display:block;max-width:100%;overflow-wrap:anywhere;line-height:1.35}.station-helper>em{flex:0 0 auto}.worker-label{z-index:3;max-width:105px;overflow:hidden;text-overflow:ellipsis}.latest-site-door{box-sizing:border-box}.latest-site-door strong,.latest-site-door small{max-width:90%;text-align:center;overflow-wrap:anywhere}

/* Final 1% fixes */
.ef-runner{display:none!important}
.studio-chat{left:12px!important;right:auto!important;top:12px!important;bottom:auto!important;width:min(270px,calc(100% - 135px))!important;max-height:210px;overflow-y:auto;transform:translateY(-5px) scale(.97)!important}.studio-chat.open{transform:none!important}.studio-chat:after{left:70%!important}
.pixel-ef .guide-hair{left:3px!important;top:-13px!important;width:40px!important;height:14px!important;border-radius:5px 5px 2px 2px!important;background:#111827!important;box-shadow:none!important;transform:none!important}.pixel-ef .guide-hair:before{content:"";position:absolute;left:25px;top:9px;width:25px;height:6px;border-radius:1px 6px 4px 1px;background:#111827}.pixel-ef .guide-hair:after{content:""!important;display:block!important;left:8px!important;top:3px!important;width:13px!important;height:6px!important;border:0!important;border-radius:3px!important;background:#374151!important}
.center-card{position:relative!important;overflow:visible!important}.center-card>.free-badge{position:absolute!important;top:-14px!important;right:18px!important;left:auto!important;width:auto!important;margin:0!important;padding:7px 14px!important;white-space:nowrap!important;z-index:20!important}.center-header{padding-top:10px}
.station-pixel{margin-right:5px!important;overflow:hidden!important}.station-2 .station-pixel i:before{left:1px!important;top:-5px!important;width:19px!important;height:8px!important;box-shadow:none!important}.station-helper>span:nth-child(2){padding-left:2px}.station-helper strong{white-space:normal!important}.station-helper small{white-space:normal!important}
@media(max-width:760px){.studio-chat{left:8px!important;top:8px!important;bottom:auto!important;width:calc(100% - 105px)!important;max-height:180px}.center-card>.free-badge{top:-12px!important;right:12px!important;font-size:11px!important}.office-scene{height:320px!important}}
@media(max-width:390px){.studio-chat{width:calc(100% - 92px)!important;max-height:174px}.chat-action{padding:5px 6px!important}.station-helper{padding:7px!important}.station-pixel{width:32px!important;flex-basis:32px!important}}
.center-card>.free-badge{top:8px!important;right:10px!important}.center-header{padding-top:42px!important}
@media(max-width:760px){.center-card>.free-badge{top:7px!important;right:7px!important}.center-header{padding-top:40px!important}.studio-chat{max-height:205px!important}}

/* ── Office refresh: one predictable layer for the interactive characters ── */
.content-grid{
  display:grid!important;
  grid-template-columns:minmax(230px,.9fr) minmax(290px,1.18fr) minmax(230px,.9fr);
  gap:20px!important;
  align-items:start;
}
.content-grid>div{min-width:0}
.content-grid>div[style*="grid-row"]{grid-row:auto!important}
.content-grid>.card{grid-column:1/-1}
.quick-hub{max-height:calc(100dvh - 28px);overflow-y:auto;overscroll-behavior:contain}

.mini-studio{overflow:visible!important;border-color:rgba(103,232,249,.2);background:linear-gradient(145deg,rgba(12,20,39,.98),rgba(23,20,48,.94))}
.office-scene{height:300px!important;border-color:rgba(103,232,249,.22);border-radius:18px!important;background:linear-gradient(#172544 0 70%,#273148 70%)!important;box-shadow:inset 0 0 48px rgba(8,12,31,.35)}
.office-scene:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.45;background:linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px);background-size:18px 18px;z-index:1}
.office-shelf,.office-plant{display:block!important}
.office-window{left:5.5%;top:21px;border-radius:4px;border-color:#314263;box-shadow:0 5px 0 rgba(0,0,0,.2)}
.office-sign{top:20px;border-radius:7px;box-shadow:0 0 20px rgba(34,211,238,.16)}
.office-shelf{right:6%;top:34px;width:105px}
.office-plant{right:8%;bottom:41px;transform:scale(.82);transform-origin:bottom right}
.work-desk{bottom:33px}.desk-left{left:8%}.desk-right{right:18%}
.guide-character{left:calc(50% - 46px)!important;bottom:20px!important;z-index:10}
.guide-character.walking{left:calc(100% - 142px)!important}
.latest-site-door{right:2.6%;bottom:31px;z-index:9;border-radius:8px 8px 2px 2px;background:linear-gradient(160deg,#304675,#14182c)}
.office-floor{z-index:0!important;height:82px!important;background-size:42px 100%,100% 100%!important}

/* The studio menu and the card-maker confirmation are speech bubbles, not page toasts. */
.studio-chat{
  left:50%!important;right:auto!important;top:auto!important;bottom:153px!important;
  width:min(370px,calc(100% - 28px))!important;max-height:190px!important;
  padding:13px!important;overflow-y:auto;z-index:16!important;
  transform:translate(-50%,10px) scale(.98)!important;
  border-color:rgba(103,232,249,.55)!important;background:linear-gradient(145deg,#162444,#11182e)!important;
  box-shadow:0 14px 30px rgba(0,0,0,.34)!important;
}
.studio-chat.open{transform:translate(-50%,0) scale(1)!important}
.studio-chat:after{left:50%!important;bottom:-8px!important;top:auto!important;transform:translateX(-50%) rotate(45deg)!important;background:#11182e!important;border-right-color:rgba(103,232,249,.55)!important;border-bottom-color:rgba(103,232,249,.55)!important}
.chat-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}.chat-action{min-height:37px!important;padding:6px 7px!important;font-size:9px!important}.chat-copy strong{font-size:11px!important}.chat-copy span{font-size:9px!important}
.guide-speech{position:absolute;z-index:17;left:50%;bottom:155px;width:min(310px,calc(100% - 28px));padding:13px;box-sizing:border-box;border:1px solid rgba(251,191,36,.6);border-radius:14px;background:linear-gradient(145deg,#2a2343,#15182e);color:#f8fafc;box-shadow:0 16px 35px rgba(0,0,0,.38);transform:translateX(-50%);text-align:center;animation:buddyPop .22s ease-out both}.guide-speech:after{content:"";position:absolute;left:50%;bottom:-8px;width:14px;height:14px;background:#15182e;border-right:1px solid rgba(251,191,36,.6);border-bottom:1px solid rgba(251,191,36,.6);transform:translateX(-50%) rotate(45deg)}.guide-speech strong,.guide-speech span{display:block}.guide-speech strong{color:#fde68a;font-size:12px}.guide-speech span{margin-top:4px;color:#cbd5e1;font-size:10px;line-height:1.45}.guide-speech>div{display:grid;grid-template-columns:1fr 76px;gap:7px;margin-top:10px}.guide-speech button{min-height:34px;border:1px solid rgba(255,255,255,.16);border-radius:8px;font:800 10px inherit;cursor:pointer}.guide-speech-go{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#261500}.guide-speech-close{background:rgba(255,255,255,.06);color:#e2e8f0}

/* Each local buddy keeps space above its head, so the temporary balloon never covers web content. */
.station-helper{position:relative;display:flex!important;align-items:center!important;width:min(100%,300px)!important;min-height:53px!important;margin:68px 0 13px!important;padding:7px 10px!important;overflow:visible!important;border-color:rgba(103,232,249,.32)!important;border-radius:12px!important;background:linear-gradient(135deg,rgba(21,34,61,.96),rgba(15,23,42,.9))!important;box-shadow:0 7px 18px rgba(0,0,0,.17);isolation:isolate}.station-helper:hover{border-color:#67e8f9!important;transform:translateY(-2px)}.station-helper .station-pixel{width:42px!important;height:42px!important;flex-basis:42px!important;margin:0 3px 0 0!important;overflow:visible!important}.station-helper .station-pixel i{left:9px!important;top:2px!important}.station-helper .station-pixel b{left:8px!important;top:22px!important;width:27px!important;height:17px!important}.station-helper strong{font-size:11px!important;line-height:1.25!important}.station-helper small{font-size:9px!important;line-height:1.3!important}.station-helper>em{font-size:14px!important;color:#67e8f9!important}
.station-4 .station-pixel i:before{background:#16a34a!important;box-shadow:6px -5px #16a34a,15px -4px #16a34a!important}.station-4 .station-pixel b{background:#16a34a!important}.station-5 .station-pixel i:before{background:#db2777!important;box-shadow:7px -6px #db2777,16px -3px #db2777!important}.station-5 .station-pixel b{background:#db2777!important}.station-6 .station-pixel i:before{background:#ea580c!important;box-shadow:5px -6px #ea580c,14px -5px #ea580c!important}.station-6 .station-pixel b{background:#ea580c!important}.station-7 .station-pixel i:before{background:#7c3aed!important;box-shadow:8px -5px #7c3aed,18px -2px #7c3aed!important}.station-7 .station-pixel b{background:#7c3aed!important}.station-8 .station-pixel i:before{background:#0f766e!important;box-shadow:5px -5px #0f766e,14px -7px #0f766e!important}.station-8 .station-pixel b{background:#0f766e!important}.station-9 .station-pixel i:before{background:#be123c!important;box-shadow:7px -6px #be123c,16px -2px #be123c!important}.station-9 .station-pixel b{background:#be123c!important}.station-10 .station-pixel i:before{background:#475569!important;box-shadow:6px -5px #475569,15px -3px #475569!important}.station-10 .station-pixel b{background:#475569!important}
.buddy-speech{position:absolute;z-index:24;left:0;bottom:calc(100% + 10px);width:min(258px,calc(100vw - 42px));box-sizing:border-box;padding:9px 11px;border:1px solid rgba(255,255,255,.17);border-radius:12px;background:linear-gradient(145deg,#25365e,#151d36);color:#f8fafc;text-align:left;box-shadow:0 12px 25px rgba(0,0,0,.32);font-size:10px;font-weight:700;line-height:1.4;pointer-events:none;animation:buddyPop .22s ease-out both}.buddy-speech:after{content:"";position:absolute;left:24px;bottom:-7px;width:12px;height:12px;background:#151d36;border-right:1px solid rgba(255,255,255,.17);border-bottom:1px solid rgba(255,255,255,.17);transform:rotate(45deg)}@keyframes buddyPop{from{opacity:0;transform:translateY(7px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}

/* Full-width free banner: it belongs to the card edge, not over its heading. */
.center-card{overflow:visible!important;padding:0 0 20px!important}.center-card>.free-badge{position:relative!important;inset:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:43px!important;margin:0 0 15px!important;padding:10px 16px!important;box-sizing:border-box!important;border-radius:13px 13px 0 0!important;transform:none!important;background:linear-gradient(90deg,#f59e0b,#fbbf24,#f59e0b)!important;box-shadow:0 5px 18px rgba(251,191,36,.24)!important;font-size:12px!important;letter-spacing:.03em;white-space:normal!important}.center-header{padding:0 16px!important}.center-card>.qr-wrap,.center-card>.pay-box,.center-card>.donate-prog-wrap,.center-card>.support-value-box,.center-card>.dl-btn-wrapper{margin-left:16px!important;margin-right:16px!important}

/* Clearly differentiated podium cards, while values still come from the same supporter feed. */
.lb-item.donor-rank-1,.studio-supporter.donor-rank-1{border-color:#fbbf24!important;background:linear-gradient(135deg,rgba(251,191,36,.27),rgba(120,53,15,.14))!important;box-shadow:inset 3px 0 #fbbf24}.lb-item.donor-rank-2,.studio-supporter.donor-rank-2{border-color:#cbd5e1!important;background:linear-gradient(135deg,rgba(226,232,240,.2),rgba(100,116,139,.12))!important;box-shadow:inset 3px 0 #e2e8f0}.lb-item.donor-rank-3,.studio-supporter.donor-rank-3{border-color:#d97706!important;background:linear-gradient(135deg,rgba(217,119,6,.24),rgba(120,53,15,.12))!important;box-shadow:inset 3px 0 #d97706}.donor-rank-1 .lb-rank{color:#3b2600!important;background:#fbbf24!important}.donor-rank-2 .lb-rank{color:#1e293b!important;background:#e2e8f0!important}.donor-rank-3 .lb-rank{color:#fff!important;background:#b45309!important}.studio-supporter.donor-rank-1 i{color:#fbbf24!important}.studio-supporter.donor-rank-2 i{color:#e2e8f0!important}.studio-supporter.donor-rank-3 i{color:#fb923c!important}

@media(max-width:1050px){.content-grid{grid-template-columns:minmax(0,1fr)!important}.content-grid>div,.content-grid>.card{grid-column:auto!important}.content-grid>.card{grid-column:1!important}.office-shelf{right:3%}.office-plant{display:none!important}}
@media(max-width:760px){.mini-studio{padding:13px!important}.studio-heading{gap:8px}.studio-heading h2{font-size:17px}.studio-open{padding:5px 7px;font-size:8px}.office-scene{height:318px!important}.office-window{left:4%;width:78px;height:52px;border-width:5px}.office-sign{display:none}.office-shelf{display:none!important}.office-plant{display:block!important;right:1%;bottom:48px;transform:scale(.55)}.desk-left{left:-31px!important;transform:scale(.68);transform-origin:left bottom}.desk-right{right:57px!important;transform:scale(.54);transform-origin:right bottom}.guide-character{left:calc(50% - 43px)!important;bottom:18px!important;transform:scale(.84)}.guide-character.walking{left:calc(100% - 103px)!important}.latest-site-door{right:6px;bottom:31px;width:62px;height:94px}.latest-site-door i{font-size:20px;margin-bottom:4px}.latest-site-door strong{font-size:8px}.latest-site-door small{font-size:7px}.studio-chat{bottom:126px!important;width:calc(100% - 22px)!important;max-height:178px!important;padding:10px!important}.chat-actions{grid-template-columns:1fr 1fr!important}.guide-speech{bottom:126px;width:calc(100% - 30px);padding:11px}.station-helper{width:100%!important;max-width:none!important;margin-top:66px!important}.buddy-speech{width:min(270px,calc(100vw - 56px))}.center-card>.free-badge{border-radius:12px 12px 0 0!important}.center-header{padding:0 13px!important}.center-card>.qr-wrap,.center-card>.pay-box,.center-card>.donate-prog-wrap,.center-card>.support-value-box,.center-card>.dl-btn-wrapper{margin-left:13px!important;margin-right:13px!important}.quick-hub-grid{grid-template-columns:1fr 1fr!important}}
@media(max-width:390px){.office-scene{height:300px!important}.desk-right{display:none}.guide-character{left:calc(50% - 43px)!important}.studio-chat{bottom:112px!important;max-height:165px!important}.guide-speech{bottom:112px}.station-helper{margin-top:62px!important}.buddy-speech{width:calc(100vw - 48px)}}
@media(prefers-reduced-motion:reduce){.guide-character,.station-helper,.crew-promo,.studio-chat,.guide-speech,.buddy-speech{animation:none!important;transition:none!important}}

/* ── Stable pixel office system ────────────────────────────────────────────
   This final layer intentionally owns the office, helper bubbles and quick hub.
   It replaces the previous overlapping one-off corrections with one layout model. */
html,body{overflow-x:clip}
.content-grid{display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(300px,1.2fr) minmax(0,.9fr)!important;gap:20px!important;align-items:start}
.content-grid>div,.content-grid>.card{min-width:0!important;grid-column:auto!important;grid-row:auto!important}
.content-grid>.card{grid-column:1/-1!important}

.mini-studio{margin:8px 0 24px!important;padding:20px!important;overflow:visible!important;border:1px solid rgba(103,232,249,.28)!important;border-radius:22px!important;background:linear-gradient(145deg,#121d37,#191333)!important;box-shadow:0 22px 54px rgba(0,0,0,.28)!important}
.studio-heading{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;margin:0 0 15px!important}
.studio-heading h2{font-size:20px!important}.studio-heading p{max-width:620px!important;line-height:1.55!important}.studio-open{white-space:nowrap!important}
.office-scene{position:relative!important;isolation:isolate!important;height:340px!important;overflow:hidden!important;border:3px solid #111827!important;outline:1px solid rgba(103,232,249,.6)!important;border-radius:12px!important;background:linear-gradient(#18294b 0 68%,#26344a 68%)!important;box-shadow:inset 0 0 0 3px #263a61,inset 0 0 42px rgba(0,0,0,.28)!important;image-rendering:pixelated}
.office-scene:before{content:""!important;position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;opacity:.38!important;background:linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px)!important;background-size:18px 18px!important}
.office-backdrop{z-index:0!important}.office-window{left:5%!important;top:26px!important;width:145px!important;height:85px!important;border:6px solid #0f172a!important;border-radius:0!important;background:#263e73!important;box-shadow:0 0 0 3px #405a89,0 7px 0 rgba(0,0,0,.24)!important}.office-sign{top:27px!important;padding:9px 16px!important;border-radius:2px!important;background:#1b2440!important;font-family:monospace!important}.office-shelf{display:block!important;right:5%!important;top:37px!important}.office-plant{display:block!important;right:7%!important;bottom:42px!important}
.work-desk{z-index:4!important;bottom:37px!important}.desk-left{left:9%!important}.desk-right{right:19%!important}.worker-label{z-index:4!important;max-width:108px!important;overflow:hidden!important;text-overflow:ellipsis!important}
.office-floor{z-index:0!important;height:90px!important;transform:none!important;background:linear-gradient(90deg,transparent 49%,rgba(255,255,255,.075) 50%,transparent 51%),linear-gradient(#32425a,#202c40)!important;background-size:44px 44px,100% 100%!important}
.latest-site-door{z-index:8!important;right:3%!important;bottom:34px!important;width:94px!important;height:120px!important;border-radius:4px 4px 0 0!important}.latest-site-door strong,.latest-site-door small{max-width:88%!important;overflow-wrap:anywhere!important;text-align:center!important}
.guide-character{z-index:12!important;left:calc(50% - 46px)!important;bottom:18px!important;width:92px!important;height:142px!important;transform:none!important}.guide-character:hover{transform:translateY(-3px)!important}.guide-character.walking{left:calc(100% - 135px)!important;transform:none!important}.guide-name{width:auto!important;min-width:88px!important;max-width:110px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* The speech UI is always above F and has one controlled height. */
.studio-chat,.guide-speech{box-sizing:border-box!important;left:50%!important;right:auto!important;top:12px!important;bottom:auto!important;width:min(390px,calc(100% - 28px))!important;max-height:188px!important;overflow:auto!important;transform:translate(-50%,-8px) scale(.98)!important;z-index:30!important}
.studio-chat{padding:13px!important;border-color:rgba(103,232,249,.58)!important;border-radius:14px!important;background:linear-gradient(145deg,#172647,#10182d)!important;box-shadow:0 14px 32px rgba(0,0,0,.42)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important}
.studio-chat.open{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translate(-50%,0) scale(1)!important}
.studio-chat:after{left:50%!important;top:auto!important;bottom:-8px!important;background:#10182d!important;border-right-color:rgba(103,232,249,.58)!important;border-bottom-color:rgba(103,232,249,.58)!important;transform:translateX(-50%) rotate(45deg)!important}
.chat-close{z-index:2!important;width:28px!important;height:28px!important;display:grid!important;place-items:center!important;line-height:1!important}.chat-copy{padding-right:22px!important}.chat-copy strong{font-size:11px!important}.chat-copy span{font-size:9px!important;line-height:1.45!important}.chat-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding-top:10px!important}.chat-action{min-height:40px!important;padding:7px!important;font-size:9px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
.guide-speech{padding:13px!important;border:1px solid rgba(251,191,36,.65)!important;border-radius:14px!important;background:linear-gradient(145deg,#2a2343,#15182e)!important;color:#f8fafc!important;box-shadow:0 16px 35px rgba(0,0,0,.4)!important;text-align:center!important;animation:buddyPop .18s ease-out both!important}.guide-speech:after{left:50%!important;top:auto!important;bottom:-8px!important;transform:translateX(-50%) rotate(45deg)!important}.guide-speech>div{display:grid!important;grid-template-columns:minmax(0,1fr) 80px!important;gap:7px!important}.guide-speech button{min-height:36px!important}

/* Local buddies may speak temporarily without forcing page content to overlap. */
.station-helper{position:relative!important;display:flex!important;align-items:center!important;width:100%!important;max-width:320px!important;min-height:54px!important;box-sizing:border-box!important;margin:12px 0!important;padding:8px 10px!important;overflow:visible!important;border-color:rgba(103,232,249,.34)!important;border-radius:12px!important;background:linear-gradient(135deg,#172642,#10182c)!important;isolation:isolate!important}.station-helper>span:nth-child(2){min-width:0!important;overflow:hidden!important}.station-helper strong,.station-helper small{display:block!important;overflow-wrap:anywhere!important}.station-helper strong{font-size:11px!important;line-height:1.3!important}.station-helper small{font-size:9px!important;line-height:1.35!important}.station-helper .station-pixel{width:40px!important;height:40px!important;flex-basis:40px!important;margin-right:4px!important;overflow:visible!important}.buddy-speech{z-index:40!important;left:0!important;bottom:calc(100% + 10px)!important;width:min(270px,calc(100vw - 36px))!important;pointer-events:none!important}
.ef-runner{display:none!important}

.supporter-wall{display:flex!important;align-items:center!important;gap:14px!important;margin-top:14px!important;padding:14px!important}.supporter-wall-title{min-width:230px!important}.studio-supporters{display:flex!important;gap:7px!important;min-width:0!important;overflow-x:auto!important}.studio-supporter{flex:0 0 auto!important;max-width:175px!important}.supporter-join{white-space:nowrap!important}

.quick-hub{z-index:9701!important;width:min(530px,calc(100% - 24px))!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;padding:18px!important;border-radius:20px!important}.quick-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.quick-hub-grid>button{min-width:0!important;min-height:72px!important}.quick-hub-grid small{overflow-wrap:anywhere!important}.quick-hub-trigger{z-index:890!important}

@media(max-width:1050px){.content-grid{grid-template-columns:minmax(0,1fr)!important}.content-grid>div,.content-grid>.card{grid-column:1!important}.office-shelf{display:none!important}.office-plant{right:3%!important;transform:scale(.75)!important}}
@media(max-width:760px){.main{width:100%!important;padding-left:12px!important;padding-right:12px!important}.mini-studio{padding:13px!important}.studio-heading{gap:8px!important}.studio-heading h2{font-size:17px!important}.studio-heading p{font-size:10px!important}.studio-open{display:none!important}.office-scene{height:315px!important}.office-window{left:4%!important;top:19px!important;width:76px!important;height:50px!important;border-width:5px!important}.office-sign,.office-shelf{display:none!important}.office-plant{right:1%!important;bottom:46px!important;transform:scale(.55)!important}.desk-left{left:-28px!important;transform:scale(.68)!important;transform-origin:left bottom!important}.desk-right{right:58px!important;transform:scale(.54)!important;transform-origin:right bottom!important}.guide-character{left:calc(50% - 43px)!important;bottom:16px!important;transform:scale(.84)!important;transform-origin:bottom center!important}.guide-character:hover{transform:scale(.84) translateY(-3px)!important}.guide-character.walking{left:calc(100% - 105px)!important;transform:scale(.84)!important}.latest-site-door{right:6px!important;bottom:31px!important;width:64px!important;height:95px!important}.latest-site-door i{font-size:20px!important;margin-bottom:4px!important}.latest-site-door strong{font-size:8px!important}.latest-site-door small{font-size:7px!important}.studio-chat,.guide-speech{top:8px!important;width:calc(100% - 20px)!important;max-height:166px!important}.studio-chat{padding:10px!important}.chat-avatar{display:none!important}.chat-actions{gap:5px!important}.chat-action{min-height:39px!important;font-size:9px!important}.guide-speech{padding:11px!important}.station-helper{max-width:none!important}.buddy-speech{width:min(270px,calc(100vw - 40px))!important}.supporter-wall{align-items:flex-start!important;flex-wrap:wrap!important}.supporter-wall-title{min-width:100%!important}.studio-supporters{flex-basis:100%!important;order:3!important}.supporter-join{margin-left:auto!important}.quick-hub{left:12px!important;top:auto!important;bottom:12px!important;transform:translateY(24px) scale(.98)!important}.quick-hub.open{transform:none!important}.quick-hub-grid>button{min-height:66px!important;padding:9px!important}.quick-hub-grid b{font-size:11px!important}.quick-hub-grid small{font-size:8px!important}}
@media(max-width:390px){.office-scene{height:295px!important}.desk-right{display:none!important}.guide-character{left:calc(50% - 41px)!important;transform:scale(.78)!important}.guide-character:hover{transform:scale(.78) translateY(-3px)!important}.guide-character.walking{left:calc(100% - 98px)!important;transform:scale(.78)!important}.studio-chat,.guide-speech{max-height:154px!important}.quick-hub-grid{grid-template-columns:1fr 1fr!important}.quick-hub-grid>button>i{width:31px!important;height:31px!important}}
@media(prefers-reduced-motion:reduce){.guide-character,.station-helper,.studio-chat,.guide-speech,.buddy-speech{animation:none!important;transition:none!important}}

/* ── Front-facing office crew ──────────────────────────────────────────────
   Every point uses the same compact, front-facing capped pixel buddy. */
.station-helper{--buddy-cap:#2dd4bf;--buddy-shirt:#0ea5e9;min-height:58px!important;margin:0 0 12px!important;padding:8px 11px!important;border-color:rgba(56,189,248,.58)!important;background:linear-gradient(135deg,#122a46,#0d1a2d)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 8px 18px rgba(0,0,0,.16)!important}
.station-helper[data-guide-stop="qr-img"],.station-2{--buddy-cap:#f472b6;--buddy-shirt:#ec4899}.station-helper[data-guide-stop="request-name"],.station-3{--buddy-cap:#a78bfa;--buddy-shirt:#8b5cf6}.station-helper[data-guide-stop="line-sticker-card"],.station-4{--buddy-cap:#4ade80;--buddy-shirt:#22c55e}.station-helper[data-guide-stop="slot-reels"],.station-5{--buddy-cap:#f472b6;--buddy-shirt:#db2777}.station-helper[data-guide-stop="surprise-corner"],.station-6{--buddy-cap:#a855f7;--buddy-shirt:#7c3aed}.station-helper[data-guide-stop*="donors"],.station-8,.station-10{--buddy-cap:#fbbf24;--buddy-shirt:#f59e0b}.station-helper[data-guide-stop*="apps"],.station-7,.station-9{--buddy-cap:#38bdf8;--buddy-shirt:#0284c7}
.station-helper .station-pixel{position:relative!important;width:44px!important;height:46px!important;flex:0 0 44px!important;margin:0 5px 0 0!important;overflow:visible!important}
.station-helper .station-pixel .pixel-face{position:absolute!important;left:11px!important;top:10px!important;width:22px!important;height:21px!important;border:3px solid #101827!important;border-radius:0!important;background:#ffd0a8!important;box-shadow:none!important}
.station-helper .station-pixel .pixel-face:before{content:""!important;position:absolute!important;left:4px!important;top:10px!important;width:3px!important;height:3px!important;background:#172033!important;box-shadow:11px 0 #172033!important}
.station-helper .station-pixel .pixel-face:after{content:""!important;position:absolute!important;left:7px!important;top:16px!important;width:8px!important;height:2px!important;background:#c46666!important}
.station-helper .station-pixel .pixel-cap{position:absolute!important;z-index:2!important;left:7px!important;top:3px!important;width:30px!important;height:12px!important;border:3px solid #101827!important;border-bottom:0!important;border-radius:4px 4px 0 0!important;background:var(--buddy-cap)!important;box-shadow:none!important}
.station-helper .station-pixel .pixel-cap:before{content:""!important;position:absolute!important;left:7px!important;top:8px!important;width:13px!important;height:6px!important;border:3px solid #101827!important;border-top:0!important;border-radius:0 0 2px 2px!important;background:var(--buddy-cap)!important;box-shadow:none!important}
.station-helper .station-pixel .pixel-cap:after{display:none!important}
.station-helper .station-pixel b{position:absolute!important;z-index:1!important;left:8px!important;top:29px!important;width:28px!important;height:16px!important;border:3px solid #101827!important;border-radius:0!important;background:var(--buddy-shirt)!important;font:900 8px/1 monospace!important}
.station-helper>em{font-size:16px!important;color:#67e8f9!important}.station-helper strong{font-size:11px!important;color:#f8fafc!important}.station-helper small{font-size:9px!important;color:#94a3b8!important}

/* The guide and seated office crew use the same forward cap silhouette. */
.pixel-ef .guide-hair{left:2px!important;top:-10px!important;width:43px!important;height:15px!important;border:3px solid #101827!important;border-bottom:0!important;border-radius:7px 7px 0 0!important;background:#2563eb!important;box-shadow:none!important;transform:none!important}
.pixel-ef .guide-hair:before{content:""!important;position:absolute!important;left:10px!important;top:9px!important;width:16px!important;height:7px!important;border:3px solid #101827!important;border-top:0!important;border-radius:0 0 3px 3px!important;background:#2563eb!important}
.pixel-ef .guide-hair:after{content:""!important;display:block!important;left:17px!important;top:2px!important;width:9px!important;height:3px!important;border:0!important;border-radius:0!important;background:#93c5fd!important}
.worker-head:before{left:-2px!important;top:-7px!important;width:31px!important;height:10px!important;border-radius:4px 4px 0 0!important;background:#22c55e!important;box-shadow:none!important}.worker-video .worker-head:before{background:#ec4899!important}.worker-head:after{content:""!important;position:absolute!important;z-index:2!important;left:8px!important;top:1px!important;width:12px!important;height:5px!important;border-radius:0 0 2px 2px!important;background:#22c55e!important}.worker-video .worker-head:after{background:#ec4899!important}
.crew-promo-character i:before{height:9px!important;border-radius:3px 3px 0 0!important;background:#22c55e!important;box-shadow:none!important}.crew-promo-character i:after{content:""!important;position:absolute!important;left:8px!important;top:5px!important;width:13px!important;height:5px!important;background:#22c55e!important}.surprise-friend i:before,.surprise-friend i:after{background:#8b5cf6!important}

/* Sheet-fed supporter cards remain compact inside their own panel. */
[data-source="google-sheets"]{scroll-margin-top:20px}.desktop-sidebar .station-helper{max-width:100%!important}.desktop-sidebar .station-helper+.scrollable-widget{margin-top:0!important}.studio-supporters[data-source="google-sheets"]{min-height:42px!important}

/* ── Embedded office staff and Google Sheets supporter treatment ─────────── */
/* Buddy strips are deliberately part of each menu/card header, not a floating second card. */
.station-helper{min-height:62px!important;margin:0!important;padding:7px 3px 9px!important;border:0!important;border-bottom:1px solid rgba(56,189,248,.25)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.station-helper:hover{border-bottom-color:rgba(103,232,249,.75)!important;background:rgba(56,189,248,.04)!important;transform:none!important}.station-helper>em{padding-right:7px!important}.station-helper+.scrollable-widget{margin-top:8px!important}.station-helper+.dl-btn-wrapper,.station-helper+.qr-wrap,.station-helper+.slot-machine,.station-helper+.crew-promo{margin-top:12px!important}
.station-helper .station-pixel{width:48px!important;height:54px!important;flex-basis:48px!important}.station-helper .station-pixel .pixel-face{left:13px!important;top:10px!important;width:22px!important;height:21px!important}.station-helper .station-pixel .pixel-cap{left:9px!important;top:3px!important}.station-helper .station-pixel b{left:10px!important;top:30px!important;width:29px!important;height:18px!important;background:#f8fafc!important;color:#172033!important;text-shadow:none!important}.station-helper .station-pixel b:before{content:""!important;position:absolute!important;left:8px!important;top:2px!important;width:8px!important;height:6px!important;border-left:2px solid #64748b!important;border-right:2px solid #64748b!important;border-bottom:2px solid #64748b!important;transform:rotate(45deg)!important}.station-helper .station-pixel b:after{content:""!important;position:absolute!important;left:10px!important;top:6px!important;width:7px!important;height:7px!important;background:var(--buddy-shirt)!important}.station-helper .station-pixel:after{content:""!important;position:absolute!important;left:14px!important;top:47px!important;width:8px!important;height:5px!important;background:#334155!important;box-shadow:13px 0 #334155,0 4px #f8fafc,13px 4px #f8fafc!important}

/* F is the studio lead: a white long-sleeve shirt, tie, sneakers and a subtle glow. */
.guide-character{filter:drop-shadow(0 0 14px rgba(96,165,250,.32))!important}.guide-character:before{content:""!important;position:absolute!important;z-index:-1!important;left:6px!important;bottom:4px!important;width:80px!important;height:80px!important;border-radius:50%!important;background:radial-gradient(circle,rgba(96,165,250,.22),transparent 67%)!important}.guide-shirt{background:#f8fafc!important;border-color:#172033!important;border-radius:11px 11px 5px 5px!important;box-shadow:inset 0 -7px #e2e8f0!important}.guide-shirt i{color:#1e3a8a!important;font-family:Georgia,serif!important;font-size:18px!important}.guide-shirt:before{content:""!important;position:absolute!important;left:18px!important;top:0!important;width:12px!important;height:12px!important;border-left:3px solid #cbd5e1!important;border-right:3px solid #cbd5e1!important;border-bottom:3px solid #cbd5e1!important;transform:rotate(45deg)!important}.guide-shirt:after{content:""!important;position:absolute!important;left:22px!important;top:14px!important;width:7px!important;height:23px!important;border-radius:0 0 4px 4px!important;background:#2563eb!important}.guide-arm{background:#f8fafc!important;border-color:#172033!important}.guide-arm:after{content:""!important;position:absolute!important;bottom:-5px!important;left:1px!important;width:8px!important;height:8px!important;border-radius:0 0 4px 4px!important;background:#ffd0a8!important}.guide-leg{background:#1e293b!important;border-color:#172033!important}.guide-leg:after{content:""!important;position:absolute!important;left:-4px!important;bottom:-5px!important;width:21px!important;height:8px!important;border:3px solid #172033!important;border-radius:7px 7px 3px 3px!important;background:#f8fafc!important}

/* The two office workers share the white-shirt, front-cap uniform at real desks. */
.worker-body{background:#f8fafc!important;border:2px solid #172033!important;border-bottom:0!important;border-radius:8px 8px 2px 2px!important}.worker-video .worker-body{background:#f8fafc!important}.worker-body:after{content:""!important;position:absolute!important;left:15px!important;top:4px!important;width:6px!important;height:20px!important;background:#2563eb!important}.worker-video .worker-body:after{background:#db2777!important}.tiny-worker:after{content:""!important;position:absolute!important;z-index:-1!important;left:4px!important;top:30px!important;width:35px!important;height:39px!important;border:4px solid #334155!important;border-radius:8px 8px 3px 3px!important;background:#1e293b!important}.monitor{border-radius:2px!important;box-shadow:0 0 0 3px #475569,0 5px 0 rgba(0,0,0,.24)!important}.keyboard{height:7px!important;border-radius:1px!important}.desk-top{height:10px!important;border-radius:1px!important;background:#956b48!important}.desk-leg{width:9px!important;background:#5b4233!important}

/* The supporter list keeps the Sheet emoji at the front; the wall is an amount-sorted Top 3 name wall. */
.lb-rank{min-width:30px!important;height:30px!important;display:grid!important;place-items:center!important;font-size:17px!important;background:rgba(255,255,255,.07)!important}.lb-item.donor-rank-1 .lb-rank,.lb-item.donor-rank-2 .lb-rank,.lb-item.donor-rank-3 .lb-rank{background:rgba(255,255,255,.1)!important;color:inherit!important}.studio-supporters{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important}.studio-supporter{position:relative!important;justify-content:center!important;min-width:0!important;max-width:none!important;min-height:54px!important;padding:9px 8px!important;border-radius:12px!important;text-align:center!important;white-space:normal!important}.studio-supporter i.supporter-rank-emoji{display:block!important;margin:0 0 4px!important;font-size:17px!important;font-style:normal!important;line-height:1!important}.studio-supporter b{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important}.studio-supporter em{display:none!important}.studio-supporter.donor-rank-1{transform:translateY(-3px)!important}.studio-supporter.donor-rank-1:before{content:"TOP 1"!important;position:absolute!important;top:-9px!important;left:50%!important;transform:translateX(-50%)!important;padding:2px 5px!important;border-radius:99px!important;background:#fbbf24!important;color:#352000!important;font:900 7px sans-serif!important}.studio-supporter.donor-rank-2:before{content:"TOP 2"!important}.studio-supporter.donor-rank-3:before{content:"TOP 3"!important}.studio-supporter.donor-rank-2:before,.studio-supporter.donor-rank-3:before{position:absolute!important;top:-8px!important;left:50%!important;transform:translateX(-50%)!important;padding:2px 5px!important;border-radius:99px!important;background:#cbd5e1!important;color:#1e293b!important;font:900 7px sans-serif!important}.studio-supporter.donor-rank-3:before{background:#d97706!important;color:#fff!important}
@media(max-width:760px){.station-helper{min-height:59px!important}.station-helper+.scrollable-widget{margin-top:7px!important}.studio-supporters{grid-template-columns:repeat(3,minmax(0,1fr))!important}.studio-supporter{min-height:49px!important;padding:8px 4px!important}.studio-supporter b{font-size:9px!important}}
@media(max-width:390px){.studio-supporters{grid-template-columns:1fr!important}.studio-supporter{min-height:42px!important;display:flex!important;align-items:center!important;gap:6px!important;text-align:left!important}.studio-supporter i.supporter-rank-emoji{margin:0!important}.studio-supporter.donor-rank-1{transform:none!important}.studio-supporter.donor-rank-1:before,.studio-supporter.donor-rank-2:before,.studio-supporter.donor-rank-3:before{position:static!important;transform:none!important;order:3!important;margin-left:auto!important}}

/* ── Balanced side workstations ────────────────────────────────────────────
   The Sticker and Random desks share one floor line, like the paired stations
   in the Pixel Agents office reference, so neither side leaves a visual void. */
@media(min-width:1051px){
  .content-grid{align-items:stretch!important}
  .content-grid>.office-side-column{align-self:stretch!important;min-height:0!important;height:100%!important}
  .office-side-column>.crew-promo{flex:0 0 178px!important;min-height:178px!important;margin-top:auto!important}
  .office-side-column-left>#line-sticker-card,.office-side-column-right>#surprise-corner{margin-bottom:0!important}
}
.office-side-column>.crew-promo{position:relative!important;isolation:isolate!important;overflow:hidden!important;align-items:flex-end!important;padding-bottom:18px!important}
.office-side-column>.crew-promo:before{content:""!important;position:absolute!important;z-index:-1!important;left:16px!important;right:16px!important;bottom:13px!important;height:2px!important;background:linear-gradient(90deg,transparent,rgba(103,232,249,.36),transparent)!important;box-shadow:0 5px 0 rgba(255,255,255,.035)!important}
.office-side-column>.crew-promo-character{align-self:flex-end!important;margin-bottom:2px!important}
.office-side-column>.crew-promo-copy{align-self:center!important;padding-bottom:5px!important}
@media(max-width:1050px){.office-side-column>.crew-promo{min-height:156px!important;margin-top:0!important}.office-side-column>.crew-promo-copy{padding-bottom:0!important}}


/* ========================================= */
/* 🚀 โค้ดแก้บั๊กทั้งหมด (บังคับทับโค้ดเดิม) 🚀 */
/* ========================================= */

/* 1. บังคับให้ "กล่องบน" (Subscribe) ขยายเต็มพื้นที่ที่เหลือ */
.right-card {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}
.right-sub-box {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* ดันเนื้อหาให้อยู่กึ่งกลางสวยๆ */
}

/* 1.1 ยกเลิกการขยายกล่องวิดีโอ (เพื่อให้กล่องบนขยายแทน) */
.tutorial-wrap {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  /* เอา flex: 1 ออกจากตรงนี้แล้ว */
}

/* 2. แก้ขอบตัวละครแหว่ง (วาดเส้นขอบล่างให้เต็ม) */
.station-helper .station-pixel .pixel-cap,
.pixel-ef .guide-hair {
  border-bottom: 3px solid #101827 !important;
}
.worker-body {
  border-bottom: 2px solid #172033 !important;
}

/* 3. ลูกศรชี้ลงแบบ CSS สามเหลี่ยมทึบ (Custom Arrow) */
.custom-arrow-down {
  display: inline-block !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 12px solid transparent !important; 
  border-right: 12px solid transparent !important; 
  border-top: 18px solid #4ade80 !important;
  margin-bottom: 8px !important;
}

/* 4. ปลดล็อคความกว้างแถบน้องๆ ให้เส้นขีดล่างยาวเต็มกล่อง */
.station-helper {
  width: 100% !important;
  max-width: 100% !important;
}

/* Mini Studio final layer: Pixel Agents assets, one responsive coordinate system. */
.mini-studio{--studio-edge:#67e8f9;--studio-ink:#091224;overflow:visible!important}
.mini-studio .studio-kicker,.mini-studio .office-sign,.mini-studio .guide-name,.mini-studio .worker-label{font-family:Sarabun,sans-serif;font-weight:800}
.mini-studio .latest-site-door{z-index:4}

.mini-studio .guide-character{left:calc(50% - 32px)!important;bottom:30px!important;width:64px!important;height:108px!important;filter:drop-shadow(0 0 13px rgba(96,165,250,.3))!important}
.mini-studio .guide-character:before{left:-7px!important;bottom:5px!important;width:78px!important;height:78px!important}
.mini-studio .guide-character:after{content:"";position:absolute;left:8px;top:0;width:48px;height:96px;background:url("assets/mini-studio/agent-f.png") 0 0/336px 288px no-repeat;image-rendering:pixelated;filter:drop-shadow(3px 4px 0 rgba(5,10,22,.32));animation:pixelAgentIdle 1.8s steps(1) infinite}
.mini-studio .guide-character .guide-body,.mini-studio .guide-character .guide-shadow{display:none!important}
.mini-studio .guide-name{z-index:2;bottom:-2px!important;min-width:112px!important;max-width:126px!important;padding:5px 8px!important;border:2px solid #172033!important;background:#eff6ff!important;color:#17376f!important;box-shadow:3px 3px 0 rgba(5,10,22,.32);font-size:9px!important;line-height:1.15}
.mini-studio .guide-character:hover:after,.mini-studio .guide-character:focus-visible:after{transform:translateY(-3px)}
.mini-studio .guide-character.walking{left:calc(100% - 132px)!important;animation:studioWalk .18s linear 5}
.mini-studio .guide-character.walking:after{animation:pixelAgentWalk .42s steps(1) infinite}
@keyframes pixelAgentIdle{0%,49%{background-position:0 0}50%,100%{background-position:-48px 0}}
@keyframes pixelAgentWalk{0%,32%{background-position:0 0}33%,65%{background-position:-48px 0}66%,100%{background-position:-96px 0}}

.mini-studio .studio-chat,.mini-studio .guide-speech{left:50%!important;top:12px!important;bottom:auto!important;width:min(430px,calc(100% - 30px))!important;max-height:202px!important;overflow:auto!important;transform:translate(-50%,-6px) scale(.98)!important;z-index:30!important}
.mini-studio .studio-chat.open{transform:translate(-50%,0) scale(1)!important}
.mini-studio .studio-chat:after{display:none!important}
.mini-studio .chat-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.mini-studio .chat-action{min-width:0!important;min-height:38px!important}

/* Keep every helper's underline and arrow in its own grid cell. */
.station-helper{box-sizing:border-box!important;display:grid!important;grid-template-columns:52px minmax(0,1fr) 24px!important;align-items:center!important;column-gap:8px!important;overflow:visible!important}
.station-helper .station-pixel{grid-column:1!important;grid-row:1!important;margin:0!important}
.station-helper>span:not(.station-pixel){grid-column:2!important;min-width:0!important}
.station-helper>em{grid-column:3!important;justify-self:center!important;align-self:center!important;padding:0!important;margin:0!important;line-height:1!important;transform:none!important}
.station-helper:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(103,232,249,.48),transparent);pointer-events:none}

@media(max-width:760px){
  .mini-studio .office-scene{height:306px!important;background-size:auto,96px 192px!important}
  .mini-studio .office-floor{height:94px!important;background-size:auto,40px 40px!important}
  .mini-studio .desk-left{left:-29px!important;transform:scale(.65)!important}
  .mini-studio .desk-right{right:51px!important;display:block!important;transform:scale(.52)!important}
  .mini-studio .guide-character{left:calc(50% - 30px)!important;bottom:22px!important;transform:scale(.88)!important}
  .mini-studio .guide-character:hover{transform:scale(.88)!important}
  .mini-studio .guide-character.walking{left:calc(100% - 101px)!important;transform:scale(.88)!important}
  .mini-studio .latest-site-door{right:6px!important;bottom:35px!important;width:62px!important;height:92px!important}
  .mini-studio .studio-chat,.mini-studio .guide-speech{top:8px!important;width:calc(100% - 18px)!important;max-height:166px!important}
  .mini-studio .chat-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:390px){
  .mini-studio .office-scene{height:288px!important}
  .mini-studio .desk-left{left:-34px!important;transform:scale(.59)!important}
  .mini-studio .desk-right{display:none!important}
  .mini-studio .guide-character{left:calc(50% - 29px)!important;transform:scale(.82)!important}
  .mini-studio .guide-character:hover{transform:scale(.82)!important}
  .mini-studio .guide-character.walking{left:calc(100% - 94px)!important;transform:scale(.82)!important}
  .mini-studio .studio-chat,.mini-studio .guide-speech{max-height:154px!important}
  .mini-studio .chat-action{font-size:8px!important}
  .station-helper{grid-template-columns:48px minmax(0,1fr) 22px!important;column-gap:6px!important}
}

/* Exact transparent sprite crops for every guide station. */
.station-helper .station-pixel{display:grid!important;place-items:center!important;width:56px!important;height:62px!important;flex-basis:56px!important;overflow:visible!important}
.station-helper .station-pixel:before,.station-helper .station-pixel:after,.station-helper .station-pixel i,.station-helper .station-pixel b{display:none!important;content:none!important}
.station-helper .station-pixel img{display:block!important;width:56px!important;height:56px!important;object-fit:contain!important;image-rendering:pixelated;filter:drop-shadow(2px 3px 0 rgba(0,0,0,.28))}
.station-helper{grid-template-columns:62px minmax(0,1fr) 28px!important;min-height:76px!important;padding:7px 8px 10px!important;border-bottom:0!important}
.station-helper:after{left:0!important;right:0!important;bottom:0!important;height:2px!important;background:linear-gradient(90deg,transparent 0,var(--buddy-cap,#38bdf8) 12%,var(--buddy-cap,#38bdf8) 88%,transparent 100%)!important;opacity:.7}
.station-helper>span:not(.station-pixel){align-self:center!important;overflow:visible!important}
.station-helper strong,.station-helper small{overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere!important}
.station-helper>em{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;border-radius:50%!important;background:rgba(103,232,249,.08)!important;color:#67e8f9!important;font-size:17px!important;line-height:1!important}

/* Viewport-level speech bubbles cannot be clipped by cards or sidebars. */
.buddy-speech{position:fixed!important;z-index:10000!important;left:var(--bubble-left,10px)!important;top:var(--bubble-top,10px)!important;right:auto!important;bottom:auto!important;width:min(320px,calc(100vw - 20px))!important;max-width:none!important;min-height:44px!important;box-sizing:border-box!important;padding:10px 13px!important;overflow-wrap:anywhere!important;white-space:normal!important;pointer-events:none!important;transform:none!important}
.buddy-speech:after{left:var(--pointer-x,50%)!important;top:100%!important;bottom:auto!important;transform:translateX(-50%) rotate(45deg)!important}
.buddy-speech.below:after{top:-6px!important;bottom:auto!important;transform:translateX(-50%) rotate(225deg)!important}

/* Long Google Sheets feedback: wrap naturally without clipping names or text. */
#feedback-feed{max-height:360px!important;overflow-x:hidden!important;overflow-y:auto!important;padding:4px 5px 4px 0!important;overscroll-behavior:contain}
#feedback-feed .req-item{box-sizing:border-box!important;width:100%!important;min-height:58px!important;padding:11px 13px!important;overflow:visible!important}
#feedback-feed .req-name{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important;min-width:0!important;line-height:1.45!important;overflow-wrap:anywhere!important}
#feedback-feed .req-name>span{float:none!important;flex:0 0 auto!important;max-width:38%!important;text-align:right!important;white-space:normal!important;overflow-wrap:anywhere!important}
#feedback-feed .req-msg{display:block!important;max-height:none!important;overflow:visible!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.65!important}
#request-msg{min-height:92px!important;max-height:260px!important;resize:vertical!important;line-height:1.55!important}
.request-count{margin-top:-5px;text-align:right;color:var(--text3);font-size:10px;font-variant-numeric:tabular-nums;transition:color .2s ease}
.request-count.near-limit{color:#fbbf24}
#request-submit:disabled{cursor:wait!important;opacity:.62;transform:none!important;filter:saturate(.7)}

@media(max-width:760px){
  .station-helper{grid-template-columns:58px minmax(0,1fr) 26px!important;min-height:72px!important}
  .station-helper .station-pixel,.station-helper .station-pixel img{width:52px!important;height:52px!important}
  #feedback-feed{max-height:420px!important}
}
@media(max-width:390px){
  .station-helper{grid-template-columns:52px minmax(0,1fr) 24px!important;padding-inline:4px!important}
  .station-helper .station-pixel,.station-helper .station-pixel img{width:48px!important;height:48px!important}
  #feedback-feed .req-name{flex-direction:column!important;gap:2px!important}
  #feedback-feed .req-name>span{max-width:100%!important;text-align:left!important}
}

/* Exact office artwork requested by the owner; interactive controls stay above it. */
.mini-studio .office-scene{height:auto!important;min-height:360px!important;aspect-ratio:1308/521!important;background-color:#151827!important;background-image:url("assets/mini-studio/pixel-office-clean.png")!important;background-repeat:no-repeat!important;background-position:center!important;background-size:100% 100%!important;box-shadow:inset 0 0 0 3px #111827,0 12px 28px rgba(0,0,0,.3)!important}
.mini-studio .office-scene:before,.mini-studio .office-backdrop,.mini-studio .work-desk,.mini-studio .office-floor{display:none!important}
.mini-studio .guide-character{bottom:22px!important}
.mini-studio .latest-site-door{bottom:24px!important;background:rgba(17,24,39,.94)!important;backdrop-filter:blur(5px)}
@media(max-width:760px){
  .mini-studio .office-scene{height:300px!important;min-height:300px!important;aspect-ratio:auto!important;background-size:cover!important;background-position:center!important}
  .mini-studio .guide-character{bottom:16px!important}
}
@media(max-width:390px){
  .mini-studio .office-scene{height:276px!important;min-height:276px!important;background-position:46% center!important}
}

/* The people already painted into the office are interactive via aligned hotspots. */
.scene-character-hotspot{position:absolute;z-index:8;left:var(--hotspot-left);top:var(--hotspot-top);width:5.4%;min-width:30px;aspect-ratio:1/1.25;padding:0;border:2px solid transparent;border-radius:45%;background:transparent;transform:translate(-50%,-50%);cursor:pointer;transition:border-color .18s,background .18s,filter .18s,transform .18s}
.scene-character-hotspot:after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 4px);padding:3px 6px;border:1px solid rgba(103,232,249,.55);border-radius:6px;background:#111827;color:#a5f3fc;font:800 7px/1 Sarabun,sans-serif;white-space:nowrap;opacity:0;transform:translate(-50%,4px);transition:.18s;pointer-events:none}
.scene-character-hotspot:hover,.scene-character-hotspot:focus-visible{border-color:rgba(103,232,249,.9);background:radial-gradient(circle,rgba(103,232,249,.2),transparent 68%);filter:drop-shadow(0 0 7px rgba(103,232,249,.75));outline:0}
.scene-character-hotspot:hover:after,.scene-character-hotspot:focus-visible:after{opacity:1;transform:translate(-50%,0)}
.scene-character-hotspot.greeting{transform:translate(-50%,-55%) scale(1.08);border-color:#fde68a;background:radial-gradient(circle,rgba(253,230,138,.2),transparent 68%)}

/* Card maker is now a small wall/shelf object inside the room. */
.mini-studio .latest-site-door{right:13%!important;top:5%!important;bottom:auto!important;width:76px!important;height:64px!important;border-radius:4px!important;border:3px solid #172033!important;background:linear-gradient(#173352,#101827)!important;box-shadow:inset 0 0 0 2px #3b82a0,3px 4px 0 rgba(0,0,0,.3)!important;transform:none!important}
.mini-studio .latest-site-door:hover,.mini-studio .latest-site-door.is-target{transform:translateY(-3px) scale(1.04)!important}
.mini-studio .latest-site-door i{font-size:18px!important;margin-bottom:2px!important}.mini-studio .latest-site-door strong{font-size:8px!important}.mini-studio .latest-site-door small{font-size:6px!important}.mini-studio .door-new{right:-7px!important;top:-8px!important}
.mini-studio .guide-character{z-index:15!important;left:calc(50% - 32px)!important;bottom:10px!important;transform:scale(1.08)!important;filter:drop-shadow(0 0 11px rgba(96,165,250,.85))!important}
.mini-studio .guide-character:hover{transform:scale(1.08) translateY(-4px)!important}

@media(max-width:760px){
  .scene-character-hotspot{width:8%;min-width:28px}.scene-character-hotspot:after{display:none}
  .mini-studio .latest-site-door{right:7px!important;top:7px!important;width:58px!important;height:52px!important}
  .mini-studio .latest-site-door small{display:none}.mini-studio .latest-site-door i{font-size:15px!important}
  .mini-studio .guide-character{left:calc(50% - 30px)!important;bottom:8px!important;transform:scale(.9)!important}
  .mini-studio .guide-character:hover{transform:scale(.9) translateY(-3px)!important}
}
@media(max-width:390px){.scene-character-hotspot{width:9%;min-width:25px}}

/* Final Mini Studio geometry: equal gutters and one coordinate system at every viewport. */
.mini-studio{box-sizing:border-box!important}
.mini-studio .office-scene{box-sizing:border-box!important;width:100%!important;margin-inline:0!important}
.mini-studio .latest-site-door{right:15.5%!important}
.station-helper .station-pixel,.station-helper .station-pixel img{width:60px!important;height:60px!important;flex-basis:60px!important}
@media(max-width:760px){
  .mini-studio .office-scene{height:auto!important;min-height:0!important;aspect-ratio:1308/521!important;background-size:100% 100%!important;background-position:center!important}
  .mini-studio .latest-site-door{right:8%!important;top:5%!important;width:54px!important;height:48px!important}
  .scene-character-hotspot{width:9%;min-width:40px;min-height:40px}
  .station-helper .station-pixel,.station-helper .station-pixel img{width:54px!important;height:54px!important;flex-basis:54px!important}
}
@media(max-width:390px){
  .mini-studio .office-scene{height:auto!important;min-height:0!important;aspect-ratio:1308/521!important;background-position:center!important}
  .mini-studio .guide-character{bottom:3px!important;transform:scale(.72)!important}
  .scene-character-hotspot{width:11%;min-width:40px;min-height:40px}
  .station-helper .station-pixel,.station-helper .station-pixel img{width:50px!important;height:50px!important;flex-basis:50px!important}
}

/* Put the card maker on the empty middle passage and keep F's stage clear. */
.mini-studio .latest-site-door{
  left:54%!important;
  right:auto!important;
  top:29%!important;
  bottom:auto!important;
  z-index:7!important;
  transform:translateX(-50%)!important;
}
.mini-studio .latest-site-door:hover,
.mini-studio .latest-site-door:focus-visible,
.mini-studio .latest-site-door.is-target{
  transform:translateX(-50%) translateY(-3px) scale(1.04)!important;
}
.mini-studio .guide-character{
  z-index:20!important;
}
.mini-studio .guide-character::before,
.mini-studio .guide-character::after,
.mini-studio .guide-name{
  z-index:21!important;
}
@media(max-width:760px){
  .mini-studio .latest-site-door{
    left:54%!important;
    top:27%!important;
  }
}
@media(max-width:390px){
  .mini-studio .latest-site-door{
    left:34%!important;
  }
}

/* Final polish: complete copy, real promo sprites, animated painted crew and full supporter wall. */
.crew-promo-character.sticker-friend,
.crew-promo-character.surprise-friend{
  width:72px!important;
  height:72px!important;
  flex:0 0 72px!important;
  overflow:visible!important;
}
.crew-promo-character.sticker-friend>i,
.crew-promo-character.sticker-friend>b,
.crew-promo-character.sticker-friend>em,
.crew-promo-character.surprise-friend>i,
.crew-promo-character.surprise-friend>b,
.crew-promo-character.surprise-friend>em{display:none!important}
.crew-promo-character>img{
  display:block!important;
  width:72px!important;
  height:72px!important;
  object-fit:contain!important;
  image-rendering:pixelated;
  filter:drop-shadow(2px 3px 0 rgba(0,0,0,.3));
  animation:promoBuddyIdle 2.8s steps(2,end) infinite;
}
.surprise-friend>img{animation-delay:-1.1s}
@keyframes promoBuddyIdle{0%,82%,100%{transform:translateY(0)}88%{transform:translateY(-3px)}94%{transform:translateY(-1px)}}

.station-helper>span:not(.station-pixel){overflow:visible!important}
.station-helper strong,
.station-helper small{
  max-width:none!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  text-overflow:clip!important;
  overflow:visible!important;
}

/* The invisible hit areas follow the painted people without showing mismatched coloured outlines. */
.scene-character-hotspot{
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}
.scene-character-hotspot:hover,
.scene-character-hotspot:focus-visible,
.scene-character-hotspot.greeting{
  border:0!important;
  background:transparent!important;
  filter:none!important;
  transform:translate(-50%,-50%)!important;
}
/* Keep F on the empty left stage and mount the card on the central passage wall. */
.mini-studio .guide-character{
  left:7.5%!important;
  bottom:3.5%!important;
  transform:scale(.74)!important;
  transform-origin:bottom center!important;
}
.mini-studio .guide-character:hover{transform:scale(.74) translateY(-3px)!important}
.mini-studio .guide-character.walking{left:calc(100% - 132px)!important}
.mini-studio .latest-site-door{
  left:52.5%!important;
  top:35%!important;
  width:68px!important;
  height:56px!important;
}

/* Show every supporter in one horizontal, touch-scrollable wall. */
.supporter-wall{
  display:grid!important;
  grid-template-columns:minmax(210px,260px) minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
}
.studio-supporters,
.studio-supporters[data-source="google-sheets"]{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:9px!important;
  min-width:0!important;
  min-height:66px!important;
  padding:10px 3px 7px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
  scrollbar-color:rgba(103,232,249,.55) rgba(255,255,255,.06);
}
.studio-supporter{
  flex:0 0 138px!important;
  min-width:138px!important;
  max-width:138px!important;
  scroll-snap-align:start;
}

/* Feedback cards grow with the complete message; only the list itself scrolls when very long. */
#feedback-feed{
  box-sizing:border-box!important;
  width:100%!important;
  max-height:min(520px,65vh)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
#feedback-feed .req-item{
  height:auto!important;
  max-height:none!important;
  contain:none!important;
  overflow:visible!important;
}
#feedback-feed .req-name,
#feedback-feed .req-msg{
  height:auto!important;
  max-height:none!important;
  min-width:0!important;
  overflow:visible!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  text-wrap:pretty;
  -webkit-line-clamp:unset!important;
  -webkit-box-orient:initial!important;
}
#feedback-feed .req-msg{font-size:12px!important;line-height:1.75!important}

@media(max-width:760px){
  .mini-studio .guide-character{left:7%!important;bottom:4%!important;transform:scale(.68)!important}
  .mini-studio .guide-character:hover{transform:scale(.68) translateY(-3px)!important}
  .mini-studio .latest-site-door{left:52.5%!important;top:34%!important;width:50px!important;height:44px!important}
  .supporter-wall{display:flex!important;align-items:center!important;flex-wrap:wrap!important}
  .supporter-wall-title{flex:1 1 100%!important;min-width:100%!important}
  .supporter-wall-title strong{white-space:nowrap!important;word-break:keep-all!important}
  .supporter-wall-title small{word-break:keep-all!important;overflow-wrap:normal!important}
  .supporter-join{margin-left:auto!important}
  .studio-supporters{flex:1 1 100%!important;width:100%!important;order:3!important}
  .studio-supporter{flex-basis:126px!important;min-width:126px!important;max-width:126px!important}
  #feedback-feed{max-height:70vh!important}
}
@media(max-width:390px){
  .station-helper strong{font-size:10px!important}
  .station-helper small{font-size:8px!important}
  .mini-studio .guide-character{left:7%!important;transform:scale(.58)!important}
  .mini-studio .guide-character:hover{transform:scale(.58) translateY(-3px)!important}
  .mini-studio .latest-site-door{left:52.5%!important;top:33%!important;width:46px!important;height:40px!important}
}

/* Pixel Agents sprite states: full 16x32 frames replace the cropped-background hover effect. */
.scene-character-hotspot::before{
  content:""!important;
  position:absolute!important;
  z-index:0!important;
  left:50%!important;
  top:50%!important;
  inset:auto!important;
  width:46%!important;
  height:auto!important;
  aspect-ratio:1/2!important;
  background-color:transparent!important;
  background-image:var(--scene-sprite)!important;
  background-repeat:no-repeat!important;
  background-size:700% 300%!important;
  background-position:0 0;
  clip-path:none!important;
  filter:drop-shadow(1px 2px 0 rgba(4,10,22,.38));
  transform:translate(-50%,-50%);
  transform-origin:center bottom;
  image-rendering:pixelated;
  pointer-events:none!important;
}
.scene-character-hotspot::after{z-index:2!important}
.scene-state-walk-down::before{animation:sceneWalkDown .72s steps(1,end) var(--idle-delay,0s) infinite!important}
.scene-state-idle-down::before{animation:sceneIdleDown 2.8s steps(1,end) var(--idle-delay,0s) infinite!important}
.scene-state-rest-down::before{animation:none!important;background-position:50% 0!important}
.scene-state-type-down::before{animation:sceneTypeDown .9s steps(1,end) var(--idle-delay,0s) infinite!important}
.scene-state-type-up::before{animation:sceneTypeUp .9s steps(1,end) var(--idle-delay,0s) infinite!important}
.scene-state-type-right::before{animation:sceneTypeRight .9s steps(1,end) var(--idle-delay,0s) infinite!important}
.scene-state-type-left::before{animation:sceneTypeLeft .9s steps(1,end) var(--idle-delay,0s) infinite!important;transform:translate(-50%,-50%) scaleX(-1)}
.scene-state-type-left:hover::before,
.scene-state-type-left:focus-visible::before,
.scene-state-type-left.greeting::before{transform:translate(-50%,calc(-50% - 2px)) scaleX(-1) scale(1.04)!important}
.scene-hotspot-1{animation:scenePatrolRoute 7.2s ease-in-out infinite!important}
.scene-state-patrol::before{animation:scenePatrolFrames 7.2s steps(1,end) infinite!important}
.scene-hotspot-1:hover,
.scene-hotspot-1:focus-visible,
.scene-hotspot-1.speaking,
.scene-hotspot-1:hover::before,
.scene-hotspot-1:focus-visible::before,
.scene-hotspot-1.speaking::before{animation-play-state:paused!important}
.scene-character-hotspot:hover::before,
.scene-character-hotspot:focus-visible::before,
.scene-character-hotspot.greeting::before{
  clip-path:none!important;
  filter:drop-shadow(0 0 4px rgba(103,232,249,.75)) drop-shadow(1px 2px 0 rgba(4,10,22,.42))!important;
  transform:translate(-50%,calc(-50% - 2px)) scale(1.04)!important;
}
.scene-state-type-left:hover::before,
.scene-state-type-left:focus-visible::before,
.scene-state-type-left.greeting::before{
  transform:translate(-50%,calc(-50% - 2px)) scaleX(-1) scale(1.04)!important;
}
@media(hover:none){
  .scene-character-hotspot:hover::before{filter:drop-shadow(1px 2px 0 rgba(4,10,22,.38))!important}
  .scene-state-type-left:hover::before{transform:translate(-50%,-50%) scaleX(-1)!important}
}
@keyframes sceneWalkDown{
  0%,100%{background-position:0 0}
  25%{background-position:16.6667% 0}
  50%{background-position:33.3333% 0}
  75%{background-position:16.6667% 0}
}
@keyframes sceneIdleDown{
  0%,84%,100%{background-position:0 0}
  88%,96%{background-position:16.6667% 0}
}
@keyframes sceneTypeDown{
  0%,49%{background-position:50% 0}
  50%,100%{background-position:66.6667% 0}
}
@keyframes sceneTypeUp{
  0%,49%{background-position:50% 50%}
  50%,100%{background-position:66.6667% 50%}
}
@keyframes sceneTypeRight{
  0%,49%{background-position:50% 100%}
  50%,100%{background-position:66.6667% 100%}
}
@keyframes sceneTypeLeft{
  0%,49%{background-position:50% 100%}
  50%,100%{background-position:66.6667% 100%}
}
@keyframes scenePatrolRoute{
  0%,6%,100%{top:48%}
  43%,55%{top:70%}
  94%{top:48%}
}
@keyframes scenePatrolFrames{
  0%,40%,100%{background-position:0 0}
  10%,30%{background-position:16.6667% 0}
  20%{background-position:33.3333% 0}
  50%,90%{background-position:0 50%}
  60%,80%{background-position:16.6667% 50%}
  70%{background-position:33.3333% 50%}
}
@media(prefers-reduced-motion:reduce){
  .scene-character-hotspot,.scene-character-hotspot::before{animation:none!important;background-position:0 0!important}
}

/* Exact final anchors: F's label follows F; the card sits in the brown gap between bookcases. */
.mini-studio .guide-name{
  left:50%!important;
  right:auto!important;
  bottom:-4px!important;
  transform:translateX(-50%)!important;
  text-align:center!important;
}
.mini-studio .latest-site-door{
  left:33%!important;
  right:auto!important;
  top:5%!important;
  bottom:auto!important;
  width:68px!important;
  height:56px!important;
}
@media(max-width:760px){
  .mini-studio .latest-site-door{
    left:33%!important;
    top:4%!important;
    width:44px!important;
    height:44px!important;
  }
  .mini-studio .latest-site-door i{font-size:11px!important;margin:0!important}
  .mini-studio .latest-site-door strong,
  .mini-studio .latest-site-door small{display:none!important}
  .mini-studio .door-new{right:-8px!important;top:-7px!important;transform:scale(.82)}
}

/* Native card-maker link: reliable navigation without popup blockers. */
.guide-speech a.guide-speech-go{
  display:grid!important;
  place-items:center!important;
  min-height:36px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:8px!important;
  text-decoration:none!important;
  font:800 10px/1.2 inherit!important;
  cursor:pointer!important;
}

/* Touch controls: immediate taps without sticky hover movement on phones/tablets. */
.mini-studio button,
.mini-studio a,
.station-helper,
.quick-hub button{
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
@media(hover:none){
  .mini-studio .guide-character:hover{transform:scale(.74)!important}
  .mini-studio .latest-site-door:hover{transform:translateX(-50%)!important}
  .mini-studio .chat-action{min-height:40px}
}
@media(hover:none) and (max-width:760px){
  .mini-studio .guide-character:hover{transform:scale(.68)!important}
}
@media(hover:none) and (max-width:390px){
  .mini-studio .guide-character:hover{transform:scale(.58)!important}
}

/* Keep one-line buddy copy inside its column so it never touches the arrow. */
.station-helper>span:not(.station-pixel){
  min-width:0!important;
  padding-right:5px!important;
  overflow:hidden!important;
}
.station-helper strong,
.station-helper small{
  display:block!important;
  width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.station-helper>em{
  position:relative!important;
  z-index:2!important;
}

/* Give the tools and thank-you buddies enough height for their second line. */
.station-helper[data-guide-stop*="apps-container"],
.station-helper[data-guide-stop*="donors-container"]{
  min-height:86px!important;
  padding-block:9px 11px!important;
}
.station-helper[data-guide-stop*="apps-container"]>span:not(.station-pixel),
.station-helper[data-guide-stop*="donors-container"]>span:not(.station-pixel){
  overflow:visible!important;
}
.station-helper[data-guide-stop*="apps-container"] small,
.station-helper[data-guide-stop*="donors-container"] small{
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  line-height:1.45!important;
}
@media(max-width:760px){
  .station-helper[data-guide-stop*="apps-container"],
  .station-helper[data-guide-stop*="donors-container"]{min-height:82px!important}
}

/* Automatic supporter ranking badges need a little room for emoji + rank. */
.lb-rank{
  min-width:38px!important;
  padding-inline:4px!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
}
.lb-rank.rank-regular{
  border:1px solid rgba(244,114,182,.25)!important;
  background:linear-gradient(145deg,rgba(244,114,182,.13),rgba(139,92,246,.09))!important;
  color:#fbcfe8!important;
  font:900 16px/1 system-ui,sans-serif!important;
  box-shadow:inset 0 0 12px rgba(244,114,182,.06)!important;
}
.studio-supporter .supporter-rank-emoji.regular{
  display:inline-grid!important;
  place-items:center!important;
  width:30px!important;
  height:22px!important;
  margin:0 auto 5px!important;
  border:1px solid rgba(244,114,182,.25)!important;
  border-radius:99px!important;
  background:linear-gradient(145deg,rgba(244,114,182,.12),rgba(139,92,246,.08))!important;
  color:#fbcfe8!important;
  font:900 14px/1 system-ui,sans-serif!important;
}
.studio-supporter-copy{
  display:flex!important;
  min-width:0!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:2px!important;
  line-height:1.2!important;
}
.studio-supporter-amount{
  display:block!important;
  color:#fbbf24!important;
  font-size:9px!important;
  font-weight:900!important;
  font-variant-numeric:tabular-nums!important;
  white-space:nowrap!important;
}
@media(max-width:390px){
  .studio-supporter-copy{flex:1 1 auto!important}
  .studio-supporter-amount{font-size:10px!important}
}
