/* Land of Hero website — styled after the game's own login screen and windows */
:root {
  --navy: #0b1a3a; --navy-2: #122a5c; --navy-3: #1a3a78;
  --ink: #f2ecd9; --muted: #a9b4cc;
  --gold: #e0b955; --gold-2: #b98a2a; --gold-3: #fff0b8;
  --green: #4fbf5a; --green-2: #2c8b39; --red: #d8443c; --red-2: #9c2a24;
  --panel-bg: linear-gradient(180deg, rgba(23, 48, 96, .96), rgba(10, 22, 50, .97));
  --radius: 10px;
  --font-head: 'Cinzel', 'Cairo', serif;
  --font-body: 'Nunito', 'Cairo', system-ui, sans-serif;
}
html[lang="ar"] { --font-head: 'Cairo', 'Cinzel', sans-serif; --font-body: 'Cairo', 'Nunito', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: #0a1631; line-height: 1.55; min-height: 100vh; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-3); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); margin: 0 0 .4em; letter-spacing: .02em; }
h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .big { font-size: 1.2rem; }
.c { text-align: center; } .r { text-align: end; } .gold { color: var(--gold); font-weight: 800; } .nowrap { white-space: nowrap; }
.container { width: min(1180px, 100% - 32px); margin: 0 auto; }
.inline { display: inline; }
.hp { position: absolute; left: -9999px; }
.plain { padding-inline-start: 1.2em; margin: 0; }

/* sky */
.sky { position: fixed; inset: 0; z-index: -1; background: #0a1631 url(/static/img/bg.jpg) center top / cover no-repeat; }
.sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 22, 49, .05) 0%, rgba(10, 22, 49, .35) 40%, rgba(10, 22, 49, .8) 75%, rgba(10, 22, 49, .95) 100%); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, rgba(8, 18, 42, .96), rgba(8, 18, 42, .88)); border-bottom: 2px solid var(--gold-2); box-shadow: 0 4px 18px rgba(0, 0, 0, .35); backdrop-filter: blur(6px); }
.top-inner { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { flex-shrink: 0; }
.brand img { height: 46px; width: auto; display: block; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 6px; color: var(--ink); font-weight: 700; font-family: var(--font-head); font-size: .92rem; }
.nav a:hover, .nav a.on { background: rgba(224, 185, 85, .16); color: var(--gold-3); }
.nav a.staff { color: #8fd3ff; }
.top-right { display: flex; align-items: center; gap: 8px; }
.burger { display: none; background: none; border: 1px solid var(--gold-2); color: var(--gold); font-size: 1.3rem; border-radius: 6px; padding: 2px 10px; }
.status { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.status i, .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #777; margin-inline-end: 5px; vertical-align: middle; }
.status.up i, .dot.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status.down i, .dot.off { background: var(--red); box-shadow: 0 0 8px var(--red); }
.lang { font-size: .85rem; font-weight: 700; padding: 6px 8px; }

/* buttons */
.btn { display: inline-block; border: 1px solid rgba(0, 0, 0, .5); border-radius: 7px; padding: 9px 18px; font-weight: 800; font-family: var(--font-head); font-size: .9rem; line-height: 1.2; cursor: pointer; text-align: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 8px rgba(0, 0, 0, .35); transition: transform .08s, filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-gold { background: linear-gradient(180deg, #ffe08a 0%, #e5b74a 45%, #b9842a 100%); color: #2b1a05; }
.btn-green { background: linear-gradient(180deg, #7fe07f 0%, #45b04d 45%, #2b7a34 100%); color: #06200a; }
.btn-red { background: linear-gradient(180deg, #ff8a7f 0%, #d8443c 45%, #8f241f 100%); color: #fff; }
.btn-dark { background: linear-gradient(180deg, #2c4c8e 0%, #1b3468 45%, #10214a 100%); color: var(--ink); border-color: var(--gold-2); }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-lg { padding: 13px 28px; font-size: 1.05rem; }

/* hero (home) */
.hero { position: relative; min-height: 560px; overflow: hidden; display: flex; align-items: center; }
.hero-inner { position: relative; z-index: 3; text-align: center; padding: 40px 0 120px; max-width: 640px; }
.hero-logo { width: min(520px, 80%); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); animation: rise 1s ease-out both; }
.tagline { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-3); text-shadow: 0 2px 6px rgba(0, 0, 0, .7); margin: 10px 0 4px; }
.blurb { max-width: 620px; margin: 0 auto 22px; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-status { margin-top: 18px; display: flex; gap: 22px; justify-content: center; font-size: .95rem; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.hero-status b { color: var(--gold); }
.hero-char { position: absolute; bottom: 0; z-index: 2; height: 58%; max-width: 26vw; object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45)); animation: float 5s ease-in-out infinite; pointer-events: none; }
.hero-char.left { left: max(0px, calc(50% - 640px)); } .hero-char.right { right: max(0px, calc(50% - 620px)); animation-delay: -2.5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

/* band (inner pages) */
.band { position: relative; min-height: 170px; overflow: hidden; display: flex; align-items: flex-end; background: linear-gradient(180deg, rgba(5, 12, 30, .35), rgba(5, 12, 30, 0)); }
.band-inner { position: relative; z-index: 3; padding: 34px 0 18px; }
.page-title { font-size: 2rem; color: var(--gold-3); text-shadow: 0 2px 8px rgba(0, 0, 0, .8); margin: 0 0 4px; }
.band .muted { text-shadow: 0 1px 4px rgba(0, 0, 0, .8); color: #dfe6f5; }

/* layout */
.main { padding: 22px 0 50px; }
.home .main { margin-top: -70px; position: relative; z-index: 5; }
.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.grid-2.tight { gap: 12px; grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

/* panels (game windows) */
.panel { background: var(--panel-bg); border: 2px solid var(--gold-2); border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 12px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12); overflow: hidden; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .15)); border-bottom: 1px solid var(--gold-2); flex-wrap: wrap; }
.panel-h h2 { margin: 0; color: var(--gold); text-shadow: 0 1px 2px #000; font-size: 1.1rem; }
.panel-b { padding: 16px; }
.panel.narrow { max-width: 860px; margin: 0 auto 18px; }
.form-panel { max-width: 520px; margin: 0 auto; } .form-panel.wide { max-width: 860px; }
.card .card-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; border-bottom: 1px solid var(--gold-2); }
.card-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(224, 185, 85, .25); }
.card-row:last-child { border-bottom: 0; } .card-row h3 { margin-bottom: 2px; }
.thumb { width: 120px; height: 76px; object-fit: cover; border-radius: 6px; border: 1px solid var(--gold-2); }
.excerpt { color: #d6dcea; font-size: .92rem; white-space: pre-line; }
.prose { font-size: 1rem; } .prose p { margin-bottom: 1em; } .prose ul, .prose ol { padding-inline-start: 1.4em; }
.tabs .tab { padding: 6px 14px; border-radius: 6px; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.tabs .tab.on { background: rgba(224, 185, 85, .2); color: var(--gold-3); }
.search { display: flex; gap: 6px; margin-inline-start: auto; }
.search input { width: 180px; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.subnav a { padding: 5px 12px; border-radius: 6px; background: rgba(0, 0, 0, .35); color: var(--ink); font-size: .85rem; border: 1px solid transparent; }
.subnav a.on { border-color: var(--gold-2); color: var(--gold-3); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: start; font-family: var(--font-head); font-size: .8rem; color: var(--gold); letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--gold-2); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
tbody tr:hover { background: rgba(224, 185, 85, .07); }
th.c, td.c { text-align: center; }
.rank-table .top1 { background: linear-gradient(90deg, rgba(255, 215, 90, .22), transparent); }
.rank-table .top2 { background: linear-gradient(90deg, rgba(200, 200, 220, .16), transparent); }
.rank-table .top3 { background: linear-gradient(90deg, rgba(205, 127, 50, .18), transparent); }
.rank-table .crown { height: 34px; vertical-align: middle; }
.rank-n { display: inline-block; min-width: 26px; font-weight: 800; color: var(--muted); }
.hero-name { font-weight: 800; display: block; }
.hero-title { display: block; font-size: .78rem; color: var(--gold); }
.cls { width: 26px; height: 26px; vertical-align: middle; margin-inline-end: 6px; border-radius: 5px; background: rgba(0, 0, 0, .3); }
.cls-name { font-size: .85rem; }
.rank-table.compact .cls-name { display: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }

/* forms */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; }
.label { font-size: .85rem; font-weight: 700; color: var(--gold); font-family: var(--font-head); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input[type=datetime-local], select, textarea { width: 100%; padding: 9px 11px; border-radius: 6px; border: 1px solid var(--gold-2); background: rgba(0, 0, 0, .45); color: var(--ink); font: inherit; font-size: .95rem; color-scheme: dark; }
.mono { font-family: ui-monospace, Consolas, "Courier New", monospace; letter-spacing: .04em; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(224, 185, 85, .5); }
select option { background: #10214a; }
textarea { resize: vertical; }
.hint { color: var(--muted); font-size: .78rem; }
.check { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .88rem; } .kv dd { margin: 0; }
.char-row { padding: 10px 0; border-bottom: 1px dashed rgba(224, 185, 85, .25); }
.char-row:last-child { border-bottom: 0; }
.char-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 4px; align-items: center; }
.char-meta b { color: var(--ink); }
.dl-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed rgba(224, 185, 85, .25); }
.dl-row:last-child { border-bottom: 0; } .dl-row h3 { margin-bottom: 2px; }
.steps { padding-inline-start: 1.3em; margin: 0; } .steps li { margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { display: grid; text-align: center; padding: 14px; background: var(--panel-bg); border: 2px solid var(--gold-2); border-radius: var(--radius); color: var(--ink); }
.stat b { font-size: 1.8rem; color: var(--gold); font-family: var(--font-head); } .stat span { font-size: .8rem; color: var(--muted); }

/* badges & flashes */
.badge { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: .74rem; font-weight: 800; vertical-align: middle; }
.st-open { background: #b76a12; color: #fff; } .st-answered { background: var(--green-2); color: #fff; } .st-closed { background: #555; color: #eee; }
.pay-pending { background: #b76a12; color: #fff; } .pay-delivered { background: var(--green-2); color: #fff; } .pay-failed { background: #a8322b; color: #fff; } .pay-cancelled { background: #555; color: #eee; }
.item-lines { display: grid; gap: 6px; }
.item-line { display: grid; grid-template-columns: 7.5rem 5rem 1fr; gap: 8px; align-items: center; }
.item-line .item-name { color: var(--ink); line-height: 1.35; }
.item-line .item-name.bad { color: #e57373; }
.search-row { display: flex; gap: 6px; }
.item-results { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.item-result { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 6px 8px; border: 1px solid rgba(224, 185, 85, .25); border-radius: 6px; background: rgba(0, 0, 0, .25); }
.vch-items { line-height: 1.4; }
.computer { padding: 10px 0; border-bottom: 1px dashed rgba(224, 185, 85, .25); display: grid; gap: 4px; }
.computer:last-child { border-bottom: 0; }
.computer-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.computer.banned .mono { color: #e57373; }
.computer-ban { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.computer-ban input[name="reason"] { flex: 1; min-width: 0; }
.cheat-kind { background: #6b3a8c; color: #fff; margin: 1px 0; } .cheat-kind.cheat-soft { background: #555; color: #eee; }
.cheat-table td { vertical-align: top; } .nowrap { white-space: nowrap; }
.act-table th, .act-table td { padding: 6px 8px; text-align: end; white-space: nowrap; }
.act-table th:first-child, .act-table td:first-child { text-align: start; }
.act-table .act-total td { border-top: 1px solid var(--gold-2); color: var(--gold-3); }
[hidden] { display: none !important; }
@media (max-width: 560px) { .item-line { grid-template-columns: 1fr 4.5rem; } .item-line .item-name { grid-column: 1 / -1; } }
.vch-unused { background: #1f5fa8; color: #fff; } .vch-pending { background: #b76a12; color: #fff; } .vch-used { background: var(--green-2); color: #fff; } .vch-disabled, .vch-expired { background: #555; color: #eee; }
form.inline { display: inline-block; margin: 2px 0; }
/* a list row with its buttons at the end; on a narrow screen the buttons go under the text (Discord page) */
.row-end { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed rgba(224, 185, 85, .25); }
.row-end > :first-child { flex: 1 1 220px; min-width: 0; line-height: 1.5; }
.row-end > .end { margin-inline-start: auto; white-space: nowrap; }
.row-end + .form, .row-end + p, #news .form + p, #discord .form + p { margin-top: 16px; }
.qz-q { padding: 4px 0 12px; border-bottom: 1px dashed rgba(224, 185, 85, .25); }
.qz-q .row-end { border-bottom: 0; padding-bottom: 4px; }
.qz-q .form { margin-top: 0; }
/* cash shop */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pack { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 16px 12px; border: 1px solid var(--gold-2); border-radius: var(--radius); background: rgba(0, 0, 0, .28); }
.pack h3 { margin: 0; color: var(--gold-3); }
.pack-cash { font-size: 1rem; } .pack-cash b { font-size: 1.7rem; color: var(--gold); font-family: var(--font-head); }
.pack-bonus { font-size: .88rem; color: var(--green); min-height: 1.4em; }
.pack-price { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.shop-open { background: #1f5fa8; color: #fff; } .shop-paying, .shop-paid { background: #b76a12; color: #fff; }
.shop-delivered { background: var(--green-2); color: #fff; } .shop-underpaid, .shop-review { background: #a8322b; color: #fff; }
.shop-expired, .shop-failed, .shop-refunded, .shop-cancelled { background: #555; color: #eee; }
.shop-alert { color: #ff9c94; font-weight: 700; }
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
#coin-filter { max-width: 260px; margin-bottom: 12px; }
.coin { display: grid; gap: 2px; align-content: start; justify-items: start; text-align: start; padding: 10px 12px; border: 1px solid var(--gold-2); border-radius: 8px; background: rgba(0, 0, 0, .3); color: var(--ink); font: inherit; cursor: pointer; transition: background .15s, transform .08s; }
.coin:hover:not(:disabled) { background: rgba(224, 185, 85, .16); transform: translateY(-1px); }
.coin:disabled { opacity: .5; cursor: not-allowed; }
.coin b { color: var(--gold-3); line-height: 1.25; }
.coin-net { font-size: .74rem; color: var(--muted); letter-spacing: .03em; }
.coin-tag { font-size: .74rem; color: var(--muted); } .coin-tag.on { color: var(--green); font-weight: 700; } .coin-tag.off { color: #ff9c94; }
.paybox { display: grid; gap: 14px; margin-bottom: 14px; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; }
.pay-coin { color: var(--gold); white-space: nowrap; }
#pay-amount { font-size: 1.15rem; font-weight: 800; color: var(--gold-3); }
.pay-qr { display: grid; justify-items: center; gap: 6px; text-align: center; }
.pay-qr svg { width: 190px; height: 190px; border-radius: 8px; display: block; }
.pay-rules { margin-bottom: 12px; } .pay-rules li { margin-bottom: 4px; }
.pay-addr { font-size: .74rem; word-break: break-all; letter-spacing: 0; }
.coin-list { line-height: 1.9; }
#pack-form { margin-top: 20px; } #pack-form h3 { margin: 0 0 4px; color: var(--gold-3); }
.ev-active { background: var(--green-2); color: #fff; } .ev-upcoming { background: #2f63b8; color: #fff; } .ev-ended { background: #555; color: #eee; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; font-weight: 700; transition: opacity 1s; }
.flash.gone { opacity: 0; }
.flash.ok { background: rgba(44, 139, 57, .35); border-color: var(--green); }
.flash.error { background: rgba(156, 42, 36, .45); border-color: var(--red); }
.flash.warn { background: rgba(185, 138, 42, .35); border-color: var(--gold); }
.thread { display: grid; gap: 12px; margin-bottom: 18px; }
.msg { border-radius: 8px; padding: 10px 14px; background: rgba(0, 0, 0, .3); border-inline-start: 4px solid var(--muted); }
.msg.staff { border-inline-start-color: var(--gold); background: rgba(224, 185, 85, .12); }
.msg-h { margin-bottom: 4px; } .msg-b p:last-child { margin-bottom: 0; }
.err-char { height: 200px; display: block; margin: 0 auto 10px; }

/* footer */
.foot { border-top: 1px solid var(--gold-2); background: rgba(5, 12, 30, .85); padding: 20px 0 30px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }

/* responsive */
@media (max-width: 1160px) {
  /* the menu, the name and the buttons must fit one line: no "online" count, tighter links */
  .status { display: none; }
  .top-inner { gap: 10px; }
  .nav { gap: 0; } .nav a { padding: 8px 8px; font-size: .86rem; }
}
@media (max-width: 960px) {
  .burger { display: block; margin-inline-start: auto; }
  .nav { display: none; flex-direction: column; width: 100%; order: 3; }
  .nav.open { display: flex; }
  .top-inner { flex-wrap: wrap; }
  .top-right { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero-char { height: 36%; opacity: .85; max-width: 22vw; } .hero-char.left { left: 0; } .hero-char.right { right: 0; }
  .hide-sm { display: none; }
}
@media (max-width: 760px) {
  .hero { min-height: 480px; } .hero-inner { padding-bottom: 110px; }
  .home .main { margin-top: -60px; }
  .tagline { font-size: 1.2rem; }
  .grid-2.tight { grid-template-columns: 1fr; }
  .dl-row { flex-direction: column; align-items: flex-start; }
}
