:root {
  --cream: #f6eed6;
  --cream2: #ece0bd;
  --ink: #3b2e1c;
  --brown: #6b4f2a;
  --green: #3f9b3a;
  --green-d: #2d7a2a;
  --red: #c94335;
  --gold: #f2c14e;
  --shadow: 0 3px 0 rgba(0,0,0,.25);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #2b3a2a; color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif; font-weight: 600; user-select: none; -webkit-user-select: none; touch-action: none; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }

.card { background: var(--cream); border: 3px solid var(--brown); border-radius: 6px; box-shadow: var(--shadow); }
.icon { width: 44px; height: 44px; display: grid; place-items: center; font-size: 20px; font-weight: 800; padding: 0; }
.icon:active { transform: translateY(2px); box-shadow: none; }

/* ── top bar ── */
#topbar { position: fixed; top: max(8px, env(safe-area-inset-top)); left: 8px; right: 8px; display: flex; gap: 8px; z-index: 5; }
#who { padding: 6px 12px; min-width: 120px; }
.who-name { font-family: 'Silkscreen', monospace; font-weight: 700; font-size: 15px; }
.who-sub { font-size: 12px; opacity: .8; }
#phasebar { flex: 1; padding: 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
#steps { display: flex; gap: 6px; font-family: 'Silkscreen', monospace; font-size: 12px; flex-wrap: wrap; justify-content: center; }
#steps span { padding: 1px 8px; border-radius: 4px; opacity: .45; }
#steps span.on { background: var(--green); color: #fff; opacity: 1; }
#steps span.done { opacity: .8; }
#budget { display: flex; align-items: center; gap: 10px; }
#budgetText { font-size: 13px; font-weight: 800; white-space: nowrap; }
#pips { display: flex; gap: 2px; }
#pips i { width: 9px; height: 9px; border: 1.5px solid var(--green-d); border-radius: 2px; background: var(--green); }
#pips i.off { background: transparent; border-color: #b6a882; }
#pips i.warn { background: var(--gold); border-color: #b48b1d; }

/* ── side panels ── */
.panel { position: fixed; top: 136px; bottom: 84px; width: 310px; transition: transform .25s; overflow-y: auto; z-index: 4;
  background: rgba(246,238,214,.96); border: 3px solid var(--brown); border-radius: 6px; box-shadow: var(--shadow); padding: 10px 12px; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
#left { left: 8px; transform: translateX(-115%); }
#right { right: 8px; width: 250px; transform: translateX(115%); }
#left.open, #right.open { transform: none; }
.toggle { position: fixed; top: 84px; z-index: 6; }
.toggle.active { background: var(--gold); }
#leftToggle { left: 8px; } #rightToggle { right: 8px; }
.panel h2 { font-family: 'Silkscreen', monospace; font-size: 16px; margin: 2px 0 6px; }
.panel h3 { font-family: 'Silkscreen', monospace; font-size: 13px; margin: 12px 0 4px; display: flex; justify-content: space-between; align-items: baseline; }
.panel p.hint { margin: 2px 0 8px; font-size: 12.5px; line-height: 1.35; opacity: .85; }

.row { background: var(--cream2); border: 2px solid #c9b88c; border-radius: 6px; padding: 7px 8px; margin: 6px 0; }
.row-top { display: flex; align-items: center; gap: 6px; }
.row-name { flex: 1; font-weight: 800; font-size: 14px; }
.row-name small { font-weight: 600; opacity: .7; }
.row-desc { font-size: 12px; opacity: .8; margin-top: 3px; line-height: 1.3; }
.cost { font-size: 11px; background: #fff7dc; border: 1.5px solid #c9b88c; border-radius: 10px; padding: 0 6px; white-space: nowrap; }
.pm { width: 34px; height: 34px; border-radius: 6px; border: 2px solid var(--brown); background: #fffaf0; font-size: 20px; font-weight: 800; line-height: 1; display: grid; place-items: center; padding: 0; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.pm.plus { background: var(--green); color: #fff; border-color: var(--green-d); }
.pm:disabled { opacity: .35; cursor: default; }
.pm:not(:disabled):active { transform: translateY(2px); box-shadow: none; }
.lvl { display: flex; gap: 3px; margin-top: 5px; }
.lvl i { width: 18px; height: 8px; border-radius: 2px; background: #d8caa2; }
.lvl i.on { background: var(--green); }
.count { min-width: 26px; text-align: center; font-weight: 800; }
.extra { font-size: 12px; margin-top: 4px; font-weight: 800; }
.bar { height: 10px; border-radius: 3px; background: #d8caa2; overflow: hidden; position: relative; margin-top: 3px; }
.bar > b { display: block; height: 100%; background: var(--green); transition: width .4s; }
.bar.danger > b { background: var(--red); }
.bar .mark { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: .6; }

.lvlhead { border-left: 6px solid; padding-left: 6px; }
.action { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px; border: 2px solid var(--brown); border-radius: 6px; background: #fffaf0; margin: 6px 0; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.action:disabled { opacity: .4; }
.action b { flex: 1; }
.action small { display: block; font-weight: 600; opacity: .75; }
.event-card { background: #fbe3d3; border: 2px solid #c9714b; border-radius: 6px; padding: 8px; margin-bottom: 8px; }
.event-card ul { margin: 4px 0 0 18px; padding: 0; font-size: 12.5px; }
.log { font-size: 12.5px; }
.log div { padding: 3px 0; border-bottom: 1px dashed #c9b88c; }

/* status panel */
.stat { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.stat .k { width: 92px; }
.stat .v { margin-left: auto; font-weight: 800; }
.thermo { display: flex; gap: 10px; align-items: stretch; margin: 6px 0 10px; }
.tube { position: relative; width: 22px; height: 120px; border: 3px solid var(--brown); border-radius: 11px 11px 14px 14px; background: #fff; overflow: hidden; }
.tube .ideal { position: absolute; left: 0; right: 0; background: rgba(63,155,58,.25); }
.tube .fill { position: absolute; left: 3px; right: 3px; bottom: 0; border-radius: 6px; transition: height .5s, background .5s; }
.thermo-read { display: flex; flex-direction: column; justify-content: center; }
.thermo-read .big { font-family: 'Silkscreen', monospace; font-size: 26px; font-weight: 700; }
.pop { margin: 5px 0; font-size: 12.5px; }
.pop .top { display: flex; justify-content: space-between; }
.warns { margin-top: 8px; }
.warns div { background: #fff1c9; border: 1.5px solid #d6a92c; border-radius: 5px; padding: 4px 6px; font-size: 12px; margin: 4px 0; }
.warns div.ok { background: #e3f4dc; border-color: #74b25f; }

/* bottom controls */
#joystick { position: fixed; left: 336px; bottom: 24px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.25); border: 3px solid rgba(80,60,30,.35); z-index: 3; touch-action: none; }
#knob { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--gold); border: 3px solid #a17d1c; box-shadow: var(--shadow); }
#zoom { position: fixed; right: 270px; bottom: 96px; display: flex; flex-direction: column; gap: 8px; z-index: 3; }
#actions { position: fixed; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.bigbtn { font-family: 'Silkscreen', monospace; font-weight: 700; font-size: 18px; padding: 12px 22px; background: var(--green); color: #fff; border: 3px solid var(--green-d); border-radius: 8px; box-shadow: 0 4px 0 #1f5a1d; white-space: nowrap; }
.bigbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #1f5a1d; }
.bigbtn:disabled { filter: grayscale(.8); opacity: .6; }
.bigbtn.ghost { background: var(--cream); color: var(--ink); border-color: var(--brown); box-shadow: 0 4px 0 #8a6d43; }
#seasonBar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 78px; width: 220px; height: 8px; border-radius: 4px; background: rgba(0,0,0,.25); overflow: hidden; z-index: 5; }
#seasonFill { height: 100%; width: 0; background: var(--gold); }

/* labels in the world */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.tag3d { position: absolute; transform: translate(-50%, -100%); background: rgba(30,30,30,.82); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.tag3d.me { background: var(--gold); color: var(--ink); }
.tag3d.bad { background: var(--red); }

#toasts { position: fixed; top: 92px; left: 50%; transform: translateX(-50%); z-index: 8; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.toast { background: var(--cream); border: 3px solid var(--brown); border-radius: 6px; padding: 6px 14px; font-weight: 800; box-shadow: var(--shadow); animation: toast 2.6s forwards; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* screens */
.screen { position: fixed; inset: 0; display: grid; place-items: center; z-index: 20; background: rgba(20,30,20,.35); padding: 16px; }
.title-box { text-align: center; max-width: 760px; }
.title-box h1 { font-family: 'Silkscreen', monospace; font-weight: 700; font-size: clamp(38px, 8vw, 76px); line-height: .95; margin: 0; color: #fff;
  text-shadow: 4px 4px 0 #2d7a2a, 8px 8px 0 rgba(0,0,0,.35); }
.tag { color: #fff; font-size: 17px; text-shadow: 0 2px 4px rgba(0,0,0,.6); }
#ecoCards { display: flex; gap: 12px; justify-content: center; margin: 18px 0 22px; flex-wrap: wrap; }
.eco { width: 200px; padding: 12px; text-align: center; cursor: pointer; }
.eco .e { font-size: 38px; }
.eco b { display: block; font-family: 'Silkscreen', monospace; font-size: 16px; margin: 4px 0; }
.eco small { font-size: 12px; }
.eco.sel { outline: 4px solid var(--gold); }
.eco.locked { filter: grayscale(1); opacity: .65; cursor: not-allowed; }
.modal-box { max-width: 520px; width: 100%; padding: 18px; max-height: 90vh; overflow-y: auto; }
.modal-box h2 { font-family: 'Silkscreen', monospace; margin: 0 0 6px; font-size: 22px; }
.modal-box .big-icon { font-size: 54px; text-align: center; }
.modal-box ul { padding-left: 20px; }
.modal-box .btns { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.stars { font-size: 48px; text-align: center; letter-spacing: 8px; color: #b8ab88; }
.stars .s.on { color: var(--star); text-shadow: 0 0 10px var(--star), 0 3px 0 rgba(0,0,0,.35); }
canvas.chart { width: 100%; height: 170px; background: #fffaf0; border: 2px solid #c9b88c; border-radius: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; margin-top: 4px; }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--c); margin-right: 4px; }

/* smaller screens: panels slide in from toggles */
@media (max-width: 980px) {
  .panel { bottom: 150px; }
  #left { width: min(330px, calc(100vw - 16px)); }
  #right { width: min(270px, calc(100vw - 16px)); }
  #healthCard { min-width: 120px; }
  #zoom { right: 8px; bottom: 96px; }
  #joystick { left: 20px; }
  #who { display: none; }
  #pips { display: none; }
}
@media (max-width: 560px) {
  #joystick { width: 90px; height: 90px; left: 12px; bottom: 90px; }
  .bigbtn { font-size: 15px; padding: 10px 14px; }
}

/* ── health, weather, pause ── */
#healthCard { padding: 5px 10px; min-width: 170px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.health-top { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.health-top b { font-family: 'Silkscreen', monospace; font-size: 18px; }
#healthDelta { font-size: 12px; font-weight: 800; opacity: 0; }
#healthDelta.up { color: var(--green-d); } #healthDelta.down { color: var(--red); }
#healthDelta.show { animation: pop 1.6s forwards; }
@keyframes pop { 0% { opacity: 0; transform: translateY(4px) scale(.8); } 15% { opacity: 1; transform: none scale(1.25); } 70% { opacity: 1; } 100% { opacity: 0; } }
.hbar { height: 8px; border-radius: 3px; background: #d8caa2; overflow: hidden; }
.hbar b { display: block; height: 100%; width: 0; background: var(--green); transition: width .5s, background .5s; }
#weatherBadge { font-size: 12px; font-weight: 800; }
#pausedBanner { position: fixed; top: 42%; left: 50%; transform: translate(-50%, -50%); z-index: 7; font-family: 'Silkscreen', monospace; font-size: 40px; color: #fff;
  background: rgba(40,30,15,.55); padding: 10px 28px; border-radius: 10px; pointer-events: none; text-shadow: 3px 3px 0 rgba(0,0,0,.4); text-align: center; }
#pausedBanner small { display: block; font-family: 'Nunito', sans-serif; font-size: 15px; text-shadow: none; margin-top: 4px; }
.tag3d.den { background: rgba(93,64,48,.9); }
.floaty { position: absolute; transform: translate(-50%, -100%); font-weight: 800; font-size: 14px; color: #fff; white-space: nowrap;
  text-shadow: 0 0 3px #000, 0 2px 3px #000; pointer-events: none; }
.floaty.up { color: #b8ff9c; } .floaty.down { color: #ffb0a0; }

/* weather overlays on top of the 3D view */
#skyfx { position: fixed; inset: 0; pointer-events: none; z-index: 1; transition: background 1.5s; }
body[data-weather="sunny"] #skyfx { background: radial-gradient(circle at 92% 4%, rgba(255,240,170,.75) 0, rgba(255,230,140,.35) 12%, rgba(255,220,120,0) 38%); }
body[data-weather="heat"] #skyfx { background: radial-gradient(circle at 92% 4%, rgba(255,210,120,.8) 0, rgba(255,170,80,.3) 16%, rgba(255,150,60,.12) 60%); }
body[data-weather="cloudy"] #skyfx { background: linear-gradient(rgba(200,205,210,.25), rgba(200,205,210,0) 50%); }
body[data-weather="rain"] #skyfx { background: linear-gradient(rgba(70,85,100,.25), rgba(70,85,100,.05)); }
body[data-weather="storm"] #skyfx { background: linear-gradient(rgba(30,35,45,.38), rgba(30,35,45,.1)); }
body[data-weather="snow"] #skyfx { background: linear-gradient(rgba(240,248,255,.35), rgba(240,248,255,.1)); }
#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 1; }
#flash.on { animation: flash .45s; }
@keyframes flash { 0% { opacity: 0; } 10% { opacity: .75; } 25% { opacity: .1; } 35% { opacity: .55; } 100% { opacity: 0; } }

/* name box on the title screen */
.name-box { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; margin-top: 6px; }
.name-box span { font-family: 'Silkscreen', monospace; font-size: 14px; }
#nameInput { font: inherit; font-size: 20px; font-weight: 800; padding: 6px 10px; border: 2px solid var(--brown); border-radius: 6px; background: #fffaf0; width: 230px; color: var(--ink); user-select: text; -webkit-user-select: text; }
#nameInput:focus { outline: 3px solid var(--gold); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ── round 3 ── */
.icon.wide { width: auto; padding: 0 10px; font-size: 15px; }
.eco { font: inherit; color: inherit; }
#weatherWarn { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 7; background: #fff1c9; border: 3px solid #d6a92c; border-radius: 8px;
  padding: 6px 14px; font-weight: 800; box-shadow: var(--shadow); white-space: nowrap; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(214,169,44,.35); } }
#toasts { top: 132px; }
/* context buttons: climb / ride / fake tree */
#doBtns { position: fixed; right: 270px; bottom: 210px; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#doBtns .bigbtn { font-size: 15px; padding: 10px 14px; }
@media (max-width: 980px) { #doBtns { right: 64px; bottom: 140px; } }
.tag3d.emote { background: transparent; font-size: 22px; padding: 0; text-shadow: 0 2px 4px rgba(0,0,0,.4); }

/* species names you can tap + info card */
.namebtn { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.namebtn:hover { text-decoration: underline; }
.sp-icon { font-size: 18px; }
.backlink { background: none; border: 0; font-weight: 800; color: var(--brown); padding: 2px 0; cursor: pointer; font-size: 14px; }
.info-head { display: flex; gap: 12px; align-items: center; margin: 6px 0 8px; }
.info-head h2 { margin: 0; }
.info-head i { font-size: 13px; opacity: .8; }
.info-icon { font-size: 48px; width: 64px; height: 64px; display: grid; place-items: center; background: var(--cream2); border: 2px solid #c9b88c; border-radius: 10px; }
.chip { display: inline-block; color: #fff; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 10px; margin-top: 4px; }
.facts { display: grid; gap: 6px; }
.facts div { background: var(--cream2); border: 2px solid #c9b88c; border-radius: 6px; padding: 6px 8px; font-size: 13px; display: flex; flex-direction: column; }
.fun { margin: 4px 0 8px 18px; padding: 0; font-size: 13px; line-height: 1.4; }
.fun li { margin: 4px 0; }

/* settings sliders */
.slider { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-weight: 800; }
.slider span { width: 120px; }
.slider input { flex: 1; accent-color: var(--green); }
.slider b { width: 36px; text-align: right; }

/* underwater look for the coral reef */
#seafx { position: fixed; inset: 0; pointer-events: none; z-index: 1; display: none; }
body[data-eco="reef"] #seafx { display: block;
  background:
    radial-gradient(ellipse 120px 40px at 20% 30%, rgba(255,255,255,.10), transparent 70%),
    radial-gradient(ellipse 160px 50px at 70% 60%, rgba(255,255,255,.08), transparent 70%),
    radial-gradient(ellipse 100px 30px at 45% 80%, rgba(255,255,255,.09), transparent 70%),
    linear-gradient(rgba(40,140,170, calc(.10 + var(--murk, 0) * .35)), rgba(10,70,90, calc(.18 + var(--murk, 0) * .4)));
  background-size: 400px 300px, 500px 350px, 350px 280px, 100% 100%;
  animation: caustics 9s linear infinite; }
@keyframes caustics { to { background-position: 400px 150px, -500px 175px, 350px -140px, 0 0; } }
body[data-eco="reef"][data-weather="sunny"] #skyfx { background: radial-gradient(circle at 92% 4%, rgba(220,250,255,.55) 0, rgba(200,240,255,.2) 15%, transparent 40%); }

/* ── round 4: views, multiplayer, settings ── */
#ecoCards { gap: 10px; }
.eco { width: 150px; padding: 10px 8px; }
.title-box { max-width: 900px; }
.eco.locked small { font-weight: 800; }
@media (max-width: 980px) { .eco { width: 140px; padding: 8px; } .eco small { display: none; } }
.bigbtn.small { font-size: 14px; padding: 8px 14px; }
#mpRow { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
#mpRow .or { color: #fff; font-weight: 800; text-shadow: 0 1px 3px #000; }
.codebox { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; }
#codeInput { font: inherit; font-size: 18px; font-weight: 800; width: 160px; padding: 6px 8px; border: 2px solid var(--brown); border-radius: 6px; background: #fffaf0; text-transform: uppercase; letter-spacing: 2px; user-select: text; -webkit-user-select: text; }
#lobby { margin-top: 12px; }
.lobbycard { display: inline-block; padding: 8px 16px; }
.lobbycard .code { font-family: 'Silkscreen', monospace; font-size: 26px; letter-spacing: 4px; color: var(--green-d); }
.linkbtn { background: none; border: 0; color: var(--red); font-weight: 800; text-decoration: underline; cursor: pointer; }
pre { background: #2b2b2b; color: #b8ff9c; padding: 8px 12px; border-radius: 6px; }

#viewBar { position: fixed; right: 270px; top: 136px; z-index: 5; display: flex; flex-direction: column; padding: 3px; gap: 3px; }
#viewBar button { width: 50px; height: 50px; border: 2px solid transparent; border-radius: 6px; background: transparent; font-size: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; padding: 0; }
#viewBar button small { font-size: 10px; font-weight: 800; margin-top: 2px; }
#viewBar button.on { background: var(--gold); border-color: #a17d1c; }
/* jump sits bottom-right (on iPads the middle buttons used to cover it) */
#jumpBtn { position: fixed; right: 266px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 6; width: 72px; height: 72px; font-size: 34px; border-width: 3px; }
#upDown { position: fixed; right: 350px; bottom: 100px; z-index: 6; display: flex; flex-direction: column; gap: 8px; }
#micBtn.active { background: #c8f2c0; }
@media (max-width: 980px) {
  #viewBar { right: 8px; top: 186px; }
  #jumpBtn { right: 8px; bottom: max(16px, env(safe-area-inset-bottom)); width: 64px; height: 64px; }
  #upDown { right: 80px; bottom: 16px; flex-direction: row; }
}
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pickbtn { padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 800; cursor: pointer; }
.pickbtn span { font-size: 30px; }
.pickbtn small { font-weight: 600; opacity: .7; }
.tag3d.friend { background: #e05aa0; color: #fff; }
.modal-box h3 { font-family: 'Silkscreen', monospace; font-size: 14px; margin: 14px 0 4px; }

/* new weathers */
body[data-weather="fog"] #skyfx { background: rgba(225,230,234,.45); }
body[data-weather="blizzard"] #skyfx { background: linear-gradient(rgba(240,246,250,.55), rgba(240,246,250,.3)); }
body[data-weather="drizzle"] #skyfx { background: linear-gradient(rgba(90,105,120,.15), rgba(90,105,120,.03)); }
body[data-weather="aurora"] #skyfx { background: linear-gradient(170deg, rgba(40,255,160,.28), rgba(120,60,255,.18) 35%, rgba(10,20,50,.35) 70%); background-size: 200% 200%; animation: aurora 8s ease-in-out infinite alternate; }
@keyframes aurora { to { background-position: 100% 0; } }
body[data-weather="windy"] #skyfx { background: none; }

/* emote legend in Help */
.emotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; font-size: 13px; }
.emotes div { display: flex; align-items: center; gap: 8px; }
.emotes span { font-size: 22px; width: 28px; text-align: center; }
/* levels above the normal maximum */
.lvl i.over { background: #f08a4b; }
/* players in the lobby */
.plist { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0 2px; }
.pl { background: var(--c); color: #fff; font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 12px; }
#lobbyMic { width: 34px; height: 34px; font-size: 16px; vertical-align: middle; }
#lobbyMic.active { background: #c8f2c0; }
/* desert */
body[data-weather="sandstorm"] #skyfx { background: linear-gradient(rgba(216,176,112,.5), rgba(216,176,112,.25)); }
body[data-eco="desert"][data-weather="sunny"] #skyfx { background: radial-gradient(circle at 92% 4%, rgba(255,236,170,.85) 0, rgba(255,220,140,.4) 14%, rgba(255,210,120,0) 42%); }

/* full screen button */
#fsBtn svg { display: block; margin: auto; }
#fsBtn .fs-out { display: none; }
body.fs #fsBtn .fs-in { display: none; }
body.fs #fsBtn .fs-out { display: inline; }
#fsBtn.pulse { animation: fspulse 1s ease-in-out 4; }
@keyframes fspulse { 50% { transform: scale(1.18); box-shadow: 0 0 0 4px #ffd54a; } }
.voicehint { font-size: 13px; opacity: .9; margin-top: 6px; }
.voicehint a { color: #ffd54a; font-weight: 800; }

.modal-box .btns { flex-wrap: wrap; }
.modal-box a.bigbtn { text-decoration: none; }
.fshelp { text-align: left; padding-left: 22px; line-height: 1.45; }
.fshelp li { margin: 8px 0; }
.fshelp pre { font-size: 12px; white-space: pre-wrap; word-break: break-all; }
