/* ROSE Online Eternal - cartoon theme */
:root {
  --ink: #2b2d42;
  --sky1: #6dd5fa;
  --sky2: #c6f1ff;
  --pink: #ff6fae;
  --pink-d: #e04b8f;
  --yellow: #ffd23f;
  --yellow-d: #f4b400;
  --green: #5bd66c;
  --green-d: #34b34a;
  --purple: #9b7bff;
  --orange: #ff9f43;
  --white: #ffffff;
  --card: #fffdf7;
  --shadow: 6px 6px 0 var(--ink);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Fredoka', 'Baloo 2', 'Comic Sans MS', 'Trebuchet MS', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 55%, #e9ffd9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  font-size: 17px;
}

a { color: var(--pink-d); font-weight: 600; }
h1, h2, h3 { font-family: 'Bangers', 'Fredoka', 'Comic Sans MS', cursive; letter-spacing: 1px; margin: 0 0 .4em; }

/* ---------- floating clouds ---------- */
.sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.cloud {
  position: absolute; background: #fff; border: 4px solid var(--ink); border-radius: 60px; height: 54px; width: 150px;
  box-shadow: 4px 4px 0 rgba(43,45,66,.25); animation: drift linear infinite;
}
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border: 4px solid var(--ink); border-radius: 50%; }
.cloud::before { width: 62px; height: 62px; top: -34px; left: 22px; border-bottom-color: transparent; }
.cloud::after { width: 78px; height: 78px; top: -44px; left: 62px; border-bottom-color: transparent; }
.c1 { top: 12%; left: -200px; animation-duration: 70s; }
.c2 { top: 32%; left: -240px; animation-duration: 95s; animation-delay: -30s; transform: scale(.8); }
.c3 { top: 58%; left: -220px; animation-duration: 80s; animation-delay: -55s; transform: scale(1.1); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 480px)); } }

/* ---------- layout ---------- */
.top, .page, .foot { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 18px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 14px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .mascot { width: 66px; height: 66px; transition: transform .2s; }
.logo:hover .mascot { transform: rotate(-12deg) scale(1.1); }
.logo .title {
  font-family: 'Bangers', 'Comic Sans MS', cursive; font-size: 40px; letter-spacing: 2px; line-height: 1;
  color: var(--yellow); -webkit-text-stroke: 2px var(--ink); text-shadow: 3px 3px 0 var(--ink);
}
.logo .title small { display: block; font-size: 20px; color: #fff; text-shadow: 2px 2px 0 var(--ink); }

nav { display: flex; gap: 10px; flex-wrap: wrap; }
.btn, nav a {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 17px; color: var(--ink);
  background: var(--yellow); border: 4px solid var(--ink); border-radius: 999px; padding: 8px 20px;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.btn:hover, nav a:hover { transform: translate(-2px, -3px) rotate(-1.5deg); box-shadow: 6px 7px 0 var(--ink); }
.btn:active, nav a:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
nav a.pink, .btn.pink { background: var(--pink); color: #fff; text-shadow: 1px 1px 0 var(--ink); }
nav a.green, .btn.green { background: var(--green); }
nav a.purple, .btn.purple { background: var(--purple); color: #fff; text-shadow: 1px 1px 0 var(--ink); }
.btn.big { font-size: 23px; padding: 12px 30px; }
.who { align-self: center; font-weight: 700; background: #fff; border: 4px solid var(--ink); border-radius: 999px; padding: 6px 16px; }

.page { padding-top: 10px; padding-bottom: 30px; }

.card {
  background: var(--card); border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 26px; margin-bottom: 26px; position: relative;
}
.card h2 { font-size: 34px; color: var(--pink-d); -webkit-text-stroke: 1px var(--ink); text-shadow: 2px 2px 0 var(--ink); }
.card.blue { background: #e7f6ff; }
.card.yellow { background: #fff6c7; }
.card.pink { background: #ffe3f0; }
.card.green { background: #e6ffe8; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center;
  background: linear-gradient(135deg, #fff6c7 0%, #ffe3f0 100%);
}
.hero h1 { font-size: 64px; line-height: 1; color: var(--pink); -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink); }
.hero p { font-size: 20px; margin: 10px 0 18px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .art { text-align: center; }
.hero .art svg { width: 100%; max-width: 300px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(3deg); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
.stat {
  text-align: center; background: #fff; border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 8px;
}
.stat:nth-child(1) { background: #d9f7ff; } .stat:nth-child(2) { background: #ffe8c2; } .stat:nth-child(3) { background: #e0ffd9; }
.stat .num { font-family: 'Bangers', cursive; font-size: 46px; line-height: 1; }
.stat .lbl { font-weight: 700; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid3 .card { margin-bottom: 0; }
.feature .emoji { font-size: 48px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 8px 0 8px 54px; margin-bottom: 8px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 4px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--ink); text-align: center; line-height: 34px; font-weight: 700; font-size: 20px;
}
code, .code {
  background: #fff; border: 2px dashed var(--ink); border-radius: 10px; padding: 2px 8px; font-family: Consolas, monospace; font-size: 15px;
}

/* ---------- forms ---------- */
.formcard { max-width: 560px; margin: 10px auto 26px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field .hint { font-size: 14px; opacity: .75; }
input[type=text], input[type=password], input[type=email] {
  width: 100%; font-family: inherit; font-size: 18px; color: var(--ink);
  border: 4px solid var(--ink); border-radius: 16px; padding: 10px 14px; background: #fff; outline: none;
  box-shadow: inset 3px 3px 0 rgba(43,45,66,.12);
}
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus { border-color: var(--pink-d); box-shadow: 0 0 0 4px #ffc7de; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.msg { border: 4px solid var(--ink); border-radius: 16px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.msg.err { background: #ffd6d6; }
.msg.ok { background: #d7ffd9; }
.msg.info { background: #d9f0ff; }

/* ---------- characters ---------- */
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.char {
  border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; overflow: hidden;
  transition: transform .15s;
}
.char:hover { transform: translateY(-5px) rotate(-1deg); }
.char .head { padding: 16px; text-align: center; border-bottom: 4px solid var(--ink); position: relative; }
.char .avatar {
  width: 92px; height: 92px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 4px solid var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 46px; box-shadow: 3px 3px 0 var(--ink);
}
.char .name { font-family: 'Bangers', cursive; font-size: 30px; letter-spacing: 1px; word-break: break-all; }
.char .lv {
  position: absolute; top: 10px; right: 10px; background: var(--yellow); border: 3px solid var(--ink);
  border-radius: 999px; padding: 2px 12px; font-weight: 700; transform: rotate(8deg);
}
.char .body { padding: 12px 16px 16px; }
.char .row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 2px dotted rgba(43,45,66,.35); }
.char .row:last-child { border-bottom: 0; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; border: 3px solid var(--ink); border-radius: 999px; padding: 0 10px; background: #ffb3b3; }

table.rank { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
table.rank th { text-align: left; padding: 4px 12px; font-family: 'Bangers', cursive; font-size: 22px; letter-spacing: 1px; }
table.rank td { background: #fff; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding: 8px 12px; font-weight: 600; }
table.rank td:first-child { border-left: 3px solid var(--ink); border-radius: 14px 0 0 14px; }
table.rank td:last-child { border-right: 3px solid var(--ink); border-radius: 0 14px 14px 0; }
table.rank tr.top1 td { background: #fff1a8; }

/* ---------- footer ---------- */
.foot {
  text-align: center; margin-top: 10px; padding-top: 40px; padding-bottom: 26px; font-weight: 600;
}
.grass {
  position: relative; z-index: 1; height: 54px; margin-top: 16px;
  background: radial-gradient(circle at 20px 0, var(--green) 24px, transparent 25px) 0 0 / 40px 54px repeat-x, var(--green-d);
  border-top: 4px solid var(--ink);
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 46px; }
  .grid3, .stats { grid-template-columns: 1fr; }
  .logo .title { font-size: 30px; }
}

/* ---------- Rose Online logo + "Eternal" ribbon ---------- */
.logo { gap: 6px; }
.logo-img { height: 92px; width: auto; display: block; filter: drop-shadow(3px 4px 0 rgba(43,45,66,.35)); transition: transform .2s; }
.logo:hover .logo-img { transform: rotate(-3deg) scale(1.05); }

.eternal {
  display: inline-block; font-family: 'Bangers', 'Comic Sans MS', cursive; letter-spacing: 3px; line-height: 1;
  font-size: 46px; color: #fff; -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink);
  background: linear-gradient(180deg, #ff9ecb 0%, var(--pink) 100%);
  border: 4px solid var(--ink); border-radius: 18px; padding: 4px 18px 6px; box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-4deg); margin-left: 4px; animation: wiggle 3.2s ease-in-out infinite;
}
.eternal .colon { color: var(--yellow); }
.eternal.big { font-size: 72px; margin-top: 8px; }
@keyframes wiggle { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(-1deg) scale(1.06); } }

.hero-logo { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(5px 6px 0 rgba(43,45,66,.35)); animation: bob 3s ease-in-out infinite; }
.hero .art { text-align: center; }

@media (max-width: 760px) {
  .logo-img { height: 66px; }
  .eternal { font-size: 32px; }
  .eternal.big { font-size: 50px; }
}
/* ---------- key-art banner ---------- */
.banner {
  position: relative; margin: 0 auto 26px; max-width: 920px;
  border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: #2f7d6d;
  transform: rotate(-.6deg);
}
.banner img { display: block; width: 100%; height: auto; }
.banner-tag {
  position: absolute; left: 14px; bottom: 12px; background: var(--yellow); border: 4px solid var(--ink); border-radius: 999px;
  padding: 4px 16px; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg);
}
@media (max-width: 760px) { .banner-tag { font-size: 14px; left: 8px; bottom: 8px; } }
/* ---------- home stage: key art with the heroes ---------- */
.stage {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: center; min-height: 430px;
  border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 26px; padding: 28px 30px;
  background:
    linear-gradient(90deg, rgba(24,12,56,.88) 0%, rgba(24,12,56,.55) 48%, rgba(24,12,56,.05) 100%),
    url('heroes.webp') right center / cover no-repeat, #2b1d5c;
  color: #fff; position: relative; overflow: hidden;
}
.stage h1 { font-size: 62px; line-height: 1; color: var(--yellow); -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink); }
.stage p { font-size: 20px; margin: 12px 0 20px; text-shadow: 2px 2px 0 rgba(0,0,0,.55); }
.stage .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.stage-logo { text-align: center; }
.stage-logo .hero-logo { max-width: 340px; }
@media (max-width: 760px) {
  .stage { grid-template-columns: 1fr; padding: 20px; min-height: 0; }
  .stage h1 { font-size: 42px; }
  .stage-logo .hero-logo { max-width: 220px; }
}
/* ---------- discord + download ---------- */
nav a.discord, .btn.discord { background: #5865f2; color: #fff; text-shadow: 1px 1px 0 var(--ink); }
nav a.orange, .btn.orange { background: var(--orange); }
.discordcard { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: #e9ebff; }
.discordcard h2 { margin: 0; }
.discordcard p { margin: 4px 0 0; }
.foot a { color: var(--ink); }
/* ---------- landing picture ---------- */
.landing {
  position: relative; margin: 0 0 26px; border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; background: #cfe9ff;
}
.landing img { display: block; width: 100%; height: auto; }
.landing-tag { position: absolute; right: 22px; bottom: 16px; margin: 0; }
.welcome h1 { font-size: 54px; line-height: 1.05; color: var(--pink); -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink); }
.welcome p { font-size: 20px; margin: 10px 0 18px; }
.welcome .actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .welcome h1 { font-size: 38px; }
  .landing-tag { font-size: 34px; right: 10px; bottom: 8px; }
}
/* ---------- header logo (Eternal Rose Online - Private Server) ---------- */
.logo-img { height: 112px; /* logo-eternal-size */ }
.top { padding-top: 10px; padding-bottom: 8px; }
@media (max-width: 760px) { .logo-img { height: 80px; } }
/* server rates */
.rates { margin-bottom: 26px; }
.rates-title { font-family: 'Bangers', cursive; font-size: 30px; margin: 0 0 12px; letter-spacing: 1px; }
.rates-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rate { border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 8px; text-align: center; }
.rate .num { font-family: 'Bangers', cursive; font-size: 42px; line-height: 1; }
.rate .lbl { font-weight: 700; }
.r1 { background: #ffd9ec; } .r2 { background: #d9f7ff; } .r3 { background: #e0ffd9; } .r4 { background: #ffe8c2; }
@media (max-width: 700px) { .rates-grid { grid-template-columns: repeat(2, 1fr); } }
