:root {
  color-scheme: light;
  --rr-bg: #f7f8fa;
  --rr-surface: #ffffff;
  --rr-surface-soft: #f1f5f7;
  --rr-ink: #182124;
  --rr-muted: #637176;
  --rr-line: rgba(15, 23, 42, 0.1);
  --rr-line-strong: rgba(15, 23, 42, 0.18);
  --rr-accent: #0891b2;
  --rr-accent-strong: #0e7490;
  --rr-green: #0f766e;
  --rr-gold: #b7791f;
  --rr-red: #b9452f;
  --rr-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, #ffffff 0, var(--rr-bg) 280px),
    var(--rr-bg);
  color: var(--rr-ink);
  font-family:
    Inter, "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
  font-feature-settings: "tnum";
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.rr-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding: 14px 20px 48px;
}

.rr-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 10px 12px;
  position: sticky;
  top: 12px;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.rr-brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.rr-brand-mark {
  align-items: center;
  background: #111827;
  border-radius: 8px;
  color: #ffffff;
  display: inline-grid;
  font-size: 21px;
  font-weight: 850;
  height: 42px;
  place-items: center;
  width: 42px;
}

.rr-brand strong,
.rr-brand small {
  display: block;
  line-height: 1.15;
}

.rr-brand strong {
  font-size: 15px;
  white-space: nowrap;
}

.rr-brand small {
  color: var(--rr-muted);
  font-size: 12px;
  margin-top: 3px;
}

.rr-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.rr-nav a,
.rr-back-link {
  border-radius: 7px;
  color: #324146;
  font-size: 13px;
  font-weight: 720;
  padding: 8px 10px;
  text-decoration: none;
}

.rr-nav a:hover,
.rr-nav a:focus-visible,
.rr-nav a[aria-current="page"],
.rr-back-link:hover,
.rr-back-link:focus-visible {
  background: var(--rr-surface-soft);
  color: var(--rr-accent-strong);
  outline: 0;
}

.rr-nav a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.16);
}

.rr-hero {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  padding: 28px 0 22px;
}

.rr-hero-copy {
  align-content: center;
  display: grid;
  min-height: 300px;
  padding: 8px 0;
}

.rr-kicker {
  color: var(--rr-accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.rr-hero h1,
.rr-show-hero h1 {
  color: #111827;
  font-size: 48px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
  max-width: 780px;
  text-wrap: balance;
  word-break: keep-all;
}

.rr-hero h1 {
  white-space: nowrap;
}

.rr-hero p:not(.rr-kicker),
.rr-show-hero p {
  color: #46545a;
  font-size: 16px;
  line-height: 1.72;
  margin: 18px 0 0;
  max-width: 700px;
}

.rr-hero-actions,
.rr-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.rr-button,
.rr-icon-button,
.rr-mini-button {
  align-items: center;
  border: 1px solid var(--rr-line-strong);
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 760;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  text-decoration: none;
}

.rr-button {
  background: var(--rr-surface);
  color: #253136;
  padding: 9px 13px;
}

.rr-button.primary {
  background: var(--rr-accent);
  border-color: var(--rr-accent);
  color: #ffffff;
}

.rr-button.subtle {
  background: var(--rr-surface-soft);
}

.rr-button.danger,
.rr-mini-button.danger {
  background: #fff4f0;
  border-color: rgba(185, 69, 47, 0.28);
  color: var(--rr-red);
}

.rr-button:hover,
.rr-button:focus-visible,
.rr-icon-button:hover,
.rr-icon-button:focus-visible,
.rr-mini-button:hover,
.rr-mini-button:focus-visible {
  border-color: var(--rr-accent);
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.12);
  outline: 0;
}

.rr-button svg,
.rr-icon-button svg,
.rr-mini-button svg {
  height: 18px;
  width: 18px;
}

.rr-icon-button {
  aspect-ratio: 1;
  background: var(--rr-accent);
  color: #ffffff;
  padding: 0;
  width: 42px;
}

.rr-mini-button {
  background: transparent;
  font-size: 12px;
  min-height: 30px;
  padding: 5px 8px;
}

.rr-hero-art {
  border-radius: 8px;
  box-shadow: var(--rr-shadow);
  min-height: 300px;
  overflow: hidden;
}

.rr-hero-art img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.rr-toolbar {
  align-items: center;
  background: var(--rr-surface);
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  box-shadow: var(--rr-shadow);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 12px;
}

.rr-home-toolbar,
.rr-page-main {
  margin-top: 28px;
}

.rr-search {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.rr-search label,
form label {
  color: #344347;
  font-size: 13px;
  font-weight: 760;
}

.rr-search label {
  white-space: nowrap;
}

.rr-search input,
form input,
form textarea,
form select {
  background: #ffffff;
  border: 1px solid var(--rr-line);
  border-radius: 7px;
  color: var(--rr-ink);
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

input[type="color"] {
  padding: 4px;
}

.rr-search input:focus,
form input:focus,
form textarea:focus,
form select:focus {
  border-color: var(--rr-accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
  outline: 0;
}

.rr-stats {
  align-items: baseline;
  background: #111827;
  border-radius: 7px;
  color: #ffffff;
  display: flex;
  gap: 7px;
  min-width: 130px;
  padding: 9px 11px;
}

.rr-stats strong {
  color: #67e8f9;
  font-size: 22px;
}

.rr-stats span {
  font-size: 13px;
  font-weight: 720;
}

.rr-section-head {
  margin: 4px 0 14px;
}

.rr-section-head.compact {
  margin-top: 0;
}

.rr-section-head h1,
.rr-section-head h2,
.rr-login-copy h1 {
  color: #162125;
  font-size: 24px;
  line-height: 1.18;
  margin: 0;
}

.rr-tool-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rr-tool-card {
  background: var(--rr-surface);
  border: 1px solid var(--rr-line);
  border-top: 3px solid var(--tool-accent, var(--rr-accent));
  border-radius: 8px;
  box-shadow: var(--rr-shadow);
  color: inherit;
  display: grid;
  gap: 14px;
  min-height: 214px;
  padding: 16px;
  text-align: left;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.rr-tool-card:hover,
.rr-tool-card:focus-visible {
  border-color: rgba(8, 145, 178, 0.38);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  outline: 0;
  transform: translateY(-1px);
}

.rr-card-top {
  align-items: start;
  display: flex;
  gap: 12px;
}

.rr-tool-icon {
  align-items: center;
  background: color-mix(in srgb, var(--tool-accent, var(--rr-accent)) 13%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--tool-accent, var(--rr-accent)) 25%, transparent);
  border-radius: 8px;
  color: var(--tool-accent, var(--rr-accent));
  display: inline-grid;
  flex: 0 0 46px;
  font-weight: 850;
  height: 46px;
  place-items: center;
  width: 46px;
}

.rr-tool-card h3 {
  color: #17252a;
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
}

.rr-tool-card p {
  color: #506168;
  font-size: 14px;
  line-height: 1.58;
  margin: 0;
}

.rr-meta,
.rr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rr-meta span,
.rr-tags span {
  background: var(--rr-surface-soft);
  border: 1px solid var(--rr-line);
  border-radius: 999px;
  color: #3e555d;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
}

.rr-tags span:nth-child(2n) {
  background: #fff7df;
  color: #775817;
}

.rr-workbench {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.rr-panel,
.rr-login-card {
  background: var(--rr-surface);
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  box-shadow: var(--rr-shadow);
  padding: 18px;
}

form {
  display: grid;
  gap: 12px;
}

form label {
  display: grid;
  gap: 6px;
}

form textarea {
  min-height: 90px;
  resize: vertical;
}

.rr-form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
}

.rr-form-status {
  color: var(--rr-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.rr-form-status[data-tone="ok"] {
  color: var(--rr-green);
}

.rr-form-status[data-tone="warn"] {
  color: var(--rr-red);
}

.rr-current-account {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.rr-current-account span {
  color: var(--rr-muted);
  font-size: 13px;
  font-weight: 760;
}

.rr-current-account strong,
.rr-current-account em,
.rr-issue em {
  background: var(--rr-surface-soft);
  border-radius: 999px;
  color: #31545c;
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  padding: 6px 9px;
}

.rr-my-tools,
.rr-comment-list,
.rr-feed,
.rr-issue-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.rr-manage-card,
.rr-comment,
.rr-issue {
  background: #fbfcfd;
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  padding: 12px;
}

.rr-manage-card header,
.rr-comment header,
.rr-issue header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.rr-manage-card header strong,
.rr-comment strong,
.rr-issue strong {
  color: #203037;
  font-size: 13px;
}

.rr-comment p,
.rr-issue p {
  color: #506168;
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.rr-inline-form {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 42px;
}

.rr-inline-form textarea {
  min-height: 42px;
}

.rr-empty {
  color: var(--rr-muted);
  margin: 0;
}

.rr-show-page {
  padding-top: 28px;
}

.rr-back-link {
  display: inline-flex;
  margin-bottom: 18px;
}

.rr-show-hero {
  background: var(--rr-surface);
  border: 1px solid var(--rr-line);
  border-top: 4px solid var(--tool-accent, var(--rr-accent));
  border-radius: 8px;
  box-shadow: var(--rr-shadow);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  padding: 22px;
}

.rr-show-page[data-mode="poster"] .rr-show-hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tool-accent, var(--rr-accent)) 14%, #ffffff), #ffffff 58%),
    var(--rr-surface);
}

.rr-show-page[data-mode="embed"] .rr-show-hero {
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
}

.rr-show-note {
  background: color-mix(in srgb, var(--tool-accent, var(--rr-accent)) 8%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--tool-accent, var(--rr-accent)) 18%, transparent);
  border-radius: 8px;
  padding: 12px;
}

.rr-preview {
  background: #eef2f4;
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  height: 280px;
  overflow: hidden;
}

.rr-preview.large {
  min-height: 520px;
  height: min(68vh, 720px);
}

.rr-preview iframe {
  background: #ffffff;
  border: 0;
  height: 100%;
  width: 100%;
}

.rr-show-placeholder {
  align-content: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--tool-accent, var(--rr-accent)) 12%, #ffffff), #f7fafb);
  border: 1px dashed color-mix(in srgb, var(--tool-accent, var(--rr-accent)) 30%, var(--rr-line));
  border-radius: 8px;
  color: var(--rr-muted);
  display: grid;
  gap: 8px;
  min-height: 320px;
  padding: 24px;
}

.rr-show-placeholder strong {
  color: var(--rr-ink);
  font-size: 18px;
}

.rr-comments {
  margin-top: 22px;
}

.rr-auth-body {
  min-height: 100vh;
}

.rr-login-shell {
  align-items: center;
  display: grid;
  gap: 22px;
  justify-items: center;
  min-height: 100vh;
  padding: 28px 18px;
}

.rr-login-brand {
  justify-self: center;
}

.rr-login-card {
  display: grid;
  gap: 22px;
  max-width: 860px;
  width: min(100%, 860px);
}

.rr-login-copy h1 {
  font-size: 28px;
}

.rr-login-copy p:not(.rr-kicker) {
  color: var(--rr-muted);
  line-height: 1.65;
  margin: 10px 0 0;
}

.rr-auth-tabs {
  background: var(--rr-surface-soft);
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
}

.rr-auth-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--rr-muted);
  cursor: pointer;
  font-weight: 780;
  min-height: 42px;
}

.rr-auth-tabs button.active {
  background: var(--rr-surface);
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
  color: var(--rr-ink);
}

.rr-auth-tabs button:focus-visible {
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.16);
  outline: 0;
}

.rr-auth-panels {
  display: grid;
  min-height: 286px;
}

.rr-auth-panels > form {
  align-self: start;
}

.rr-auth-panels > form[hidden] {
  display: none;
}

.icon-fill.mint,
.icon-fill.gold,
.icon-fill.blue,
.icon-fill.coral,
.icon-fill.paper,
.icon-fill.pink {
  fill: currentColor;
  opacity: 0.92;
}

.icon-stroke,
.icon-stroke.bold,
.icon-stroke.fine {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.rr-games-page {
  margin-top: 26px;
}

.rr-games-toolbar {
  align-items: end;
  border-bottom: 1px solid var(--rr-line-strong);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 14px 2px 22px;
}

.rr-games-heading {
  min-width: 0;
}

.rr-games-toolbar h1,
.rr-library-head h2,
.rr-game-create-panel h2 {
  margin: 0;
}

.rr-games-toolbar h1 {
  font-size: 36px;
  letter-spacing: -0.01em;
}

.rr-games-toolbar > div > p:last-child {
  color: var(--rr-muted);
  margin: 8px 0 0;
}

.rr-games-tools {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.rr-game-sort {
  color: var(--rr-muted);
  display: grid;
  font-size: 13px;
  gap: 6px;
}

.rr-game-sort select {
  min-width: 140px;
}

.rr-game-search {
  min-width: min(100%, 340px);
}

.rr-games-layout {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: 320px minmax(0, 1fr);
  margin-top: 26px;
}

.rr-game-create-panel {
  position: sticky;
  top: 92px;
}

.rr-laowang-import {
  border-bottom: 1px solid var(--rr-line);
  margin: -2px 0 22px;
  padding-bottom: 22px;
}

.rr-laowang-import > p {
  color: var(--rr-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 7px 0 14px;
}

.rr-import-purchase {
  align-items: center;
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
}

.rr-import-purchase input {
  margin: 0;
  width: auto;
}

.rr-optional {
  color: var(--rr-muted);
  font-size: 12px;
  font-weight: 500;
}

.rr-library-head {
  align-items: end;
  border-bottom: 1px solid var(--rr-line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
}

.rr-library-head > span {
  background: var(--rr-surface-soft);
  border: 1px solid var(--rr-line);
  border-radius: 999px;
  color: var(--rr-muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
}

.rr-game-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rr-game-card {
  background: var(--rr-surface);
  border: 1px solid var(--rr-line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.rr-game-card:hover {
  border-color: var(--rr-line-strong);
  box-shadow: var(--rr-shadow);
  transform: translateY(-2px);
}

.rr-game-cover {
  align-items: center;
  aspect-ratio: 16 / 8.5;
  background: linear-gradient(135deg, #e3f2f6 0%, #eef2f6 100%);
  border-bottom: 1px solid var(--rr-line);
  color: var(--rr-accent-strong);
  display: flex;
  font-size: 58px;
  font-weight: 850;
  justify-content: center;
  overflow: hidden;
}

.rr-game-cover img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.rr-game-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.rr-game-title-row {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.rr-game-title-row h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}

.rr-game-title-row p,
.rr-game-no-password {
  color: var(--rr-muted);
  font-size: 12px;
  margin: 5px 0 0;
}

.rr-game-title-row .rr-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.rr-game-secret {
  align-items: center;
  background: var(--rr-surface-soft);
  border: 1px dashed var(--rr-line-strong);
  border-radius: 8px;
  display: grid;
  gap: 7px 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-top: 14px;
  padding: 9px 10px;
}

.rr-game-secret-actions {
  align-items: center;
  display: flex;
  gap: 6px;
}

.rr-game-secret span,
.rr-game-secret button {
  font-size: 12px;
}

.rr-game-secret-label {
  color: var(--rr-muted);
  font-weight: 700;
}

.rr-game-secret code {
  color: var(--rr-ink);
  letter-spacing: 0.04em;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rr-game-secret-actions button {
  background: var(--rr-surface);
  border: 1px solid var(--rr-line);
  border-radius: 6px;
  color: var(--rr-accent-strong);
  cursor: pointer;
  font-weight: 700;
  min-height: 28px;
  padding: 4px 10px;
}

.rr-game-secret-actions button:hover,
.rr-game-secret-actions button:focus-visible {
  border-color: var(--rr-accent);
  outline: 0;
}

.rr-game-note {
  background: var(--rr-surface-soft);
  border: 1px solid var(--rr-line);
  border-radius: 6px;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  padding: 9px 10px;
  white-space: pre-wrap;
}

.rr-game-description {
  color: #334155;
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.72;
  margin-top: 14px;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.rr-game-description.is-expanded {
  display: block;
}

.rr-description-toggle {
  align-self: flex-start;
  background: none;
  border: 0;
  color: var(--rr-accent-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  margin-top: 5px;
  padding: 0;
}

.rr-game-edit {
  border-top: 1px solid var(--rr-line);
  margin-top: 16px;
  padding-top: 12px;
}

.rr-game-edit summary {
  color: var(--rr-muted);
  cursor: pointer;
  font-size: 12px;
}

.rr-game-edit form {
  margin-top: 14px;
}

.rr-game-edit-actions {
  display: flex;
  gap: 8px;
}

.rr-image-field {
  display: grid;
  gap: 7px;
}

.rr-image-label {
  font-size: 13px;
  font-weight: 700;
}

.rr-image-field > small {
  color: var(--rr-muted);
  font-size: 11px;
  line-height: 1.5;
}

.rr-image-dropzone {
  background: var(--rr-surface-soft);
  border: 1px dashed var(--rr-line-strong);
  border-radius: 7px;
  cursor: pointer;
  min-height: 104px;
  overflow: hidden;
  padding: 10px;
  position: relative;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.rr-image-dropzone:hover,
.rr-image-dropzone:focus-visible,
.rr-image-dropzone.is-dragging {
  background: #edf8fa;
  border-color: var(--rr-accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
  outline: 0;
}

.rr-image-dropzone input[type="file"] {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.rr-image-empty {
  align-content: center;
  display: grid;
  gap: 5px;
  min-height: 82px;
  text-align: center;
}

.rr-image-empty strong {
  font-size: 13px;
}

.rr-image-empty span {
  color: var(--rr-muted);
  font-size: 11px;
  line-height: 1.45;
}

.rr-image-preview {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: 74px minmax(0, 1fr) auto;
}

.rr-image-preview[hidden],
.rr-image-empty[hidden] {
  display: none;
}

.rr-image-preview img {
  aspect-ratio: 4 / 3;
  background: #dfe8eb;
  border-radius: 5px;
  object-fit: cover;
  width: 74px;
}

.rr-image-preview strong,
.rr-image-preview span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rr-image-preview strong {
  font-size: 12px;
}

.rr-image-preview span {
  color: var(--rr-muted);
  font-size: 11px;
  margin-top: 4px;
}

.rr-image-preview button {
  background: var(--rr-surface);
  border: 1px solid var(--rr-line-strong);
  border-radius: 5px;
  color: var(--rr-red);
  cursor: pointer;
  font-size: 11px;
  padding: 6px 8px;
}

.rr-game-monogram {
  line-height: 1;
}

.rr-game-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.rr-game-foot .rr-mini-button.copied,
.rr-game-secret-actions button.copied {
  background: #ecf7f3;
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--rr-green);
  font-weight: 700;
}

.rr-game-empty {
  align-items: center;
  background: var(--rr-surface);
  border: 1px dashed var(--rr-line-strong);
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  justify-items: center;
  padding: 56px 24px;
  text-align: center;
}

.rr-game-empty h3 {
  font-size: 17px;
  margin: 0;
}

.rr-game-empty p {
  color: var(--rr-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 360px;
}

.rr-game-empty-icon {
  align-items: center;
  background: var(--rr-surface-soft);
  border-radius: 999px;
  color: var(--rr-accent-strong);
  display: inline-grid;
  font-size: 22px;
  height: 46px;
  place-items: center;
  width: 46px;
}

.rr-game-skeleton .rr-game-cover {
  animation: rr-game-pulse 1.4s ease-in-out infinite;
  background: #eef3f4;
}

.rr-game-skeleton-line {
  animation: rr-game-pulse 1.4s ease-in-out infinite;
  background: #eef3f4;
  border-radius: 4px;
  display: block;
  height: 12px;
  margin-top: 10px;
  width: 62%;
}

.rr-game-skeleton-line.wide {
  margin-top: 0;
  width: 86%;
}

.rr-game-skeleton-line.short {
  width: 38%;
}

@keyframes rr-game-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 1040px) {
  .rr-hero,
  .rr-show-hero,
  .rr-show-page[data-mode="embed"] .rr-show-hero {
    grid-template-columns: 1fr;
  }

  .rr-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rr-games-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .rr-game-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .rr-shell {
    padding: 12px 12px 34px;
  }

  .rr-header,
  .rr-toolbar,
  .rr-search {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .rr-header,
  .rr-toolbar,
  .rr-search {
    flex-direction: column;
  }

  .rr-nav {
    justify-content: flex-start;
  }

  .rr-hero h1,
  .rr-show-hero h1 {
    font-size: 34px;
    white-space: normal;
  }

  .rr-hero-copy {
    min-height: auto;
  }

  .rr-hero-art {
    min-height: 220px;
  }

  .rr-tool-grid,
  .rr-workbench,
  .rr-form-row,
  .rr-inline-form {
    grid-template-columns: 1fr;
  }

  .rr-icon-button {
    aspect-ratio: auto;
    min-height: 42px;
    width: 100%;
  }

  .rr-games-toolbar,
  .rr-game-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .rr-games-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .rr-game-sort select {
    width: 100%;
  }

  .rr-games-toolbar h1 {
    font-size: 32px;
  }

  .rr-game-search {
    min-width: 0;
    width: 100%;
  }

  .rr-games-layout {
    grid-template-columns: 1fr;
  }

  .rr-game-create-panel {
    position: static;
  }

  .rr-game-title-row .rr-button {
    text-align: center;
  }

  .rr-game-secret {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .rr-game-secret .rr-game-secret-label {
    grid-column: 1 / -1;
  }

  .rr-game-secret-actions {
    grid-column: 2;
  }
}
