/* ==========================================================
   DuskPuff - Twilight Mist Theme
   Plain CSS. No preprocessor, no minification.
   ========================================================== */

:root {
  --dusk-terracotta: #946b66;
  --dusk-violet: #473b58;
  --dusk-cream: #f7e8d8;
  --dusk-rose: #c08e80;
  --dusk-deep: #2b2438;
  --dusk-night: #1e1a29;
  --dusk-haze: rgba(247, 232, 216, 0.08);
  --dusk-line: rgba(247, 232, 216, 0.14);
  --text-main: #f3e6da;
  --text-soft: rgba(243, 230, 218, 0.66);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 50px -24px rgba(20, 15, 30, 0.85);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Quicksand", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--text-main);
  background: radial-gradient(120% 80% at 20% 0%, #4a3a4f 0%, rgba(74, 58, 79, 0) 55%),
    radial-gradient(100% 70% at 85% 10%, #8b6058 0%, rgba(139, 96, 88, 0) 60%),
    linear-gradient(180deg, #33293f 0%, var(--dusk-night) 60%, #171422 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

a {
  color: var(--dusk-cream);
  text-decoration: none;
  transition: color 0.35s ease, opacity 0.35s ease;
}

a:hover {
  color: #fff6ea;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(30, 26, 41, 0.85), rgba(30, 26, 41, 0.45));
  border-bottom: 1px solid var(--dusk-line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 82px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mist {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  animation: mist-drift 14s ease-in-out infinite;
}

.logo-mist img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(247, 232, 216, 0.22));
  animation: mist-tint 22s ease-in-out infinite;
}

.logo-mist .puff {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 232, 216, 0.75), rgba(247, 232, 216, 0));
  animation: puff-float 9s ease-in-out infinite;
}

.logo-mist .puff:nth-child(3) {
  animation-delay: 3s;
  left: 32%;
}

.logo-mist .puff:nth-child(4) {
  animation-delay: 6s;
  left: 68%;
}

.logo-word {
  font-size: 25px;
  letter-spacing: 0.26em;
  font-weight: 300;
  color: var(--dusk-cream);
  text-shadow: 0 0 18px rgba(196, 150, 138, 0.5);
}

.logo-word span {
  color: var(--dusk-rose);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 14px;
}

.main-nav a {
  color: var(--text-soft);
  font-size: 14.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--dusk-cream);
}

.header-right {
  margin-left: auto;
  position: relative;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--dusk-line);
  background: rgba(247, 232, 216, 0.06);
  color: var(--dusk-cream);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.user-toggle:hover {
  background: rgba(247, 232, 216, 0.12);
  border-color: rgba(247, 232, 216, 0.3);
}

.user-toggle .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dusk-terracotta), var(--dusk-violet));
  box-shadow: 0 0 10px rgba(196, 150, 138, 0.8);
}

.user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 56px;
  width: 232px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--dusk-line);
  background: linear-gradient(160deg, rgba(58, 47, 74, 0.96), rgba(34, 28, 46, 0.96));
  box-shadow: var(--shadow-soft);
}

.user-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-soft);
  letter-spacing: 0.08em;
}

.user-menu a:hover {
  background: rgba(247, 232, 216, 0.08);
  color: var(--dusk-cream);
}

.user-menu .menu-divider {
  height: 1px;
  margin: 8px 6px;
  background: var(--dusk-line);
}

.menu-caption {
  padding: 6px 14px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 230, 218, 0.38);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.14em;
  padding: 13px 30px;
  border-radius: 999px;
  color: var(--dusk-cream);
  background: linear-gradient(120deg, var(--dusk-terracotta), var(--dusk-violet));
  box-shadow: 0 14px 34px -18px rgba(148, 107, 102, 0.95);
  transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #fff7ec;
}

.btn-ghost {
  background: rgba(247, 232, 216, 0.06);
  border: 1px solid var(--dusk-line);
  box-shadow: none;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-small {
  padding: 9px 20px;
  font-size: 13.5px;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 78px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 26, 41, 0.35), rgba(23, 20, 34, 0.95));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  filter: blur(1px);
  animation: hero-breathe 26s ease-in-out infinite;
}

.hero-mascot {
  position: absolute;
  right: 12%;
  top: 130px;
  width: 360px;
  max-width: 34vw;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 0 34px rgba(247, 232, 216, 0.28));
  animation: mascot-float 7s ease-in-out infinite;
  transform-origin: center bottom;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-lockup {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
}

.hero-lockup .logo-mist {
  width: 108px;
  height: 108px;
  flex: 0 0 108px;
}

.hero-lockup .logo-word {
  font-size: 54px;
  letter-spacing: 0.3em;
}

.hero h1 {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.14em;
  max-width: 620px;
}

.hero p.lead {
  max-width: 560px;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 44px;
}

.hero-stats .stat b {
  display: block;
  font-size: 26px;
  font-weight: 400;
  color: var(--dusk-cream);
}

.hero-stats .stat span {
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---------------- Sections ---------------- */

.section {
  padding: 66px 0;
}

.section-head {
  margin-bottom: 30px;
}

.section-head .eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dusk-rose);
}

.section-head h2 {
  font-size: 27px;
  font-weight: 300;
}

.panel {
  background: linear-gradient(160deg, rgba(74, 60, 92, 0.42), rgba(38, 31, 52, 0.62));
  border: 1px solid var(--dusk-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

.panel + .panel {
  margin-top: 22px;
}

/* ---------------- Game grid ---------------- */

.game-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.game-filters button {
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-soft);
  background: rgba(247, 232, 216, 0.05);
  border: 1px solid var(--dusk-line);
  transition: all 0.4s ease;
}

.game-filters button:hover,
.game-filters button.active {
  color: var(--dusk-cream);
  background: rgba(196, 150, 138, 0.22);
  border-color: rgba(247, 232, 216, 0.32);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 20px;
}

.game-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--dusk-line);
  background: rgba(38, 31, 52, 0.55);
  transition: transform 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(247, 232, 216, 0.28);
  box-shadow: 0 26px 54px -26px rgba(148, 107, 102, 0.9);
}

.game-thumb {
  position: relative;
  height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  letter-spacing: 0.1em;
  color: rgba(247, 232, 216, 0.85);
  text-shadow: 0 0 20px rgba(30, 26, 41, 0.6);
}

.game-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 100%, rgba(247, 232, 216, 0.16), transparent 70%);
}

.thumb-a { background: linear-gradient(140deg, #946b66, #473b58); }
.thumb-b { background: linear-gradient(140deg, #6c5570, #2f2740); }
.thumb-c { background: linear-gradient(140deg, #b3897a, #5b4560); }
.thumb-d { background: linear-gradient(140deg, #7d6a86, #3a2f4b); }
.thumb-e { background: linear-gradient(140deg, #a3766a, #40364f); }

.game-body {
  padding: 15px 17px 19px;
}

.game-body h3 {
  font-size: 16px;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-soft);
  letter-spacing: 0.08em;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(247, 232, 216, 0.08);
  border: 1px solid var(--dusk-line);
  color: var(--text-soft);
}

/* ---------------- Bonus ladder ---------------- */

.ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.ladder-step {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--dusk-line);
  background: linear-gradient(150deg, rgba(148, 107, 102, 0.16), rgba(71, 59, 88, 0.28));
}

.ladder-step b {
  display: block;
  font-size: 23px;
  font-weight: 400;
  color: var(--dusk-cream);
}

.ladder-step span {
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.08em;
}

.ladder-step.golden {
  border-color: rgba(196, 150, 138, 0.55);
  box-shadow: 0 0 40px -14px rgba(196, 150, 138, 0.7);
}

/* ---------------- Forms ---------------- */

.auth-shell {
  padding: 56px 0 80px;
}

.auth-card {
  max-width: 470px;
  margin: 0 auto;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  font: inherit;
  font-size: 15px;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  border: 1px solid var(--dusk-line);
  background: rgba(23, 20, 34, 0.5);
  outline: none;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(196, 150, 138, 0.6);
  box-shadow: 0 0 0 4px rgba(148, 107, 102, 0.15);
}

.field select option {
  background: #2b2438;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-note {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 16px;
  text-align: center;
}

.form-inline-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 18px;
}

.alert {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: 1px solid rgba(196, 150, 138, 0.5);
  background: rgba(148, 107, 102, 0.18);
  color: var(--dusk-cream);
}

/* ---------------- Recharge ---------------- */

.recharge-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.amount-option {
  padding: 16px 12px;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--dusk-line);
  background: rgba(23, 20, 34, 0.4);
  cursor: pointer;
  transition: all 0.45s ease;
}

.amount-option:hover {
  border-color: rgba(247, 232, 216, 0.3);
}

.amount-option.active {
  border-color: rgba(196, 150, 138, 0.8);
  background: linear-gradient(150deg, rgba(148, 107, 102, 0.3), rgba(71, 59, 88, 0.35));
}

.amount-option b {
  display: block;
  font-size: 21px;
  font-weight: 400;
  color: var(--dusk-cream);
}

.amount-option span {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed var(--dusk-line);
  font-size: 14.5px;
  color: var(--text-soft);
}

.summary-line b {
  color: var(--dusk-cream);
  font-weight: 500;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  font-size: 15px;
}

.summary-total b {
  font-size: 27px;
  font-weight: 400;
  color: var(--dusk-cream);
}

/* ---------------- User center ---------------- */

.uc-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
  align-items: start;
}

.uc-menu a {
  display: block;
  padding: 13px 17px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 14.5px;
  letter-spacing: 0.08em;
}

.uc-menu a:hover {
  background: rgba(247, 232, 216, 0.06);
}

.uc-menu a.active {
  color: var(--dusk-cream);
  background: linear-gradient(120deg, rgba(148, 107, 102, 0.35), rgba(71, 59, 88, 0.35));
}

.table-scroll {
  overflow-x: auto;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}

table.data-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 12px 14px;
  border-bottom: 1px solid var(--dusk-line);
}

table.data-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(247, 232, 216, 0.07);
  color: var(--text-soft);
}

table.data-table tbody tr:hover {
  background: rgba(247, 232, 216, 0.04);
}

.status-success {
  color: #b7d8c0;
}

.status-fail {
  color: #e0a89e;
}

/* ---------------- Legal pages ---------------- */

.legal ul {
  padding-left: 20px;
  color: var(--text-soft);
}

.legal li {
  margin-bottom: 8px;
}

.legal h3 {
  margin-top: 26px;
  font-size: 19px;
  color: var(--dusk-cream);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}

.legal table th,
.legal table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--dusk-line);
  text-align: left;
  color: var(--text-soft);
}

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--dusk-line);
  background: linear-gradient(180deg, rgba(23, 20, 34, 0.4), rgba(20, 17, 29, 0.95));
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-col h4 {
  font-size: 12.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dusk-rose);
  margin-bottom: 14px;
}

.footer-brand {
  font-size: 25px;
  letter-spacing: 0.26em;
  font-weight: 300;
  color: var(--dusk-cream);
  text-shadow: 0 0 18px rgba(196, 150, 138, 0.5);
}

.footer-col a {
  display: block;
  color: var(--text-soft);
  font-size: 14.5px;
  padding: 5px 0;
}

.company-info {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.9;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--dusk-line);
  font-size: 13px;
  color: rgba(243, 230, 218, 0.45);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---------------- Animations ---------------- */

@keyframes mist-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(3px, -5px, 0) scale(1.03); }
  66% { transform: translate3d(-3px, 3px, 0) scale(0.985); }
}

@keyframes mist-tint {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(247, 232, 216, 0.22)) hue-rotate(0deg); }
  50% { filter: drop-shadow(0 0 22px rgba(196, 150, 138, 0.35)) hue-rotate(-10deg); }
}

@keyframes puff-float {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  25% { opacity: 0.7; }
  100% { opacity: 0; transform: translate(-14px, -46px) scale(1.7); }
}

@keyframes hero-breathe {
  0%, 100% { transform: scale(1.02); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 0.62; }
}

@keyframes mascot-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.02); }
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s ease, transform 1.1s ease;
  cursor: pointer;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 940px) {
  .recharge-layout,
  .uc-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-mascot {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .hero-lockup .logo-word {
    font-size: 36px;
  }

  .hero-lockup .logo-mist {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
  }
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0 50px;
  }
}
