/* ---------- lobby ---------- */
#menu { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#menu > * { pointer-events: auto; }
#menu > .shade { pointer-events: none; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,6,10,.88) 0%, rgba(4,6,10,.55) 38%, rgba(4,6,10,0) 60%),
              linear-gradient(180deg, rgba(4,6,10,.7) 0, rgba(4,6,10,0) 120px), linear-gradient(0deg, rgba(4,6,10,.6) 0, rgba(4,6,10,0) 160px); }
#lobbytop { position: absolute; left: 0; right: 0; top: 0; height: 68px; display: flex; align-items: center; gap: 28px; padding: 0 28px; }
.logo { font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: 3px; white-space: nowrap; }
.logo span { color: var(--accent); margin-left: 6px; text-shadow: 0 0 20px rgba(255,106,26,.7); }
#tabs { display: flex; gap: 6px; }
#tabs button { position: relative; padding: 10px 20px; font-family: inherit; font-size: 16px; font-weight: 800; letter-spacing: 2px; color: #9fb0c2; background: none; border: none; cursor: pointer; border-bottom: 3px solid transparent; }
#tabs button:hover { color: #fff; }
#tabs button.on { color: #fff; border-bottom-color: var(--accent); text-shadow: 0 0 14px rgba(255,106,26,.6); }
#shopbadge { position: absolute; top: 0; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ff2d55; color: #fff; font-size: 12px; line-height: 20px; letter-spacing: 0; box-shadow: 0 0 10px #ff2d55; }
#profilebar { margin-left: auto; display: flex; align-items: center; gap: 16px; font-weight: 800; }
.lvwrap { display: grid; grid-template-columns: auto 140px; column-gap: 10px; align-items: center; font-size: 13px; }
.lvwrap small { grid-column: 2; font-size: 10px; color: #7e8b9a; font-weight: 600; }
.lv { color: var(--cyan); letter-spacing: 1px; grid-row: span 2; }
.xp, #hudxp div { height: 7px; background: #141b24; border-radius: 4px; overflow: hidden; }
.xp i, #hudxp i { display: block; height: 100%; background: linear-gradient(90deg, #2ee6ff, #8a5bff); transition: width .4s; }
#profilebar .c { font-size: 20px; color: #ffd34d; }
#profilebar .k { font-size: 15px; color: #ffe9a8; }
#settingsbtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #243040; background: rgba(13,19,27,.8); color: #fff; font-size: 20px; cursor: pointer; }
i.coin { display: inline-block; width: .9em; height: .9em; border-radius: 50%; vertical-align: -.1em;
  background: radial-gradient(circle at 35% 30%, #fff6c2, #ffc21f 45%, #b77a00); box-shadow: 0 0 8px rgba(255,190,30,.6); }

#menu .tab { position: absolute; left: 28px; top: 84px; bottom: 120px; width: min(600px, 48vw); display: flex; flex-direction: column; }
.card { background: rgba(10,14,20,.82); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.45); backdrop-filter: blur(8px); overflow-y: auto; max-height: 100%; }
.card label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: #9fb0c2; margin-bottom: 14px; position: relative; }
.card input:not([type=range]), .card select { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font-size: 16px; color: var(--txt);
  background: #0d131b; border: 1px solid #243040; border-radius: 8px; outline: none; font-family: inherit; }
.card input:focus, .card select:focus { border-color: var(--accent); }
.card input[type=range] { display: block; width: 100%; margin-top: 8px; accent-color: var(--accent); }
.card h2 { font-size: 20px; font-style: italic; font-weight: 900; letter-spacing: 2px; margin: 4px 0 12px; }
.playcard { width: min(420px, 100%); }
.mapcard { padding: 14px 16px; border-radius: 10px; margin-bottom: 14px; background: linear-gradient(120deg, rgba(255,106,26,.22), rgba(46,230,255,.08)); border: 1px solid rgba(255,106,26,.35); }
.mapcard small { display: block; font-size: 11px; letter-spacing: 2px; color: #ffb38a; font-weight: 700; }
.mapcard b { display: block; font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: 1px; }
.mapcard span { font-size: 13px; color: #c9d3de; }
#invite { font-size: 12px; color: #8a96a6; word-break: break-all; }
#invite b { color: var(--cyan); user-select: text; }
.controls { margin-top: 14px; padding-top: 12px; border-top: 1px solid #1c2633; font-size: 12px; line-height: 1.9; color: #7e8b9a; }
.controls b { color: #d6dee8; background: #18212c; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

#readybox { position: absolute; right: 28px; bottom: 28px; text-align: right; }
#play { min-width: 280px; padding: 20px 40px; font-family: inherit; font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: 6px; color: #120700; cursor: pointer;
  background: linear-gradient(180deg, #ffe066, #ffb000); border: none; border-radius: 12px; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 10px 40px rgba(255,176,0,.5); transition: transform .1s, filter .1s; }
#play:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.1); }
#play.busy { filter: grayscale(.6); pointer-events: none; }
#status { min-height: 18px; margin-bottom: 8px; font-size: 13px; color: #ffb38a; }
#iteminfo { position: absolute; bottom: 34px; left: calc(50% + 10px); display: flex; gap: 10px; pointer-events: none; }
#iteminfo div { padding: 6px 12px; border-left: 3px solid var(--r); background: rgba(8,10,14,.7); border-radius: 0 6px 6px 0; }
#iteminfo small { display: block; font-size: 10px; letter-spacing: 1px; color: var(--r); font-weight: 700; text-transform: uppercase; }
#iteminfo b { font-size: 15px; }
#dailytoast { position: absolute; top: 84px; right: 28px; padding: 12px 18px; border-radius: 10px; background: rgba(40,18,6,.9); border: 1px solid rgba(255,120,30,.6); color: #ffd7b8; animation: lootin 7s ease-out forwards; }

/* locker */
#lockercats { display: flex; gap: 8px; margin-bottom: 8px; }
#lockercats button { flex: 1; padding: 10px; font-family: inherit; font-size: 14px; font-weight: 800; letter-spacing: 2px; color: #9fb0c2; background: #111821; border: 1px solid #243040; border-radius: 8px; cursor: pointer; }
#lockercats button.on { color: #120700; background: var(--accent); border-color: var(--accent); }
#lockercount { display: block; color: #7e8b9a; font-size: 12px; margin-bottom: 10px; }
#lockergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; }
.item { position: relative; padding: 7px; border-radius: 8px; background: #101720; border-bottom: 3px solid var(--r); text-align: center; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .1s, background .1s;
  box-shadow: inset 0 -24px 24px -18px color-mix(in srgb, var(--r) 45%, transparent); }
.item:hover { transform: translateY(-2px); background: #16202c; }
.item.eq { outline: 2px solid var(--cyan); box-shadow: 0 0 16px rgba(46,230,255,.4); }
.item.eq::after { content: "AAN"; position: absolute; top: 4px; left: 4px; font-size: 9px; padding: 1px 5px; border-radius: 3px; background: var(--cyan); color: #000; }
.item.locked { opacity: .4; cursor: default; } .item.locked:hover { transform: none; }
.item em { position: absolute; top: 4px; right: 6px; font-style: normal; color: #ffd34d; font-size: 11px; }
.hint { margin-top: 12px; font-size: 12px; color: #6d7a8a; }
#huesw { position: absolute; right: 0; top: -2px; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }

/* icoontjes */
.sw { height: 70px; border-radius: 6px; margin-bottom: 6px; position: relative; overflow: hidden; }
.sw.lockedsw { display: flex; align-items: center; justify-content: center; font-size: 26px; color: #2a3646; background: #0b1016; }
.sw.gun .gunshape { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 20%, rgba(255,255,255,.35), transparent 50%); }
.sw.anim { background-size: 200% 200% !important; animation: skinshift 3s linear infinite; }
.sw.fig { background: radial-gradient(circle at 50% 95%, color-mix(in srgb, var(--g) 55%, transparent), transparent 65%), #0b1016; }
.sw.fig b { position: absolute; left: 50%; top: 9%; width: 28%; height: 34%; transform: translateX(-50%); border-radius: 6px 6px 4px 4px; background: var(--a);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.3), 0 0 10px var(--g); }
.sw.fig b::after { content: ""; position: absolute; left: 12%; right: 12%; top: 38%; height: 18%; border-radius: 2px; background: var(--v); box-shadow: 0 0 8px var(--v); }
.sw.fig i { position: absolute; left: 50%; top: 46%; width: 56%; height: 60%; transform: translateX(-50%); border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--s) 0 14%, var(--a) 14% 86%, var(--s) 86%); box-shadow: 0 0 12px var(--g); }
.sw.fig.rb b, .sw.fig.rb i { background: linear-gradient(135deg,#ff2d55,#ffb81f,#5dff7a,#2ee6ff,#b44dff); background-size: 200% 200%; animation: skinshift 3s linear infinite; }
@keyframes skinshift { 50% { background-position: 100% 100%; } }

/* winkel */
.shophead { display: flex; align-items: baseline; gap: 14px; }
#shoptimer { color: #ffb38a; font-size: 12px; font-weight: 700; }
#shopgrid .feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
#shopgrid .rest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.shopitem { padding: 8px; border-radius: 10px; background: linear-gradient(170deg, color-mix(in srgb, var(--r) 28%, #0d131b), #0d131b 70%); border: 1px solid color-mix(in srgb, var(--r) 55%, transparent); transition: transform .1s; }
.shopitem:hover { transform: translateY(-3px); box-shadow: 0 8px 30px color-mix(in srgb, var(--r) 35%, transparent); }
.shopitem.big .sw { height: 130px; }
.shopitem .si small { display: block; font-size: 10px; color: var(--r); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.shopitem .si b { display: block; font-size: 14px; margin: 2px 0 6px; }
.shopitem.big .si b { font-size: 18px; }
.shopitem .price { font-size: 12px; color: #5dff9a; font-weight: 800; }
.buy { width: 100%; padding: 7px; font-family: inherit; font-size: 14px; font-weight: 800; color: #1a1000; background: linear-gradient(180deg, #ffe27a, #ffb81f); border: none; border-radius: 6px; cursor: pointer; }
.buy:disabled { opacity: .35; cursor: not-allowed; }
#crates { display: grid; gap: 10px; }
.crate { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 22%, #0d131b), #0d131b 70%); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); }
.crateicon { font-size: 38px; filter: drop-shadow(0 0 12px var(--c)); }
.crate b { font-size: 16px; }
.crate > div:nth-child(2) { flex: 1; }
.odds { display: flex; flex-wrap: wrap; gap: 2px 9px; font-size: 10px; font-weight: 700; margin-top: 3px; }
.crate button, .rvbtns button { padding: 10px 18px; font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: 1px; cursor: pointer; border: none; border-radius: 8px; color: #120a00; background: var(--c, #ffb81f); white-space: nowrap; }
.crate button:disabled, .rvbtns button:disabled { opacity: .35; cursor: not-allowed; }
.fineprint { margin-top: 14px; font-size: 11px; color: #5d6a7a; }

/* vensters */
#crateopen { 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); }
.cratewin { width: min(900px, 96vw); padding: 22px 26px; background: #0a0f16; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.cratewin h2 { font-size: 26px; font-style: italic; font-weight: 900; letter-spacing: 3px; margin-bottom: 14px; }
#crateclose { margin-left: auto; background: #18212c; color: #fff; border: none; width: 36px; height: 36px; border-radius: 8px; font-size: 18px; cursor: pointer; }
#reelwrap { position: relative; height: 150px; overflow: hidden; border-radius: 10px; background: #06090d; border: 1px solid #1c2633; margin-bottom: 14px;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
#reelline { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #ffd34d; box-shadow: 0 0 14px #ffd34d; z-index: 2; }
#reel { display: flex; padding: 12px 0; will-change: transform; }
.rcard { flex: 0 0 124px; margin-right: 8px; height: 126px; padding: 8px; border-radius: 8px; background: #101720; border-bottom: 4px solid var(--r); text-align: center; font-size: 12px; font-weight: 700;
  box-shadow: inset 0 -30px 30px -20px color-mix(in srgb, var(--r) 45%, transparent); }
.rcard .sw { height: 78px; }
#reveal { display: flex; align-items: center; gap: 22px; padding: 18px; border-radius: 12px; border: 2px solid var(--r);
  background: radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--r) 35%, transparent), #0d131b 70%); animation: revealpop .5s cubic-bezier(.2,1.6,.4,1); }
#reveal.hidden { display: none; }
#reveal > .sw { width: 180px; height: 130px; flex: none; box-shadow: 0 0 40px var(--r); margin: 0; }
#reveal small { color: var(--r); font-weight: 800; letter-spacing: 3px; }
#reveal h2 { font-size: 32px; font-weight: 900; font-style: italic; margin: 0; }
#reveal p { color: #c9d3de; margin: 4px 0 12px; }
#reveal.r3, #reveal.r4 { animation: revealpop .5s cubic-bezier(.2,1.6,.4,1), shake .5s .1s; }
.rvbtns { display: flex; gap: 10px; } .rvbtns button { --c: var(--r); }
@keyframes revealpop { from { transform: scale(.6); opacity: 0; } }
@keyframes shake { 25% { translate: -6px 0; } 50% { translate: 6px 0; } 75% { translate: -3px 0; } }

/* HUD: munten en xp */
#lootfeed { position: absolute; right: 20px; top: 40%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
#lootfeed div { font-size: 20px; font-weight: 800; color: #ffd34d; text-shadow: 0 2px 8px #000; animation: lootin 2.6s ease-out forwards; }
#lootfeed div small { font-size: 12px; color: #c9d3de; font-weight: 600; }
#lootfeed div.big { font-size: 26px; animation-duration: 3.5s; }
#lootfeed .lvl { color: var(--cyan); text-shadow: 0 0 20px var(--cyan); }
@keyframes lootin { 0% { opacity: 0; transform: translateX(30px) scale(1.3); } 8% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
#hudxp { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 340px; display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; opacity: .85; }
#hudxp div { flex: 1; height: 5px; }
#hudlvl { color: var(--cyan); } #hudcoins { color: #ffd34d; }

@media (max-width: 900px) {
  #menu .tab { width: auto; right: 28px; }
  .logo { display: none; }
}
