/* Multiplayer-first layout. The existing bright palette and game fonts stay. */
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 4px solid #9439ee; outline-offset: 6px; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font: 700 clamp(24px, 2.5vw, 32px)/1.6 GamePixelDisplay, monospace; letter-spacing: -.7px; }
.party-container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.party-section { padding-block: 76px; }
.party-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 14px max(28px, calc((100vw - 1380px)/2)); background: var(--ink); color: #fff; border-bottom: 4px solid var(--ink); }
.party-brand { font-size: 25px; color: var(--yellow); white-space: nowrap; }
.party-banner p { font-size: 21px; text-align: center; }
.party-banner p span { color: var(--green); padding: 0 8px; }
.party-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 58px; padding: 12px 26px; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px var(--ink); font: 700 27px/1.15 GamePixel, monospace; transition: transform .12s, box-shadow .12s; text-align: center; }
.party-button:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 7px 7px var(--ink); }
.party-button:active { transform: translate(3px, 3px); box-shadow: 2px 2px var(--ink); }
.button-white { background: #fff; }
.banner-play { min-height: 42px; padding: 8px 15px; font-size: 22px; border: 2px solid #fff; box-shadow: 3px 3px #ffffff55; white-space: nowrap; }
#top { border-bottom: 4px solid var(--ink); }
#top img { width: 100%; height: auto; }
.party-intro { position: relative; text-align: center; padding-block: 38px 48px; }
.party-intro .recess-sticker { margin: 0 auto 22px; }
.party-intro h1 { font: 700 clamp(42px, 5.5vw, 70px)/1.03 GamePixel, monospace; }
.party-intro h1 span { display: inline-block; color: var(--purple); transform: rotate(-2deg); text-shadow: 2px 2px #d9bbfa; }
.intro-copy { margin: 22px auto; max-width: 770px; font-size: 27px; }
.party-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.party-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 10px; padding: 0; list-style: none; font-size: 22px; }
.party-facts li::before { content: '✓'; color: #218348; margin-right: 8px; }
.solo-note { font-size: 20px; color: #625a70; }
.invite-band { background: #e9e2ff; border-block: 3px solid var(--ink); padding-block: 44px 32px; }
.section-title { max-width: 850px; text-align: center; margin: 0 auto 32px; }
.mini-label { font-size: 21px; color: var(--purple); font-weight: 700; margin-bottom: 10px; }
.section-title > p:last-child { margin-top: 12px; font-size: 25px; }
.invite-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; list-style: none; padding: 0; margin: 40px 0 0; }
.invite-steps li { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px var(--ink); padding: 32px 22px 22px; transform: rotate(-1deg); }
.invite-steps li:nth-child(2) { transform: rotate(1deg); }
.step-sticker { position: absolute; display: grid; place-items: center; top: -20px; left: 20px; width: 42px; height: 42px; border: 3px solid var(--ink); background: var(--yellow); font-size: 28px; border-radius: 50%; }
.invite-steps li:nth-child(2) .step-sticker { background: var(--green); }
.invite-steps li:nth-child(3) .step-sticker { background: #d4b2ff; }
.game-ui-label { display: inline-block; background: #e8f4e9; border: 2px solid var(--ink); border-radius: 5px; padding: 4px 9px; font-size: 18px; box-shadow: 2px 2px var(--ink); }
.invite-steps h3 { font-size: 30px; margin: 14px 0 8px; line-height: 1.05; }
.invite-steps p { font-size: 22px; color: #524b60; }
.invite-footnote { margin-top: 27px; text-align: center; font-size: 21px; }
.game-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 36px 0 27px; }
.game-choice { min-height: 70px; padding: 12px; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px var(--ink); font-size: 26px; line-height: 1; transform: rotate(-1deg); transition: transform .15s; }
.game-choice span { display: block; font-size: 17px; margin-bottom: 6px; }
.game-choice:nth-child(2n) { transform: rotate(1deg); }
.game-choice:nth-child(1) { --choice: #d4b2ff; }
.game-choice:nth-child(2) { --choice: #a4c8ff; }
.game-choice:nth-child(3) { --choice: var(--green); }
.game-choice:nth-child(4) { --choice: var(--yellow); }
.game-choice:hover, .game-choice.is-active { background: var(--choice); transform: translateY(-5px); }
.game-choice.is-active { box-shadow: 4px 7px var(--ink); }
.game-panel { display: grid; grid-template-columns: 1.12fr 1fr; overflow: hidden; margin-bottom: 28px; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 7px 7px var(--ink); background: #fff; }
.game-panel[hidden] { display: none; }
.preview-screen { background: #bfd4cf; display: grid; place-items: center; border-right: 3px solid var(--ink); }
.preview-screen video { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.preview-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 28px 32px; background: #faf5ff; }
[data-panel="math-rush"] .preview-copy { background: #edf3ff; }
[data-panel="dodge-battle"] .preview-copy { background: #edfff1; }
[data-panel="hide-and-sneak"] .preview-copy { background: #fff9da; }
.preview-sticker { display: inline-block; padding: 5px 11px; background: var(--green); border: 2px solid var(--ink); box-shadow: 3px 3px var(--ink); transform: rotate(-3deg); font-size: 19px; margin-bottom: 22px; }
.preview-copy h3 { font-size: 22px; color: #655675; }
.friend-hook { font-size: clamp(30px, 3.1vw, 40px); line-height: 1.1; margin: 8px 0 16px; }
.preview-description { font-size: 24px; color: #51475f; }
.preview-copy .party-button { margin-top: 25px; font-size: 25px; }
.preview-note { color: #64566f; font-size: 18px; margin-top: 15px; }
.preview-footnote { text-align: center; font-size: 20px; color: #625a70; }
.moments-band { background: var(--ink); color: #fff; border-block: 4px solid var(--ink); }
.moments-band .mini-label { color: var(--green); }
.moments-story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 32px; }
.moments-copy h2 { margin-top: 16px; }
.moments-description { font-size: 28px; margin-top: 22px; color: #fff; }
.moments-punchline { font-size: 23px; margin-top: 14px; color: #dbd1ef; max-width: 430px; }
.moments-sticker { display: inline-block; margin-top: 26px; padding: 8px 12px; border: 2px solid #fff; background: var(--yellow); color: var(--ink); box-shadow: 4px 4px var(--purple); font-size: 21px; transform: rotate(-4deg); }
.moments-illustration { display: block; width: 100%; height: auto; object-fit: contain; image-rendering: pixelated; }
@media (max-width: 760px) {
  .moments-story { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .moments-punchline { margin-inline: auto; }
  .moments-illustration { max-width: 540px; margin-inline: auto; }
}
.look-section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 48px; }
.look-copy > p:not(.mini-label) { font-size: 25px; margin-top: 18px; }
.look-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0; }
.look-facts li { border: 2px solid var(--ink); border-radius: 7px; padding: 5px 10px; background: #d8c0ff; transform: rotate(-2deg); font-size: 20px; box-shadow: 2px 2px var(--ink); }
.look-facts li:nth-child(2) { background: var(--yellow); transform: rotate(2deg); }
.look-facts li:nth-child(3) { background: var(--green); }
.look-copy p.look-note { font-size: 20px; color: #64566f; }
.look-switch { display: flex; gap: 12px; margin-top: 20px; }
.look-switch button { border: 2px solid var(--ink); border-radius: 8px; padding: 8px 12px; background: #fff; box-shadow: 3px 3px var(--ink); font-size: 22px; }
.look-switch button.is-active { background: var(--blue); color: #fff; }
.look-frame { overflow: hidden; border: 3px solid var(--ink); border-radius: 16px; transform: rotate(1deg); background: #fff; box-shadow: 6px 6px var(--ink); }
.look-frame img { width: 100%; height: auto; aspect-ratio: 1097 / 830; object-fit: contain; image-rendering: pixelated; background: #ede6db; }
.look-frame figcaption { border-top: 2px solid var(--ink); padding: 12px; font-size: 19px; text-align: center; }
.squad-finale { text-align: center; background: var(--blue); color: #fff; padding-block: 55px; border-block: 4px solid var(--ink); background-image: radial-gradient(#ffffff22 2px, transparent 2px); background-size: 24px 24px; }
.finale-sticker { display: inline-block; padding: 8px 18px; margin-bottom: 24px; background: var(--green); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 4px 4px var(--ink); transform: rotate(-4deg); font-size: 23px; }
.squad-finale h2 { text-shadow: 3px 3px var(--ink); }
.squad-finale p:not(.finale-sticker) { margin-top: 18px; font-size: 26px; }
.finale-students { display: flex; align-items: flex-end; justify-content: center; gap: 60px; height: 200px; margin: 12px 0 22px; }
.squad-finale p.finale-hint { font-size: 20px; }
.party-footer { display: flex; align-items: center; gap: 28px; padding-block: 32px; font-size: 20px; }
.party-footer > div { margin-right: auto; }
.footer-wordmark { font-size: 30px; color: var(--purple); }
.party-footer p { font-size: 17px; margin-top: 6px; }
.party-footer p a { text-decoration: underline; }
.contact-chip { padding: 8px 12px; border: 2px solid var(--ink); background: var(--green); border-radius: 8px; box-shadow: 3px 3px var(--ink); transform: rotate(-2deg); }
@media (max-width: 1000px) {
  .party-banner { flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
  .party-banner p { order: 3; width: 100%; font-size: 18px; }
  .party-brand { margin-right: auto; }
  .party-banner .banner-play { margin-left: auto; }
  .preview-copy { padding: 24px; }
  .preview-sticker { font-size: 16px; }
  .friend-hook { font-size: 32px; }
  .preview-description { font-size: 22px; }
  .game-choice { font-size: 23px; }
  .look-section { gap: 30px; }
  .finale-students { gap: 48px; }
}
@media (max-width: 760px) {
  .party-container { width: calc(100% - 40px); }
  .party-section { padding-block: 52px; }
  .party-intro { padding-block: 30px 38px; }
  .party-intro h1 { font-size: 48px; }
  .intro-copy { font-size: 25px; }
  .invite-steps { grid-template-columns: 1fr; gap: 30px; }
  .invite-steps li { padding: 24px 22px 20px 76px; }
  .step-sticker { top: 24px; left: 16px; }
  .invite-steps h3 { margin-top: 12px; }
  .game-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .game-choice { min-height: 64px; }
  .game-choice span { display: inline; margin-right: 9px; }
  .game-panel { grid-template-columns: 1fr; }
  .preview-screen { border-right: 0; border-bottom: 3px solid var(--ink); }
  .preview-screen video { max-height: 480px; }
  .preview-copy { padding: 26px; }
  .preview-sticker { font-size: 19px; }
  .preview-copy .party-button { margin-top: 22px; }
  .friend-hook { font-size: 34px; }
  .look-section { grid-template-columns: 1fr; gap: 30px; }
  .look-frame { max-width: 620px; }
  .finale-students { gap: 36px; height: 165px; }
  .finale-students .student-4, .finale-students .student-5 { display: none; }
  .party-footer { flex-wrap: wrap; gap: 20px; }
  .party-footer > div { flex-basis: 100%; }
}
@media (max-width: 430px) {
  .party-banner { padding: 12px 16px; }
  .party-brand { font-size: 21px; }
  .banner-play { font-size: 19px; padding: 8px 10px; }
  .party-banner p { font-size: 17px; }
  .party-banner p span { padding: 0 3px; }
  .party-intro h1 { font-size: 40px; }
  .party-intro .recess-sticker { font-size: 17px; padding-inline: 9px; }
  .party-actions { gap: 16px; }
  .party-actions .party-button { width: 100%; }
  .party-facts { gap: 7px 14px; font-size: 20px; }
  .mini-label { font-size: 18px; }
  h2 { font-size: 22px; }
  .section-title > p:last-child { font-size: 23px; }
  .game-choice { font-size: 21px; }
  .game-choice span { font-size: 16px; margin-right: 4px; }
  .preview-copy { padding: 22px; }
  .finale-students { gap: 28px; }
  .squad-finale h2 { font-size: 21px; }
  .squad-finale p:not(.finale-sticker) { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Official BobbaGames mark, copied from the brand project. */
.party-brand, .footer-wordmark { display: inline-flex; align-items: center; gap: 10px; }
.bobba-brand-icon { flex: none; width: 34px; height: 34px; object-fit: contain; }
.footer-wordmark .bobba-brand-icon { width: 38px; height: 38px; }

/* Dedicated pixel illustrations make the invitation feel like a school party. */
.party-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 34%); align-items: center; gap: 28px; text-align: left; padding-block: 42px; }
.intro-content { min-width: 0; }
.party-intro .recess-sticker { margin: 0 0 24px; font-size: 19px; }
.party-intro h1 { font-size: clamp(42px, 4.4vw, 62px); }
.party-intro .intro-copy { margin: 22px 0; }
.party-intro .party-actions, .party-intro .party-facts { justify-content: flex-start; }
.intro-spot-art { width: 100%; height: auto; image-rendering: pixelated; }
.invite-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 43%); align-items: center; gap: 30px; }
.invite-heading .section-title { text-align: left; margin: 0; }
.squad-spot-art { width: 100%; height: auto; max-height: 240px; object-fit: contain; image-rendering: pixelated; }
.intro-art-group { min-width: 0; }
.intro-chat-stickers { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; padding-bottom: 6px; }
.intro-chat-stickers span { padding: 7px 10px; border: 2px solid var(--ink); background: var(--green); box-shadow: 3px 3px var(--ink); font-size: 20px; line-height: 1; transform: rotate(-5deg); }
.intro-chat-stickers span + span { background: var(--yellow); transform: rotate(4deg); }
.party-mini-student { display: block; flex: 0 0 48px; width: 48px; height: 96px; background: url('./characters.png') var(--frame-x) var(--frame-y) no-repeat; image-rendering: pixelated; }
.invite-art { position: relative; height: 108px; margin: 0 0 18px; display: flex; justify-content: center; align-items: flex-end; border-radius: 12px; overflow: hidden; }
.art-host { background: #e5f3ff; gap: 20px; }
.art-chat { background: #edffd8; }
.art-ready { background: #fff1b6; gap: 4px; }
.art-ready .party-mini-student { transform: translateY(10px); }
.room-door { width: 57px; height: 85px; background: #b9a0ef; border: 4px solid var(--ink); border-bottom: 0; box-shadow: inset 6px 0 #ffffff70; display: grid; place-items: center; }
.art-host { gap: 6px; }
.room-door { position: relative; width: 44px; background: #73608f; box-shadow: inset 10px 0 #ac8ce2; }
.room-door::after { content: ''; position: absolute; width: 5px; height: 7px; left: 8px; top: 43px; background: var(--yellow); }
.host-friend { transform: translateY(6px); }
.chat-doodle { position: absolute; padding: 8px 13px; border: 2px solid var(--ink); box-shadow: 3px 3px var(--ink); font-size: 23px; line-height: 1; }
.chat-one { left: 10%; top: 12px; background: #fff; transform: rotate(-5deg); }
.chat-two { right: 8%; bottom: 13px; background: var(--green); transform: rotate(4deg); }
.chat-doodle b { margin-left: 14px; color: #6941b8; }
.ready-pop { position: absolute; top: 6px; left: 50%; transform: translateX(-50%) rotate(-4deg); font-size: 18px; line-height: 1; white-space: nowrap; color: var(--ink); }
/* All four games are visible, with native anchors from the hero artwork. */
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-bottom: 28px; }
.game-grid .game-panel { display: flex; flex-direction: column; margin: 0; scroll-margin-top: 24px; }
.game-grid .preview-screen { border-right: 0; border-bottom: 3px solid var(--ink); }
.game-grid .preview-screen video { width: 100%; height: auto; max-height: none; object-fit: contain; }
.game-grid .preview-copy { flex: 1; padding: 24px; justify-content: flex-start; }
.game-grid .preview-copy h3 { font-size: 32px; color: var(--ink); }
.game-grid .preview-sticker { margin-bottom: 15px; font-size: 17px; }
.game-grid .friend-hook { font-size: 28px; }
.game-grid .preview-description { font-size: 22px; margin-bottom: 22px; }
.game-grid .preview-copy .party-button { margin-top: auto; font-size: 23px; }
.game-grid .preview-note { display: none; }
@media (max-width: 760px) {
  .game-grid { grid-template-columns: 1fr; gap: 26px; }
  .game-grid .preview-screen video { height: auto; max-height: none; }
  .party-intro { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .intro-art-group { grid-row: 1; width: min(280px, 90%); margin-inline: auto; }
  .intro-spot-art { width: 100%; }
  .intro-chat-stickers span { font-size: 18px; }
  .invite-art { max-width: 280px; margin-inline: auto; }
  .party-intro .recess-sticker { margin-inline: auto; font-size: 17px; }
  .party-intro .party-actions, .party-intro .party-facts { justify-content: center; }
  .invite-heading { grid-template-columns: 1fr; gap: 12px; }
  .invite-heading .section-title { text-align: center; }
  .squad-spot-art { width: min(380px, 100%); margin-inline: auto; max-height: 180px; }
}

.preview-motion-toggle { background: transparent; border: 0; padding: 6px 10px; color: var(--purple); font: inherit; text-decoration: underline; text-underline-offset: 4px; }

.school-faq{padding-block:64px}.school-faq h2{font-size:clamp(34px,5vw,52px);margin:8px 0 28px}.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.faq-grid details{border:3px solid var(--ink);box-shadow:3px 3px var(--ink);padding:18px 20px;background:white;align-self:start}.faq-grid details:nth-child(3n+1){border-top:7px solid var(--purple)}.faq-grid details:nth-child(3n+2){border-top:7px solid var(--blue)}.faq-grid details:nth-child(3n){border-top:7px solid #65d6a1}.school-faq summary{font-weight:bold;cursor:pointer;font-size:23px}.school-faq details p{font-size:21px;line-height:1.45;margin-top:12px}.install-card{display:flex;gap:22px;align-items:flex-start;background:#e3f5e9;padding:26px;border:3px solid var(--ink);margin-top:32px;box-shadow:5px 5px var(--ink)}.install-card h3{font-size:30px;margin:0}.install-card p{font-size:22px;margin:6px 0 12px}.install-card summary{font-size:20px}.install-card button{margin:8px 0 18px}.install-card [hidden]{display:none}.install-card [data-install-status]:empty{display:none}@media(max-width:650px){.faq-grid{grid-template-columns:1fr}.install-card{padding:20px;gap:12px}.install-card img{width:42px;height:42px}}
