:root {
  color-scheme: light;
  --bg: #f7fbf9;
  --surface: #ffffff;
  --surface-strong: #f0f7ff;
  --ink: #172026;
  --muted: #66747f;
  --line: #dbe8e5;
  --mint: #44c7a7;
  --mint-dark: #138a72;
  --sky: #4aa3ff;
  --sun: #ffbf47;
  --rose: #ff7f9c;
  --shadow: 0 18px 50px rgba(31, 58, 75, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(230, 248, 243, 0.9) 0, rgba(247, 251, 249, 0) 330px),
    var(--bg);
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(219, 232, 229, 0.8);
  background: rgba(247, 251, 249, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.topnav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: #e9f7f2;
  color: var(--mint-dark);
  outline: none;
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(22px, 5vw, 74px);
  min-height: 380px;
  padding: clamp(24px, 5vw, 54px) 0 clamp(18px, 4vw, 34px);
}

.overview-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--mint-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 5.8rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.7;
}

.search-wrap {
  position: relative;
  max-width: 520px;
  margin-top: 28px;
}

.search-wrap::before {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  content: "";
  transform: translateY(-55%);
}

.search-wrap::after {
  position: absolute;
  top: 52%;
  left: 31px;
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
}

#game-search {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(40, 84, 95, 0.08);
  outline: none;
}

#game-search:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(68, 199, 167, 0.16);
}

.preview-panel {
  position: relative;
  min-height: 310px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 191, 71, 0.32), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #ebf8ff 48%, #fff3f6 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-panel::before {
  position: absolute;
  right: -58px;
  bottom: -64px;
  width: 220px;
  height: 220px;
  border: 24px solid rgba(68, 199, 167, 0.2);
  border-radius: 50%;
  content: "";
}

.preview-toolbar {
  display: flex;
  gap: 8px;
}

.preview-toolbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rose);
}

.preview-toolbar span:nth-child(2) {
  background: var(--sun);
}

.preview-toolbar span:nth-child(3) {
  background: var(--mint);
}

.preview-title {
  width: 62%;
  height: 22px;
  margin-top: 42px;
  border-radius: 6px;
  background: var(--ink);
}

.preview-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.preview-row {
  position: relative;
  display: block;
  width: 100%;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(23, 32, 38, 0.08);
}

.preview-row::before {
  position: absolute;
  top: 9px;
  left: 12px;
  width: 16px;
  height: 16px;
  border: 2px solid #b6c8c2;
  border-radius: 5px;
  content: "";
}

.preview-row::after {
  position: absolute;
  top: 14px;
  left: 42px;
  width: calc(100% - 74px);
  height: 6px;
  border-radius: 999px;
  background: #c9d8d4;
  content: "";
}

.preview-row.checked::before {
  border-color: var(--mint);
  background: var(--mint);
}

.preview-row.checked::after {
  background: #95b8ad;
}

.preview-row.short {
  width: 74%;
}

.section-block {
  padding: 34px 0 8px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-note {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--mint);
  color: var(--mint-dark);
  outline: none;
}

.recent-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  max-height: 100px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.recent-item,
.game-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(31, 58, 75, 0.06);
}

.recent-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 82px;
  min-width: 0;
  padding: 10px;
}

.recent-item strong,
.recent-copy span {
  display: block;
}

.recent-item strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.recent-copy span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.recent-item .recent-game {
  color: var(--ink);
  font-weight: 750;
}

.recent-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: #eef7f3;
  overflow: hidden;
}

.recent-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-copy {
  min-width: 0;
}

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

.game-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 244px;
  padding: 18px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: rgba(68, 199, 167, 0.85);
  box-shadow: 0 20px 44px rgba(31, 58, 75, 0.12);
  outline: none;
  transform: translateY(-2px);
}

.game-art {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  margin: -2px -2px 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--card-bg, var(--surface-strong));
  overflow: hidden;
}

.game-art.has-image-bg::before,
.game-art.has-image-bg::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.game-art.has-image-bg::before {
  inset: -16px;
  z-index: 0;
  background-image: var(--card-bg-image);
  background-position: center 54%;
  background-size: cover;
  filter: blur(3px) saturate(1.25) contrast(1.05);
  opacity: 1;
  transform: scale(1.05);
}

.game-art.has-image-bg::after {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(23, 32, 38, 0.02), rgba(23, 32, 38, 0.12));
}

.game-symbol {
  position: relative;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 38, 0.08);
}

.game-symbol.has-image {
  width: 54px;
  height: 54px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.game-symbol-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.progress-ring {
  --value: 0deg;
  position: relative;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--mint) var(--value), rgba(255, 255, 255, 0.68) 0);
}

.progress-ring::after {
  position: absolute;
  inset: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  content: "";
}

.progress-trophy {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 1px));
}

.game-title {
  --title-size: 1.18rem;
  margin: 0;
  line-height: 1.25;
}

.game-title-main {
  display: block;
  font-size: var(--title-size);
  font-weight: 800;
}

.game-title-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: calc(var(--title-size) - 2px);
  font-weight: 400;
}

.game-card p {
  margin: 9px 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.status-pill {
  padding: 6px 9px;
  border-radius: 999px;
  background: #ecf7f4;
  color: var(--mint-dark);
  white-space: nowrap;
}

.empty-state {
  margin: 24px 0 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  text-align: center;
}

.inline-empty {
  grid-column: 1 / -1;
  margin: 0;
}

.game-shell {
  padding-top: 0;
}

.game-headline {
  padding: 22px 0 30px;
  border-bottom: 1px solid var(--line);
}

.game-page-title {
  --title-size: 2.4rem;
  margin-top: 42px;
  line-height: 1.18;
}

.game-page-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0 56px;
}

.game-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(31, 58, 75, 0.06);
}

.game-sidebar h2 {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.2;
}

.sidebar-group + .sidebar-group {
  margin-top: 18px;
}

.sidebar-group h3 {
  margin: 0 0 8px;
  color: var(--mint-dark);
  font-size: 0.8rem;
  line-height: 1.2;
}

.sidebar-group ul {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-game-link {
  display: block;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.sidebar-game-link:hover,
.sidebar-game-link:focus-visible,
.sidebar-game-link.is-active {
  border-color: rgba(68, 199, 167, 0.62);
  background: #ecf7f4;
  outline: none;
}

.sidebar-title-main {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.sidebar-title-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: calc(0.95rem - 2px);
  font-weight: 400;
  line-height: 1.3;
}

.game-content {
  min-height: 520px;
}

.achievement-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 94px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 58, 75, 0.06);
}

.achievement-summary strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
}

.detail-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 94px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 58, 75, 0.06);
}

.detail-summary strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
}

.detail-summary-actions {
  display: flex;
  flex: 1 1 360px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.detail-member-filter {
  display: inline-flex;
  flex: 1 1 240px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: min(100%, 240px);
}

.detail-member-filter-input {
  width: min(100%, 260px);
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.detail-member-filter-input:focus {
  border-color: rgba(68, 199, 167, 0.85);
  box-shadow: 0 0 0 4px rgba(68, 199, 167, 0.16);
}

.detail-member-filter-clear {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.detail-member-filter-clear:hover,
.detail-member-filter-clear:focus-visible {
  border-color: rgba(68, 199, 167, 0.85);
  color: var(--mint-dark);
  outline: none;
}

.detail-member-filter-clear:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.52;
}

.detail-member-filter-clear:disabled:hover {
  border-color: var(--line);
  color: var(--muted);
}

.completion-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.completion-toggle:hover,
.completion-toggle:focus-visible {
  border-color: rgba(68, 199, 167, 0.85);
  color: var(--mint-dark);
  outline: none;
}

.scroll-top-button {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(68, 199, 167, 0.64);
  border-radius: 8px;
  background: rgba(23, 32, 38, 0.92);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(31, 58, 75, 0.2);
  cursor: pointer;
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  border-color: rgba(68, 199, 167, 0.95);
  background: #138a72;
  outline: none;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 16px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--mint-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.detail-back-link:hover,
.detail-back-link:focus-visible {
  border-color: rgba(68, 199, 167, 0.85);
  background: #ecf7f4;
  outline: none;
}

.achievement-list {
  display: grid;
  gap: 24px;
  margin-top: 18px;
}

.detail-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.detail-checklist.is-list {
  grid-template-columns: 1fr;
}

.detail-checklist.is-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  align-items: start;
  gap: 8px;
}

.detail-checklist.is-card-grid .detail-section-title {
  grid-column: 1 / -1;
}

.detail-card-color-group {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
}

.detail-card-color-title {
  margin-bottom: 2px;
}

.detail-card-color-group:first-child .detail-card-color-title {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.detail-card-number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 78px));
  align-items: start;
  gap: 8px;
}

.detail-card-number-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.detail-card-number-title {
  display: grid;
  min-height: 32px;
  margin: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf9;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}

.detail-card-number-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-section-title {
  margin: 16px 0 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.3;
}

.detail-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.detail-check-item {
  display: grid;
  min-height: 56px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(31, 58, 75, 0.04);
  cursor: pointer;
}

.detail-check-item.has-detail-text {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  min-height: 72px;
  padding: 10px 14px;
  text-align: left;
}

.detail-check-item.is-synced-achievement {
  border-style: dashed;
}

.detail-check-item:hover,
.detail-check-item:focus-visible {
  border-color: rgba(68, 199, 167, 0.85);
  outline: none;
}

.detail-check-item.is-checked {
  border-color: rgba(68, 199, 167, 0.75);
  background: #ecf7f4;
  color: var(--mint-dark);
}

.detail-check-item.is-card-number-card {
  align-content: space-between;
  justify-items: stretch;
  min-height: 82px;
  padding: 7px;
  border-top-width: 5px;
  text-align: left;
}

.detail-check-item.is-card-red {
  border-top-color: #d94a4a;
}

.detail-check-item.is-card-blue {
  border-top-color: #3478d6;
}

.detail-check-item.is-card-green {
  border-top-color: #2d9b68;
}

.detail-check-item.is-card-yellow {
  border-top-color: #d8a21e;
}

.detail-check-card-color {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.1;
}

.detail-check-item.is-card-number-card .detail-check-index {
  justify-self: end;
  font-size: 1.45rem;
}

.detail-check-card-meta {
  display: grid;
  margin-top: 4px;
}

.detail-check-card-stars {
  color: #d8a21e;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  justify-self: end;
}

.detail-check-card-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.detail-check-card-name img {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.detail-check-card-name span {
  min-width: 0;
}

.detail-check-index {
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1;
}

.detail-check-media {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #eef7f3;
  color: var(--mint-dark);
  overflow: hidden;
}

.has-image-path .detail-check-media {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: #f7fbf9;
}

.detail-check-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-check-image-fallback {
  display: none;
}

.detail-check-media.is-missing-image img {
  display: none;
}

.detail-check-media.is-missing-image .detail-check-image-fallback {
  display: block;
}

.detail-check-content {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.detail-check-title {
  font-weight: 850;
  line-height: 1.35;
}

.detail-check-alias {
  color: var(--muted);
  font-weight: 500;
}

.detail-check-description {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  word-break: keep-all;
}

.detail-check-members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-check-member {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 8px 3px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbf9;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-check-member img {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.achievement-section {
  display: grid;
  gap: 12px;
}

.achievement-section-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.25;
}

.achievement-section-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}

.achievement-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  box-shadow: 0 10px 24px rgba(31, 58, 75, 0.05);
  cursor: pointer;
}

.achievement-item:hover,
.achievement-item:focus-visible {
  border-color: rgba(68, 199, 167, 0.85);
  outline: none;
}

.achievement-item.is-complete {
  border-color: rgba(68, 199, 167, 0.75);
  background: #f4fbf8;
}

.achievement-item.is-auto {
  cursor: default;
}

.achievement-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 8px;
  background: #eef7f3;
  overflow: hidden;
}

.achievement-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.achievement-icon-placeholder {
  border: 1px dashed #bfd5ce;
  color: var(--mint-dark);
  font-weight: 850;
}

.achievement-body {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.achievement-title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

.achievement-description {
  color: var(--muted);
  font-size: calc(1.02rem - 2px);
  font-weight: 400;
  line-height: 1.45;
  word-break: keep-all;
}

.achievement-progress {
  width: fit-content;
  margin-top: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecf7f4;
  color: var(--mint-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

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

@media (max-width: 880px) {
  .overview {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 4.8rem;
  }

  .preview-panel {
    min-height: 250px;
  }

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

  .game-page-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .achievement-item {
    grid-template-columns: 56px minmax(0, 1fr);
    min-height: 96px;
  }

  .achievement-icon {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
  }

  main {
    width: min(100% - 28px, 1180px);
    padding-top: 20px;
  }

  .overview {
    min-height: auto;
    padding-top: 22px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .lead {
    font-size: 1rem;
  }

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

  .game-page-title {
    --title-size: 2rem;
    margin-top: 30px;
  }

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

  .game-sidebar {
    position: static;
  }

  .detail-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-summary-actions {
    flex: 0 1 auto;
    justify-content: flex-start;
  }

  .detail-member-filter,
  .detail-member-filter-input {
    width: 100%;
  }

  .achievement-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    min-height: 96px;
  }

  .achievement-icon {
    width: 56px;
    height: 56px;
  }
}
