.admin-shell { display: grid; grid-template-columns: 16rem minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 2rem; padding: 2rem 1.25rem; background: var(--yellow); border-right: 3px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 0.7rem; font-size: 14px; font-weight: 900; text-decoration: none; }
.brand-mark { display: grid; place-items: center; flex: 0 0 2.5rem; height: 2.5rem; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); background: var(--purple); font: 800 17px monospace; }
.brand small { display: block; margin-top: 0.25rem; font-size: 11px; font-weight: 500; }
#admin-nav { display: flex; flex-direction: column; gap: 0.65rem; }
#admin-nav .eyebrow { margin-bottom: 0.25rem; }
#admin-nav a { display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 0.65rem; border: 2px solid var(--ink); background: #fff; text-decoration: none; font-size: 14px; font-weight: 800; }
#admin-nav a:hover { background: var(--blue); color: var(--ink); }
#admin-nav a[aria-current="page"] { background: var(--green); box-shadow: 4px 4px 0 var(--ink); }
#admin-nav svg { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
#admin-nav small { display: block; margin-top: 0.25rem; font-size: 11px; font-weight: 500; }
.sidebar-session { padding: 1rem 0; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
#sidebar-status { display: block; margin-top: 0.8rem; font-size: 13px; font-weight: 900; text-transform: uppercase; }
#sidebar-round { margin: 0.3rem 0 0.8rem; font-size: 12px; overflow-wrap: anywhere; }
.sidebar-session .text-link { font-size: 12px; }
.sidebar-links { margin-top: auto; }
.sidebar-links .eyebrow { margin-bottom: 0.8rem; }
.sidebar-links a { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.55rem 0; font-size: 13px; font-weight: 800; }
.sidebar-links small { font-size: 10px; font-weight: 500; }
.admin-view { scroll-margin-top: 1.5rem; }
.admin-view + .admin-view { margin-top: 3rem; }
body[data-active-view] .admin-view { margin-top: 0; }
.round-workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 1fr); gap: 1.5rem; align-items: start; }
.round-brief, .round-control { display: flex; flex-direction: column; gap: 1.4rem; }
.round-control { background: var(--blue); }
.loaded strong { display: block; margin: 0.5rem 0; font-size: 1.7rem; font-weight: 900; line-height: 1.3; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.round-target { display: grid; place-items: center; min-height: 15rem; background: var(--paper); border: 3px solid var(--ink); overflow: hidden; }
.round-target img { display: block; width: 100%; max-height: 28rem; object-fit: contain; }
.game-list { grid-column: 1 / -1; }
.game-list ul { padding: 0; list-style: none; margin-bottom: 0; }
.game-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-top: 2px solid var(--ink); }
.game-list li:first-child { margin-top: 0; }
.game-list a { min-width: 0; overflow-wrap: anywhere; font-weight: 800; }
.game-list a[aria-current="page"] { background: var(--yellow); }
.game-list small { display: block; color: var(--muted); font-weight: 400; }
.clock { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.clock count-down { font-size: clamp(2.8rem, 5vw, 4rem); letter-spacing: -0.06em; }
.round-actions { display: flex; flex-direction: column; gap: 0.8rem; }
.round-actions button, .round-actions .button { width: 100%; }
.round-actions .muted { font-size: 12px; }
#connected-players { border-top: 3px solid var(--ink); padding-top: 1rem; }
summary { cursor: pointer; font-size: 14px; font-weight: 800; }
#player-count { display: inline-block; padding: 0.1rem 0.5rem; margin-left: 0.5rem; border: 2px solid var(--ink); background: var(--yellow); font-size: 12px; }
.player-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.player-list li { padding: 0.3rem 0.7rem; background: #fff; border: 2px solid var(--ink); font-size: 13px; overflow-wrap: anywhere; }
#connected-players .muted { margin-top: 0.8rem; font-size: 12px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 3.5rem 2rem; }
.empty-state .muted { max-width: 30rem; }
.empty-symbol { display: grid; place-items: center; height: 4rem; width: 4rem; margin-bottom: 0.5rem; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); background: var(--purple); font: 800 24px monospace; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.library-toolbar .muted { font-size: 13px; }
.challenge.selected { background: var(--yellow); }
.challenge-preview { display: grid; place-items: center; height: 12rem; padding: 0.75rem; background: var(--purple); border-bottom: 3px solid var(--ink); }
.challenge img { display: block; max-width: 100%; width: 100%; height: 10.5rem; object-fit: contain; }
.selected-label { font-size: 10px; background: var(--green); }
.challenge-form { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.form-details, .form-target { display: flex; flex-direction: column; gap: 1.25rem; }
.form-target { background: var(--purple); }
.duration-field { max-width: 15rem; }
.upload-preview { min-height: 13rem; display: grid; place-items: center; padding: 1rem; border: 3px dashed var(--ink); background: var(--paper); text-align: center; }
.upload-preview .muted { max-width: 13rem; font-size: 13px; }
#screenshot-preview { max-width: 100%; max-height: 22rem; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 3px solid var(--ink); padding-top: 1.5rem; }
.form-actions button { flex-shrink: 0; }
.form-actions .muted { font-size: 13px; }
#admin-feedback { margin-bottom: 1.5rem; font-size: 14px; font-weight: 700; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 10; background: #fff; border: 3px solid var(--ink); padding: 1rem; }
.skip-link:focus { top: 1rem; }
@media (max-width: 1100px) {
  .admin-shell { grid-template-columns: 14rem minmax(0, 1fr); }
  .sidebar { padding: 1.5rem 1rem; }
  .round-workspace, .challenge-form { grid-template-columns: minmax(0, 1fr); }
  .round-target img { max-height: 22rem; }
}
@media (max-width: 700px) {
  .admin-shell { display: block; }
  .sidebar { position: static; height: auto; gap: 1.25rem; padding: 1rem; border-right: 0; border-bottom: 3px solid var(--ink); }
  .brand { font-size: 15px; }
  #admin-nav { flex-direction: row; gap: 0.5rem; }
  #admin-nav .eyebrow, #admin-nav small, .sidebar-session { display: none; }
  #admin-nav a { flex: 1; justify-content: center; padding: 0.7rem 0.4rem; font-size: 12px; text-align: center; gap: 0.35rem; }
  #admin-nav svg { display: none; }
  .sidebar-links { display: flex; flex-wrap: wrap; gap: 1rem; }
  .sidebar-links .eyebrow { display: none; }
  .sidebar-links a { padding: 0; gap: 0.4rem; font-size: 12px; }
  .empty-state { padding: 2.5rem 1.25rem; }
  .form-actions { align-items: stretch; flex-direction: column; gap: 1rem; }
}
.sidebar-links .logout { width: 100%; margin-top: 0.8rem; }
.login-shell { min-height: 100dvh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { width: min(100%, 24rem); display: flex; flex-direction: column; gap: 0.9rem; padding: 2rem; background: var(--yellow); box-shadow: 8px 8px 0 var(--ink); }
.login-card h1 { margin: 0.5rem 0 0; font-size: 2rem; line-height: 1; }
.login-card label { font-size: 13px; font-weight: 800; }
.login-card .error { margin: 0; padding: 0.6rem 0.8rem; font-size: 13px; font-weight: 700; }
.game-list h2 { margin: 0; }
.game-list li a { display: block; font-size: 1.05rem; }
.game-list li a small { margin-top: 0.2rem; font-size: 13px; }
.lobby-link { width: 100%; text-align: center; }
.round-control .round-actions .start { font-size: 1.1rem; padding-block: 0.9rem; }
.game-list ul { max-height: 15rem; overflow-y: auto; }
.game-list h2 { margin-bottom: 0.75rem; }
.game-list { gap: 0.5rem; }
.game-list ul { margin-top: 0; }
.game-list h2 { margin-bottom: 0; }
