.emj { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-style: normal; font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none; -webkit-text-stroke: 0; text-shadow: none; }

.emj-btn { position: relative; cursor: pointer; border: 0; padding: 0; display: grid; place-items: center; color: #fff; }
.emj-btn .emj { font-size: 1.55em; transition: scale 0.1s; }
.emj-btn:active .emj { scale: 0.9; }
#hud .hud-tr .emj-btn { font-size: max(calc(18 * var(--u)), calc(17px * var(--ui-kf))); }
#hud .hud-tr .emj-btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 calc(-3px * var(--ui-k)) 0 rgba(255, 226, 52, 0.75); pointer-events: none; }

.lbottom .lemj { width: max(calc(54px * var(--ui-k)), calc(56 * var(--u))); min-height: max(calc(54px * var(--ui-k)), calc(56 * var(--u))); border-radius: calc(8px * var(--ui-k)); background: rgba(0, 0, 0, 0.62); box-shadow: inset 0 0 0 calc(2px * var(--ui-k)) rgba(255, 255, 255, 0.18), inset 0 calc(-4px * var(--ui-k)) 0 rgba(255, 226, 52, 0.75); font-size: max(calc(19 * var(--u)), calc(18px * var(--ui-kf))); }

.emj-dock { display: none; position: absolute; right: calc(var(--sa-r) + var(--edge) + max(calc(200 * var(--u)), calc(160px * var(--ui-k))) + calc(10px * var(--ui-k))); bottom: calc(var(--sa-b) + var(--edge)); z-index: 5; }
body.mode-podium .emj-dock { display: block; }
body.mode-podium.page-open .emj-dock { display: none; }
.emj-dock .emj-btn { width: max(calc(54px * var(--ui-k)), calc(56 * var(--u))); height: max(calc(54px * var(--ui-k)), calc(56 * var(--u))); border-radius: calc(8px * var(--ui-k)); background: rgba(0, 0, 0, 0.82); box-shadow: inset 0 0 0 calc(2px * var(--ui-k)) rgba(255, 255, 255, 0.2), inset 0 calc(-4px * var(--ui-k)) 0 rgba(255, 226, 52, 0.75); font-size: max(calc(19 * var(--u)), calc(18px * var(--ui-kf))); }

#emoji-pops { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
body.page-open #emoji-pops, body.mode-replay #emoji-pops { visibility: hidden; }
.emj-pop { position: absolute; left: 0; top: 0; will-change: transform; }
.emj-pop .emj { display: block; font-size: clamp(calc(40px * var(--ui-kf)), calc(48 * var(--u)), calc(72px * var(--ui-kf))); transform-origin: 50% 100%; filter: drop-shadow(0 calc(4px * var(--ui-k)) calc(6px * var(--ui-k)) rgba(0, 0, 0, 0.35)); animation: emjPop var(--emj-t, 2.8s) ease-out forwards; }
@keyframes emjPop {
  0% { scale: 0.2; opacity: 0; translate: 0 calc(12px * var(--ui-k)); rotate: -12deg; }
  10% { scale: 1.3; opacity: 1; translate: 0 calc(-4px * var(--ui-k)); rotate: 6deg; }
  18% { scale: 0.92; rotate: -3deg; translate: 0 0; }
  26% { scale: 1.04; rotate: 0deg; }
  34% { scale: 1; }
  82% { opacity: 1; translate: 0 calc(-6px * var(--ui-k)); scale: 1; }
  100% { opacity: 0; translate: 0 calc(-22px * var(--ui-k)); scale: 0.88; }
}

.emoji-wheel { position: absolute; inset: 0; z-index: 21; background: rgba(8, 18, 52, 0.32); touch-action: none; }
.emoji-wheel[hidden] { display: none; }
.emj-ring { position: absolute; width: 0; height: 0; }
.emj-ring::before { content: ''; position: absolute; left: 0; top: 0; width: calc(2 * var(--emj-r) + var(--emj-s) + calc(20px * var(--ui-k))); height: calc(2 * var(--emj-r) + var(--emj-s) + calc(20px * var(--ui-k))); transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(10, 79, 196, 0.55) 0%, rgba(8, 18, 52, 0.82) 70%); box-shadow: inset 0 0 0 calc(2px * var(--ui-k)) var(--f-line), 0 calc(12px * var(--ui-k)) calc(30px * var(--ui-k)) rgba(0, 0, 0, 0.4); animation: emjRing 0.16s ease-out; }
@keyframes emjRing { from { opacity: 0; scale: 0.7; } }
.emj-slot { position: absolute; left: 0; top: 0; width: var(--emj-s); height: var(--emj-s); border: 0; padding: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: linear-gradient(160deg, #1a6ce0, #0b2a78); box-shadow: inset 0 0 0 calc(2px * var(--ui-k)) rgba(255, 255, 255, 0.28), 0 calc(4px * var(--ui-k)) calc(10px * var(--ui-k)) rgba(0, 0, 0, 0.35); transition: scale 0.08s; }
.emj-ring .emj-slot { animation: emjIn 0.2s cubic-bezier(0.2, 1.4, 0.4, 1) backwards; }
.emj-slot .emj { font-size: calc(var(--emj-s) * 0.56); }
.emj-slot:not(.empty):hover, .emj-slot:not(.empty):active { box-shadow: inset 0 0 0 calc(3px * var(--ui-k)) var(--f-yellow), 0 calc(4px * var(--ui-k)) calc(12px * var(--ui-k)) rgba(0, 0, 0, 0.4); scale: 1.1; }
.emj-slot.empty { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 calc(2px * var(--ui-k)) rgba(255, 255, 255, 0.2); cursor: default; }
@keyframes emjIn { from { opacity: 0; scale: 0.3; } }
.emj-hub { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: calc(var(--emj-s) * 0.8); height: calc(var(--emj-s) * 0.8); border: 0; border-radius: 50%; cursor: pointer; background: rgba(8, 18, 52, 0.9); box-shadow: inset 0 0 0 calc(2px * var(--ui-k)) var(--f-line); color: #fff; font: 700 calc(var(--emj-s) * 0.36) / 1 var(--f-font); display: grid; place-items: center; padding: 0; }
.emj-hub small { font-size: calc(12px * var(--ui-kf)); text-transform: uppercase; line-height: 1.15; padding: 0 calc(4px * var(--ui-k)); }
.emj-hub:has(small) { width: calc(var(--emj-r) * 1.25); height: calc(var(--emj-r) * 1.25); }

.cr-main:has(> .emj-ed) { overflow: hidden; padding-bottom: 0; }
.cr-prof:has(.emj-ed) > .cr-right { min-width: 0; }
.emj-ed { flex: 1; min-height: 0; display: flex; gap: calc(16px * var(--ui-k)); align-items: stretch; padding-bottom: max(calc(10 * var(--u)), calc(8px * var(--ui-k))); }
.emj-left { flex: none; display: flex; flex-direction: column; align-items: center; gap: calc(10px * var(--ui-k)); }
.emj-edring { flex: none; position: relative; width: calc(200px * var(--ui-k)); height: calc(200px * var(--ui-k)); border-radius: 50%; background: radial-gradient(circle, rgba(10, 79, 196, 0.35), rgba(8, 18, 52, 0.6) 70%); box-shadow: inset 0 0 0 calc(2px * var(--ui-k)) var(--f-line); --emj-s: calc(48px * var(--ui-k)); --emj-er: calc(74px * var(--ui-k)); }
.emj-edring .emj-slot { left: 50%; top: 50%; }
.emj-edring .emj-slot.empty { cursor: pointer; }
.emj-edring .emj-slot.empty .emj { font: 700 calc(22px * var(--ui-kf)) / 1 var(--f-font); color: var(--f-dim); }
.emj-edring .emj-slot.sel { box-shadow: inset 0 0 0 calc(3px * var(--ui-k)) var(--f-yellow), 0 0 0 calc(3px * var(--ui-k)) rgba(255, 226, 52, 0.35), 0 calc(4px * var(--ui-k)) calc(10px * var(--ui-k)) rgba(0, 0, 0, 0.35); }
.emj-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(78px * var(--ui-k)); text-align: center; font: 600 calc(11px * var(--ui-kf)) / 1.2 var(--f-font); text-transform: uppercase; color: var(--f-dim); pointer-events: none; }
.emj-tools { display: flex; gap: calc(8px * var(--ui-k)); }
.emj-tools .f-btn { min-height: calc(44px * var(--ui-k)); padding: 0 calc(14px * var(--ui-k)); font-size: calc(16px * var(--ui-kf)); }
.emj-pick { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: calc(6px * var(--ui-k)); border-radius: calc(10px * var(--ui-k)); background: rgba(8, 18, 52, 0.28); box-shadow: inset 0 0 0 calc(2px * var(--ui-k)) var(--f-line); padding: calc(6px * var(--ui-k)); }
.emj-cats { flex: none; display: flex; gap: calc(4px * var(--ui-k)); padding-right: calc(20px * var(--ui-k)); scroll-padding-inline: calc(20px * var(--ui-k)); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - calc(28px * var(--ui-k))), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - calc(28px * var(--ui-k))), transparent); overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
.emj-cats::-webkit-scrollbar { display: none; }
.emj-cat { flex: none; width: calc(48px * var(--ui-k)); height: calc(48px * var(--ui-k)); border: 0; padding: 0; border-radius: calc(8px * var(--ui-k)); cursor: pointer; display: grid; place-items: center; background: transparent; }
.emj-cat .emj { font-size: calc(26px * var(--ui-kf)); opacity: 0.8; }
.emj-cat.sel { background: var(--f-nav-sel); }
.emj-cat.sel .emj { opacity: 1; }
.emj-catname { flex: none; padding: 0 calc(4px * var(--ui-k)); font: 700 max(calc(14 * var(--u)), calc(13px * var(--ui-kf))) / 1.2 var(--f-font); text-transform: uppercase; letter-spacing: 0.04em; color: var(--f-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emj-grid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; touch-action: pan-y; display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(52px * var(--ui-k)), 1fr)); grid-auto-rows: calc(52px * var(--ui-k)); align-content: start; gap: calc(6px * var(--ui-k)); padding: calc(2px * var(--ui-k)) calc(2px * var(--ui-k)) calc(6px * var(--ui-k)); contain: content; }
.emj-grid::-webkit-scrollbar { display: none; }
.emj-cell { border: 0; padding: 0; border-radius: calc(10px * var(--ui-k)); cursor: pointer; display: grid; place-items: center; background: var(--f-panel2); box-shadow: inset 0 0 0 1px var(--f-line); font-size: calc(30px * var(--ui-kf)); color: #fff; }
.emj-cell:active { scale: 0.92; }
.emj-cell.used { background: rgba(47, 140, 255, 0.28); box-shadow: inset 0 0 0 calc(2px * var(--ui-k)) rgba(79, 208, 255, 0.55); }
.emj-cell.sel { box-shadow: inset 0 0 0 calc(3px * var(--ui-k)) var(--f-yellow); }
@media (max-height: 460px) {
  .cr-prof:has(.emj-ed) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tabs close" "main main"; }
  .cr-prof:has(.emj-ed) > :not(.cr-right) { display: none; }
  .cr-main > .emj-head { display: none; }
  .emj-ed { gap: calc(10px * var(--ui-k)); padding-bottom: calc(6px * var(--ui-k)); }
  .emj-left { flex-direction: row; align-items: center; gap: calc(8px * var(--ui-k)); }
  .emj-tools { flex-direction: column; }
  .emj-tools .f-btn { min-height: calc(48px * var(--ui-k)); padding: 0 calc(10px * var(--ui-k)); font-size: calc(14px * var(--ui-kf)); }
  .emj-edring { --emj-d: clamp(calc(128px * var(--ui-k)), calc(100vh - calc(212px * var(--ui-k))), calc(168px * var(--ui-k))); width: var(--emj-d); height: var(--emj-d); --emj-s: calc(var(--emj-d) * 0.25); --emj-er: calc(var(--emj-d) * 0.363); }
  .emj-hint { width: calc(64px * var(--ui-k)); font-size: calc(10px * var(--ui-kf)); }
  .emj-pick { padding: calc(6px * var(--ui-k)); gap: calc(4px * var(--ui-k)); }
  .emj-catname { display: none; }
  .emj-cat .emj { font-size: calc(24px * var(--ui-kf)); }
  .emj-grid { grid-template-columns: repeat(auto-fill, minmax(calc(46px * var(--ui-k)), 1fr)); grid-auto-rows: calc(46px * var(--ui-k)); gap: calc(4px * var(--ui-k)); }
  .emj-cell { font-size: calc(26px * var(--ui-kf)); }
}
@media (max-width: 960px) {
  .lbottom .lemj { width: max(calc(48px * var(--ui-k)), calc(48 * var(--u))); min-height: max(calc(48px * var(--ui-k)), calc(48 * var(--u))); align-self: center; }
}
