/* Front page (loaded last on index.html): sky sunburst, avatars all over, game boxes, tabs, game panel, profile corner. */

/* Floating avatars sit behind everything, all the way down the page. */
body.home { position: relative; }
body.home .avcloud { position: fixed; inset: 0; z-index: 0; opacity: 0.32; overflow: hidden; }
/* They rain down slowly: each avatar falls from above the screen to below it, swaying and tilting a little (--sw flips the sway). */
body.home .avcloud .av { top: 0; animation-name: rain; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform; }
@keyframes rain {
  0% { transform: translate3d(0, -20vh, 0) rotate(calc(var(--sw, 1) * -7deg)); }
  25% { transform: translate3d(calc(var(--sw, 1) * 16px), 20vh, 0) rotate(calc(var(--sw, 1) * 6deg)); }
  50% { transform: translate3d(calc(var(--sw, 1) * -12px), 50vh, 0) rotate(calc(var(--sw, 1) * -6deg)); }
  75% { transform: translate3d(calc(var(--sw, 1) * 14px), 80vh, 0) rotate(calc(var(--sw, 1) * 6deg)); }
  100% { transform: translate3d(0, 112vh, 0) rotate(calc(var(--sw, 1) * -7deg)); }
}
/* Devices set to reduce animations (owner wants the rain to keep going there too): a slow, straight drift, no sway or tilt. */
@keyframes rainCalm { from { transform: translate3d(0, -20vh, 0); } to { transform: translate3d(0, 112vh, 0); } }
@media (prefers-reduced-motion: reduce) { body.home .avcloud .av { animation-name: rainCalm; animation-duration: calc(var(--dur, 40s) * 2.5) !important; } }
body.home .hero, body.home main, body.home .foot { position: relative; z-index: 1; }
body.noscroll { overflow: hidden; }

/* Tagline: a glossy gold ribbon with chunky white letters, clear of the logo. */
.herotag { margin: 26px 0 4px !important; text-shadow: none !important; }
.herotag span { display: inline-block; position: relative; font: 400 clamp(19px, 4.4vw, 32px)/1.1 var(--title); color: #fff; letter-spacing: 0.5px;
  padding: 10px 26px 12px; border-radius: 16px; animation: tagFloat 4s ease-in-out infinite;
  background: linear-gradient(#FFD45E, #F59A0C); -webkit-text-stroke: 1px rgba(122, 62, 0, 0.35);
  text-shadow: 0 2px 0 #B86A00, 0 3px 0 #8A4A00, 0 6px 10px rgba(90, 40, 0, 0.35);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -4px 0 rgba(0, 0, 0, 0.12), 0 5px 0 #B86A00, 0 10px 18px rgba(20, 50, 120, 0.25); }
.herotag span::before { content: ""; position: absolute; left: 12px; right: 12px; top: 4px; height: 38%; border-radius: 12px; background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); pointer-events: none; }

/* Three big buttons (join, big screen, play by yourself). */
.cta { max-width: 1040px !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; }
.ctaemoji { width: 64px; height: 64px; flex: 0 0 64px; display: grid; place-items: center; }
.ctaemoji svg { width: 54px; height: 54px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.25)); }
html[data-theme] .ctacard.solo { --edge: #5232B8; background-color: #8B5CF6; color: #fff; }
.ctacard.solo .ctatext small { opacity: 0.9; }

/* Text that used to fade into the background now sits on solid pills. */
.nofuss { display: inline-block; margin-top: 20px !important; padding: 8px 18px; border-radius: 999px; color: #10357E !important; background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 2px rgba(46, 143, 240, 0.35), 0 4px 0 rgba(22, 86, 168, 0.35), 0 8px 14px rgba(20, 50, 120, 0.15); }
.foot { color: #10357E !important; }
.foot span { display: inline-block; padding: 10px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.92); font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(46, 143, 240, 0.3), 0 4px 0 rgba(22, 86, 168, 0.3); }
.foot b { color: #10357E !important; }
.more span { display: inline-block; padding: 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #10357E;
  box-shadow: inset 0 0 0 2px rgba(46, 143, 240, 0.3), 0 4px 0 rgba(22, 86, 168, 0.3); }


/* ---------- Tabs ---------- */
.gtabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 22px; }
.gtab { display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer; font: 700 1rem var(--head); padding: 7px 16px 7px 8px; border-radius: 999px; color: #10357E;
  background: linear-gradient(#FFFFFF, #E4F2FF); transition: transform 0.1s;
  box-shadow: inset 0 0 0 1.5px rgba(46, 143, 240, 0.45), inset 0 2px 0 #fff, 0 4px 0 #7FA9D8, 0 7px 12px rgba(20, 50, 120, 0.18); }
.gtab:active { transform: translateY(3px); }
.gtab em { font-style: normal; font-size: 0.8em; opacity: 0.7; margin-left: 2px; }
.gtabico { width: 30px; height: 30px; display: inline-grid; place-items: center; }
.gtabico svg { width: 30px; height: 30px; }
.gtab.on { color: #fff; background: linear-gradient(#FFC94A, #F59A0C); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #B86A00, 0 8px 14px rgba(150, 80, 0, 0.28); }

/* ---------- Game boxes ---------- */
.gamecards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; gap: 20px !important; }
.gbox { all: unset; box-sizing: border-box; cursor: pointer; position: relative; border-radius: 22px; overflow: hidden; background: #fff; display: flex; flex-direction: column;
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.95), 0 7px 0 var(--c3), 0 16px 24px rgba(10, 30, 80, 0.25); transition: transform 0.15s, box-shadow 0.15s; animation: pop 0.35s both; }
.gbox:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 0 0 2.5px #fff, 0 10px 0 var(--c3), 0 22px 30px rgba(10, 30, 80, 0.3); }
.gbox:active { transform: translateY(4px); box-shadow: 0 0 0 2.5px #fff, 0 3px 0 var(--c3), 0 8px 14px rgba(10, 30, 80, 0.25); }
.gbox:focus-visible { outline: 4px solid #FFD35C; outline-offset: 3px; }
.gart { height: 132px; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 42%, var(--c1), var(--c2)); }
.gart::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.2) 0 10deg, transparent 10deg 20deg); }
.gart::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; background: linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)); }
.gart svg { width: 106px; height: 106px; position: relative; z-index: 1; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.28)); transition: transform 0.2s; }
.gbox:hover .gart svg { transform: scale(1.07) rotate(-3deg); }
.gsolo { position: absolute; top: 10px; right: 10px; z-index: 2; font: 700 0.72rem var(--head); color: #fff; padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(#A98BFF, #7A4FE8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 2px 0 #4C2AA8; }
.glab { padding: 11px 14px 14px; background: linear-gradient(#FFFFFF, #FFF7E8); border-top: 3px solid #FFD35C; flex: 1; display: flex; flex-direction: column; gap: 3px; text-align: left; }
.glab b { font: 400 1.35rem/1.1 var(--title); color: #3A2200; }
.gblurb { font-weight: 700; font-size: 0.9rem; line-height: 1.3; color: #5A4020; flex: 1; }
.glab small { font: 700 0.8rem var(--head); color: var(--c3); margin-top: 3px; }

/* ---------- Game panel and profile (a sheet over the page) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet[hidden] { display: none; }
.sheetbg { position: absolute; inset: 0; background: rgba(16, 30, 70, 0.55); backdrop-filter: blur(3px); }
.sheetbox { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 26px; background: linear-gradient(#FFFFFF, #FFF6E4);
  box-shadow: 0 0 0 3px #fff, 0 9px 0 var(--c3, #B86A00), 0 24px 50px rgba(0, 0, 0, 0.4); }
.sheetx { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; font: 700 1.1rem var(--head); color: #3A2200;
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2); }
.sheetart { height: 170px; position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, var(--c1), var(--c2)); }
.sheetart::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.2) 0 10deg, transparent 10deg 20deg); animation: spin 40s linear infinite; }
.sheetart svg { width: 136px; height: 136px; position: relative; z-index: 1; filter: drop-shadow(0 8px 5px rgba(0, 0, 0, 0.3)); animation: bob 3s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sheetbody { padding: 16px 20px 20px; color: #3A2200; }
.sheetbody h3 { margin: 0; font: 400 2rem/1.1 var(--title); color: #3A2200; text-shadow: none; }
.sheetblurb { margin: 4px 0 10px; font-weight: 700; color: #5A4020; }
.sheethow { margin: 0 0 14px; padding-left: 20px; font-weight: 600; color: #4A3418; }
.sheethow li { margin: 4px 0; }
.sheetbtns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.sheetbtns .btn { flex: 1 1 180px; text-align: center; text-decoration: none; font-size: 1.15rem; padding: 14px 18px; }

html[data-theme] .btn.sky.sheetsolo { --edge: #5232B8; background-color: #8B5CF6; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.sheetnote { margin: 14px 0 0; font-size: 0.88rem; font-weight: 700; color: #6A5030; }

/* Profile */
.profbtn { position: absolute; top: 12px; right: 12px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 5px 14px 5px 5px; border-radius: 999px;
  font: 700 1rem var(--head); color: #10357E; background: linear-gradient(#FFFFFF, #E4F2FF);
  box-shadow: inset 0 0 0 2px rgba(46, 143, 240, 0.45), inset 0 2px 0 #fff, 0 4px 0 #7FA9D8, 0 8px 16px rgba(20, 50, 120, 0.25); max-width: 60vw; }
.profbtn .av { width: 38px; height: 38px; flex: 0 0 38px; }
.profbtn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profq svg { width: 38px; height: 38px; display: block; }
.profbox .sheetbody { padding-top: 22px; }
.profbox .lbl { display: block; font-weight: 800; font-size: 0.95rem; margin: 12px 0 6px; color: #10357E; }
.profbox .txt { width: 100%; box-sizing: border-box; border: 3px solid #CFE6FF; border-radius: 16px; background: #fff; color: #10357E; font: 700 1.15rem var(--body); padding: 12px 14px; outline: none; }
.profbox .txt:focus { border-color: #FFC94A; }
.avgrid.pfav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pfav .avpick { border: 0; background: transparent; padding: 3px; border-radius: 50%; cursor: pointer; }
.pfav .avpick .av.lg { width: 100%; height: auto; aspect-ratio: 1; }

@media (max-width: 520px) {
  .gamecards { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .gart { height: 88px; }
  .gart svg { width: 72px; height: 72px; }
  .glab b { font-size: 1.12rem; }
  .gblurb { font-size: 0.8rem; }
  .gtab { font-size: 0.9rem; padding: 5px 12px 5px 6px; }
  .gtabico, .gtabico svg { width: 24px; height: 24px; }
  .profbtn span:last-child { display: none; }
  .profbtn { padding: 5px; }
  .hero { padding-top: 64px; }
}

/* "Good to know" tips: drawn icons on raised cream cards */
.tip { background: linear-gradient(#FFFFFF, #FFF6E4) !important; color: #3A2200; border-radius: 22px !important; padding: 16px !important;
  box-shadow: 0 0 0 2.5px #fff, 0 6px 0 #7FA9D8, 0 12px 20px rgba(20, 50, 120, 0.2) !important; }
.tip span[data-icon] { display: block; width: 64px; height: 64px; margin-bottom: 6px; }
.tip span[data-icon] svg { width: 64px; height: 64px; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.2)); }
.tip b { color: #3A2200; font: 400 1.3rem var(--title) !important; }
.tip p { color: #5A4020; }

/* How it works: one calm row of three small steps (owner: home page was too busy) */
.hsteps2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 760px; margin: 0 auto; padding: 16px 18px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.9); box-shadow: 0 6px 18px rgba(20, 50, 120, 0.14); }
.hs { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.hsi { position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 2px;
  background: radial-gradient(circle at 50% 40%, var(--c1), var(--c2)); }
.hsi > span, .hsi svg { width: 44px; height: 44px; }
.hsi i { position: absolute; top: -4px; left: -4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font: 400 0.95rem var(--title); font-style: normal; color: #fff; background: var(--c3); }
.hs b { font: 400 1.15rem/1.1 var(--title); color: #3A2200; }
.hs small { font-weight: 700; font-size: 0.85rem; line-height: 1.3; color: #5A4020; }
@media (max-width: 520px) {
  .hsteps2 { gap: 8px; padding: 12px 10px; }
  .hsi { width: 50px; height: 50px; }
  .hsi > span, .hsi svg { width: 36px; height: 36px; }
  .hs b { font-size: 0.95rem; }
  .hs small { font-size: 0.74rem; }
}

/* Games list: the first 8, then a button for the rest */
.gmorewrap { display: flex; justify-content: center; margin-top: 18px; }
.gmorewrap:empty { display: none; }

/* Calmer page (owner: too busy): more space between sections, softer edges on the cards */
body.home main { gap: 56px; }
.gbox { box-shadow: 0 5px 0 var(--c3), 0 12px 20px rgba(10, 30, 80, 0.16); }
.gbox:hover { box-shadow: 0 8px 0 var(--c3), 0 18px 26px rgba(10, 30, 80, 0.2); }
.gbox:active { box-shadow: 0 2px 0 var(--c3), 0 6px 12px rgba(10, 30, 80, 0.16); }
.glab { border-top: 0; }
.tip { box-shadow: 0 6px 16px rgba(20, 50, 120, 0.14) !important; }
.mcard .mlab { border-top-width: 2px; }

/* Phones: game cards are just the picture and the name (the description is in the sheet when you tap one), three across */
@media (max-width: 520px) {
  .gamecards { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }
  .gart { height: 74px !important; }
  .gart svg { width: 58px !important; height: 58px !important; }
  .glab { padding: 7px 6px 9px; text-align: center; }
  .glab b { font-size: 0.92rem !important; }
  .gblurb, .glab small { display: none; }
  .gsolo { top: 5px; right: 5px; font-size: 0.6rem; padding: 2px 6px; }
  body.home main { gap: 44px; }
}

/* More room between the tagline ribbon and the line under it */
.herosub { margin-top: 26px !important; }

/* ---------- Hero fixes (owner): readable sub-line, mode cards like the game boxes ---------- */
.herosub > span { display: inline-block; max-width: 640px; padding: 10px 22px; border-radius: 18px; color: #10357E; font-weight: 700; line-height: 1.4;
  background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 4px 0 #7FA9D8, 0 8px 16px rgba(20, 50, 120, 0.15); }
.modes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; width: 100%; max-width: 980px; margin: 26px auto 0; }
.mcard { --c1: #9FD3FF; --c2: #2E7FE0; --c3: #1656A8; position: relative; display: flex; flex-direction: column; text-decoration: none; border-radius: 24px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #F2C25A, 0 9px 0 6px #B86A00, 0 18px 28px rgba(10, 30, 80, 0.25); transition: transform 0.15s; animation: pop 0.4s both; }
.mcard.host { --c1: #FFE98A; --c2: #F2A516; --c3: #B06A00; animation-delay: 0.08s; }
.mcard.solo { --c1: #D2BCFF; --c2: #7A4FE8; --c3: #4C2AA8; animation-delay: 0.16s; }
.mcard:hover { transform: translateY(-4px) rotate(-0.5deg); }
.mcard:active { transform: translateY(4px); }
.mcard:focus-visible { outline: 4px solid #FFD35C; outline-offset: 8px; }
.mart { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 42%, var(--c1), var(--c2)); }
.mart::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.22) 0 10deg, transparent 10deg 20deg); }
.mart::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)); }
.mart > span { position: relative; z-index: 1; width: 112px; height: 112px; }
.mart svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.28)); transition: transform 0.2s; }
.mcard:hover .mart svg { transform: scale(1.07) rotate(-3deg); }
.mlab { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 16px 18px; background: linear-gradient(#FFFFFF, #FFF7E8); border-top: 3px solid #FFD35C; }
.mlab b { font: 400 1.55rem/1.1 var(--title); color: #3A2200; }
.mlab small { font-weight: 700; font-size: 0.95rem; line-height: 1.3; color: #5A4020; flex: 1; }
.mgo { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 26px; border-radius: 999px; font: 700 1.1rem var(--head); color: #fff;
  background: linear-gradient(var(--c1), var(--c2) 55%); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 4px 0 var(--c3); }
.mcard.host .mgo { color: #4A2A00; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.mgo::after { content: "→"; }
@media (max-width: 720px) {
  .modes { grid-template-columns: 1fr; gap: 22px; max-width: 420px; }
  .mcard { flex-direction: row; }
  .mart { height: auto; width: 116px; flex: 0 0 116px; }
  .mart > span { width: 84px; height: 84px; }
  .mlab { border-top: 0; border-left: 3px solid #FFD35C; padding: 12px 14px 14px; }
  .mlab b { font-size: 1.3rem; }
  .mlab small { font-size: 0.85rem; }
  .mgo { margin-top: 6px; padding: 6px 20px; font-size: 1rem; }
}
/* Phones: the three choices (Join / Start / Play by yourself) should be on the first screen without scrolling */
@media (max-width: 520px) {
  .hero { padding-top: 70px; }
  .herologo { font-size: clamp(34px, 10vw, 46px) !important; margin: 4px 0 2px !important; }
  .herotag { margin: 12px 0 2px !important; }
  .herotag span { font-size: clamp(15px, 4.3vw, 19px); padding-left: 16px; padding-right: 16px; }
  .herosub { margin-top: 10px !important; margin-bottom: 14px !important; }
  .herosub > span { padding: 7px 14px; font-size: 0.86rem; line-height: 1.35; }
  .modes { gap: 12px; }
  .mart { width: 92px; flex-basis: 92px; }
  .mart > span { width: 66px; height: 66px; }
  .mlab { padding: 8px 12px 10px; gap: 2px; }
  .mlab b { font-size: 1.2rem; }
  .mlab small { font-size: 0.8rem; }
  .mgo { margin-top: 4px; padding: 5px 18px; font-size: 0.95rem; }
  .nofuss { font-size: 0.85rem; padding: 6px 14px; }
}

/* Corner (top left): you, your points and your group; opens the groups panel */
.profbtn { right: auto; left: 12px; padding: 5px 16px 5px 5px; text-align: left; }
.profbtn .av, .profbtn .profq svg { width: 44px; height: 44px; flex: 0 0 44px; }
.profbtn .pcl { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.profbtn .pcl b { font: 400 1.2rem var(--title); color: #C25E00; white-space: nowrap; }
.profbtn .pcl small { font: 700 0.78rem var(--body); color: #4A5C88; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
@media (max-width: 520px) {
  .profbtn span.pcl { display: flex; }
  .profbtn { padding: 4px 12px 4px 4px; }
  .profbtn .av, .profbtn .profq svg { width: 38px; height: 38px; flex-basis: 38px; }
  .profbtn .pcl b { font-size: 1.05rem; }
}

.gpanel h3 { font: 400 1.35rem var(--title); color: #10357E; margin: 18px 0 6px; }
.gpanel h3 small { font: 700 0.9rem var(--body); color: #7A5A30; }
.gme { display: flex; align-items: center; gap: 14px; }
.gme .av.lg, .gme .profq svg { width: 76px; height: 76px; flex: 0 0 76px; }
.gme > div { flex: 1; min-width: 0; }
.gme b { display: block; font: 400 1.7rem var(--title); color: #3A2200; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gme em { font: 700 1.05rem var(--head); font-style: normal; color: #C25E00; }
.gme .btn { flex: 0 0 auto; }
.gstats { display: flex; gap: 10px; margin: 14px 0 4px; }
.gstats div { flex: 1; text-align: center; padding: 10px 6px; border-radius: 16px; background: #fff; box-shadow: 0 3px 0 #E8D2A8; }
.gstats b { display: block; font: 400 1.6rem var(--title); color: #10357E; }
.gstats small { font-weight: 700; color: #7A5A30; font-size: 0.82rem; }
.gnote { margin: 0 0 10px; font-size: 0.9rem; font-weight: 700; color: #6A5030; }
.grp { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: #fff; margin-bottom: 10px; box-shadow: 0 3px 0 #E8D2A8; color: #3A2200; }
.grp.on { box-shadow: 0 0 0 3px #2E7FE0, 0 4px 0 3px #1656A8; }
.grp .avs { display: flex; flex: 0 0 auto; }
.grp .avs .av { width: 32px; height: 32px; margin-left: -9px; }
.grp .avs .av:first-child { margin-left: 0; }
.grp .gico .gi svg { width: 34px; height: 34px; display: block; }
.grp .gtx { flex: 1; min-width: 0; }
.grp .gtx b { display: block; font: 700 1.05rem var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp .gtx small { display: block; color: #7A5A30; font-weight: 700; font-size: 0.82rem; }
.grp .use { flex: 0 0 auto; border: 0; cursor: pointer; font: 700 0.9rem var(--head); color: #fff; background: #2E7FE0; padding: 6px 14px; border-radius: 999px; box-shadow: 0 3px 0 #1656A8; }
.grp .use.on { cursor: default; }
.grp .gx { flex: 0 0 auto; border: 0; background: transparent; color: #A08A6A; font-size: 1rem; cursor: pointer; padding: 4px; }
.grp.gnew .gform { flex: 1; min-width: 0; }
.grp.gnew b { font: 700 1.05rem var(--head); }
.grp .grow2 { display: flex; gap: 8px; margin-top: 8px; }
.grp .grow2 .txt { flex: 1; min-width: 0; padding: 9px 12px; font-size: 1rem; }
.grp.gplus { opacity: 0.85; }
.grp .plus { flex: 0 0 auto; font: 700 0.9rem var(--head); color: #4A2A00; background: linear-gradient(#FFE27A, #F2A516); padding: 6px 14px; border-radius: 999px; }
.gmsg { margin: 4px 0 8px; padding: 10px 14px; border-radius: 14px; background: #E4F2FF; color: #10357E; font-weight: 700; font-size: 0.92rem; }
.glb > div { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font: 700 1rem var(--head); color: #3A2200; }
.glb > div.me { background: #FFF1CC; border-radius: 12px; }
.glb .n { width: 1.4em; text-align: center; color: #10357E; }
.glb .av { width: 32px; height: 32px; }
.glb .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glb i { font-style: normal; color: #C25E00; }
.grp .gtx .avs { margin-top: 6px; }
.gme em { font-size: 0.98rem; }
.footlinks { margin-top: 8px; }
.footlinks a { color: #10357E; font-weight: 700; background: rgba(255, 255, 255, 0.92); padding: 4px 12px; border-radius: 12px; text-decoration: none; }
.homesnark { margin: 10px auto 0; display: table; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: #8A4A00; font: italic 700 0.98rem var(--body); box-shadow: 0 3px 0 #7FA9D8; }
.homesnark:empty { display: none; }

/* Tip jar (Ko-fi): a soft card near the bottom, never in the way of playing */
.tipjar[hidden] { display: none; }
.jarcard { display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 8px auto 0; padding: 16px 20px; border-radius: 22px;
  background: linear-gradient(#FFFFFF, #FFF6E4); color: #3A2200; box-shadow: 0 0 0 2.5px #fff, 0 6px 0 #7FA9D8, 0 12px 20px rgba(20, 50, 120, 0.2); }
.jarcup { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M12 18h22v10a10 10 0 0 1-10 10h-2a10 10 0 0 1-10-10z' fill='%23fff' stroke='%23B86A00' stroke-width='2.5' stroke-linejoin='round'/%3E%3Cpath d='M34 21h3a4 4 0 0 1 0 8h-3' fill='none' stroke='%23B86A00' stroke-width='2.5'/%3E%3Cpath d='M17 13c0-3 3-3 3-6M24 13c0-3 3-3 3-6' fill='none' stroke='%23B86A00' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/78% no-repeat, radial-gradient(circle at 35% 30%, #FFF4C0, #FFD24A 60%, #E09A00); }
.jartx { flex: 1; min-width: 0; }
.jartx b { display: block; font: 400 1.25rem var(--title); color: #10357E; }
.jartx p { margin: 2px 0 0; font-size: 0.92rem; font-weight: 700; color: #6A5030; }
.jarbtn { flex: 0 0 auto; text-decoration: none; }
@media (max-width: 520px) { .jarcard { flex-wrap: wrap; justify-content: center; text-align: center; } .jartx { flex-basis: 100%; } }
.sheetvip { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 0.88rem; font-weight: 800; color: #6A3FC0; text-align: left; }
.sheetvip .vip { position: static; flex: none; }
.sheetbody .gloatcard { text-align: center; }
/* The tagline banner sits straight and gently floats up and down */
@keyframes tagFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .herotag span { animation: none; } }
/* The picture in the profile panel: tap it to change your avatar. No avatar yet = the person icon in the same gold ring. */
.gface { flex: 0 0 auto; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; transition: transform 0.15s; }
.gface:hover { transform: scale(1.05) rotate(-3deg); }
.gface:active { transform: scale(0.96); }
.gface:focus-visible { outline: 3px solid #FFD35C; outline-offset: 3px; }
.gme .av.lg.profring { width: 76px; height: 76px; }
.av.profring svg { width: 80%; height: 80%; display: block; border-radius: 50%; background: #EAF4FF; box-shadow: 0 0 0 1px rgba(90, 50, 0, 0.35); }
.profbtn .av.profring { width: 44px; height: 44px; flex: 0 0 44px; }
@media (max-width: 520px) { .profbtn .av.profring { width: 38px; height: 38px; flex-basis: 38px; } }
/* Narrow phones: the name in the profile panel wraps instead of being cut off */
@media (max-width: 480px) { .gme b { white-space: normal; font-size: 1.35rem; line-height: 1.1; } .gme { gap: 10px; } .gme .av.lg, .gme .av.lg.profring { width: 64px; height: 64px; flex-basis: 64px; } }
/* footer game links (plain links Google can follow to the game pages) */
.footgames { max-width: 720px; margin: 10px auto 0; padding: 8px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.85); font-size: 0.88rem; font-weight: 700; line-height: 1.8; color: #10357E; }
.footgames a { color: #10357E; }
/* Group slots (owner 19 Oct): 2 free slots + a third locked one that opens the Gloat Pass card */
.grp.gempty { background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 2px rgba(122, 90, 48, 0.25); border: 0; }
.grp.gempty .gtx b { color: #7A5A30; }
.grp.glock { width: 100%; border: 0; cursor: pointer; text-align: left; font: inherit; background: linear-gradient(#FFF6D6, #FFE7A3); box-shadow: inset 0 0 0 2px #F2B51C, 0 3px 0 #C98A00; }
.grp.glock .vip { flex: 0 0 auto; }

/* ---------- Curved banner (owner said yes 26 Oct, from the dev/premium/home.html preview): mockup B's blue banner
   across the top of the front page. Since 26 Oct (owner) the banner holds only the logo, the tagline, the line under it and the
   "No apps" pill; the three big choices (Join / Start the big screen / Play by yourself) sit under it, below the faces. ---------- */

/* The banner: blue to violet, soft light from the top, faint rays and bubbles. Its bottom edge curves: the page
   background rises into it like a hill in the middle, and a row of faces sits on that curve. */
body.home .hero.hbanner { position: relative; z-index: 1; overflow: hidden; color: #fff; padding: 40px 20px 150px;
  -webkit-mask: radial-gradient(ellipse 64% 62px at 50% 100%, transparent 98%, #000 100%);
  mask: radial-gradient(ellipse 64% 62px at 50% 100%, transparent 98%, #000 100%); }
.hbsky { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(70% 55% at 50% 0%, rgba(255, 255, 255, 0.24), transparent 62%), linear-gradient(160deg, #3C8BFF 0%, #2D6BFF 42%, #6A3CF5 100%); }
.hbrays { position: absolute; inset: -30%; background: repeating-conic-gradient(from 0deg at 50% 32%, rgba(255, 255, 255, 0.07) 0 7deg, transparent 7deg 14deg);
  animation: hbspin 90s linear infinite; }
@keyframes hbspin { to { transform: rotate(360deg); } }
.hbbub { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255, 255, 255, 0.10); filter: blur(2px); }

/* Logo a little smaller than now so the banner isn't too tall */
.hbanner .herologo { font-size: clamp(38px, 9vw, 58px); margin: 0 0 4px; }

/* Tagline as big white letters (like the mockup) instead of the gold ribbon */
.hbanner .hbline { margin: 18px auto 8px; max-width: 18em; font: 400 clamp(26px, 3.8vw, 46px)/1.06 var(--title); color: #fff;
  text-shadow: 0 4px 0 rgba(20, 20, 90, 0.35), 0 10px 22px rgba(20, 20, 90, 0.25); }
.hbanner .hblead { margin: 0 auto; max-width: 31em; font: 700 clamp(15px, 1.6vw, 19px)/1.45 var(--body); color: #fff; opacity: 0.93; }

.hbanner .nofuss { margin-top: 20px !important; background: rgba(255, 255, 255, 0.16); color: #fff !important; font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4); }

/* Faces sitting on the curved edge, whole (owner: they were cut off when they peeked from behind the curve).
   They live just after the banner, pulled up so their middles line up with the edge. Two of them are crying. */
.hbcrowd { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; height: 140px; margin-top: -132px; pointer-events: none; }
.hbcrowd img { width: 112px; height: 112px; border-radius: 50%; margin: 0 -10px; background: #fff;
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px #F2C25A, 0 16px 26px rgba(0, 0, 0, 0.28);
  transform: translateY(var(--y)) rotate(var(--r)); animation: hbbob 3.4s ease-in-out infinite; animation-delay: calc(var(--r) * 0.12s); }
.hbcrowd img:nth-child(4) { width: 136px; height: 136px; z-index: 1; }
/* a gentle arc: the middle face highest */
.hbcrowd img:nth-child(1), .hbcrowd img:nth-child(7) { --y: 14px !important; }
.hbcrowd img:nth-child(2), .hbcrowd img:nth-child(6) { --y: 6px !important; }
.hbcrowd img:nth-child(3), .hbcrowd img:nth-child(5) { --y: 1px !important; }
.hbcrowd img:nth-child(4) { --y: -4px !important; }
@keyframes hbbob { 50% { transform: translateY(calc(var(--y) - 6px)) rotate(var(--r)); } }

/* Under the banner: the three choices, then the Gloat Pass banner and the joke line */
.hbafter { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 20px 16px 0; }
.hbafter > .modes { margin: 18px auto 0; max-width: 1040px; }
.hbafter > .modes .mcard { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #F2C25A, 0 9px 0 6px #B86A00, 0 18px 26px rgba(30, 40, 110, 0.22); }
.hbafter .gloatcta { margin-top: 0; }
.hbafter > .modes + .gloatcta { margin-top: 26px; }

/* The page's own avatar rain only shows below the banner */
body.home main { margin-top: 30px; }

@media (max-width: 720px) {
  body.home .hero.hbanner { padding: 70px 16px 92px;
    -webkit-mask: radial-gradient(ellipse 80% 36px at 50% 100%, transparent 98%, #000 100%);
    mask: radial-gradient(ellipse 80% 36px at 50% 100%, transparent 98%, #000 100%); }
  .hbanner .hbline { margin: 12px auto 0; }
  .hbanner .hblead { margin-top: 10px; font-size: 15px; }
  .hbafter { padding-top: 14px; }
  .hbafter > .modes { margin-top: 8px; }
  .hbanner .nofuss { margin-top: 16px !important; }
  .hbcrowd { height: 92px; margin-top: -84px; }
  .hbcrowd img { width: 70px; height: 70px; margin: 0 -7px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #F2C25A, 0 10px 16px rgba(0, 0, 0, 0.25); }
  .hbcrowd img:nth-child(4) { width: 86px; height: 86px; }
  .hbcrowd img:nth-child(1), .hbcrowd img:nth-child(7) { display: none; }
  .hbcrowd img:nth-child(2), .hbcrowd img:nth-child(6) { --y: 7px !important; }
}
@media (prefers-reduced-motion: reduce) { .hbrays, .hbcrowd img { animation: none; } }

/* The banner in each look (the page under it already follows the look) */
html[data-skin="gameshow"] .hbsky { background: radial-gradient(70% 55% at 50% 0%, rgba(255, 220, 140, 0.28), transparent 62%), linear-gradient(160deg, #A3122F 0%, #6E0B3A 48%, #3A0A4A 100%); }
html[data-skin="nature"] .hbsky { background: radial-gradient(70% 55% at 50% 0%, rgba(255, 255, 220, 0.35), transparent 62%), linear-gradient(170deg, #58B6F0 0%, #4AA3D8 45%, #3E9A2E 100%); }
html[data-skin="arcade"] .hbsky { background: radial-gradient(70% 55% at 50% 0%, rgba(255, 61, 200, 0.3), transparent 62%), linear-gradient(170deg, #140B36 0%, #2A1670 55%, #5A1A7A 100%); }
html[data-skin="arcade"] .hbanner .hbline { font-family: var(--pixel); color: #FFE600; font-size: clamp(22px, 3.2vw, 40px); line-height: 1.15; text-shadow: 0 0 12px rgba(255, 230, 0, 0.55), 0 3px 0 #140B36; }
html[data-skin="nature"] .hbanner .hbline { text-shadow: 0 3px 0 #2E6B9E, 0 8px 18px rgba(0, 40, 80, 0.35); }

/* Tilt the phone to move the falling faces (js/tilt.js, owner 26 Oct): the layer holds the offset (--tx/--ty), each face
   moves by its own depth (--z). `translate` adds to the falling animation's transform instead of replacing it. */
body.home .avcloud.tilting .av { translate: calc(var(--tx, 0px) * var(--z, 1)) calc(var(--ty, 0px) * var(--z, 1)); }
/* iPhones have to be asked first: a small pill near the bottom */
.tiltask { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 8px; border-radius: 999px;
  background: #fff; box-shadow: 0 0 0 3px #F2C25A, 0 10px 24px rgba(20, 30, 90, 0.3); transform: translate(-50%, 140%); opacity: 0; transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.3s; }
.tiltask.show { transform: translate(-50%, 0); opacity: 1; }
.tiltgo { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 8px 4px 4px; cursor: pointer; color: #10357E; text-align: left; }
.tiltgo .gi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(#E2F1FF, #B9DCFF); animation: tiltWiggle 2.4s ease-in-out infinite; }
.tiltgo .gi svg { width: 28px; height: 28px; }
.tiltgo .tt { display: flex; flex-direction: column; white-space: nowrap; }
.tiltgo b { display: block; font: 700 0.95rem var(--head); }
.tiltgo small { display: block; font: 600 0.78rem var(--body); opacity: 0.75; }
.tiltx { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #EEF2FA; color: #5A6A90; font-weight: 800; cursor: pointer; }
@keyframes tiltWiggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-16deg); } 85% { transform: rotate(16deg); } }
/* Owner's own 3D icons (1 Nov) for Join / Big screen / Play by yourself and the How it works steps */
.uiart { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.3)); transition: transform 0.2s; }
.mcard:hover .mart .uiart { transform: scale(1.07) rotate(-3deg); }
.hsi .uiart { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.3)); }
