@import url('https://fonts.googleapis.com/css?family=Patua+One');
/* Multi-layer body background.
 *
 * The bg.png artwork has a vignette: textured cosmic dust around
 * the edges, flat dark in the middle. With `cover` + any single
 * position the middle dominates on ultrawide / short viewports
 * (3388 × 669 etc) — anyone with such a monitor saw a solid black
 * band on top. So we layer:
 *
 *   1. (top) soft purple-toned radial glow at the top centre,
 *      always painted regardless of how the bg.png falls.
 *   2. (mid) soft blue-toned radial glow at the bottom centre,
 *      mirrors the top for visual balance.
 *   3. (bottom) bg.png as before — `cover` + `center center` + fixed.
 *   4. solid fallback #0d0f12 underneath everything.
 *
 * On normal-aspect monitors layers 1+2 are subtle and the bg.png
 * texture dominates. On ultrawide the gradients carry the look
 * when the bg.png centre falls flat. */
body {
	background:
		radial-gradient(ellipse 90% 55% at 50% 0%, rgba(80, 40, 100, 0.22), transparent 70%),
		radial-gradient(ellipse 90% 55% at 50% 100%, rgba(40, 50, 90, 0.22), transparent 70%),
		url(/themes/default/images/bg.png) no-repeat center center fixed #0d0f12;
	background-size: auto, auto, cover;
	background-attachment: fixed, fixed, fixed;
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-family: 'Open Sans', sans-serif;
	color: #d3d3d3;
}
a
{
	text-decoration: none;
	color: #ffffff;
	transition: color 0.1s linear;

}
a:hover
{
	color: #ff5a00;
}
ul {
  margin: 2px 0 0 0;
  padding: 0;
}
textarea{
max-width: 530px !important;
}
ul li {
  list-style-type: none;
  margin: 0 0 6px 0;
  padding: 0 0 4px 5px;
  line-height: 1.5em;
}

ol {
  margin: 8px 0 5px 5px;
}

ol li {
  margin: 0 0 11px 0;
}

.form_settings {
  margin: 15px 0 0 0;
}

.form_settings p {
  padding: 0 0 4px 0;
}

.form_settings span {
  float: left;
  width: 200px;
  text-align: left;
}

.form_settings input, .form_settings textarea {
  padding: 5px;
  width: 299px;
  font: 100% arial;
  border: 1px solid #E5E5DB;
  background: #FFF;
  color: #47433F;
  border-radius: 7px 7px 7px 7px;
  -moz-border-radius: 7px 7px 7px 7px;
  -webkit-border: 7px 7px 7px 7px;
}

.form_settings .submit {
  font: 100% arial;
  border: 0;
  width: 99px;
  margin: 0 0 0 212px;
  height: 33px;
  padding: 2px 0 3px 0;
  cursor: pointer;
  background: #3B3B3B;
  color: #FFF;
  border-radius: 7px 7px 7px 7px;
  -moz-border-radius: 7px 7px 7px 7px;
  -webkit-border: 7px 7px 7px 7px;
}

.form_settings textarea, .form_settings select {
  font: 100% arial;
  width: 299px;
}

.form_settings select {
  width: 310px;
}

.form_settings .checkbox {
  margin: 4px 0;
  padding: 0;
  width: 14px;
  border: 0;
  background: none;
}

.separator {
  width: 100%;
  height: 0;
  border-top: 1px solid #D9D5CF;
  border-bottom: 1px solid #FFF;
  margin: 0 0 20px 0;
}

table {
  margin: 10px 0 5px 0;
  /*width: 100%;*/
    border-collapse: separate;
	background: #3B3B3B;
}

table tr th{
  background: #1a1a1a;
  color: #FFF;
  padding: 7px 4px;
  text-align: left;
}s

tr.yellow td {
  background: #ffffff;
  color: #FFF;
  padding: 7px 4px;
  text-align: left;
}
table tr td {
  background-image: url('/themes/default/images/darkimage.png');
  background-size: cover;
  border: 1px solid #3B3B3B;
}

table.stripped tr:nth-child(even) td {
	background-image: url('/themes/default/images/darkimage.png');
	background-size: cover;
}
table.stripped tr:nth-child(odd) td{
	background-image: url('/themes/default/images/darkimage.png');
	background-size: cover;
}
table.TableContent tr td , table.Table3 tr td {
	background-image: url('/themes/default/images/darkimage.png');
	background-repeat: no-repeat;
	background-size: cover;
}
table.TableContent tr.LabelH td {
	background-image: url('/themes/default/images/darkimage.png');
	background-size: cover;
}
.TableContainer table{
  margin: 0 !important;
}
.TableContainer td {
  padding: 2px 3px !important;
}
table tr td img{
  max-width: 520px;
}
input.hover:hover
{
	cursor: pointer;
}
/* guild war */
tr.special:hover td {
   background: orange;
}

tr.special {
    cursor: pointer;
}

ul.war_list li {
   font-size:18px;
}

.container_main
{
	width: 1170px;
	margin: 350px auto 0 auto;
}
.container_left, .container_right
{
	width: 246px;
	float: left;
	margin: 15px 0 0 0;
}
.container_mid
{
	min-height: 200px;
	width: 648px;
	float: left;
	margin: 0 15px;
}
.left_box, .right_box, .center_box
{
	width: 100%;
	background: url(/themes/default/images/border_left.png) repeat-y left top, url(/themes/default/images/border_right.png) repeat-y right top;
	position: relative;
	margin-bottom: 18px;
}
.corner_lt, .corner_rt, .corner_rb, .corner_lb
{
	z-index: 5;
}
.corner_lt
{
	position: absolute;
	width: 64px;
	height:64px;
	background: url(/themes/default/images/corners.png) no-repeat 0 0;
	left: -7px;
	top: -5px;
}
.corner_rt
{
	position: absolute;
	width: 64px;
	height:64px;
	background: url(/themes/default/images/corners.png) no-repeat -64px 0;
	right: -7px;
	top: -5px;
}
.corner_rb
{
	position: absolute;
	width: 64px;
	height:64px;
	background: url(/themes/default/images/corners.png) no-repeat -64px -64px;
	right: -7px;
	bottom: -5px;
}
.corner_lb
{
	position: absolute;
	width: 64px;
	height:64px;
	background: url(/themes/default/images/corners.png) no-repeat 0 -64px;
	left: -7px;
	bottom: -5px;
}
.left_box .content, .right_box .content
{
	margin: -1px 20px;
	width: 200px;
	padding: 3px 3px;
	background: url(/themes/default/images/widget_bg.png) repeat-y;
}
.center_box .content_bg
{
	width: 608px;
	margin: -1px 20px;
	position: relative;
	background: url(/themes/default/images/mid_bot.png) no-repeat center bottom, url(/themes/default/images/mid_top.png) no-repeat center top, url(/themes/default/images/mid_mid.png) repeat-y center top;
	color: #ffffff;
}
.center_box .content_bg .content
{
	padding: 6px 8px;
}

.left_box .border_bottom, .right_box .border_bottom,  .center_box .border_bottom
{
	background: url(/themes/default/images/border_bottom.png) repeat-x center bottom;
	width: 100%;
	display: block;
	height: 20px;
}
.left_box .title, .right_box .title,  .center_box .title
{
	background: url(/themes/default/images/border_top.png) repeat-x center top;
	width: 100%;
	height: 45px;
	position: relative;
}
.rise-up-content
{
	position: relative;
	z-index: 10;
}
.left_box ul li a:after
{
	content: "";
	width: 100%;
	background: url(/themes/default/images/line.png) no-repeat center top;
	height: 2px;
	display: block;
	margin-left: -10px;
}
.title span
{
	width: 100%;
	height: 45px;
	display: block;
	background-position: center center;
	background-repeat: no-repeat;
}
.title img
{
	position: absolute;
	left: 20px;
	top: 6px;
	z-index: 6;
}
.left_box ul
{
	list-style: none;
	padding: 0;
	margin: 0 0 0 8px;
}
.left_box ul li
{
	padding: 1.5px 0 2px 0;
	margin: 0;
}
.left_box ul li a
{
	display: block;
	color: #e7e7e7;
	text-shadow: 1px 1px 0 #000;
	transition: all 0.1s linear;
}
.left_box ul li a:hover
{
	color: orange;
	padding-left: 3px;

}
.inputtext
{
	width: 158px;
	height: 33px;
	background: url(/themes/default/images/quicklogin_input.png);
	padding: 0 10px;
	margin: 0 0 4px 11px;
	border: 0 none;
	color: #ffffff;
	font-size: 12px;
	text-shadow: 1px 1px 0 #000;
}
.loginbtn
{
	width: 83px;
	height: 23px;
	background: url(/themes/default/images/login_btn.png) 0 -23px;
	padding: 0;
	margin: 0 0 4px 12px;
	border: 0 none;
	display: inline-block;
	vertical-align: middle;
}
.loginbtn:hover
{
	cursor: pointer;
	background-position: 0 0;
}
.createbtn
{
	vertical-align: middle;
	display: inline-block;
	width: 83px;
	height: 23px;
	background: url(/themes/default/images/register_btn.png) 0 -23px;
	padding: 0;
	margin: 0 0 4px 7px;
	border: 0 none;
}
.createbtn:hover
{
	cursor: pointer;
	background-position: 0 0;
}
.download_client
{
	display: block;
	width: 249px;
	height: 69px;
	background: url(/themes/default/images/download_2.png) no-repeat;
	background-size: 249px 69px;
	margin: 0 0 10px -2px;
}
.download_client:hover
{
	background-position: 0 0;
}
.right_box
{
	text-shadow: 0 1px 0 #000;
}
.right_box a
{
	color: #ffffff;
	transition: color 0.1s linear;
}
.right_box a:hover
{
	color: #ff4e00;
}
table.sinfotable
{
	margin: 0 8px;
	font-size: 13px;
	width: 183px;
}
table.sinfotable td
{
	border-bottom: 1px solid #4c4b46;
    border-top: 1px solid #1c1c1a;
	color: #fff;
	padding: 4px 0;
}
ul.toplvl
{
	list-style: none;
	margin: 0 8px;
}
ul.toplvl li
{
	padding: 1px 0;
	margin: 0;
}
.lvl
{
    display: block;
    background: #cc7e0f;
    float: right;
    height: 15px;
    line-height: 14px;
    color: #fff;
    text-shadow: 0 0 5px #000;
    padding: 0px 5px;
    border-radius: 4px;
    box-shadow: 0 1px 0 #101010;
    border-top: 1px solid #ffc36d;
}
.acc_menu
{
	width: 183px;
	margin: 0 8px;
}
.acc_menu a
{
	box-sizing: border-box;
	display: inline-block;
	width: 100%;
	padding: 3px 0;
	font-size: 12px;
	text-align: center;
	background: rgba(0,0,0,0.3);
	border: 1px solid rgba(0,0,0,0.4);
	box-shadow: 0 1px 3px rgba(255,255,255,0.2) inset, 0 -1px 3px rgba(0,0,0,0.5) inset;
	border-radius: 3px;
	color: #fff;
	transition: all 0.1s linear;
	margin: 1px 0;
}
.acc_menu a:hover
{
	background: rgba(0,0,0,0.4);
}
.footer_cnt
{
	width: 1170px;
	float: left;
	margin: 20px 0 70px 0;
}



/* SLIDER */

.slider
{
	width: 207px;
    height: 100px;
    margin-left: -3px;
    margin-top: -3px;
    margin-bottom: -2px;
}

#slides
{
	display: none;
	width: 207px;
	height: 100px;
	float: left;
	z-index: 90;
	overflow: initial !important;
	position: relative;
}
.slidesjs-pagination
{
	z-index: 999;
	position: absolute;
	bottom: 5px;
	right: 5px;
}
ul.slidesjs-pagination
{
	list-style: none;
	padding: 3px;
	border-radius: 5px;
	margin: 0;
	background: rgba(0,0,0,0.5);
}
.slidesjs-pagination li
{
	float: left;
	margin: 0 3px;
	padding: 0;
}
.slidesjs-pagination li a
{
	background: rgba(255,255,255,0.3);
	display: block;
	width: 10px;
	height: 10px;
	float: left;
	overflow: hidden;
	text-indent: -999999999px;
	line-height: 99px;
	color: rgba(0,0,0,0.6);
	border-radius: 15px;
}
.slidesjs-pagination li a:hover
{
	background: rgba(255,255,255,0.5);
}
.slidesjs-pagination li a.active
{
	background: rgba(255,255,255,0.5);
}
.top-bar
{
	position: fixed;
	z-index: 200;
	top: 0;
	left: 0;
	width: 100%;
	text-align: center;
	font-family: 'Patua One', cursive;
	height: 30px;
	line-height: 30px;
	background: rgba(0,0,0,0.3);
	color: #fff;
	text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, 0px 1px 0 #000, 1px 0px 0 #000, -1px 0px 0 #000, -1px 0px 0 #000;
	font-weight: normal;
	font-size: 18px;
}
.top-bar a
{
	color: #f66545;
}

.hs-layout {
  display:flex;
  flex-direction:column;
  gap:14px;
}

.hs-title { 
  text-align:center; 
  margin:8px 0 8px; 
  font-size:22px; 
  color:#fff; 
  letter-spacing:.04em; 
}

.hs-filter-block {
  margin-bottom: 12px;
}

.hs-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #cfcfcf;
  margin: 0 0 6px 2px;
}

.hs-btns {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:8px;
  background:#1b1b1b;
  border:1px solid #2b2b2b;
  border-radius:10px;
}

.hs-btns.combined {
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:10px;
  background:#1b1b1b;
  border:1px solid #2b2b2b;
  border-radius:10px;
}

.hs-row {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:center;
}

.hs-btn {
  padding:6px 12px;
  border:1px solid #3c3c3c;
  border-radius:999px;
  background:#232323;
  color:#cfcfcf;
  text-decoration:none;
  font-size:13px;
  transition:.15s;
}

.hs-btn:hover { color:#fff; border-color:#6f6fff; }
.hs-btn.active {
  background:#6f6fff;
  border-color:#6f6fff;
  color:#fff;
  box-shadow:0 0 0 2px rgba(111,111,255,.25) inset;
}

.hs-main { width:100%; }
.hs-table {
  width:100%;
  border-collapse:collapse;
  color:#e0e0e0;
  background:#1b1b1b;
  border:1px solid #2b2b2b;
  border-radius:8px;
  overflow:hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 6px 14px rgba(0,0,0,.45);
}
.hs-table thead th {
  background:#2a2a2a;
  color:#fff;
  padding:10px 12px;
  text-align:left;
  font-weight:700;
  border-bottom:1px solid #303030;
  white-space:nowrap;
}
.hs-table tbody td {
  padding:10px 12px;
  border-bottom:1px solid #2a2a2a;
  vertical-align:middle;
}
.hs-table tbody tr:last-child td { border-bottom:none; }


.hs-flag  { width:28px; text-align:center; }
.hs-rank, .hs-value, .hs-points { text-align:center; white-space:nowrap; }
.hs-outfit{ width:72px; text-align:center; }
.hs-outfit img{ width:64px; height:64px; image-rendering:pixelated; }

.hs-name a { color:#fff; text-decoration:none; }
.hs-name small { display:block; color:#bcbcbc; margin-top:2px; }
.badge-on { color:#7cff7c; font-weight:700; }
.badge-off { color:#ff7c7c; }

.hs-points { text-align:right; white-space:nowrap; }

.hs-pagination { 
  display:flex; 
  gap:10px; 
  justify-content:flex-end; 
  margin:10px 0 0; 
}
.hs-pagination a {
  background:#2a2b34; 
  color:#fff; 
  text-decoration:none; 
  font-weight:600;
  border:1px solid #3d3e48; 
  border-radius:6px; 
  padding:6px 10px;
}
.hs-pagination a:hover { 
  background:#3d3e48; 
  border-color:#9b6cff; 
}

@media(max-width:700px){
  .hs-btns { justify-content:center; }
}

.hs-filter-label.center {
  text-align:center;
  font-size:14px;
  font-weight:600;
  color:#cfcfcf;
  margin-bottom:6px;
}

.hs-btns.compact {
  gap:6px;
  padding:6px;
}

.hs-btns.center {
  justify-content:center;
}

.hs-toolbar { margin-bottom: 8px; }
.hs-table   { margin-bottom: 12px; }
.hs-main    { padding-bottom: 12px; }
.hs-pagination { margin-top: 12px; }

.AuctionInput {
  width: 115px;
  margin-right: 7px;
  float: left;
}

.AuctionFilterHelper {
  clear: both;
}

.AuctionInputLong {
  width: 237px;
}

#CurrentTradesItemSearch #ItemInput {
  width: 350px;
}

.DisplayOptionsContent #ItemInput {
  width: 352px;
}

.DisplayOptionsContent {
  min-height: 25px;
  min-width: 600px;
}

.DisplayOptionsContent .DisplayOptionsLabel {
  float: left;
  padding-top: 2px;
}

.DisplayOptionsButton .BigButton {
  position: absolute;
  right: 5px;
}

.Content .BoxContent td {
  font-family:
    Verdana,
    Arial,
    Times New Roman,
    sans-serif;
  font-size: 10pt;
  color: #5a2800;
}

.LabelV120 {
  font-weight: 700;
  padding-right: 10px;
  white-space: nowrap;
  vertical-align: top;
  width: 120px;
}

.PageNavigation {
  padding-right: 10px;
  padding-bottom: 7px;
}

.TableContentContainer {
  border: 1px solid #6a4a2f;
  position: relative;
  margin-right: 7px;
  margin-bottom: 5px;
  height: 100%;
  background-color: #2b2b2b;
  padding: 0;
}

.InnerTableContainer .TableContentContainer {
  box-shadow: 3px 3px 2px #3a3a39;
}

.AuctionCharacterName {
  font-weight: 700;
  margin-bottom: 4px;
}

.AuctionBody {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  align-content: stretch;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed #ffffff;
}

.AuctionOutfit {
  position: relative;
}

.AuctionBodyBlock {
  margin-top: 5px;
  margin-bottom: 5px;
}

.AuctionDisplay {
  flex-basis: 112px;
  flex-grow: 0;
  flex-shrink: 0;
  order: 0;
  padding: 1px;
  background-color: #353534;
  border: 1px solid #ffffff;
  box-shadow: 2px 2px 5px 0 rgb(0 0 0 / 75%);
  float: left;
  margin-right: 10px;
}

.AuctionNewIcon {
  position: absolute;
  left: -4px;
  top: -4px;
  z-index: 100;
}

.AuctionOutfitImage {
  position: absolute;
  left: 0;
  top: 15px;
  z-index: 100;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  width: 80px;
}

.AuctionItemsViewBox {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  grid-auto-rows: 38px;
}

.VSCCoinImages {
  position: relative;
  margin-left: 2px;
  margin-right: 2px;
}

.CVIcon.CVIconObject {
  width: 32px;
  height: 32px;
  overflow: hidden;
}

.CVIcon.CVIconObject.NoEquipment {
  font-size: 10px;
  text-align: center;
}

.NoEquipment p {
  margin-top: 2px;
}

.CVIcon {
  float: left;
  position: relative;
  z-index: 150;
  cursor: help;
  background-color: #302f2f;
  border: 1px solid #ffffff;
  margin: auto;
  padding: 1px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.CVIcon.CVIconObject img {
  width: 32px;
  height: 32px;
}

.ObjectAmount {
  position: absolute;
  bottom: 0;
  right: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  z-index: 100;
  color: #fff;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.ShortAuctionData {
  position: relative;
  min-width: 300px;
  flex-shrink: 0;
  flex-grow: 1;
  padding: 10px;
  padding-top: 2px;
  padding-bottom: 2px;
  text-align: left;
  background-color: #353534;
  border: 1px solid #ffffff;
  box-shadow: 2px 2px 5px 0 rgb(0 0 0 / 50%);
}

.ShortAuctionData .AuctionTimer {
  position: absolute;
  top: 18px;
  right: 10px;
  width: 200px;
  text-align: right;
  background-color: #f1e0c6;
  color: red;
}

.ShortAuctionData .ShortAuctionDataLabel {
  width: 115px;
  font-weight: 700;
  float: left;
}

.ShortAuctionDataValue {
  text-align: right;
}

.ShortAuctionDataBidRow {
  margin-top: 5px;
}

.CurrentBid {
  width: 142px;
  flex-shrink: 0;
  margin-left: 10px;
  padding: 5px;
  text-align: center;
  background-color: #353534;
  border: 1px solid #ffffff;
  box-shadow: 2px 2px 5px 0 rgb(0 0 0 / 50%);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.CurrentBid .Container {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.MyMaxBidLabel {
  font-weight: 700;
}

.MyMaxBidInput {
  width: 131px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.SpecialCharacterFeatures {
  flex-basis: 300px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: stretch;
  align-items: center;
  padding: 10px;
  background-color: #3a3a3a;
  border: 1px solid #ffffff;
  box-shadow: 2px 2px 5px 0 rgb(0 0 0 / 50%);
}

.CharacterTradeTopBar {
    display: flex;
    justify-content: center;
    margin-bottom: 3px;
	margin-top: 2px;
}

.premium-points {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;

    background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
    border: 1px solid #3d3d3d;
    border-radius: 8px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06),
        0 2px 6px rgba(0,0,0,.4);
}

.premium-points .label {
    font-weight: 600;
    color: #cfcfcf;
}

.premium-points .value {
    font-weight: bold;
    color: #ffd85e;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
}

.premium-points img {
    width: 14px;
    height: 14px;
}

.AuctionBidButton {
    background: linear-gradient(180deg, #3a3a3a 0%, #1f1f1f 100%) !important;
    border: 1px solid #6b5f3a;
    border-radius: 6px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 2px 4px rgba(0,0,0,.6);

    padding: 0;
}

.AuctionBidButton .BigButtonOver {
    display: none !important;
}

.AuctionBidButton .BigButtonText {
    background: transparent !important;
    border: none !important;

    color: #f5e7c6 !important;
    font-weight: bold;
    font-size: 13px;

    width: 100%;
    height: 100%;

    padding: 6px 14px;
    margin: 0;

    text-align: center;
    cursor: pointer;

    text-shadow: 0 1px 2px rgba(0,0,0,.7);
}

.AuctionBidButton:hover {
    background: linear-gradient(180deg, #4a4a4a 0%, #262626 100%) !important;
}
/* ──────────────────────────────────────────────────────────────
 * Altheria theme rules — moved from src/app/globals.css so the
 * theme bundle is self-contained. Loaded by the locale layout's
 * <link rel="stylesheet"> tag (after globals.css).
 * ────────────────────────────────────────────────────────────── */


/* Logo: two states.
 *
 *   Default (.legacy-logo-wrap)  → hero block, big centred logo at
 *     the top of the page. The 300px-wide image sits above the
 *     particles canvas and the container_main.
 *
 *   Scrolled (.legacy-logo-wrap.is-pinned) → small left-aligned mark
 *     fixed inside the top bar. ScrollLogo.tsx flips the modifier
 *     class when scrollY > ~140px. CSS handles the actual tween
 *     between the two positions.
 *
 * Fixed-position in both states so adding the modifier just swaps
 * the geometric properties — no layout shift from `absolute → fixed`.
 */
.legacy-logo-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  transition:
    top 250ms ease,
    left 250ms ease,
    transform 250ms ease,
    width 250ms ease;
}
.legacy-logo-wrap img {
  display: block;
  width: 300px;
  height: auto;
  transition:
    width 250ms ease,
    filter 250ms ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}
/* Pinned pose: sit above the LEFT sidebar — at the left edge of the
 * centered container_main column (max-width 1170 → half-width 585).
 * Falls back to a 20px gutter on narrow viewports where the column is
 * narrower than the viewport. */
.legacy-logo-wrap.is-pinned {
  top: 6px;
  left: max(20px, calc(50vw - 585px));
  transform: none;
  z-index: 201;
}
.legacy-logo-wrap.is-pinned img {
  width: 52px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Top bar — transparent at y=0 (hero shot of the logo + particles is
 * the first impression, can't have a chrome strip on top), dark
 * gradient with a faint bottom-border once the user scrolls past the
 * threshold. The inner container is width-capped to match
 * container_main so the auth buttons line up over the right sidebar.
 *
 * `pointer-events: none` on the bar + container so the empty
 * left/centre region doesn't eat clicks meant for the logo or page
 * underneath; only the buttons themselves capture pointer events. */
.top-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 56px !important;
  line-height: 1 !important;
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  z-index: 200;
  font-family: "Open Sans", sans-serif !important;
  font-size: 14px !important;
  text-shadow: none !important;
  pointer-events: none;
  transition:
    background 250ms ease,
    border-color 250ms ease;
}
.top-bar.is-scrolled {
  /* Floating-bar look: instead of an edge-to-edge dark stripe, the
   * scrolled bar paints a narrower centered pill against the body
   * via an inner pseudo-element. The outer `.top-bar` itself stays
   * fully transparent in every state — NO backdrop-filter here
   * either, because applying blur to a viewport-wide transparent
   * element still blurs everything behind it and looked like a
   * faint band across the page. Blur is scoped to the pill's
   * own ::before below. */
  background: transparent !important;
  border-bottom-color: transparent !important;
}
.top-bar a {
  text-decoration: none;
  color: #ffffff;
}
.top-bar-inner {
  position: relative;
  max-width: 1170px;
  height: 100%;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  pointer-events: none;
}
/* Floating-pill backdrop — painted only when the outer .top-bar
 * carries `.is-scrolled`. Sits inside the container_main column so
 * the chrome looks like a centered ribbon instead of an
 * edge-to-edge stripe. */
.top-bar.is-scrolled .top-bar-inner::before {
  content: "";
  position: absolute;
  inset: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(13, 13, 13, 0.55) 0%,
    rgba(22, 22, 22, 0.55) 100%
  );
  border: 1px solid rgba(58, 58, 58, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 0;
}
/* Make sure the actual content (spacer / online pill / actions)
 * sits ON TOP of the floating pill backdrop. */
.top-bar-inner > * {
  position: relative;
  z-index: 1;
}
.top-bar-spacer {
  flex: 1 1 auto;
  height: 1px;
}
.top-bar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  pointer-events: auto;
}
/* Top-bar auth CTAs. Visually a sibling of the new `.loginbtn` /
 * `.createbtn` in QuickLogin — both stacks share the same blue +
 * purple flat-with-subtle-gradient look so the eye doesn't have to
 * switch idioms between header and sidebar. */
.top-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 22px;
  border: none;
  border-radius: 8px;
  color: #ffffff !important;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    background 120ms ease,
    transform 80ms ease,
    box-shadow 120ms ease;
}
.top-bar-btn:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.top-bar-btn-login {
  background: linear-gradient(180deg, #5fa0e8 0%, #3f7bcc 100%);
}
.top-bar-btn-login:hover {
  background: linear-gradient(180deg, #6fb0f8 0%, #4f8bdc 100%);
}
.top-bar-btn-register {
  background: linear-gradient(180deg, #a56be0 0%, #7a3eb3 100%);
}
.top-bar-btn-register:hover {
  background: linear-gradient(180deg, #b57bf0 0%, #8a4ec3 100%);
}

/* Centered "Players Online" pill in the top bar. Hidden at y=0
 * (the chrome should look like negative space when not scrolled);
 * fades in past the 140px scroll threshold to land in lockstep with
 * the pinned logo and the dark bar background.
 *
 * Visual: dark pill, glowing green dot, tabular count + small
 * uppercase label. The bar itself has pointer-events:none, so we
 * re-enable on the pill when visible. */
/* Absolute-centered inside .top-bar so left/right slot widths don't
 * drift the pill off-axis — it's pinned to the viewport center
 * regardless of the spacer or actions widths. */
.top-bar-online {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid #2e2e2e;
  border-radius: 999px;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
  text-decoration: none;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateY(-4px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    background 120ms ease,
    border-color 120ms ease;
  z-index: 1;
}
.top-bar-online.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateY(0);
}
.top-bar-online:hover {
  background: linear-gradient(180deg, #232323 0%, #161616 100%);
  border-color: #4a4a4a;
}
.top-bar-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow:
    0 0 6px rgba(74, 222, 128, 0.85),
    inset 0 0 2px rgba(255, 255, 255, 0.4);
  animation: top-bar-online-pulse 2s ease-in-out infinite;
  flex: 0 0 8px;
}
@keyframes top-bar-online-pulse {
  0%,
  100% {
    box-shadow:
      0 0 6px rgba(74, 222, 128, 0.85),
      inset 0 0 2px rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow:
      0 0 10px rgba(74, 222, 128, 1),
      inset 0 0 2px rgba(255, 255, 255, 0.55);
  }
}
.top-bar-online-count {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.top-bar-online-label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8acb4;
  line-height: 1;
}

/* Shortcut lists inside the left widget boxes. The legacy template
 * used Cufon to swap glyphs inside <a>; Cufon is dead, so we render
 * with real Amarante from Google Fonts and a thin rule between rows
 * to keep the visual rhythm. */
.left_box .content ul.legacy-shortcut {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.left_box .content ul.legacy-shortcut li {
  border-bottom: 1px solid #262626;
}
.left_box .content ul.legacy-shortcut li:last-child {
  border-bottom: none;
}
.left_box .content ul.legacy-shortcut li a,
.right_box .content ul.legacy-shortcut li a {
  display: block;
  padding: 6px 14px;
  color: #a8acb4;
  /* Legacy ots.guid.pl uses plain mixed-case Open Sans here, not
   * Trajan/Cinzel uppercase — readability matters more than the
   * decorative font at 13px in a narrow widget. We previously had
   * Cinzel uppercase + 0.8px letter-spacing which crowded labels like
   * "Lost Account Interface" / "Character Auction" off the visible
   * line. */
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  transition: color 120ms ease;
}
.left_box .content ul.legacy-shortcut li a:hover {
  color: #ffffff;
}

/* QuickLogin actions row — both buttons share the row equally so
 * they don't wrap into a second line on the 200px-wide column. The
 * inline-flex margin trick the previous version used overflowed
 * the column at min-width 88+88+margins. Flex container with
 * `flex: 1` on each button is what makes them split the width. */
.qlogin-actions {
  display: flex;
  gap: 6px;
  margin: 8px 0 6px;
}
.qlogin-actions .loginbtn,
.qlogin-actions .createbtn {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

/* QuickLogin sidebar buttons — text buttons (Login / Register) that
 * replace the legacy 83×23 sprite buttons. Override the background
 * + border the inherited tibia.css sprite would set. */
.loginbtn,
.createbtn,
.loginbtn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 32px;
  padding: 0 14px;
  border: none !important;
  border-radius: 7px;
  color: #ffffff !important;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  vertical-align: middle;
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    background 120ms ease,
    transform 80ms ease;
}
.loginbtn {
  background: linear-gradient(180deg, #5fa0e8 0%, #3f7bcc 100%) !important;
}
.loginbtn:hover {
  background: linear-gradient(180deg, #6fb0f8 0%, #4f8bdc 100%) !important;
}
.createbtn,
.loginbtn-link {
  background: linear-gradient(180deg, #a56be0 0%, #7a3eb3 100%) !important;
}
.createbtn:hover,
.loginbtn-link:hover {
  background: linear-gradient(180deg, #b57bf0 0%, #8a4ec3 100%) !important;
}
.loginbtn:active,
.createbtn:active,
.loginbtn-link:active {
  transform: translateY(1px);
}
.loginbtn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Download Client pennant — ported from legacy ots.guid.pl. Sits at
 * the top of .container_right, above Streams. Uses the legacy
 * download_2.png asset (249×69 purple/gold pennant). Hover swaps to
 * a brighter copy via background-position; we don't ship the hover
 * sprite separately yet, so the hover state just bumps brightness. */
.download_client {
  display: block;
  width: 249px;
  height: 69px;
  background: url("/themes/default/images/download_2.png") no-repeat;
  background-size: 249px 69px;
  margin: 0 0 10px -2px;
  filter: brightness(1);
  transition: filter 120ms ease;
}
.download_client:hover {
  filter: brightness(1.15);
}

/* Column-top alignment. Legacy applies `margin-top: 15px` only to
 * .container_left/.container_right and 0 to .container_mid, which
 * leaves the middle column's hex-badge sitting 15px higher than the
 * Quick Login / Streams title strips on left/right. Match the side
 * columns so all three column tops start at the same Y. */
.container_mid {
  margin-top: 15px !important;
}

/* ─────────────────────────────────────────────────────────────
 * Highscores page — table tightened against the legacy MyAAC
 * "let the columns breathe" defaults so 3-digit ranks, 32×22 flags
 * and 48×48 outfit sprites don't sit in 100px-wide cells of empty
 * space. Right-rail tile grid replaces the two <select> dropdowns
 * the first port shipped with.
 * ───────────────────────────────────────────────────────────── */

.hs-layout {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 10px 10px 14px;
  align-items: stretch;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}
.hs-main {
  flex: 1 1 auto;
  min-width: 0;
}
/* Rail is now a plain column on the box background — no panel chrome
 * around the tiles. The tiles themselves carry the visual weight
 * (gradient + border + active blue/purple). Collapse toggle stays
 * pinned to the rail's outer-left edge. */
.hs-rail {
  position: relative;
  flex: 0 0 124px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 0 0 6px;
  background: transparent;
  border: none;
  box-shadow: none;
  align-self: stretch;
  box-sizing: border-box;
  transition:
    flex-basis 220ms ease,
    padding 220ms ease;
}
.hs-rail.is-collapsed {
  flex: 0 0 24px;
  padding: 0;
}

.hs-rail-toggle {
  position: absolute;
  left: -12px;
  top: 12px;
  width: 24px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
  border: 1px solid #2a2a2a;
  border-radius: 6px 0 0 6px;
  border-right: 1px solid #141414;
  color: #c0c4cc;
  cursor: pointer;
  z-index: 2;
  box-shadow:
    -1px 1px 4px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    background 120ms ease,
    color 120ms ease,
    transform 80ms ease;
}
.hs-rail.is-collapsed .hs-rail-toggle {
  left: 0;
  border-radius: 6px;
  border-right: 1px solid #2a2a2a;
}
.hs-rail-toggle:hover {
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #ffffff;
  border-color: #3a3a3a;
}
.hs-rail-toggle:active {
  transform: translateY(1px);
}
/* Section labels — neutral light-gray, Cinzel for the medieval
 * typographic flavor without the warm bronze tint. Thin neutral
 * hairline under the second section ("Vocation") separates it from
 * the ranking tiles above. */
.hs-rail-section-label {
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #a8acb4;
  padding: 8px 2px 6px;
  margin-top: 6px;
  border-top: 1px solid #232323;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}
.hs-rail-section-label:nth-child(2) {
  padding-top: 2px;
  margin-top: 0;
  border-top: none;
}
/* Ranking tiles stack vertically (single column) — one tile per row,
 * icon on the left, label on the right. Vocation tiles use a tight
 * 2-column grid below so the rail stays narrow. */
.hs-tile-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hs-tile-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.hs-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 28px;
  padding: 5px 8px;
  background: linear-gradient(180deg, #1c1c1c 0%, #131313 100%);
  border: 1px solid #2e2e2e;
  border-radius: 5px;
  color: #a8acb4;
  font-family: "Open Sans", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-align: left;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 80ms ease;
}
.hs-tile:hover {
  border-color: #4a4a4a;
  color: #ffffff;
}
.hs-tile svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.hs-tile:hover {
  border-color: #4a4a4a;
  color: #ffffff;
}
.hs-tile:active {
  transform: translateY(1px);
}
.hs-tile.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, #5fa0e8 0%, #3f7bcc 100%);
  border-color: #6fb0f8;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.hs-tile-voc {
  min-height: 24px;
  padding: 3px 8px;
  justify-content: flex-start;
  font-size: 11px;
}
.hs-tile-voc.is-active {
  background: linear-gradient(180deg, #a56be0 0%, #7a3eb3 100%);
  border-color: #b57bf0;
}

/* Table chrome — override the .container_mid td default (6px 10px /
 * 1px bottom border) for tighter, vertically-centered rows. */
.hs-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.hs-table thead th {
  background: #1a1a1a;
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 6px;
  border-bottom: 1px solid #2e2e2e;
  text-align: center;
}
.hs-table thead th:nth-child(4) {
  /* Name header */
  text-align: left;
  padding-left: 12px;
}
.hs-table tbody td {
  padding: 4px 6px !important;
  border-bottom: 1px solid #262626 !important;
  vertical-align: middle;
  font-size: 13px;
}
.hs-table .hs-flag,
.hs-table .hs-rank,
.hs-table .hs-outfit,
.hs-table .hs-value,
.hs-table .hs-points {
  text-align: center;
}
.hs-table .hs-name {
  padding-left: 12px !important;
  text-align: left;
}
.hs-table .hs-flag img {
  display: inline-block;
  vertical-align: middle;
}
.hs-table .hs-outfit img {
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
}
.hs-table .hs-rank {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #c0c4cc;
}
.hs-table .hs-value,
.hs-table .hs-points {
  font-variant-numeric: tabular-nums;
}
.hs-table .hs-name small {
  display: block;
  color: #8d949f;
  font-size: 11px;
  margin-top: 1px;
}

/* Pager — centered under the table, button styling consistent with
 * the new tile palette (rounded, soft shadow, disabled-fade). */

/* On very narrow viewports (sub-560 — phones) the rail does collapse
 * under the table; above that the table absorbs the slack and we
 * stay side-by-side. */
@media (max-width: 560px) {
  .hs-layout {
    flex-direction: column !important;
  }
  .hs-rail {
    flex: 1 1 auto;
    width: 100%;
  }
  .hs-tile-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ─────────────────────────────────────────────────────────────
 * Home page changelog widget — one collapsible row per entry.
 * Header click toggles the body in-place; chevron flips on
 * expanded state.
 * ───────────────────────────────────────────────────────────── */
.changelog-wrap {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.changelog-row {
  background: linear-gradient(180deg, #1a1a1a 0%, #131313 100%);
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 120ms ease;
}
.changelog-row:hover {
  border-color: #3a3a3a;
}
.changelog-row.is-open {
  border-color: #4a6db8;
}
.changelog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-family: "Open Sans", sans-serif;
}
.changelog-date {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: #8d949f;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}
.changelog-title {
  flex: 1 1 auto;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.changelog-chevron {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8d949f;
}
.changelog-row.is-open .changelog-chevron,
.changelog-head:hover .changelog-chevron {
  color: #ffffff;
}
.changelog-body {
  padding: 4px 14px 14px;
  color: #c0c4cc;
  font-size: 13px;
  line-height: 1.55;
  border-top: 1px solid #232323;
}
.changelog-body p {
  margin: 8px 0 0;
}
.changelog-body p:first-child {
  margin-top: 6px;
}

/* ─────────────────────────────────────────────────────────────
 * /characters typeahead search. Top-3 matches appear in a panel
 * docked under the input with outfit thumbnail + level + vocation.
 * "Go to <typed>" footer link preserves the original "I know the
 * exact name" path even when no suggestion matches.
 * ───────────────────────────────────────────────────────────── */
.char-search-wrap {
  padding: 22px;
  max-width: 520px;
  margin: 0 auto;
}
.char-search-hint {
  color: #c0c4cc;
  font-size: 13px;
  margin-bottom: 14px;
  text-align: center;
}
.char-search-box {
  position: relative;
}
.char-search-input {
  width: 100%;
  background: #161616;
  color: #ffffff;
  border: 1px solid #3a3a3a;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: "Open Sans", sans-serif;
  outline: none;
  box-sizing: border-box;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}
.char-search-input:focus {
  border-color: #5fa0e8;
  box-shadow: 0 0 0 3px rgba(95, 160, 232, 0.18);
}
.char-search-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: linear-gradient(180deg, #1c1c1c 0%, #131313 100%);
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}
.char-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: #c0c4cc;
}
.char-search-row.is-focused,
.char-search-row:hover {
  background: rgba(95, 160, 232, 0.12);
  color: #ffffff;
}
.char-search-thumb {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  flex: 0 0 44px;
}
.char-search-thumb img {
  image-rendering: pixelated;
}
.char-search-thumb-empty {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    45deg,
    #1c1c1c,
    #1c1c1c 4px,
    #161616 4px,
    #161616 8px
  );
}
.char-search-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.char-search-name {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.char-search-sub {
  font-size: 11.5px;
  color: #8d949f;
  margin-top: 1px;
}
.char-search-dot {
  margin: 0 6px;
  opacity: 0.6;
}
.char-search-foot {
  margin-top: 4px;
  border-top: 1px solid #2a2a2a;
  padding: 6px 8px 2px;
  text-align: center;
}
.char-search-foot-link {
  color: #8d949f;
  font-size: 11.5px;
  text-decoration: none;
}
.char-search-foot-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
 * Register form. Field-level error visualization (red border on
 * blur once a value fails its validator), tile-based sex +
 * vocation selectors, a self-contained Agreements panel with a
 * Select-all master, and a debounced character-name probe badge.
 * ───────────────────────────────────────────────────────────── */


/* Sex tiles — wide, centered, color-coded so the symbol reads
 * unmistakably even at a glance. Active tile picks up the matching
 * gradient (blue for male, purple for female) to mirror the
 * top-bar Login/Register palette. */
.reg-tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.reg-tile-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.reg-sex-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #1c1c1c 0%, #131313 100%);
  border: 1px solid #2e2e2e;
  border-radius: 7px;
  color: #a8acb4;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 80ms ease;
}
.reg-sex-tile:hover {
  border-color: #4a4a4a;
  color: #ffffff;
}
.reg-sex-tile:active {
  transform: translateY(1px);
}
/* Sprite slot with no dark frame — the outfit PNG ships with a
 * transparent background, so we let it sit directly on the tile. */
.reg-sex-sprite {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
}
.reg-sex-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.reg-sex-symbol {
  font-size: 18px;
  line-height: 1;
  opacity: 0.75;
}
.reg-sex-blue.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, #5fa0e8 0%, #3f7bcc 100%);
  border-color: #6fb0f8;
}
.reg-sex-purple.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, #a56be0 0%, #7a3eb3 100%);
  border-color: #b57bf0;
}

/* Vocation tiles — pixel-art outfit thumbnail above the label.
 * Active state lights up in warm gold to separate from the sex
 * tiles' blue/purple palette. */
.reg-voc-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px 8px;
  background: linear-gradient(180deg, #1c1c1c 0%, #131313 100%);
  border: 1px solid #2e2e2e;
  border-radius: 7px;
  color: #a8acb4;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    transform 80ms ease;
}
/* Same as the sex sprite — no frame, just the transparent sprite. */
.reg-voc-tile img {
  background: transparent;
}
.reg-voc-tile:hover {
  border-color: #4a4a4a;
  color: #ffffff;
}
.reg-voc-tile:active {
  transform: translateY(1px);
}
.reg-voc-tile.is-active {
  color: #ffffff;
  background: linear-gradient(180deg, #d3a14a 0%, #8a6020 100%);
  border-color: #e2b75e;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Name probe badge — sits at the right of the field label. */
.reg-probe {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.2px;
}
.reg-probe-checking {
  background: #1c1c1c;
  color: #8d949f;
  border: 1px solid #2e2e2e;
}
.reg-probe-ok {
  background: rgba(78, 167, 108, 0.16);
  color: #6dd49a;
  border: 1px solid rgba(78, 167, 108, 0.42);
}
.reg-probe-bad {
  background: rgba(227, 93, 106, 0.16);
  color: #ef8f97;
  border: 1px solid rgba(227, 93, 106, 0.42);
}

/* First-character panel — same chrome family as `.reg-agreements`
 * below, so character + agreements both read as sibling
 * subsections separate from the account credentials block. */
.reg-panel {
  margin: 18px 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #161616 0%, #0f0f0f 100%);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
}
.reg-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2a2a;
}
.reg-panel-title {
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
}

/* Agreements panel — visually separated so the user knows they're
 * stepping into a checkbox-walled garden after the form proper. */
.reg-agreements {
  margin: 18px 0 6px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #161616 0%, #0f0f0f 100%);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
}
.reg-agreements-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2a2a;
}
.reg-agreements-title {
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
}
.reg-checkall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c0c4cc;
  font-size: 12px;
  cursor: pointer;
}
.reg-agreement {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 5px 0;
  cursor: pointer;
}
.reg-agreement input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}
.reg-agreement > span {
  color: #c0c4cc;
  font-size: 13px;
  line-height: 1.45;
}

}

/* Inside the middle column, headings/links/tables need a stone-tone
 * fallback so pages we haven't ported yet still read against the
 * dark bg. */
.container_mid {
  color: #ffffff;
}
/* Headings inside the middle column stay in the body sans-serif —
 * legacy ots.guid.pl uses plain Open Sans bold for news/page titles,
 * not Trajan/Cinzel. The Trajan look is reserved for CenterBox titles
 * (the hex-tag bar) and the left/right widget shortcut lists. */
.container_mid h1,
.container_mid h2,
.container_mid h3 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.container_mid h1 {
  font-size: 24px;
}
.container_mid h2 {
  font-size: 20px;
}
.container_mid h3 {
  font-size: 16px;
}

.container_mid a {
  color: #c0c4cc;
}
.container_mid a:hover {
  color: #ffffff;
}

.container_mid table {
  width: 100%;
  border-collapse: collapse;
}
.container_mid th,
.container_mid td {
  padding: 6px 10px;
  border-bottom: 1px solid #2e2e2e;
  text-align: left;
}
/* Table headers inherit body Open Sans — legacy uses plain bold
 * sans-serif here too, not Trajan. Keep only the gold tint + small
 * size so column labels still read as "header" rather than data. */
.container_mid th {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0;
  background: #1a1a1a;
  padding: 7px 10px;
}

/* Clearfix so the floated `.container_left` + `.container_mid`
 * don't collapse the page background. */
.container_main::after {
  content: "";
  display: block;
  clear: both;
}

/* ─────────────────────────────────────────────────────────────
 * Legacy MyAAC event widget — copied verbatim from the inline
 * <style> block on ots.guid.pl. The .title-with-hex hex badge,
 * .event-panel/.event-grid/.event-card and the catch-up boost
 * (.cd-*) classes all live here so they apply to our React port.
 * ───────────────────────────────────────────────────────────── */

.title-with-hex {
  position: relative;
  text-align: center;
}
.title-with-hex .hex-badge {
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  width: 128px;
  height: 48px;
  z-index: 5;
  pointer-events: none;
}
.title-with-hex .hex-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.title-with-hex .hex-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  z-index: 2;
  font-family: "Open Sans", sans-serif;
}
.title-with-hex .hex-text .count {
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  line-height: 1;
}
.title-with-hex .hex-text .label {
  font-size: 8.5px;
  color: #c0c4cc;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 3px;
  font-weight: 600;
}

.event-panel {
  background: linear-gradient(180deg, #1c1c1c 0%, #0d0d0d 100%);
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 14px 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.event-card {
  background: #1c1c1c;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(240, 216, 137, 0.05);
  min-height: 170px;
}
.event-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 2px #000;
}
.event-image-frame {
  width: 120px;
  height: 92px;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  background: #0c0d0f;
  margin: 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.event-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 0;
  margin: 0;
}
.summerevent-image {
  width: 105px;
  height: 85px;
}
.worldboss-image {
  width: 95px;
  height: 85px;
}
.event-card.is-active {
  border-color: #43c86f;
  box-shadow:
    0 0 16px rgba(67, 200, 111, 0.18),
    inset 0 0 0 1px rgba(67, 200, 111, 0.12);
}
.event-status {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 1px 1px 2px #000;
  font-variant-numeric: tabular-nums;
}
.event-status.is-active {
  color: #59e47d;
}
.event-sub {
  margin-top: 4px;
  font-size: 10px;
  color: #c0c4cc;
  text-transform: uppercase;
}
.event-join {
  margin-top: 6px;
  font-size: 10px;
  color: #62d980;
  text-transform: uppercase;
  display: none;
  line-height: 1.25;
}
.event-join code {
  display: inline-block;
  margin-top: 3px;
  color: #ffffff;
  background: #0d1510;
  border: 1px solid #2f8f4d;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: inherit;
  white-space: nowrap;
  text-transform: none;
}
.event-card.is-active .event-join {
  display: block;
}

/* Catch-up boost widget on the right column. */
.cd-panel {
  background: linear-gradient(180deg, #1c1c1c 0%, #0d0d0d 100%);
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 18px 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 14px;
  align-items: stretch;
  justify-items: center;
}
.cd-card {
  background: #1c1c1c;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(240, 216, 137, 0.05);
}
.cd-num {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-lbl {
  margin-top: 6px;
  font-size: 11px;
  color: #c0c4cc;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.cd-status {
  text-align: center;
  margin-top: 12px;
  color: #ffffff;
}

@media (max-width: 700px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
  .event-card {
    min-height: 0;
  }
  .event-image-frame {
    height: 80px;
  }
}

/* Site footer — appears under .container_main. Legacy stylesheet
 * pins `.footer_cnt { width:1170px; float:left }` which left-aligns
 * the block to the viewport edge (the legacy template had container
 * chrome wrapping this; we don't, so the float anchors to body).
 * Force-center with !important and clear the float so our footer
 * sits under the centered .container_main column. */
.footer_cnt {
  clear: both !important;
  float: none !important;
  position: relative;
  z-index: 1;
  margin: 40px auto 20px !important;
  width: 100% !important;
  max-width: 1170px;
  padding: 20px;
  text-align: center !important;
  color: #8d949f;
  font-size: 12px;
  font-family: "Open Sans", sans-serif;
  box-sizing: border-box;
}
.footer_cnt a {
  color: #c0c4cc;
  text-decoration: none;
}
.footer_cnt p,
.footer_cnt div {
  margin: 0 auto;
  text-align: center;
}

/* Info banner — dark stone equivalent of the legacy cream/MyAAC
 * notice boxes (#1c1c1c / #FFFAE5 / #FDD9D9). Used inside the
 * account dashboard, CMS pages, etc. Variants `.warn` + `.error`
 * tint the border/text without breaking the dark fill. */

/* ─────────────────────────────────────────────────────────────
 * TibiaTable polish — kill the busy "every cell boxed" look.
 *
 * Two upstream rules paint a brown rectangle around every cell:
 *  1. `.container_mid td { border-bottom: 1px solid #2e2e2e }`
 *     (defined above in this file, intentional separator for
 *     plain HTML tables we haven't ported)
 *  2. `table tr td { border: 1px solid #3B3B3B }` from the legacy
 *     stylesheet (/themes/default/style.css line 130)
 *
 * Inside a TibiaTable (className="Table1") we want flat dark-stone
 * rows with a subtle alternating tone instead of boxed cells.
 * ───────────────────────────────────────────────────────────── */
.container_mid table.Table1 td {
  border: 0;
  border-bottom: 1px solid #262626;
}
.container_mid table.Table1 tr:last-child td {
  border-bottom: 0;
}
.container_mid table.Table1 tr.tt-alt td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* ─────────────────────────────────────────────────────────────
 * Character profile card — hero block at the top of
 * /characters/[name]. Outfit on the left framed in gold, name +
 * subtitle + chip on the right.
 * ───────────────────────────────────────────────────────────── */
.char-hero {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 14px 4px 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid #262626;
}
.char-hero-frame {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at center,
    rgba(202, 164, 90, 0.12) 0%,
    #0d0d0d 70%
  );
  border: 2px solid #3a3a3a;
  border-radius: 6px;
  padding: 14px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}
.char-hero-frame.is-premium {
  border: 3px solid #c0c4cc;
  box-shadow:
    0 0 12px rgba(202, 164, 90, 0.4),
    inset 0 0 12px rgba(0, 0, 0, 0.5);
}
.char-hero-frame img {
  image-rendering: pixelated;
  width: 96px;
  height: 96px;
  display: block;
}
.char-hero-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.char-hero-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Cinzel", "Trajan Pro", serif;
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  margin: 0;
}
.char-hero-name img {
  width: 22px;
  height: 15px;
  vertical-align: middle;
  margin: 0;
}
.char-hero-sub {
  color: #c0c4cc;
  font-size: 14px;
  letter-spacing: 0.4px;
}
.char-hero-chip {
  display: inline-block;
  margin-top: 2px;
  background: linear-gradient(180deg, #3a2618, #161616);
  border: 1px solid #c0c4cc;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 3px;
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
}
.char-hero-guild {
  color: #c0c4cc;
  font-size: 12px;
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────
 * Skills section — grid of small stat tiles instead of a flat
 * 2-col table. 4 per row on the 1170px container_mid.
 * ───────────────────────────────────────────────────────────── */
/* Two-column row holding Skills (left) and Equipment (right) side-
 * by-side on the public character profile. Each column flexes equally;
 * when one is hidden via the per-character visibility flag the other
 * grows to fill the row. Collapses to stacked single-column under
 * 640px so it stays usable on phones. The accidental drop of these
 * rules in the previous commit is what left the two sections stacked
 * on a wide screen — re-adding. */
.stats-row {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  align-items: flex-start;
}
.stats-col {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 640px) {
  .stats-row {
    flex-direction: column;
    gap: 8px;
  }
}

.skills-section {
  margin: 14px 0;
}
.skills-heading {
  font-family: "Cinzel", "Trajan Pro", serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  text-align: center;
  margin: 0 0 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
/* Vertical skills list — one row per skill: icon + label + value.
 * Replaces the 4-up tile grid because labels like "Distance fighting"
 * were getting truncated and the user preferred a stat-block read. */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.skill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 3px;
  transition:
    background 120ms ease,
    border-color 120ms ease;
}
.skill-row:hover {
  background: #222222;
  border-color: #3a3a3a;
}
.skill-row-icon {
  color: #c0c4cc;
  display: flex;
  align-items: center;
  width: 18px;
  flex-shrink: 0;
  opacity: 0.75;
}
.skill-row-icon svg {
  width: 18px;
  height: 18px;
}
.skill-row-label {
  flex: 1;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #a8acb4;
  letter-spacing: 0.2px;
}
.skill-row-value {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
}

/* Old grid kept for backwards-compat if anything still mounts it. */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-tile {
  flex: 1 1 calc(25% - 6px);
  min-width: 80px;
  max-width: calc(25% - 5px);
  background: linear-gradient(180deg, #262626, #161616);
  border: 1px solid #555555;
  padding: 10px 12px;
  border-radius: 4px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.4);
}
/* Skill label was at #c0c4cc 10px Cinzel — washed out against the
 * tile gradient. Bump to full white + bigger + heavier so the label
 * reads as the equal-weight partner to the value below. */
.skill-tile-label {
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  opacity: 0.85;
}
.skill-tile-value {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  font-family:
    "Open Sans",
    -apple-system,
    sans-serif;
  line-height: 1.1;
}

/* ─────────────────────────────────────────────────────────────
 * Equipment paper-doll — 3-col grid arranged like a Tibia inventory
 * window. Each cell is a 64x64 dark stone square; empty cells stay
 * dim so the silhouette is preserved when the char has gear gaps.
 * Cells with content show item name + slot label; a tiny ×N badge
 * appears on stacked slots (ammo, etc.).
 *
 * Hidden by the owner toggle (`equipment_hidden=true`) → the whole
 * section is skipped in the page TSX, not via display:none.
 * ───────────────────────────────────────────────────────────── */
.eq-section {
  margin: 14px 0;
}
.eq-heading {
  font-family: "Cinzel", "Trajan Pro", serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  text-align: center;
  margin: 0 0 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.eq-grid {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 6px;
  justify-content: center;
}
.eq-slot {
  position: relative;
  width: 64px;
  height: 64px;
  background: #1c1c1c;
  border: 1px solid #555555;
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  overflow: hidden;
}
/* Spacer cells (the two `null`s in row 4) — keep the grid shape but
 * blank out the visual chrome so they read as gaps rather than slots. */
.eq-slot-empty {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.eq-slot-name {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  /* Long item names like "magic plate armor" stay on one tile via
   * 2-line clamp + ellipsis — no overflow into the next cell. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
/* 32x32 item sprite from /api/v1/items/{id}. Rendered at 2x with
 * nearest-neighbour so the pixel art stays crisp inside the 64px slot. */
.eq-slot-sprite {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  /* Nudge the sprite slightly above center so the slot label has a
   * bit of breathing room at the bottom edge of the cell. */
  margin-bottom: 4px;
}
.eq-slot-count {
  position: absolute;
  bottom: 14px;
  right: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #ff9933;
  background: rgba(0, 0, 0, 0.55);
  padding: 0 3px;
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}
.eq-slot-label {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  font-size: 9px;
  color: #8d949f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  pointer-events: none;
}
/* ─────────────────────────────────────────────────────────────
 * "Look at item" hover tooltip — pinned to the equipment slot,
 * styled like the legacy dark-stone panels. The tooltip is
 * absolutely positioned so it doesn't bump the grid layout when
 * it appears; z-index keeps it above neighbouring cells.
 * Pointer-events disabled so it can't trap the mouse and prevent
 * the slot's own mouseleave from firing.
 * ───────────────────────────────────────────────────────────── */
.eq-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  min-width: 180px;
  max-width: 240px;
  padding: 8px 10px;
  background: #1c1c1c;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  text-align: left;
  pointer-events: none;
  color: #d8dbe2;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}
.eq-tooltip-name {
  font-family: "Cinzel", "Trajan Pro", serif;
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.eq-tooltip-desc {
  font-style: italic;
  color: #a8acb4;
  margin-bottom: 4px;
}
.eq-tooltip-sep {
  height: 1px;
  background: #3a3a3a;
  margin: 4px -10px 4px;
}
.eq-tooltip-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.eq-tooltip-lines li {
  color: #c0c4cc;
  margin: 0;
  padding: 1px 0;
}

/* ─────────────────────────────────────────────────────────────
 * Compact "Search Character" form — single-row layout inside the
 * legacy CenterBox so it lives in ~50px instead of ~120px.
 * ───────────────────────────────────────────────────────────── */
.search-char-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.search-char-inline label {
  color: #c0c4cc;
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
.search-char-inline input[type="text"] {
  flex: 1;
  background: #1c1c1c;
  color: #ffffff;
  border: 1px solid #555555;
  padding: 6px 10px;
  font-size: 13px;
  min-width: 0;
}
.search-char-inline input[type="submit"] {
  background: linear-gradient(180deg, #2a2a2a 0%, #161616 100%);
  border: 1px solid #555555;
  color: #ffffff;
  padding: 6px 18px;
  font-family: "Cinzel", "Trajan Pro", serif;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
