@font-face { font-family: "Erica One"; src: url("fonts/EricaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/Outfit-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/Outfit-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("fonts/rubik-hebrew-400-normal.woff2") format("woff2"); font-weight: 400; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("fonts/rubik-hebrew-700-normal.woff2") format("woff2"); font-weight: 700; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("fonts/rubik-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("fonts/rubik-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #070a17;
  --night: #0d1430;
  --navy: #17204a;
  --navy-2: #22306a;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #ffd34d;
  --gold-deep: #f6a90d;
  --cream: #f5efe1;
  --muted: #9aa5cf;
  --green: #5be36f;
  --red: #ff5d6c;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background-color: var(--ink); }
body {
  font-family: "Outfit", "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--cream);
  /* (painted down the whole page, not only the first screen: phones ignore a fixed background) */
  background-color: var(--ink);
  background-image: radial-gradient(1200px 600px at 50% -10%, #2a3b8a 0%, rgba(42, 59, 138, 0) 70%), linear-gradient(180deg, var(--night) 0px, var(--ink) 1400px);
  background-repeat: no-repeat;
  min-height: 100vh;
  line-height: 1.5;
}
html[dir="rtl"] body { font-family: "Rubik", "Outfit", system-ui, sans-serif; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }

/* --- the top bar --- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(7, 10, 23, 0.78); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 700; letter-spacing: 0.08em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand:hover { text-decoration: none; }
.top nav { margin-inline-start: auto; display: flex; gap: 6px; align-items: center; }
.top nav a { color: var(--cream); padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.top nav a:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.lang { background: none; border: 1px solid var(--line); color: var(--cream); padding: 7px 11px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.lang:hover { background: rgba(255, 255, 255, 0.08); }

/* --- buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: 18px;
  border: none; cursor: pointer; font-family: inherit; text-decoration: none; transition: transform 0.12s ease, filter 0.12s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.gold { color: #2a1700; background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%); box-shadow: 0 5px 0 #a86a00, 0 10px 24px rgba(246, 169, 13, 0.35); }
.btn.navy { color: #fff; background: linear-gradient(180deg, #3a4a8c 0%, #26346c 100%); box-shadow: 0 5px 0 #141c40; }
.btn.green { color: #062b10; background: linear-gradient(180deg, #6be37a 0%, #2fbf4e 100%); box-shadow: 0 5px 0 #1d7a35; }
.btn.small { padding: 9px 16px; font-size: 15px; border-radius: 11px; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }

/* --- the landing --- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .art { position: absolute; inset: 0; background: url("img/feature.jpg") center / cover no-repeat; opacity: 0.38; filter: saturate(1.1); }
.hero .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 10, 23, 0.2) 0%, rgba(7, 10, 23, 0.95) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 70px 0 64px; }
.hero h1 { font-family: "Erica One", "Outfit", sans-serif; font-weight: 400; font-size: clamp(46px, 7vw, 84px); line-height: 0.95; margin: 0 0 14px;
  color: #fff; text-shadow: 0 4px 0 #6a3a00, 0 8px 30px rgba(0, 0, 0, 0.6); letter-spacing: 0.02em; }
.hero h1 span { color: var(--gold); }
.hero p.lead { font-size: 21px; color: #dfe4ff; margin: 0 0 26px; max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .shot { border-radius: 22px; overflow: hidden; border: 3px solid rgba(255, 211, 77, 0.55); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); transform: rotate(-2deg); }
html[dir="rtl"] .hero .shot { transform: rotate(2deg); }
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 211, 77, 0.14); color: var(--gold); font-weight: 700; font-size: 14px; border: 1px solid rgba(255, 211, 77, 0.35); }

section { padding: 64px 0; }
section h2 { font-family: "Erica One", "Outfit", sans-serif; font-weight: 400; font-size: clamp(30px, 4vw, 44px); margin: 0 0 8px; color: #fff; letter-spacing: 0.02em; }
html[dir="rtl"] section h2, html[dir="rtl"] .hero h1 { font-family: "Rubik", "Outfit", sans-serif; font-weight: 700; }
section p.sub { color: var(--muted); margin: 0 0 30px; font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, rgba(34, 48, 106, 0.85) 0%, rgba(23, 32, 74, 0.85) 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.card .icon { font-size: 30px; margin-bottom: 8px; }
.card h3 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.card p { margin: 0; color: #c9d0f2; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shots img { border-radius: 14px; border: 2px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }

.leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.leaders li { display: grid; grid-template-columns: 54px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px;
  background: rgba(23, 32, 74, 0.8); border: 1px solid var(--line); }
.leaders .place { font-weight: 700; font-size: 20px; color: var(--muted); }
.leaders li:nth-child(1) .place { color: var(--gold); }
.leaders li:nth-child(2) .place { color: #d9e1f5; }
.leaders li:nth-child(3) .place { color: #e7a46a; }
.leaders .who { font-weight: 700; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaders .lvl { color: var(--muted); font-size: 15px; }
.leaders .tro { color: var(--gold); font-weight: 700; }
.empty { color: var(--muted); padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: 14px; }

.cta { text-align: center; padding: 70px 0 90px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer .links { margin-inline-start: auto; display: flex; gap: 18px; flex-wrap: wrap; }

/* --- my player --- */
.panel { background: linear-gradient(180deg, rgba(34, 48, 106, 0.92) 0%, rgba(17, 24, 58, 0.95) 100%); border: 1px solid var(--line); border-radius: 24px; padding: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.signin { max-width: 560px; margin: 60px auto; text-align: center; }
.signin h1 { font-family: "Erica One", "Outfit", sans-serif; font-weight: 400; font-size: 40px; margin: 0 0 8px; color: #fff; }
html[dir="rtl"] .signin h1 { font-family: "Rubik", sans-serif; font-weight: 700; }
.signin p { color: #c9d0f2; }
.steps { text-align: start; margin: 18px auto 24px; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 420px; }
.steps li { display: flex; gap: 12px; align-items: center; }
.steps b { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #2a1700; }
.code-in { width: 100%; max-width: 300px; font: 700 34px "Outfit", monospace; letter-spacing: 0.28em; text-align: center; text-transform: uppercase; padding: 12px 10px;
  border-radius: 14px; border: 2px solid rgba(255, 211, 77, 0.5); background: rgba(7, 10, 23, 0.65); color: #fff; outline: none; direction: ltr; }
.code-in:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 211, 77, 0.2); }
.note { min-height: 26px; margin: 12px 0 0; font-weight: 700; }
.note.bad { color: var(--red); }
.note.good { color: var(--green); }

.me { margin: 44px auto 70px; }
.me-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.flag { width: 120px; height: 80px; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); position: relative; overflow: hidden; flex: 0 0 auto; }
.flag .emblem { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
.me-name { font-family: "Erica One", "Outfit", sans-serif; font-weight: 400; font-size: clamp(32px, 5vw, 50px); margin: 0; color: #fff; line-height: 1; overflow-wrap: anywhere; }
html[dir="rtl"] .me-name { font-family: "Rubik", sans-serif; font-weight: 700; }
.me-line { color: var(--muted); font-weight: 700; margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.vip { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #2a1700; padding: 2px 10px; border-radius: 8px; font-weight: 700; }
.me-head .out { margin-inline-start: auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.stat { background: rgba(7, 10, 23, 0.45); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat .k { color: var(--muted); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.stat .v { font-size: 30px; font-weight: 700; color: #fff; margin-top: 2px; white-space: nowrap; }
.stat.gold .v { color: var(--gold); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.box h3 { margin: 0 0 12px; font-size: 18px; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; }
.rows { display: grid; gap: 8px; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.rows div span:last-child { font-weight: 700; color: #fff; }
.clan-badge { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 2px solid #fff; font-weight: 700; color: #fff; margin-inline-end: 10px; vertical-align: middle; }
.friend-code { font: 700 22px "Outfit", monospace; letter-spacing: 0.12em; color: var(--gold); direction: ltr; display: inline-block; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; }
  .grid, .shots { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; }
  .top nav a.hide-sm { display: none; }
}

@media (max-width: 420px) {
  .stat { padding: 12px; }
  .stat .v { font-size: 24px; }
  .stat .k { font-size: 12px; }
}
