/* ---------- map kiezen, bots, account, dansen ---------- */
.modal { position: fixed; inset: 0; z-index: 15; display: flex; align-items: center; justify-content: center; background: rgba(3,5,8,.78); backdrop-filter: blur(6px); }
.modal.hidden { display: none; }
.modal > .card { width: min(440px, 92vw); max-height: 90vh; }
.bigbtn { width: 100%; padding: 11px; font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: 2px; color: #120700; background: var(--accent); border: none; border-radius: 8px; cursor: pointer; }
.bigbtn.alt { background: #1a2430; color: #dfe7f0; border: 1px solid #2a3646; }
.xbtn { margin-left: auto; background: #18212c; color: #fff; border: none; width: 34px; height: 34px; border-radius: 8px; font-size: 17px; cursor: pointer; }
.accbtns { display: flex; gap: 10px; }
.linkbtn { margin-top: 10px; background: none; border: none; color: var(--cyan); font-family: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }
#accmsg { min-height: 18px; margin-top: 10px; font-size: 13px; color: #ffb38a; }
#accwho { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--cyan); }
#accountbtn { padding: 9px 14px; border-radius: 10px; border: 1px solid #243040; background: rgba(13,19,27,.8); color: #fff; font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: 1px; cursor: pointer; white-space: nowrap; }
#accountbtn.on { border-color: var(--cyan); color: var(--cyan); }

button.mapcard { display: block; width: 100%; text-align: left; cursor: pointer; color: inherit; font-family: inherit; transition: transform .1s, border-color .1s; }
button.mapcard:hover { transform: translateY(-2px); border-color: var(--accent); }
.botrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: #9fb0c2; text-transform: uppercase; }
.botrow > span { width: 100%; }
.seg { display: flex; border: 1px solid #243040; border-radius: 8px; overflow: hidden; }
.seg button { padding: 7px 11px; font-family: inherit; font-size: 12px; font-weight: 800; color: #9fb0c2; background: #0d131b; border: none; border-right: 1px solid #243040; cursor: pointer; }
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--accent); color: #120700; }

.mapwin { width: min(760px, 94vw) !important; }
#maplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.mapopt { position: relative; height: 150px; padding: 12px; border-radius: 12px; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; overflow: hidden; border: 2px solid transparent; transition: transform .1s; text-align: left; color: #fff; font-family: inherit; }
.mapopt:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.4); }
.mapopt.on { border-color: var(--accent); box-shadow: 0 0 22px rgba(255,106,26,.5); }
.mapopt b { font-size: 22px; font-weight: 900; font-style: italic; text-shadow: 0 2px 10px #000; }
.mapopt span { font-size: 12px; color: #e3e9f0; text-shadow: 0 1px 6px #000; }
.mapopt em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; background: #ffd34d; color: #1a1000; }
.m-arena { background: linear-gradient(160deg, #2a5fa8, #f2c39a 60%, #3b342f); }
.m-haven { background: linear-gradient(160deg, #2f3a68, #ff9a5a 55%, #2a2220); }
.m-ruins { background: linear-gradient(160deg, #3c7ad8, #f3dcb5 55%, #8a6a40); }
.m-city { background: linear-gradient(160deg, #03050c, #1c2442 50%, #ff1f9a 120%); }
.m-valley { background: linear-gradient(160deg, #3d74c9, #cfe0ee 45%, #3f6b25 70%, #24452a); }

#emotewheel { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(8,10,14,.3) 0 22%, rgba(8,10,14,.78) 23% 70%, transparent 71%); }
#emotewheel small { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 11px; color: #9fb0c2; padding: 0 140px; }
.emo { position: absolute; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; background: rgba(20,27,36,.9); border: 2px solid #243040; transition: transform .1s; }
.emo i { font-style: normal; font-size: 30px; }
.emo.on { border-color: var(--accent); transform: scale(1.15); box-shadow: 0 0 20px rgba(255,106,26,.6); }
.sw.emote { display: flex; align-items: center; justify-content: center; font-size: 36px; background: radial-gradient(circle, color-mix(in srgb, var(--r) 35%, transparent), #0b1016 70%); }

/* party */
#partybox { margin: 4px 0 14px; padding: 12px 14px; border-radius: 10px; background: rgba(46,230,255,.06); border: 1px solid rgba(46,230,255,.25); }
#partybox.hidden { display: none; }
.phead { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--cyan); margin-bottom: 8px; }
#partycode { font-size: 18px; color: #fff; letter-spacing: 3px; }
#partycopy, #partyleave, .prow button { padding: 7px 11px; font-family: inherit; font-size: 12px; font-weight: 800; color: #dfe7f0; background: #1a2430; border: 1px solid #2a3646; border-radius: 7px; cursor: pointer; }
#partycopy { margin-left: auto; }
#partyleave { width: 100%; margin-bottom: 8px; }
.prow { display: flex; gap: 6px; margin-bottom: 8px; }
.prow button:first-child { flex: 1; color: #120700; background: var(--cyan); border: none; }
#partyjoincode { width: 86px !important; margin: 0 !important; padding: 7px 9px !important; font-size: 14px !important; text-transform: uppercase; letter-spacing: 2px; display: inline-block !important; }
#publicplay { background: linear-gradient(180deg, #5fe8ff, #2ea8ff); }
#partymembers div { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; font-weight: 700; }
#partymembers i { width: 10px; height: 10px; border-radius: 50%; }
#partymembers small { margin-left: auto; font-size: 11px; color: #9fb0c2; }
#partymembers small.ok { color: #5dff9a; }
#partymsg { min-height: 16px; margin-top: 6px; font-size: 12px; color: #ffb38a; }
#partylabels { position: absolute; inset: 0; pointer-events: none !important; }
#partylabels div { position: absolute; transform: translate(-50%, -100%); padding: 3px 10px; border-radius: 6px; background: rgba(8,10,14,.75); font-size: 13px; font-weight: 800; white-space: nowrap; }
#partylabels div small { display: block; text-align: center; font-size: 10px; color: #5dff9a; }
.botrow .seg button { padding: 7px 8px; }

/* VR-knop */
#vrbtn { display: block; margin: 0 0 10px auto; padding: 10px 22px; font-family: inherit; font-size: 18px; font-weight: 900; letter-spacing: 2px; color: #04131a; background: linear-gradient(180deg, #7ff0ff, #2ec4ff); border: none; border-radius: 10px; cursor: pointer; box-shadow: 0 6px 24px rgba(46,200,255,.45); }
#vrbtn.hidden { display: none; }
