@import url("css/fonts.css");
@import url("css/ambient-bg.css?v=8");
@import url("css/dark-theme.css?v=1");

/* Pleyi — Memphis / Sticker Pop style */

:root {
  --font-sans: "Google Sans", system-ui, sans-serif;
  --electric: #62ebe0;
  --ambient-site-bg: #62ebe0;
  --mempink: #B8FFF5;
  --memyellow: #FFE135;
  --mempurple: #009E8E;
  --memlime: #FFE135;
  --memorange: #FFD700;
  --memteal: #00E5CC;
  --ink: #000000;
  --white: #ffffff;
  --clean-bg-how: #B8FFF5;
  --clean-bg-contact: #52C7BE;
  --clean-bg-panel: #ffffff;
  --clean-bg-cream: #FFFFF0;
  --game-stage-bg-color: #E0FBF8;
  --shape-tq-pale: rgba(170, 250, 240, 0.82);
  --shape-tq-soft: rgba(120, 230, 218, 0.78);
  --shape-tq-mid: rgba(70, 210, 198, 0.74);
  --shape-tq-deep: rgba(45, 185, 175, 0.72);
  --shape-tq-accent: rgba(0, 201, 183, 0.68);
  --shape-tq-line: rgba(0, 130, 118, 0.42);

  --bg-deep: var(--electric);
  --bg-1: var(--mempink);
  --bg-2: var(--memyellow);
  --accent-1: var(--memteal);
  --accent-2: var(--memyellow);
  --accent-3: var(--memyellow);
  --text: var(--ink);
  --heading: var(--ink);
  --muted: rgba(0, 0, 0, 0.72);
  --body: rgba(0, 0, 0, 0.85);
  --line: rgba(0, 0, 0, 0.35);
  --line-strong: rgba(0, 0, 0, 0.55);
  --nav-scrolled-bg: rgba(255, 255, 255, 0.92);
  --nav-shadow: rgba(0, 0, 0, 0.25);
  --card-bg: var(--white);
  --step-bg: rgba(255, 255, 255, 0.88);
  --loader-bg: var(--electric);
  --mobile-nav-bg: rgba(255, 255, 255, 0.98);
  --hero-accent: var(--memyellow);
  --btn-bg: var(--memyellow);
  --glow-purple: rgba(0, 201, 183, 0.3);
  --glow-blue: rgba(0, 229, 204, 0.2);
  --radius: 24px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --success: #00C9B7;
  --danger: #e07070;
  --teacher-color: var(--memteal);
  --student-color: var(--memyellow);
  --shadow-candy: 8px 10px 0 0 rgba(0, 0, 0, 0.95);
  --shadow-sticker: 6px 8px 0 0 rgba(0, 0, 0, 0.85);
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--ambient-site-bg, #62ebe0);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  background: transparent;
  overflow-x: hidden;
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:not(.no-ambient-bg) > :not(.ambient-bg):not(.navbar):not(.mobile-nav):not(.scroll-progress):not(.loader) {
  position: relative;
  z-index: 1;
}

body:not(.no-ambient-bg) > .navbar {
  z-index: 1000 !important;
  position: relative !important;
  transform: none !important;
}

body:not(.no-ambient-bg) > .mobile-nav {
  z-index: 150;
}

body:not(.no-ambient-bg) > .scroll-progress,
body:not(.no-ambient-bg) > .loader {
  z-index: 350;
}

::selection {
  background: var(--memyellow);
  color: var(--ink);
}

.font-cartoon {
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* ── Pleyi brand wordmark — playful Latin game font ── */
.font-brand {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: none;
  font-synthesis: none;
}

.logo-text.font-brand,
.loader-logo.font-brand,
.join-brand.font-brand {
  paint-order: stroke fill;
  -webkit-text-stroke: 6px var(--ink);
  -webkit-text-stroke-color: var(--ink);
  -webkit-text-fill-color: var(--memyellow);
  color: var(--memyellow);
  text-shadow: 5px 5px 0 var(--ink);
  text-rendering: optimizeLegibility;
}

.loader-logo.font-brand {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 600;
  -webkit-text-stroke-width: 6.5px;
  animation: brand-float 2s ease-in-out infinite;
}

.logo-text.font-brand {
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 600;
  -webkit-text-stroke-width: 6px;
}

.join-brand.font-brand {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
}

.navbar.scrolled .logo-text.font-brand,
body.in-room .logo-text.font-brand {
  -webkit-text-fill-color: var(--memyellow);
  color: var(--memyellow);
  -webkit-text-stroke: 6px var(--ink);
  -webkit-text-stroke-color: var(--ink);
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.22);
}

@keyframes brand-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── מסגרת עבה סביב אותיות — כל הכותרות ── */
:is(
  h1.font-cartoon,
  .hub-title.font-cartoon,
  .play-title.font-cartoon,
  .room-title.font-cartoon,
  .lobby-heading,
  .footer-tagline.font-cartoon,
  .join-card h1,
  .modal h2,
  .clean-step h3,
  .clean-panel h3,
  .hub-game-card h3,
  .hub-game-card h3.font-cartoon,
  h3.font-cartoon,
  .solo-overlay h2,
  .hub-custom-header h2.font-cartoon
) {
  paint-order: stroke fill;
  -webkit-text-stroke: clamp(6px, 1vw, 11px) var(--ink);
  text-shadow: none;
}

/* כותרות סקשן — מסגרת עבה סביב האותיות והסימנים, בלי צל */
.clean-section-title.font-cartoon,
body.clean-site h2.font-cartoon,
.hub-body :is(.hub-title, .teacher-room-name, .hub-custom-header h2, .hub-skill-filters-label).font-cartoon {
  paint-order: stroke fill;
  -webkit-text-stroke: clamp(6px, 1vw, 10px) var(--ink);
  -webkit-text-stroke-color: var(--ink);
  -webkit-text-fill-color: var(--memyellow);
  color: var(--memyellow);
  text-shadow: none;
}

.clean-section--contact .clean-section-title.font-cartoon {
  color: var(--memyellow);
  -webkit-text-fill-color: var(--memyellow);
}

.how-timeline-body h3 {
  paint-order: normal;
  -webkit-text-stroke: 0;
  -webkit-text-fill-color: var(--ink);
  color: var(--ink);
  text-shadow: none;
}

.hero-title.font-cartoon .line {
  paint-order: stroke fill;
  -webkit-text-stroke: clamp(7px, 1.25vw, 16px) var(--ink);
  -webkit-text-stroke-color: var(--ink);
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
}

/* צבע מילוי לפי רקע */
.hero-title.font-cartoon .line { color: var(--white); }
.hero-title.font-cartoon .line.accent {
  color: var(--memyellow);
  -webkit-text-fill-color: var(--memyellow);
}

.room-title.font-cartoon { color: var(--electric); }
.play-title.font-cartoon { color: var(--memyellow); }
.footer-tagline.font-cartoon { color: var(--white); }

.footer-tagline-accent {
  color: var(--electric);
  -webkit-text-fill-color: var(--electric);
  paint-order: stroke fill;
  -webkit-text-stroke: clamp(6px, 1vw, 11px) var(--ink);
  -webkit-text-stroke-color: var(--ink);
}
.join-card h1 { color: var(--electric); }
.join-room-top h2.font-cartoon { color: var(--electric); }
.modal h2 { color: var(--electric); }
.lobby-heading { color: var(--electric); }
.clean-step h3,
.clean-panel h3 { color: var(--electric); }
.hub-game-card h3 { color: var(--white); }
.solo-overlay h2 { color: var(--memyellow); }
h3.font-cartoon { color: var(--electric); }

.memphis-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.memphis-parallax {
  position: absolute;
  will-change: transform;
  opacity: 0.85;
}

.memphis-parallax:first-child {
  left: -10%;
  top: 5%;
  width: 120%;
  height: 140%;
}

.memphis-parallax-right {
  right: -5%;
  top: 15%;
  width: 90%;
  height: 100%;
}

.memphis-parallax-bottom {
  left: 5%;
  bottom: -10%;
  width: 100%;
  height: 55%;
  opacity: 0.75;
}

.memphis-parallax-spin {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
}

.memphis-svg {
  width: 100%;
  height: 100%;
}

.memphis-svg-slow { animation: memphis-float 8s ease-in-out infinite; }
.memphis-svg-mid { animation: memphis-float 5.5s ease-in-out infinite; --mem-rotate: 6deg; }
.memphis-svg-fast { animation: memphis-float 3.5s ease-in-out infinite; }

.memphis-dotted-ring {
  width: 140vmax;
  height: 140vmax;
  border-radius: 50%;
  border: 3rem dotted var(--memyellow);
  animation: memphis-spin 22s linear infinite;
}

.memphis-sticker {
  position: absolute;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-sticker);
  will-change: transform;
}

.memphis-sticker-1 {
  width: 256px;
  height: 256px;
  right: 8%;
  bottom: 20%;
  background: var(--mempurple);
  border-radius: 50%;
  animation: memphis-float 8s ease-in-out infinite;
}

.memphis-sticker-2 {
  width: 192px;
  height: 192px;
  left: 12%;
  top: 35%;
  background: var(--memyellow);
  border-radius: 24px;
  rotate: 12deg;
  animation: memphis-float 5.5s ease-in-out infinite;
}

@keyframes memphis-float {
  0%, 100% { transform: translateY(0) rotate(var(--mem-rotate, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--mem-rotate, 0deg)); }
}

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

.section-pink { background: var(--mempink); border-block: 8px solid var(--ink); }
.section-yellow { background: var(--memyellow); border-block: 8px solid var(--ink); }
.section-electric { background: var(--electric); border-block: 8px solid var(--ink); color: var(--white); }
.section-white { background: var(--white); border-block: 8px solid var(--ink); }
.section-electric .section-title { color: var(--memyellow); text-shadow: 4px 4px 0 var(--ink); }
.section-electric .section-lead { color: rgba(255,255,255,0.92); }

.sticker-card {
  border: 4px solid var(--ink) !important;
  box-shadow: var(--shadow-candy);
  rotate: 0deg;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.benefit-cards .pitch-card:nth-child(1) {
  rotate: 0deg;
}

.benefit-cards .pitch-card:nth-child(2) { rotate: 0deg; }
.benefit-cards .pitch-card:nth-child(3) { rotate: 0deg; }

.sticker-card:nth-child(odd) { rotate: 0deg; }
.sticker-card:nth-child(even) { rotate: 0deg; }

.sticker-card:hover {
  rotate: 0deg;
  transform: translateY(-8px);
}

.games-showcase .sticker-card:hover {
  rotate: 0deg;
  transform: translateY(-10px) scale(1.02);
}

.section-electric .section-lead {
  display: inline-block;
  background: var(--memorange);
  color: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow-candy);
  rotate: 0deg;
  font-weight: 800;
}

#teachers .section-title,
#contact .section-title {
  font-weight: 900;
}

.sticker-yellow { background: var(--memyellow) !important; --modal-fill: var(--memyellow); }
.sticker-teal { background: var(--memteal) !important; --modal-fill: var(--memteal); }
.sticker-pink { background: var(--mempink) !important; --modal-fill: var(--mempink); }
.sticker-purple { background: var(--mempurple) !important; color: var(--white); --modal-fill: var(--mempurple); }
.sticker-purple h3, .sticker-purple p { color: var(--white); }
.sticker-orange { background: var(--memorange) !important; color: var(--white); }
.sticker-orange h3, .sticker-orange p { color: var(--white); }
.sticker-lime { background: var(--memlime) !important; }
.sticker-blue { background: var(--electric) !important; --modal-fill: var(--electric); }
.sticker-green { background: #6bbf8a !important; --modal-fill: #6bbf8a; }

.sticker-box {
  display: inline-block;
  padding: 20px 24px;
  background: var(--memorange);
  color: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-candy);
  rotate: 0deg;
}

.section-wave {
  display: none;
}

.hero-badge {
  display: inline-block;
  padding: 10px 22px;
  background: var(--mempurple);
  color: var(--white);
  border: 4px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 20px;
  box-shadow: var(--shadow-candy);
  rotate: 0deg;
}

.btn-candy {
  border: 4px solid var(--ink) !important;
  box-shadow: var(--shadow-candy);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-candy:active {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 0 var(--ink);
}

.btn-hero-secondary {
  flex-shrink: 0;
  padding: 28px 44px;
  font-size: clamp(20px, 4vw, 28px);
  background: var(--memyellow);
  color: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-candy);
}

/* ── Scroll decor & parallax ── */
.scroll-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
  animation: blob-drift 18s ease-in-out infinite alternate;
}

.blob-1 {
  width: 480px;
  height: 480px;
  top: -8%;
  left: -6%;
  background: rgba(196, 181, 240, 0.35);
}

.blob-2 {
  width: 380px;
  height: 380px;
  top: 42%;
  right: -8%;
  background: rgba(168, 212, 245, 0.25);
  animation-delay: -6s;
}

.blob-3 {
  width: 320px;
  height: 320px;
  bottom: 8%;
  left: 18%;
  background: rgba(221, 212, 247, 0.3);
  animation-delay: -12s;
}

html[data-theme="light"] .blob { opacity: 0.35; }

.scroll-dots {
  position: absolute;
  inset: 0;
  background: var(--accent-3);
  opacity: 0.04;
}

@keyframes blob-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.06); }
  100% { transform: translate(-20px, 25px) scale(0.96); }
}

.section-wave {
  display: none;
}

#landingView,
footer {
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.hidden { display: none !important; }

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--loader-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo {
  animation: brand-float 2s ease-in-out infinite;
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.loader-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  background: var(--accent-2);
  animation: load 1s ease-in-out infinite;
}

@keyframes load {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

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

.navbar,
header.navbar,
#navbar {
  position: relative !important;
  width: 100% !important;
  z-index: 1000 !important;
  transform: none !important;
  padding: 16px 0;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  box-sizing: border-box;
  transition: background 0.35s, box-shadow 0.35s;
}

.navbar.scrolled {
  background: var(--nav-scrolled-bg);
  box-shadow: 0 8px 32px var(--nav-shadow);
}

body.clean-site .navbar,
body.clean-site .navbar.scrolled,
body.hub-body .navbar,
body.hub-body .navbar.scrolled {
  background: transparent !important;
  box-shadow: none !important;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-inner:not(:has(.logo)) {
  justify-content: flex-end;
}

@media (min-width: 900px) {
  .nav-inner:not(:has(.logo)) {
    justify-content: space-between;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-auth-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 900;
  font-family: inherit;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-candy);
  transition: transform 0.12s;
}

.nav-auth-btn:hover { transform: translateY(-2px); }

#authLoginBtn,
.mobile-nav-auth {
  background: var(--white);
}

.nav-auth-btn--primary { background: var(--memyellow); }

.nav-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user-avatar {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 50%;
  overflow: hidden;
  background: var(--memyellow);
  cursor: pointer;
  box-shadow: var(--shadow-sticker);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: inherit;
  transition: transform 0.12s;
}

.nav-user-avatar:hover { transform: scale(1.05); }

.nav-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-user-initial {
  font-weight: 900;
  font-size: 20px;
  color: var(--ink);
  line-height: 1;
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 180px;
  background: var(--memyellow);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-candy);
  z-index: 400;
}

.nav-user-name {
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.3;
  word-break: break-word;
}

.nav-user-link {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--memteal);
  color: var(--ink);
  box-shadow: var(--shadow-sticker);
}

.nav-user-link:hover {
  transform: translateY(-1px);
}

.nav-user-logout {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #ff5757;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sticker);
}

.nav-user-logout:hover {
  transform: translateY(-1px);
  background: #ff3d3d;
}

.games-hub-cta {
  text-align: center;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .nav-auth-btn { display: none; }
  .nav-actions .lang-toggle { display: none; }
  .nav-user:not(.hidden) {
    display: flex !important;
  }
}

@media (max-width: 900px) {
  .nav-auth-btn.nav-auth-btn--primary { display: none; }
}

.lang-toggle {
  padding: 10px 16px;
  min-width: 52px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-sticker);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lang-toggle:hover {
  transform: translateY(-2px);
}

.lang-toggle--sm {
  padding: 8px 14px;
  min-width: 48px;
  font-size: 14px;
}

/* Clip hover fills to rounded sticker shapes — prevents corner bleed site-wide */
:where(
  .btn,
  .nav-pill,
  .nav-links a,
  .nav-auth-btn,
  .nav-services-btn,
  .nav-services-link,
  .lang-toggle,
  .menu-toggle,
  .mobile-nav-auth,
  .mobile-nav-services-btn,
  .svc-filter-trigger,
  .hub-skill-filters-panel,
  .hub-skill-filter,
  .hub-tab,
  .how-timeline-body,
  .how-timeline-marker,
  .clean-panel--card,
  .svc-empty-state,
  .play-mode-choice,
  .contact-channel-btn,
  .whatsapp-btn,
  .about-service-card,
  .step-card,
  .svc-tile-image,
  .svc-lesson-preview
) {
  overflow: hidden;
  background-clip: padding-box;
}

.svc-filter-bar {
  --filter-inner-radius: 10px;
}

.svc-filter-trigger {
  border-radius: 0;
}

.svc-filter-dropdown:first-child .svc-filter-trigger {
  border-start-start-radius: var(--filter-inner-radius);
  border-end-start-radius: var(--filter-inner-radius);
}

.svc-filter-dropdown:last-child .svc-filter-trigger {
  border-start-end-radius: var(--filter-inner-radius);
  border-end-end-radius: var(--filter-inner-radius);
}

.svc-filter-dropdown:only-child .svc-filter-trigger {
  border-start-start-radius: var(--filter-inner-radius);
  border-end-start-radius: var(--filter-inner-radius);
  border-start-end-radius: var(--filter-inner-radius);
  border-end-end-radius: var(--filter-inner-radius);
}

.play-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-moon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: var(--shadow-sticker);
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.theme-moon-btn:hover {
  transform: scale(1.06);
  background: var(--mempink);
}

.theme-moon-btn svg {
  display: block;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  rotate: 0deg;
  text-decoration: none;
  color: inherit;
  padding: 4px 14px 4px 8px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: translate 0.12s ease, box-shadow 0.12s ease;
}

.logo:hover {
  translate: -1px -1px;
  box-shadow: 4px 4px 0 var(--ink);
}

.logo-mark {
  width: clamp(40px, 7vw, 52px);
  height: clamp(40px, 7vw, 52px);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  background: transparent;
}

.logo-mark--loader {
  width: clamp(68px, 16vw, 92px);
  height: clamp(68px, 16vw, 92px);
}

.loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.join-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-badge {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--memyellow);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-candy);
  flex-shrink: 0;
}

.logo-text {
  font-size: clamp(22px, 3vw, 34px);
  color: var(--white);
  text-shadow: 4px 4px 0 var(--ink);
}

.navbar.scrolled .logo-text {
  color: var(--ink);
  text-shadow: none;
}

.nav-links { display: none; gap: 10px; rotate: 0deg; }

@media (min-width: 900px) {
  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    max-width: 100%;
    overflow-x: auto;
    padding-block: 4px 12px;
    padding-inline: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }
}

.nav-pill,
.nav-links a,
button.nav-pill,
.nav-services-btn {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sticker);
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

button.nav-pill,
.nav-services-btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  box-sizing: border-box;
  width: auto;
  min-height: 0;
}

.nav-beta-tag {
  display: inline-block;
  margin-inline-start: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
  background: var(--memyellow);
  border: 2px solid var(--ink);
  border-radius: 8px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

.nav-pill--beta {
  padding-inline-end: 10px;
}

.mobile-nav .nav-beta-tag {
  margin-inline-start: 8px;
  font-size: 11px;
}

.nav-pill:hover,
.nav-links a:hover,
button.nav-pill:hover,
.nav-services-btn:hover {
  background: var(--memyellow);
  transform: scale(1.04);
}

.nav-pill.active,
.nav-links a.active,
button.nav-pill.active,
.nav-services-btn.active {
  background: var(--memyellow);
}

.navbar.scrolled .nav-pill,
.navbar.scrolled .nav-links a,
.navbar.scrolled button.nav-pill,
.navbar.scrolled .nav-services-btn {
  background: var(--white);
}

.navbar.scrolled .nav-pill.active,
.navbar.scrolled .nav-links a.active,
.navbar.scrolled button.nav-pill.active,
.navbar.scrolled .nav-services-btn.active {
  background: var(--memyellow);
}

.mobile-nav a.active {
  background: var(--memyellow);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-sticker);
}

.nav-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 26px 48px;
  min-height: 72px;
  border-radius: 999px;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 900;
  color: var(--ink);
  border: 6px solid var(--ink);
  box-shadow: 0 12px 0 0 var(--ink), 0 0 28px rgba(255, 200, 0, 0.55);
  cursor: pointer;
  background: linear-gradient(
    135deg,
    #fff8c4 0%,
    #ffd700 22%,
    #ffb300 45%,
    #ffe566 68%,
    #ffd700 100%
  );
  background-size: 220% 220%;
  animation: book-gold-shimmer 2.8s ease-in-out infinite;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.nav-cta::before,
.nav-cta::after,
.btn-hero-book::before,
.btn-hero-book::after,
.mobile-nav-cta::before,
.mobile-nav-cta::after {
  content: "✦";
  position: absolute;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 1;
  animation: book-sparkle 2.2s ease-in-out infinite;
}

.nav-cta::before { top: 16%; left: 10%; font-size: 18px; animation-delay: 0s; }
.nav-cta::after { bottom: 14%; right: 12%; font-size: 14px; animation-delay: 1.1s; }

.nav-cta:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 0 0 var(--ink), 0 0 40px rgba(255, 215, 0, 0.75);
}

.nav-cta:active {
  transform: translateY(6px);
  box-shadow: 0 5px 0 0 var(--ink), 0 0 20px rgba(255, 200, 0, 0.45);
}

@keyframes book-gold-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes book-sparkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 12px;
  background: var(--memyellow);
  border: 4px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-sticker);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.menu-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 0 var(--ink);
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav-cta { display: inline-flex; }
}

@media (max-width: 899px) {
  .nav-cta { display: none; }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--mobile-nav-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.mobile-nav.open { opacity: 1; visibility: visible; }

.mobile-nav a { font-size: 22px; font-weight: 800; }

.mobile-nav-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
}

.mobile-nav-services-btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: none;
  background: transparent;
  font-size: 22px;
  font-weight: 800;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 16px;
  line-height: 1.2;
}

.mobile-nav-services-btn[aria-expanded="true"] {
  color: var(--ink);
  background: var(--memyellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sticker);
}

.mobile-nav-services-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.mobile-nav-services-panel.hidden {
  display: none;
}

.mobile-nav-services-panel a {
  display: block;
  padding: 4px 8px;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0.88;
}

.mobile-nav-services-panel a:hover,
.mobile-nav-services-panel a:active {
  background: transparent;
  opacity: 1;
  color: var(--ink);
}

.mobile-nav-auth {
  margin: 8px 20px;
  padding: 14px;
  font-size: 22px;
  font-weight: 900;
  font-family: inherit;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  width: calc(100% - 40px);
}

.mobile-nav-auth--primary {
  background: var(--memyellow);
}

.mobile-nav-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 8px;
  padding: 24px 52px;
  min-height: 68px;
  border-radius: 999px;
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 900;
  color: var(--ink);
  border: 6px solid var(--ink);
  cursor: pointer;
  background: linear-gradient(135deg, #fff8c4, #ffd700, #ffb300, #ffe566);
  background-size: 220% 220%;
  animation: book-gold-shimmer 2.8s ease-in-out infinite;
  box-shadow: 0 10px 0 0 var(--ink), 0 0 28px rgba(255, 200, 0, 0.5);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-cta::before { top: 20%; left: 10%; }
.mobile-nav-cta::after { bottom: 18%; right: 12%; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  background: var(--electric);
  overflow: hidden;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-shape-layer {
  position: absolute;
  will-change: transform;
}

.hero-shape-layer--back {
  left: -8%;
  top: -4%;
  width: 116%;
  height: 108%;
  opacity: 0.75;
}

.hero-shape-svg {
  width: 100%;
  height: 100%;
}

.hero-shape-svg--slow { animation: memphis-float 8s ease-in-out infinite; }

.hero-shape-sticker {
  position: absolute;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-sticker);
  will-change: transform;
}

.hero-shape-sticker--1 {
  width: 110px;
  height: 110px;
  right: -3%;
  left: auto;
  top: 6%;
  background: var(--mempurple);
  border-radius: 50%;
  opacity: 0.85;
  animation: memphis-float 7s ease-in-out infinite;
}

.hero-shape-sticker--2 {
  width: 80px;
  height: 80px;
  left: -2%;
  right: auto;
  bottom: 8%;
  top: auto;
  background: var(--memyellow);
  border-radius: 20px;
  rotate: 12deg;
  opacity: 0.85;
  animation: memphis-float 5.5s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-shape-layer--back {
    left: -12%;
    top: -6%;
    width: 124%;
  }

  .hero-shape-sticker--1 {
    width: 68px;
    height: 68px;
    right: -8%;
    top: 4%;
  }

  .hero-shape-sticker--2 {
    width: 52px;
    height: 52px;
    left: -6%;
    bottom: 6%;
  }
}

.hero-title.font-cartoon {
  font-size: clamp(2.75rem, 11vw, 7rem);
  color: var(--white);
  line-height: 0.95;
}

.hero-lead {
  max-width: 640px;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
}

.hero-sticker {
  display: none;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-sticker { display: flex; }
}

.hero-sticker-card {
  padding: 20px;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-candy);
  rotate: 12deg;
  animation: memphis-float 5.5s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero-title {
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

.hero-title .line { display: block; }

/* Fade only — no transform, avoids lines stacking on each other */
.hero-title [data-reveal] {
  transform: none !important;
  filter: none !important;
}

.hero-title [data-reveal]:not(.visible) {
  opacity: 0;
}

.hero-copy .section-lead {
  margin-top: 4px;
  margin-bottom: 0;
}

.hero-title .accent {
  color: var(--hero-accent);
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-hero-book {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
  width: auto;
  max-width: 100%;
  font-size: clamp(36px, 8vw, 64px);
  padding: 40px 72px;
  min-width: min(420px, 92vw);
  min-height: 120px;
  text-decoration: none;
  color: var(--ink) !important;
  border: 8px solid var(--ink) !important;
  background: linear-gradient(
    135deg,
    #fff9d0 0%,
    #ffd700 20%,
    #ffaa00 42%,
    #ffe566 65%,
    #ffd700 85%,
    #fff8c4 100%
  ) !important;
  background-size: 240% 240%;
  animation: book-gold-shimmer 2.5s ease-in-out infinite, hero-book-glow 3s ease-in-out infinite;
  box-shadow: 0 20px 0 0 var(--ink), 0 0 56px rgba(255, 200, 0, 0.65);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.btn-hero-book::before { top: 12%; left: 6%; font-size: 28px; }
.btn-hero-book::after { bottom: 10%; right: 8%; font-size: 22px; animation-delay: 0.8s; }

@keyframes hero-book-glow {
  0%, 100% { box-shadow: 0 16px 0 0 var(--ink), 0 0 40px rgba(255, 200, 0, 0.5); }
  50% { box-shadow: 0 16px 0 0 var(--ink), 0 0 64px rgba(255, 230, 100, 0.9); }
}

.btn-hero-book:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 18px 0 0 var(--ink), 0 0 64px rgba(255, 215, 0, 0.95);
}

.btn-hero-book:active {
  transform: translateY(8px);
  box-shadow: 0 6px 0 0 var(--ink), 0 0 32px rgba(255, 200, 0, 0.5);
}

.hero-emoji {
  font-size: clamp(120px, 20vw, 200px);
  text-align: center;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(46, 54, 88, 0.15));
}

section {
  padding: 80px 0;
  scroll-margin-top: 80px;
  position: relative;
}

.scroll-section {
  transition: background 0.6s var(--ease);
}

.scroll-section.in-view::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--accent-3);
  opacity: 0;
  animation: section-fade-in 1.2s var(--ease) forwards;
}

@keyframes section-fade-in {
  to { opacity: 0.06; }
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin: 0 0 20px;
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.section-lead {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 32px;
  line-height: 1.55;
}

/* Cards */
.cards {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.cards.cols-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .cards.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.pitch-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--memyellow);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-sticker);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  cursor: default;
}

.section-electric .pitch-card p {
  color: rgba(26, 10, 46, 0.75);
}

.pitch-card--clickable {
  cursor: pointer;
}

.pitch-card--clickable::after {
  display: none;
}

.play-now-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--memyellow);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

a.pitch-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.pitch-card.visible {
  animation: card-float 6s ease-in-out infinite;
}

.pitch-card:nth-child(2).visible { animation-delay: -2s; }
.pitch-card:nth-child(3).visible { animation-delay: -4s; }
.pitch-card:nth-child(4).visible { animation-delay: -1s; }
.pitch-card:nth-child(5).visible { animation-delay: -3s; }

@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.pitch-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 48px var(--nav-shadow);
  border-color: var(--line-strong);
}

.pitch-card h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.pitch-card p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(139, 127, 212, 0.12);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 14px;
}

/* Steps */
.steps {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-candy);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.step-card:nth-child(1) {
  background: var(--mempink);
  rotate: 0deg;
}

.step-card:nth-child(2) {
  background: var(--memteal);
  rotate: 0deg;
}

@media (min-width: 768px) {
  .step-card:nth-child(2) { translate: 0 24px; }
}

.step-card:nth-child(3) {
  background: var(--mempurple);
  color: var(--white);
  rotate: 0deg;
}

.step-card:nth-child(3) h3,
.step-card:nth-child(3) p,
.step-card:nth-child(3) .num {
  color: var(--white);
}

.step-card.visible:hover {
  transform: translateY(-6px) rotate(0deg);
}

.step-card .num {
  font-size: 48px;
  font-weight: 900;
  color: rgba(26, 10, 46, 0.35);
}

.step-card h3 {
  margin: 8px 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  color: var(--heading);
}

.step-card p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 900;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--memyellow);
  color: var(--ink);
  box-shadow: var(--shadow-candy);
  border: 4px solid var(--ink);
}

.btn-outline {
  background: var(--memyellow);
  border: 4px solid var(--ink);
  color: var(--ink);
  box-shadow: var(--shadow-candy);
  font-weight: 900;
}

.btn-sm { padding: 8px 16px; font-size: 14px; }

.btn-full { width: 100%; }

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--memyellow);
  color: var(--ink);
  border: 4px solid var(--ink);
  font-weight: 900;
  box-shadow: var(--shadow-candy);
}

.btn-google:hover { transform: translateY(-2px); }
.btn-google:disabled { opacity: 0.6; cursor: wait; }

.btn-google-icon { display: inline-flex; flex-shrink: 0; }

.btn:hover { transform: translateY(-2px); }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Room view */
.room-view {
  min-height: 100vh;
  padding: 100px 0 60px;
}

.room-container { max-width: 1100px; }

.room-top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--memyellow);
  box-shadow: var(--shadow-sticker);
}

.room-share-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.room-classroom-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .room-classroom-bar {
    grid-template-columns: 1fr;
  }
}

.room-share-card,
.room-students-card,
.room-chat-card {
  padding: 20px;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sticker);
}

.room-share-card h3,
.room-students-card h3,
.room-chat-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.room-share-lead {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.room-qr-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.room-qr-wrap img {
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
}

.room-join-url {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  word-break: break-all;
  color: var(--muted);
  direction: ltr;
  text-align: center;
}

.students-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.students-empty {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.student-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--memyellow);
  border: 2px solid var(--ink);
  font-size: 14px;
}

.student-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--clean-bg-panel);
}

.student-chip--suspended {
  opacity: 0.65;
  background: rgba(255, 158, 207, 0.25);
}

.student-chip-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.student-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.student-dot.waiting {
  background: var(--muted);
}

.student-chip-name {
  font-weight: 800;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-chip-score {
  font-size: 13px;
  white-space: nowrap;
}

.student-suspended-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--memorange);
}

.student-chip-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.student-action-btn {
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.student-action-btn--kick:hover {
  background: #ff6b8a;
}

.room-chat-log {
  min-height: 120px;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding: 8px;
  border: 2px dashed rgba(26, 10, 46, 0.2);
  border-radius: 12px;
  background: var(--clean-bg-panel);
}

.room-chat-empty {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 24px 8px;
}

.room-chat-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: 14px;
  font-weight: 700;
}

.room-chat-msg--teacher .room-chat-who {
  color: var(--mempurple);
}

.room-chat-emoji {
  font-size: 22px;
  line-height: 1;
}

.room-emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.room-emoji-bar button {
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.1s;
}

.room-emoji-bar button:hover {
  transform: scale(1.08);
  background: var(--memyellow);
}

.game-content-stage {
  min-height: 360px;
  color: var(--ink, #1a0a2e);
  background: transparent;
}

#roomView:not(.hidden) {
  display: block !important;
  position: relative;
  z-index: 10;
  width: 100%;
}

body.in-room #landingView,
html.in-room #landingView {
  display: none !important;
}

body.in-room .room-view,
html.in-room .room-view {
  display: block !important;
  background: var(--clean-bg-panel);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.room-loading {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 40px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--electric);
}

.room-error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 120px 24px 40px;
  text-align: center;
}

.room-error-text {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--ink);
  max-width: 420px;
  line-height: 1.5;
}

.room-redirect-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(244, 247, 255, 0.96);
  display: grid;
  place-items: center;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--electric);
}

.room-redirect-overlay.hidden {
  display: none !important;
}

.modal-overlay.hidden {
  display: none !important;
  pointer-events: none !important;
}

.room-nav-badge {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--electric);
  background: var(--memyellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: var(--shadow-sticker-sm, 3px 3px 0 var(--ink));
}

.modal-conn-hint {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.room-top-bar .room-title {
  -webkit-text-fill-color: var(--ink);
  color: var(--ink);
}

.room-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--heading);
}

.room-code-label {
  margin: 8px 0 0;
  font-size: 18px;
  color: var(--muted);
}

.room-code-label strong {
  font-size: 28px;
  letter-spacing: 0.15em;
  color: var(--heading);
  direction: ltr;
  display: inline-block;
}

.btn-copy {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  vertical-align: middle;
}

.room-scores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.score-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
}

.score-pill.teacher {
  background: rgba(139, 111, 92, 0.25);
  border: 1px solid var(--teacher-color);
}

.score-pill.student {
  background: rgba(92, 122, 139, 0.25);
  border: 1px solid var(--student-color);
}

.players-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--line);
  margin-bottom: 28px;
}

.player-slot {
  flex: 1;
  text-align: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.08);
}

.player-avatar { font-size: 36px; display: block; margin-bottom: 8px; }

.player-name {
  display: block;
  font-weight: 800;
  color: var(--heading);
  font-size: 18px;
}

.player-status {
  color: var(--success);
  font-size: 20px;
}

.player-status.waiting { color: var(--muted); }

.vs {
  font-weight: 800;
  font-size: 20px;
  color: var(--accent-2);
}

.lobby-heading {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  color: var(--heading);
}

.lobby-hint {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
}

.game-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.game-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s;
}

.game-btn span { font-size: 28px; }

.game-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: var(--accent-2);
}

.game-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Colored game stage — single muted tone */
.game-stage-surface {
  background-color: var(--game-stage-bg-color, #b8c0cc);
}

.game-panel {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background-color: var(--game-stage-bg-color, #b8c0cc);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-sticker);
  color: var(--ink, #1a0a2e);
}

.game-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.game-panel-header h3 {
  margin: 0;
  font-size: 22px;
  color: var(--heading);
}

.leave-room-btn {
  margin-top: 32px;
  width: 100%;
}

/* Game UI shared */
.game-round-info {
  text-align: center;
  margin-bottom: 20px;
  color: var(--ink, #1a0a2e);
  font-size: 16px;
  font-weight: 800;
}

body.in-room .game-round-info,
.guest-game .game-round-info {
  color: var(--ink, #1a0a2e);
}

.game-question {
  text-align: center;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--heading);
  margin: 24px 0;
  direction: ltr;
}

.game-hint {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
}

.quiz-options {
  display: grid;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.quiz-option {
  padding: 16px 20px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: rgba(0, 0, 0, 0.06);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--accent-2);
  transform: scale(1.02);
}

.quiz-option.selected { border-color: var(--accent-1); background: rgba(139, 127, 212, 0.2); }
.quiz-option.correct { border-color: var(--success); background: rgba(107, 191, 138, 0.2); }
.quiz-option.wrong { border-color: var(--danger); background: rgba(224, 112, 112, 0.15); }
.quiz-option:disabled { cursor: default; opacity: 0.85; }

.game-status {
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  margin: 16px 0;
  font-weight: 700;
}

.game-status.waiting { background: var(--glow-purple); color: var(--muted); }
.game-status.win { background: rgba(107, 191, 138, 0.2); color: var(--success); }

.game-watch-banner {
  text-align: center;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 3px solid #1a1a2e;
  background: rgba(255, 214, 10, 0.35);
  color: #1a1a2e;
  font-weight: 800;
  font-size: clamp(0.85rem, 2vh, 1rem);
}

.scramble-watch-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}

.scramble-chip--static {
  pointer-events: none;
  opacity: 0.92;
}

.game-watch-only .quiz-option:disabled,
.game-watch-only .letter-btn:disabled,
.game-watch-only .memory-card:disabled,
.game-watch-only .spot-cell:disabled,
.game-watch-only .runner-lane-btn:disabled,
.game-watch-only .candy-tile:disabled,
.game-watch-only .shop-item:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.word-memory-game {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  gap: clamp(10px, 2vh, 18px);
}

.word-memory-head {
  flex-shrink: 0;
  text-align: center;
}

.word-memory-game .turn-indicator {
  margin: 0 0 clamp(6px, 1vh, 12px);
  font-size: clamp(1.85rem, 5.5vh, 3rem);
  font-weight: 900;
  color: var(--ink, #1a0a2e);
  line-height: 1.15;
}

.memory-turn-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: clamp(10px, 1.6vh, 14px) clamp(16px, 2.8vh, 22px);
  background: #fffef8;
  border: 4px solid #1a0a2e;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #1a0a2e;
}

.memory-turn-bar--mine {
  background: var(--memteal, #2ec4b6);
}

.memory-turn-prefix {
  font-weight: 900;
}

.memory-turn-player {
  font-size: clamp(1.35rem, 4vh, 2.1rem);
  font-weight: 900;
  color: #1a0a2e;
  line-height: 1.1;
}

.memory-turn-of {
  font-weight: 800;
  opacity: 0.72;
}

.memory-turn-name {
  font-weight: 900;
}

.word-memory-game .game-round-info {
  margin: 0;
  font-size: clamp(1.15rem, 3.2vh, 1.75rem);
  font-weight: 800;
  color: var(--ink, #1a0a2e);
  opacity: 0.92;
}

.memory-score-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vh, 12px);
  margin: 0 auto;
  padding: clamp(8px, 1.4vh, 12px) clamp(14px, 2.5vh, 20px);
  background: #6bbf8a;
  border: 4px solid #1a0a2e;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #1a0a2e;
}

.memory-score-title {
  font-size: clamp(1rem, 2.8vh, 1.35rem);
  font-weight: 900;
  color: #1a0a2e;
  padding-inline-end: clamp(4px, 0.8vh, 8px);
  border-inline-end: 3px solid rgba(26, 10, 46, 0.25);
}

.memory-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: clamp(4px, 0.8vh, 6px) clamp(10px, 1.8vh, 14px);
  background: #fffef8;
  border: 3px solid #1a0a2e;
  border-radius: 999px;
  font-size: clamp(0.95rem, 2.4vh, 1.25rem);
  font-weight: 800;
  color: #1a0a2e;
  box-shadow: 2px 2px 0 rgba(26, 10, 46, 0.35);
}

.memory-score-pill strong {
  font-size: clamp(1.1rem, 2.8vh, 1.45rem);
  font-weight: 900;
  line-height: 1;
}

.word-memory-game .memory-grid {
  flex: 1;
  min-height: 0;
  width: min(98%, 920px);
  max-width: none;
  max-height: min(72vh, 780px);
  margin: 0 auto;
  grid-template-rows: repeat(3, 1fr);
  gap: clamp(10px, 1.8vh, 16px);
  align-content: stretch;
  perspective: 1200px;
}

.word-memory-game .memory-card {
  aspect-ratio: auto;
  min-height: 0;
  height: 100%;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.15s ease;
  transform-style: preserve-3d;
}

.word-memory-game .memory-card:not(:disabled):hover {
  transform: scale(1.04);
}

.word-memory-game .memory-card.is-flipping {
  z-index: 3;
}

.word-memory-game .memory-card:disabled {
  cursor: default;
}

.word-memory-game .memory-card-inner {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 0.72s cubic-bezier(0.34, 1.35, 0.48, 1);
  will-change: transform;
}

.word-memory-game .memory-card.is-flipped .memory-card-inner {
  transform: rotateY(180deg);
}

.word-memory-game .memory-card.is-flipping .memory-card-inner {
  filter: drop-shadow(0 10px 18px rgba(26, 10, 46, 0.28));
}

.word-memory-game .memory-card-side {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 4px solid #1a0a2e;
  box-shadow: 4px 4px 0 rgba(26, 10, 46, 0.28);
  padding: clamp(6px, 1vh, 12px);
  text-align: center;
  word-break: break-word;
}

.word-memory-game .memory-card-back {
  background: var(--mempurple, #b967ff);
  color: #fff;
  font-size: clamp(2.75rem, 9vh, 5.5rem);
  font-weight: 900;
  transform: rotateY(0deg);
}

.word-memory-game .memory-card-front {
  background: #fffef8;
  color: #1a0a2e;
  font-size: clamp(0.95rem, 2.4vh, 1.35rem);
  font-weight: 900;
  transform: rotateY(180deg);
}

.word-memory-game .memory-card.is-matched .memory-card-front {
  background: #6bbf8a;
  color: #fff;
  border-color: #1a5c32;
  box-shadow: 4px 4px 0 rgba(26, 92, 50, 0.35);
}

.word-memory-game .memory-card.is-matched {
  opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
  .word-memory-game .memory-card-inner {
    transition-duration: 0.01ms;
  }
  .word-memory-game .memory-card:not(:disabled):hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .memory-grid { grid-template-columns: repeat(3, 1fr); }
  .word-memory-game .memory-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    max-height: min(68vh, 640px);
  }
}

.memory-card {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: clamp(11px, 2.5vw, 14px);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 6px;
  text-align: center;
  word-break: break-word;
}

.memory-card.back {
  background: var(--btn-bg);
  color: #f8faff;
  font-size: 24px;
}

.memory-card.face { background: rgba(232, 236, 255, 0.35); color: var(--heading); }
.memory-card.matched { opacity: 0.5; cursor: default; border-color: var(--success); }
.memory-card:not(.back):not(.matched):hover { transform: scale(1.05); }

.turn-indicator {
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--accent-2);
}

.hangman-display {
  text-align: center;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: 0.2em;
  direction: ltr;
  margin: 24px 0;
  color: var(--ink, #1a0a2e);
  font-family: monospace;
}

.hangman-game {
  text-align: center;
  color: var(--ink, #1a0a2e);
  padding: 8px 0 16px;
  background: transparent;
}

.guest-game .hangman-game,
body.in-room .hangman-game {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 4px 0 8px;
}

.guest-game .hangman-game .hangman-misses,
body.in-room .hangman-game .hangman-misses {
  margin-bottom: clamp(4px, 1vh, 12px);
  font-size: clamp(1rem, 2.8vh, 1.5rem);
}

.guest-game .hangman-game .hangman-display,
body.in-room .hangman-game .hangman-display {
  margin: clamp(4px, 1vh, 12px) 0;
  font-size: clamp(1.75rem, 6vh, 3.25rem);
}

.guest-game .hangman-game .hangman-hint,
body.in-room .hangman-game .hangman-hint {
  margin-bottom: clamp(8px, 1.5vh, 16px);
  font-size: clamp(0.9rem, 2.4vh, 1.25rem);
}

.guest-game .hangman-game .hangman-letters,
body.in-room .hangman-game .hangman-letters {
  flex-shrink: 0;
  gap: clamp(6px, 1vh, 10px);
}

.guest-game .hangman-game .letter-btn,
body.in-room .hangman-game .letter-btn {
  width: clamp(40px, 7.5vh, 52px);
  height: clamp(40px, 7.5vh, 52px);
  font-size: clamp(0.9rem, 2vh, 1.15rem);
  background: rgba(255, 255, 255, 0.5);
}

.hangman-game .hangman-misses {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 900;
  color: var(--ink, #1a0a2e);
  -webkit-text-fill-color: var(--ink, #1a0a2e);
}

.hangman-game .hangman-display {
  margin: 12px 0 20px;
  font-size: clamp(2.75rem, 9vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  font-family: var(--font-sans), monospace, sans-serif;
  color: var(--ink, #1a0a2e);
  -webkit-text-fill-color: var(--ink, #1a0a2e);
}

.hangman-game .hangman-hint {
  margin: 0 0 28px;
  font-size: clamp(1.45rem, 4.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--ink, #1a0a2e);
  -webkit-text-fill-color: var(--ink, #1a0a2e);
  opacity: 1;
}

.hangman-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

.hangman-game .hangman-letters {
  max-width: 820px;
  gap: 12px;
}

.letter-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.06);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  direction: ltr;
  color: var(--ink, #1a0a2e);
}

.hangman-game .letter-btn {
  width: clamp(48px, 9vw, 64px);
  height: clamp(48px, 9vw, 64px);
  border-radius: 14px;
  border: 3px solid var(--ink, #1a0a2e);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 3px 3px 0 var(--ink, #1a0a2e);
  font-size: clamp(1.15rem, 3.2vw, 1.6rem);
  font-weight: 900;
  color: var(--ink, #1a0a2e);
  transition: transform 0.1s ease, background 0.12s ease;
}

.hangman-game .letter-btn:not(:disabled):hover {
  background: var(--memyellow, #ffe135);
  transform: translate(-1px, -1px);
}

.letter-btn:disabled { opacity: 0.35; cursor: default; }
.letter-btn.used-correct { background: rgba(107, 191, 138, 0.3); }
.letter-btn.used-wrong { background: rgba(224, 112, 112, 0.2); }

.hangman-game .letter-btn.used-correct {
  background: rgba(107, 191, 138, 0.55);
  border-color: var(--success, #6bbf8a);
  opacity: 1;
}

.hangman-game .letter-btn.used-wrong {
  background: rgba(224, 112, 112, 0.4);
  border-color: var(--danger, #e07070);
  opacity: 1;
}

.hangman-drawing {
  text-align: center;
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--ink, #1a0a2e);
}

.hangman-misses {
  font-weight: 700;
}

.scramble-words {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0;
  direction: ltr;
}

.scramble-chip {
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
  color: var(--ink, #1a0a2e);
}

.scramble-chip.in-sentence {
  background: rgba(107, 191, 138, 0.2);
  border-color: var(--success);
}

.scramble-input-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 52px;
  padding: 12px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  margin: 16px auto;
  max-width: 560px;
  direction: ltr;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.52);
}

.sentence-scramble-game {
  color: var(--ink, #1a0a2e);
}

/* Fit entire game on one screen — guest + room */
.guest-game .sentence-scramble-game,
body.in-room .sentence-scramble-game {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.guest-game .sentence-scramble-head,
body.in-room .sentence-scramble-head {
  flex-shrink: 0;
  margin-bottom: clamp(4px, 1vh, 10px);
}

.guest-game .sentence-scramble-round,
body.in-room .sentence-scramble-round {
  margin-bottom: clamp(2px, 0.6vh, 8px);
  gap: 8px;
}

.guest-game .sentence-scramble-round-label.font-cartoon,
.guest-game .sentence-scramble-round-num.font-cartoon,
body.in-room .sentence-scramble-round-label.font-cartoon,
body.in-room .sentence-scramble-round-num.font-cartoon {
  font-size: clamp(1.15rem, 3.8vh, 1.85rem);
  -webkit-text-stroke: clamp(3px, 0.65vw, 6px) var(--ink, #1a0a2e);
}

.guest-game .sentence-scramble-prompt,
body.in-room .sentence-scramble-prompt {
  font-size: clamp(0.95rem, 2.6vh, 1.35rem);
  line-height: 1.25;
}

.guest-game .sentence-scramble-workspace,
body.in-room .sentence-scramble-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 12px);
  justify-content: center;
}

.guest-game .scramble-build-section,
.guest-game .scramble-pool-section,
body.in-room .scramble-build-section,
body.in-room .scramble-pool-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.guest-game .scramble-section-label,
body.in-room .scramble-section-label {
  flex-shrink: 0;
  margin-bottom: 4px;
  font-size: clamp(0.8rem, 1.8vh, 1rem);
}

.guest-game .sentence-scramble-game .scramble-input-area,
.guest-game .sentence-scramble-game .scramble-words,
body.in-room .sentence-scramble-game .scramble-input-area,
body.in-room .sentence-scramble-game .scramble-words {
  flex: 1;
  min-height: 44px;
  max-height: 22vh;
  padding: 8px 10px;
  border-width: 3px;
  box-shadow: 3px 3px 0 var(--ink, #1a0a2e);
}

.guest-game .sentence-scramble-game .scramble-chip,
body.in-room .sentence-scramble-game .scramble-chip {
  min-width: clamp(52px, 12vw, 84px);
  min-height: clamp(34px, 6vh, 44px);
  padding: 6px 10px;
  font-size: clamp(0.85rem, 2vh, 1.1rem);
  border-width: 3px;
  box-shadow: 3px 3px 0 var(--ink, #1a0a2e);
}

.guest-game .scramble-area-hint,
body.in-room .scramble-area-hint {
  font-size: clamp(0.78rem, 1.8vh, 0.95rem);
}

.guest-game .sentence-scramble-actions,
body.in-room .sentence-scramble-actions {
  flex-shrink: 0;
  margin-top: 0;
}

.guest-game .game-actions,
body.in-room .game-actions {
  margin-top: clamp(4px, 1vh, 10px);
  gap: 8px;
}

.guest-game .game-actions .btn,
body.in-room .game-actions .btn {
  padding: 10px 16px;
  font-size: clamp(0.85rem, 2vh, 1rem);
}

.sentence-scramble-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.scramble-build-section,
.scramble-pool-section {
  text-align: center;
}

.scramble-section-label {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 900;
  color: var(--ink, #1a0a2e);
}

.sentence-scramble-game .scramble-input-area {
  min-height: clamp(72px, 14vw, 96px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 16px;
  border: 4px solid var(--ink, #1a0a2e);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 4px 4px 0 var(--ink, #1a0a2e);
  justify-content: flex-start;
  align-items: center;
  align-content: center;
}

.sentence-scramble-game .scramble-input-area:empty,
.sentence-scramble-game .scramble-input-area.is-empty {
  justify-content: center;
}

.sentence-scramble-game .scramble-words {
  gap: 12px;
  padding: 14px 16px;
  border: 4px solid var(--ink, #1a0a2e);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 4px 4px 0 var(--ink, #1a0a2e);
  min-height: clamp(72px, 14vw, 96px);
  align-items: center;
  align-content: center;
}

.sentence-scramble-game .scramble-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(72px, 18vw, 110px);
  min-height: clamp(48px, 10vw, 58px);
  padding: 10px 16px;
  border-radius: 14px;
  border: 4px solid var(--ink, #1a0a2e);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink, #1a0a2e);
  font-size: clamp(1.1rem, 3.2vw, 1.45rem);
  font-weight: 900;
  color: var(--ink, #1a0a2e);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.12s ease;
  direction: ltr;
}

.sentence-scramble-game .scramble-chip:not(:disabled):hover {
  background: var(--memyellow, #ffe135);
  transform: translate(-1px, -1px);
}

.sentence-scramble-game .scramble-chip:disabled {
  opacity: 0.28;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.sentence-scramble-game .scramble-chip.in-sentence {
  background: rgba(107, 191, 138, 0.72);
  border-color: var(--success, #6bbf8a);
  box-shadow: 3px 3px 0 rgba(26, 10, 46, 0.85);
  opacity: 1;
}

.sentence-scramble-actions {
  margin-top: 4px;
}

.sentence-scramble-head {
  text-align: center;
  margin-bottom: 22px;
}

.sentence-scramble-round {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sentence-scramble-round-label.font-cartoon,
.sentence-scramble-round-num.font-cartoon {
  font-weight: 900;
  line-height: 1.1;
  paint-order: stroke fill;
  -webkit-text-stroke: clamp(4px, 0.9vw, 8px) var(--ink, #1a0a2e);
  -webkit-text-stroke-color: var(--ink, #1a0a2e);
  -webkit-text-fill-color: var(--memyellow, #ffe135);
  color: var(--memyellow, #ffe135);
  text-shadow: none;
}

.sentence-scramble-round-label.font-cartoon {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
}

.sentence-scramble-round-num.font-cartoon {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  direction: ltr;
}

.sentence-scramble-prompt {
  margin: 0;
  font-size: clamp(1.45rem, 4.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--ink, #1a0a2e);
}

.scramble-area-hint {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 800;
  color: var(--ink, #1a0a2e);
  opacity: 0.72;
}

.spelling-input {
  width: 100%;
  max-width: 360px;
  margin: 16px auto;
  display: block;
  padding: 16px 20px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: rgba(0, 0, 0, 0.06);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  direction: ltr;
  color: var(--heading);
  font-family: inherit;
}

.round-result {
  text-align: center;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(26, 10, 46, 0.12);
  margin: 20px 0;
  color: var(--ink, #1a0a2e);
}

.round-result h4,
.round-result p,
.round-result strong {
  color: var(--ink, #1a0a2e);
  -webkit-text-fill-color: var(--ink, #1a0a2e);
}

.round-result h4 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.round-result p {
  margin: 6px 0 0;
  font-weight: 800;
  line-height: 1.45;
}

.round-result--win {
  background: rgba(255, 244, 194, 0.88);
  border-color: rgba(255, 184, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.25), 0 8px 24px rgba(255, 184, 0, 0.18);
}

.round-result--win h4 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

/* Win celebration */
.win-confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 25000;
  pointer-events: none;
  overflow: hidden;
}

.win-confetti-piece {
  position: absolute;
  top: -12px;
  width: 10px;
  height: 14px;
  opacity: 0.95;
  animation: win-confetti-fall linear forwards;
}

@keyframes win-confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0.15;
  }
}

.room-participant--round-winner,
.guest-participant--round-winner {
  border-color: #ffb800 !important;
  border-width: 5px !important;
  box-shadow:
    0 0 0 2px rgba(255, 215, 0, 0.45),
    0 0 12px rgba(255, 184, 0, 0.35),
    var(--shadow-candy, 4px 4px 0 var(--ink));
  overflow: visible;
  z-index: 1;
}

.participant-win-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  z-index: 2;
}

.participant-win-confetti i {
  position: absolute;
  width: 5px;
  height: 7px;
  border-radius: 1px;
  opacity: 0;
  animation: participant-confetti-burst 2.4s ease-out infinite;
}

.participant-win-confetti i:nth-child(1) { left: 10%; top: 6%; background: #ffe135; --tx: -6px; --ty: -12px; animation-delay: 0s; }
.participant-win-confetti i:nth-child(2) { left: 78%; top: 10%; background: #ff9ecf; --tx: 8px; --ty: -14px; animation-delay: 0.25s; }
.participant-win-confetti i:nth-child(3) { left: 22%; top: 72%; background: #b967ff; --tx: -10px; --ty: 8px; animation-delay: 0.5s; }
.participant-win-confetti i:nth-child(4) { left: 84%; top: 68%; background: #00e5cc; --tx: 10px; --ty: 10px; animation-delay: 0.75s; }
.participant-win-confetti i:nth-child(5) { left: 48%; top: 4%; background: #ffd700; --tx: 0; --ty: -16px; animation-delay: 1s; border-radius: 50%; }
.participant-win-confetti i:nth-child(6) { left: 6%; top: 42%; background: #ff6b35; --tx: -12px; --ty: 2px; animation-delay: 1.25s; }
.participant-win-confetti i:nth-child(7) { left: 88%; top: 38%; background: #fff; --tx: 12px; --ty: -4px; animation-delay: 1.5s; }
.participant-win-confetti i:nth-child(8) { left: 52%; top: 82%; background: #c8f020; --tx: 4px; --ty: 12px; animation-delay: 1.75s; border-radius: 50%; }

@keyframes participant-confetti-burst {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.4);
  }
  12% {
    opacity: 1;
  }
  55% {
    opacity: 0.85;
    transform: translate(var(--tx, 6px), var(--ty, -10px)) rotate(140deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--tx, 6px) * 1.4), calc(var(--ty, -10px) * 1.4)) rotate(260deg) scale(0.6);
  }
}

.room-participant--round-winner > :not(.participant-win-confetti),
.guest-participant--round-winner > :not(.participant-win-confetti) {
  position: relative;
  z-index: 1;
}

.game-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Modal */
#loginModal .modal {
  width: min(300px, 88vw);
  max-width: min(300px, 88vw);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 44px 24px 32px;
  --modal-fill: var(--memteal);
  background: var(--memteal) !important;
  text-align: center;
}

#loginModal .modal h2,
.modal-login h2 {
  margin: 0;
  width: 100%;
  text-align: center;
  paint-order: normal;
  -webkit-text-stroke: 0;
  -webkit-text-fill-color: var(--ink);
  color: var(--ink);
  text-shadow: none;
  font-weight: 800;
}

#loginModal .modal-close {
  color: var(--ink);
  z-index: 5;
}

#loginModal .btn-google {
  width: calc(100% - 8px);
  max-width: 240px;
}

#loginModal .form-error {
  width: 100%;
  margin: 0;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(185, 103, 255, 0.14);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-overlay > .modal {
  --modal-fill: var(--memteal);
  background: var(--memteal) !important;
  border: 3px solid color-mix(in srgb, var(--modal-fill) 62%, var(--ink));
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--modal-fill) 36%, var(--ink)),
    6px 8px 0 0 color-mix(in srgb, var(--modal-fill) 22%, var(--ink));
}

.modal-custom-game,
.modal-login {
  --modal-fill: var(--memteal);
  background: var(--memteal) !important;
}

.modal {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink, #1a0a2e);
  line-height: 1;
}

.modal-close:hover {
  color: var(--memorange, #ff6b35);
}

.modal h2 {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--heading);
}

#joinModal .modal h2.font-cartoon,
#soloContentModal .modal h2.font-cartoon,
#playModeModal .modal h2.font-cartoon {
  text-align: center;
  width: 100%;
  margin: 0 0 12px;
  padding-top: 4px;
  font-size: clamp(1.75rem, 5.5vw, 2.25rem);
  font-weight: 900;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  paint-order: normal;
  pointer-events: none;
}

#joinModal .modal-desc {
  text-align: center;
}

#joinModal .join-modal-name-field span {
  text-align: center;
}

#joinModal .join-modal-submit {
  font-size: clamp(22px, 4.5vw, 30px);
  font-weight: 800;
  padding: 20px 28px;
  min-height: 64px;
}

#joinModal.join-modal--teacher .modal,
#soloContentModal .modal {
  max-width: min(520px, 94vw);
}

.join-material-group {
  margin: 16px 0 8px;
}

.join-material-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.join-material-label > span:first-child {
  font-weight: 900;
  font-size: 15px;
  color: var(--ink);
  text-align: center;
}

.join-material-hint {
  font-size: clamp(16px, 3.5vw, 19px);
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  line-height: 1.45;
}

.solo-content-lead {
  font-size: clamp(22px, 4.5vw, 32px);
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  line-height: 1.35;
  margin: 0 0 24px;
}

.solo-game-pick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.solo-game-pick span {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
}

.solo-game-pick select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}

.create-game-preview {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: #e8faf8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.create-game-preview.hidden {
  display: none;
}

.create-game-preview-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.create-game-preview-list li {
  padding: 4px 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.join-material-box {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}

.join-material-box textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  padding: 14px 14px 58px;
  border: none;
  resize: vertical;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  background: transparent;
  box-sizing: border-box;
}

.join-material-box textarea:focus {
  outline: none;
}

.join-material-box.is-dragover {
  box-shadow: 0 0 0 3px var(--memteal);
}

.join-material-attach {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--memyellow);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  z-index: 1;
}

.join-material-attach:hover {
  transform: translate(-1px, -1px);
}

.join-material-file-name {
  display: block;
  padding: 0 14px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.join-material-file-name:empty {
  display: none;
  padding: 0;
}

#soloContentModal .join-modal-submit {
  margin-top: 16px;
}

.modal-desc {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.modal label {
  display: block;
  margin-bottom: 16px;
}

.modal label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--heading);
  font-size: 15px;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 3px solid var(--ink);
  background: var(--white);
  font-size: 17px;
  font-family: inherit;
  font-weight: 600;
  color: var(--ink);
}

.modal input::placeholder,
.modal textarea::placeholder {
  color: var(--muted);
}

.modal select {
  cursor: pointer;
}

.modal textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.form-error {
  color: var(--danger);
  font-size: 15px;
  margin-bottom: 12px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  right: 50%;
  transform: translateX(50%);
  z-index: 600;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--heading);
  color: var(--bg-deep);
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s;
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0;
  z-index: 9998;
  background: var(--accent-1);
  box-shadow: 0 0 12px var(--glow-purple);
}

/* ── Scroll reveal animations ── */
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform, filter;
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal="up"],
[data-reveal]:not([data-reveal="left"]):not([data-reveal="right"]):not([data-reveal="scale"]) {
  transform: translateY(40px);
}

[data-reveal="left"] { transform: translateX(32px); }
[data-reveal="right"] { transform: translateX(-32px); }

[data-reveal="scale"] {
  transform: translateY(24px) scale(0.96);
  filter: blur(3px);
}

/* Headings & leads — fade only, no shift */
.section-title[data-reveal],
.section-lead[data-reveal],
.contact-form[data-reveal],
.contact-info[data-reveal] {
  transform: none !important;
  filter: none !important;
}

[data-reveal-delay="1"] { transition-delay: 0.12s; }
[data-reveal-delay="2"] { transition-delay: 0.24s; }
[data-reveal-delay="3"] { transition-delay: 0.36s; }
[data-reveal-delay="4"] { transition-delay: 0.48s; }
[data-reveal-delay="5"] { transition-delay: 0.6s; }

[data-reveal].visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.booking-progress.animated .booking-progress-dot {
  animation: dot-bounce 0.55s var(--ease) backwards;
}

.booking-progress.animated .booking-progress-dot:nth-child(1) { animation-delay: 0.05s; }
.booking-progress.animated .booking-progress-dot:nth-child(3) { animation-delay: 0.15s; }
.booking-progress.animated .booking-progress-dot:nth-child(5) { animation-delay: 0.25s; }
.booking-progress.animated .booking-progress-dot:nth-child(7) { animation-delay: 0.35s; }

@keyframes dot-bounce {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 899px) {
  .loader { display: none; }

  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(-16px);
  }

  .section-title[data-reveal],
  .section-lead[data-reveal],
  .contact-form[data-reveal],
  .contact-info[data-reveal] {
    transform: none !important;
  }

  .blob { opacity: 0.35; filter: blur(60px); }
  .section-wave { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .blob,
  .btn-hero-book,
  .hero-shape-svg,
  .hero-shape-sticker,
  .pitch-card.visible,
  .scroll-section.in-view::after {
    animation: none !important;
  }
}

/* ── Booking & Calendar ── */
.booking-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 40px;
}

.booking-progress-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.04);
}

.booking-progress-dot.active {
  border-color: var(--accent-1);
  color: var(--heading);
  background: rgba(139, 127, 212, 0.2);
}

.booking-progress-dot.done {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.booking-progress-line {
  width: 40px;
  height: 2px;
  background: var(--line);
}

.booking-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .booking-layout { grid-template-columns: 1.2fr 0.8fr; }
}

.calendar-box, .slots-box, .payment-box {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--line);
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-nav h3 {
  margin: 0;
  font-size: 20px;
  color: var(--heading);
}

.cal-nav-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-head {
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
}

.cal-day, .cal-empty {
  aspect-ratio: 1;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: default;
  background: transparent;
  color: var(--muted);
}

.cal-day.available {
  cursor: pointer;
  background: rgba(107, 191, 138, 0.15);
  color: var(--heading);
  border: 1px solid rgba(107, 191, 138, 0.35);
}

.cal-day.available:hover { transform: scale(1.08); }

.cal-day.selected {
  background: var(--btn-bg);
  color: #f8faff;
  border: none;
}

.cal-day.full { opacity: 0.35; }
.cal-day.past { opacity: 0.2; }

.slots-box h3 {
  margin: 0 0 8px;
  color: var(--heading);
}

.booking-price {
  color: var(--accent-2);
  font-weight: 800;
  margin: 0 0 16px;
}

.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  min-height: 80px;
}

.slot-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.06);
  font-weight: 800;
  cursor: pointer;
  color: var(--text);
  direction: ltr;
}

.slot-btn.selected {
  background: var(--btn-bg);
  color: #f8faff;
  border: none;
}

.slot-hint, .cal-loading {
  color: var(--muted);
  font-size: 15px;
}

.booking-form {
  max-width: 480px;
  margin: 0 auto;
}

.booking-form label {
  display: block;
  margin-bottom: 16px;
}

.booking-form label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--heading);
}

.booking-form input,
.booking-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.06);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
}

.pay-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.demo-pay-note {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 20px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(139, 127, 212, 0.12);
}

.pay-summary {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--line);
}

.pay-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.pay-summary-row.total {
  border: none;
  font-size: 20px;
  color: var(--heading);
  margin-top: 8px;
}

.booking-confirm {
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--line);
  max-width: 480px;
  margin: 0 auto;
}

.confirm-icon { font-size: 64px; margin-bottom: 16px; }

.booking-confirm h3 {
  margin: 0 0 12px;
  font-size: 28px;
  color: var(--heading);
}

.confirm-id {
  font-size: 14px;
  color: var(--muted);
  direction: ltr;
}

.confirm-note { color: var(--muted); }

.pin-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.pin-hint code {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Teacher dashboard */
.teacher-dash-view {
  min-height: 100vh;
  padding: 100px 0 60px;
}

.dash-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-header h2 {
  margin: 0;
  font-size: 32px;
  color: var(--heading);
}

.dash-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.dash-filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
}

.dash-filter-btn.active {
  background: var(--btn-bg);
  color: #f8faff;
  border: none;
}

.bookings-list {
  display: grid;
  gap: 16px;
}

.booking-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-bg);
}

.booking-card.paid { border-right: 4px solid var(--success); }
.booking-card.pending { border-right: 4px solid var(--accent-2); }
.booking-card.cancelled { opacity: 0.55; border-right: 4px solid var(--danger); }

.booking-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.booking-card-top strong {
  font-size: 20px;
  color: var(--heading);
}

.booking-status {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.booking-card-meta, .booking-card-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}

.booking-notes {
  font-size: 14px;
  color: var(--body);
  margin: 8px 0;
  font-style: italic;
}

.booking-pay-id {
  font-size: 12px;
  color: var(--muted);
  direction: ltr;
}

.booking-card-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--heading);
  margin-top: 8px;
}

.booking-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.btn-xs {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-xs.danger { color: var(--danger); border-color: var(--danger); }

.dash-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px;
}

.room-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.room-tab {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.04);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  position: relative;
}

.room-tab.active {
  background: var(--card-bg);
  color: var(--heading);
  border-color: var(--accent-1);
}

.tab-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.room-calendar-panel {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.benefit-cards {
  margin-top: 40px;
}

.contact-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 8px auto 0;
}

@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}

.contact-form {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--line);
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
}

.contact-form label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--heading);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.04);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--line);
  text-align: center;
}

.contact-info-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.contact-info-card h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 18px;
}

.contact-info-card a {
  color: var(--accent-1);
  font-weight: 700;
}

.whatsapp-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  border-radius: var(--radius);
  background: #25d366;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-candy);
  text-decoration: none;
  color: var(--white);
  font-weight: 900;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 0 0 var(--ink), 0 0 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 3px solid rgba(255, 255, 255, 0.45);
}

.whatsapp-label {
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.02em;
}

.whatsapp-phone {
  font-size: 16px;
  font-weight: 800;
  opacity: 0.92;
}

.site-qr {
  margin-top: 48px;
  max-width: 420px;
  margin-inline: auto;
  text-align: center;
  padding: 28px 24px 32px;
  background: var(--mempurple);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-candy);
  rotate: 0deg;
}

.site-qr-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 32px);
}

.site-qr-title.font-cartoon,
h3.site-qr-title.font-cartoon {
  color: var(--memyellow);
  -webkit-text-fill-color: var(--memyellow);
}

.site-qr-lead {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  opacity: 0.85;
}

.site-qr-box {
  display: inline-block;
  padding: 12px;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-sticker);
  margin-bottom: 16px;
}

.site-qr-box img {
  display: block;
  width: 240px;
  height: 240px;
}

.site-qr-url {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  word-break: break-all;
}

.site-qr-copy {
  background: var(--white);
}

.teachers-cards {
  margin-bottom: 32px;
}

.teachers-actions {
  justify-content: center;
  margin-top: 8px;
}

.teachers-hint {
  text-align: center;
  margin: 20px auto 0;
  max-width: 520px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  opacity: 0.85;
}

.site-footer {
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-tagline {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--ink);
  rotate: 0deg;
  text-shadow: 4px 4px 0 var(--white);
  margin: 0;
}

.footer-copy {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  background: var(--mempink);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-sticker);
  rotate: 0deg;
}

.section-yellow .footer-copy {
  background: var(--memteal);
}

/* Game room section */
.game-room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 32px 0;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.game-room-info {
  margin-top: 16px;
}

.game-room-info .pitch-card::after {
  display: none;
}

.room-join-link {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  word-break: break-all;
}

.room-join-link a {
  color: var(--accent-1);
  font-weight: 700;
}

.pay-method-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0 16px;
}

.pay-tab {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
}

.pay-tab.active {
  background: var(--btn-bg);
  color: #f8faff;
  border-color: transparent;
}

.bit-pay-box {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--step-bg);
  margin-bottom: 16px;
  text-align: center;
}

.bit-pay-amount {
  font-size: 24px;
  font-weight: 800;
  color: var(--heading);
  margin: 0 0 8px;
}

.bit-pay-phone,
.bit-pay-name {
  margin: 4px 0;
  color: var(--body);
}

.bit-pay-note {
  font-size: 15px;
  color: var(--muted);
  margin: 16px 0;
  line-height: 1.6;
}

.modal-lg {
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
}

.game-preview-frame {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--step-bg);
  min-height: 200px;
  pointer-events: none;
  user-select: none;
}

.game-preview-note {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.logo-text {
  font-size: 28px;
  color: var(--white);
  text-shadow: 3px 3px 0 var(--ink);
}

html[data-theme="light"] .logo-text {
  color: var(--ink);
  text-shadow: none;
}

/* ── Spot the difference — memory-game look ── */
.spot-diff-game {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
  height: 100%;
  width: 100%;
  gap: clamp(6px, 1vh, 10px);
  padding-inline: clamp(10px, 2.5vw, 24px);
  box-sizing: border-box;
  color: var(--ink, #1a0a2e);
  overflow-x: hidden;
  overflow-y: auto;
}

.spot-diff-intro {
  flex-shrink: 0;
  width: min(100%, 760px);
  max-width: min(100%, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
}

.spot-diff-game .memory-score-bar {
  padding: clamp(4px, 0.7vh, 7px) clamp(10px, 1.4vh, 14px);
}

.spot-diff-game .memory-score-title,
.spot-diff-game .memory-score-pill {
  font-size: clamp(0.78rem, 1.6vh, 0.95rem);
}

.spot-diff-round-bar {
  flex-shrink: 0;
  margin-bottom: 0;
}

.spot-diff-prompt-zone {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vh, 16px) 0;
}

.spot-diff-prompt {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spot-diff-prompt-text {
  display: inline-block;
  text-align: center;
  font-size: clamp(1.15rem, 3vh, 1.65rem);
  font-weight: 900;
  color: var(--ink, #1a0a2e);
  line-height: 1.25;
}

.guest-game .spot-diff-game,
body.in-room .spot-diff-game {
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
}

.spot-diff-board {
  flex-shrink: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.2vh, 14px);
  width: min(100%, 760px);
  max-width: min(100%, 760px);
  margin-inline: auto;
  align-items: start;
  height: auto;
}

.spot-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.7vh, 8px);
  min-width: 0;
  width: 100%;
  height: auto;
  padding: clamp(6px, 0.9vh, 10px);
  background: #ebe4fb;
  border: 4px solid #1a0a2e;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #1a0a2e;
}

.spot-panel-label {
  flex-shrink: 0;
  align-self: center;
  margin: 0;
  padding: clamp(2px, 0.5vh, 5px) clamp(12px, 1.8vh, 18px);
  background: var(--mempurple, #b967ff);
  color: #fff;
  border: 3px solid #1a0a2e;
  border-radius: 999px;
  font-size: clamp(0.85rem, 1.8vh, 1.05rem);
  font-weight: 900;
  box-shadow: 2px 2px 0 rgba(26, 10, 46, 0.35);
}

.spot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: clamp(6px, 1vh, 10px);
  width: 100%;
}

.spot-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.7vh, 8px);
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  min-height: 0;
  padding: clamp(6px, 1vh, 10px);
  border: 3px solid #1a0a2e;
  border-radius: 12px;
  background: #fffef8;
  color: #1a0a2e;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 2px 2px 0 rgba(26, 10, 46, 0.28);
  transition: transform 0.15s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.spot-cell:not(:disabled):hover {
  transform: scale(1.03);
}

.spot-cell.picked {
  background: var(--memteal, #2ec4b6);
  box-shadow: 3px 3px 0 #1a0a2e;
}

.spot-cell.correct {
  background: #6bbf8a;
  color: #fff;
  border-color: #1a5c32;
  box-shadow: 3px 3px 0 rgba(26, 92, 50, 0.35);
}

.spot-cell.wrong {
  background: #e03030;
  color: #fff;
  border-color: #1a0a2e;
}

.spot-cell:disabled {
  cursor: default;
  opacity: 0.92;
}

.spot-emoji {
  font-size: clamp(1.4rem, 4.8vmin, 2.35rem);
  line-height: 1;
  display: block;
  flex-shrink: 0;
}

.spot-word {
  font-size: clamp(0.88rem, 2.4vmin, 1.2rem);
  font-weight: 900;
  line-height: 1.15;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.spot-diff-foot {
  flex-shrink: 0;
  width: min(100%, 760px);
  max-width: min(100%, 760px);
  margin-inline: auto;
  justify-self: center;
  min-height: 0;
  padding-bottom: clamp(10px, 1.6vh, 16px);
}

.spot-diff-foot .round-result {
  margin: clamp(2px, 0.4vh, 4px) 0;
  padding: clamp(6px, 0.9vh, 10px) clamp(10px, 1.2vh, 14px);
}

.spot-diff-foot .round-result h4 {
  margin: 0;
  font-size: clamp(0.85rem, 1.8vh, 1rem);
}

.spot-diff-foot .game-status {
  margin: clamp(2px, 0.4vh, 4px) 0;
  padding: clamp(5px, 0.8vh, 8px);
  font-size: clamp(0.75rem, 1.5vh, 0.88rem);
}

.spot-diff-foot .game-actions {
  margin-top: clamp(4px, 0.8vh, 8px);
  margin-bottom: clamp(2px, 0.4vh, 6px);
}

.spot-diff-foot .game-actions .btn {
  padding: clamp(6px, 1vh, 10px) clamp(12px, 1.6vh, 16px);
  font-size: clamp(0.78rem, 1.5vh, 0.9rem);
}

body.in-room .game-panel:has(.spot-diff-game) {
  padding-bottom: clamp(12px, 1.8vh, 18px);
}

.guest-game:has(.spot-diff-game) {
  padding-bottom: clamp(10px, 1.6vh, 16px);
}

@media (max-width: 640px) {
  .spot-diff-board {
    grid-template-columns: 1fr;
  }
}

/* ── New mini-games UI (other) ── */
.runner-scene {
  position: relative;
  height: 160px;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
  background: #87ceeb;
  box-shadow: inset 0 -48px 0 var(--memlime);
}

.runner-player {
  position: absolute;
  bottom: 28%;
  left: 15%;
  font-size: 48px;
  animation: runner-bob 0.4s ease-in-out infinite;
}

.runner-obstacle {
  position: absolute;
  bottom: 28%;
  right: 20%;
  font-size: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes runner-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.runner-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.runner-lane-btn {
  padding: 14px 24px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--mempurple);
  color: white;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-sticker);
}

.candy-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), 1fr);
  gap: 6px;
  margin: 16px 0;
}

.candy-tile {
  padding: 10px 4px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  min-height: 52px;
}

.candy-tile.selected { outline: 4px solid var(--ink); transform: scale(1.05); }
.candy-yellow { background: var(--memyellow); }
.candy-pink { background: var(--mempink); }
.candy-purple { background: var(--mempurple); color: white; }
.candy-teal { background: var(--memteal); }

.shop-customer {
  text-align: center;
  padding: 20px;
  background: var(--memyellow);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sticker);
}

.shop-customer-emoji { font-size: 48px; }
.shop-request { font-size: 20px; font-weight: 700; margin: 8px 0; }

.shop-shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.shop-item {
  padding: 16px;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-sticker);
}

.shop-emoji { font-size: 32px; display: block; margin-bottom: 6px; }

.game-btn {
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-sticker);
  font-weight: 800;
}

.section-title.font-cartoon {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.section-electric .section-title.font-cartoon {
  font-size: clamp(2.75rem, 8vw, 5rem);
}

input, textarea, select {
  font-family: var(--font-sans);
  font-weight: 700;
}

.game-btn,
.quiz-option,
.letter-btn,
.memory-card,
.candy-tile {
  font-family: var(--font-sans);
  font-weight: 800;
}

.mobile-nav a {
  font-weight: 900;
}

/* Straight alignment — no tilted buttons, cards, or content blocks */
.logo,
.nav-links,
.nav-pill,
.nav-links a,
.nav-auth-btn,
.nav-cta,
.mobile-nav a,
.mobile-nav-auth,
.mobile-nav-services-btn,
.btn,
.btn-candy,
.btn-outline,
.btn-primary,
.btn-google,
.sticker-card,
.pitch-card,
.benefit-cards .pitch-card,
.step-card,
.sticker-box,
.hero-badge,
.hero-sticker-card,
.site-qr,
.site-qr-box,
.site-qr-copy,
.site-qr-title,
.footer-tagline,
.footer-copy,
.footer-inner,
.site-footer,
.contact-form,
.contact-info,
.whatsapp-btn,
.how-timeline-step,
.how-timeline-body,
.how-timeline-marker,
.how-classroom-btn,
.clean-center-cta,
.game-btn,
.game-picker,
.hub-tab,
.hub-game-card,
.hub-skill-filters-panel,
.hub-skill-filter,
.hub-custom-form,
.hub-custom-card,
.hub-grid-empty,
.modal,
.modal-play-mode,
.play-mode-choice,
.join-card,
.join-brand-wrap,
.join-header,
.room-share-card,
.room-students-card,
.room-chat-card,
.guest-room-panel,
.room-tile,
.lp-card,
.premium-plan,
.premium-card,
.site-legal-nav a,
.nav-user-dropdown,
.teacher-room-panel,
.hub-back,
.lp-back {
  rotate: 0deg !important;
}

.hero-badge,
.sticker-card,
.hero-sticker-card {
  --mem-rotate: 0deg;
}

/* Hide noisy confetti only — background shapes stay subtle via page CSS */
.marker-confetti,
.hub-custom-confetti {
  display: none !important;
}

/* Hide decorative background shapes site-wide (hero panel keeps its shapes) */
.memphis-bg,
.hub-memphis-bg,
.lp-memphis-bg,
.room-memphis-bg,
.clean-section-shapes,
.clean-memphis-layer,
.clean-memphis-sticker,
.clean-memphis-ring,
.clean-memphis-zigzag,
.clean-memphis-svg,
.hub-memphis-sticker,
.room-memphis-sticker,
.lp-shape,
.memphis-sticker {
  display: none !important;
}

.clean-memphis-sticker,
.hub-memphis-sticker,
.lp-shape,
.room-memphis-sticker,
.clean-memphis-ring {
  border: 3px solid var(--shape-tq-line) !important;
  box-shadow: none !important;
}

.clean-memphis-sticker--purple,
.hub-memphis-sticker--purple,
.lp-shape--1,
.room-memphis-sticker--purple { background: var(--shape-tq-deep) !important; }

.clean-memphis-sticker--yellow,
.hub-memphis-sticker--yellow,
.lp-shape--2,
.room-memphis-sticker--yellow { background: var(--shape-tq-soft) !important; }

.clean-memphis-sticker--pink,
.hub-memphis-sticker--pink,
.room-memphis-sticker--pink { background: var(--shape-tq-pale) !important; }

.clean-memphis-sticker--orange,
.hub-memphis-sticker--orange { background: var(--shape-tq-accent) !important; }

.clean-memphis-sticker--lime,
.hub-memphis-sticker--lime,
.room-memphis-sticker--lime { background: var(--shape-tq-mid) !important; }

.clean-memphis-sticker--teal,
.hub-memphis-sticker--teal,
.lp-shape--3 { background: var(--shape-tq-mid) !important; }

.hub-memphis-sticker--mint { background: var(--shape-tq-pale) !important; }

.hub-memphis-sticker--coral { background: var(--shape-tq-deep) !important; }

.clean-memphis-ring--purple { border-color: var(--shape-tq-deep) !important; }

.clean-memphis-ring--yellow { border-color: var(--shape-tq-soft) !important; }

body.clean-site .clean-memphis-svg circle {
  stroke: none !important;
}

body.clean-site .clean-memphis-svg circle:nth-child(1) { fill: var(--shape-tq-soft) !important; }

body.clean-site .clean-memphis-svg circle:nth-child(2) { fill: var(--shape-tq-pale) !important; }

body.clean-site .clean-memphis-zigzag path {
  stroke: var(--shape-tq-accent) !important;
  stroke-width: 3;
}
