:root {
  --bg: #f4efe6;
  --surface: rgba(255, 250, 242, 0.88);
  --surface-strong: #fff8ef;
  --line: rgba(62, 49, 37, 0.12);
  --text: #271d14;
  --muted: #6a5b4d;
  --brand: #c95522;
  --brand-deep: #8e2f12;
  --accent: #1b7661;
  --danger: #8b2533;
  --shadow: 0 18px 48px rgba(57, 35, 16, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 85, 34, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(27, 118, 97, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf4e7 0%, #efe6d8 100%);
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(251, 244, 231, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand span {
  color: var(--brand);
}

.nav-links,
.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link,
.pill,
.button,
button,
input,
select,
textarea {
  border-radius: 14px;
}

.nav-link,
.pill {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.main {
  padding: 28px 0 48px;
}

.hero,
.panel,
.card,
.game-frame,
.detail-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  padding: 28px;
  margin-bottom: 28px;
}

.hero-copy h1,
.section-title,
.detail-title {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 10px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.hero-copy p,
.muted {
  color: var(--muted);
}

.button,
button,
input[type="submit"] {
  background: var(--brand);
  color: white;
  border: 0;
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border: 1px solid var(--line);
}

.button.danger {
  background: var(--danger);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.games {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.section {
  margin-bottom: 28px;
}

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

.card {
  padding: 18px;
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(201, 85, 34, 0.15), rgba(27, 118, 97, 0.18));
}

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

.meta-row,
.tag-list,
.actions-row,
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tag {
  font-size: 0.82rem;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(201, 85, 34, 0.09);
  color: var(--brand-deep);
}

.panel,
.detail-hero,
.game-frame {
  padding: 22px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  gap: 24px;
  margin-bottom: 24px;
}

.detail-banner {
  min-height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(201, 85, 34, 0.2), rgba(27, 118, 97, 0.22));
}

.detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
  gap: 24px;
}

.game-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  background: #111;
}

.form-grid,
.form-row {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
}

.message-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.message {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.message.success {
  border-color: rgba(27, 118, 97, 0.18);
}

.message.error {
  border-color: rgba(139, 37, 51, 0.18);
}

.notification-item,
.list-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.notification-item:last-child,
.list-item:last-child {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  background: rgba(27, 118, 97, 0.1);
  color: var(--accent);
}

.status.error {
  background: rgba(139, 37, 51, 0.1);
  color: var(--danger);
}

.empty {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed var(--line);
  color: var(--muted);
}

.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(201, 85, 34, 0.14), rgba(27, 118, 97, 0.2));
}

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

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

  .site-header .shell {
    align-items: flex-start;
    flex-direction: column;
  }
}
