:root {
  --games-bg: #f7f8fb;
  --games-surface: rgba(255, 255, 255, 0.94);
  --games-surface-strong: #ffffff;
  --games-surface-soft: #f1f4f9;
  --games-border: rgba(148, 163, 184, 0.22);
  --games-border-strong: rgba(59, 130, 246, 0.24);
  --games-text: #0f172a;
  --games-subtext: #5b6b80;
  --games-muted: #7b8ba1;
  --games-primary: var(--fdc-shell-primary, var(--fdc-color-accent, #3b82f6));
  --games-primary-strong: var(--fdc-color-accent-strong, #2563eb);
  --games-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  --games-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
}

:root[data-theme='dark'] {
  --games-bg: #08111f;
  --games-surface: rgba(15, 23, 42, 0.88);
  --games-surface-strong: #101a2d;
  --games-surface-soft: rgba(59, 130, 246, 0.1);
  --games-border: rgba(96, 165, 250, 0.16);
  --games-border-strong: rgba(147, 197, 253, 0.3);
  --games-text: #e2e8f0;
  --games-subtext: #afbdd0;
  --games-muted: #7d8ea8;
  --games-primary: #bfdbfe;
  --games-primary-strong: #60a5fa;
  --games-shadow: 0 22px 46px rgba(0, 0, 0, 0.3);
  --games-shadow-soft: 0 14px 28px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0)),
    var(--games-bg);
  color: var(--games-text);
  padding-top: var(--fdc-header-offset, 56px);
  display: flex;
  flex-direction: column;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
  line-height: 1;
}

.games-page {
  flex: 1 0 auto;
}

.games-shell {
  --fdc-news-card-border: var(--games-border);
  --fdc-news-card-border-strong: var(--games-border-strong);
  --fdc-news-card-surface: var(--games-surface-strong);
  --fdc-news-card-surface-soft: var(--games-surface-soft);
  --fdc-news-card-text: var(--games-text);
  --fdc-news-card-sub: var(--games-muted);
  --fdc-news-card-muted: var(--games-muted);
  --fdc-news-card-shadow: var(--games-shadow-soft);
  --fdc-news-card-title-size: 1rem;
  --fdc-news-card-thumb-ratio: 16 / 9.2;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 28px 16px 72px;
}

.games-root {
  display: grid;
  gap: 24px;
}

.games-root--loading {
  min-height: clamp(280px, calc(100vh - var(--fdc-header-offset, 56px) - 220px), 520px);
  align-content: center;
  justify-items: center;
}

.games-root--loading > .fdc-loading-stack {
  width: min(100%, 420px);
}

.games-root--loading > .fdc-loading-stack--panel {
  min-height: 0;
  padding: 0;
}

.games-legacy-page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.games-legacy-list {
  display: grid;
  gap: 12px;
}

.games-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 12px 20px;
  border: 1px solid var(--games-border);
  border-radius: 18px;
  background: var(--games-surface);
  box-shadow: var(--games-shadow-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  scroll-margin-top: calc(var(--fdc-header-offset, 56px) + 20px);
}

.games-row:hover {
  border-color: var(--games-border-strong);
}

.games-row.is-highlighted {
  border-color: var(--games-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), var(--games-shadow-soft);
}

.games-row-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.games-row-link {
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}

.games-row-logo,
.games-row-logo-fallback {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
}

.games-row-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--games-primary);
  font-size: 22px;
  font-weight: 800;
  border-radius: 0;
}

.games-row-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.games-row-title-wrap {
  min-width: 0;
}

.games-row-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.games-row-title a {
  color: inherit;
  text-decoration: none;
}

.games-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.games-row-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--games-surface-soft);
  color: var(--games-subtext);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.games-row-pill:hover,
.games-row-pill:focus-visible {
  border-color: var(--games-border);
  background: var(--games-surface-strong);
  color: var(--games-text);
}

.games-row-pill.is-primary {
  color: var(--games-primary-strong);
  border-color: var(--games-border-strong);
}

.games-row-pill.is-primary:hover,
.games-row-pill.is-primary:focus-visible {
  border-color: var(--games-primary);
  background: var(--games-primary);
  color: #ffffff;
}

.games-hero {
  border: 1px solid var(--games-border);
  border-radius: 24px;
  background: var(--games-surface-strong);
  box-shadow: var(--games-shadow);
}

.games-hero.is-detail {
  background: var(--games-surface);
}

.games-hero-content {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.games-hero-copy {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.games-title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.games-hero-logo,
.games-card-logo {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
  flex: 0 0 auto;
}

.games-logo-fallback,
.games-hero-logo-fallback,
.games-card-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--games-primary);
  font-size: 22px;
  font-weight: 800;
  flex: 0 0 auto;
}

.games-title-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.games-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.games-copy {
  margin: 0;
  color: var(--games-subtext);
  font-size: 15px;
  line-height: 1.65;
}

.games-meta,
.games-chip-row,
.games-external-links,
.games-card-tools,
.games-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.games-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--games-border);
  background: var(--games-surface-soft);
  color: var(--games-subtext);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.games-meta-badge,
.games-meta-metric {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--games-border);
  border-radius: 12px;
  white-space: nowrap;
}

.games-meta-badge {
  background: var(--games-surface-soft);
  color: var(--games-text);
  font-size: 12px;
  font-weight: 700;
}

.games-meta-metric,
.games-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.games-meta-metric {
  background: var(--games-surface);
}

.games-meta-label {
  color: var(--games-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.games-meta-value {
  color: var(--games-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.games-action-link,
.games-inline-link,
.games-external-link,
.games-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--games-border);
  background: var(--games-surface);
  color: var(--games-text);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.games-action-link.is-primary {
  border-color: transparent;
  background: var(--games-primary);
  color: #ffffff;
}

.games-action-link.is-primary:focus-visible {
  background: var(--games-primary-strong);
  color: #ffffff;
}

.games-follow-btn.is-active {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
}

.games-follow-btn:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.games-follow-btn--compact {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
}

.games-follow-btn--icon,
.games-tool-link {
  position: relative;
}

.games-follow-btn--icon {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(148, 163, 184, 0.2);
  background: transparent;
  color: var(--games-primary);
}

.games-follow-btn--icon .material-symbols-outlined {
  font-size: 22px;
}

.games-follow-btn--icon.is-active {
  border-color: rgba(233, 30, 99, 0.22);
  background: rgba(252, 228, 236, 0.72);
  color: #e91e63;
}

:root[data-theme='dark'] .games-follow-btn.is-active {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
}

:root[data-theme='dark'] .games-follow-btn--icon {
  border-color: rgba(96, 165, 250, 0.18);
  background: transparent;
  color: #bfdbfe;
}

:root[data-theme='dark'] .games-follow-btn--icon.is-active {
  border-color: rgba(233, 30, 99, 0.34);
  background: rgba(91, 33, 62, 0.34);
  color: #e91e63;
}

:root[data-theme='dark'] .games-card-fresh-badge {
  color: #fca5a5;
}

.games-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.games-list-block {
  display: grid;
  gap: 16px;
}

.games-list-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.games-list-heading {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--games-text);
}

.games-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--games-border);
  border-radius: 20px;
  background: var(--games-surface);
  box-shadow: var(--games-shadow-soft);
  scroll-margin-top: calc(var(--fdc-header-offset, 56px) + 20px);
  cursor: pointer;
}

.games-card.is-highlighted {
  border-color: var(--games-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), var(--games-shadow-soft);
}

.games-card:focus-visible {
  border-color: var(--games-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12), var(--games-shadow-soft);
  outline: none;
}

.games-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.games-card-head-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}

.games-card-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.games-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.games-card-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.games-card-title a {
  color: inherit;
  text-decoration: none;
}

.games-card-fresh-badge {
  display: inline-block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #dc2626;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  transform: translateY(-4px);
}

.games-card-actions,
.games-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.games-card-actions {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.games-detail-meta-row {
  justify-content: space-between;
}

.games-detail-meta-row .games-stat-row {
  min-width: 0;
  flex: 1 1 auto;
}

.games-detail-action-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.games-detail-action-slot,
.games-detail-notification-slot {
  display: flex;
}

.games-detail-notification-slot {
  width: 100%;
}

.games-card-copy p {
  margin: 0;
  color: var(--games-subtext);
  font-size: 14px;
  line-height: 1.6;
}

.games-stat {
  gap: 4px;
  color: var(--games-muted);
  font-size: 12px;
  font-weight: 600;
}

.games-stat .games-meta-label,
.games-stat .games-meta-value {
  font-size: 12px;
}

.games-stat .games-meta-value {
  font-weight: 700;
}

.games-card-tools {
  align-items: center;
}

.games-card-tools--detail {
  margin-top: 4px;
}

.games-tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--games-border);
  border-radius: 12px;
  background: var(--games-surface-strong);
  color: var(--games-text);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.games-tool-link .material-symbols-outlined {
  font-size: 20px;
}

@media (hover: hover) {
  .games-tool-link::after,
  .games-follow-btn--icon::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 4px);
    min-width: max-content;
    max-width: 160px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 3;
  }

  .games-tool-link:hover::after,
  .games-tool-link:focus-visible::after,
  .games-follow-btn--icon:hover::after,
  .games-follow-btn--icon:focus-visible::after {
    opacity: 1;
    visibility: visible;
  }

  .games-tool-link:hover::after,
  .games-tool-link:focus-visible::after,
  .games-follow-btn--icon:hover::after,
  .games-follow-btn--icon:focus-visible::after {
    transform: translate(-50%, 0);
  }
}

:root[data-theme='dark'] .games-tool-link::after,
:root[data-theme='dark'] .games-follow-btn--icon::after {
  background: rgba(226, 232, 240, 0.96);
}

:root[data-theme='dark'] .games-tool-link::after,
:root[data-theme='dark'] .games-follow-btn--icon::after {
  color: #08111f;
}

.games-panels {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.games-panel {
  grid-column: span 6;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--games-border);
  border-radius: 22px;
  background: var(--games-surface);
  box-shadow: var(--games-shadow-soft);
}

.games-panel.is-wide {
  grid-column: span 12;
}

.games-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.games-panel-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.games-panel-title-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.games-panel-title-link:hover,
.games-panel-title-link:focus-visible {
  color: var(--games-primary-strong);
}

.games-panel-title-link .material-symbols-outlined {
  font-size: 20px;
}

.games-panel-list {
  display: grid;
  gap: 12px;
}

.games-post-list {
  gap: 0;
}

.games-notification-panel {
  padding-top: 4px;
}

.games-notification-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--games-border);
}

.games-notification-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--games-border);
  background: transparent;
  color: var(--games-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.games-notification-setting-label {
  min-width: 0;
}

.games-notification-setting-switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  transition: background 0.18s ease;
  flex: 0 0 auto;
}

.games-notification-setting-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
  transition: transform 0.18s ease;
}

.games-notification-setting.is-active .games-notification-setting-switch {
  background: var(--games-primary);
}

.games-notification-setting.is-active .games-notification-setting-thumb {
  transform: translateX(18px);
}

.games-notification-setting:hover,
.games-notification-setting:focus-visible {
  color: var(--games-primary-strong);
  outline: none;
}

.games-notification-setting:disabled {
  color: var(--games-muted);
  cursor: default;
}

.games-notification-setting:disabled .games-notification-setting-switch {
  opacity: 0.6;
}

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

.games-news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--games-border);
  border-radius: 10px;
  background: var(--games-surface-strong);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.games-news-card:hover,
.games-news-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--games-border-strong);
  box-shadow: var(--games-shadow-soft);
}

.games-news-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9.2;
  overflow: hidden;
  background: var(--games-surface-soft);
}

.games-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.games-news-card:hover .games-news-thumb,
.games-news-card:focus-visible .games-news-thumb {
  transform: scale(1.04);
}

.games-news-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.games-news-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.games-news-title {
  display: -webkit-box;
  margin: 0;
  color: var(--games-text);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.02em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.games-news-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
  color: var(--games-muted);
  font-size: 12px;
  font-weight: 700;
}

.games-news-date,
.games-news-footer-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.games-news-date {
  min-width: 0;
}

.games-news-date-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.games-news-footer-stats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.games-news-date .material-symbols-outlined,
.games-news-footer-stat .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 15px;
  color: var(--games-muted);
}

.games-item-link {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--games-border);
  border-radius: 16px;
  background: var(--games-surface-strong);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.games-item-link:hover,
.games-item-link:focus-visible {
  border-color: var(--games-primary);
  transform: translateY(-1px);
  box-shadow: var(--games-shadow-soft);
}

.games-post-row + .games-post-row {
  border-top: 1px solid var(--games-border);
}

.games-post-shell {
  display: grid;
  gap: 8px;
  padding: 12px 18px;
  transition: background-color 140ms ease;
}

.games-post-shell:hover,
.games-post-shell:focus-within {
  background: var(--games-surface-soft);
}

.games-post-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.games-post-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.games-post-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.games-post-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.games-post-title {
  margin: 0;
  color: var(--games-text);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.games-post-media-indicator {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--games-surface-soft);
  color: var(--games-primary);
  border: 1px solid color-mix(in srgb, var(--games-primary) 14%, var(--games-border));
}

.games-post-media-indicator .material-symbols-outlined {
  font-size: 14px;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}

.games-post-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  color: var(--games-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.games-post-meta-left {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.games-post-author {
  color: var(--games-text);
  font-weight: 800;
}

.games-post-author-host,
.games-post-author-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.games-post-author-link:hover,
.games-post-author-link:focus-visible {
  color: var(--games-primary);
}

.games-post-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--games-muted);
}

.games-post-stat .material-symbols-outlined {
  font-size: 0.92rem;
  color: var(--games-muted);
}

.games-item-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.games-item-thumb,
.games-item-thumb-fallback {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--games-border);
  background: var(--games-surface-soft);
  object-fit: cover;
}

.games-item-thumb-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--games-primary);
  font-size: 20px;
  font-weight: 800;
}

.games-item-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.games-item-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  word-break: break-word;
}

.games-item-description {
  margin: 0;
  color: var(--games-subtext);
  font-size: 13px;
  line-height: 1.6;
}

.games-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--games-muted);
  font-size: 12px;
  font-weight: 600;
}

.games-item-price {
  color: var(--games-primary-strong);
  font-weight: 700;
}

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

.games-trade-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(241, 245, 249, 0.96);
  border-radius: 20px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.games-trade-card:hover,
.games-trade-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
}

.games-trade-card.is-completed {
  opacity: 0.78;
}

.games-trade-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e2e8f0;
}

.games-trade-media-image,
.games-trade-media-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.games-trade-media-image.is-completed {
  filter: grayscale(0.5);
}

.games-trade-media-empty {
  background:
    radial-gradient(circle at 20% 18%, rgba(59, 130, 246, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(219, 234, 254, 0.92));
}

.games-trade-media-empty.is-completed {
  background: #e2e8f0;
}

.games-trade-media-empty span {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.46);
  font-size: 44px;
  font-weight: 900;
}

.games-trade-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.games-trade-badges--right {
  left: auto;
  right: 10px;
  flex-direction: row;
  justify-content: flex-end;
  max-width: calc(100% - 20px);
}

.games-trade-badges .trade-market-type-badge {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--fdc-content-chip-neutral-border, #e2e8f0);
  background: var(--fdc-content-chip-neutral-bg, #f1f5f9);
  color: var(--fdc-content-chip-neutral-text, #64748b);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.games-trade-badges .trade-market-type-badge.is-sell {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

.games-trade-badges .trade-market-type-badge.is-buy {
  border-color: rgba(194, 65, 12, 0.18);
  background: linear-gradient(135deg, #c2410c, #9a3412);
  color: #ffffff;
}

.games-trade-badges .trade-market-type-badge.is-trade {
  border-color: rgba(21, 128, 61, 0.18);
  background: linear-gradient(135deg, #15803d, #166534);
  color: #ffffff;
}

.games-trade-badges .trade-market-status {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.18);
}

.games-trade-badges .trade-market-status.is-live,
.games-trade-badges .trade-market-status.is-busy {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.96), rgba(220, 38, 38, 0.92));
  color: #ffffff;
}

.games-trade-badges .trade-market-status.is-reserved {
  background: rgba(255, 237, 213, 0.94);
  color: #9a3412;
}

.games-trade-badges .trade-market-status.is-completed {
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
}

.games-trade-completed-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.42);
}

.games-trade-completed-chip {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.games-trade-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.games-trade-title {
  margin: 0;
  min-height: 44px;
  color: #1e293b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.games-trade-title.is-completed {
  color: #64748b;
  text-decoration: line-through;
}

.games-trade-card[data-tone='sell']:hover .games-trade-title,
.games-trade-card[data-tone='sell']:focus-visible .games-trade-title {
  color: #3b82f6;
}

.games-trade-card[data-tone='buy']:hover .games-trade-title,
.games-trade-card[data-tone='buy']:focus-visible .games-trade-title {
  color: #f97316;
}

.games-trade-card[data-tone='trade']:hover .games-trade-title,
.games-trade-card[data-tone='trade']:focus-visible .games-trade-title {
  color: #22c55e;
}

.games-trade-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.games-trade-price {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.games-trade-price.is-sell {
  color: #3b82f6;
}

.games-trade-price.is-buy {
  color: #f97316;
}

.games-trade-price.is-trade {
  color: #22c55e;
}

.games-trade-price.is-completed {
  color: #94a3b8;
}

.games-trade-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.games-trade-chip {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--fdc-content-chip-neutral-border, #e2e8f0);
  background: var(--fdc-content-chip-neutral-bg, #f1f5f9);
  color: var(--fdc-content-chip-neutral-text, #64748b);
  font-size: 0.72rem;
  font-weight: 800;
}

.games-trade-chip.is-completed {
  opacity: 0.72;
}

.games-trade-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.games-trade-meta,
.games-trade-stats,
.games-trade-stat {
  display: inline-flex;
  align-items: center;
}

.games-trade-meta,
.games-trade-stat {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.games-trade-stats {
  gap: 12px;
}

.games-trade-stat {
  gap: 4px;
}

.games-trade-stat .material-symbols-outlined {
  font-size: 14px;
}

.games-state-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--games-border);
  border-radius: 20px;
  background: var(--games-surface);
  box-shadow: var(--games-shadow-soft);
}

.games-state-card strong {
  font-size: 18px;
  line-height: 1.35;
}

.games-state-card p {
  margin: 0;
  color: var(--games-subtext);
  font-size: 14px;
  line-height: 1.6;
}

.games-state-card .games-action-link {
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .games-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .games-panel,
  .games-panel.is-wide {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .games-shell {
    padding: 20px 12px 56px;
  }

  .games-root--loading {
    min-height: clamp(240px, calc(100vh - var(--fdc-header-offset, 56px) - 180px), 420px);
  }

  .games-row {
    padding: 16px;
  }

  .games-row-logo,
  .games-row-logo-fallback {
    width: 44px;
    height: 44px;
  }

  .games-row-actions {
    gap: 4px;
  }

  .games-row-pill {
    padding: 3px 8px;
    font-size: 11px;
  }

  .games-hero-content,
  .games-panel,
  .games-card,
  .games-state-card {
    padding: 18px;
  }

  .games-list-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .games-news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .games-trade-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .games-title-row,
  .games-card-head,
  .games-card-head-main,
  .games-item-main {
    align-items: flex-start;
  }

  .games-card-head {
    flex-direction: column;
  }

  .games-card-actions,
  .games-detail-meta-row {
    width: 100%;
    justify-content: flex-start;
  }

  .games-hero-logo,
  .games-logo-fallback,
  .games-card-logo,
  .games-card-logo-fallback {
    width: 48px;
    height: 48px;
  }

  .games-title {
    font-size: 30px;
  }

  .games-card-title {
    font-size: 20px;
  }
}
