/* /game/css/user-stats.css */

:root {
  --hc-bg: #f4ead8;
  --hc-bg2: #fbf6ec;
  --hc-card: #fffaf2;
  --hc-card2: #fffdf8;
  --hc-border: #e2d2b9;
  --hc-text: #24170f;
  --hc-muted: #756858;
  --hc-brown: #a86428;
  --hc-brown2: #7d4119;
  --hc-pill: #efe2ce;
  --hc-shadow: 0 16px 38px rgba(69, 45, 22, .11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.75), transparent 34rem),
    linear-gradient(135deg, var(--hc-bg), var(--hc-bg2));
  color: var(--hc-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  min-height: 100vh;
}

.wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 34px 16px 54px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--hc-brown2);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: .96;
  letter-spacing: -0.05em;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--hc-muted);
  font-size: 17px;
  max-width: 760px;
}

.identity {
  margin-top: 12px;
  color: var(--hc-muted);
  font-size: 14px;
}

.identity strong {
  color: var(--hc-text);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 12px;
  min-width: 390px;
}

.hero-card,
.stat-card,
.filter-card,
.game-card,
.bottle-card {
  background: rgba(255, 250, 242, .88);
  border: 1px solid var(--hc-border);
  box-shadow: var(--hc-shadow);
  border-radius: 22px;
}

.hero-card {
  padding: 18px 16px;
  text-align: center;
}

.hero-card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.hero-card span {
  display: block;
  margin-top: 4px;
  color: var(--hc-muted);
  font-weight: 700;
  font-size: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  padding: 16px;
  min-height: 102px;
}

.stat-label {
  color: var(--hc-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.stat-note {
  color: var(--hc-muted);
  font-size: 13px;
  margin-top: 6px;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.tab {
  appearance: none;
  border: 1px solid var(--hc-border);
  background: #fffaf2;
  color: var(--hc-text);
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(69,45,22,.07);
}

.tab:hover,
.tab.active {
  background: var(--hc-brown);
  border-color: var(--hc-brown);
  color: #fff;
}

.filter-card {
  padding: 18px;
  margin-bottom: 26px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: block;
  color: var(--hc-muted);
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 6px;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--hc-border);
  border-radius: 14px;
  background: #fff;
  color: var(--hc-text);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--hc-brown);
  box-shadow: 0 0 0 3px rgba(168, 100, 40, .16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--hc-border);
  border-radius: 999px;
  background: #fffaf2;
  color: var(--hc-brown2);
  padding: 10px 17px;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn.primary {
  background: var(--hc-brown);
  border-color: var(--hc-brown);
  color: #fff;
  box-shadow: 0 12px 24px rgba(168, 100, 40, .22);
}

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

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

.section-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.muted {
  color: var(--hc-muted);
  font-weight: 700;
}

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

.bottle-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  min-height: 230px;
  overflow: hidden;
}

.bottle-img {
  border: 1px solid var(--hc-border);
  border-radius: 18px;
  background: #fff;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bottle-img img {
  max-width: 100%;
  max-height: 188px;
  object-fit: contain;
  display: block;
}

.no-img {
  color: #b9aa96;
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.bottle-title {
  font-size: 19px;
  line-height: 1.15;
  margin: 0 0 6px;
  font-weight: 900;
}

.bottle-meta {
  color: var(--hc-muted);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 9px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--hc-pill);
  color: #6b4a2c;
  font-weight: 900;
  font-size: 13px;
}

.desc {
  color: #4f4439;
  font-size: 15px;
  margin: 0 0 13px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.game-card {
  padding: 16px;
}

.game-title {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 4px;
}

.game-meta {
  color: var(--hc-muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 20px 0 0;
}

.empty {
  background: rgba(255, 250, 242, .88);
  border: 1px solid var(--hc-border);
  border-radius: 22px;
  padding: 24px;
  color: var(--hc-muted);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .topbar {
    display: block;
  }

  .hero-stats {
    margin-top: 20px;
    min-width: 0;
  }

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

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

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

@media (max-width: 720px) {
  .wrap {
    padding: 24px 12px 42px;
  }

  .hero-stats,
  .stats-grid,
  .bottle-grid,
  .games-grid,
  .filter-grid,
  .search-row {
    grid-template-columns: 1fr;
  }

  .bottle-card {
    grid-template-columns: 96px 1fr;
  }

  .bottle-img {
    min-height: 150px;
  }

  .section-head {
    display: block;
  }

  .pagination {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Result / award badges */

.award-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 12px;
}

.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff4df;
  border: 1px solid #e4c798;
  color: #704017;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  line-height: 1;
}

.award-badge:hover {
  background: var(--hc-brown);
  border-color: var(--hc-brown);
  color: #fff;
  transform: translateY(-1px);
}

.award-badge.first {
  background: #f7df9e;
  border-color: #d9ad45;
  color: #5d3908;
}

.award-badge.controversial {
  background: #efe2ce;
  border-color: #d7b98e;
  color: #68441f;
}

/* -------------------------------------------------------
   My Hidden Cask public landing / email access
------------------------------------------------------- */

.access-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 20px;
}

.access-copy,
.access-card {
  background: rgba(255, 250, 242, .9);
  border: 1px solid var(--hc-border);
  border-radius: 28px;
  box-shadow: var(--hc-shadow);
  padding: 28px;
}

.access-copy h1 {
  margin-bottom: 12px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.benefit-card {
  background: #fffdf8;
  border: 1px solid var(--hc-border);
  border-radius: 18px;
  padding: 16px;
}

.benefit-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.benefit-card span {
  display: block;
  color: var(--hc-muted);
  font-weight: 700;
  font-size: 14px;
}

.access-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.access-card p {
  color: var(--hc-muted);
  font-weight: 700;
  margin: 0 0 18px;
}

.access-form {
  margin-top: 18px;
}

.access-submit,
.access-start {
  width: 100%;
  margin-top: 12px;
}

.access-start {
  background: #fffaf2;
}

.access-footnote {
  color: var(--hc-muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hc-border);
}

.access-message {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  margin: 14px 0;
}

.access-message.success {
  background: #eef8e9;
  border: 1px solid #b8dca8;
  color: #315c22;
}

.access-message.error {
  background: #fff0f0;
  border: 1px solid #e3b4b4;
  color: #7b2525;
}

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

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