/* Arcaico Mu - Castle Siege hub */
.castle-hub { color: #d8dde5; }
.castle-hub a { color: inherit; }
.castle-hub a:hover { color: #fff; }

.castle-hub-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 0 0 32px; }
.castle-hub-heading h2 { margin: 7px 0 8px; color: #f1f2f4; font: 800 clamp(38px,5vw,64px)/.96 Cinzel,serif; letter-spacing: -.045em; }
.castle-hub-heading h2 em { color: #a31621; font-style: normal; }
.castle-hub-heading p { max-width: 650px; margin: 0; color: #777f89; font-size: 14px; line-height: 1.7; }
.castle-eyebrow,.castle-section-head span,.castle-kicker { color: #c99b42; font-size: 9px; font-weight: 800; letter-spacing: .28em; }
.castle-live { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border: 1px solid rgba(102,213,160,.18); background: rgba(38,83,64,.1); color: #71d9a9; font-size: 9px; font-weight: 800; letter-spacing: .2em; white-space: nowrap; }
.castle-live i { width: 7px; height: 7px; border-radius: 50%; background: #62d99e; box-shadow: 0 0 8px #46b987; }

.castle-owner-hero { position: relative; display: grid; grid-template-columns: 190px minmax(0,1fr) 255px; align-items: center; min-height: 285px; margin-bottom: 24px; padding: 36px 38px; overflow: hidden; border: 1px solid rgba(154,163,177,.15); border-left: 2px solid #a71925; background: linear-gradient(90deg,rgba(4,5,6,.98) 0%,rgba(7,8,10,.87) 50%,rgba(12,5,6,.72) 100%),url('../img/castle_owner_bg.jpg') center/cover no-repeat; box-shadow: none; }
.castle-owner-hero:before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg,transparent 57%,rgba(173,22,34,.12)),radial-gradient(circle at 82% 50%,rgba(164,24,34,.12),transparent 34%); }
.castle-owner-hero:after { content: ''; position: absolute; right: -55px; top: -95px; width: 280px; height: 280px; border: 1px solid rgba(190,31,43,.13); transform: rotate(45deg); }
.castle-owner-mark { position: relative; z-index: 1; display: grid; place-items: center; width: 164px; height: 190px; background: radial-gradient(circle,rgba(182,24,35,.17),transparent 64%); }
.castle-owner-mark img { position: relative; z-index: 2; }
.castle-owner-mark span { position: absolute; width: 118px; height: 118px; border: 1px solid rgba(198,157,72,.17); transform: rotate(45deg); }
.castle-vacant-emblem { position: relative; z-index: 2; color: #6f5428; font: 400 70px/1 Cinzel,serif; text-shadow: none; }
.castle-owner-copy { position: relative; z-index: 1; padding: 0 32px 0 10px; }
.castle-owner-copy h3 { margin: 8px 0 7px; color: #f5f5f6; font: 800 clamp(29px,4vw,46px)/1.1 Cinzel,serif; letter-spacing: -.035em; text-transform: uppercase; }
.castle-owner-copy h3 a { color: #f5f5f6; }
.castle-owner-copy > p { max-width: 540px; margin: 0; color: #8d929a; font-size: 13px; line-height: 1.65; }
.castle-owner-meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 25px; }
.castle-owner-meta > div { min-width: 135px; padding: 0 25px; border-left: 1px solid rgba(255,255,255,.1); }
.castle-owner-meta > div:first-child { padding-left: 0; border-left: 0; }
.castle-owner-meta small { display: block; margin-bottom: 6px; color: #5d6672; font-size: 8px; letter-spacing: .18em; }
.castle-owner-meta strong { color: #dce0e5; font: 700 13px Cinzel,serif; }
.castle-battle-status { position: relative; z-index: 1; padding: 26px 22px; border: 1px solid rgba(187,47,56,.2); background: rgba(3,4,5,.92); text-align: center; }
.castle-battle-status:before { content: ''; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px; background: #c52230; box-shadow: 0 0 14px #aa1824; }
.castle-battle-status > span,.castle-battle-status > small { display: block; color: #727a84; font-size: 8px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.castle-battle-status strong { display: block; margin: 10px 0 8px; color: #fff; font: 700 22px Cinzel,serif; }
.castle-battle-status strong span { color: #b78638; font-size: 11px; margin: 0 2px; }
.castle-owner-hero.is-vacant .castle-owner-mark img { opacity: .38; }

.castle-panel { margin-bottom: 24px; border: 1px solid rgba(144,153,166,.13); background: rgba(7,9,11,.87); box-shadow: none; }
.castle-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; padding: 20px 28px; border-bottom: 1px solid rgba(144,153,166,.12); }
.castle-section-head h3 { margin: 7px 0 0; color: #e8eaed; font: 700 20px Cinzel,serif; }
.castle-member-count { color: #fff; font: 700 22px Cinzel,serif; }
.castle-member-count small { color: #59616c; font: 800 8px Inter,sans-serif; letter-spacing: .18em; }

.castle-table-wrap { overflow-x: auto; }
.castle-table { width: 100%; border-collapse: collapse; }
.castle-table th { padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.08); color: #59616c; font-size: 8px; letter-spacing: .19em; text-align: left; text-transform: uppercase; }
.castle-table td { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.055); color: #8f97a1; font-size: 12px; }
.castle-table tbody tr { transition: background .18s,border-color .18s; }
.castle-table tbody tr:hover { background: rgba(146,20,30,.07); }
.castle-table tbody tr:last-child td { border-bottom: 0; }
.castle-position { display: inline-grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.09); color: #68717d; font: 700 10px Cinzel,serif; }
.castle-player { display: flex; align-items: center; gap: 12px; min-width: 150px; }
.castle-player strong,.castle-player strong a { color: #dfe2e6; }
.castle-class-avatar { width: 34px; height: 34px; border: 1px solid rgba(195,150,65,.22); object-fit: cover; }
.castle-reset { color: #d0a452; font-family: Cinzel,serif; }
.guild-role { display: inline-block; min-width: 100px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.1); color: #9da4ad; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.guild-role.role-master { border-color: rgba(203,151,54,.35); background: rgba(203,151,54,.08); color: #e1b85e; }
.guild-role.role-assistant { border-color: rgba(137,160,192,.27); color: #b8c9df; }
.guild-role.role-battle { border-color: rgba(188,38,49,.35); background: rgba(188,38,49,.07); color: #dc626c; }
.castle-empty { padding: 52px 25px 58px; color: #626b76; text-align: center; }
.castle-empty-crown { margin-bottom: 13px; color: #7b5726; font-size: 35px; opacity: .75; }
.castle-empty strong { display: block; color: #b0b5bc; font: 700 17px Cinzel,serif; }
.castle-empty p { margin: 8px 0 0; font-size: 12px; }

.castle-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.castle-state dl,.castle-economy dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.castle-state dl > div,.castle-economy dl > div { min-height: 91px; padding: 23px 27px; border-right: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.castle-state dl > div:nth-child(even),.castle-economy dl > div:nth-child(even) { border-right: 0; }
.castle-state dt,.castle-economy dt { margin-bottom: 7px; color: #59616c; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.castle-state dd,.castle-economy dd { margin: 0; color: #d8dce2; font: 700 13px Cinzel,serif; }
.castle-state dd small { display: block; margin-top: 4px; color: #9f762f; font: 600 9px Inter,sans-serif; }
.castle-economy .castle-treasury { grid-column: 1 / -1; border: 0; }
.castle-economy .castle-treasury dd { color: #d2a54d; font-size: 18px; }
.castle-economy .castle-treasury dd small { font: 800 8px Inter,sans-serif; letter-spacing: .15em; }

.castle-guild-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,.055); }
.castle-guild-cards article { display: flex; align-items: center; gap: 17px; min-height: 108px; padding: 20px 23px; background: #080a0c; }
.castle-guild-cards article img { image-rendering: auto; }
.castle-guild-cards article div { min-width: 0; }
.castle-guild-cards article strong,.castle-guild-cards article span,.castle-guild-cards article small { display: block; }
.castle-guild-cards article strong { color: #e0e3e7; font: 700 15px Cinzel,serif; }
.castle-guild-cards article span { margin: 5px 0; color: #858c96; font-size: 10px; }
.castle-guild-cards article small { color: #a67d37; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }

.castle-schedule-list { display: grid; grid-template-columns: repeat(4,1fr); }
.castle-schedule-list article { position: relative; min-height: 168px; padding: 31px 25px 27px 42px; border-right: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.castle-schedule-list article i { position: absolute; top: 36px; left: 22px; width: 6px; height: 6px; border-radius: 50%; background: #3d444d; }
.castle-schedule-list article strong,.castle-schedule-list article span,.castle-schedule-list article small { display: block; }
.castle-schedule-list article strong { min-height: 42px; color: #cbd0d6; font: 700 14px/1.45 Cinzel,serif; }
.castle-schedule-list article span { margin: 13px 0 6px; color: #9098a3; font-size: 11.5px; font-weight: 500; line-height: 1.45; }
.castle-schedule-list article small { color: #69727d; font-size: 10.5px; line-height: 1.45; }
.castle-schedule-list article b { position: absolute; top: 17px; right: 16px; color: #65d4a1; font-size: 8px; letter-spacing: .15em; }
.castle-schedule-list article.is-current { background: linear-gradient(135deg,rgba(161,22,32,.15),rgba(8,10,12,.2)); }
.castle-schedule-list article.is-current i { background: #d12c3a; box-shadow: 0 0 9px #b91d2a; }
.castle-schedule-list article.is-current strong { color: #fff; }

@media (max-width: 1050px) {
	.castle-owner-hero { grid-template-columns: 160px minmax(0,1fr); }
	.castle-owner-mark { width: 145px; }
	.castle-battle-status { grid-column: 1 / -1; margin-top: 26px; }
	.castle-schedule-list { grid-template-columns: repeat(2,1fr); }
	.castle-guild-cards { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
	.castle-hub-heading { align-items: flex-start; flex-direction: column; }
	.castle-owner-hero { display: block; padding: 28px 22px; text-align: center; }
	.castle-owner-mark { margin: 0 auto 15px; }
	.castle-owner-copy { padding: 0; }
	.castle-owner-meta { justify-content: center; }
	.castle-owner-meta > div { min-width: 105px; padding: 0 14px; }
	.castle-info-grid { grid-template-columns: 1fr; gap: 0; }
	.castle-guild-cards { grid-template-columns: 1fr; }
	.castle-section-head { min-height: 78px; padding: 18px 20px; }
	.castle-section-head h3 { font-size: 17px; }
}
@media (max-width: 480px) {
	.castle-owner-meta > div { width: 50%; margin: 8px 0; }
	.castle-owner-meta > div:nth-child(3) { border-left: 0; }
	.castle-state dl,.castle-economy dl { grid-template-columns: 1fr; }
	.castle-state dl > div,.castle-economy dl > div { border-right: 0; }
	.castle-economy .castle-treasury { grid-column: auto; }
	.castle-schedule-list { grid-template-columns: 1fr; }
}
