/* ragnarok-bots.com — frost palette taken from the logo (edit.2) */
:root {
	--abyss: #090e21;      /* logo background */
	--abyss-2: #0d1530;
	--panel: #111a38;
	--glacier: #9fd8ff;    /* ice lettering */
	--rune: #39c6ff;       /* circuit glow */
	--frost: #e8f4ff;      /* text */
	--steel: #8796b8;      /* muted text */
	--ember: #f2b84b;      /* gold, the one warm accent */
	--hp: #e5484d;
	--ok: #46d39a;
	--line: rgba(159, 216, 255, .16);
	--display: 'Chakra Petch', 'IBM Plex Sans Thai Looped', sans-serif;
	--body: 'IBM Plex Sans Thai Looped', 'Chakra Petch', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--abyss); color: var(--frost); font: 400 16px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--glacier); }
img { max-width: 100%; height: auto; display: block; }
code { font: 500 .92em/1 var(--display); color: var(--glacier); background: rgba(57, 198, 255, .1); border: 1px solid var(--line); border-radius: 4px; padding: .15em .4em; }

/* buttons: rune = carved ice with a gold edge, ghost = outline */
.btn-rune, .btn-ghost {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font: 600 17px/1 var(--display); letter-spacing: .02em; text-decoration: none;
	padding: 15px 30px; border-radius: 6px; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-rune {
	color: #0a1024; background: linear-gradient(180deg, #ffe3a3, var(--ember) 55%, #c98a22);
	box-shadow: 0 0 0 1px #ffe9b8 inset, 0 8px 28px rgba(242, 184, 75, .28);
}
.btn-rune:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #fff3d6 inset, 0 12px 34px rgba(242, 184, 75, .42); }
.btn-ghost { color: var(--frost); border: 1px solid rgba(159, 216, 255, .45); background: rgba(13, 21, 48, .55); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--glacier); background: rgba(57, 198, 255, .12); transform: translateY(-2px); }

/* ---------- gate (/) ---------- */
.gate { min-height: 100vh; min-height: 100dvh; overflow: hidden;
	background: radial-gradient(60% 55% at 50% 45%, #13224a 0%, var(--abyss) 70%); }
.gate-in { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; }
.gate-logo { margin: 0; width: min(78vw, 64vh, 620px); }
.gate-logo img { width: 100%; height: auto;
	-webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
	animation: breathe 6s ease-in-out infinite, rise 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.gate .btn-rune { animation: rise 1s .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes breathe { 0%, 100% { filter: drop-shadow(0 0 18px rgba(57, 198, 255, .25)); } 50% { filter: drop-shadow(0 0 42px rgba(57, 198, 255, .55)); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* drifting frost specks */
.frost { position: fixed; inset: 0; pointer-events: none; }
.frost i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--glacier);
	box-shadow: 0 0 8px 2px rgba(57, 198, 255, .6); opacity: 0; animation: drift 14s linear infinite; }
.frost i:nth-child(1) { left: 6%; animation-delay: 0s; }
.frost i:nth-child(2) { left: 14%; animation-delay: 6s; animation-duration: 18s; }
.frost i:nth-child(3) { left: 22%; animation-delay: 3s; }
.frost i:nth-child(4) { left: 31%; animation-delay: 9s; animation-duration: 16s; }
.frost i:nth-child(5) { left: 39%; animation-delay: 1s; animation-duration: 20s; }
.frost i:nth-child(6) { left: 47%; animation-delay: 11s; }
.frost i:nth-child(7) { left: 55%; animation-delay: 4s; animation-duration: 17s; }
.frost i:nth-child(8) { left: 63%; animation-delay: 8s; }
.frost i:nth-child(9) { left: 70%; animation-delay: 2s; animation-duration: 19s; }
.frost i:nth-child(10) { left: 77%; animation-delay: 12s; }
.frost i:nth-child(11) { left: 84%; animation-delay: 5s; animation-duration: 15s; }
.frost i:nth-child(12) { left: 91%; animation-delay: 10s; }
.frost i:nth-child(13) { left: 96%; animation-delay: 7s; animation-duration: 21s; }
.frost i:nth-child(14) { left: 3%; animation-delay: 13s; animation-duration: 18s; }
@keyframes drift { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translate(40px, -105vh); opacity: 0; } }

/* ---------- /main ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 10px clamp(16px, 4vw, 48px); background: rgba(9, 14, 33, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-brand { display: flex; align-items: center; gap: 10px; color: var(--frost); text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: .04em; }
.top-brand img { width: 40px; height: 40px; border-radius: 50%; }
.top-nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); }
.top-nav a { color: var(--steel); text-decoration: none; font: 500 15px/1 var(--display); }
.top-nav a:hover { color: var(--frost); }
.top-nav .top-cta { color: var(--ember); border: 1px solid rgba(242, 184, 75, .5); padding: 9px 16px; border-radius: 6px; }
.top-nav .top-cta:hover { color: #0a1024; background: var(--ember); }

.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(9, 14, 33, .94) 0%, rgba(9, 14, 33, .72) 42%, rgba(9, 14, 33, .2) 75%),
		linear-gradient(0deg, var(--abyss) 0%, transparent 28%); }
.hero-in { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) clamp(16px, 4vw, 48px) clamp(56px, 7vw, 96px);
	display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.eyebrow { margin: 0 0 14px; font: 600 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--rune); }
.hero h1 { margin: 0; font: 700 clamp(44px, 6.4vw, 84px)/1.08 var(--display); letter-spacing: -.01em; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.ice { color: var(--glacier); text-shadow: 0 0 22px rgba(57, 198, 255, .55), 0 0 2px #fff; }
.lead { margin: 22px 0 32px; font-size: clamp(16px, 1.6vw, 19px); color: #c9d8f0; max-width: 34em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* the status window — built like the game's own info window */
.win { background: linear-gradient(180deg, rgba(20, 31, 66, .94), rgba(12, 19, 44, .96)); border: 1px solid rgba(159, 216, 255, .3);
	border-radius: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(57, 198, 255, .12);
	overflow: hidden; backdrop-filter: blur(6px); }
.win-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px;
	background: linear-gradient(90deg, rgba(57, 198, 255, .22), rgba(57, 198, 255, .04)); border-bottom: 1px solid var(--line);
	font: 600 14px/1 var(--display); letter-spacing: .06em; color: var(--glacier); }
.pill { display: inline-flex; align-items: center; gap: 7px; font: 600 13px/1 var(--display); padding: 6px 10px; border-radius: 99px;
	background: rgba(135, 150, 184, .15); color: var(--steel); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill[data-state="on"] { color: var(--ok); background: rgba(70, 211, 154, .13); }
.pill[data-state="on"] i { box-shadow: 0 0 0 0 rgba(70, 211, 154, .7); animation: ping 2s infinite; }
.pill[data-state="off"] { color: var(--hp); background: rgba(229, 72, 77, .14); }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(70, 211, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(70, 211, 154, 0); } }
.win-head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 6px; }
.win-head img { width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--line); }
.win-name { font: 700 22px/1.2 var(--display); }
.win-sub { color: #c9d8f0; font-size: 15px; }
.win-sub b { font: 700 18px/1 var(--display); color: var(--ember); }
.mute { color: var(--steel); font-size: 13px; }
.win-online { margin: 12px 18px; padding: 14px 16px; border-radius: 8px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line);
	display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 2px; }
.win-online .lbl { color: var(--steel); font-size: 14px; }
.win-online .num { grid-row: span 2; font: 700 46px/1 var(--display); color: var(--frost); font-variant-numeric: tabular-nums;
	text-shadow: 0 0 18px rgba(57, 198, 255, .45); }
.win-online .note { color: var(--steel); font-size: 12px; }
.win-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.win-rates div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 18px; background: rgba(12, 19, 44, .96); }
.win-rates span { font: 500 14px/1 var(--display); color: var(--steel); letter-spacing: .03em; }
.win-rates b { font: 700 22px/1 var(--display); color: var(--glacier); }
.win-rates .gold b { color: var(--ember); }

.band { padding: clamp(64px, 8vw, 110px) 0; }
.band.deep { background: linear-gradient(180deg, var(--abyss) 0%, var(--abyss-2) 18%, var(--abyss-2) 82%, var(--abyss) 100%); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.sec-h { margin: 0 0 36px; font: 700 clamp(30px, 3.6vw, 44px)/1.15 var(--display); display: flex; align-items: center; gap: 18px; }
.sec-h::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(159, 216, 255, .5), transparent); }
.sub-h { margin: 48px 0 18px; font: 600 22px/1.3 var(--display); color: var(--glacier); }
.sub-h:first-of-type { margin-top: 0; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-in { padding: 24px 26px 26px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.card h3 { margin: 0 0 8px; font: 700 24px/1.25 var(--display); }
.card p { margin: 0 0 20px; color: #c9d8f0; }
.card .url { margin: 12px 0 0; font: 500 13px/1 var(--display); color: var(--steel); letter-spacing: .04em; }
.card .btn-rune, .card .btn-ghost { margin-top: auto; }

.tile { position: relative; padding: 26px 26px 24px; border-radius: 10px; background: rgba(17, 26, 56, .7); border: 1px solid var(--line); }
.tile h4 { margin: 4px 0 8px; font: 700 21px/1.3 var(--display); }
.tile p { margin: 0 0 10px; color: #c9d8f0; }
.tile .eg { color: var(--steel); font-size: 15px; }
.tag { font: 600 12px/1 var(--display); letter-spacing: .12em; color: var(--rune); text-transform: uppercase; }
.link { font: 600 15px/1 var(--display); color: var(--ember); text-decoration: none; }
.link:hover { text-decoration: underline; }

.kit { border-radius: 12px; padding: 26px; border: 1px dashed rgba(159, 216, 255, .35); background: rgba(9, 14, 33, .5); }
.kit-lead { margin: 0 0 20px; color: #c9d8f0; max-width: 46em; }
.kit-parts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.part { padding: 18px 20px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.part h4 { margin: 0 0 6px; font: 700 19px/1.2 var(--display); color: var(--glacier); }
.part p { margin: 0; color: #c9d8f0; font-size: 15px; }
.plus { align-self: center; font: 700 30px/1 var(--display); color: var(--ember); }
.kit-foot { margin: 18px 0 0; color: var(--steel); font-size: 14px; }

.local { margin-top: 48px; display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 14px; overflow: hidden;
	border: 1px solid rgba(242, 184, 75, .3); background: var(--panel); }
.local img { height: 100%; width: 100%; object-fit: cover; min-height: 280px; aspect-ratio: auto; }
.local-in { padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.local h3 { margin: 0 0 12px; font: 700 clamp(24px, 2.6vw, 32px)/1.2 var(--display); }
.local p { margin: 0 0 12px; color: #c9d8f0; }
.local b { color: var(--ember); }
.local .btn-ghost { margin-top: 10px; }

.outro { text-align: center; padding: clamp(64px, 8vw, 110px) 16px; background: radial-gradient(50% 60% at 50% 40%, #13224a, var(--abyss) 72%); }
.outro img { margin: 0 auto 18px; border-radius: 50%; width: 96px; height: 96px; filter: drop-shadow(0 0 24px rgba(57, 198, 255, .45)); }
.outro p { margin: 0 0 28px; font: 700 clamp(26px, 3.4vw, 40px)/1.35 var(--display); }
.outro .hero-btns { justify-content: center; }
.foot { text-align: center; padding: 24px 16px 32px; color: var(--steel); font: 500 13px/1 var(--display); letter-spacing: .06em; border-top: 1px solid var(--line); }

/* ---------- bot.ragnarok-bots.com ---------- */
.bot .top-brand img { border-radius: 6px; }
.bot-hero { position: relative; overflow: hidden; background: radial-gradient(55% 70% at 25% 45%, #16285a 0%, var(--abyss) 72%); }
.bot-hero .frost { position: absolute; }
.bot-hero-in { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) clamp(16px, 4vw, 48px);
	display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.bot-emblem { width: 100%; max-width: 460px; justify-self: center;
	-webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); mask-image: radial-gradient(closest-side, #000 74%, transparent 100%);
	animation: breathe 6s ease-in-out infinite; }
.bot-hero h1 { margin: 0; font: 700 clamp(40px, 5.6vw, 72px)/1.1 var(--display); }
.hint { margin: 20px 0 0; color: var(--steel); font-size: 14px; max-width: 34em; }

.feat { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.feat img { border-radius: 12px; border: 1px solid var(--line); }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feat-list li { padding-left: 18px; border-left: 2px solid var(--rune); color: #c9d8f0; }
.feat-list b { display: block; font: 700 19px/1.35 var(--display); color: var(--frost); }

.steps-big { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps-big li { counter-increment: s; position: relative; padding: 54px 22px 22px; border-radius: 10px; background: rgba(17, 26, 56, .7); border: 1px solid var(--line); }
.steps-big li::before { content: counter(s); position: absolute; top: 16px; left: 22px; width: 28px; height: 28px; border-radius: 50%;
	display: grid; place-items: center; font: 700 15px/1 var(--display); color: #0a1024; background: var(--ember); }
.steps-big h3 { margin: 0 0 6px; font: 700 19px/1.3 var(--display); }
.steps-big p { margin: 0 0 10px; color: #c9d8f0; font-size: 15px; }
.steps-mini { margin: 4px 0 14px; padding-left: 1.3em; color: #c9d8f0; }
.steps-mini li { margin-bottom: 6px; }
.steps-mini li::marker { color: var(--ember); font-family: var(--display); font-weight: 700; }

@media (max-width: 1000px) { .steps-big { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
	.bot-hero-in, .feat { grid-template-columns: 1fr; }
	.bot-emblem { max-width: 300px; }
}
@media (max-width: 560px) { .steps-big { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
	.hero-in { grid-template-columns: 1fr; }
	.hero::after { background: linear-gradient(180deg, rgba(9, 14, 33, .55) 0%, rgba(9, 14, 33, .92) 55%, var(--abyss) 100%); }
	.duo, .local { grid-template-columns: 1fr; }
	.local img { min-height: 0; aspect-ratio: 3 / 2; }
	.kit-parts { grid-template-columns: 1fr; }
	.plus { justify-self: center; }
	.top-nav a:not(.top-cta) { display: none; }
}
@media (max-width: 420px) {
	.top-brand { font-size: 16px; }
	.win-online .num { font-size: 40px; }
	.btn-rune, .btn-ghost { padding: 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.frost { display: none; }
}
