/* ZoneMyko web site - parchment frame design (images in public/img/ok) */
:root {
	--bg: #000;
	--frame: #6a4a20;
	--frame-hi: #a8854a;
	--rust: #8c2a10;
	--rust-hi: #b8541f;
	--gold: #7a1f08;
	--gold-dim: #6a4a20;
	--text: #2a1a0c;
	--dim: #6f5f48;
	--line: #c9b27e;
	--red: #b02010;
	--green: #1f7a1f;
	--link: #8c0000;
	--title-font: "Trajan Pro", "Cinzel", "Times New Roman", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	background: var(--bg) url("/img/ok/bg.jpg") center top repeat-y;
	color: var(--text);
	font: 12px/1.5 Verdana, Geneva, Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: #b81000; text-decoration: underline; }
img { border: 0; }
.dim { color: var(--dim); }
.center { text-align: center; }
.hidden { display: none; }
.up { color: var(--green); font-weight: bold; }
.down { color: var(--red); font-weight: bold; }
.gm { color: var(--gold); font-weight: bold; }
.num { text-align: right; white-space: nowrap; }

/* ---- frame --------------------------------------------------------------------------------------------------------------- */
.wrap { width: 1000px; margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 115px; padding: 0 12px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 96px; height: 96px; filter: drop-shadow(0 0 8px #000); }
.logo .logo-text { width: auto; height: 60px; filter: none; }
.logo:hover { text-decoration: none; }
.head-account { color: #e8dcc0; text-align: right; text-shadow: 1px 1px 2px #000; }
.head-account a, .head-account button.link { color: #f0c870; font-size: 12px; margin-left: 10px; font-weight: bold; }
.head-account a:hover, .head-account button.link:hover { color: #fff; }

.mainnav { display: flex; }
.nav-item { position: relative; width: 125px; }
.nav-btn { display: block; height: 25px; }
.nav-btn img { display: block; }
.nav-on { display: none !important; }
.nav-item:hover .nav-off, .nav-item:focus-within .nav-off, .nav-item.open .nav-off { display: none !important; }
.nav-item:hover .nav-on, .nav-item:focus-within .nav-on, .nav-item.open .nav-on { display: block !important; }
.nav-drop { display: none; position: absolute; z-index: 20; left: 0; top: 25px; min-width: 170px; margin: 0; padding: 3px 0; list-style: none; background: #17100a; border: 1px solid var(--frame-hi); box-shadow: 0 4px 10px rgba(0, 0, 0, .7); }
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop, .nav-item.open .nav-drop { display: block; }
.nav-drop a { display: block; padding: 4px 12px; color: #f0dcae; font-size: 11px; white-space: nowrap; }
.nav-drop a:hover { background: #6a2a10; color: #fff; text-decoration: none; }

.sheet-top { height: 87px; background: url("/img/ok/bg_frame_top.gif") center top no-repeat; }
.sheet { background: url("/img/ok/mainframe_bg_mid.gif") center top repeat-y; padding: 0 58px; }
.sheet-bottom { height: 88px; margin-top: -30px; position: relative; z-index: 0; background: url("/img/ok/bg_frame_bottom.gif") center top no-repeat; }
.columns { display: flex; gap: 20px; align-items: flex-start; margin-top: -48px; position: relative; z-index: 1; }
.content { flex: 1; min-width: 0; }
.right { width: 196px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.right > .panel { width: 184px; margin: 0; }
.right .clock { text-align: center; font: bold 12px Consolas, monospace; }
.pic img { display: block; }
.home-banner { position: relative; margin-bottom: 10px; border: 1px solid var(--frame); aspect-ratio: 1600 / 533; overflow: hidden; background: #000; }
.home-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.home-banner img.on { opacity: 1; }
.sl-arrow { position: absolute; top: 50%; z-index: 2; width: 26px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 4px; background: rgba(0, 0, 0, .55); cursor: pointer; }
.sl-arrow:hover, .sl-arrow:focus-visible { background: rgba(0, 0, 0, .8); }
.sl-arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border: solid #e8e8e8; border-width: 0 0 3px 3px; }
.sl-prev { left: 6px; }
.sl-prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.sl-next { right: 6px; }
.sl-next::before { transform: translate(-70%, -50%) rotate(225deg); }
.sl-dots { position: absolute; left: 50%; bottom: 6px; z-index: 2; display: flex; gap: 7px; padding: 4px 8px; border-radius: 10px; background: rgba(0, 0, 0, .45); transform: translateX(-50%); }
.sl-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #8a8a8a; cursor: pointer; }
.sl-dot:hover { background: #c8c8c8; }
.sl-dot.on { background: #f0c868; }
.title-img { display: block; margin-bottom: 6px; }
.title-img img { display: block; max-width: 100%; height: auto; }
.home-news { margin: 0 0 12px 8px; }

.notice-bar { height: 24px; margin: -40px 0 56px; overflow: hidden; position: relative; z-index: 2; background: #2a1408; border: 1px solid var(--frame); }
.notice-track { position: absolute; white-space: nowrap; line-height: 22px; color: #ffd27a; font-weight: bold; animation: ticker 28s linear infinite; left: 100%; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 1000px)); } }

/* login box of the right column (sliced images) */
.ok-login { width: 181px; margin: 0; }
.ok-login-top { display: block; }
.ok-login-row { display: flex; height: 67px; }
.ok-login-fields { width: 122px; height: 66px; padding: 7px 0 0 35px; background: url("/img/ok/home_login_mid1.gif") no-repeat; display: flex; flex-direction: column; gap: 5px; }
.ok-login-fields input { width: 80px; height: 19px; padding: 1px 3px; background: #fff; border: 1px solid #8a6a38; font: 11px Verdana, sans-serif; color: #000; }
.ok-login-btn { width: 47px; height: 67px; padding: 0; border: 0; background: url("/img/ok/home_login_mid2bt.gif") no-repeat; cursor: pointer; }
.ok-login-btn:hover { filter: brightness(1.15); }
.ok-login-bottom { position: relative; width: 181px; height: 29px; background: url("/img/ok/home_login_bottom.gif") no-repeat; }
.ok-login-bottom a { position: absolute; top: 3px; height: 20px; overflow: hidden; color: transparent; font-size: 0; }
.to-register { left: 16px; width: 68px; }
.to-forgot { left: 86px; width: 82px; }
.ok-logged { position: relative; width: 181px; background: url("/img/ok/home_logged_top.png") no-repeat; padding-top: 72px; }
.ok-logged-name { position: absolute; top: 44px; left: 38px; width: 130px; color: #fff; font: bold 12px Verdana, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-logged-body { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; padding: 34px 8px 10px; background: linear-gradient(transparent 0, #e6d3a4 34px); border-bottom: 2px solid var(--frame-hi); }

.btn-plate, .btn-metal {
	display: inline-block; padding: 4px 14px; color: #fff4d8; font: bold 11px Verdana, sans-serif; cursor: pointer; text-align: center;
	background: linear-gradient(#b8763a, #8a4f20); border: 1px solid #5a3210; border-radius: 4px; box-shadow: inset 0 1px 0 #d8a060;
}
.btn-plate:hover, .btn-metal:hover { filter: brightness(1.15); text-decoration: none; color: #fff; }
.btn-metal.small { padding: 2px 9px; font-size: 10px; }
.btn-metal.danger, button.danger { color: #ffd0c0; background: linear-gradient(#a03a20, #6a1a08); }
.discord { width: 184px; }

/* ---- panels -------------------------------------------------------------------------------------------------------------- */
.panel { margin-bottom: 12px; }
.panel-title {
	margin: 0 0 6px; padding: 0 0 5px; font: bold 17px var(--title-font); color: var(--gold); letter-spacing: 1px;
	border-bottom: 3px solid; border-image: linear-gradient(90deg, #6a4a20, #d0a850 30%, #6a4a20 90%, transparent) 1;
}
.panel-body { padding: 2px 4px; }
.panel.small .panel-title { font-size: 13px; padding-bottom: 3px; border-bottom-width: 2px; }
.panel.small .panel-body { padding: 2px; font-size: 11px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid2 > .panel { margin-bottom: 0; }
.grid2 { margin-bottom: 8px; }

.panel-strip, .server-time {
	display: flex; align-items: center; gap: 8px; padding: 8px 14px; margin-bottom: 8px;
	background: rgba(120, 80, 30, .12); border: 1px solid var(--line);
}
.server-time .label { color: var(--gold); font-weight: bold; font-size: 15px; }
.server-time .clock { color: var(--text); font-size: 14px; font-family: Consolas, monospace; }
.server-time .tag { margin-left: auto; padding: 0; background: none; color: var(--green); font: bold 15px var(--title-font); }

.flash { padding: 8px 12px; margin-bottom: 8px; border: 1px solid; }
.flash.ok { background: #dcebc0; border-color: #5a8a30; color: #24480c; }
.flash.err, .err { background: #f4d0c0; border: 1px solid #b03818; color: #6a1000; padding: 6px 10px; margin-bottom: 8px; }

/* ---- page banners (tools/make_page_banners.ps1) ------------------------------------------------------------------------- */
.page-hero {
	height: 120px; margin-bottom: 10px; display: flex; align-items: flex-end;
	background: #000 center / cover no-repeat; border: 1px solid var(--frame);
}
.hero-text { padding: 0 18px 14px; }
.page-hero h1 { margin: 0; font: bold 26px var(--title-font); color: #f0c050; letter-spacing: 1px; text-shadow: 0 2px 3px #000, 0 0 14px #a04010; }
.page-hero p { margin: 2px 0 0; color: #e8d8c0; font-size: 13px; text-shadow: 0 1px 2px #000; }
.hero-user { background-image: url("/img/banners/user.jpg"); }
.hero-monthly { background-image: url("/img/banners/monthly.jpg"); }
.hero-level { background-image: url("/img/banners/level.jpg"); }
.hero-clan { background-image: url("/img/banners/clan.jpg"); }
.hero-kills { background-image: url("/img/banners/kills.jpg"); }
.hero-search { background-image: url("/img/banners/search.jpg"); }
.hero-kings { background-image: url("/img/banners/kings.jpg"); }
.hero-events { background-image: url("/img/banners/events.jpg"); }
.hero-info { background-image: url("/img/banners/info.jpg"); }
/* top three of a ranking */
.rank .pos { display: inline-block; min-width: 22px; text-align: center; }
.rank tr.top1 .pos, .rank tr.top2 .pos, .rank tr.top3 .pos { border-radius: 50%; color: #1a0d07; font-weight: bold; line-height: 22px; height: 22px; box-shadow: 0 1px 2px #000; }
.rank tr.top1 .pos { background: radial-gradient(circle at 35% 30%, #fff2b0, #e0a820 60%, #8a5a08); }
.rank tr.top2 .pos { background: radial-gradient(circle at 35% 30%, #ffffff, #b8bcc4 60%, #5a5e66); }
.rank tr.top3 .pos { background: radial-gradient(circle at 35% 30%, #ffd2a8, #c07038 60%, #6a3410); }
.rank tr.top1 td { background: rgba(200, 150, 40, .16); }

/* ---- tables -------------------------------------------------------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; }
.rank th, .topics th { text-align: left; padding: 4px 6px; color: #f6e8c8; background: #6a3a18; border-bottom: 1px solid var(--line); font-size: 11px; }
.rank td, .topics td { padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rank tr:nth-child(even) td, .topics tr:nth-child(even) td { background: rgba(120, 80, 30, .07); }
.rank.short td { padding: 3px 5px; }
.kv td { padding: 3px 6px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.kv td:first-child { color: var(--gold-dim); text-align: left; width: 50%; white-space: nowrap; }
.right .kv td:first-child { width: auto; }
.rank-sym { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }
/* character inventory */
.iw-scroll { overflow-x: auto; }
.iw { position: relative; margin: 0 auto 10px; color: #e8dcc0; font: 11px Tahoma, Verdana, sans-serif; }
.iw > *, .iw-page > * { position: absolute; }
.iw-page { display: none; left: 0; top: 0; }
#mb1:checked ~ .iw-page1, #mb2:checked ~ .iw-page2, #mb3:checked ~ .iw-page3 { display: block; }
.iw input[type=radio] { opacity: 0; width: 0; height: 0; margin: 0; }
.iw-pb { display: block; background: no-repeat; line-height: 29px; text-align: center; cursor: pointer; color: #e8dcc0; }
span.iw-pb { cursor: default; color: #8a7a5a; }
.iw-cell img { display: block; width: 45px; height: 45px; }
.iw-cell > b { position: absolute; right: 1px; bottom: 0; color: #fff; font: bold 10px Tahoma, sans-serif; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000; }
.iw-cell.sealed::after { content: ""; position: absolute; inset: 0; background: rgba(100, 100, 255, .4); box-shadow: inset 0 0 0 1px #7888ff; pointer-events: none; }
.iw-info { padding-top: 90px; text-align: center; line-height: 1.6; }
.iw-info b { display: block; color: #fff; font-size: 13px; }
.iw-gold { text-align: right; line-height: 17px; color: #ffd98a; }
img.nation { width: 16px; height: 16px; vertical-align: middle; margin-right: 2px; }
img.cls { width: 16px; height: 16px; vertical-align: middle; }
.more { text-align: right; margin: 6px 0 0; }
.tabs { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.tabs a { padding: 2px 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .35); }
.tabs a.on { background: var(--rust); color: #fff; border-color: var(--rust-hi); }
.pager { margin: 10px 0 2px; display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pager a, .pager span { padding: 2px 8px; border: 1px solid var(--line); }
.pager .cur { background: var(--rust); color: #fff; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 3px 0; border-bottom: 1px solid var(--line); }

.nations { margin: 2px 0 10px; color: #f0e2c0; background: linear-gradient(#3a2614, #1e1208); border: 1px solid var(--frame); box-shadow: inset 0 0 0 1px rgba(255, 220, 150, .12); }
.nat-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 10px 8px; }
.nat { display: flex; flex: 1 1 0; align-items: center; gap: 7px; min-width: 0; }
.nat.elmo { justify-content: flex-end; text-align: right; }
.nat img.nation { flex: none; width: 30px; height: 30px; margin: 0; border: 1px solid rgba(255, 220, 150, .35); }
.nat span, .nat-total span { display: block; font-size: 10px; letter-spacing: .4px; color: #c9b27e; white-space: nowrap; }
.nat b { display: block; font-size: 17px; line-height: 1.15; }
.nat.karus b { color: #ff8f73; }
.nat.elmo b { color: #8fc4ff; }
.nat-total { flex: none; min-width: 58px; text-align: center; padding: 0 8px; border-left: 1px solid rgba(255, 220, 150, .2); border-right: 1px solid rgba(255, 220, 150, .2); }
.nat-total span { text-transform: uppercase; }
.nat-total b { display: block; font: bold 24px/1.1 var(--title-font); color: #ffd98a; }
.nat-bar { display: flex; height: 5px; background: #000; }
.nat-bar i { display: block; flex: 1 1 50%; transition: flex-basis .4s; }
.nat-bar .k { background: linear-gradient(#d2583a, #8c2a10); }
.nat-bar .e { background: linear-gradient(#5a9bdc, #1f4f8c); }
.nat-bar.empty i { background: #5a4a34; }

.char-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.char-head img.nation, .char-head img.cls { width: 24px; height: 24px; }
.char-name { font: bold 20px var(--title-font); color: var(--gold); }
h3.sub { color: var(--gold); font: bold 15px var(--title-font); border-bottom: 1px solid var(--line); padding-bottom: 4px; margin: 14px 0 8px; }

/* ---- poll ---------------------------------------------------------------------------------------------------------------- */
.poll-q { padding: 6px; margin-bottom: 8px; background: #6a3a18; border: 1px solid #5a3210; color: #fff4d8; font-weight: bold; text-align: center; }
.poll-opt { display: block; padding: 4px 6px; cursor: pointer; }
.poll-row { display: grid; grid-template-columns: 1fr 70px 76px; gap: 6px; align-items: center; padding: 3px 0; }
.bar { height: 10px; background: #fff8e4; border: 1px solid var(--frame-hi); }
.fill { height: 100%; background: linear-gradient(#e08030, #8a3010); }

/* ---- forms --------------------------------------------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 8px; }
.form.narrow { max-width: 420px; margin: 0 auto; }
.form label { display: flex; flex-direction: column; gap: 3px; color: var(--gold-dim); }
.form label.check { flex-direction: row; align-items: center; gap: 6px; color: var(--text); }
.form input, .form textarea, .form select, .inline-form input, .inline-form select {
	padding: 4px 6px; background: #fbf4dc; border: 1px solid #8a6a38; color: #1a1008; font: 12px Verdana, sans-serif;
}
.form input:focus, .form textarea:focus, .regform input:focus, .regform select:focus { outline: 2px solid var(--rust-hi); }
.regform { background: rgba(255, 255, 255, .28); border: 1px solid var(--line); padding: 14px 22px 18px; margin-bottom: 30px; }
.reg-head { margin: 0 0 10px; text-align: center; font: bold 18px var(--title-font); color: var(--gold); letter-spacing: 2px; }
.reg-sec { margin: 14px 0 6px; padding: 3px 8px; background: #6a3a18; color: #f6e8c8; font: bold 12px Verdana, sans-serif; }
.reg-row { display: flex; gap: 12px; padding: 4px 0; align-items: flex-start; }
.reg-label { width: 210px; flex: none; padding-top: 4px; text-align: right; font-weight: bold; color: var(--gold-dim); }
.reg-field { flex: 1; min-width: 0; }
.reg-field input, .reg-field select { width: 100%; max-width: 340px; padding: 4px 6px; background: #fbf4dc; border: 1px solid #8a6a38; color: #1a1008; font: 12px Verdana, sans-serif; }
.reg-hint { margin-top: 2px; font-size: 10px; color: var(--dim); }
.disclaimer { max-height: 210px; overflow-y: auto; padding: 8px 12px; margin-bottom: 8px; background: #fbf4dc; border: 1px solid #8a6a38; font-size: 11px; }
.disclaimer p { margin: 0 0 7px; }
.regform label.check { display: flex; gap: 6px; align-items: center; padding: 3px 0; }
.reg-submit { margin-top: 10px; text-align: center; }
.reg-submit .btn-metal { padding: 6px 28px; font-size: 13px; }
.form textarea { resize: vertical; min-height: 120px; }
.form button { align-self: flex-start; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.inline-form.sub { margin-left: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.inline { display: inline; }

/* ---- news / content ------------------------------------------------------------------------------------------------------ */
.news { padding: 6px 0 12px; border-bottom: 1px solid var(--line); }
.news:last-child { border-bottom: 0; }
.news h3 { margin: 0 0 2px; font: bold 16px var(--title-font); }
.meta { color: var(--dim); font-size: 11px; margin-bottom: 6px; }
.news-body, .post-body { word-wrap: break-word; overflow-wrap: anywhere; }
blockquote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--rust-hi); background: rgba(120, 80, 30, .1); }
blockquote cite { display: block; color: var(--gold-dim); font-style: normal; font-weight: bold; margin-bottom: 3px; }
pre.code { margin: 6px 0; padding: 8px; background: #fbf4dc; border: 1px solid var(--line); overflow-x: auto; font: 12px Consolas, monospace; white-space: pre-wrap; }

/* ---- forum --------------------------------------------------------------------------------------------------------------- */
.forum-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.crumbs { color: var(--dim); }
.right-link { text-align: right; margin: 0 0 6px; }
.forums td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.forums .f-name a { font: bold 15px var(--title-font); }
.forums .f-num { width: 70px; text-align: center; }
.forums .f-last { width: 230px; font-size: 12px; }
.topics tr.pinned td { background: rgba(200, 150, 40, .16); }
.tag { display: inline-block; padding: 0 5px; background: var(--rust); color: #fff; font-size: 10px; border-radius: 2px; }
.post { display: flex; gap: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .3); margin-bottom: 8px; }
.post.deleted { opacity: .55; }
.post-user { width: 150px; flex: none; padding: 8px; background: rgba(120, 80, 30, .1); border-right: 1px solid var(--line); font-size: 11px; }
.post-user a { font-size: 13px; font-weight: bold; }
.post-main { flex: 1; min-width: 0; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.post-meta { font-size: 11px; color: var(--dim); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.post-actions { display: flex; gap: 12px; font-size: 11px; justify-content: flex-end; }
button.link { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: 11px Verdana, sans-serif; }
button.link:hover { text-decoration: underline; }
.role2 { color: #b02010 !important; font-weight: bold; }
.role1 { color: #1a50a8 !important; font-weight: bold; }
.legend span { margin-right: 10px; }
.mod-box { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; margin-bottom: 8px; background: rgba(180, 80, 30, .12); border: 1px dashed var(--rust-hi); }
.mod-box button, .mod-box select { background: #fbf4dc; color: var(--text); border: 1px solid #8a6a38; padding: 3px 8px; cursor: pointer; }
.bb-bar { display: flex; gap: 3px; }
.bb-bar button { background: #fbf4dc; color: var(--text); border: 1px solid #8a6a38; padding: 2px 8px; cursor: pointer; }
.admin-cat { border: 1px solid var(--line); padding: 6px; margin-bottom: 6px; }

/* ---- footer -------------------------------------------------------------------------------------------------------------- */
.foot { text-align: center; padding: 10px 0 18px; color: #9a8a70; font-size: 10px; background: #000; }
.foot a { color: #d8b878; }
.foot nav { margin-bottom: 4px; }

/* bar widths (no inline styles: CSP) */
.w0 { width: 0; } .w5 { width: 5%; } .w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; }
.w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; }
.w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; } .w95 { width: 95%; } .w100 { width: 100%; }

/* ---- home page: Join the Community ---------------------------------------------------------------------------------------- */
.community { margin: 14px 0 8px; }
.community-title { margin: 0 0 8px; text-align: center; font: bold 19px var(--title-font); color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.community-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.community-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; text-align: center;
	background: linear-gradient(#f7ecd0, #e6d3a4); border: 1px solid #a8824a; border-radius: 5px; box-shadow: inset 0 0 0 1px #f9f1dc; }
.community-icon { filter: drop-shadow(0 1px 1px rgba(60, 30, 0, .45)); }
.community-card h3 { margin: 0; font: bold 14px var(--title-font); color: #5a3210; letter-spacing: 1px; text-transform: uppercase; }
.community-preview { width: 200px; height: 240px; overflow: hidden; background: #1c120a; border: 1px solid #5a3210; border-radius: 4px; }
.social-frame { display: block; border: 0; background: #fff; }
.ig-frame { transform: scale(.6135); transform-origin: 0 0; }	/* (Instagram's page is made for 326 px) */
.fb-preview { height: 100%; color: #1c1e21; background: #fff; text-align: center; font-size: 11px; line-height: 1.4; }
.fb-preview .fb-cover { display: block; width: 200px; height: 74px; }
.fb-preview .fb-avatar { display: block; width: 52px; height: 52px; margin: -28px auto 2px; padding: 3px; object-fit: contain; background: #2a1a10; border: 2px solid #fff; border-radius: 50%; box-sizing: border-box; }
.fb-preview b { display: block; margin-bottom: 5px; font: bold 15px Verdana, sans-serif; }
.fb-preview p { margin: 0 6px 2px; }
.dc-preview { display: flex; flex-direction: column; height: 100%; text-align: left; color: #dcddde; background: #2b2d31; }
.dc-head { display: flex; align-items: center; gap: 6px; padding: 12px 8px; color: #fff; background: #5865f2; }
.dc-head b { font: bold 14px Verdana, sans-serif; }
.dc-head span { margin-left: auto; font-size: 10px; line-height: 1.25; text-align: right; }
.dc-body { flex: 1; padding: 10px; font-size: 11px; }
.dc-body ul { margin: 0; padding: 0; list-style: none; }
.dc-body li { padding: 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-body li::before { content: "\1F50A"; margin-right: 5px; font-size: 10px; }
.dc-body p { margin: 0; line-height: 1.4; }
.community-soon { padding: 4px 14px; color: #7a6238; font: bold 11px Verdana, sans-serif; border: 1px dashed #a8824a; border-radius: 4px; }

/* ---- small screens (the frame pictures are 1000 px wide) ----------------------------------------------------------------- */
@media (max-width: 1020px) {
	body { background: #000; }
	.wrap { width: 100%; }
	.top { min-height: 0; padding: 8px 12px; flex-wrap: wrap; gap: 6px; }
	.logo img { width: 56px; height: 56px; }
	.logo .logo-text { height: 34px; }
	.mainnav { flex-wrap: wrap; }
	.nav-item { width: 25%; }
	.nav-btn { height: auto; }
	.nav-btn img { width: 100%; height: auto; }
	.nav-drop { min-width: 100%; }
	.nav-item:hover .nav-drop { display: none; }
	.nav-item.open .nav-drop { display: block; }
	.sheet-top, .sheet-bottom { display: none; }
	.sheet { background: #f3e7c6; padding: 12px 16px; }
	.notice-bar { margin: 0 0 10px; }
	.columns { flex-direction: column; margin-top: 0; }
	.content, .right { width: 100%; }
	.right > .panel { width: 100%; max-width: 420px; }
	.grid2 { grid-template-columns: 1fr; }
	.community-cards { grid-template-columns: 1fr; }
	.page-hero { height: 90px; }
	.page-hero h1 { font-size: 20px; }
	.reg-row { flex-direction: column; gap: 2px; }
	.reg-label { width: auto; text-align: left; }
	.reg-field { width: 100%; }
	.regform { padding: 10px; }
	.post { flex-direction: column; }
	.post-user { width: auto; border-right: 0; border-bottom: 1px solid var(--line); }
	.forums .f-last { display: none; }
	table.rank { font-size: 11px; }
	.content { overflow-x: auto; }
}
/* phones: the wide tables keep their main columns */
@media (max-width: 600px) { .hide-s { display: none; } }
@media (max-width: 400px) { .hide-xs { display: none; } }
@media (max-width: 600px) {
	.sl-dots { bottom: 3px; gap: 6px; padding: 2px 5px; }
	.sl-dot { width: 7px; height: 7px; }
	.sl-arrow { width: 22px; height: 36px; margin-top: -18px; }
}
.rank td:nth-child(2) { white-space: nowrap; width: 40px; }

.cf-turnstile { margin: 8px 0; }
.cf-turnstile.ts-hidden { position: absolute; width: 0; height: 0; margin: 0; overflow: hidden; }
.reg-submit .cf-turnstile { display: flex; justify-content: center; }

/* opening countdown on the home page (pages/site.js launchBox) */
.news.launch h3 { font-size: 20px; color: #7a1a08; }
.cd-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 12px 0 10px; }
.cd-card { flex: 1 1 240px; max-width: 320px; padding: 12px 10px 10px; text-align: center; border: 1px solid #a0702e; border-radius: 6px;
	background: linear-gradient(180deg, #3a2611, #160e06); box-shadow: 0 2px 10px rgba(0, 0, 0, .45), inset 0 0 18px rgba(201, 154, 74, .12); }
.cd-t { font: bold 15px var(--title-font); letter-spacing: 4px; text-transform: uppercase; color: #f3d48a; }
.cd-d { font-size: 11px; color: #a68d61; margin-top: 3px; }
.cd-units { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.cd-u { width: 52px; }
.cd-u b { display: block; font: normal 28px var(--title-font); color: #f6e2ad; text-shadow: 0 0 10px rgba(243, 180, 70, .4); font-variant-numeric: tabular-nums; line-height: 1.15; }
.cd-u span { font-size: 9px; letter-spacing: 2px; color: #a68d61; text-transform: uppercase; }
.cd-live { font: bold 22px var(--title-font); color: #8fd46a; letter-spacing: 3px; padding: 8px 0; }
.launch-links { text-align: center; }
.launch-links .btn-metal.small { font-size: 11px; padding: 4px 12px; margin: 0 3px; }
@media (max-width: 400px) { .cd-u { width: 44px; } .cd-u b { font-size: 23px; } }
