#entry, #picker {
  --frame: #393632;
  --ivory: #f3efe7;
  --secondary: #c1bab0;
  --light: #e4a181;
  --felt: repeating-linear-gradient(124deg, #f8ebd506 0 1px, transparent 1px 3px);
  color: var(--ivory);
  color-scheme: dark;
}
.command:has(#entry:not([hidden])) {
  width: min(335px, calc(100% - var(--left) - var(--right)));
}
#entry {
  padding: 8px;
  border: 1px solid #625b50;
  border-radius: 12px;
  background: var(--felt), #242322;
  box-shadow: inset 0 1px #ffffff15, 0 4px 16px #100f0ecc;
}
#entry .cabinet-banner {
  position: relative;
  height: 62px;
  margin: -7px -7px 7px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background-color: #22201e;
  background-image: linear-gradient(90deg, #0d0c0b80, transparent 53%), url('/cabinet.webp'), radial-gradient(ellipse at 68% 0, #666058 0, #2b2826 52%, #171615 94%);
  background-position: center, center 46%, center;
  background-size: cover;
  box-shadow: inset 0 -2px 2px #090908b0, 0 1px #75695c8c;
}
#entry .cabinet-brand {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  align-items: center;
  width: 43%;
  height: 82%;
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.075em;
  text-shadow: 0 2px 6px #000;
}
#entry .cabinet-brand > span > span {color: var(--light)}
#entry .cabinet-brand img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 2px #0009);
}
#entry .cabinet-brand.has-wordmark img {display:block}
#entry .cabinet-brand.has-wordmark > span {display:none}
#entry #change {
  width: 100%;
  height: 57px;
  padding: 0 9px 0 0;
  gap: 10px;
  color: var(--ivory);
  background: #302e2b;
  border: 1px solid #534d46;
  border-radius: 7px;
  box-shadow: inset 0 1px #ffffff08;
}
#entry #change:hover {background:#393632;border-color:#968778}
#entry #hero, #picker .choice-bay {
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 48% -15%, var(--bay-light, #aa9b8499) 0%, var(--bay-shade, #514b43ba) 45%, transparent 76%),
    linear-gradient(172deg, #2c2927, #35312d 75%, #23211e 99%);
  box-shadow: inset 2px 2px 7px #141110b3, inset 0 -2px #7f71614d;
}
#entry #hero {
  width: 75px;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid #564c41;
}
#entry #mascot, #picker .choice img {
  display: block;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #110f0d99);
}
#entry #mascot {height:55px}
:is(#hero, .choice-bay):has(img:is([src$="-bot.webp"], [src$="-moon.webp"])) {
  --bay-light: #ded0ba;
  --bay-shade: #9c9180;
}
#entry .team-copy {gap:3px}
#entry .team-copy strong {font-size:19px;letter-spacing:-.035em;line-height:1.04}
#entry .team-copy small {font:500 11px/1.1 var(--mono);color:var(--secondary)}
#entry .change-action {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 6px;
  font: 600 10px/1 var(--mono);
  color: #d3c9be;
}
#entry .change-action i {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
#entry .entry-actions {gap:6px;margin-top:7px}
#entry #nickname {
  height: 38px;
  padding: 0 10px;
  border: 1px solid #514c46;
  border-radius: 6px;
  color: var(--ivory);
  background: #191918;
  box-shadow: inset 0 1px 3px #100f0e70;
}
#entry #nickname::placeholder {color:#b4afa7}
#entry #deploy {
  min-width: 84px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #ecdfca;
  border-radius: 6px;
  background: #e9ddc9;
  color: #211e1a;
  box-shadow: inset 0 1px #fff5e0, 0 1px 2px #14120e80;
}
#entry #deploy:hover:not(:disabled) {background:#fff1da}
#entry #deploy span {color:#645042}
#entry .drop-row {
  min-height: 21px;
  margin: 3px 1px -2px;
  gap: 5px;
  color: var(--secondary);
  font: 500 10px/1.2 var(--mono);
}
#entry #drop-label {overflow-wrap:anywhere}
#entry #suggest, #entry #model-guide {
  padding: 3px 1px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #e5d6c3;
  font: 600 10px/1.2 var(--mono);
}
#entry #model-guide {margin-left:auto}
#entry #suggest:hover, #entry #model-guide:hover {text-decoration:underline}
#entry :is(button,input):focus-visible, #picker button:focus-visible {
  outline: 2px solid #f4ba95;
  outline-offset: 2px;
}
#picker {
  width: min(652px, calc(100% - 24px));
  padding: 15px;
  border: 1px solid #74695d;
  border-radius: 13px;
  background: var(--felt), #252321;
  box-shadow: inset 0 1px 0 #ffffff17, 0 12px 48px #100e0cd9;
}
#picker::backdrop {background:#131110b5}
#picker header {margin:0 0 12px}
#picker header h2 {margin:0;color:var(--ivory);font-size:21px;letter-spacing:-.04em}
#picker header button {
  width: 33px;
  height: 32px;
  color: #eee5d9;
  background: #34312e;
  border: 1px solid #5b544d;
  border-radius: 6px;
}
#picker #choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
#picker .choice {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;
  position: relative;
  padding: 0;
  color: var(--ivory);
  text-align: center;
  background: #2a2825;
  border: 1px solid #504a42;
  border-radius: 6px;
}
#picker .choice-bay {
  width: 100%;
  height: 97px;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
}
#picker .choice-bay::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(#5b5248, #443d35 32%, #231f1c);
}
#picker .choice img {
  position: relative;
  width: 90%;
  height: 92px;
  transition: transform 140ms ease-out;
}
#picker .choice-label {
  display: grid;
  align-content: center;
  min-height: 42px;
  padding: 3px;
  background: var(--felt);
}
#picker .choice strong {font-size:14px;line-height:1.16;letter-spacing:-.02em}
#picker .choice small {margin-top:2px;color:var(--secondary);font:500 10px/1.15 var(--mono)}
#picker .choice[aria-pressed=true] {
  border-color: #dfab83;
  box-shadow: 0 0 0 1px #dfab8366;
  background: #3a322b;
}
#picker .choice[aria-pressed=true]::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #28221d;
  background: #ecc4a0;
  font: 700 11px/1 var(--mono);
}
#picker .choice:hover {border-color:#bba998}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  #picker .choice:is(:hover,:focus-visible) img {transform:translateY(-2px)}
}
@media (max-width:510px) {
  #picker {padding:10px}
  #picker header {margin:0 1px 8px}
  #picker header h2 {font-size:19px}
  #picker #choices {grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  #picker .choice-bay {height:clamp(54px,9dvh,79px)}
  #picker .choice img {height:calc(clamp(54px,9dvh,79px) - 3px)}
  #picker .choice-label {min-height:31px;padding:2px}
  #picker .choice strong {font-size:12px}
  #picker .choice small {margin-top:0;font-size:10px}
}
@media (max-width:430px) {
  #entry:not([hidden]) {display:grid;grid-template-columns:minmax(0,1fr)}
  #entry .cabinet-banner, #entry #change {grid-area:1/1}
  #entry .cabinet-banner {
    height: auto;
    margin: -7px -7px 0;
    background-position: center, calc(50% + 28px) 43%, center;
    background-repeat: no-repeat;
  }
  #entry .cabinet-brand {display:none}
  #entry #change {
    position: relative;
    height: 72px;
    gap: 9px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, #211e1b 0%, #211e1bf2 31%, #211e1bba 46%, transparent 65%);
    box-shadow: none;
  }
  #entry #hero {
    align-self: center;
    width: 63px;
    height: 60px;
    border: 1px solid #625748;
    border-radius: 5px;
  }
  #entry #mascot {height:58px}
  #entry .team-copy {text-shadow:0 1px 3px #0f0d0b}
  #entry .change-action {
    align-self: end;
    margin: 0 0 4px auto;
    padding: 4px 5px;
    background: #1d1b19dd;
    border: 1px solid #655b50;
    border-radius: 4px;
    font-size: 9px;
  }
}
@media (max-height:510px) and (orientation:landscape) {
  #entry .cabinet-banner {height:38px;margin-bottom:5px}
  #entry #change {height:43px}
  #entry #mascot {height:42px}
  #picker .choice-bay {height:57px}
  #picker .choice img {height:53px}
  #picker .choice-label {min-height:32px}
}
