.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--cj-rail) minmax(0, 1fr);
  min-height: 100dvh;
}
.rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 10px;
  border-right: 1px solid var(--cj-line);
  background: rgb(9 9 10 / 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
}
.rail .brand {
  margin-bottom: 14px;
}
.nav-item {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  min-height: 62px;
  padding: 8px 4px;
  border-radius: 12px;
  color: var(--cj-ash);
  text-decoration: none;
  font: 600 0.66rem/1.15 var(--cj-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-item wa-icon {
  font-size: 1.3rem;
}
.nav-item:hover {
  color: var(--cj-bone);
  background: var(--cj-ink-2);
}
.nav-item[aria-current="page"] {
  color: var(--cj-bone);
  background: var(--cj-ink-2);
  box-shadow: inset 0 -3px 0 var(--cj-lamp);
}
.nav-play {
  margin: 6px 0 10px;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--cj-bone);
  font: 700 0.66rem var(--cj-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 14px;
  padding: 8px 2px;
}
.nav-play .disc {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}
.nav-play wa-progress-ring {
  --size: 64px;
  --track-width: 4px;
  --indicator-width: 4px;
  --indicator-color: var(--cj-lamp);
  --track-color: var(--cj-ink-3);
}
.nav-play img {
  position: absolute;
  inset: 8px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-play.is-empty .disc {
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--cj-ink-3);
  font-size: 1.5rem;
  color: var(--cj-lamp);
}
.nav-play[aria-current="page"] .disc {
  outline: 2px solid var(--cj-lamp);
  outline-offset: 2px;
  border-radius: 50%;
}
.nav-spacer {
  flex: 1;
}
.nav-more {
  display: none;
}
.stage {
  min-width: 0;
  padding: 28px clamp(16px, 4vw, 56px) 80px;
  width: 100%;
  outline: none;
}
.topbar {
  display: none;
}
.lede {
  margin-top: 10px;
  max-width: 62ch;
}
.back {
  margin: -8px 0 12px -12px;
}
.loading {
  margin-top: 24px;
  max-width: 640px;
}

@media (max-width: 899px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--cj-line);
    background: rgb(9 9 10 / 0.9);
  }
  .rail .brand,
  .rail .wide-only,
  .nav-spacer {
    display: none;
  }
  .nav-item,
  .nav-more {
    flex: 1;
    min-height: 56px;
    max-width: 96px;
  }
  .nav-more {
    display: grid;
    order: 5;
  }
  .nav-play {
    order: 3;
    margin: -22px 0 0;
    flex: 1;
    max-width: 96px;
  }
  .nav-play .disc {
    background: var(--cj-ink-0);
    border-radius: 50%;
  }
  .rail .o1 {
    order: 1;
  }
  .rail .o2 {
    order: 2;
  }
  .rail .o4 {
    order: 4;
  }
  .stage {
    padding: 16px 16px calc(120px + env(safe-area-inset-bottom));
  }
  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -4px 0 12px;
  }
  .topbar .brand {
    justify-items: start;
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(18px, 3vw, 36px);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cj-line);
  background: var(--cj-ink-1);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: var(--hero-img, none) center / cover;
  filter: blur(60px) brightness(0.33) saturate(1.3);
}
.hero > * {
  position: relative;
}
.print {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 40px 80px -30px var(--glow, #000), 0 18px 30px -18px #000;
  aspect-ratio: 1;
  background: #111;
}
.print img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.saves {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.save-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.35);
}
.save-row:hover {
  background: rgb(0 0 0 / 0.55);
}
.you-side .save-row {
  background: var(--cj-ink-2);
}
.save-link {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 8px 4px 8px 8px;
  color: inherit;
  text-decoration: none;
  min-height: 64px;
  border-radius: 12px;
}
.save-link img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}
.save-link strong {
  display: block;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.crate {
  margin-top: 44px;
  scroll-margin-top: 20px;
}
.crate-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.crate-head .h2 {
  margin-top: 6px;
}
.crate-head p {
  color: var(--cj-ash);
  max-width: 60ch;
  margin-top: 6px;
}
.crate-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x proximity;
  scroll-padding: 4px;
}
.crate-row > * {
  scroll-snap-align: start;
}
.community {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.community.solo {
  grid-template-columns: minmax(0, 1fr);
}
.cta-card {
  border-radius: 16px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  border: 1px dashed #5a524a;
  background: repeating-linear-gradient(135deg, rgb(242 181 68 / 0.05) 0 12px, transparent 12px 24px);
}
.cta-icon {
  font-size: 2rem;
  color: var(--cj-lamp);
}
@media (max-width: 899px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero .print {
    max-width: 260px;
  }
  .community {
    grid-template-columns: minmax(0, 1fr);
  }
}

.detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.detail-art {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}
.detail-main {
  gap: 30px;
}
.detail-desc {
  margin-top: 12px;
  max-width: 56ch;
}
.table-mini {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--cj-line);
  background: var(--cj-ink-1);
}
.table-mini cj-surface {
  height: 76px;
  border-radius: 9px;
}
.mini-why {
  font-size: 0.85rem;
}
.row.tight {
  gap: 6px;
}
.note {
  margin-top: 10px;
  font-size: 0.88rem;
}
.lb-head {
  margin-bottom: 12px;
}
.lb-head .field-label {
  margin: 0;
}
.lb-modes {
  margin-bottom: 12px;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.mode-card {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--cj-ink-2);
  box-shadow: inset 0 0 0 1px var(--cj-line);
  min-height: 92px;
}
.mode-card[aria-checked="true"] {
  box-shadow: inset 0 0 0 2px var(--cj-lamp);
  background: color-mix(in srgb, var(--cj-lamp) 9%, var(--cj-ink-2));
}
.mode-card:focus-visible {
  outline: 3px solid var(--cj-focus);
  outline-offset: 3px;
}
.mode-card b {
  font: 800 1.3rem/1 var(--cj-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mode-card span {
  font-size: 0.85rem;
  color: var(--cj-ash);
}
.resume {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--cj-lamp) 10%, var(--cj-ink-1));
  border: 1px solid #5a4318;
}
.resume wa-progress-ring {
  --size: 64px;
  --track-width: 5px;
  --indicator-width: 5px;
  --indicator-color: var(--cj-lamp);
}
.resume .mono {
  font-size: 0.8rem;
}
.resume p {
  font-size: 0.9rem;
}
.actionbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 899px) {
  .detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-art {
    position: static;
  }
  .detail-art .print {
    max-width: 320px;
  }
  .actionbar.sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(69px + env(safe-area-inset-bottom));
    padding: 12px 16px;
    background: rgb(9 9 10 / 0.94);
    border-top: 1px solid var(--cj-line);
    z-index: 15;
  }
  .actionbar.sticky wa-button {
    flex: 1;
  }
}

.table-area {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
}
body:not(.on-table) .table-area {
  visibility: hidden;
}
body.on-table {
  overflow: hidden;
  height: 100dvh;
  background: #000;
}
body.on-table .skip {
  display: none;
}
.table {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.table:focus-visible {
  box-shadow: inset 0 0 0 3px var(--cj-focus);
}
.table .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.table .layer-float {
  pointer-events: none;
}
.table.is-over-piece {
  cursor: grab;
}
.table.is-over-rim {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg stroke='%23fff' stroke-width='4.5'%3E%3Cpath d='M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5'/%3E%3C/g%3E%3Cg stroke='%231c2320' stroke-width='2'%3E%3Cpath d='M19.95 11a8 8 0 1 0 -.5 4m.5 5v-5h-5'/%3E%3C/g%3E%3C/svg%3E")
      14 14,
    alias;
}
.table.is-dragging,
.table.is-spinning {
  cursor: grabbing;
}
.game {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.game > * {
  pointer-events: auto;
}
.hud {
  position: fixed;
  z-index: 10;
}
.hud-panel {
  background: rgb(12 11 13 / 0.84);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 40px -20px #000;
}
.hud-top {
  top: calc(12px + env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}
.hud-top > * {
  pointer-events: auto;
}
.badge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  padding: 8px 16px 8px 8px;
  min-width: 0;
  max-width: 460px;
}
.badge-open {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  border-radius: 10px;
}
.badge-open:focus-visible {
  outline: 3px solid var(--cj-focus);
  outline-offset: 3px;
}
.badge-open img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}
.badge-text {
  display: grid;
  min-width: 0;
}
.badge-name {
  font: 800 1.15rem/1 var(--cj-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-line {
  display: flex;
  gap: 12px;
  align-items: center;
  font: 600 0.85rem var(--cj-mono);
  margin-top: 4px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.badge .bar {
  height: 4px;
  margin-top: 7px;
}
.clock .dot {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  margin-right: 0.45em;
  vertical-align: 0.08em;
  box-shadow: inset 0 0 0 2px currentColor;
}
.clock.running .dot {
  background: var(--cj-signal);
  box-shadow: none;
}
@media (prefers-reduced-motion: no-preference) {
  .clock.running .dot {
    animation: blink 2s steps(1) infinite;
  }
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.ghost {
  color: var(--cj-ash);
  font-weight: 500;
}
.dock {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
}
.tool {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  width: 64px;
  min-height: 58px;
  border-radius: 11px;
  color: var(--cj-bone);
  font: 600 0.62rem/1.1 var(--cj-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}
.cj-large .tool {
  width: 72px;
  min-height: 64px;
}
.tool wa-icon {
  font-size: 1.25rem;
}
.tool:hover {
  background: rgb(255 255 255 / 0.08);
}
.tool:focus-visible {
  outline: 3px solid var(--cj-focus);
  outline-offset: 1px;
}
.tool[aria-pressed="true"] {
  background: var(--cj-lamp);
  color: var(--cj-lamp-ink);
}
.tool[disabled] {
  opacity: 0.4;
  cursor: default;
}
.dock hr {
  border: 0;
  height: 1px;
  background: rgb(255 255 255 / 0.1);
  margin: 4px 6px;
}
.dock .grp-label {
  font: 600 0.55rem var(--cj-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cj-ash);
  text-align: center;
  padding: 4px 0 2px;
}
.assist-menu {
  display: none;
}
body.is-hard .assist,
body.is-hard .assist-menu,
body.no-assists .assist,
body.no-assists .assist-menu {
  display: none !important;
}
.zoom {
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
}
.zoom.off {
  display: none;
}
.zoom .pct {
  all: unset;
  cursor: pointer;
  font: 600 0.85rem var(--cj-mono);
  min-width: 64px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.zoom .pct:focus-visible {
  outline: 3px solid var(--cj-focus);
}
.lid {
  right: 12px;
  top: calc(92px + env(safe-area-inset-top));
  width: 300px;
  max-height: calc(100dvh - 180px);
  overflow-y: auto;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.lid[hidden] {
  display: none !important;
}
.lid-art {
  position: relative;
}
.lid-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #111;
}
.stamp {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--cj-lamp);
  color: var(--cj-lamp-ink);
  font: 700 0.7rem var(--cj-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lid-text {
  display: grid;
  gap: 10px;
}
.lid-head {
  flex-wrap: nowrap;
}
.lid dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 8px;
  margin: 0;
}
.lid dt {
  font: 600 0.6rem var(--cj-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cj-ash);
}
.lid dd {
  margin: 0;
  font: 700 0.95rem var(--cj-mono);
}
.lid-desc {
  font-size: 0.86rem;
}
.lid-desc:empty {
  display: none;
}
.hardnote {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px dashed #5a524a;
  text-align: center;
  padding: 20px;
  color: var(--cj-ash);
}
.hardnote wa-icon {
  font-size: 2rem;
}
.heldbar {
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 18px;
  border-color: rgb(242 181 68 / 0.5);
}
.heldbar .count {
  font: 800 1.1rem var(--cj-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 8px;
  white-space: nowrap;
}
.heldbar .tool {
  width: 72px;
}
.coach {
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px));
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}
.coach ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
}
.coach wa-button {
  justify-self: start;
}
.unpack,
.notice,
.pause {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.unpack {
  pointer-events: none;
}
.unpack-card {
  width: min(360px, 100%);
  padding: 22px;
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
}
.unpack-count {
  font: 800 3rem/1 var(--cj-display);
}
.unpack-count small {
  font: 600 0.8rem var(--cj-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cj-ash);
}
.unpack .bar {
  width: 100%;
}
.notice {
  background: rgb(4 4 5 / 0.6);
  z-index: 25;
}
.notice-card {
  width: min(520px, 100%);
  padding: 28px;
}
.pause {
  z-index: 30;
  background: rgb(4 4 5 / 0.45);
}
.pause-card {
  width: min(440px, 100%);
  padding: 28px;
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.pause-card .big {
  font: 700 clamp(3rem, 12vw, 4.6rem) / 1 var(--cj-mono);
}
.pause-card .acts {
  display: grid;
  gap: 8px;
  width: 100%;
}
.result {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  background: rgb(4 4 5 / 0.55);
}
.result-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 48px);
  padding-top: max(clamp(16px, 4vw, 48px), env(safe-area-inset-top));
  align-items: start;
}
.result-main {
  padding: clamp(20px, 3vw, 32px);
  gap: 20px;
}
.result-side {
  padding: 20px;
}
.big-time {
  font: 700 clamp(3.4rem, 10vw, 6.4rem) / 1 var(--cj-mono);
  letter-spacing: -0.02em;
}
.done-rank {
  margin-top: 10px;
}
.say {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  z-index: 60;
  padding: 12px 18px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms, transform 200ms;
  max-width: calc(100vw - 32px);
}
.say.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 899px), (pointer: coarse) {
  .hud-top {
    top: calc(8px + env(safe-area-inset-top));
    left: 8px;
    right: 8px;
  }
  .badge {
    padding: 6px 12px 6px 4px;
  }
  .badge-open {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
  }
  .badge-open img {
    width: 40px;
    height: 40px;
  }
  .dock {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: calc(8px + env(safe-area-inset-bottom));
    transform: none;
    flex-direction: row;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dock hr,
  .dock .grp-label,
  .dock .assist {
    display: none;
  }
  .assist-menu {
    display: block;
  }
  .tool {
    width: auto;
    min-width: 56px;
    flex: 1;
  }
  .zoom {
    display: none;
  }
  .heldbar {
    left: 8px;
    right: 8px;
    transform: none;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 12;
    justify-content: space-between;
    padding-left: 12px;
  }
  .heldbar .tool {
    width: auto;
    min-width: 52px;
  }
  body.holding .dock {
    visibility: hidden;
  }
  .lid {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: auto;
    max-height: 60dvh;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: start;
  }
  .coach {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .say {
    bottom: calc(150px + env(safe-area-inset-bottom));
  }
  .result-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 899px) {
  .say {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }
  body.on-table .say {
    bottom: calc(150px + env(safe-area-inset-bottom));
  }
}

.filters-panel {
  margin-top: 24px;
}
.filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
}
.filters wa-select {
  min-width: min(440px, 100%);
}
.boards {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}
.rank-card {
  display: grid;
  gap: 14px;
}
.rank-num {
  align-items: end;
}
.rank-num .num {
  font: 850 4.6rem/0.9 var(--cj-display);
}
.rank-num .num:empty {
  display: none;
}
.rank-num .quiet {
  padding-bottom: 8px;
}
@media (max-width: 899px) {
  .boards {
    grid-template-columns: minmax(0, 1fr);
  }
  .boards .rank-card {
    order: -1;
  }
  .filters wa-select {
    min-width: 0;
    width: 100%;
  }
}

.you-head {
  align-items: end;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.stat {
  padding: 16px;
  border-radius: 12px;
  background: var(--cj-ink-2);
  display: grid;
  gap: 4px;
}
.stat b {
  font: 800 2rem/1 var(--cj-display);
}
.stat span {
  font: 500 0.72rem var(--cj-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cj-ash);
}
.you-grid {
  margin-top: 24px;
}
.you-side {
  gap: 24px;
}
.code-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}
.qr {
  padding: 22px;
  background: #ffffff;
  border-radius: 12px;
  line-height: 0;
}
.send-row,
.redeem-row {
  align-items: end;
}
.grow {
  flex: 1;
  min-width: 200px;
}
@media (max-width: 899px) {
  .code-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .qr {
    justify-self: start;
  }
}

.send-grid {
  margin-top: 28px;
}
.drop {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  min-height: 260px;
  border-radius: 16px;
  border: 2px dashed #5a524a;
  padding: 24px;
  background: var(--cj-ink-1);
  overflow: hidden;
}
.drop.is-over {
  border-color: var(--cj-lamp);
}
.drop.has {
  border-style: solid;
  border-color: var(--cj-line);
  padding: 0;
}
.drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.drop:focus-within {
  outline: 3px solid var(--cj-focus);
  outline-offset: 3px;
}
.drop img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #000;
}
.drop-empty {
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}
.drop-icon {
  font-size: 2.4rem;
  color: var(--cj-lamp);
}
.steps {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: s;
  flex-wrap: wrap;
}
.steps li {
  counter-increment: s;
  display: flex;
  gap: 8px;
  align-items: center;
  font: 600 0.75rem var(--cj-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cj-ash);
}
.steps li::before {
  content: counter(s);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px currentColor;
}
.steps li.on {
  color: var(--cj-bone);
}
.steps li.on::before {
  background: var(--cj-lamp);
  color: var(--cj-lamp-ink);
  box-shadow: none;
}
.sent-panel {
  margin-top: 28px;
  max-width: 640px;
}
.sent-icon {
  font-size: 2.4rem;
  color: var(--cj-ok);
}

.settings {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}
.toc {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 2px;
}
.toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--cj-ash);
  text-decoration: none;
  font-weight: 600;
}
.toc a:hover {
  background: var(--cj-ink-2);
  color: var(--cj-bone);
}
.set-sec {
  scroll-margin-top: 20px;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--cj-line);
  display: grid;
  gap: 18px;
}
.set-sec.last {
  border: 0;
}
.sec-note {
  margin-top: 6px;
  max-width: 60ch;
}
@media (max-width: 899px) {
  .settings {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
    display: flex;
    overflow-x: auto;
  }
  .toc a {
    flex: none;
    border: 1px solid var(--cj-line);
  }
}

.help-grid {
  margin-top: 28px;
}
.help-grid .h2 {
  margin-bottom: 14px;
}
.help-side {
  gap: 24px;
}
.help-group th {
  font: 800 1rem/1 var(--cj-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cj-lamp);
  padding-top: 18px;
}
.notes {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}
wa-drawer#quickSettings {
  --size: min(560px, 100vw);
}
body.no-gl .hud-top,
body.no-gl .dock,
body.no-gl .zoom,
body.no-gl wa-tooltip {
  display: none;
}
wa-color-picker {
  font-size: 0.85rem;
}
.tour {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.tour.is-center {
  background: rgb(0 0 0 / 0.62);
}
.tour-hole {
  position: fixed;
  border-radius: 14px;
  box-shadow:
    0 0 0 2px var(--wa-color-brand-fill-loud, #e3a83a),
    0 0 0 9999px rgb(0 0 0 / 0.62);
  transition:
    left 0.25s ease,
    top 0.25s ease,
    width 0.25s ease,
    height 0.25s ease;
  pointer-events: none;
}
.tour.is-center .tour-hole {
  display: none;
}
.tour-card {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.55);
  transition:
    left 0.25s ease,
    top 0.25s ease;
}
.tour-card .h3 {
  margin: 0;
}
.tour-card p {
  margin: 0;
}
.tour-actions {
  margin-top: 6px;
  gap: 8px;
  flex-wrap: wrap;
}
.tour-actions .row {
  gap: 8px;
}
.tour-again {
  margin-top: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .tour-hole,
  .tour-card {
    transition: none;
  }
}
.nav-item.long span {
  letter-spacing: 0;
  font-size: 0.6rem;
}
.together {
  display: grid;
  gap: 8px;
}
.together .note {
  margin: 0;
}
.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}
.room-join {
  max-width: 420px;
  margin-top: 24px;
}
.room-players {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.room-player {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--cj-ink-2);
  box-shadow: inset 3px 0 0 var(--c);
}
.room-player.is-away {
  opacity: 0.55;
}
.room-player .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
}
.room-player .who {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.room-player .who b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-board {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-size: 0.75rem;
}
.room-board .fill-grid {
  width: 116px;
  height: 70px;
}
.room-board b {
  color: var(--cj-bone);
}
.room-fill-note {
  margin: 0;
  font-size: 0.85rem;
}
.fill-grid {
  display: block;
  width: 100%;
  height: 100%;
}
.rivals[hidden] {
  display: none;
}
.rivals-chips,
.rivals-grab,
.rivals-note,
#rivalsClose {
  display: none;
}
.rivals-panel {
  position: fixed;
  z-index: 10;
  right: 12px;
  top: calc(92px + env(safe-area-inset-top));
  width: 204px;
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.rivals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rivals-title {
  margin: 0;
  font: 800 0.95rem/1 var(--cj-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cj-ash);
}
.rivals-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--cj-ash);
}
.rivals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.fill-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  padding: 5px 7px 5px 8px;
  border-radius: 9px;
  background: var(--cj-ink-2);
  border: 1px solid rgb(255 255 255 / 0.06);
  box-shadow: inset 3px 0 0 var(--c);
}
.fill-card .fill-box {
  grid-row: 1 / 3;
  width: 58px;
  height: 40px;
}
.fill-name {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  font: 700 0.8rem/1.2 var(--cj-text);
  color: var(--c);
}
.fill-name b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fill-name em {
  flex: none;
  font: 700 0.72rem var(--cj-mono);
  font-style: normal;
  color: var(--cj-lamp);
}
.fill-count {
  display: flex;
  gap: 6px;
  font: 500 0.72rem var(--cj-mono);
  color: var(--cj-ash);
  font-variant-numeric: tabular-nums;
}
.fill-count b {
  color: var(--cj-bone);
  font-weight: 600;
}
.fill-done {
  margin-left: auto;
}
.fill-card.is-me {
  border-color: rgb(255 255 255 / 0.24);
}
.fill-card.is-lead {
  border-color: var(--cj-lamp);
}
.fill-card.is-away {
  opacity: 0.55;
}
.fill-chip {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgb(255 255 255 / 0.12) 0);
}
.fill-chip > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--cj-ink-1, #111);
  color: var(--c);
  font: 700 0.72rem var(--cj-mono);
}
.fill-chip sup {
  position: absolute;
  top: -5px;
  right: -6px;
  padding: 0 4px;
  border-radius: 6px;
  background: var(--cj-lamp);
  color: var(--cj-lamp-ink);
  font: 700 0.6rem/1.4 var(--cj-mono);
}
.fill-chip.is-me {
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.8);
}
.fill-chip.is-away {
  opacity: 0.5;
}
@media (min-width: 900px) and (pointer: fine) {
  body.is-racing .lid {
    right: 228px;
  }
}
@media (max-width: 899px), (pointer: coarse) {
  .rivals-chips {
    position: fixed;
    z-index: 10;
    top: calc(72px + env(safe-area-inset-top));
    left: 8px;
    max-width: calc(100vw - 16px);
    display: flex;
    gap: 7px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: inherit;
    font: inherit;
    cursor: pointer;
    overflow-x: auto;
    scrollbar-width: none;
    touch-action: pan-x;
  }
  .rivals-chips:focus-visible {
    outline: 3px solid var(--cj-focus);
    outline-offset: 2px;
  }
  .rivals-panel {
    z-index: 14;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    max-height: 64dvh;
    padding: 6px 12px calc(14px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .rivals.is-open .rivals-panel {
    transform: none;
    visibility: visible;
    transition: transform 0.25s ease;
  }
  .rivals-grab {
    display: grid;
    place-items: center;
    height: 18px;
    touch-action: none;
    cursor: grab;
  }
  .rivals-grab i {
    width: 38px;
    height: 4px;
    border-radius: 4px;
    background: rgb(255 255 255 / 0.25);
  }
  .rivals-note,
  #rivalsClose {
    display: block;
  }
  .rivals-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .fill-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 6px 8px;
  }
  .fill-card .fill-box {
    grid-row: auto;
    width: 100%;
    height: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rivals-panel {
    transition: none !important;
  }
}
.room-actions {
  flex-wrap: wrap;
}
.room-code {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--cj-lamp);
}
.room-invite .qr {
  justify-self: start;
}
.live-cursors {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}
.live-cursor {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  will-change: transform;
  transition: transform 90ms linear;
}
.live-cursor .dot {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px rgb(0 0 0 / 0.6);
}
.live-cursor .tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--c);
  color: #111;
  font: 600 0.75rem var(--cj-text);
  white-space: nowrap;
}
@media (max-width: 899px) {
  .room-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .room-player.has-board {
    grid-template-columns: 14px minmax(0, 1fr) auto;
  }
  .room-player.has-board > strong {
    grid-column: 2 / -1;
  }
  .room-board .fill-grid {
    width: 96px;
    height: 64px;
  }
}
.room-side {
  display: grid;
  gap: 24px;
}
.room-setup wa-select {
  width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.roster {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 12px;
  min-width: 0;
  margin-left: auto;
}
.roster[hidden] {
  display: none;
}
.roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.roster-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font: 600 0.8rem var(--cj-text);
}
.roster-list .name {
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roster-list .dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--c);
}
.roster-list .has-slot .dot {
  background: var(--c);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.85);
}
.roster-count {
  font: 600 0.75rem var(--cj-mono);
  color: var(--cj-ash);
  white-space: nowrap;
}
body.is-shared #pauseBtn {
  display: none;
}
.invite-body {
  gap: 16px;
}
.invite-ready {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.invite-ready[hidden] {
  display: none;
}
.invite-ready .qr {
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  line-height: 0;
}
.invite-side .room-code {
  font-size: 2.2rem;
}
.invite-link {
  align-items: end;
  flex-wrap: nowrap;
}
.invite-link wa-input {
  flex: 1;
  min-width: 0;
}
@media (max-width: 899px), (pointer: coarse) {
  .roster {
    position: fixed;
    top: calc(72px + env(safe-area-inset-top));
    right: 8px;
    max-width: calc(100vw - 16px);
    gap: 6px;
    padding: 4px 4px 4px 10px;
  }
  .roster-list {
    gap: 4px;
  }
  .roster-list .name,
  .roster-leave {
    display: none;
  }
}
@media (max-width: 560px) {
  .invite-ready {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .invite-side {
    width: 100%;
  }
  .invite-side .room-code {
    font-size: 1.8rem;
  }
}

.hero-list {
  min-width: 0;
}
.h-hero {
  font-size: clamp(36px, 5vw, 72px);
}
.playlist {
  list-style: none;
  margin: 16px 0 0;
  padding: 0 6px 0 0;
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.play-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.35);
}
.play-row:hover {
  background: rgb(0 0 0 / 0.55);
}
.play-link {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 8px;
  color: inherit;
  text-decoration: none;
}
.play-link img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
}
.play-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.play-text strong,
.play-text .meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.play-text .bar {
  max-width: 320px;
}
.play-text .bar i {
  width: var(--fill, 0%);
}
.play-go {
  font-size: 22px;
  color: var(--cj-amber, #f5b83d);
}
.shelf-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.shelf-tools wa-input {
  flex: 1 1 260px;
  max-width: 560px;
}
.cats-list {
  display: grid;
  gap: 6px;
}
.cat-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 6px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
}
.cat-link:hover {
  background: rgb(255 255 255 / 0.06);
}
.cat-link img,
.cat-blank {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: rgb(255 255 255 / 0.08);
}
.cat-link small {
  display: block;
}
.upper::part(input) {
  text-transform: uppercase;
}
button.nav-item {
  background: none;
  border: 0;
  cursor: pointer;
  width: 100%;
}

.who-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: end;
}
.who-row wa-radio-group::part(form-control-label) {
  font: 700 0.95rem/1 var(--cj-display, inherit);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
cj-leaderboard wa-callout {
  margin: 6px 0;
}

.dock-cols {
  display: flex;
  gap: 2px;
}
.dock-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dock-sys {
  padding-right: 4px;
  margin-right: 2px;
  border-right: 1px solid rgb(255 255 255 / 0.1);
}
.dock-toggle {
  min-height: 34px;
  width: 100%;
  grid-auto-flow: column;
  gap: 6px;
}
.dock-toggle wa-icon {
  font-size: 1rem;
  transition: transform 0.2s;
}
.dock.is-shut .dock-cols {
  display: none;
}
.dock.is-shut .dock-toggle {
  width: 64px;
}
.dock.is-shut .dock-toggle wa-icon {
  transform: rotate(180deg);
}
@media (max-height: 760px) and (min-width: 900px) and (pointer: fine) {
  .dock .tool:not(.dock-toggle) {
    min-height: 46px;
  }
  .dock .tool wa-icon {
    font-size: 1.1rem;
  }
}
@media (max-width: 899px), (pointer: coarse) {
  .dock-cols,
  .dock-col {
    display: contents;
  }
  .dock-sys {
    border: 0;
  }
  .dock-toggle {
    width: auto;
    min-width: 48px;
    flex: 0 0 auto;
  }
  .dock-toggle span {
    display: none;
  }
  .dock-toggle wa-icon {
    transform: rotate(-90deg);
  }
  .dock.is-shut {
    right: auto;
  }
  .dock.is-shut .dock-cols {
    display: none;
  }
  .dock.is-shut .dock-toggle wa-icon {
    transform: rotate(90deg);
  }
}
.name-ask-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}
.name-ask-row wa-input {
  flex: 1;
  min-width: 0;
}
@media (max-width: 480px) {
  .name-ask-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.share-nets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.share-nets .net {
  all: unset;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--cj-line);
  font: 600 0.78rem var(--cj-mono, monospace);
  color: var(--cj-bone);
}
.share-nets .net:hover,
.share-nets .net:focus-visible {
  background: rgb(255 255 255 / 0.08);
}

.public-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
}
.public-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.public-thumb {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
  background: var(--wa-color-surface-lowered, rgba(127, 127, 127, 0.15));
}
.public-info {
  flex: 1;
  min-width: 0;
}
.public-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#invitePublic,
#roomPublic {
  margin-top: 0.25rem;
}

.who-row {
  align-items: flex-start;
}
.who-row .lb-modes {
  margin-bottom: 0;
}
.who-row wa-radio-group[disabled] {
  opacity: 0.45;
}
.who-row {
  gap: 12px 18px;
}

.hs-wrap {
  position: relative;
  min-width: 0;
}
.hs-arrow {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--cj-bone);
  background: rgb(9 9 10 / 0.88);
  border: 1px solid var(--cj-line);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.5);
}
.hs-arrow[hidden] {
  display: none;
}
.hs-left {
  left: 2px;
}
.hs-right {
  right: 2px;
}
.hs-arrow:focus-visible {
  outline: 3px solid var(--cj-focus);
}
@media (max-width: 899px), (pointer: coarse) {
  .actionbar.sticky {
    bottom: calc(var(--rail-h, 69px) + 0px);
  }
  .who-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
  }
  .who-row #whoPick {
    grid-column: 1 / -1;
  }
  .who-row wa-radio-group {
    width: 100%;
    min-width: 0;
  }
  .who-row wa-radio-group::part(form-control-input) {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    width: 100%;
  }
  .who-row #whoPick::part(form-control-input) {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
  }
  .who-row wa-radio {
    width: 100%;
    min-width: 0;
  }
  .who-row wa-radio::part(base),
  .who-row wa-radio::part(label) {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }
}
@media (max-width: 420px) {
  .who-row {
    grid-template-columns: 1fr;
  }
}
.lang-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18);
  flex: none;
}
.lang-pick wa-dropdown-item .lang-flag {
  margin-inline-end: 0.5em;
}
.more-lang {
  padding: 0.5rem 0.75rem;
}
#setLang .lang-pick {
  margin-block: 0.25rem 0.75rem;
}
.lang-pick {
  display: inline-block;
}

.nav-lang {
  display: grid;
  justify-items: center;
  padding: 6px 0;
}
.nav-lang wa-button::part(base) {
  padding-inline: 8px;
}

.nav-listen .eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  margin-bottom: 2px;
}
.nav-listen .eq i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--cj-amber, #f0b23a);
  transform-origin: bottom;
  animation: eq-bounce 1.1s ease-in-out infinite;
}
.nav-listen .eq i:nth-child(2) {
  animation-delay: -0.35s;
}
.nav-listen .eq i:nth-child(3) {
  animation-delay: -0.7s;
}
.nav-listen .eq i:nth-child(4) {
  animation-delay: -0.2s;
}
@keyframes eq-bounce {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}
.nav-social wa-icon {
  animation: social-nudge 4s ease-in-out infinite;
}
@keyframes social-nudge {
  0%,
  80%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  85% {
    transform: rotate(-14deg) scale(1.12);
  }
  90% {
    transform: rotate(12deg) scale(1.12);
  }
  95% {
    transform: rotate(-6deg) scale(1.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-listen .eq i,
  .nav-social wa-icon {
    animation: none;
  }
  .nav-listen .eq i:nth-child(odd) {
    transform: scaleY(0.6);
  }
}
.link-icon {
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}
.cat-link.link-out {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}
.link-ext {
  opacity: 0.55;
}
.links-sub {
  margin: 6px 6px 0;
}
@media (min-width: 900px) {
  .rail {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar {
    display: none;
  }
  .rail > * {
    flex-shrink: 0;
  }
}

.print {
  position: relative;
}
.print img {
  position: relative;
  object-fit: contain;
}
.print img.fill {
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: blur(22px) brightness(0.55);
  transform: scale(1.2);
}
.lid-art img {
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .crate-row {
    scroll-snap-type: none;
  }
}

.mine-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.mine-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.mine-thumb {
  width: 140px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: contain;
  background: #111;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--cj-ash);
}
.mine-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.mine-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}
.mine-sum {
  margin: 8px 0 18px;
}
.mine-stat {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px var(--cj-line);
}
.mine-stat wa-icon {
  color: var(--cj-ash);
}
.mine-stat b {
  font: 700 1.35rem/1.1 var(--cj-mono);
}
.mine-stat span {
  font: 500 0.7rem/1.2 var(--cj-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cj-ash);
}
.mine-stat.is-live wa-icon,
.mine-stat.is-live b {
  color: var(--cj-amber, #f0b23a);
}
.mine-stat.is-live wa-icon {
  animation: mine-pulse 1.6s ease-in-out infinite;
}
@keyframes mine-pulse {
  50% {
    transform: scale(1.25);
    opacity: 0.7;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mine-stat.is-live wa-icon {
    animation: none;
  }
}
.mine-best {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}
@media (max-width: 560px) {
  .mine-card {
    grid-template-columns: 1fr;
  }
  .mine-thumb {
    width: 100%;
    max-height: 220px;
  }
}

.ach-panel {
  margin: 18px 0;
}
.ach-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.ach {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 12px;
  text-align: center;
  background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 0 0 1px var(--cj-line);
}
.ach strong {
  font-size: 0.95rem;
}
.ach .quiet {
  font-size: 0.8rem;
  line-height: 1.35;
}
.ach.locked .ach-btn {
  opacity: 0.55;
}
.ach.featured {
  box-shadow: inset 0 0 0 2px var(--cj-lamp, #f2b544);
}
.ach-btn {
  all: unset;
  cursor: default;
  border-radius: 50%;
  line-height: 0;
}
.ach.on .ach-btn {
  cursor: pointer;
}
.ach.on .ach-btn:focus-visible {
  outline: 3px solid var(--cj-lamp, #f2b544);
  outline-offset: 3px;
}
.ach.on .ach-badge {
  transition: transform 600ms cubic-bezier(.2, .8, .2, 1);
}
.ach.on .ach-btn:hover .ach-badge {
  transform: rotate(180deg);
}
.ach-tier {
  font: 600 0.62rem var(--cj-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.08);
}
.ach-tier.bronze {
  color: #e0a070;
}
.ach-tier.silver {
  color: #d5d8dd;
}
.ach-tier.gold {
  color: #f2c14e;
}
.ach-bar {
  width: 80%;
  height: 5px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.08);
  overflow: hidden;
}
.ach-bar i {
  display: block;
  height: 100%;
  background: var(--cj-lamp, #f2b544);
}
.ach-toasts {
  position: fixed;
  right: 16px;
  bottom: calc(16px + var(--rail-h, 0px));
  display: grid;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}
.ach-toast {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: min(340px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 12px;
  background: #151516;
  color: var(--cj-bone, #eee8dd);
  box-shadow: 0 0 0 1px var(--cj-lamp, #f2b544), 0 18px 40px -12px #000;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}
.ach-toast.in {
  transform: none;
  opacity: 1;
}
.ach-toast.in .ach-badge {
  animation: ach-spin 900ms cubic-bezier(.2, .8, .2, 1);
}
.ach-toast small {
  display: block;
  font: 600 0.66rem var(--cj-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cj-lamp, #f2b544);
}
.ach-toast strong {
  display: block;
}
.ach-toast span {
  font-size: 0.82rem;
  color: var(--cj-ash);
}
@keyframes ach-spin {
  from {
    transform: rotate(-360deg) scale(0.6);
  }
  to {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ach.on .ach-btn:hover .ach-badge,
  .ach-toast.in .ach-badge {
    transform: none;
    animation: none;
  }
  .ach-toast {
    transition: none;
  }
}

.dev-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.dev {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.03);
}
.dev.is-current {
  box-shadow: inset 0 0 0 1px var(--cj-lamp, #f2b544);
}
