/* The Wormpot screen (ui/wormpot.js) and the little mode pictograms the lobby / setup fields and the in-game badge show. */
#ui.wormpot { justify-content: flex-start; align-items: stretch; padding: calc(var(--st) + 0.6rem) calc(var(--sr) + 0.8rem) calc(var(--sb) + 0.6rem) calc(var(--sl) + 0.8rem); box-sizing: border-box; background: linear-gradient(rgba(30, 14, 50, 0.35), rgba(30, 14, 50, 0.55)); }
.wp-wrap { flex: 1; display: flex; gap: 0.8rem; min-height: 0; }
.wp-machine { flex: 1.5; display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; padding: 0.8rem; border: 0.2rem solid var(--ink); border-radius: 1.4rem; box-shadow: 0 0.4rem 0 rgba(43, 15, 28, 0.35);
  background: linear-gradient(#ff8fb4, #e2457c 55%, #b02a5e); }
.wp-reels { flex: 1; display: flex; gap: 0.6rem; min-height: 0; justify-content: center; }
.wp-reel { flex: 1 1 0; max-width: 13rem; display: flex; flex-direction: column; align-items: stretch; gap: 0.3rem; min-width: 0; }
.wp-label { text-align: center; font-family: "Lilita One", sans-serif; color: #fff; text-shadow: var(--outline); letter-spacing: 0.04em; }
.wp-arrow { border: 0.16rem solid var(--ink); border-radius: 0.8rem; background: linear-gradient(#fff, #eadcc0); box-shadow: 0 0.18rem 0 var(--ink); min-height: 2.75rem; font-size: 1.1rem; color: var(--ink); }
.wp-arrow:disabled { opacity: 0.45; }
.wp-window { position: relative; flex: 1; min-height: 12rem; overflow: hidden; border: 0.2rem solid var(--ink); border-radius: 0.9rem; background: linear-gradient(#cfc4ab, #fff6e3 22%, #fff6e3 78%, #cfc4ab); box-shadow: inset 0 0.3rem 0.5rem rgba(43, 15, 28, 0.35); }
.wp-strip { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 0.15rem; padding: 0 0.3rem; }
.wp-line { position: absolute; left: 0; right: 0; top: 50%; height: 3.5rem; transform: translateY(-50%); border-top: 0.16rem solid var(--pink2); border-bottom: 0.16rem solid var(--pink2); pointer-events: none; background: rgba(255, 111, 159, 0.12); }
.wp-item { flex: none; display: flex; align-items: center; gap: 0.4rem; border: 0; background: transparent; padding: 0.1rem 0.25rem; min-height: 2.75rem; color: var(--ink); text-align: left; opacity: 0.55; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 0.82rem; }
.wp-item span { flex: 1; min-width: 0; line-height: 1.05; }
.wp-item.mid { opacity: 1; min-height: 3.4rem; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1rem; }
.wp-item:disabled { cursor: default; }
.wp-reel.spin .wp-window { box-shadow: inset 0 0.3rem 0.5rem rgba(43, 15, 28, 0.35), 0 0 0.8rem rgba(255, 210, 31, 0.9); }
.wp-reel.spin .wp-strip { filter: blur(1.2px); }
.wp-reel.stopped .wp-strip { filter: none; }
.wp-tools { display: flex; gap: 0.8rem; justify-content: center; }
.wp-info { flex: 1; min-width: 0; margin: 0; max-height: none; overflow: auto; }
.wp-info h3 { font-family: "Lilita One", sans-serif; font-weight: 400; margin: 0; font-size: 1.4rem; }
.wp-info h4 { font-family: "Lilita One", sans-serif; font-weight: 400; margin: 0.8rem 0 0.3rem; opacity: 0.7; }
.wp-info p { margin: 0.5rem 0 0; line-height: 1.35; }
.wp-sel { display: flex; align-items: center; gap: 0.7rem; }
.wp-sel small { font-weight: 600; opacity: 0.7; }
.wp-chips { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; }
.wp-chip { display: inline-flex; line-height: 0; }
.wp-none { font-size: 0.85rem; opacity: 0.65; font-weight: 600; }
.wp-ico { display: block; flex: none; }

/* the field in the hotseat setup and the online lobby */
.wp-field { display: flex; flex-direction: column; gap: 0.35rem; }
.wp-field > span { font-weight: 700; }
.wp-open { display: flex; align-items: center; gap: 0.5rem; width: 100%; box-sizing: border-box; min-height: 3rem; padding: 0.25rem 0.6rem; text-align: left; border: 0.16rem solid var(--ink); border-radius: 0.9rem;
  background: linear-gradient(#fff, #eadcc0); box-shadow: 0 0.2rem 0 var(--ink); color: var(--ink); font-family: "Lilita One", sans-serif; font-size: 1rem; }
.wp-open .wp-chips { flex: none; }
.wp-open .wp-names { flex: 1; min-width: 0; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 0.78rem; opacity: 0.75; line-height: 1.15; }
.wp-open:disabled { cursor: default; }

/* in a match: the active modes in a corner */
#wp-badge { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); top: calc(var(--st) + 0.35rem); display: none; gap: 0.2rem; padding: 0.2rem 0.4rem; border-radius: 999px;
  background: rgba(43, 15, 28, 0.55); pointer-events: auto; max-width: 60%; flex-wrap: wrap; justify-content: center; }
#wp-badge.on { display: inline-flex; }
#wp-badge .wp-chips { gap: 0.15rem; }
#stage.short .wp-window { min-height: 8.5rem; }
#stage.short .wp-item.mid { min-height: 2.9rem; }
#stage.sq .wp-wrap { flex-direction: column; }
#stage.sq .wp-machine { flex: none; }
#stage.sq .wp-info { flex: 1; }
