/*
 * The shape the Store and Find a lobby share with the main menu (spec:
 * docs/mockups/store-and-lobbies.html): big words down a plain left side,
 * the faint grid only on the right, a box along the bottom of the right side,
 * and Back as a pill in the top corner. The whole page fits the window.
 */
.side-screen.screen {
  position: relative;
  height: 100dvh;
  padding: 0;
  background: var(--bg-0);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  align-content: stretch;
  justify-items: stretch;
}

.side-screen__side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(var(--space-4), 5vh, var(--space-7)) var(--space-4) var(--space-4)
    clamp(var(--space-4), 3vw, var(--space-6));
  gap: var(--space-1);
}

.side-screen__title {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 5vh, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 45%, transparent);
  margin-bottom: clamp(var(--space-2), 2vh, var(--space-4));
}

.side-screen__group {
  margin: clamp(var(--space-2), 1.6vh, var(--space-3)) 0 0 var(--space-5);
}

.side-screen__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

/* A big word with the accent bar, as on the menu. */
.side-screen__item {
  position: relative;
  width: 100%;
  min-height: var(--target);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-2) 0 var(--space-5);
  background: none;
  border: 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.4vh, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: color var(--dur-quick) var(--ease-standard);
}

.side-screen__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--dur-quick) var(--ease-standard);
}

.side-screen__item--main {
  color: var(--accent);
}

.side-screen__item:is(:hover, :focus-visible, [aria-pressed='true']):not(:disabled) {
  color: var(--text);
}

.side-screen__item:is(:hover, :focus-visible, [aria-pressed='true']):not(:disabled)::before {
  opacity: 1;
}

.side-screen__item:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: -2px;
}

.side-screen__item:disabled {
  opacity: 0.45;
  cursor: default;
}

.side-screen__foot {
  margin-top: auto;
  color: var(--text-dim);
  font-size: var(--text-xs);
  max-width: 20rem;
}

/* The right side: the only place with the grid. */
.side-screen__art {
  position: relative;
  min-height: 0;
  border-left: 1px solid var(--line);
  overflow: hidden;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.side-screen__art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-0), transparent 22%);
  pointer-events: none;
}

/* The box along the bottom of the right side. */
.side-screen__panel {
  position: absolute;
  left: var(--space-6);
  right: var(--space-6);
  bottom: var(--space-5);
  padding: var(--space-3) var(--space-4);
  display: grid;
  gap: var(--space-2);
  background: rgb(5 7 11 / 0.88);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.side-screen__panel-title {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-screen__back {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  z-index: 2;
  min-height: 2.25rem;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(5 7 11 / 0.8);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease-standard);
}

.side-screen__back:hover,
.side-screen__back:focus-visible {
  border-color: var(--accent-line);
}

.is-quiet {
  visibility: hidden;
}
