/* Stable launcher grid: availability changes the card state, never its position. */
#start#start {
  --home-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --home-title: "KK Head", Bangers, Impact, sans-serif;
}
#start#start .cx-content {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 480px;
  height: 100dvh !important;
  margin-inline: auto;
  padding: max(24px, calc(env(safe-area-inset-top, 0px) + 14px)) 20px max(24px, calc(env(safe-area-inset-bottom, 0px) + 14px));
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  overflow: hidden !important;
  font-family: var(--home-body);
}
#start#start .cx-content .cx-mast {
  flex: none;
  margin: 10px 0 4px !important;
}
#start#start .home-section-heading {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}
#start#start .cx-content .cx-sect {
  display: block;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ink);
  font: 700 16px/1.25 var(--home-body) !important;
  letter-spacing: -.02em;
  text-transform: none !important;
}
#start#start .cx-sect::after { display: none !important; }
#start#start .cx-content .cx-sound {
  position: static !important;
  inset: auto !important;
  display: grid !important;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px !important;
  border: 1.5px solid var(--ink) !important;
  border-radius: 50%;
  background: transparent !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  transform: none;
  touch-action: manipulation;
}
#start#start .cx-sound .home-sound-icon { width: 22px; height: 22px; }
#start#start .cx-sound:active { transform: scale(.95); }
#start#start.home-pending .home-section-heading { opacity: 0; }
#start#start.home-pending :is(.cx-sect, .cx-sound) { opacity: 1; }
#start#start .cx-content .cx-doors {
  flex: 1 1 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  min-height: 0 !important;
  max-height: 660px;
  height: auto !important;
  margin: 0 !important;
  padding: 0 2px 4px 0;
}
#start#start .cx-content .cx-door {
  --home-art-size: clamp(88px, 27vw, 118px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--home-art-size);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 8px 16px;
  min-height: 0 !important;
  height: 100%;
  padding: clamp(16px, 3vh, 24px) 16px !important;
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: 2px 3px 0 #0a0a0a;
  background: #d52b30;
  color: #fff8e0;
  overflow: hidden;
  text-decoration: none;
  filter: none !important;
  animation: none !important;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}
#start#start .cx-content .cx-door.d2 { background: #2979ad; }
#start#start .cx-content .cx-door.d3 {
  background-color: #087b38;
  background-image: radial-gradient(#00381735 .65px, transparent .85px);
  background-size: 6px 6px;
}
#start#start .cx-content .cx-door[aria-disabled="true"] {
  background: #e8e3d9 !important;
  color: #0a0a0a !important;
  cursor: default;
  transform: none !important;
}
#start#start .cx-door > .kicker {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  max-width: 100%;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: inherit !important;
  font: 650 12px/1.2 var(--home-body) !important;
  letter-spacing: 0;
  text-transform: none;
  transform: none;
  box-shadow: none;
}
#start#start .home-status-icon { flex: none; width: 17px; height: 17px; }
#start#start .cx-door > .label,
#start#start:has(#rejoin:not([hidden])) .cx-door > .label {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  justify-self: start;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: inherit !important;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0 !important;
  font: 400 clamp(34px, 10.2vw, 44px)/1 var(--home-title) !important;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-shadow: none;
  transform: none;
  animation: none !important;
}
#start#start .cx-door > .label::before,
#start#start .cx-door > .label::after { display: none !important; }
#start#start .cx-door.d3 > .label { text-shadow: 1px 2px 0 #0a0a0a; }
#start#start .cx-door > .cx-description,
#start#start:has(#rejoin:not([hidden])) .cx-door > .cx-description {
  display: block !important;
  grid-column: 1;
  grid-row: 3;
  margin: 0;
  padding: 0;
  color: inherit !important;
  font: 500 14px/1.3 var(--home-body) !important;
  letter-spacing: -.015em;
  text-transform: none;
  overflow-wrap: normal;
}
#start#start .cx-door > .meta {
  display: block;
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  margin: 0;
  padding: 0;
  color: inherit;
  font: 500 12px/1.25 var(--home-body);
  letter-spacing: 0;
  text-transform: none;
}
#start#start .home-medallion {
  position: relative;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  box-sizing: border-box;
  width: var(--home-art-size);
  height: var(--home-art-size);
  border: 1.8px solid #0a0a0a;
  border-radius: 50%;
  background: #fff8e0;
  overflow: hidden;
  isolation: isolate;
}
#start#start .home-calendar { display: block; width: 100%; height: 100%; padding: 7px; box-sizing: border-box; }
#start#start .home-calendar-day { fill: #0a0a0a; text-anchor: middle; font: 400 65px "KK Head", Bangers, Impact, sans-serif; }
#start#start .home-calendar-month { fill: #0a0a0a; text-anchor: middle; text-transform: uppercase; font: 400 18px "KK Head", Bangers, Impact, sans-serif; }
#start#start [aria-disabled="true"] .home-medallion :is(img, svg) { filter: grayscale(1); }
#start#start .home-fan { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: contain; }
#start#start .home-medallion--group .home-fan { width: 66%; height: 66%; top: 0; bottom: auto; }
#start#start .home-medallion--group .home-fan--left { left: -6%; right: auto; }
#start#start .home-medallion--group .home-fan--right { left: auto; right: -6%; }
#start#start .home-medallion--group .home-fan--front { width: 72%; height: 72%; left: 14%; right: auto; top: auto; bottom: -10%; }
#start#start .cx-door > .arrow {
  position: absolute;
  inset: auto 12px 12px auto;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  animation: none !important;
}
#start#start .cx-door > .arrow svg { display: block; width: 100%; height: 100%; }
#start#start .cx-door:not([aria-disabled="true"]):active { transform: scale(.985); box-shadow: 0 1px 0 #0a0a0a; }
/* The saved-lobby card still occupies real layout space and collapses via app.js. */
@media (max-height: 740px) {
  #start#start .cx-content { gap: 10px; padding: max(14px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); }
  #start#start .cx-content .cx-mast { margin: 6px 0 0 !important; }
  #start#start .cx-content .cx-doors { gap: 10px !important; }
  #start#start .cx-content .cx-door { --home-art-size: clamp(76px, 24vw, 96px); padding: 14px !important; gap: 6px 12px; }
  #start#start .cx-door > .label { font-size: 36px !important; }
  #start#start .cx-door > .cx-description { font-size: 13px !important; }
}
@media (max-height: 610px) {
  #start#start .cx-content .cx-door { padding: 10px 12px !important; gap: 4px 10px; }
  #start#start .cx-content .cx-mast :is(.top, .bot) { font-size: clamp(27px, 9.3vw, 40px) !important; }
  #start#start .cx-door > .label { font-size: 32px !important; }
  #start#start .cx-door > .meta { display: none; }
  #start#start .cx-door > .arrow { width: 28px; height: 28px; bottom: 7px; right: 8px; }
}
@media (max-height: 740px) {
  #start#start #rejoin { padding: 8px 10px !important; gap: 5px !important; }
  #start#start #rejoin .rejoin-heading > svg { width: 28px; height: 28px; }
  #start#start #rejoin .rejoin-heading > div { gap: 0 6px; }
  #start#start #rejoin small { font-size: 10px; }
  #start#start #rejoin h2 { font-size: 20px !important; }
  #start#start #rejoin p { display: none; }
  #start#start #rejoin #rejoin-go { min-height: 34px; font-size: 20px; }
  #start#start #rejoin #rejoin-drop { width: 36px; height: 36px; min-height: 36px !important; padding: 7px; }
  #start#start:has(#rejoin:not([hidden])) .cx-content .cx-door { --home-art-size: 66px; padding: 8px 12px !important; gap: 3px 8px; }
  #start#start:has(#rejoin:not([hidden])) .cx-door > .label { font-size: 28px !important; }
  #start#start:has(#rejoin:not([hidden])) .cx-door > .cx-description { font-size: 12px !important; }
  #start#start:has(#rejoin:not([hidden])) .cx-door > .kicker { font-size: 10px !important; }
  #start#start:has(#rejoin:not([hidden])) .cx-door > .meta { display: none !important; }
  #start#start:has(#rejoin:not([hidden])) .cx-door > .arrow { width: 24px; height: 24px; right: 6px; bottom: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  #start#start .cx-door, #start#start .cx-sound { transition: none; }
}
