/* =========================================================
   Game Menu UI Theme (AoC-like)
   Path: /public/style.css
========================================================= */

:root{
  --bg:#05070c;
  --panel:#0a0f1a;
  --panel2:#070b12;

  --gold:#c8b26a;
  --gold2:#8b7a3a;

  --teal1:#0aa4b2;
  --teal2:#0c6f7b;

  --text:#e7eef7;
  --muted:#9aa7b5;

  --line: rgba(200,178,106,.22);
  --line2: rgba(200,178,106,.12);

  --shadow: 0 18px 55px rgba(0,0,0,.55);
  --radius: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 800px at 30% 0%, rgba(10,164,178,.12), transparent 55%),
    radial-gradient(1200px 800px at 70% 20%, rgba(200,178,106,.08), transparent 60%),
    linear-gradient(180deg, #04060a 0%, var(--bg) 100%);
}

a{ color:#cfefff; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}

h1,h2,h3{ margin:0 0 12px; }
h1{ font-size: 30px; letter-spacing:.3px; }
h2{ font-size: 18px; color:#d7e3ee; }

.muted{ color:var(--muted); }

/* =========================
   TOP BAR (game menu bar)
========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line2);
}

.topbar-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 18px;
  display:flex;
  align-items:center;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.4px;
  color: var(--text);
}
.brand .badge{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(10,15,26,.65);
  color: var(--muted);
  font-size: 12px;
  font-weight:800;
}

.navrow{
  margin-left:auto;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* =========================
   "Game Button" style
   (used for Home + menu buttons)
========================= */
.gbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding: 10px 14px;
  border-radius: 999px;

  color: #eaf7ff;
  font-weight: 900;
  letter-spacing: .2px;

  background:
    linear-gradient(180deg, rgba(14,183,196,.24), rgba(12,111,123,.18));
  border: 1px solid rgba(200,178,106,.35);

  box-shadow:
    0 0 0 2px rgba(0,0,0,.35) inset,
    0 12px 28px rgba(0,0,0,.45);
  text-decoration:none !important;
}

.gbtn:hover{
  background:
    linear-gradient(180deg, rgba(14,183,196,.32), rgba(12,111,123,.22));
  border-color: rgba(200,178,106,.55);
}

.gbtn.active{
  background:
    linear-gradient(180deg, rgba(14,183,196,.38), rgba(12,111,123,.26));
  border-color: rgba(200,178,106,.75);
}

.gbtn.admin{
  background: linear-gradient(180deg, rgba(200,178,106,.20), rgba(139,122,58,.14));
  border-color: rgba(200,178,106,.55);
}
.gbtn.admin:hover{
  background: linear-gradient(180deg, rgba(200,178,106,.28), rgba(139,122,58,.18));
  border-color: rgba(200,178,106,.75);
}

/* right user box */
.userbox{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left: 10px;
}
.avatar{
  width: 28px; height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(200,178,106,.35);
  background: rgba(255,255,255,.06);
}
.username{
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

/* =========================
   Cards (game panels)
========================= */
.card{
  background:
    linear-gradient(180deg, rgba(10,15,26,.90), rgba(7,11,18,.88));
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  position: relative;
}

.card::before{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid rgba(200,178,106,.10);
  pointer-events:none;
}

/* tables */
table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius: 12px;
}
th, td{
  border: 1px solid rgba(200,178,106,.12);
  padding: 10px;
}
th{
  background: rgba(10,164,178,.10);
  color:#eaf7ff;
  font-weight: 900;
  letter-spacing:.2px;
}
tr:nth-child(even) td{ background: rgba(255,255,255,.02); }

hr{
  border:0;
  border-top: 1px solid rgba(200,178,106,.12);
  margin: 14px 0;
}

.notice{
  background: rgba(10,164,178,.10);
  border: 1px solid rgba(10,164,178,.18);
  padding: 10px 12px;
  border-radius: 12px;
  color:#dff7ff;
}

/* forms */
label{ display:block; margin: 10px 0; font-size: 14px; color:#d7e3ee; }
input, textarea, select{
  width:100%;
  margin-top:6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(200,178,106,.18);
  background: rgba(0,0,0,.30);
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus, select:focus{
  border-color: rgba(10,164,178,.50);
  box-shadow: 0 0 0 3px rgba(10,164,178,.12);
}

button, .button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(200,178,106,.35);
  background: linear-gradient(180deg, rgba(14,183,196,.22), rgba(12,111,123,.16));
  color: #eaf7ff;
  cursor:pointer;
  font-weight: 900;
}
button:hover, .button:hover{
  background: linear-gradient(180deg, rgba(14,183,196,.30), rgba(12,111,123,.20));
  border-color: rgba(200,178,106,.55);
}
.button.secondary{
  background: linear-gradient(180deg, rgba(200,178,106,.18), rgba(139,122,58,.12));
}
.button.secondary:hover{
  background: linear-gradient(180deg, rgba(200,178,106,.26), rgba(139,122,58,.16));
}

@media (max-width: 760px){
  .container{ padding: 14px; }
  .topbar-inner{ padding: 10px 12px; }
  .brand .badge{ display:none; }
}
