:root {
  --bg: #06101c;
  --bg-soft: #0c1726;
  --panel: #122036;
  --panel-soft: #1a2a44;
  --text: #edf4ff;
  --muted: #92a6c4;
  --line: rgba(183, 212, 255, 0.18);
  --accent: #1e7bff;
  --accent-warm: #67d2ff;
  --accent-soft: rgba(30, 123, 255, 0.22);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 16px 32px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(80% 60% at 8% -10%, rgba(30, 123, 255, 0.22), transparent 62%),
    radial-gradient(60% 50% at 98% 16%, rgba(103, 210, 255, 0.14), transparent 65%),
    linear-gradient(180deg, #08101a 0%, var(--bg) 60%);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(36px);
  pointer-events: none;
  z-index: -2;
}

.orb-one {
  width: 300px;
  height: 300px;
  background: rgba(30, 123, 255, 0.24);
  left: -120px;
  top: -80px;
}

.orb-two {
  width: 270px;
  height: 270px;
  background: rgba(103, 210, 255, 0.2);
  right: -110px;
  top: 220px;
}

.orb-three {
  width: 330px;
  height: 330px;
  background: rgba(44, 100, 190, 0.22);
  right: 22%;
  bottom: -190px;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  opacity: 0.12;
}

.hero,
main {
  width: min(1180px, calc(100% - 2.4rem));
}

.topbar-wrap {
  width: min(1180px, calc(100% - 2.4rem));
  margin: 1.1rem auto 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(183, 212, 255, 0.2);
  border-radius: 12px;
  background: rgba(8, 13, 15, 0.78);
  backdrop-filter: blur(6px);
}

.auth-panel {
  margin-left: auto;
  display: grid;
  gap: 0.35rem;
  min-width: 320px;
}

.is-hidden {
  display: none !important;
}

.auth-signed-out {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.auth-fields {
  display: flex;
  gap: 0.35rem;
}

.auth-fields input {
  width: 9.4rem;
  border-radius: 9px;
  border: 1px solid rgba(183, 212, 255, 0.3);
  padding: 0.38rem 0.48rem;
  font: inherit;
  font-size: 0.75rem;
  color: var(--text);
  background: rgba(11, 17, 19, 0.95);
}

.auth-fields input:focus-visible {
  outline: 2px solid rgba(30, 123, 255, 0.68);
  outline-offset: 1px;
}

.auth-actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.auth-signed-in {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.auth-user-email {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 600;
}

.auth-actions .btn {
  font-size: 0.66rem;
  padding: 0.42rem 0.62rem;
}

.auth-status {
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.brand-mark {
  font-family: "Sora", sans-serif;
  color: var(--text);
  text-decoration: none;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar-links a {
  color: #b2c7e1;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.35rem 0.52rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.topbar-links a:hover {
  color: var(--text);
  border-color: rgba(183, 212, 255, 0.38);
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  margin: 1.1rem auto 1.2rem;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(255px, 0.9fr);
  padding: 1.7rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(177, 210, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(14, 22, 25, 0.92), rgba(10, 16, 18, 0.76)),
    radial-gradient(130% 100% at 100% 0%, rgba(30, 123, 255, 0.13), transparent 58%);
  backdrop-filter: blur(7px);
  box-shadow: var(--shadow-lg);
  animation: float-in 0.6s ease both;
}

.hero-shell.no-feature {
  grid-template-columns: 1fr;
}

.hero-shell::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -90px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(30, 123, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 0.95rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.95rem, 4.1vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 680px;
}

.subtitle {
  margin: 0;
  max-width: 660px;
  color: #b7c9e0;
  font-size: 0.93rem;
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  font: inherit;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.66rem 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #071228;
  border-color: rgba(30, 123, 255, 0.62);
  background: linear-gradient(110deg, var(--accent), #4da5ff);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(183, 212, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(183, 212, 255, 0.56);
}

.add-game-panel {
  margin-top: 0.2rem;
  display: grid;
  gap: 0.5rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(4, 10, 12, 0.45);
  padding: 0.95rem;
}

.share-panel {
  margin-top: 0.15rem;
  display: grid;
  gap: 0.45rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(4, 10, 12, 0.45);
  padding: 0.85rem 0.95rem;
}

.share-edit-controls {
  display: grid;
  gap: 0.45rem;
}

.share-panel label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.42rem;
}

#share-slug-input {
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(183, 212, 255, 0.3);
  padding: 0.6rem 0.74rem;
  font: inherit;
  color: var(--text);
  background: rgba(11, 17, 19, 0.95);
}

#share-slug-input:focus-visible {
  outline: 2px solid rgba(30, 123, 255, 0.68);
  outline-offset: 1px;
}

.share-link-preview {
  margin: 0;
  color: #dceaff;
  font-size: 0.78rem;
  word-break: break-all;
}

.share-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.share-status {
  margin: 0;
  min-height: 1em;
  font-size: 0.78rem;
  color: var(--muted);
}

#share-link-copy {
  justify-self: start;
}

.share-secondary-actions {
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.add-game-panel label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

#game-search-input {
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(183, 212, 255, 0.3);
  padding: 0.62rem 0.74rem;
  font: inherit;
  color: var(--text);
  background: rgba(11, 17, 19, 0.95);
}

#game-search-input:focus-visible,
select:focus-visible,
.result-hours-input:focus-visible,
.result-platform-select:focus-visible,
.hours-edit-input:focus-visible,
.edit-platform-select:focus-visible {
  outline: 2px solid rgba(30, 123, 255, 0.68);
  outline-offset: 1px;
}

.search-status {
  margin: 0;
  min-height: 1em;
  font-size: 0.78rem;
  color: var(--muted);
}

.search-results {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 250px;
  overflow-y: auto;
  display: grid;
  gap: 0.42rem;
}

.search-result {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  border-radius: 10px;
  border: 1px solid rgba(175, 206, 251, 0.2);
  background: rgba(9, 14, 16, 0.88);
  padding: 0.44rem;
}

.search-result img {
  width: 40px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
}

.search-result-main {
  display: grid;
  gap: 0.12rem;
}

.search-result-main strong {
  font-size: 0.85rem;
  line-height: 1.2;
}

.search-result-main span {
  font-size: 0.74rem;
  color: var(--muted);
}

.search-result-actions {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.result-platform-label,
.result-hours-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-platform-select,
.result-hours-input,
.edit-platform-select,
.hours-edit-input,
select {
  border-radius: 9px;
  border: 1px solid rgba(174, 206, 251, 0.22);
  background: rgba(12, 18, 21, 0.96);
  color: var(--text);
  font: inherit;
}

.result-platform-select,
.result-hours-input {
  padding: 0.34rem 0.42rem;
  font-size: 0.75rem;
}

.result-platform-select {
  width: 7.1rem;
}

.result-hours-input {
  width: 4.2rem;
}

.add-result-btn,
.save-hours-btn,
.cancel-hours-btn {
  font: inherit;
  cursor: pointer;
}

.add-result-btn {
  border-radius: 999px;
  border: 1px solid rgba(174, 206, 251, 0.32);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.34rem 0.6rem;
}

.add-result-btn:hover {
  color: var(--accent);
  border-color: rgba(30, 123, 255, 0.8);
}

.hero-stats {
  margin-top: 0.12rem;
  display: grid;
  gap: 0.58rem;
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
}

.hero-stats div {
  border-radius: 13px;
  border: 1px solid rgba(174, 206, 251, 0.22);
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
}

.hero-stats span {
  display: block;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
}

.hero-stats p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-feature {
  border-radius: 18px;
  border: 1px solid rgba(174, 206, 251, 0.24);
  background: rgba(5, 10, 12, 0.52);
  padding: 0.85rem;
  display: grid;
  gap: 0.66rem;
  align-content: start;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.feature-label {
  margin: 0;
  color: var(--accent-warm);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.feature-card {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(174, 206, 251, 0.22);
  background: rgba(255, 255, 255, 0.02);
}

.feature-card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.feature-meta {
  padding: 0.82rem;
}

.feature-platform {
  margin: 0;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.feature-title {
  margin: 0.18rem 0 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.feature-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

main {
  margin: 0 auto 2.8rem;
}

.collection-head {
  margin: 0 0 0.75rem;
  display: grid;
  gap: 0.15rem;
  animation: rise-in 0.55s ease both;
  animation-delay: 0.08s;
}

.collection-kicker {
  margin: 0;
  color: var(--accent-warm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.68rem;
}

.collection-title {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.01em;
  font-weight: 600;
}

.toolbar {
  margin-bottom: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.56rem 0.64rem;
  border-radius: 15px;
  border: 1px solid rgba(174, 206, 251, 0.2);
  background: linear-gradient(140deg, rgba(17, 27, 30, 0.85), rgba(12, 19, 22, 0.65));
  box-shadow: var(--shadow-md);
  animation: rise-in 0.55s ease both;
  animation-delay: 0.14s;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toolbar label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

select {
  padding: 0.42rem 0.56rem;
  font-size: 0.78rem;
}

.games-grid {
  display: grid;
  gap: 0.62rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.games-empty-state {
  grid-column: 1 / -1;
  border-radius: var(--radius);
  border: 1px solid rgba(174, 206, 251, 0.25);
  background: linear-gradient(140deg, rgba(17, 27, 30, 0.88), rgba(12, 19, 22, 0.72));
  padding: 2.1rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.games-empty-state h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.games-empty-state p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(174, 206, 251, 0.2);
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  animation: reveal 0.5s ease forwards;
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -120px 80px -50px rgba(0, 0, 0, 0.7);
}

.game-card:hover {
  transform: translateY(-6px) scale(1.015);
  transition: transform 0.2s ease;
}

.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(3, 6, 7, 0.98) 16%,
    rgba(3, 6, 7, 0.84) 45%,
    rgba(3, 6, 7, 0.3) 70%,
    rgba(3, 6, 7, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
}

.card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 0.92rem;
  background: linear-gradient(to top, rgba(4, 7, 8, 0.78), rgba(4, 7, 8, 0));
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.game-card:hover .overlay,
.game-card:focus-within .overlay,
.game-card.editing-hours .overlay {
  opacity: 1;
}

.game-card:hover .card-content,
.game-card:focus-within .card-content,
.game-card.editing-hours .card-content {
  opacity: 1;
  transform: translateY(0);
}

.card-actions {
  position: absolute;
  top: 0.48rem;
  right: 0.48rem;
  z-index: 3;
  display: flex;
  gap: 0.33rem;
  opacity: 0;
  transform: translateY(-7px);
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.game-card:hover .card-actions,
.game-card:focus-within .card-actions,
.game-card.editing-hours .card-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.verify-game,
.edit-game,
.remove-game {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(196, 220, 255, 0.4);
  background: rgba(7, 10, 12, 0.7);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.verify-game {
  color: #9eacc1;
}

.verify-game:hover {
  border-color: rgba(213, 230, 255, 0.82);
  background: rgba(235, 244, 255, 0.14);
}

.verify-game.is-verified {
  color: #091325;
  border-color: #ffffff;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(7, 14, 28, 0.55), 0 6px 14px rgba(0, 0, 0, 0.45);
}

.edit-game:hover {
  border-color: rgba(30, 123, 255, 0.9);
  background: rgba(30, 123, 255, 0.2);
}

.remove-game:hover {
  border-color: rgba(255, 185, 185, 0.95);
  background: rgba(190, 34, 34, 0.78);
}

.platform {
  margin: 0;
  font-size: 0.64rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

h2 {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95);
}

.meta-row,
.bottom-row {
  margin-top: 0.38rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.meta-row {
  font-size: 0.73rem;
  color: #aec2de;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.hours {
  margin: 0;
  font-size: 0.73rem;
  color: #dbe8f8;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.rating {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-warm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.hours-editor {
  display: none;
  margin-top: 0.5rem;
  gap: 0.34rem 0.45rem;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "platform-label platform-select"
    "hours-label hours-input"
    "save cancel";
}

.game-card.editing-hours .hours-editor {
  display: grid;
}

.game-card.editing-hours .bottom-row {
  display: none;
}

.edit-platform-label,
.edit-hours-label {
  color: var(--muted);
  font-size: 0.71rem;
}

.edit-platform-label {
  grid-area: platform-label;
}

.edit-hours-label {
  grid-area: hours-label;
}

.edit-platform-select,
.hours-edit-input {
  font-size: 0.77rem;
  padding: 0.3rem 0.4rem;
}

.edit-platform-select {
  grid-area: platform-select;
  width: 7rem;
}

.hours-edit-input {
  grid-area: hours-input;
  width: 100%;
  max-width: 6.1rem;
}

.save-hours-btn,
.cancel-hours-btn {
  border-radius: 999px;
  border: 1px solid rgba(174, 206, 251, 0.28);
  padding: 0.24rem 0.52rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.73rem;
  font-weight: 700;
}

.save-hours-btn {
  grid-area: save;
  justify-self: start;
}

.cancel-hours-btn {
  grid-area: cancel;
  justify-self: start;
}

.save-hours-btn:hover {
  color: var(--accent);
  border-color: rgba(30, 123, 255, 0.82);
}

.cancel-hours-btn:hover {
  border-color: rgba(174, 206, 251, 0.6);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .feature-card img {
    height: 280px;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .topbar-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .auth-panel {
    width: 100%;
    min-width: 0;
  }

  .auth-fields {
    width: 100%;
  }

  .auth-fields input {
    width: 100%;
  }

  .auth-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .auth-signed-out {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .auth-signed-in {
    justify-content: flex-start;
  }

  .auth-status {
    text-align: left;
  }

  .hero-shell {
    padding: 1.3rem;
  }

  .search-result {
    grid-template-columns: 44px 1fr;
    align-items: start;
  }

  .search-result-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0.4rem;
  }

  .result-platform-label,
  .result-hours-label {
    font-size: 0.66rem;
  }

  .result-platform-select,
  .result-hours-input,
  .add-result-btn {
    width: 100%;
  }

  .result-platform-select {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .topbar-wrap,
  .hero,
  main {
    width: min(1180px, calc(100% - 1.2rem));
  }

  .topbar {
    padding: 0.55rem 0.62rem;
  }

  .topbar-links {
    gap: 0.2rem;
  }

  .topbar-links a {
    font-size: 0.68rem;
    padding: 0.28rem 0.38rem;
  }

  .hero {
    margin-top: 1rem;
  }

  .hero-shell {
    padding: 1.15rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .share-row {
    grid-template-columns: 1fr;
  }

  .toolbar {
    padding: 0.7rem;
    gap: 0.55rem;
  }

  .toolbar-group {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .toolbar-group label {
    width: 100%;
  }

  .toolbar-group select {
    width: 100%;
  }

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

  .game-card {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 420px) {
  .hero-shell {
    padding: 1rem;
  }

  .feature-card img {
    height: 230px;
  }

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