/* ===== CLANOVA TOP UI ===== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
}

body {
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at top, rgba(255,190,80,0.25), transparent 40%),
    linear-gradient(rgba(5,6,10,0.3), rgba(5,6,10,0.95)),
    url("https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&w=1400&q=80")
    center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
}

/* ===== CONTAINER ===== */

.app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  padding: 14px 12px 90px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.7), rgba(0,0,0,0.1), rgba(0,0,0,0.7));
}

/* ===== RESOURCES ===== */

.resources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.resource {
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(180deg,#1b1f26,#06070a);
  border: 2px solid #d4a63c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: #ffe7ad;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(0,0,0,0.6);
}

.res-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.res-icon {
  font-size: 26px;
}

.plus {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #2a1b07;
  border: 1px solid #d4a63c;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== LOGO ===== */

.logo {
  text-align: center;
  margin: 12px 0 18px;
}

.title {
  font-size: 56px;
  font-weight: 900;
  color: #f7c44b;
  text-shadow: 0 4px 12px #000;
}

.subtitle {
  margin-top: 6px;
  padding: 4px 16px;
  background: #1a1207;
  border: 1px solid #a97321;
  color: #ffd98b;
  display: inline-block;
  font-size: 14px;
}

/* ===== HERO CARD ===== */

.hero-card {
  display: grid;
  grid-template-columns: 90px 1fr 70px;
  gap: 10px;
  align-items: center;
  background: rgba(10,12,16,0.95);
  border: 2px solid #d4a63c;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.portrait {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #d4a63c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: radial-gradient(circle,#ffd98b,#5c3a12,#111);
  position: relative;
}

.portrait::after {
  content: attr(data-lvl);
  position: absolute;
  bottom: -8px;
  left: 5px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1a1207;
  border: 2px solid #d4a63c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.player-name {
  font-size: 26px;
  font-weight: 900;
}

.hero-desc {
  font-size: 14px;
  color: #e6d5b0;
  margin-top: 6px;
}

.hero-btn {
  height: 50px;
  border-radius: 8px;
  border: 2px solid #d4a63c;
  background: #163a6e;
  color: #fff;
  font-weight: bold;
}

/* ===== XP BAR ===== */

.xpbar {
  height: 18px;
  border-radius: 999px;
  background: #07080b;
  border: 1px solid #6a542d;
  overflow: hidden;
  margin-top: 8px;
  position: relative;
}

.xpfill {
  height: 100%;
  width: 0%;
  background: linear-gradient(180deg,#4fd1ff,#0b63a8);
}

.xptext {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
}

/* ===== PATH ===== */

.path-card {
  background: rgba(10,12,16,0.95);
  border: 2px solid #d4a63c;
  border-radius: 14px;
  padding: 12px;
}

.path-row {
  background: rgba(0,0,0,0.4);
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 6px;
}

/* ===== MODES ===== */

.modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mode {
  height: 75px;
  border-radius: 10px;
  border: 2px solid #d4a63c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
}

.missions { background: #7a4a13; }
.clan { background: #1f5e28; }
.battle { background: #7a1f13; }
.inventory { background: #5c1f7a; }

.leaderboard {
  grid-column: span 2;
  background: #1b3f7a;
}

/* ===== BUTTON ===== */

.btn,
.test-btn,
.invite {
  width: 100%;
  height: 55px;
  border-radius: 10px;
  border: 2px solid #d4a63c;
  background: #163a6e;
  color: #fff;
  font-weight: 900;
  margin-top: 12px;
}

/* ===== NAV ===== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: 75px;
  background: #0c1117;
  border-top: 2px solid #d4a63c;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e7c376;
}

.nav-icon {
  font-size: 26px;
}