@font-face {
  font-family: EzSans;
  src: url("LiberationSans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: optional;
}

:root {
  --ez-ink: #f4f4f6;
  --ez-muted: #c5c5c8;
}

#ez-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  font-family: EzSans, "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ez-ink);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
#ez-overlay .hit { pointer-events: auto; }
#ez-overlay input {
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
  touch-action: manipulation;
}

/* In-match tools sit in the bottom-right pause slot. One MENU button stays
   on the board. Chat, room, and exit open above it, so they do not cover
   cells until the player asks. */
.ez-hud {
  display: none;
  position: absolute;
  left: auto;
  right: 10px;
  top: auto;
  bottom: 10px;
  width: 64px;
  margin: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  z-index: 32;
}
#ez-overlay.match .ez-hud { display: flex; }
#ez-overlay.match .ez-chip { width: 64px; }
#ez-overlay.match:not(.over) .ez-chip.post { display: none; }
#ez-overlay.match:not(.over):not(.hud-open) #ez-chat-toggle,
#ez-overlay.match:not(.over):not(.hud-open) #ez-roster-toggle,
#ez-overlay.match:not(.over):not(.hud-open) #ez-exit-match { display: none; }
#ez-overlay.match.over #ez-hud-menu { display: none; }

.ez-chip {
  position: relative;
  width: 68px;
  height: 32px;
  border: 0;
  padding: 0 2px 3px;
  background: url("rect.png") center / 100% 100% no-repeat;
  color: #fff;
  font: 700 10px EzSans, "Trebuchet MS", sans-serif;
  letter-spacing: .08em;
  text-shadow: 0 2px 0 rgba(0,0,0,.45);
  cursor: pointer;
}
.ez-chip:active { transform: translateY(1px); filter: brightness(.88); }
.ez-chip.leave { filter: hue-rotate(-18deg) saturate(1.15) brightness(1.05); }
.ez-chip.on { filter: brightness(1.25); }
.ez-chip:disabled { opacity: .4; pointer-events: none; }
.ez-chip.alert {
  box-shadow: 0 0 0 2px #ff5a4a;
  animation: ez-chat-pulse 1s ease-in-out infinite;
}
@keyframes ez-chat-pulse {
  50% { filter: brightness(1.45); }
}
.ez-badge {
  display: none;
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #e23d3d;
  color: #fff;
  font: 700 11px EzSans, "Trebuchet MS", sans-serif;
  line-height: 18px;
  letter-spacing: 0;
  text-shadow: none;
  box-shadow: 0 0 0 2px #231F20;
}
.ez-toast {
  display: none;
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: max-content;
  max-width: 88%;
  padding: 8px 12px 9px;
  border: 2px solid #e8c07a;
  border-radius: 12px;
  background: #2a160f;
  color: #fff;
  font: 700 14px EzSans, "Trebuchet MS", sans-serif;
  letter-spacing: .01em;
  text-align: center;
  z-index: 80;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(0,0,0,.55);
  cursor: pointer;
}
.ez-toast.on { display: block; pointer-events: auto; }
.ez-toast-k {
  display: block;
  margin-bottom: 2px;
  color: #e8c07a;
  font-size: 10px;
  letter-spacing: .16em;
}
.ez-chat-note {
  display: none;
  width: 100%;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 2px solid #e8c07a;
  background: #2a160f;
  color: #fff;
  font: 700 13px EzSans, "Trebuchet MS", sans-serif;
  text-align: center;
  cursor: pointer;
}
.ez-chatbox.ez-fresh { box-shadow: inset 0 0 0 2px #e8c07a; }

.ez-chat-pop {
  display: none;
  position: absolute;
  left: auto;
  right: 10px;
  top: auto;
  bottom: 50px;
  width: 176px;
  margin: 0;
  flex-direction: column;
  background: rgba(12, 12, 14, .82);
  padding: 8px;
  border-radius: 10px;
  z-index: 33;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
#ez-overlay.match.chat-open .ez-chat-pop { display: flex; }
#ez-overlay.match.hud-open .ez-chat-pop,
#ez-overlay.match.hud-open .ez-roster { bottom: 164px; }
#ez-overlay.match.over .ez-chat-pop,
#ez-overlay.match.over .ez-roster { bottom: 240px; }

.ez-roster {
  display: none;
  position: absolute;
  left: auto;
  right: 10px;
  top: auto;
  bottom: 50px;
  width: 200px;
  margin: 0;
  flex-direction: column;
  background: rgba(12, 12, 14, .9);
  padding: 8px;
  border-radius: 10px;
  z-index: 33;
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
#ez-overlay.match.roster-open .ez-roster { display: flex; }
.ez-roster h2 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 700;
  text-align: center;
}
.ez-roster .ez-players { flex: none; min-height: 0; max-height: 180px; margin: 0; }

.ez-confirm {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(260px, 80%);
  margin: 0;
  transform: translate(-50%, -50%);
  background: rgba(12, 12, 14, .92);
  padding: 14px 12px 10px;
  border-radius: 12px;
  z-index: 40;
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
}
#ez-overlay.confirm .ez-confirm { display: block; }
.ez-confirm-text {
  text-align: center;
  font-size: 14px;
  letter-spacing: .08em;
  margin: 0 0 10px;
  text-shadow: 0 1px 0 #000;
}
.ez-confirm .ez-row { margin: 0; }
.ez-confirm .ez-btn { margin: 0; height: 40px; font-size: 13px; }
.ez-chat-pop .ez-chatbox {
  max-height: 120px;
  min-height: 72px;
  margin-bottom: 6px;
}

.ez-modal {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 34;
}
#ez-overlay.lobby-open .ez-modal { display: block; }

.ez-dim {
  position: absolute;
  inset: 0;
  background: #231F20;
}

/* Online fills the game frame. It is a screen of the game, not a card on top. */
.ez-sheet {
  position: absolute;
  left: 0;
  top: 0;
  transform: none;
  width: 100%;
  height: 100%;
  max-height: none;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 62, 28, .28), rgba(35, 31, 32, 0) 46%),
    #231F20;
  padding: 4px 14px 10px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: none;
}
body.ez-loading #ez-overlay.lobby-open .ez-sheet { padding-bottom: 36px; }

.ez-boot {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  z-index: 45;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
body.ez-loading #ez-overlay.lobby-open .ez-boot,
body.ez-loading #ez-overlay.match .ez-boot { display: flex; }
.ez-boot-track {
  flex: 1;
  height: 10px;
  border: 2px solid #e8c07a;
  border-radius: 8px;
  background: #140e0c;
  overflow: hidden;
  box-sizing: content-box;
  box-shadow: 0 0 0 1px #5c2e14;
}
#ez-boot-fill {
  width: 0%;
  height: 10px;
  background: linear-gradient(180deg, #ffe9b0 0%, #f0a24a 42%, #d85a18 100%);
}
#ez-boot-label {
  flex: 0 0 auto;
  color: #ffe7c2;
  font: 700 11px EzSans, "Trebuchet MS", sans-serif;
  letter-spacing: .04em;
  text-shadow: 0 1px 0 #000;
}

.ez-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 2px;
  gap: 6px;
}
.ez-head h1 {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 18px;
  letter-spacing: .18em;
  text-shadow: 0 2px 0 rgba(0,0,0,.45);
}
.ez-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
  flex: 0 0 44px;
}
.ez-icon:active { transform: translateY(2px); filter: brightness(.88); }
.ez-icon.cross { background-image: url("cross.png"); filter: brightness(1.12); }
.ez-icon.home { background-image: url("home.png"); }
.ez-icon.levels { background-image: url("levels.png"); }
.ez-icon.player { background-image: url("player.png"); }
.ez-icon.play { background-image: url("play.png"); }
.ez-icon.left { background-image: url("arrow-left.png"); width: 64px; height: 44px; filter: brightness(1.15); }
.ez-icon.right { background-image: url("arrow-right.png"); width: 64px; height: 44px; filter: brightness(1.15); }
.ez-spacer { width: 44px; flex: 0 0 44px; }

.ez-head-leave {
  flex: 0 0 72px;
  width: 72px;
  height: 36px;
  margin: 0;
  padding: 0 4px 3px;
  font-size: 11px;
  letter-spacing: .08em;
  display: none;
}
#ez-overlay.room .ez-head-leave { display: block; }
#ez-overlay.room .ez-spacer { display: none; }

.ez-status {
  text-align: center;
  font-size: 12px;
  color: #ffe7c2;
  min-height: 16px;
  margin: 0 0 8px;
  text-shadow: 0 1px 0 #000;
}
.ez-status.err { color: #ff8b7a; }
.ez-status.ok { color: #b6f5c0; }

.ez-cap {
  text-align: center;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ez-muted);
  margin: 0 0 4px;
}
.ez-or {
  text-align: center;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ez-muted);
  margin: 2px 0 8px;
}
.ez-steps {
  margin: 4px 0 0;
  padding: 0 8px 0 28px;
  color: #ffe7c2;
  font-size: 12px;
  line-height: 1.45;
}
.ez-steps li { margin: 0 0 2px; }
.ez-code-cap {
  text-align: center;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ez-muted);
  margin: -4px 0 8px;
}
.ez-code:empty + .ez-code-cap { display: none; }

.ez-field {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: url("rect.png") center / 100% 100% no-repeat;
  color: #fff;
  padding: 0 16px 4px;
  font: 16px EzSans, "Trebuchet MS", sans-serif;
  margin: 0 0 8px;
  box-sizing: border-box;
  outline: none;
  text-align: center;
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto;
}
.ez-field::placeholder { color: rgba(255,255,255,.4); }

.ez-btn {
  width: 100%;
  height: 44px;
  min-height: 44px;
  flex-shrink: 0;
  border: 0;
  margin: 0 0 6px;
  padding: 0 8px 4px;
  background: url("rect.png") center / 100% 100% no-repeat;
  color: #fff;
  font: 700 14px EzSans, "Trebuchet MS", sans-serif;
  letter-spacing: .08em;
  text-shadow: 0 2px 0 rgba(0,0,0,.45);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ez-btn:active { transform: translateY(2px); filter: brightness(.88); }
.ez-btn:focus { outline: none; }
.ez-btn:disabled { opacity: .38; pointer-events: none; }
.ez-btn.ready-on {
  filter: hue-rotate(85deg) saturate(1.7) brightness(1.18);
  box-shadow: 0 0 0 2px #8dffb0;
}
.ez-btn.ez-go { filter: saturate(1.2) brightness(1.14); letter-spacing: .14em; }
.ez-btn.ez-go:disabled { filter: none; }
#ez-start { letter-spacing: .1em; font-size: 15px; }
#ez-view-room > #ez-leave { display: none; }
.ez-head .ez-head-leave {
  width: 72px;
  flex: 0 0 72px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  font-size: 11px;
}
.ez-btn.leave {
  letter-spacing: .1em;
  filter: hue-rotate(-20deg) saturate(1.2) brightness(1.05);
}

.ez-row { display: flex; gap: 8px; flex-shrink: 0; }
.ez-row .ez-btn { flex: 1 1 0; width: auto; min-width: 0; margin: 0 0 6px; }
.ez-row .ez-icon { margin: 0; }

.ez-code {
  flex-shrink: 0;
  text-align: center;
  font-size: 28px;
  letter-spacing: .22em;
  font-weight: 700;
  margin: 0 0 2px;
  text-shadow: 0 2px 0 rgba(0,0,0,.5);
  cursor: pointer;
}
.ez-code:empty { display: none; }

.ez-players {
  overflow: auto;
  margin: 0 0 6px;
  padding: 2px 2px 2px 0;
}
#ez-view-room > .ez-players {
  flex: 1 1 0;
  min-height: 0;
}
.ez-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 14px;
  text-shadow: 0 1px 0 #000;
}
.ez-x {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #8d3030;
  color: #fff;
  font: 700 16px/28px EzSans, "Trebuchet MS", sans-serif;
  cursor: pointer;
}
.ez-x:active { filter: brightness(1.2); }
.ez-player .dot {
  width: 14px; height: 14px; border-radius: 50%;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.28), 0 1px 0 #000;
  flex: 0 0 14px;
}
.ez-player .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ez-player .tags { display: flex; gap: 4px; flex: 0 0 auto; }
.ez-player .pill {
  font-size: 9px;
  letter-spacing: .06em;
  line-height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #d7d7dc;
}
.ez-player .pill.host { color: #ffe7c2; }
.ez-player .pill.ready { color: #b6f5c0; background: rgba(80, 160, 90, .28); }

.ez-teams {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 0 8px;
  flex-shrink: 0;
}
.ez-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 52px;
}
.ez-swatch span {
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--ez-muted);
}
.ez-team {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  box-shadow:
    inset 0 5px 6px rgba(255,255,255,.28),
    inset 0 -5px 6px rgba(0,0,0,.28),
    0 3px 0 rgba(0,0,0,.45);
}
.ez-team.on { border-color: #fff; transform: scale(1.08); }
.ez-team.taken { opacity: .35; }
.ez-team[data-team="0"] { background: #4a90c8; }
.ez-team[data-team="1"] { background: #c04a45; }
.ez-team[data-team="2"] { background: #d4b43c; }
.ez-team[data-team="3"] { background: #5da05a; }

.ez-lvl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: 52px;
  min-height: 52px;
  padding-bottom: 6px;
}
.ez-lvl-btn span { letter-spacing: .08em; line-height: 1.1; }
.ez-lvl-sub {
  font-size: 11px !important;
  font-weight: 400;
  letter-spacing: .03em !important;
  color: #ffe7c2;
  opacity: .9;
}

.ez-view { display: none; flex-direction: column; flex: 1; min-height: 0; }
.ez-view.on { display: flex; }
#ez-view-room { overflow: hidden; }
.ez-dock { flex: 0 0 auto; display: flex; flex-direction: column; }
#ez-view-room .ez-code-cap { flex-shrink: 0; }

.ez-jump {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0 0 6px;
}
.ez-jump .ez-field {
  margin: 0;
  height: 40px;
  flex: 1;
}
.ez-jump .ez-btn {
  width: 72px;
  height: 40px;
  margin: 0;
  flex: 0 0 72px;
}

/* Level browse: the Unity scene fills the frame. BACK stays. The number opens a small card. */
.ez-stage { display: none; position: absolute; inset: 0; z-index: 36; pointer-events: none; }
#ez-overlay.stage .ez-stage { display: block; }
#ez-overlay.stage .ez-modal { display: none !important; }
.ez-stage-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #231F20;
  pointer-events: none;
}
.ez-stage-veil[hidden] { display: none !important; }
.ez-stage-back, .ez-stage-pick {
  position: absolute;
  top: 10px;
  z-index: 2;
  width: 72px;
  min-width: 72px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 8px 2px;
  font-size: 12px;
}
.ez-stage-back { left: 10px; }
.ez-stage-pick { right: 10px; width: 64px; min-width: 64px; }
.ez-stage-pop {
  position: absolute;
  top: 52px;
  right: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
  margin: 0;
  padding: 6px;
  border-radius: 12px;
  background: rgba(18, 12, 10, .94);
  border: 1px solid rgba(232, 192, 122, .55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}
.ez-stage-pop[hidden] { display: none !important; }
#ez-stage-jump {
  width: 88px;
  flex: 0 0 88px;
  height: 36px;
  margin: 0;
  text-align: center;
  padding: 6px 8px;
}
#ez-stage-go {
  width: 56px;
  flex: 0 0 56px;
  min-width: 56px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 4px 2px;
  font-size: 13px;
}

.ez-preview {
  width: 100%;
  height: 150px;
  display: block;
  margin: 0 0 8px;
  background: #1a1614;
  border: 2px solid rgba(232, 192, 122, .55);
  box-sizing: border-box;
}
.ez-preview.tall { height: 210px; }
.ez-cell.picked { box-shadow: inset 0 0 0 2px #e8c07a; }

.ez-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 4px 0 8px;
}
.ez-cell {
  height: 52px;
  border: 0;
  padding: 0 0 6px;
  background: url("square.png") center / 100% 100% no-repeat;
  color: #fff;
  font: 700 15px EzSans, "Trebuchet MS", sans-serif;
  text-shadow: 0 2px 0 rgba(0,0,0,.45);
  cursor: pointer;
  filter: brightness(1.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}
.ez-cell .n { font-size: 15px; }
.ez-cell .p { font-size: 9px; letter-spacing: .08em; opacity: .8; font-weight: 700; }
.ez-cell.on { filter: brightness(1.55); }
.ez-cell:active { transform: translateY(2px); }

.ez-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ez-pager .pg {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ez-muted);
}

.ez-chatbox {
  flex: 1 1 auto;
  min-height: 56px;
  max-height: 96px;
  overflow: auto;
  background: rgba(0,0,0,.28);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 6px;
  box-sizing: border-box;
}
#ez-view-room .ez-chatbox {
  flex: 0 0 56px;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
}
.ez-chatbox .sys { color: #ffe7c2; }
.ez-chat-in { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.ez-chat-in .ez-field { margin: 0; flex: 1; height: 40px; min-height: 40px; text-align: left; }
.ez-chat-in .ez-icon { width: 40px; height: 40px; flex: 0 0 40px; }

.ez-hint {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--ez-muted);
  text-align: center;
  margin: 0 0 4px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lobby screen. Later rules win. Buttons stay full size; only the player list scrolls. */
.ez-head { position: relative; min-height: 46px; flex-shrink: 0; }
.ez-head h1 {
  position: absolute;
  left: 76px;
  right: 52px;
  top: 0;
  height: 46px;
  margin: 0;
  line-height: 46px;
  text-align: center;
  pointer-events: none;
  font-size: 17px;
  letter-spacing: .22em;
}
.ez-head .ez-head-leave {
  width: 72px;
  flex: 0 0 72px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  font-size: 11px;
}
.ez-sheet {
  padding: 6px 14px 8px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(232, 140, 48, .22), rgba(35, 31, 32, 0) 42%),
    #231F20;
}
.ez-status {
  flex-shrink: 0;
  min-height: 18px;
  max-height: 36px;
  margin: 0 0 6px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .28);
  line-height: 1.25;
  overflow: hidden;
}
.ez-status.ok { color: #d9ffe4; }
.ez-status.err { color: #ffb0a4; background: rgba(120, 28, 22, .45); }
.ez-chat-note { flex-shrink: 0; border-radius: 10px; }

.ez-logo {
  width: 168px;
  height: 148px;
  align-self: center;
  flex: 0 0 148px;
  margin: 0 auto 2px;
  background: url("logo.png") center / contain no-repeat;
}
.ez-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 8px;
}
.ez-or::before, .ez-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(232, 192, 122, .4);
}
.ez-steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  counter-reset: ezstep;
}
.ez-steps li {
  counter-increment: ezstep;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  color: #ffe7c2;
  font-size: 13px;
  line-height: 1.3;
}
.ez-steps li::before {
  content: counter(ezstep);
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(232, 192, 122, .14);
  box-shadow: inset 0 0 0 1px rgba(232, 192, 122, .6);
  color: #ffe7c2;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
#ez-view-home { overflow: auto; }
#ez-create { height: 50px; min-height: 50px; font-size: 15px; }

.ez-code-plate {
  flex: 0 0 auto;
  margin: 0 0 6px;
  padding: 2px 8px 5px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .32);
  box-shadow: inset 0 0 0 1px rgba(232, 192, 122, .4);
  cursor: pointer;
}
.ez-code-plate:active { filter: brightness(1.08); }
.ez-code-plate:has(.ez-code:empty) { display: none; }
.ez-code-plate .ez-code {
  margin: 0;
  padding-left: .24em;
  font-size: 26px;
  letter-spacing: .24em;
  line-height: 1.15;
}
.ez-code-plate .ez-code-cap { margin: 0; letter-spacing: .05em; }

#ez-view-room { overflow: hidden; }
#ez-view-room > .ez-hint {
  text-align: left;
  margin: 0 2px 4px;
  color: #e8c07a;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
#ez-view-room > .ez-players {
  flex: 1 1 0;
  min-height: 0;
  margin: 0 0 6px;
  padding-right: 2px;
}
#ez-view-room > .ez-players::-webkit-scrollbar,
.ez-chatbox::-webkit-scrollbar { width: 8px; }
#ez-view-room > .ez-players::-webkit-scrollbar-thumb,
.ez-chatbox::-webkit-scrollbar-thumb {
  background: rgba(232, 192, 122, .4);
  border-radius: 8px;
}
#ez-players.ez-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ez-muted);
  font-size: 13px;
  letter-spacing: .03em;
}
.ez-player {
  min-height: 44px;
  margin: 0 0 4px;
  padding: 0 6px 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.ez-player .nm { font-weight: 700; }
.ez-player .pill {
  font-size: 10px;
  line-height: 18px;
  padding: 0 6px;
  border-radius: 9px;
}
.ez-player .pill.host { color: #ffe7c2; background: rgba(232, 192, 122, .18); }
.ez-player .pill.ai { color: #d7e6ff; background: rgba(90, 140, 210, .28); }
.ez-player .pill.wait { color: #c5c5c8; }
.ez-player .pill.ready { color: #e7ffee; background: rgba(64, 150, 84, .45); }
.ez-x {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 8px;
  line-height: 30px;
  background: #8d3a36;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.ez-dock {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 6px;
  border-top: 1px solid rgba(232, 192, 122, .28);
}
.ez-teams { gap: 18px; margin: 0 0 6px; }
.ez-team { width: 38px; height: 38px; }
.ez-swatch span { font-size: 11px; }
.ez-btn {
  height: 44px;
  min-height: 44px;
  flex-shrink: 0;
}
.ez-lvl-btn { height: 50px; min-height: 50px; }
.ez-btn.ez-go {
  filter: sepia(.4) saturate(1.7) brightness(1.12);
}
.ez-btn.ez-go:disabled { filter: none; }
.ez-btn.ez-go:active { filter: sepia(.35) saturate(1.4) brightness(.92); }
.ez-btn.ready-on {
  filter: sepia(.25) saturate(1.8) hue-rotate(70deg) brightness(1.12);
  box-shadow: inset 0 0 0 2px #b6ffc8;
}
#ez-start {
  height: 48px;
  min-height: 48px;
  font-size: 16px;
  letter-spacing: .16em;
}
#ez-view-room > #ez-leave { display: none; }
.ez-row { flex-shrink: 0; }
.ez-row .ez-btn { flex: 1 1 0; width: auto; min-width: 0; margin: 0 0 6px; }

#ez-view-room .ez-chatbox {
  flex: 0 0 68px;
  height: 68px;
  min-height: 68px;
  max-height: 68px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.ez-chat-in { flex-shrink: 0; }
.ez-send {
  width: 72px;
  flex: 0 0 72px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 4px 3px;
  font-size: 12px;
  letter-spacing: .08em;
}
.ez-roster .ez-players { flex: none; min-height: 0; max-height: 180px; }

.ez-stage-back, .ez-stage-pick, #ez-stage-go {
  height: 36px;
  min-height: 36px;
  margin: 0;
}
.ez-stage-back { width: 72px; min-width: 72px; }
.ez-stage-pick { width: 64px; min-width: 64px; }
#ez-stage-go { width: 56px; min-width: 56px; flex: 0 0 56px; }
.ez-chat-pop, .ez-roster, .ez-confirm {
  background: rgba(18, 12, 10, .94);
  border: 1px solid rgba(232, 192, 122, .5);
  border-radius: 12px;
}
.ez-chip { font-size: 11px; letter-spacing: .06em; }
.ez-hud-menu { letter-spacing: .02em; font-size: 10px; }
#ez-hud-menu-label { pointer-events: none; }
#ez-overlay.match .ez-chat-pop .ez-chatbox {
  max-height: 84px;
  min-height: 52px;
}

.ez-sheet, .ez-players, .ez-chatbox, #ez-overlay { overflow-anchor: none; }
.ez-chat-note {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 52px;
  z-index: 6;
  width: auto;
  margin: 0;
}
