.og-v5-hub .v5-mobile .og-library-trigger[aria-expanded="true"] { color:var(--v5-action); background:var(--v5-soft); }
.og-v5-hub .v5-mobile.og-diary-nav svg { display:block; margin-inline:auto; flex:none; }
.og-v5-hub:has(.og-library-sheet[open]) .v5-mobile [aria-current=true]:not([aria-expanded=true]) { color:var(--v5-ink); background:none; }
.og-library-sheet {
  position:fixed;
  inset:auto 0 0;
  width:min(100%,520px);
  max-width:none;
  max-height:calc(100dvh - 36px);
  margin:0 auto;
  padding:0;
  box-sizing:border-box;
  overflow:hidden;
  overscroll-behavior:contain;
  border:1px solid var(--v5-border);
  border-radius:20px 20px 0 0;
  background:var(--v5-panel);
  color:var(--v5-ink);
  transform:translateY(var(--og-sheet-offset,0px));
}
.og-library-sheet[open] { display:flex; flex-direction:column; }
.og-library-sheet::backdrop { background:#151f2c65; }
html:has(.og-library-sheet[open]) { overflow:hidden; }
.og-library-head {
  display:grid;
  gap:0;
  flex:none;
  padding-inline:max(16px,env(safe-area-inset-left,0px)) max(16px,env(safe-area-inset-right,0px));
}
.og-library-head h2 { margin:0; font-size:clamp(20px,5vw,25px); }
.og-library-handle {
  justify-self:center;
  display:grid;
  place-items:center;
  width:76px;
  min-height:44px;
  padding:0;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--v5-muted);
  touch-action:none;
}
.og-library-handle::before { content:""; width:38px; height:4px; border-radius:2px; background:currentColor; }
.og-library-body {
  overflow:auto;
  min-height:0;
  overscroll-behavior:contain;
  padding:0 max(16px,env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
}
.og-library-group { display:grid; gap:4px; margin-block-start:12px; }
.og-library-group h3 { margin:0; font-size:13px; font-weight:650; color:var(--v5-muted); }
.og-library-group a {
  display:grid;
  grid-template-columns:21px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:7px 10px;
  border-radius:10px;
  background:var(--v5-soft);
  color:inherit;
  text-decoration:none;
  font-size:14px;
  line-height:1.28;
}
.og-library-group svg { display:block; width:21px; height:21px; }
.og-library-group svg:not(.raw) { fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.og-library-group svg[viewBox="0 0 80 80"]:not(.raw) { stroke-width:5.5; }
.og-library-group a:has(.og-library-duel-dot) { grid-template-columns:21px minmax(0,1fr) 10px; }
.og-library-duel-dot { width:10px; height:10px; border-radius:50%; }
.og-library-duel-dot[hidden] { display:none; }
.og-v5-hub .v5-mobile .og-library-trigger:focus-visible,
.og-library-sheet :is(a,button):focus-visible { outline:2px solid var(--v5-action); outline-offset:-2px; }
@media (prefers-reduced-motion:no-preference) {
  .og-library-sheet[open] { animation:og-library-in .19s ease; transition:transform .19s ease; }
  .og-library-sheet[data-dragging] { animation:none; transition:none; }
}
@keyframes og-library-in { from { transform:translateY(100%); } to { transform:translateY(0); } }

.og-v5-hub[data-rc9-home] #npath .rc9-diary-progress:empty {
  min-block-size: 1.25em;
}

.og-v5-hub[data-rc9-home] #npath progress {
  grid-row: 3;
}

.og-v5-hub[data-rc9-home] .v5-book-links > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 46px;
}

.og-v5-hub[data-rc9-home] .v5-book-links > a > span {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 16px;
}

.og-v5-hub[data-rc9-home] .rc9-repeat-stats {
  display: grid;
  gap: 2px;
}

.og-v5-hub[data-rc9-home] #povtRound:empty {
  display: none;
}

#og-library .og-library-group {
  margin-block-start: 4px;
}

#og-library .og-library-group a {
  min-height: 48px;
}

#og-library .og-library-group > h3 {
  padding-inline: 10px;
  margin-block-end: 4px;
  font-size: 15px;
}

#og-library .og-library-group + .og-library-group:has(> h3) {
  margin-block-start: 16px;
}

#og-library .og-library-group a:has(.og-library-duel-dot) {grid-template-columns:21px minmax(0,1fr)}
#og-library .og-library-group > p {margin:0;padding:4px 10px 6px;color:var(--v5-muted);font-size:14px}
#og-library .og-library-duel-name {display:inline-flex;align-items:center;gap:7px;justify-self:start}
#og-library .og-library-duel-dot {flex:none}

.og-v5-hub[data-rc9-home] .sec .game .row h3 {font-family:var(--f-body);font-weight:550;letter-spacing:normal}
.og-v5-hub[data-rc9-home] .semini .seic > * {display:block;width:10px;height:10px;flex:none}
.og-v5-hub[data-rc9-home] .stats :is(#sStars,#sStreak,#sFriends,#sMailN) {min-inline-size:1ch;font-variant-numeric:tabular-nums}
.og-v5-hub[data-rc9-home] .stats .stat .v > svg {flex:none}

@media (min-width:768px) {
  .og-v5-hub[data-rc9-home] .stats > .stat:not(.rk) {min-inline-size:65px}
}

#og-library #og-library-heading {
  line-height: 1.2;
}

@media (min-width: 960px) {
  .og-v5-hub[data-rc9-home] .v5-featured .v5-books {
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  }

  .og-v5-hub[data-rc9-home] .v5-books .v5-book-art {
    grid-area: 1/2;
    justify-self: end;
    max-inline-size: 200px;
  }

  .og-v5-hub[data-rc9-home] .v5-books .v5-book-links {
    grid-area: 2/1/3/-1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .og-v5-hub[data-rc9-home] .v5-books .v5-book-links > a {
    font-size: clamp(13px, 1.55vw, 16px);
    font-family:Nunito,var(--f-body);
    font-weight:750;
    white-space: nowrap;
    min-height: 38px;
  }

  .og-v5-hub[data-rc9-home] .sec[aria-labelledby="hSt"] .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .og-v5-hub[data-rc9-home] .sec[aria-labelledby="hSt"] .grid > a.game {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    grid-template-rows: 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px 26px 8px 9px;
  }

  .og-v5-hub[data-rc9-home] .sec[aria-labelledby="hSt"] .grid > a.game > .pic {
    grid-area: 1/1;
    block-size: 35px;
    inline-size: 35px;
  }

  .og-v5-hub[data-rc9-home] .sec[aria-labelledby="hSt"] .grid > a.game > .body {
    grid-area: 1/2;
    display: grid;
    min-width: 0;
    gap: 4px;
    text-align: left;
  }

  .og-v5-hub[data-rc9-home] .sec[aria-labelledby="hSt"] .game :is(.row,.pl) {
    grid-area: auto;
    display: grid;
    justify-items: start;
    gap: 4px;
    min-width: 0;
    min-height: 0;
    padding: 0;
  }

  .og-v5-hub[data-rc9-home] .sec[aria-labelledby="hSt"] .game h3 {
    white-space: normal;
    overflow-wrap: normal;
  }

  .og-v5-hub[data-rc9-home] .sec[aria-labelledby="hSt"] .game .prem-tag {
    margin: 0;
  }

  .og-v5-hub[data-rc9-home] .sec[aria-labelledby="hSt"] .grid > a.game::after {
    inset-inline-end: 9px;
  }
}

@media (min-width: 1260px) {
  .og-v5-hub[data-rc9-home] .sec[aria-labelledby="hSt"] .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .og-v5-hub[data-rc9-home] #npath progress {
    grid-row: 5;
  }

  .og-v5-hub[data-rc9-home] .v5-featured #npath .ref.novice.v6-novice {
    grid-template-rows: auto auto minmax(92px, 1fr) auto auto;
  }

  .og-v5-hub[data-rc9-home] #npath .novice.v6-novice::before {
    inset: 62px 0 42px;
    translate: none;
    aspect-ratio: auto;
    background-size: contain;
    mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  }

  .og-v5-hub[data-rc9-home] .v5-featured .v5-wellor .v5-wellor-art {
    width: calc(100% - 12px);
    max-height: 105px;
    right: 6px;
    bottom: 5px;
  }
}

@media (max-width: 599px) {
  :root:has(.og-v5-hub[data-rc9-home]),
  .og-v5-hub[data-rc9-home] :is(#aboutOv > .box,#aboutOv .v5-modal-scroll),
  #og-library .og-library-body {scrollbar-width:none;scrollbar-gutter:auto}
  :root:has(.og-v5-hub[data-rc9-home])::-webkit-scrollbar,
  .og-v5-hub[data-rc9-home] :is(#aboutOv > .box,#aboutOv .v5-modal-scroll)::-webkit-scrollbar,
  #og-library .og-library-body::-webkit-scrollbar {display:none}
  .og-v5-hub[data-rc9-home] :is(.v5-reference .v5-feature-arrow,.v5-world-entry span) {display:none}
  .og-v5-hub[data-rc9-home] .v5-reference .v5-feature-title {grid-template-columns:auto minmax(0,1fr)}

  .og-v5-hub[data-rc9-home] .sec .grid > a.game {
    grid-template-columns: clamp(23px, 6.8vw, 33px) minmax(0, 1fr);
    gap: 7px;
    padding: 8px 13px 15px 8px;
    justify-items: stretch;
    text-align: left;
  }

  .og-v5-hub[data-rc9-home] .sec .grid > a.game > .body {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    justify-items: start;
    justify-self: stretch;
    text-align: left;
  }

  .og-v5-hub[data-rc9-home] .sec .grid > a.game .row {
    justify-content: start;
    margin: 0;
  }

  .og-v5-hub[data-rc9-home] .sec .grid > a.game .body > .pl {
    justify-self: start;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    margin: 0;
  }

  .og-v5-hub[data-rc9-home] .sec .grid > a.game .row h3 {
    word-break: normal;
    overflow-wrap: normal;
    font-size: clamp(11px, 3.3vw, 15px);
  }

  .og-v5-hub[data-rc9-home] .sec .grid > a.game .prem-tag {
    margin: 0;
    justify-self: start;
    font-size: 11px;
  }

  .og-v5-hub[data-rc9-home] .sec .grid > a.game .pl {
    overflow-wrap: normal;
  }

  .og-v5-hub[data-rc9-home] .sec .grid > a.game::after,
  .og-v5-hub[data-rc9-home] #oxygenGames .oxygen-theme .card-arrow {
    inset: auto 10px 4px auto;
  }

  .og-v5-hub[data-rc9-home] #duelCard > .body > .pl {
    grid-column: auto;
  }

  .og-v5-hub[data-rc9-home] #duelNote > span {
    overflow-wrap: normal;
  }

  .og-v5-hub[data-rc9-home] #duelBandits {display:none}
  .og-v5-hub[data-rc9-home] .sec[aria-labelledby="hFun"] .grid > a.game {min-height:70px}
  .og-v5-hub[data-rc9-home] #oxygenGames .oxygen-theme {
    align-items:center;
    padding-block:8px;
  }
  .og-v5-hub[data-rc9-home] #oxygenGames .oxygen-theme .body {align-self:center}
}
