:root {
  --arcade-bg: #10141a;
  --arcade-panel: #191821;
  --arcade-line: #4b405a;
  --arcade-green: #d2fa48;
  --arcade-purple: #6728c6;
  --arcade-muted: #bcb6c6;
  --arcade-radius: 10px;
  --arcade-motion: 190ms ease-out;
}

/* One outline and interaction treatment for the site's controls. */
:is(.raundo-app, .round-app, .admin-shell, .raundo-access, .community-dialog)
  :is(button, .outline-button, .acid-button, .primary-button, .back-button, .screen-launch, .preview-link, .admin-access-shortcut):not(:where(.game-open, .promo-dot, .round-cell, .board-cell, .light-cell, .light-tile)) {
  border: 1px solid var(--arcade-line);
  border-radius: var(--arcade-radius);
  box-shadow: none;
  transition: background-color var(--arcade-motion), color var(--arcade-motion), border-color var(--arcade-motion), box-shadow var(--arcade-motion), opacity var(--arcade-motion) !important;
}
@media (hover: hover) and (pointer: fine) {
  :is(.raundo-app, .round-app, .admin-shell, .raundo-access, .community-dialog)
    :is(button, .outline-button, .acid-button, .primary-button, .back-button, .screen-launch, .preview-link, .admin-access-shortcut):not(:where(:disabled, [aria-disabled=true], .game-open, .promo-dot, .round-cell, .board-cell, .light-cell, .light-tile)):hover {
    background-color: var(--arcade-green) !important;
    border-color: var(--arcade-green) !important;
    color: #171319 !important;
  }
}
:is(.raundo-app, .round-app, .admin-shell, .raundo-access, .community-dialog)
  :is(button, .outline-button, .acid-button, .primary-button, .back-button, .screen-launch, .preview-link, .admin-access-shortcut):not(:where(:disabled, .game-open, .promo-dot, .round-cell, .board-cell, .light-cell, .light-tile)):active {
  background-color: var(--arcade-purple) !important;
  border-color: #ab7bf2 !important;
  color: #fff !important;
}
:is(.raundo-app, .round-app, .admin-shell, .raundo-access, .community-dialog)
  :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--arcade-green);
  outline-offset: 3px;
}
.raundo-reference :is(.card-art, .card-art > img, .promo-reference-image, .promo-color-cutout, .raundo-promo__cta, .game-open, .library-tabs a) {
  transition-duration: 190ms;
  transition-timing-function: ease-out;
}

/* Leave more of the first screen to the catalog. */
.raundo-reference { --header: 60px; }
.raundo-reference:not(.focus-mode) .site-header {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: minmax(165px, 1fr) minmax(140px, 600px) minmax(105px, 1fr);
  grid-template-rows: 44px;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: 1800px;
  height: auto;
  min-height: 60px;
  padding: 7px var(--reference-gutter);
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: var(--arcade-bg) !important;
  box-shadow: none;
  backdrop-filter: none;
}
.raundo-reference:not(.focus-mode) .sidebar:not(.is-open) { display: none; }
.raundo-reference:not(.focus-mode) .sidebar.is-open { --side: 270px; }
.raundo-reference .site-header .logo .wordmark { gap: 9px; }
.raundo-reference .site-header .logo .wordmark img { width: 38px; height: 38px; }
.raundo-reference .site-header .logo .wordmark > span { width: 135px; }
.raundo-reference:not(.focus-mode) .site-header .header-search {
  display: flex;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  gap: 9px;
  margin: 0;
  border: 1px solid var(--arcade-line);
  border-radius: var(--arcade-radius);
  background: #171821;
  transition: border-color var(--arcade-motion);
}
.raundo-reference .site-header .header-search:focus-within { border-color: var(--arcade-green); }
.raundo-reference .site-header .header-search input { min-width: 0; font-size: 15px; }
.raundo-reference .site-header .header-search > svg { width: 18px; height: 18px; }
.raundo-reference:not(.focus-mode) .site-header .profile-trigger {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 180px;
  min-width: 42px;
  height: 42px;
  padding: 4px 9px;
  font-size: 14px;
  border: 1px solid var(--arcade-line);
  overflow: hidden;
}
.raundo-reference .site-header .profile-trigger :is(.member-avatar, .player-avatar) {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
}
@media (min-width: 1025px) {
  .raundo-reference:not(.focus-mode) .site-header .mobile-menu { display: none; }
}
.raundo-reference .main-area > .library-tabs { margin: 0 0 12px; padding-inline: 0; gap: clamp(10px, 2.4vw, 32px); }
.raundo-reference .main-area > .library-tabs > :is(button, a) {
  transition: background-color var(--arcade-motion), color var(--arcade-motion), border-color var(--arcade-motion);
  min-height: 36px;
  padding: 4px 11px;
  border: 1px solid var(--arcade-line);
  border-radius: var(--arcade-radius);
  font-size: clamp(13px, 1.25vw, 18px);
}
.raundo-reference .main-area > .library-tabs > button.selected:not(:active) { border-color: var(--arcade-line); }
.raundo-reference .raundo-promo { height: clamp(125px, 14.5vw, 238px); }
.raundo-reference .raundo-promo-controls { min-height: 41px; }
.raundo-reference .promo-pause { width: 29px; height: 29px; }
.raundo-reference .raundo-genre-nav { margin: 0 0 14px; border-color: var(--arcade-line); }
.raundo-reference .raundo-genre-rail { padding-bottom: 8px; }
.raundo-reference .raundo-genre-rail > button { min-height: 34px; font-size: clamp(13px, 1.3vw, 18px); }
.raundo-reference .raundo-genre-rail > button[aria-pressed=true]::after { bottom: -9px; height: 3px; }
.raundo-reference .genre-arrow { min-height: 36px; font-size: 33px; }
.raundo-reference .collection-heading { margin-bottom: 10px; }
.raundo-reference .collection-heading h2 { font-size: clamp(24px, 2.25vw, 37px); }
.raundo-reference .collection > .catalog-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 13px; }
.raundo-reference .collection .game-card:nth-child(n) .card-art { aspect-ratio: 4 / 3; border-radius: 10px; }
.raundo-reference .collection .card-caption { padding: 5px 2px 0; }
.raundo-reference .collection .card-caption h3 { font-size: clamp(12px, 1.12vw, 17px); line-height: 1.2; }
.raundo-reference .collection .save-card { width: 28px; height: 28px; inset: 5px 5px auto auto; border-color: var(--arcade-line); }
.raundo-reference .collection .game-open .card-art { transition: box-shadow var(--arcade-motion); }
@media (hover: hover) {
  .raundo-reference .collection .game-open:hover .card-art { box-shadow: 0 0 0 2px #8f67b6; }
}
.raundo-reference .collection .save-card svg { width: 15px; height: 15px; }
.raundo-reference .site-footer { margin-top: 28px; border-top: 1px solid var(--arcade-line); padding-block: 20px; }
.raundo-reference .footer-claim { display: none; }

@media (max-width: 1439px) { .raundo-reference .collection > .catalog-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 1179px) { .raundo-reference .collection > .catalog-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1024px) {
  .raundo-reference:not(.focus-mode) .site-header { grid-template-columns: minmax(150px, 1fr) minmax(125px, 2fr) auto 42px; }
  .raundo-reference .collection > .catalog-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 800px) { .raundo-reference .collection > .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .raundo-reference { --header: 88px; }
  .raundo-reference:not(.focus-mode) .site-header {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    grid-template-rows: 40px 34px;
    gap: 4px 8px;
    min-height: 88px;
    padding-block: 5px;
  }
  .raundo-reference:not(.focus-mode) .site-header .header-search { grid-column: 1 / -1; grid-row: 2; height: 34px; }
  .raundo-reference:not(.focus-mode) .site-header .profile-trigger { grid-column: 2; grid-row: 1; padding: 3px 5px; max-width: 44px; height: 38px; }
  .raundo-reference .site-header .logo .wordmark img { width: 33px; height: 33px; }
  .raundo-reference .site-header .logo .wordmark > span { width: 115px; }
  .raundo-reference .main-area > .library-tabs { gap: 5px; margin-bottom: 8px; }
  .raundo-reference .main-area > .library-tabs > :is(button, a) { padding-inline: 5px; min-height: 34px; }
  .raundo-reference .raundo-promo { height: clamp(92px, 28vw, 190px); }
  .raundo-reference .collection > .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 9px; }
}
@media (max-width: 480px) { .raundo-reference .collection > .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Game player, details and recommendations. */
.raundo-reference.game-mode:not(.focus-mode) .main-area {
  width: 100%;
  max-width: 1800px;
  padding: 0 var(--reference-gutter);
  margin: 0 auto;
}
.raundo-reference .game-topline { min-height: 47px; border: 0; margin-bottom: 7px; }
.raundo-reference .game-topline h1 { font-size: clamp(15px, 1.6vw, 24px); font-weight: 800; }
.raundo-reference .game-stage[data-screen=inline] { border: 1px solid var(--arcade-line); border-radius: 13px; }
.raundo-reference :is(.game-action-bar, .game-description-panel, .game-comments, .game-help) {
  background: var(--arcade-panel);
  border: 1px solid var(--arcade-line);
  border-radius: 13px;
  box-shadow: none;
}
@media (min-width: 701px) {
  .raundo-reference.game-mode:not(.focus-mode, .portrait-game) .player-page .game-stage[data-screen=inline] {
    height: clamp(360px, 69dvh, 830px);
  }
}
.raundo-reference .game-action-bar { margin-top: 8px; min-height: 53px; }
.raundo-reference .game-description-panel .description-tabs {
  gap: 7px;
  padding: 10px 12px;
  border-color: var(--arcade-line);
}
.raundo-reference .description-tabs > :is(button, .preview-link) { padding: 7px 11px; min-height: 36px; font-size: 13px; }
.raundo-reference .description-tabs > button[aria-selected=true] {
  background: var(--arcade-purple);
  border-color: #ab7bf2;
  color: #fff;
}
.raundo-reference .description-body { color: #ede9f1; }
.raundo-reference .description-heading h2 { font-size: clamp(19px, 2vw, 27px); }
.raundo-reference .description-body :is(.overview-label, .publisher-original, .control-hint) { color: var(--arcade-muted); }
.raundo-reference .provider-row { color: var(--arcade-muted); margin-block: 10px 14px; }
.raundo-reference .provider-row .report-trigger { padding: 5px 8px; }
.raundo-reference .player-page .player-recommendations {
  gap: 7px;
  padding: 12px;
  background: var(--arcade-panel);
  border: 1px solid var(--arcade-line);
  border-radius: 13px;
}
.raundo-reference .player-recommendations .rail-title { padding: 0 0 8px; }
.raundo-reference .rail-title h2 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.raundo-reference .player-recommendations .related-item { border: 0; padding: 0; }
.raundo-reference .player-recommendations .mini-card .game-open {
  border: 1px solid transparent;
  background: #211d2a;
  transition: background-color var(--arcade-motion), border-color var(--arcade-motion);
}
@media (hover: hover) {
  .raundo-reference .player-recommendations .mini-card .game-open:hover { background: #2b2239; border-color: #8e6eaf; }
}
.raundo-reference .player-recommendations .mini-card .card-art { border-radius: 8px; }
.raundo-reference .player-recommendations .rail-random { min-height: 39px; margin-top: 4px; }
@media (max-width: 700px) {
  .raundo-reference .game-description-panel .description-tabs { padding: 8px; }
  .raundo-reference .description-tabs .preview-link { width: auto; margin: 0; }
  .raundo-reference .player-recommendations .mini-card .game-open { padding: 5px; }
}

.game-stage .raundo-game-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 11px;
  padding: 16px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(ellipse at 50% 40%, #352145, transparent 60%), #11121a;
}
.raundo-game-loader::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  transform: none;
  animation: none;
  background: linear-gradient(135deg, #6728c6 0%, #402370 100%);
  clip-path: polygon(100% 0, 100% 100%, 67% 100%);
  opacity: .6;
}
.raundo-game-loader .raundo-loader-mark {
  display: grid;
  place-items: center;
  width: clamp(43px, 9vmin, 78px);
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid #a879ea;
  background: #201729;
}
.raundo-game-loader::after { content: none; }
.raundo-loader-mark img { width: 72%; height: auto; }
.raundo-game-loader .raundo-loader-label { color: var(--arcade-green); font: 800 11px/1.2 system-ui, sans-serif; letter-spacing: .15em; }
.raundo-game-loader > strong { color: #fff; font: 900 italic clamp(22px, 4.2vmin, 43px)/1 Arial, sans-serif; }
.raundo-game-loader .loader-game-name { color: #dfd6e8; font-size: 13px; overflow-wrap: anywhere; }
.raundo-loader-track { display: block; width: min(72%, 250px); height: 5px; background: #ffffff2e; border-radius: 6px; overflow: hidden; }
.raundo-loader-track i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: var(--arcade-green);
  animation: arcade-loading 1.25s ease-in-out infinite alternate;
}
@keyframes arcade-loading { to { transform: translateX(163%); } }

/* Profile leaderboard. */
.raundo-profile-ranking { padding-top: 14px; }
.raundo-rank-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
  border: 1px solid #9c67d6;
  border-radius: 14px;
  background: linear-gradient(138deg, #292032 47%, #501f92 47%, #7628cb);
}
.raundo-rank-summary > div { display: grid; gap: 3px; }
.raundo-rank-summary span { color: #ede0f9; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.raundo-rank-summary strong { color: var(--arcade-green); font: 900 italic clamp(33px, 7vw, 60px)/1 Arial, sans-serif; }
.raundo-rank-summary small { color: #eee7f6; font-size: 12px; }
.raundo-rank-summary button { min-height: 36px; padding: 5px 11px; background: #21172d; color: #fff; }
.raundo-profile-ranking h3 { margin: 16px 0 9px; font-size: 18px; }
.raundo-rank-list { list-style: none; display: grid; gap: 5px; padding: 0; margin: 0; }
.raundo-rank-row {
  display: grid;
  grid-template-columns: minmax(28px, auto) 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 5px 9px;
  border: 1px solid #3c3349;
  border-radius: 10px;
  background: #1d1926;
}
.raundo-rank-row.is-you { background: #302142; border-color: #b584ef; }
.raundo-rank-row b { color: var(--arcade-green); font: 800 15px/1 system-ui, sans-serif; }
.raundo-rank-row .member-avatar { width: 32px; height: 32px; }
.raundo-rank-row strong { font-size: 13px; overflow-wrap: anywhere; }
.raundo-rank-row strong small { margin-left: 6px; color: var(--arcade-green); }
.raundo-rank-row > span:last-child, .raundo-rank-empty { color: var(--arcade-muted); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  :is(.raundo-reference, .community-dialog, .round-app, .admin-shell, .raundo-access) *,
  :is(.raundo-reference, .community-dialog, .round-app, .admin-shell, .raundo-access) *::before,
  :is(.raundo-reference, .community-dialog, .round-app, .admin-shell, .raundo-access) *::after { transition-duration: .001ms !important; }
  .raundo-loader-track i { animation: none; }
}
