/* =========================================================================
   RagnarokHC — tema "classic" (perkamen & kayu ala kRO/pRO jadul)
   Nama class SAMA dgn tema ragnarok (markup header/footer/landing dipakai
   ulang). CSS var didefinisikan ulang ke palet klasik agar inline-style ikut.
   Dimuat SETELAH flux.css → override. Aman diedit live (bind-mount).
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Marcellus&family=Roboto:wght@400;500;700&display=swap');

:root {
	--bg:        #241a12;
	--bg-2:      #2e2116;
	--panel:     #f3e8cd;   /* perkamen terang */
	--panel-2:   #e8d7b0;   /* perkamen gelap */
	--border:    #9c7c4a;   /* bingkai coklat keemasan */
	--border-2:  #7a5c32;
	--gold:      #a9741f;   /* bronze/emas tua */
	--gold-2:    #c8972f;
	--blue:      #7a4a1e;   /* "aksen" jadi coklat (link) */
	--blue-2:    #5e3813;
	--text:      #43331f;   /* teks di atas perkamen */
	--muted:     #7c6647;
	--heading:   #5a3d1c;   /* judul coklat tua */
	--danger:    #a83232;
	--success:   #3f7d3f;
	--wood-1:    #3a2817;
	--wood-2:    #2a1c10;
	--radius:    8px;
	--maxw:      1180px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0; padding: 0;
	background:
		linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.5)),
		repeating-linear-gradient(90deg, #35251699 0 6px, #2c1e1199 6px 12px),
		#2a1c10;
	color: var(--text);
	font-family: 'Roboto', -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 15px; line-height: 1.6; min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-2); text-decoration: underline; }

h1,h2,h3,h4,h5 { font-family: 'Cinzel', 'Marcellus', Georgia, serif; color: var(--heading); line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.4em 0; }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* --------------------------------------------------------------- Navbar (kayu) */
.ro-nav {
	position: sticky; top: 0; z-index: 50;
	background: linear-gradient(180deg, #4a331d, #2f2013);
	border-bottom: 3px solid var(--gold);
	box-shadow: 0 3px 14px rgba(0,0,0,.55);
}
.ro-nav .wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.ro-brand { display: flex; align-items: center; gap: 8px; font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.35rem; color: var(--gold-2); text-shadow: 0 1px 2px #000; white-space: nowrap; }
.ro-brand:hover { color: #e6bd57; text-decoration: none; }
.ro-brand .ro-logo { height: 40px; width: auto; display: block; filter: drop-shadow(0 2px 5px rgba(0,0,0,.6)); }
.ro-brand .hc { font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.2rem; color: var(--gold-2); text-shadow: 0 1px 2px #000; margin-left: -2px; }
.ro-brand .dot { color: #e6bd57; }
.ro-menu { display: flex; align-items: center; gap: 2px; flex: 1; flex-wrap: wrap; }
.ro-menu > .item > a, .ro-drop > .label {
	display: inline-block; padding: 8px 13px; border-radius: 6px;
	color: #f0e0c0; font-weight: 500; font-size: .95rem; cursor: pointer;
}
.ro-menu > .item > a:hover, .ro-drop > .label:hover { color: #fff; background: rgba(0,0,0,.28); }
.ro-drop { position: relative; }
.ro-drop > .label { display: inline-flex; align-items: center; gap: 6px; }
.ro-drop > .menu {
	position: absolute; top: 100%; left: 0; min-width: 200px; padding: 8px;
	background: var(--panel); border: 2px solid var(--gold); border-radius: 8px;
	box-shadow: 0 12px 26px rgba(0,0,0,.5);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.ro-drop:hover > .menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ro-drop .cat { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; padding: 6px 8px 2px; }
.ro-drop > .menu a { display: block; padding: 7px 10px; border-radius: 5px; color: var(--heading); }
.ro-drop > .menu a:hover { background: var(--panel-2); text-decoration: none; }
/* mega-menu: kategori jadi kolom bersebelahan biar tak overflow vertikal */
.ro-drop > .menu.mega { display: flex; flex-wrap: wrap; gap: 2px 14px; width: 560px; max-width: 92vw; max-height: 78vh; overflow-y: auto; }
.ro-drop > .menu.mega .mega-col { flex: 0 0 162px; }
.ro-drop > .menu.mega .cat { padding: 8px 8px 3px; border-top: 1px solid var(--border); margin-top: 4px; }
.ro-drop > .menu.mega .mega-col:nth-child(-n+3) .cat { border-top: none; margin-top: 0; }
.ro-auth { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ro-user { color: #e8d7b0; font-size: .9rem; }
.ro-user b { color: var(--gold-2); }

/* --------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 20px; border-radius: 7px; font-weight: 700; font-size: .95rem; cursor: pointer;
	border: 2px solid transparent; transition: .16s ease; white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(180deg, #e6be5e, #b8860b); color: #3a2a0c; border-color: #8a6410; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); color: #2e2109; }
.btn-ghost { background: rgba(243,232,205,.9); color: var(--heading); border-color: var(--border); }
.btn-ghost:hover { background: #fff; border-color: var(--gold); }
.btn-sm { padding: 6px 13px; font-size: .85rem; }

/* --------------------------------------------------------------- Hero (perkamen + slot wallpaper) */
.hero {
	position: relative; overflow: hidden; padding: 74px 0 66px;
	border-bottom: 4px solid var(--gold);
	color: #f3e8cd;
	background:
		linear-gradient(180deg, rgba(30,20,12,.55), rgba(30,20,12,.78)),
		url('../img/hero.jpg') center/cover no-repeat,   /* slot wallpaper GRF (opsional) */
		radial-gradient(700px 340px at 50% -60px, #5a3d1c, transparent 70%),
		linear-gradient(180deg, #3a2817, #241a12);
}
.hero .wrap { position: relative; z-index: 2; text-align: center; }
.hero .eyebrow { color: var(--gold-2); font-family: 'Cinzel', serif; letter-spacing: 3px; text-transform: uppercase; font-size: .8rem; margin-bottom: 12px; }
.hero h1 { font-size: 3.1rem; font-weight: 900; color: #f6ebd0; margin: 0 0 12px; text-shadow: 0 3px 12px rgba(0,0,0,.8); }
.hero h1 .accent { color: var(--gold-2); }
.hero .tagline { color: #e6d6b6; font-size: 1.12rem; max-width: 640px; margin: 0 auto 24px; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero .rates { display: inline-flex; gap: 22px; flex-wrap: wrap; justify-content: center; padding: 12px 24px; border: 2px solid var(--gold); border-radius: 10px; background: rgba(243,232,205,.92); }
.hero .rates .r { text-align: center; }
.hero .rates .r b { display: block; font-family: 'Cinzel', serif; font-size: 1.35rem; color: var(--heading); }
.hero .rates .r span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
/* maskot & sprite */
.hero .mascot { position: absolute; z-index: 1; image-rendering: pixelated; opacity: .95; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.hero .mascot.left  { left: 6%;  bottom: 14px; width: 84px; transform: scaleX(-1); }
.hero .mascot.right { right: 6%; bottom: 20px; width: 96px; }
.sprite-strip { display: flex; gap: 10px; justify-content: center; align-items: flex-end; flex-wrap: wrap; margin-top: 6px; }
.sprite-strip img { image-rendering: pixelated; width: 44px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); transition: transform .15s ease; }
.sprite-strip img:hover { transform: translateY(-5px) scale(1.15); }

/* --------------------------------------------------------------- Status bar */
.statusbar { border-bottom: 3px solid var(--border-2); background: rgba(243,232,205,.94); }
.statusbar .wrap { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; padding: 14px 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.pill .led { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.pill.online { color: var(--success); } .pill.offline { color: var(--danger); }
.stat { display: flex; flex-direction: column; }
.stat b { font-family: 'Cinzel', serif; font-size: 1.28rem; color: var(--heading); line-height: 1.1; }
.stat span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.statusbar .sep { width: 2px; height: 32px; background: var(--border); }

/* --------------------------------------------------------------- Section & card */
.section { padding: 50px 0; }
.section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.section-title h2 { margin: 0; color: #f3e8cd; text-shadow: 0 2px 4px rgba(0,0,0,.6); }
.section-title::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3,1fr); } .grid.cols-2 { grid-template-columns: repeat(2,1fr); }
.card {
	background: linear-gradient(180deg, var(--panel), var(--panel-2));
	border: 2px solid var(--border); border-radius: var(--radius);
	padding: 18px 20px; box-shadow: 0 6px 16px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.35);
	transition: .16s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--border); color: var(--heading); }
.card h3 .tag { margin-left: auto; font-family: 'Roboto'; font-size: .68rem; color: #fff; background: var(--gold); padding: 2px 9px; border-radius: 20px; letter-spacing: 1px; }

.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; align-items: center; gap: 11px; padding: 8px 2px; border-bottom: 1px dashed var(--border); }
.rank li:last-child { border-bottom: none; }
.rank .no { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 5px; font-weight: 700; font-size: .8rem; background: #d8c294; color: #5a3d1c; border: 1px solid var(--border-2); }
.rank li:nth-child(1) .no { background: linear-gradient(180deg,#f0d47a,#c8972f); color:#40300c; }
.rank li:nth-child(2) .no { background: linear-gradient(180deg,#e2e2e2,#b0b0b0); color:#333; }
.rank li:nth-child(3) .no { background: linear-gradient(180deg,#e0a878,#b9743f); color:#3a220f; }
.rank .nm { font-weight: 600; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .val { margin-left: auto; color: var(--gold); font-weight: 700; white-space: nowrap; }
.rank .sub { color: var(--muted); font-size: .8rem; }

/* news */
.news-item h4 { font-family: 'Cinzel', serif; color: var(--heading); margin: 0 0 4px; }
.news-item .meta { color: var(--muted); font-size: .78rem; margin-bottom: 8px; }
.news-item p { margin: 0; color: var(--text); }

/* shop CTA */
.shop-cta { text-align: center; padding: 42px 24px; border-radius: 12px; border: 2px solid var(--gold);
	background: linear-gradient(180deg, var(--panel), var(--panel-2)); box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.shop-cta h2 { color: var(--heading); margin-bottom: 8px; }
.shop-cta p { color: var(--muted); max-width: 520px; margin: 0 auto 18px; }

/* --------------------------------------------------------------- Konten modul */
#flux-page { min-height: 40vh; }
.panelwrap { padding: 36px 0 56px; }
.panel { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 2px solid var(--border);
	border-radius: var(--radius); padding: 24px 28px; box-shadow: 0 6px 16px rgba(0,0,0,.4); color: var(--text); }
.panel h1,.panel h2,.panel h3 { color: var(--heading); }
.panel table { border-collapse: collapse; width: 100%; }
.panel table th, .panel table td { padding: 8px 10px; border: 1px solid var(--border); }
.panel table th { background: #d8c294; color: var(--heading); text-align: left; }
.panel table td { background: rgba(255,255,255,.35); }
.panel table tr:hover td { background: rgba(184,134,11,.14); }
.panel a { color: var(--blue); }

input[type=text],input[type=password],input[type=email],input[type=file],input[type=number],select,textarea {
	background: #fffdf6; color: var(--text); border: 2px solid var(--border); border-radius: 6px; padding: 8px 10px; font-size: .95rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,11,.2); }
input[type=submit], button, .button { background: linear-gradient(180deg,#e6be5e,#b8860b); color: #3a2a0c; border: 1px solid #8a6410; border-radius: 7px; padding: 9px 17px; font-weight: 700; cursor: pointer; }
input[type=submit]:hover, button:hover { filter: brightness(1.05); }

.message,.notice,.success { background: rgba(63,125,63,.14); border: 1px solid var(--success); color: #2f5e2f; padding: 12px 16px; border-radius: 7px; }
.error,.red { color: var(--danger); } .green { color: var(--success); }
pre.item-script { background: #2a1c10; border: 2px solid var(--gold); border-radius: 7px; padding: 14px 16px; color: #f0dfb8; font-size: .86rem; overflow-x: auto; }
#submenu a, .submenu a { display: inline-block; padding: 6px 12px; margin: 0 4px 4px 0; border: 2px solid var(--border); border-radius: 6px; background: var(--panel-2); color: var(--heading); }
#submenu a:hover, .submenu a:hover { border-color: var(--gold); background: var(--panel); }

/* --------------------------------------------------------------- Footer (kayu) */
.ro-footer { border-top: 3px solid var(--gold); background: linear-gradient(180deg, #3a2817, #241a12); margin-top: 36px; color: #d8c9a8; }
.ro-footer .wrap { padding: 32px 20px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.ro-footer .brand { font-family: 'Cinzel', serif; font-weight: 900; color: var(--gold-2); font-size: 1.2rem; }
.ro-footer .muted { color: #b8a888; font-size: .85rem; max-width: 380px; }
.ro-footer .cols { display: flex; gap: 44px; flex-wrap: wrap; }
.ro-footer .col b { display: block; color: #f0e0c0; margin-bottom: 8px; font-family: 'Cinzel', serif; font-size: .95rem; }
.ro-footer .col a { display: block; color: #c8b896; padding: 3px 0; font-size: .9rem; }
.ro-footer .col a:hover { color: var(--gold-2); }
.ro-copy { border-top: 1px solid #5a4326; }
.ro-copy .wrap { padding: 14px 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #a89778; font-size: .82rem; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
	.grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
	.hero h1 { font-size: 2.3rem; }
	.hero .mascot { display: none; }
	.ro-nav .wrap { height: auto; padding: 10px 20px; flex-wrap: wrap; }
	.ro-menu { order: 3; width: 100%; }
}
