/* Diddy Party — host overlays + phone screens (base look from style.css) */
.splash .logo.big { font-size: clamp(70px, 13vw, 230px); animation: hubFlicker 5s infinite; }
#scene { background: #0d0418; }
.tv .glass { background: rgba(18, 6, 31, .8); }
.stage { padding: 2.4vh 2.4vw calc(2.4vh + 76px); gap: 1.6vh; pointer-events: none; }
.stage > *, .stage button { pointer-events: auto; }
.chip { background: var(--ink-3); border-radius: 12px; padding: 9px 14px; font-weight: 800; font-size: clamp(13px, 1.05vw, 17px); border: 2px solid transparent; color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--gold); background: #3d1d0a; color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sec { font-family: var(--display); letter-spacing: .12em; color: var(--pink); font-size: clamp(11px, .9vw, 15px); text-transform: uppercase; margin: 8px 0 6px; }
.keys { font-size: clamp(11px, .9vw, 15px); color: var(--muted); font-weight: 700; line-height: 1.5; }
.dl-top { display: flex; align-items: center; gap: 2vw; }
.dl-top .logo { font-size: clamp(26px, 3.4vw, 56px); }
.code-wrap { margin-left: auto; text-align: right; padding: 10px 20px; }
.code-wrap small { display: block; font-weight: 700; color: var(--muted); font-size: clamp(11px, .95vw, 16px); }
.code-wrap b { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 64px); letter-spacing: .12em; color: var(--gold); line-height: 1; }
.lob { flex: 1; display: grid; grid-template-columns: 1fr min(26vw, 420px); gap: 2vw; min-height: 0; }
.lob-main { padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 2vh; text-align: center; overflow-y: auto; scrollbar-width: none; }
.lob-main .tv-players { gap: 1.6vw; }
.lob-side { padding: 20px; overflow-y: auto; scrollbar-width: none; }
/* board overlay */
.board-ui { position: absolute; inset: 0; pointer-events: none; }
.psb { position: absolute; right: 1.4vw; top: 2vh; bottom: 11vh; width: 22.5vw; padding: 12px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; scrollbar-width: none; pointer-events: auto; }
.psb h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; color: var(--pink); letter-spacing: .12em; font-size: clamp(12px, 1.1vw, 18px); }
.sbrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 14px; border: 2px solid transparent; background: rgba(255, 255, 255, .05); flex: none; }
.sbrow.act { border-color: var(--gold); background: rgba(255, 200, 61, .12); box-shadow: 0 0 22px rgba(255, 200, 61, .3); }
.sbrow.off { opacity: .4; }
.sbn { flex: 1; min-width: 0; font-weight: 900; font-size: clamp(12px, 1.05vw, 17px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.15; }
.sbn small { display: block; font-size: .85em; min-height: 1.1em; }
.sbs { text-align: right; font-weight: 900; font-size: clamp(12px, 1.05vw, 17px); line-height: 1.2; }
.sbs b { color: var(--gold); display: block; font-family: var(--display); font-weight: 400; }
.pmsg { position: absolute; left: 1.5vw; bottom: 3vh; width: calc(77vw - 140px); max-width: 1100px; padding: 12px 22px; border-radius: 18px; background: rgba(18, 6, 31, .85); border: 2px solid var(--line); font-weight: 900; font-size: clamp(14px, 1.6vw, 27px); text-align: center; animation: pin .35s both; }
.pmsg.good { border-color: var(--green); } .pmsg.bad { border-color: var(--red); } .pmsg.chaos { border-color: var(--cyan); }
@keyframes pin { from { transform: translateY(20px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
/* screens */
.intro, .mgi, .mgr, .bon, .final { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6vh; text-align: center; min-height: 0; }
.intro .logo.big { font-size: clamp(50px, 9vw, 150px); }
.order { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6vw; }
.ord { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 900; position: relative; }
.ord b { position: absolute; top: -6px; left: -6px; background: var(--gold); color: #2a1300; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 400; }
.mgi-emoji { font-size: clamp(70px, 10vw, 160px); animation: hubBob 1.4s ease-in-out infinite; }
.mgi h1, .final h1 { font-family: var(--display); font-weight: 400; margin: 0; font-size: clamp(30px, 5vw, 90px); text-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.final h1 { font-size: clamp(24px, 3vw, 54px) !important; max-width: 80vw; }
.mgi-row { display: flex; flex-wrap: wrap; gap: 1.4vw; justify-content: center; max-width: 80vw; }
.mgr-list { padding: 16px 22px; display: flex; flex-direction: column; gap: 6px; min-width: min(60vw, 820px); max-height: 74vh; overflow-y: auto; scrollbar-width: none; }
.mgr-row { display: flex; align-items: center; gap: 14px; padding: 6px 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-weight: 900; font-size: clamp(14px, 1.6vw, 26px); animation: mrow .5s both; }
.mgr-row.r0 { background: rgba(255, 200, 61, .18); box-shadow: 0 0 26px rgba(255, 200, 61, .35); }
.mgr-row .rk { font-family: var(--display); font-weight: 400; color: var(--gold); width: 1.4em; }
.mgr-row .nm { flex: 1; text-align: left; }
.mgr-row .lb { color: var(--muted); font-size: .8em; }
.mgr-row .rw { color: var(--gold); min-width: 4.5em; text-align: right; font-family: var(--display); font-weight: 400; }
@keyframes mrow { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.bon-list { display: flex; gap: 2.4vw; justify-content: center; flex-wrap: wrap; }
.bon-card { background: rgba(18, 6, 31, .85); border: 2px solid var(--gold); border-radius: 24px; padding: 14px 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; animation: bpop .6s cubic-bezier(.2, 1.6, .4, 1) both; box-shadow: 0 0 40px rgba(255, 200, 61, .3); }
.bon-card .bc-t { font-family: var(--display); color: var(--gold); font-size: clamp(16px, 1.8vw, 30px); }
.bon-card .bc-n { font-weight: 900; font-size: clamp(16px, 1.8vw, 28px); }
.bon-card .bc-d { color: var(--muted); font-weight: 700; max-width: 18em; font-size: clamp(12px, 1.1vw, 18px); }
.bon-card .bc-s { font-family: var(--display); color: #ffe45a; font-size: clamp(22px, 2.4vw, 40px); }
@keyframes bpop { from { transform: scale(.3) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.final .podium { display: flex; align-items: flex-end; justify-content: center; gap: 3vw; }
.final .slot { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 900; font-size: clamp(14px, 1.6vw, 26px); }
.final .slot .fig { --h: min(30vh, 300px); }
.final .slot.first .fig { --h: min(40vh, 400px); animation: hype .6s infinite alternate; }
.final .slot .pl { font-family: var(--display); color: var(--gold); font-size: 1.2em; }
.final .slot .st { color: var(--muted); font-size: .8em; }
.final .rest { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; font-weight: 800; color: var(--muted); }
@keyframes hype { to { transform: translateY(-3vh) rotate(-3deg); } }

/* ======================= PHONE ======================= */
.phone .chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.phone .chipset .chip { font-size: 15px; padding: 9px 13px; }
.turnhead { display: flex; align-items: center; gap: 12px; }
.turnhead .nm { font-family: var(--display); font-size: 22px; line-height: 1; }
.bigdice { font-family: var(--display); font-size: 46px; padding: 26px 20px; width: 100%; animation: bigpulse 1s ease-in-out infinite; }
@keyframes bigpulse { 50% { transform: scale(1.04); } }
.itembar { display: flex; gap: 8px; flex-wrap: wrap; }
.itembtn { background: var(--ink-3); border-radius: 14px; padding: 10px 12px; text-align: left; border: 2px solid transparent; flex: 1; min-width: 46%; font-weight: 800; font-size: 14px; color: var(--text); }
.itembtn b { display: block; font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--gold); }
.itembtn small { color: var(--muted); font-weight: 700; }
.itembtn[aria-pressed="true"] { border-color: var(--gold); background: #3d1d0a; }
.itembtn:disabled { opacity: .35; }
.choice { display: flex; flex-direction: column; gap: 10px; }
.choice .btn { font-size: 22px; padding: 22px 18px; text-align: left; }
.choice .btn small { display: block; font-family: var(--body); font-weight: 700; font-size: 14px; opacity: .85; margin-top: 4px; }
.pmini { display: flex; flex-direction: column; gap: 6px; }
.pmini .mr { justify-content: flex-start; text-align: left; display: flex; align-items: center; gap: 10px; font-weight: 800; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.pmini .mr.me { background: rgba(255, 45, 138, .2); }
.pmini .mr span { margin-left: auto; font-family: var(--display); color: var(--gold); font-size: 14px; }
/* minigame controllers */
.mgc { position: fixed; inset: 0; z-index: 30; overflow: hidden; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 14px) 14px calc(env(safe-area-inset-bottom) + 14px); gap: 12px; background: radial-gradient(ellipse at 50% 20%, #3a1060 0%, #12061f 70%); user-select: none; -webkit-user-select: none; touch-action: none; }
.mgc * { -webkit-tap-highlight-color: transparent; touch-action: none; }
.mgc-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--display); }
.mgc-top .t { color: var(--gold); font-size: 18px; }
.mgc-top .s { color: var(--muted); font-size: 14px; }
.mgc-info { text-align: center; font-weight: 800; color: var(--muted); min-height: 2.6em; }
.mgc-info b { color: var(--text); font-family: var(--display); font-weight: 400; font-size: 26px; display: block; }
.mgc-main { flex: 1; display: flex; gap: 12px; min-height: 0; }
.mgbig { flex: 1; border-radius: 28px; font-family: var(--display); font-size: clamp(30px, 10vw, 54px); color: #fff; border: 4px solid rgba(0, 0, 0, .4); box-shadow: 0 10px 0 rgba(0, 0, 0, .4), inset 0 6px 14px rgba(255, 255, 255, .3); display: grid; place-items: center; text-align: center; padding: 10px; }
.mgbig.pink { background: radial-gradient(circle at 35% 25%, #ff9fcb, #ff2d8a 60%, #7a0f42); }
.mgbig.gold { background: radial-gradient(circle at 35% 25%, #ffe08a, #ffc83d 60%, #a87400); color: #2a1300; }
.mgbig.cyan { background: radial-gradient(circle at 35% 25%, #9eefff, #2de2ff 60%, #0a7a96); color: #002a33; }
.mgbig.green { background: radial-gradient(circle at 35% 25%, #b8ffd8, #3dff9a 60%, #0a8a4a); color: #002a14; }
.mgbig.red { background: radial-gradient(circle at 35% 25%, #ffb0b0, #ff3b3b 60%, #7a0010); }
.mgbig.blue { background: radial-gradient(circle at 35% 25%, #b0ccff, #3a86ff 60%, #0a2a8a); }
.mgbig.on { transform: translateY(8px) scale(.98); box-shadow: 0 2px 0 rgba(0, 0, 0, .4); filter: brightness(1.3); }
.mgbig small { display: block; font-family: var(--body); font-weight: 800; font-size: 14px; opacity: .85; margin-top: 6px; }
.padgrid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.stick { position: relative; width: min(70vw, 300px); aspect-ratio: 1; margin: auto; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03) 70%); border: 3px solid rgba(255, 255, 255, .22); }
.stick .nub { position: absolute; width: 38%; aspect-ratio: 1; left: 31%; top: 31%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9fcb, #ff2d8a 55%, #6b0f3c); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.heart { color: #ff4d6a; font-size: 24px; letter-spacing: 4px; }
.prog { height: 14px; border-radius: 99px; background: #0c0415; overflow: hidden; border: 1px solid #000; }
.prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--gold)); }

/* 3D board layers */
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: none; background: #120620; transition: filter .6s; }
#gl.dim { filter: brightness(.42) blur(2px); }
#scene { pointer-events: none; }
.lob3 { flex: 1; display: grid; grid-template-columns: min(24vw, 380px) 1fr min(27vw, 440px); gap: 2vw; min-height: 0; }
.lob-main { padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: none; }
.lob-main h3 { margin: 0; font-family: var(--display); font-weight: 400; color: var(--gold); font-size: clamp(16px, 1.6vw, 26px); }
.lob-main .tv-players { gap: 10px; justify-content: flex-start; }
.lob-mid { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; pointer-events: none; padding-bottom: 1vh; }
.boardname { font-family: var(--display); font-size: clamp(26px, 3.4vw, 60px); text-shadow: 0 4px 24px rgba(0, 0, 0, .8), 4px 4px 0 var(--pink); }
.boardtag { font-weight: 800; font-size: clamp(14px, 1.4vw, 24px); text-shadow: 0 2px 12px #000; }
.boards { display: flex; flex-direction: column; gap: 8px; }
.bcard { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; text-align: left; padding: 10px 14px; border-radius: 16px; background: var(--ink-3); border: 2px solid transparent; color: var(--text); align-items: center; }
.bcard .be { grid-row: span 2; font-size: clamp(26px, 2.6vw, 44px); }
.bcard b { font-family: var(--display); font-weight: 400; font-size: clamp(14px, 1.3vw, 21px); color: var(--gold); }
.bcard small { color: var(--muted); font-weight: 700; font-size: clamp(11px, .9vw, 14px); line-height: 1.25; }
.bcard[aria-pressed="true"] { border-color: var(--pink); background: linear-gradient(135deg, rgba(255, 45, 138, .3), rgba(44, 20, 73, .9)); box-shadow: 0 0 22px rgba(255, 45, 138, .35); }
/* phone: new minigame controllers */
.cellgrid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 10px; }
.cellgrid .mgbig { border-radius: 22px; font-size: 30px; }
.quiz-q { font-family: var(--display); font-size: clamp(18px, 5vw, 26px); text-align: center; line-height: 1.15; padding: 4px 0 10px; }
.quiz-a { display: grid; gap: 10px; flex: 1; }
.quiz-a .mgbig { font-size: clamp(18px, 5.4vw, 28px); text-align: left; justify-items: start; padding: 10px 18px; border-radius: 20px; }
.quiz-a .mgbig.picked { outline: 6px solid #fff; }
.quiz-a .mgbig.dim { opacity: .35; }
.inkword { font-family: var(--display); font-size: clamp(54px, 18vw, 96px); text-align: center; padding: 8px 0; line-height: 1; }
.inkgrid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.meterbar { height: 26px; border-radius: 99px; background: #0c0415; overflow: hidden; position: relative; border: 2px solid #000; }
.meterbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #d88a14, #ffe08a); width: 0; }
.meterbar b { position: absolute; top: -2px; bottom: -2px; width: 4px; background: #3dff9a; box-shadow: 0 0 10px #3dff9a; }

/* room code, always visible on the host screen once the lobby is over */
.roomtag { position: absolute; left: 1.4vw; top: 1.6vh; z-index: 6; padding: 6px 14px; border-radius: 14px; font-weight: 800; font-size: clamp(11px, .95vw, 16px); color: var(--muted); line-height: 1.1; pointer-events: none; }
.roomtag b { font-family: var(--display); font-weight: 400; letter-spacing: .14em; color: var(--gold); font-size: clamp(18px, 1.9vw, 32px); margin-left: 6px; }
.roomtag small { display: block; font-size: .85em; opacity: .8; }

/* phone: board map, live minigame standings, whack-a-bottle holes */
.mapcard { margin-top: 8px; border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #4a1250 0%, #1a0a30 80%); border: 2px solid rgba(255, 255, 255, .1); }
.map { display: block; width: 100%; height: auto; }
.btn.route0 { background: #2de2ff; color: #002a33; } .btn.route1 { background: #ff2d8a; color: #fff; }
.mglive { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 12px; font-weight: 800; color: var(--muted); min-height: 1.4em; }
.mglive b { color: var(--text); } .mglive .me { color: var(--gold); }
.holegrid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 10px; min-height: 0; }
.hole { position: relative; overflow: hidden; border-radius: 50% / 38%; background: radial-gradient(ellipse at 50% 70%, #1a0b05 0 45%, #5a3418 46% 78%, #3a210e 79%); border: 4px solid #170c08; box-shadow: 0 6px 0 rgba(0, 0, 0, .4); padding: 0; }
.hole .mole { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-size: clamp(40px, 15vw, 84px); line-height: 1; transform: translateY(calc((1 - var(--up, 0)) * 120%)); pointer-events: none; }
.hole .mole.k1 { filter: drop-shadow(0 0 14px #ffd84a) drop-shadow(0 0 6px #ffd84a) sepia(1) saturate(4) hue-rotate(-10deg); }
.hole .mole.k2 { filter: drop-shadow(0 0 10px #ff3b3b); }
.hole.smack { animation: smack .28s; } .hole.whiff { animation: whiff .28s; }
@keyframes smack { 0% { background-color: #3dff9a; transform: scale(.94); } 100% { transform: none; } }
@keyframes whiff { 0% { transform: translateX(-6px); box-shadow: 0 0 0 4px #ff3b3b; } 50% { transform: translateX(6px); } 100% { transform: none; } }


/* live picture of the host's minigame on the phone */
/* a dedicated box of fixed size; player.js sizes the canvas inside it so the whole frame always fits (letterboxed) */
.mgstream { position: relative; flex: none; width: 100%; height: min(46vh, 82vw); margin: 0 auto; border-radius: 14px; overflow: hidden; background: #0d0418; border: 2px solid rgba(255, 255, 255, .14); display: grid; place-items: center; }
.mgstream canvas { display: block; max-width: 100%; max-height: 100%; }
.mgstream .live { position: absolute; left: 8px; top: 6px; font-size: 11px; font-weight: 900; letter-spacing: .08em; color: #fff; background: rgba(220, 30, 60, .85); padding: 2px 8px; border-radius: 99px; }
.mgstream .wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 800; font-size: 13px; }
@media (orientation: landscape) and (max-height: 520px) {
  .mgc { padding-left: calc(46% + 22px); }
  .mgstream { position: absolute; left: 14px; top: calc(env(safe-area-inset-top) + 14px); bottom: 14px; width: calc(46% - 14px); height: auto; }
}

/* Coin Rush drag pad */
.dragpad { position: relative; flex: 1; min-height: 0; border-radius: 24px; border: 3px dashed rgba(255, 255, 255, .2); background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02) 70%); overflow: hidden; }
.dragpad .hint { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .35); font-family: var(--display); font-size: clamp(18px, 5vw, 26px); pointer-events: none; text-align: center; padding: 0 20px; }
.dragpad .nub { position: absolute; left: 0; top: 0; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff9fcb, #ff2d8a 55%, #6b0f3c); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transform: translate(-100px, -100px); }
.dragpad .nub.on { opacity: .95; }

/* the picture is the priority: it gets most of the screen, the controls get what's left (games that need big touch targets get less picture) */
.mgc-main { min-height: 96px; }
.mgc[data-g="whack"] .mgstream { height: min(25vh, 46vw); }
.mgc[data-g="quiz"] .mgstream, .mgc[data-g="memory"] .mgstream, .mgc[data-g="stroop"] .mgstream { height: min(32vh, 58vw); }
.mgc { gap: 8px; }
@media (orientation: landscape) and (max-height: 520px) {
  .mgc { padding-left: calc(60% + 22px); }
  .mgstream { width: calc(60% - 14px); }
}

/* tap-anywhere games: the pads are just labels, the whole screen takes the touch */
.mgc[data-tap] .mgbig { pointer-events: none; }
.mgc[data-tap] .mgc-info::after { content: "Tap anywhere"; display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.mgc[data-g="sprint"] .mgc-info::after, .mgc[data-g="dodge"] .mgc-info::after { content: "Tap the left or right side of the screen"; }
.mgc[data-g="pour"] .mgc-info::after { content: "Hold anywhere, release on the line"; }

/* stream ~75-80% of the screen, controls ~20-25% (games that need real buttons get a bit more) */
.mgstream, .mgc[data-g] .mgstream { flex: 1 1 0; height: auto; min-height: 0; }
.mgc-main { flex: 0 0 22vh; min-height: 0; }
.mgc[data-g="whack"] .mgc-main, .mgc[data-g="quiz"] .mgc-main, .mgc[data-g="memory"] .mgc-main, .mgc[data-g="stroop"] .mgc-main { flex-basis: 36vh; }
.mgc { gap: 6px; padding-top: calc(env(safe-area-inset-top) + 8px); padding-bottom: calc(env(safe-area-inset-bottom) + 10px); }
.mgc-info { min-height: 0; line-height: 1.1; }
.mgc-info b { display: inline; font-size: 18px; margin-right: 8px; }
.mgc-info::after { display: inline !important; margin-left: 6px; }
.mglive { min-height: 0; font-size: 11px; }
.quiz-q { font-size: 14px; padding: 0 0 4px; }
.dragpad .nub { position: fixed; }
@media (orientation: landscape) and (max-height: 520px) {
  .mgc { padding-left: calc(72% + 18px); }
  .mgstream, .mgc[data-g] .mgstream { flex: none; width: calc(72% - 14px); height: auto; }
  .mgc-main, .mgc[data-g="whack"] .mgc-main, .mgc[data-g="quiz"] .mgc-main, .mgc[data-g="memory"] .mgc-main, .mgc[data-g="stroop"] .mgc-main { flex-basis: auto; flex: 1; }
}

.mgstream .mgfs { position: absolute; right: 8px; top: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 99px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 15px; pointer-events: auto; }
.mgstream .tip { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .55); pointer-events: none; }
@media (orientation: landscape) { .mgstream .tip { display: none; } }
.mgc[data-tap] .mgstream .mgfs { pointer-events: auto; }

/* round home button in the phone header (built by lobbykit.js) */
.homelink { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-size: 18px; background: var(--ink-3); border: 1.5px solid rgba(255, 45, 138, .6); }
