/* AlarmTalk's changes on top of the island's own styles */

.at-hidden{display:none!important}

/* the look picker on the way in: who you're joining as */
.member-who{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.member-who img{width:22px;height:22px;border-radius:50%;object-fit:cover;background:#fff}

/* when the island can't let you in */
.island-error{position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;
  padding:2rem;text-align:center;background:#f8f4e8f2;font-size:1rem;color:#29402d}
.island-error[hidden]{display:none}
.island-error p{margin:0;max-width:20rem}
.island-error a{text-decoration:none}

/* AlarmTalk avatars on the name tags */
.peer-label .peer-face{width:18px;height:18px;border-radius:50%;object-fit:cover;background:#fff;margin:-.08rem 0 -.08rem -.3rem}
.peer-label:has(.peer-face):before{display:none}

/* The island is always phone-sized, so the touch controls show with a mouse too
   (the island's own CSS only shows them for (pointer:coarse)). */
.touch .keys-only,body:not(.touch) .touch-only{display:none}
.touch .world-prompt{display:none!important}
body.playing.touch .thumbstick{position:absolute;left:max(.95rem,env(safe-area-inset-left));bottom:max(.7rem,env(safe-area-inset-bottom));z-index:4;
  display:grid;place-items:center;width:5.05rem;height:5.05rem;padding:0;border-radius:50%;border:1px solid #faf4dae0;background:#fbf4df69;
  box-shadow:inset 0 0 0 5px #fcf8e52b,0 2px 12px #173d3435;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
body.playing.touch .thumbstick[hidden]{display:none}
.touch .thumbstick::before,.touch .thumbstick::after{content:'';position:absolute;inset:14% 49%;background:#61756056;border-radius:100%}
.touch .thumbstick::after{inset:49% 14%}
.touch .thumbstick span{z-index:1;width:43%;height:43%;border-radius:50%;border:1px solid #71836c9c;background:#fff8e3ed;box-shadow:0 3px 7px #3654444d}
.touch .thumbstick.pressed{background:#f8efd67d}.touch .thumbstick.pressed span{background:#fff9e7}
/* joystick and Jump sit in the bottom corners, level with the middle buttons */
body.playing.touch .jump-control{bottom:max(.7rem,env(safe-area-inset-bottom))}
body.playing.touch .move-hint{display:none}
.touch .party-action,.touch .party-invite,.touch .party-play .world-control,.touch .party-controls #seat,.touch .focus-stand{min-height:2.75rem}
.touch .party-play .world-actions .world-control{width:2.75rem;height:2.75rem}

.credits-note{font-size:.85rem;opacity:.75}

/* proximity voice: a round button above Jump */
.voice-box{position:absolute;z-index:4;right:max(.82rem,env(safe-area-inset-right));
  bottom:calc(max(.7rem,env(safe-area-inset-bottom)) + 3.65rem + .75rem)}
.voice-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.1rem;width:3.65rem;height:3.65rem;padding:0;
  border:1px solid #fff8debf;border-radius:50%;background:#fcf6e7ed;color:#304b38;box-shadow:0 3px 12px #29463b38;
  font:650 .72rem/1 var(--sans,system-ui);touch-action:manipulation;cursor:pointer;transition:background .2s,box-shadow .2s,color .2s}
.voice-btn:active{transform:scale(.94)}
.voice-ico svg{width:1.3rem;height:1.3rem;display:block}
.voice-box[data-mode="live"] .voice-btn{background:#2f8f5b;color:#fff;border-color:#bff0d2}
/* muted is the resting state (everyone starts there), so it stays plain; green means your mic is on */
.voice-box[data-mode="joining"] .voice-btn{opacity:.7}
.voice-box.speaking .voice-btn{box-shadow:0 0 0 4px #7de3a7,0 3px 12px #29463b38}
.voice-leave{position:absolute;top:-.35rem;right:-.35rem;width:1.45rem;height:1.45rem;padding:0;border-radius:50%;
  border:1px solid #fff;background:#304b38;color:#fff;font:700 .9rem/1 system-ui;cursor:pointer}
.voice-leave[hidden],.voice-box[hidden]{display:none}
/* name tags: green edge = in voice, glow = talking right now */
.peer-label.in-voice,.visitor-label.in-voice{border:1.5px solid #5fd394}
.peer-label.speaking,.visitor-label.speaking{box-shadow:0 0 0 3px #7de3a7cc,0 2px 5px #21372630}

/* the look button shows only your figure's face, not your name */
.party-identity-label{display:none!important}

/* a clean top bar: only the wide-view button stays. Inside the chat its own tabs are the way out,
   so no Exit; the people count, Invite and ? are gone everywhere. */
#help,.party-invite,.party-invite-panel{display:none!important}
/* the count pill only shows while the island is connecting or reconnecting ("Joining", "Rejoining") */
.party-room[data-connection="online"]{display:none!important}

/* the look popup, dressed like the chat's Settings sheet: white, rounded, plain text buttons */
:root{--at-accent:#1FE4A7}
.member-dialog{width:min(92vw,400px);max-height:86dvh;border:0;border-radius:24px;padding:0;background:#fff;color:#111;
  font-family:Roboto,system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 10px 40px rgba(0,0,0,.25)}
.member-dialog::backdrop{background:rgba(0,0,0,.35)}
.member-dialog .modal-close{display:none}
.member-intro{background:none;border:0;padding:22px 22px 4px;gap:14px}
.member-intro h2{font-family:inherit;font-weight:700;font-size:18px;line-height:1.2;letter-spacing:0;margin:0}
.member-intro p{color:#6D6D6D;font-size:13px;margin-top:4px}
.member-figure{width:64px;border-radius:50%;background:#F1F1F1}
.member-fields{padding:6px 22px 0}
.member-fields legend{font-size:12px;font-weight:700;color:#6D6D6D;margin:10px 0 4px}
.color-choice span{width:30px;height:30px;border:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.color-choice input:checked+span{outline:2.5px solid var(--at-accent);outline-offset:2px}
.hair-choice span{border:1px solid #D5D5D5;border-radius:16px;padding:5px 13px;color:#333;font-size:13px}
.hair-choice input:checked+span{background:none;border-color:var(--at-accent);box-shadow:inset 0 0 0 1.5px var(--at-accent);color:#111;font-weight:700}
.member-footer{background:none;border:0;padding:6px 14px 12px;justify-content:flex-end;gap:4px}
.at-text-btn{border:0;background:none;color:var(--at-accent);font-family:inherit;font-weight:700;font-size:15px;line-height:1;padding:10px 8px;margin:0;cursor:pointer}
.at-text-btn.gray{color:#6D6D6D;font-weight:400}
.at-text-btn[hidden]{display:none}
.at-text-btn:disabled{opacity:.5}
.member-feedback{color:#B3261E}
/* the chat's night theme */
.at-night .member-dialog{background:#161B26;color:#EEF1FA}
.at-night .member-intro p,.at-night .member-fields legend,.at-night .at-text-btn.gray{color:rgba(255,255,255,.65)}
.at-night .hair-choice span{border-color:rgba(255,255,255,.25);color:#EEF1FA}
.at-night .member-figure{background:rgba(255,255,255,.08)}


/* the admin's watch view: a camera you can walk around with, and nothing to press but the view button */
.spectating .party-controls,.spectating #jump,.spectating #voice-box,.spectating #visitor-label,.spectating #interact{display:none!important}

/* the time dial (test copies only), top right: a day-and-night ring with the sun or moon on its rim */
.time-dial{position:absolute;z-index:6;top:max(.55rem,env(safe-area-inset-top));right:max(.55rem,env(safe-area-inset-right));width:104px;height:104px;border-radius:50%;
  touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;
  /* noon at the top, clockwise: afternoon, dusk, night at the bottom, dawn, morning */
  background:conic-gradient(from 0deg,#8fd3e8 0deg,#f6c66b 75deg,#e8785a 98deg,#6b4a9a 112deg,#16284a 135deg,#0f1d3a 180deg,#16284a 232deg,#b47aa8 255deg,#ffc9a8 270deg,#a8dcec 300deg,#8fd3e8 360deg);
  box-shadow:0 3px 12px #1f2f3a55,inset 0 0 0 2px #ffffffb0}
.time-dial[hidden]{display:none}
.time-dial:active{cursor:grabbing}
.td-face{position:absolute;inset:19px;border-radius:50%;background:#fcf6e7f2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;pointer-events:none;box-shadow:0 1px 4px #0003}
.td-face b{font:700 15px/1 var(--sans,system-ui);color:#263e31}
.td-face i{font:500 9.5px/1 var(--sans,system-ui);font-style:normal;color:#5b6b5d;text-transform:capitalize}
.td-knob{position:absolute;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;background:#fffdf5;display:grid;place-items:center;font-size:15px;line-height:1;pointer-events:none;box-shadow:0 1px 5px #0006}
.td-live{position:absolute;left:50%;bottom:-1.55rem;transform:translateX(-50%);border:0;border-radius:1rem;padding:.2rem .6rem;background:#263e31ee;color:#fff9e5;font:600 11px/1.3 var(--sans,system-ui);white-space:nowrap;cursor:pointer}
.td-live[hidden]{display:none}
.spectating .time-dial{display:none!important}

/* taps land on the button itself, never on the icon or label inside it (which get redrawn) */
.voice-btn *{pointer-events:none}
