.v6 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.v6 > *,
.v6tabs,
.v6scope,
.v6tier,
.v6wide,
.v6grid,
.v6shelves,
.v6box,
.v6rankrow,
.v6 .row {
  min-width: 0;
  max-width: 100%;
}
.v6 button,
.v6 select,
.v6 input {
  font: inherit;
  color: inherit;
}
.v6 button,
.v6 select {
  background: var(--card, #8882);
  border: 1px solid #8884;
  border-radius: 9px;
  padding: 9px;
  cursor: pointer;
}
.v6 button.on {
  border-color: var(--accent);
  color: var(--accent);
  background: #8882;
}
.v6tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.v6tabs > * {
  flex: 1 1 28%;
  min-width: 82px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.v6tabs.v6tiernav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  gap: 5px;
}
.v6tiernav > button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  aspect-ratio: 1;
  padding: 4px;
  font-size: 14px;
}
.v6tiernav > .v624title {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.v6tabs.v623modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.v6tabs.v623modes > button {
  min-width: 0;
  min-height: 58px;
  padding: 6px 4px;
  font-size: 12px;
}
.v6scope {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.v6scope .v6tabs {
  flex: 1;
  min-width: 0;
}
.v6scope select {
  max-width: 45%;
  min-width: 0;
}
.v6 > select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.v6grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 9px;
}
.v6cover {
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #8882;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  font-size: 10px;
  text-align: center;
  padding: 4px;
}
.v6cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.v6cover.selected img,
.v6cover.selected > span {
  opacity: 0.35;
}
.v6check {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: var(--accent);
  color: #111;
  border-radius: 4px;
  padding: 2px 5px;
}
.v6tile {
  min-width: 0;
  display: grid;
  gap: 4px;
  font-size: 11px;
  text-align: center;
  touch-action: pan-y;
}
.v6tile button {
  padding: 0;
  border: 0;
  background: none;
}
.v6strip {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 6px 0;
}
.v6strip .v6tile {
  flex: 0 0 64px;
}
.v6box {
  border: 1px solid #8884;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}
.v6shelves {
  display: grid;
  gap: 12px;
}
.v6shelves.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.v6display {
  border: 1px solid #d9b34d;
  border-radius: 10px;
  padding: 8px;
}
.v6nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg, #222);
  padding: 5px 0;
}
.v6tier {
  scroll-margin-top: 65px;
  display: grid;
  gap: 7px;
}
.v6tierhead {
  padding: 9px;
  border-radius: 7px;
  color: #151515;
  font-weight: 800;
}
.v6rankrow {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  gap: 10px;
  border-radius: 9px;
  background: #8882;
  padding: 7px;
  touch-action: pan-y;
}
.v6sharedCollectionTitle {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.v6sharedCollectionTitle h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.v6sharedGame {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
}
.v6sharedGame .v6cover {
  width: 100%;
}
.v6rankrow .v6cover {
  width: 38px;
  flex: none;
}
.v6rankrow strong {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}
.v6 .row > div { min-width: 0; max-width: 100%; }
.v6score {
  flex: none;
  padding: 8px;
  border-radius: 7px;
  font-weight: 700;
  white-space: nowrap;
}
.v6wide {
  display: grid;
  gap: 7px;
}
.v6poolDrop {
  min-height: 48px;
  padding: 2px;
  border-radius: 9px;
  transition: background-color 140ms ease, outline-color 140ms ease;
}
.v6drop-active {
  outline: 2px solid color-mix(in srgb, var(--themeAccent, #00dcc3) 70%, transparent);
  background-color: color-mix(in srgb, var(--themeAccent, #00dcc3) 9%, transparent);
}
.v6drop-insert {
  position: relative;
}
.v6drop-insert[data-drop-after='false']::before,
.v6drop-insert[data-drop-after='true']::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: -5px;
  right: -5px;
  top: -5px;
  height: 3px;
  border-radius: 3px;
  background: var(--themeAccent, #00dcc3);
  box-shadow: 0 0 7px color-mix(in srgb, var(--themeAccent, #00dcc3) 65%, transparent);
  pointer-events: none;
}
.v6drop-insert[data-drop-after='true']::after {
  top: auto;
  bottom: -5px;
}
.v6dragActive,
.v6dragActive * {
  cursor: grabbing !important;
}
.v6dragging [data-v6drag] {
  opacity: 0.55;
  transform: scale(0.97);
  transition:
    transform 0.15s,
    opacity 0.15s;
}
.v6ghost {
  position: fixed !important;
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 12px 30px #0008;
  opacity: 1 !important;
  background: #333;
  color: white;
  will-change: transform;
}
.v6flash {
  animation: v6flash 0.65s ease-out;
}
@keyframes v6flash {
  0% {
    outline: 2px solid var(--accent);
    box-shadow: 0 0 12px var(--accent);
  }
  100% {
    outline: 2px solid transparent;
    box-shadow: none;
  }
}
.v6 .profileback svg,
.profileScreen:has(.v6) .profileback svg {
  width: 26px;
  height: 26px;
}
@media (min-width: 760px), (orientation: landscape) and (min-width: 600px) {
  .v6tier {
    grid-template-columns: 65px 1fr;
    align-items: stretch;
  }
  .v6tierhead {
    display: grid;
    place-items: center;
    font-size: 24px;
  }
  .v6wide {
    display: flex;
    flex-wrap: wrap;
  }
  .v6wide .v6rankrow {
    width: 76px;
    display: grid;
    padding: 4px;
    gap: 4px;
    text-align: center;
    font-size: 10px;
  }
  .v6wide .v6rankrow .v6cover {
    width: 100%;
  }
  .v6wide .v6rankrow strong {
    display: none;
  }
  .v6wide .v6rankrow .v6score {
    padding: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .v6 * {
    animation: none !important;
    transition: none !important;
  }
}
