* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 72% 0%, rgba(125, 94, 232, 0.22), transparent 36%),
    radial-gradient(circle at 18% 18%, rgba(232, 90, 168, 0.1), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 55%, var(--bg-deep) 100%);
  font-family: Onest, system-ui, sans-serif;
  font-weight: 600;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle at 8% 12%, rgba(255, 242, 231, 0.46) 0 1px, transparent 1.7px),
    radial-gradient(circle at 42% 15%, rgba(255, 242, 231, 0.3) 0 1px, transparent 1.7px),
    radial-gradient(circle at 82% 8%, rgba(255, 242, 231, 0.38) 0 1px, transparent 1.7px),
    linear-gradient(rgba(132, 109, 210, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 109, 210, 0.028) 1px, transparent 1px);
  background-size: 360px 220px, 380px 240px, 340px 210px, 42px 42px, 42px 42px;
  opacity: 0.62;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

button,
a,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1140px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
}

/* СЃС‚СЂР°РЅРёС†С‹ Р±РµР· РґР»РёРЅРЅРѕРіРѕ РєРѕРЅС‚РµРЅС‚Р°: С„СѓС‚РµСЂ РїСЂРёР¶Р°С‚ Рє РЅРёР·Сѓ РІСЊСЋРїРѕСЂС‚Р° */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.1;
}

.brand span span {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.logo-slot {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 200, 106, 0.28);
  border-radius: 19px;
  background: #050507;
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button,
.copy-button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 800;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--text);
  text-decoration: none;
}

.button-primary {
  color: #fff8ef;
  background: linear-gradient(180deg, #f06dad 0%, #c84987 100%);
  box-shadow: 0 12px 30px rgba(232, 90, 168, 0.28);
}

.button-secondary {
  border: 1px solid rgba(132, 109, 210, 0.28);
  background: rgba(255, 255, 255, 0.055);
}


.meta-label {
  color: var(--accent-warm);
  font-size: 0.76rem;
  font-weight: 800;
}


.meta-label {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: #fff3e7;
  font-size: clamp(2.2rem, 4.1vw, 3.35rem);
  font-weight: 900;
  line-height: 0.95;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.2;
}

p {
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.55;
}

.meta-card,
.side-card,
.chat-card {
  min-width: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.meta-card {
  position: relative;
  display: grid;
  align-content: center;
  height: 100%;
  min-height: 126px;
  overflow: hidden;
  padding: 20px 22px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 48%, rgba(168, 95, 255, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(31, 26, 68, 0.94), rgba(10, 16, 42, 0.96));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.meta-card-level {
  border-color: rgba(255, 255, 255, 0.09);
}

.meta-card strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 62%;
  margin-top: 10px;
  color: #fffaf4;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  font-weight: 900;
  line-height: 1.08;
  hyphens: auto;
}

.meta-card .meta-label {
  position: relative;
  z-index: 1;
  color: #a875ff;
  font-size: 0.74rem;
}

.meta-note {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 52%;
  margin-top: 8px;
  color: rgba(232, 222, 239, 0.66);
  font-size: 0.78rem;
  font-weight: 600;
}

.meta-card-art {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.meta-card-art-pinecone {
  right: 12px;
  bottom: 8px;
  width: auto;
  height: calc(100% - 22px);
}

.copy-button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  color: rgba(255, 242, 231, 0.68);
  border: 1px solid rgba(255, 200, 106, 0.14);
  background: rgba(255, 255, 255, 0.032);
  font-size: 0.78rem;
}

.side-card {
  position: relative;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  height: 100%;
  min-height: 220px;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 42%, rgba(168, 95, 255, 0.2), transparent 44%),
    linear-gradient(145deg, rgba(17, 24, 47, 0.94), rgba(29, 23, 49, 0.92));
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.side-card:focus-visible {
  outline: 2px solid rgba(255, 122, 203, 0.85);
  outline-offset: 3px;
}

.side-card::before {
  content: "";
  display: none;
}

.side-card-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  align-content: start;
  max-width: 210px;
}

.side-card-copy .button {
  justify-self: start;
  min-height: 44px;
  margin-top: 10px;
}

.side-card p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

.side-card-art {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: auto;
  height: auto;
  max-height: calc(100% - 24px);
  object-fit: contain;
  pointer-events: none;
  transform: translateY(-50%);
  user-select: none;
}

.side-card-art-wishlist {
  right: 10px;
  height: min(210px, calc(100% - 24px));
  max-width: min(48%, 190px);
}


.chat-card {
  height: 664px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 20%, rgba(232, 90, 168, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(15, 20, 40, 0.96), rgba(20, 18, 37, 0.94));
}

.participant-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid rgba(132, 109, 210, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.034);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(255, 241, 223, 0.08);
}

.avatar-clay img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.participant-row strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-you {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #f0eaff;
  background: rgba(125, 94, 232, 0.24);
  font-size: 0.75rem;
  font-weight: 800;
}

.chat-card {
  display: grid;
  grid-column: span 2;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 22px 20px;
}

.chat-tabs {
  display: grid;
  grid-template-columns: minmax(120px, 0.72fr) repeat(2, minmax(130px, 1fr));
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(132, 109, 210, 0.13);
  border-radius: 16px;
  background: rgba(7, 9, 20, 0.22);
}

.chat-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  color: rgba(232, 222, 239, 0.68);
  border: 0;
  border-radius: 14px;
  background: transparent;
  font-weight: 700;
}

.chat-tab.is-active {
  color: #fff8ef;
  background: linear-gradient(180deg, #f06dad 0%, #c84987 100%);
  box-shadow: 0 14px 32px rgba(232, 90, 168, 0.28);
}

.chat-tab.is-locked span:last-child {
  color: rgba(185, 180, 208, 0.58);
  font-size: 0.78rem;
}

.chat-feed {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(255, 200, 106, 0.28) rgba(7, 9, 20, 0.18);
  scrollbar-width: thin;
}

.chat-panel[hidden] {
  display: none;
}

.chat-system {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(100%, 420px);
  min-height: 44px;
  padding: 8px 16px;
  color: rgba(232, 222, 239, 0.72);
  border: 1px solid rgba(132, 109, 210, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.038);
  font-weight: 500;
}

.event-gift::before {
  content: "🎁";
}

.event-spark::before {
  content: "🎄";
}

.chat-message {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.chat-author {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #9fb5ff;
  font-size: 0.86rem;
  font-weight: 800;
}

.chat-author time {
  color: rgba(185, 180, 208, 0.58);
  font-size: 0.74rem;
  font-weight: 500;
}

.chat-message p {
  max-width: 100%;
  margin: 4px 0 0;
  padding: 10px 14px;
  color: rgba(255, 242, 231, 0.9);
  border: 1px solid rgba(132, 109, 210, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.042);
  font-size: 0.94rem;
  line-height: 1.35;
}

.chat-message-own .chat-author {
  color: #ffc86a;
}

.chat-message-own p {
  border-color: rgba(255, 200, 106, 0.22);
  background: rgba(255, 200, 106, 0.078);
}

.chat-message-anonymous .chat-author {
  color: #d9ccff;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(132, 109, 210, 0.16);
  border-radius: 18px;
  background: rgba(7, 9, 20, 0.34);
}

.chat-composer input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.chat-composer input::placeholder {
  color: rgba(185, 180, 208, 0.72);
}

.chat-composer button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #f06dad 0%, #c84987 100%);
  box-shadow: 0 14px 30px rgba(232, 90, 168, 0.28);
}

.chat-composer button span {
  width: 20px;
  height: 18px;
  background: #fff8ef;
  clip-path: polygon(0 43%, 100% 0, 63% 100%, 43% 60%);
  transform: translateX(1px) rotate(-8deg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {

  .meta-card {
    min-height: 96px;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .meta-card strong {
    max-width: 62%;
    margin-top: 6px;
    font-size: clamp(1rem, 2vw, 1.22rem);
  }

  .meta-card .meta-label {
    font-size: 0.68rem;
  }

  .meta-note {
    max-width: 48%;
    margin-top: 5px;
    font-size: 0.68rem;
  }

  .meta-card-art-pinecone {
    right: 6px;
    bottom: 5px;
    height: calc(100% - 18px);
  }
}

@media (max-width: 960px) {

  .side-card {
    grid-template-columns: 1fr;
    min-height: 112px;
    padding: 0;
    border-radius: 18px;
  }

  .side-card-copy {
    position: static;
    justify-items: start;
    align-content: stretch;
    gap: 0;
    max-width: none;
    min-height: 100%;
    padding-top: 0;
    text-align: left;
  }

  .side-card-copy .button {
    display: none;
  }

  .side-card h2 {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    max-width: calc(100% - 28px);
    margin-bottom: 0;
    color: #fffaf4;
    font-size: 0.98rem;
    line-height: 0.98;
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  }

  .side-card p {
    display: none;
  }

  .side-card-art {
    top: 50%;
    bottom: auto;
    opacity: 1;
    height: calc(100% - 18px);
    max-height: calc(100% - 18px);
    transform: translateY(-50%);
  }

  .side-card-art-wishlist {
    right: auto;
    left: 50%;
    width: auto;
    max-width: 42%;
    transform: translate(-50%, -50%);
  }

  
  .chat-card {
    grid-column: 1 / -1;
  }

  .participant-row {
    display: flex;
    flex: 0 0 104px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 104px;
    min-height: 132px;
    padding: 10px 8px 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.032)),
      rgba(255, 255, 255, 0.045);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.055),
      0 12px 26px rgba(0, 0, 0, 0.18);
    text-align: center;
    scroll-snap-align: start;
  }

  .participant-row .avatar {
    width: 82px;
    height: 82px;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
      radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 44%),
      rgba(9, 13, 31, 0.72);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 8px 18px rgba(0, 0, 0, 0.25);
  }

  .participant-row .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .participant-row strong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    min-width: 0;
    height: 18px;
    margin-top: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
  }

  .inline-you {
    flex: 0 0 auto;
    min-height: 0;
    margin-left: 4px;
    padding: 2px 6px;
    color: #d9c2ff;
    border-radius: 999px;
    background: rgba(168, 95, 255, 0.25);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
  }
}

@media (max-width: 760px) {

  .meta-card {
    min-height: 108px;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .meta-card strong {
    max-width: 62%;
    font-size: clamp(1rem, 4.4vw, 1.22rem);
  }

  .meta-card .meta-label {
    font-size: 0.68rem;
  }

  .meta-note {
    max-width: 48%;
    font-size: 0.68rem;
  }

  .meta-card-art-pinecone {
    right: 6px;
    bottom: 5px;
    height: calc(100% - 18px);
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 32px);
    padding: 18px 0 44px;
  }

  .app-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 8px;
  }

  /* СЂР°СЃС‚РІРѕСЂСЏРµРј nav, С‡С‚РѕР±С‹ РїСЂРѕС„РёР»СЊ РІСЃС‚Р°Р» РІ РѕРґРЅСѓ СЃС‚СЂРѕРєСѓ СЃ Р±СЂРµРЅРґРѕРј,
     Р° В«РњРѕРё РёРіСЂС‹В» СѓС€Р»Р° РЅР° СЃС‚СЂРѕРєСѓ РЅРёР¶Рµ */
  .header-actions {
    display: contents;
  }

  .brand {
    flex: 1 1 auto;
  }

  .header-actions .button {
    order: 1;
    flex-basis: 100%;
  }

  .logo-slot {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .meta-card {
    min-height: 106px;
    padding: 14px 12px;
    border-radius: 16px;
  }

  .meta-card strong {
    max-width: 62%;
    font-size: clamp(0.98rem, 4.8vw, 1.18rem);
  }

  .meta-note {
    max-width: 48%;
    font-size: 0.66rem;
  }

  .meta-card-art-pinecone {
    right: 5px;
    bottom: 6px;
    width: auto;
    height: calc(100% - 22px);
  }

  h1 {
    font-size: clamp(1.72rem, 10vw, 2.2rem);
  }

  .side-card {
    min-height: 106px;
    padding: 0;
  }

  .goodboy-card h2 {
    font-size: 0.82rem;
  }

  .side-card h2 {
    left: 12px;
    bottom: 12px;
    font-size: 0.82rem;
  }

  .side-card-art-wishlist {
    top: 50%;
    right: auto;
    left: 50%;
    height: calc(100% - 18px);
    transform: translate(-50%, -50%);
  }

  .chat-card {
    height: auto;
    min-height: 780px;
    gap: 14px;
    padding: 18px;
  }

  .chat-tabs {
    grid-template-columns: minmax(84px, 1fr) repeat(2, minmax(76px, 1fr));
    gap: 4px;
  }

  .chat-tab {
    flex-direction: column;
    gap: 2px;
    min-height: 42px;
    padding: 0 6px;
    font-size: 0.66rem;
    line-height: 1.04;
  }

  .chat-tab.is-active {
    font-size: 0.76rem;
  }

  .chat-tab.is-locked span:last-child {
    font-size: 0.58rem;
  }

  .chat-system {
    width: 100%;
    justify-content: center;
    padding-inline: 12px;
    font-size: 0.86rem;
    text-align: center;
  }

  .chat-message {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
  }

  .chat-message .avatar {
    width: 36px;
    height: 36px;
    border-radius: 13px;
  }

  .chat-message p {
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  .chat-composer {
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 6px;
    padding: 7px;
  }

  .chat-composer button {
    width: 46px;
    height: 42px;
  }
}

/* ===== РЎС‚СЂР°РЅРёС†Р° В«РњРѕРё РёРіСЂС‹В» ===== */

.game-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-row {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.game-row-body {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  min-width: 0;
  padding: 20px 24px;
}

.game-row-main {
  flex: 1 1 320px;
  min-width: 0;
}

.game-row:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.game-row:focus-within {
  border-color: var(--accent);
}

.game-row h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
}

.game-row-title {
  color: var(--text);
  text-decoration: none;
}

.game-row-title::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
}

.game-row-title:focus-visible {
  outline: none;
}

.game-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
}

.game-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.game-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.game-status-waiting {
  border-color: rgba(255, 200, 106, 0.3);
  background: rgba(255, 200, 106, 0.1);
  color: var(--accent-warm);
}

.game-status-waiting i {
  background: var(--accent-warm);
  box-shadow: 0 0 8px rgba(255, 200, 106, 0.65);
}

.game-status-live {
  border-color: rgba(143, 178, 232, 0.3);
  background: rgba(143, 178, 232, 0.1);
  color: var(--frost);
}

.game-status-live i {
  background: var(--frost);
  box-shadow: 0 0 8px rgba(143, 178, 232, 0.6);
}

.game-row-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
}

/* РѕР±Р»РѕР¶РєР°-bleed: РЅР° РІСЃСЋ РІС‹СЃРѕС‚Сѓ РєР°СЂС‚РѕС‡РєРё, СЃРІРµС‚РёС‚ С‚РёРЅС‚РѕРј РІРЅСѓС‚СЂСЊ СЃС‚СЂРѕРєРё;
   --tint Р·Р°РґР°СЋС‚ РјРѕРґРёС„РёРєР°С‚РѕСЂС‹ cover-*; РїРѕРєР° Р°СЂС‚ РЅРµ СЃРіРµРЅРµСЂС‘РЅ, РїРѕ С†РµРЅС‚СЂСѓ СЌРјРѕРґР·Рё
   (clay-РѕР±Р»РѕР¶РєРё вЂ” СЃРј. docs/illustration-guide.md) */
.game-cover {
  --tint: 143, 178, 232;

  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 104px;
  overflow: hidden;
  border-right: 1px solid rgba(var(--tint), 0.2);
  background:
    radial-gradient(circle at 32% 28%, rgba(var(--tint), 0.4), transparent 72%),
    linear-gradient(165deg, rgba(var(--tint), 0.22), rgba(var(--tint), 0.05));
  box-shadow: 22px 0 80px -16px rgba(var(--tint), 0.5);
  font-size: 2.4rem;
  text-shadow: 0 6px 24px rgba(var(--tint), 0.55);
}

.cover-amber {
  --tint: 255, 200, 106;
}

.cover-pine {
  --tint: 116, 217, 156;
}

.game-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* РёРЅРґРёРІРёРґСѓР°Р»СЊРЅС‹Р№ СЃРґРІРёРі РєСЂРѕРїР°: РЅР° img РїРёС€РµРј style="--art-pos: 35% 50%" */
  object-position: var(--art-pos, 50% 50%);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(116, 217, 156, 0.32);
  border-radius: 999px;
  background: rgba(116, 217, 156, 0.09);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
}

.role-badge--admin {
  border-color: rgba(255, 200, 106, 0.35);
  background: rgba(255, 200, 106, 0.12);
  color: var(--accent-warm);
}

.join-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: 26px;
  padding: 22px 26px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.join-card-art {
  flex: 0 0 auto;
  height: 78px;
  margin: -6px 0;
}

.join-card h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.join-card p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 760px) {

  .game-row-body {
    padding: 16px 18px;
  }

  .game-cover {
    flex-basis: 72px;
    font-size: 1.9rem;
  }

  .game-status {
    margin-left: 0;
  }

  .join-card-art {
    height: 64px;
  }

  .join-card {
    padding: 18px;
  }

  .join-card .button {
    width: 100%;
  }
}

/* С‚РµРјР°С‚РёС‡РµСЃРєРёРµ hero-СЃС†РµРЅС‹ СЃС‚СЂР°РЅРёС† РёРіСЂ (СЃРј. docs/illustration-guide.md, Рї. 5.1);
   РІ РєРѕРЅС†Рµ С„Р°Р№Р»Р°, С‡С‚РѕР±С‹ background-image РїРѕР±РµР¶РґР°Р» Рё РІ РјРѕР±РёР»СЊРЅС‹С… РјРµРґРёР°Р·Р°РїСЂРѕСЃР°С… */

/* С„РѕРЅ kids-Р°СЂС‚Р° СЏСЂС‡Рµ РЅРѕСЂРјС‹ РіР°Р№РґР° (Рї. 5.1) вЂ” СЃРІРѕРґРёРј РєСЂР°СЏ СѓРґР»РёРЅС‘РЅРЅС‹Рј Р·Р°С‚РµРјРЅРµРЅРёРµРј;
   РїСЂРё РїРµСЂРµРіРµРЅРµСЂР°С†РёРё Р°СЂС‚Р° СЃ С„РѕРЅРѕРј ~#0d1024 РїСЂР°РІРёР»Рѕ РјРѕР¶РЅРѕ СѓР±СЂР°С‚СЊ */

/* ===== РЎС‚СЂР°РЅРёС†Р° РїРѕРґРѕРїРµС‡РЅРѕРіРѕ ===== */

.goodboy-page {
  width: min(1180px, calc(100vw - 32px));
}

.goodboy-card {
  min-width: 0;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 86% 14%, rgba(232, 90, 168, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(15, 20, 40, 0.96), rgba(20, 18, 37, 0.94));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.goodboy-eyebrow {
  color: var(--accent-warm);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.goodboy-card {
  border-radius: var(--radius-lg);
}

.goodboy-profile-card {
  position: relative;
  min-height: 326px;
  overflow: hidden;
  padding: 30px;
  background:
    radial-gradient(circle at 78% 22%, rgba(116, 217, 156, 0.2), transparent 34%),
    radial-gradient(circle at 28% 96%, rgba(125, 94, 232, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(15, 20, 40, 0.96), rgba(22, 19, 42, 0.94));
}

.goodboy-profile-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 270px;
  height: 270px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 200, 106, 0.08);
  filter: blur(2px);
}

.goodboy-profile-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: calc(100% - 190px);
}

.goodboy-profile-copy h2,
.goodboy-card-head h2,
.goodboy-wishlist-head h2 {
  margin: 4px 0 0;
  color: #fff7ee;
  font-size: 1.7rem;
  line-height: 1.08;
}

.goodboy-profile-copy p {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: rgba(232, 222, 239, 0.86);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.goodboy-portrait {
  position: absolute;
  right: 22px;
  bottom: 0;
  z-index: 1;
  aspect-ratio: 1;
  width: auto;
  height: 50%;
  margin: 0;
  overflow: visible;
  border-radius: 0;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.44));
}

.goodboy-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}


.goodboy-hints-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.goodboy-card-head {
  display: grid;
  gap: 2px;
}

.goodboy-hint-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: rgba(232, 222, 239, 0.86);
  list-style: none;
}

.goodboy-hint-list li {
  position: relative;
  padding-left: 20px;
  font-weight: 600;
  line-height: 1.42;
}

.goodboy-hint-list li::before {
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 12px rgba(255, 200, 106, 0.55);
}

.goodboy-note-line {
  display: flex;
  position: relative;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px 10px 48px;
  margin: 0;
  color: rgba(232, 222, 239, 0.84);
  border: 1px solid rgba(143, 178, 232, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(143, 178, 232, 0.06);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.36;
}

.goodboy-note-line::before {
  position: absolute;
  left: 14px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  content: "i";
  color: #0d1024;
  border-radius: 50%;
  background: var(--frost);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

.goodboy-wishlist-card {
  position: sticky;
  top: 18px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px;
  height: calc(100svh - 40px);
  min-height: 760px;
  max-height: 920px;
  padding: 28px;
}

.goodboy-wishlist-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.goodboy-wishlist-note {
  margin: 0;
  color: rgba(232, 222, 239, 0.78);
  font-size: 0.92rem;
}

.goodboy-wishlist-list {
  display: grid;
  gap: 9px;
  min-height: 0;
  margin: 0;
  padding: 0 5px 0 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: rgba(255, 200, 106, 0.32) rgba(7, 9, 20, 0.18);
  scrollbar-width: thin;
}

.wishlist-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 78px 34px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  color: rgba(255, 242, 231, 0.92);
  border: 1px solid rgba(132, 109, 210, 0.13);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.wishlist-row:hover {
  border-color: rgba(255, 200, 106, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.wishlist-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: rgba(255, 242, 231, 0.78);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 900;
}

.wishlist-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
}

.wishlist-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--frost);
  border: 1px solid rgba(143, 178, 232, 0.2);
  border-radius: 12px;
  background: rgba(143, 178, 232, 0.07);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.wishlist-link:hover,
.wishlist-link:focus-visible {
  color: #fff7ee;
  border-color: rgba(255, 200, 106, 0.34);
  background: rgba(255, 200, 106, 0.1);
  outline: none;
}

.goodboy-action-bar {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(132, 109, 210, 0.16);
}

.goodboy-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.goodboy-status-action {
  min-height: 58px;
  width: 100%;
  color: rgba(255, 242, 231, 0.88);
  border: 1px solid rgba(143, 178, 232, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 178, 232, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.052);
  font-size: 1rem;
  box-shadow: none;
}

.goodboy-status-action:hover,
.goodboy-status-action.is-active {
  color: #fff7ee;
  border-color: rgba(255, 200, 106, 0.34);
  background: rgba(255, 200, 106, 0.1);
}

.goodboy-action-bar p {
  margin: 0;
  color: rgba(185, 180, 208, 0.78);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 1020px) {

  .goodboy-wishlist-card {
    position: static;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .goodboy-wishlist-list {
    max-height: 620px;
  }
}

@media (max-width: 760px) {

  .goodboy-profile-card {
    min-height: 292px;
    padding: 24px;
  }

  .goodboy-profile-copy {
    max-width: calc(100% - 138px);
    padding-right: 0;
  }

  .goodboy-portrait {
    right: 18px;
    bottom: 0;
    width: auto;
    height: 50%;
  }

  
  .goodboy-action-buttons {
    grid-template-columns: 1fr;
  }

  .goodboy-wishlist-card {
    padding: 22px;
  }

  .goodboy-wishlist-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .goodboy-profile-card {
    display: grid;
    gap: 18px;
  }

  .goodboy-profile-copy {
    max-width: calc(100% - 118px);
  }

  .goodboy-portrait {
    position: absolute;
    right: 14px;
    bottom: 0;
    width: auto;
    height: 50%;
    margin: 0;
  }

  .wishlist-row {
    grid-template-columns: 32px minmax(0, 1fr) 66px 30px;
    gap: 8px;
    padding: 8px;
  }

  .wishlist-number {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .wishlist-text {
    font-size: 0.88rem;
  }

  .wishlist-link {
    min-height: 30px;
    padding: 0 8px;
    font-size: 0.72rem;
  }
}

/* ===== РЎС‚СЂР°РЅРёС†Р° РїРѕРґРѕРїРµС‡РЅРѕРіРѕ: С„РёРЅР°Р»СЊРЅС‹Р№ РјР°РєРµС‚ ===== */

.goodboy-page {
  width: min(1220px, calc(100vw - 32px));
  padding-bottom: 28px;
}

.goodboy-page .app-header {
  margin-bottom: 28px;
}

.goodboy-page .header-actions .button-secondary {
  border-color: rgba(143, 126, 238, 0.28);
  background:
    radial-gradient(circle at 26% 0%, rgba(143, 126, 238, 0.2), transparent 58%),
    rgba(255, 255, 255, 0.055);
}

.goodboy-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(143, 178, 232, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 18%, rgba(232, 90, 168, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(12, 20, 44, 0.96), rgba(18, 17, 42, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    var(--shadow-card);
  backdrop-filter: blur(18px);
}

.goodboy-eyebrow {
  color: #ffd246;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.goodboy-profile-card {
  position: relative;
  min-height: 308px;
  padding: 28px 30px;
  border-color: rgba(143, 178, 232, 0.1);
  background:
    radial-gradient(circle at 74% 33%, rgba(255, 198, 92, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(8, 18, 39, 0.34) 0%, rgba(9, 20, 43, 0.18) 46%, rgba(18, 20, 47, 0.04) 100%),
    url("assets/goodboy-page/sonya-night-city.webp") center / cover;
}

.goodboy-profile-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 56% 40%, rgba(255, 198, 92, 0.18), transparent 3px),
    radial-gradient(circle at 44% 62%, rgba(255, 198, 92, 0.16), transparent 2px),
    linear-gradient(180deg, transparent 0%, rgba(5, 8, 21, 0.08) 100%);
  pointer-events: none;
}

.goodboy-profile-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  max-width: 260px;
  text-shadow: 0 3px 14px rgba(2, 5, 18, 0.58);
}

.goodboy-profile-copy h2 {
  margin: 0;
  color: #fff7ee;
  font-size: clamp(3.6rem, 8vw, 4.95rem);
  font-weight: 900;
  line-height: 0.94;
}

.goodboy-group-chip {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  max-width: 100%;
  min-height: 60px;
  padding: 8px 16px 8px 8px;
  color: #fff7ee;
  border: 1px solid rgba(143, 126, 238, 0.18);
  border-radius: 10px;
  background: rgba(10, 16, 36, 0.46);
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.goodboy-group-chip .game-cover {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
}

.goodboy-group-chip span:last-child {
  display: grid;
  gap: 3px;
  font-weight: 800;
  line-height: 1.22;
}

.goodboy-group-chip small {
  color: rgba(232, 222, 239, 0.68);
  font-size: 0.76rem;
  font-weight: 600;
}

.goodboy-portrait {
  position: absolute;
  right: 10px;
  bottom: -8px;
  z-index: 1;
  width: min(54%, 300px);
  height: 96%;
  margin: 0;
  overflow: visible;
  border-radius: 0;
  filter: drop-shadow(0 28px 38px rgba(2, 5, 18, 0.44));
}

.goodboy-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.goodboy-info-card {
  position: relative;
  display: grid;
  min-height: 170px;
  padding: 28px 30px;
}

.goodboy-card-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  justify-items: start;
  max-width: 64%;
}

.goodboy-card-copy strong {
  color: #fff7ee;
  font-size: clamp(1.82rem, 4vw, 2.55rem);
  font-weight: 900;
  line-height: 1;
}

.goodboy-card-copy p {
  margin: 0;
  color: rgba(232, 222, 239, 0.82);
  font-size: 1rem;
  line-height: 1.55;
}

.goodboy-card-copy small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(232, 222, 239, 0.66);
  font-size: 0.83rem;
  line-height: 1.35;
}

.goodboy-card-copy small::before {
  content: "◇";
  color: rgba(143, 178, 232, 0.82);
  font-size: 0.84rem;
}

.goodboy-budget-card {
  background:
    radial-gradient(circle at 72% 46%, rgba(255, 198, 92, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(8, 27, 52, 0.94), rgba(19, 17, 47, 0.94));
}

.goodboy-status-card {
  min-height: 116px;
  padding-block: 24px;
  border-color: rgba(116, 217, 156, 0.28);
  background:
    radial-gradient(circle at 72% 34%, rgba(116, 217, 156, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(8, 27, 52, 0.94), rgba(24, 17, 43, 0.94));
}

.goodboy-status-card .goodboy-card-copy {
  max-width: calc(100% - 180px);
  gap: 9px;
}

.goodboy-status-card strong {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.24rem;
}

.goodboy-status-card strong::before {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  content: "✓";
  color: #0d1024;
  border-radius: 50%;
  background: #74d99c;
  font-size: 0.86rem;
  font-weight: 900;
}

.goodboy-card-art {
  position: absolute;
  z-index: 1;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 22px 28px rgba(2, 5, 18, 0.34));
}

.goodboy-card-art--gift {
  right: 18px;
  bottom: -14px;
  width: min(40%, 190px);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  color: #b7c6ff;
  border: 1px solid rgba(143, 178, 232, 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 178, 232, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  color: #fff7ee;
  border-color: rgba(255, 210, 70, 0.38);
  background: rgba(255, 210, 70, 0.1);
  outline: none;
}

.goodboy-hints-card {
  display: grid;
  gap: 18px;
  padding: 30px;
  background:
    radial-gradient(circle at 96% 0%, rgba(232, 90, 168, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(10, 25, 49, 0.96), rgba(24, 16, 48, 0.96));
}

.goodboy-card-head {
  display: grid;
  gap: 9px;
}

.goodboy-card-head h2 {
  margin: 0;
}

.goodboy-card-head p {
  margin: 0;
  color: rgba(232, 222, 239, 0.74);
  font-size: 0.96rem;
  line-height: 1.48;
}

.goodboy-hint-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: rgba(232, 222, 239, 0.84);
  list-style: none;
}

.goodboy-hint-list li {
  position: relative;
  padding-left: 24px;
  font-weight: 600;
  line-height: 1.42;
}

.goodboy-hint-list li::before {
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 210, 70, 0.92);
  box-shadow: 0 0 10px rgba(255, 210, 70, 0.44);
}

.goodboy-note-line {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  margin: 0;
  padding: 12px 14px 12px 58px;
  border: 1px solid rgba(143, 178, 232, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.052);
  color: rgba(232, 222, 239, 0.78);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.34;
}

.goodboy-note-line::before {
  position: absolute;
  left: 18px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  content: "i";
  color: #0d1024;
  border-radius: 50%;
  background: #aebdff;
  font-size: 1rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.goodboy-note-line a {
  color: inherit;
  text-decoration: none;
}

.goodboy-note-line a:hover,
.goodboy-note-line a:focus-visible {
  color: #fff7ee;
  outline: none;
}

.goodboy-note-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #ffd246;
  border-radius: 999px;
  background: rgba(255, 210, 70, 0.1);
  font-size: 0.74rem;
  font-weight: 900;
}

.goodboy-wishlist-card {
  position: sticky;
  top: 18px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 30px;
  background:
    radial-gradient(circle at 72% 0%, rgba(143, 126, 238, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(13, 19, 43, 0.98), rgba(18, 17, 42, 0.98));
}

.goodboy-wishlist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.goodboy-wishlist-head h2 {
  margin: 10px 0 0;
  color: #fff7ee;
  font-size: clamp(2.4rem, 4.2vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
}

.goodboy-wishlist-note {
  margin: 0;
  max-width: 650px;
  color: rgba(232, 222, 239, 0.78);
  font-size: 1rem;
  line-height: 1.55;
}

.goodboy-wishlist-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  margin: 8px 0 0;
  padding: 0;
  overflow: visible;
  list-style: none;
}

.wishlist-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  color: rgba(255, 242, 231, 0.92);
  border: 1px solid rgba(143, 126, 238, 0.17);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 50%, rgba(143, 126, 238, 0.07), transparent 32%),
    rgba(255, 255, 255, 0.04);
  text-align: left;
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.wishlist-row--linked {
  grid-template-columns: 42px minmax(0, 1fr) 38px;
  cursor: pointer;
}

.wishlist-row--linked:hover,
.wishlist-row--linked:focus-visible {
  border-color: rgba(143, 178, 232, 0.28);
  background:
    radial-gradient(circle at 92% 50%, rgba(143, 178, 232, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.055);
  outline: none;
  transform: translateY(-1px);
}

.wishlist-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff7ee;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.05rem;
  font-weight: 900;
}

.wishlist-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.wishlist-link {
  display: grid;
  grid-column: 3;
  place-items: center;
  width: 38px;
  height: 38px;
  color: rgba(183, 198, 255, 0.9);
  border: 0;
  border-radius: 12px;
  background: transparent;
  pointer-events: none;
  transition: color 0.16s ease, background 0.16s ease;
}

.wishlist-link::before {
  content: "🔗";
  font-size: 1.08rem;
  line-height: 1;
}

.wishlist-row--linked:hover .wishlist-link,
.wishlist-row--linked:focus-visible .wishlist-link {
  color: #ffd246;
  background: rgba(143, 178, 232, 0.1);
}

.goodboy-action-bar {
  padding-top: 8px;
  border-top: 0;
}

.goodboy-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.goodboy-status-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 78px;
  color: #b7c6ff;
  border: 1px solid rgba(143, 178, 232, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 178, 232, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.055);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: none;
}

.goodboy-status-action:hover,
.goodboy-status-action:focus-visible,
.goodboy-status-action.is-active {
  color: #fff7ee;
  border-color: rgba(143, 178, 232, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 178, 232, 0.18), transparent 62%),
    rgba(143, 178, 232, 0.1);
  outline: none;
}

.goodboy-status-action.is-active {
  box-shadow: inset 0 0 0 1px rgba(143, 178, 232, 0.14);
}

@media (max-width: 1080px) {

  .goodboy-wishlist-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .goodboy-page {
    width: min(100% - 24px, 680px);
  }

  .goodboy-page .app-header {
    margin-bottom: 20px;
  }

  .goodboy-profile-card {
    min-height: 280px;
    padding: 24px;
  }

  .goodboy-profile-copy {
    max-width: 58%;
  }

  .goodboy-profile-copy h2 {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  .goodboy-portrait {
    right: -16px;
    width: min(58%, 250px);
  }

  .goodboy-card-copy {
    max-width: 66%;
  }

  .goodboy-status-card .goodboy-card-copy {
    max-width: calc(100% - 142px);
  }

  .goodboy-card-art--gift {
    right: 8px;
    width: min(40%, 160px);
  }

  .goodboy-wishlist-card {
    padding: 24px;
  }

  .goodboy-wishlist-head h2 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .wishlist-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
    min-height: 66px;
  }

  .wishlist-row--linked {
    grid-template-columns: 38px minmax(0, 1fr) 36px;
  }

  .goodboy-action-buttons {
    grid-template-columns: 1fr;
  }

  .goodboy-status-action {
    min-height: 58px;
  }
}

@media (max-width: 640px) {
  .goodboy-page .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    flex: 1 1 100%;
    gap: 10px;
    order: 1;
  }

  .goodboy-page .header-actions .button {
    min-width: 0;
    width: 100%;
    flex: 0 1 auto;
    flex-basis: auto;
    order: 0;
  }
}

@media (max-width: 520px) {

  .goodboy-page .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    flex: 1 1 100%;
    gap: 10px;
    order: 1;
  }

  .goodboy-page .header-actions .button {
    min-width: 0;
    width: 100%;
    flex: 0 1 auto;
    flex-basis: auto;
    order: 0;
  }

  .goodboy-profile-card {
    min-height: 250px;
  }

  .goodboy-profile-copy {
    max-width: 62%;
    gap: 12px;
  }

  .goodboy-group-chip {
    min-height: 52px;
    padding-right: 12px;
  }

  .goodboy-group-chip .game-cover {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .goodboy-info-card,
  .goodboy-hints-card,
  .goodboy-wishlist-card {
    padding: 20px;
  }

  .goodboy-card-copy {
    max-width: 100%;
    padding-right: 112px;
  }

  .goodboy-status-card .goodboy-card-copy {
    max-width: 100%;
    padding-right: 104px;
  }

  .goodboy-card-art--gift {
    right: 24px;
    bottom: -8px;
    width: 122px;
  }

  .copy-button {
    min-height: 44px;
    padding: 0 14px;
  }

  .goodboy-note-line {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 12px;
  }

  .goodboy-note-badge {
    margin-top: 2px;
  }

  .wishlist-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 7px;
    min-height: 62px;
    padding: 9px;
  }

  .wishlist-row--linked {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .wishlist-number {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.94rem;
  }

  .wishlist-text {
    font-size: 0.92rem;
  }

  .wishlist-link {
    width: 34px;
    height: 34px;
  }
}

/* ===== Единая праздничная дизайн-логика ===== */

:root {
  --surface-card: linear-gradient(145deg, rgba(18, 26, 52, 0.96), rgba(36, 27, 62, 0.92));
  --surface-card-glow: radial-gradient(circle at 88% 18%, rgba(232, 90, 168, 0.13), transparent 34%);
  --surface-card-border: rgba(138, 127, 255, 0.24);
  --surface-card-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --radius-card: 20px;
  --radius-inner: 14px;
}

.page-shell,
.goodboy-page {
  width: min(1120px, calc(100vw - 64px));
  padding: 24px 0 56px;
}

.app-header,
.goodboy-page .app-header {
  min-height: 72px;
  margin-bottom: 36px;
  padding: 0;
}

h1 {
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.button,
.copy-button {
  border-radius: var(--radius-inner);
}

.button-primary {
  color: #fff8ef;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.24), transparent 58%),
    linear-gradient(180deg, #ff7bc7 0%, #d94b91 100%);
  box-shadow: 0 16px 34px rgba(232, 90, 168, 0.34);
}

.button-secondary,
.copy-button {
  color: #dfe6ff;
  border: 1px solid rgba(143, 178, 232, 0.24);
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 178, 232, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.058);
  box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus-visible,
.copy-button:hover,
.copy-button:focus-visible {
  color: #fff7ee;
  border-color: rgba(255, 200, 106, 0.38);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 200, 106, 0.13), transparent 62%),
    rgba(255, 200, 106, 0.08);
  outline: none;
}

.goodboy-eyebrow {
  line-height: 1.2;
}

.meta-card,
.chat-card,
.goodboy-info-card,
.goodboy-hints-card,
.goodboy-wishlist-card {
  border-color: var(--surface-card-border);
  background:
    var(--surface-card-glow),
    var(--surface-card);
  box-shadow: var(--surface-card-shadow);
}

.goodboy-card {
  border-radius: var(--radius-card);
}

.goodboy-profile-card {
  min-height: 328px;
  border-color: rgba(255, 200, 106, 0.18);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 200, 106, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.goodboy-profile-card::before {
  background:
    radial-gradient(circle at 54% 34%, rgba(255, 198, 92, 0.24), transparent 3px),
    radial-gradient(circle at 44% 62%, rgba(255, 198, 92, 0.18), transparent 2px),
    radial-gradient(circle at 18% 12%, rgba(232, 90, 168, 0.14), transparent 32%),
    linear-gradient(180deg, transparent 0%, rgba(5, 8, 21, 0.08) 100%);
}

.goodboy-wishlist-card {
  gap: 18px;
  padding: 28px;
  border-color: rgba(143, 126, 238, 0.28);
  background:
    radial-gradient(ellipse at 50% -8%, rgba(232, 90, 168, 0.2), transparent 44%),
    radial-gradient(circle at 86% 14%, rgba(143, 178, 232, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(18, 26, 52, 0.98), rgba(36, 27, 62, 0.94));
}

.goodboy-wishlist-head h2 {
  margin: 0;
  color: #fff7ee;
  font-size: clamp(2.25rem, 4vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.goodboy-wishlist-note {
  font-size: 0.94rem;
  line-height: 1.5;
}

.goodboy-wishlist-list {
  gap: 13px;
  margin-top: 6px;
}

.wishlist-row {
  min-height: 68px;
  padding: 12px 14px;
  border-color: rgba(143, 126, 238, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 200, 106, 0.08), transparent 34%),
    radial-gradient(circle at 96% 72%, rgba(232, 90, 168, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.034));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 22px rgba(0, 0, 0, 0.1);
}

.wishlist-number {
  width: 38px;
  height: 38px;
  color: #fff7c5;
  border: 1px solid rgba(255, 200, 106, 0.38);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(145deg, rgba(255, 210, 70, 0.24), rgba(116, 70, 24, 0.2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(255, 200, 106, 0.08);
  font-size: 0.95rem;
}

.wishlist-link {
  width: 38px;
  height: 38px;
  color: #cdd7ff;
  border: 1px solid rgba(143, 178, 232, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 178, 232, 0.14), transparent 62%),
    rgba(143, 178, 232, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wishlist-link::before {
  content: "🔗";
  font-size: 1rem;
  font-weight: 400;
}

.wishlist-row--linked:hover .wishlist-link,
.wishlist-row--linked:focus-visible .wishlist-link {
  color: #0d1024;
  background: #ffd246;
}

.goodboy-action-bar {
  padding-top: 2px;
}

@media (max-width: 1080px) {

  .goodboy-wishlist-card {
    grid-template-rows: auto auto auto auto auto;
  }

  .goodboy-wishlist-list {
    height: auto;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .goodboy-page {
    width: calc(100% - 32px);
    padding: 18px 0 44px;
  }

  .app-header,
  .goodboy-page .app-header {
    min-height: 0;
    margin-bottom: 24px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .goodboy-wishlist-card {
    padding: 22px;
  }

  .goodboy-wishlist-head h2 {
    font-size: 1.78rem;
  }

  .wishlist-row,
  .wishlist-row--linked {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .wishlist-row--linked {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .wishlist-text {
    font-size: 0.92rem;
  }

}

/* ===== Страница создания игры ===== */

/* Mobile scroll performance: avoid full-screen fixed paint and live blur. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  :root {
    --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.26);
    --surface-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  body::before {
    content: none;
    display: none;
  }

  .meta-card,
  .side-card,
  .chat-card,
  .goodboy-group-chip,
  .goodboy-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Final layout pass for the recipient page. */

.goodboy-profile-card,
.goodboy-budget-card,
.goodboy-status-card {
  grid-column: 1;
}

.goodboy-wishlist-card {
  grid-column: 2;
  grid-row: 1 / span 4;
  position: sticky;
  top: 18px;
  align-content: start;
  grid-template-rows: none;
  gap: 18px;
}


.goodboy-wishlist-note {
  margin: 0;
  color: rgba(232, 222, 239, 0.78);
  line-height: 1.5;
}

.goodboy-wishlist-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}

.goodboy-wishlist-note {
  padding: 13px 15px;
  border: 1px solid rgba(143, 178, 232, 0.16);
  border-radius: 14px;
  background: rgba(10, 15, 34, 0.38);
  font-size: 0.93rem;
}

.goodboy-budget-card,
.goodboy-status-card {
  min-height: 0;
  padding: 22px 24px;
}

.goodboy-budget-card {
  border-color: rgba(255, 200, 106, 0.17);
  background:
    radial-gradient(circle at 95% 18%, rgba(255, 200, 106, 0.1), transparent 32%),
    radial-gradient(circle at 8% 0%, rgba(232, 90, 168, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(18, 26, 52, 0.94), rgba(27, 24, 50, 0.9));
}

.goodboy-budget-card .goodboy-card-copy,
.goodboy-status-card .goodboy-card-copy {
  max-width: calc(100% - 118px);
  gap: 8px;
}

.goodboy-budget-card .goodboy-card-copy strong {
  color: #fff7ee;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.goodboy-budget-card .goodboy-card-copy p,
.goodboy-status-card .goodboy-card-copy p {
  margin: 0;
  font-size: 0.92rem;
}

.goodboy-card-art--gift {
  right: 16px;
  bottom: -10px;
  width: min(29%, 132px);
  opacity: 0.84;
}

.goodboy-status-card {
  border-color: rgba(143, 178, 232, 0.18);
  background:
    radial-gradient(circle at 96% 18%, rgba(143, 178, 232, 0.11), transparent 32%),
    linear-gradient(145deg, rgba(18, 26, 52, 0.94), rgba(25, 25, 48, 0.9));
}

.goodboy-status-card strong {
  color: #fff7ee;
  font-size: 1.16rem;
}

.goodboy-status-card strong::before {
  background: #8fb2e8;
  box-shadow: 0 0 14px rgba(143, 178, 232, 0.36);
}

.goodboy-action-bar {
  padding-top: 2px;
}

.goodboy-action-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.goodboy-status-action {
  min-height: 52px;
  justify-content: center;
  border-radius: 18px;
  font-size: 0.98rem;
}

.goodboy-status-action[hidden] {
  display: none;
}

.wishlist-row {
  min-height: 62px;
}

.wishlist-link {
  width: 32px;
  height: 32px;
  color: #dfe6ff;
  border-color: rgba(143, 178, 232, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(143, 178, 232, 0.12), transparent 58%),
    rgba(143, 178, 232, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.wishlist-row--linked:hover .wishlist-link,
.wishlist-row--linked:focus-visible .wishlist-link {
  color: #0d1024;
  border-color: rgba(255, 210, 70, 0.78);
  background: #ffd246;
  box-shadow: 0 8px 18px rgba(255, 200, 106, 0.18);
}

@media (max-width: 1080px) {

  .goodboy-profile-card,
  .goodboy-budget-card,
  .goodboy-status-card,
  .goodboy-wishlist-card {
    grid-column: 1;
    grid-row: auto;
  }

  .goodboy-profile-card {
    order: 1;
  }

  .goodboy-wishlist-card {
    position: static;
    order: 3;
  }

  .goodboy-budget-card {
    order: 4;
  }

  .goodboy-status-card {
    order: 5;
  }
}

@media (max-width: 760px) {

  .goodboy-wishlist-card {
    gap: 15px;
    padding: 20px;
  }

  .goodboy-wishlist-head h2 {
    font-size: 1.54rem;
  }

  .goodboy-wishlist-note {
    padding: 12px;
    font-size: 0.89rem;
  }

  .goodboy-budget-card,
  .goodboy-status-card {
    padding: 20px;
  }

  .goodboy-budget-card .goodboy-card-copy,
  .goodboy-status-card .goodboy-card-copy {
    max-width: calc(100% - 88px);
  }

  .goodboy-card-art--gift {
    width: min(28%, 98px);
  }
}

@media (max-width: 520px) {

  .goodboy-card-art--gift {
    width: 86px;
  }

  .goodboy-budget-card .goodboy-card-copy,
  .goodboy-status-card .goodboy-card-copy {
    max-width: calc(100% - 74px);
  }
}

/* Column wrappers keep the desktop rhythm independent from the tall wishlist. */

@media (max-width: 1080px) {

  .goodboy-profile-card {
    order: 1;
  }

  .goodboy-wishlist-card {
    order: 3;
  }

  .goodboy-budget-card {
    order: 4;
  }

  .goodboy-status-card {
    order: 5;
  }
}

/* Simplified semantic column: hints, question, wishlist. */
.goodboy-wishlist-card {
  gap: 16px;
}

.goodboy-wishlist-head {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(143, 178, 232, 0.14);
}

.goodboy-wishlist-note {
  padding: 0;
  border: 0;
  background: transparent;
}

.goodboy-wishlist-list {
  height: auto;
  max-height: none;
  overflow: visible;
}

.goodboy-status-card {
  display: grid;
  gap: 16px;
}

.goodboy-status-card .goodboy-action-bar {
  position: relative;
  z-index: 1;
  width: min(100%, 250px);
  padding-top: 0;
}

.goodboy-status-card .goodboy-action-buttons {
  gap: 8px;
}

.goodboy-status-card .goodboy-status-action {
  min-height: 46px;
  padding-inline: 14px;
  border-radius: 16px;
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .goodboy-wishlist-card {
    order: 3;
  }

  .goodboy-budget-card {
    order: 4;
  }

  .goodboy-status-card {
    order: 5;
  }
}

@media (max-width: 760px) {

  .goodboy-status-card .goodboy-action-bar {
    width: min(100%, 220px);
  }

  .goodboy-budget-card {
    margin-top: 16px;
  }
}

@media (max-width: 520px) {

  .goodboy-status-card .goodboy-action-bar {
    width: 100%;
  }
}

/* ===== Страница входа в игру 1 ===== */

/* ===== Game entry 2 ===== */
