*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #3f3f3f;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    text-transform: none;
}

button {
    cursor: pointer;
}

table {
    border-collapse: collapse;
    text-indent: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.font-cinzel { font-family: "Cinzel", serif; }
.font-inter { font-family: "Inter", sans-serif; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

.static { position: static; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-3 { top: .75rem; }
.-top-3 { top: -.75rem; }
.right-0 { right: 0; }
.right-3 { right: .75rem; }
.-right-2 { right: -.5rem; }
.-right-3 { right: -.75rem; }
.bottom-4 { bottom: 1rem; }
.left-4 { left: 1rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.inline { display: inline; }
.grid { display: grid; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.self-start { align-self: flex-start; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-3 { grid-column: span 3 / span 3; }

.min-h-screen { min-height: 100vh; }
.h-1\.5 { height: .375rem; }
.h-2 { height: .5rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-36 { height: 9rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-full { height: 100%; }
.max-h-full { max-height: 100%; }
.max-h-\[500px\] { max-height: 500px; }

.w-1\.5 { width: .375rem; }
.w-2 { width: .5rem; }
.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-16 { width: 4rem; }
.w-64 { width: 16rem; }
.w-full { width: 100%; }
.min-w-full { min-width: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.my-16 { margin-top: 4rem; margin-bottom: 4rem; }
.my-20 { margin-top: 5rem; margin-bottom: 5rem; }
.ml-2 { margin-left: .5rem; }
.ml-4 { margin-left: 1rem; }
.ml-auto { margin-left: auto; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1 { padding-left: .25rem; padding-right: .25rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-2\.5 { padding-left: .625rem; padding-right: .625rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: .125rem; padding-bottom: .125rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-24 { padding-top: 6rem; }
.pb-2 { padding-bottom: .5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-32 { padding-bottom: 8rem; }
.pl-2 { padding-left: .5rem; }
.pl-3 { padding-left: .75rem; }
.pr-2 { padding-right: .5rem; }

.gap-1 { gap: .25rem; }
.gap-1\.5 { gap: .375rem; }
.gap-2 { gap: .5rem; }
.gap-2\.5 { gap: .625rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: .5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: .75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: .75rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }
.object-cover { object-fit: cover; }
.cursor-not-allowed { cursor: not-allowed; }

.rounded { border-radius: .25rem; }
.rounded-md { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-l { border-top-left-radius: .25rem; border-bottom-left-radius: .25rem; }
.rounded-r { border-top-right-radius: .25rem; border-bottom-right-radius: .25rem; }
.rounded-t-lg { border-top-left-radius: .5rem; border-top-right-radius: .5rem; }
.rounded-l-lg { border-top-left-radius: .5rem; border-bottom-left-radius: .5rem; }
.rounded-r-lg { border-top-right-radius: .5rem; border-bottom-right-radius: .5rem; }
.rounded-bl-lg { border-bottom-left-radius: .5rem; }
.rounded-br-lg { border-bottom-right-radius: .5rem; }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-t-0 { border-top-width: 0; }
.border-t-2 { border-top-width: 2px; }
.border-t-4 { border-top-width: 4px; }
.border-b { border-bottom-width: 1px; }
.border-b-2 { border-bottom-width: 2px; }
.border-l { border-left-width: 1px; }
.border-l-0 { border-left-width: 0; }
.border-l-4 { border-left-width: 4px; }
.border-x { border-left-width: 1px; border-right-width: 1px; }

.border-medieval-600 { border-color: #5b5140; }
.border-medieval-700 { border-color: #3f3f3f; }
.border-medieval-700\/50 { border-color: rgba(63,63,63,.5); }
.border-medieval-700\/60 { border-color: rgba(63,63,63,.6); }
.border-medieval-gold { border-color: #c5a059; }
.border-gray-600 { border-color: #4b5563; }
.border-gray-700 { border-color: #374151; }
.border-gray-700\/50 { border-color: rgba(55,65,81,.5); }
.border-red-500 { border-color: #ef4444; }
.border-red-700 { border-color: #b91c1c; }
.border-red-800 { border-color: #991b1b; }
.border-red-850 { border-color: #7f1d1d; }
.border-red-900\/40 { border-color: rgba(127,29,29,.4); }
.border-green-500 { border-color: #22c55e; }
.border-green-800\/40 { border-color: rgba(22,101,52,.4); }
.border-blue-500 { border-color: #3b82f6; }
.border-yellow-700\/50 { border-color: rgba(161,98,7,.5); }
.border-yellow-800 { border-color: #854d0e; }

.bg-white { background-color: #fff; }
.bg-medieval-800 { background-color: #2d2d2d; }
.bg-medieval-900 { background-color: #1a1a1a; }
.bg-medieval-900\/30 { background-color: rgba(26,26,26,.3); }
.bg-medieval-900\/40 { background-color: rgba(26,26,26,.4); }
.bg-medieval-900\/60 { background-color: rgba(26,26,26,.6); }
.bg-medieval-900\/80 { background-color: rgba(26,26,26,.8); }
.bg-medieval-gold\/20 { background-color: rgba(197,160,89,.2); }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-800\/30 { background-color: rgba(31,41,55,.3); }
.bg-gray-900\/80 { background-color: rgba(17,24,39,.8); }
.bg-red-500 { background-color: #ef4444; }
.bg-red-600 { background-color: #dc2626; }
.bg-red-800 { background-color: #991b1b; }
.bg-red-900\/50 { background-color: rgba(127,29,29,.5); }
.bg-red-900\/80 { background-color: rgba(127,29,29,.8); }
.bg-red-950 { background-color: #450a0a; }
.bg-red-950\/10 { background-color: rgba(69,10,10,.1); }
.bg-green-500 { background-color: #22c55e; }
.bg-green-900 { background-color: #14532d; }
.bg-green-900\/50 { background-color: rgba(20,83,45,.5); }
.bg-green-950\/20 { background-color: rgba(5,46,22,.2); }
.bg-yellow-600 { background-color: #ca8a04; }
.bg-yellow-900 { background-color: #713f12; }
.bg-yellow-900\/30 { background-color: rgba(113,63,18,.3); }
.bg-yellow-950 { background-color: #422006; }
.bg-emerald-700 { background-color: #047857; }
.bg-indigo-700 { background-color: #4338ca; }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-medieval-900 { --tw-gradient-from: #1a1a1a; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(26,26,26,0)); }
.via-transparent { --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to, rgba(0,0,0,0)); }
.to-transparent { --tw-gradient-to: transparent; }

.fill-current { fill: currentColor; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-\[8px\] { font-size: 8px; }
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: .025em; }
.tracking-wider { letter-spacing: .05em; }
.tracking-widest { letter-spacing: .1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.text-white { color: #fff; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-medieval-gold { color: #c5a059; }
.text-red-200 { color: #fecaca; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-green-200 { color: #bbf7d0; }
.text-green-300 { color: #86efac; }
.text-green-400 { color: #4ade80; }
.text-green-500 { color: #22c55e; }
.text-yellow-400 { color: #facc15; }
.text-yellow-500 { color: #eab308; }
.text-blue-400 { color: #60a5fa; }

.opacity-60 { opacity: .6; }
.opacity-70 { opacity: .7; }
.opacity-80 { opacity: .8; }
.opacity-85 { opacity: .85; }
.opacity-90 { opacity: .9; }

.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,.1); }
.shadow-2xl { box-shadow: 0 25px 50px rgba(0,0,0,.25); }
.shadow-inner { box-shadow: inset 0 2px 4px rgba(0,0,0,.06); }
.shadow-\[0_0_4px_\#22c55e\] { box-shadow: 0 0 4px #22c55e; }
.shadow-\[0_0_4px_\#ef4444\] { box-shadow: 0 0 4px #ef4444; }
.shadow-\[0_0_5px_\#166534\] { box-shadow: 0 0 5px #166534; }
.shadow-\[0_0_5px_\#22c55e\] { box-shadow: 0 0 5px #22c55e; }
.shadow-\[0_0_10px_\#991b1b\] { box-shadow: 0 0 10px #991b1b; }

.list-decimal { list-style-type: decimal; }
.list-inside { list-style-position: inside; }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.divide-medieval-700 > :not([hidden]) ~ :not([hidden]) { border-color: #3f3f3f; }

.transition { transition-property: color, background-color, border-color, opacity, box-shadow, transform; transition-duration: .15s; }
.transition-transform { transition-property: transform; transition-duration: .15s; }
.duration-200 { transition-duration: .2s; }
.duration-300 { transition-duration: .3s; }
.duration-500 { transition-duration: .5s; }
.animate-pulse { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes pulse { 50% { opacity: .5; } }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:border-medieval-gold:focus { border-color: #c5a059; }
.focus\:border-red-800:focus { border-color: #991b1b; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px currentColor; }
.focus\:ring-medieval-gold:focus { color: #c5a059; }
.focus\:text-white:focus { color: #fff; }

.hover\:bg-medieval-700:hover { background-color: #3f3f3f; }
.hover\:bg-medieval-700\/30:hover { background-color: rgba(63,63,63,.3); }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-red-900:hover { background-color: #7f1d1d; }
.hover\:bg-red-950\/20:hover { background-color: rgba(69,10,10,.2); }
.hover\:bg-emerald-600:hover { background-color: #059669; }
.hover\:bg-indigo-600:hover { background-color: #4f46e5; }
.hover\:border-medieval-gold:hover { border-color: #c5a059; }
.hover\:border-medieval-gold\/50:hover { border-color: rgba(197,160,89,.5); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-gray-300:hover { color: #d1d5db; }
.hover\:text-medieval-gold:hover { color: #c5a059; }
.hover\:text-red-300:hover { color: #fca5a5; }
.hover\:text-red-400:hover { color: #f87171; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.hover\:-translate-y-1:hover { transform: translateY(-.25rem); }
.hover\:shadow-\[0_0_20px_rgba\(197\,160\,89\,0\.25\)\]:hover { box-shadow: 0 0 20px rgba(197,160,89,.25); }

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:text-white { color: #fff; }
.group:hover .group-hover\:border-medieval-gold { border-color: #c5a059; }
.group:hover .group-hover\:translate-x-1 { transform: translateX(.25rem); }

@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:items-center { align-items: center; }
    .md\:justify-start { justify-content: flex-start; }
    .md\:justify-between { justify-content: space-between; }
    .md\:mb-0 { margin-bottom: 0; }
    .md\:mt-0 { margin-top: 0; }
    .md\:order-1 { order: 1; }
    .md\:p-12 { padding: 3rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:w-1\/4 { width: 25%; }
    .lg\:w-3\/4 { width: 75%; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Home dashboard */
.home-hero {
    min-height: 520px;
    display: grid;
    place-items: center;
    padding: 7rem 1.25rem;
    border-bottom: 1px solid rgba(197,160,89,.24);
    text-align: center;
}

.home-hero__content { width: min(850px, 100%); }
.home-eyebrow {
    display: inline-block;
    color: #c5a059;
    font: 700 .75rem/1 "Inter", sans-serif;
    letter-spacing: .3em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.home-hero h1 {
    color: #fff;
    font: 700 clamp(2.65rem, 7vw, 5.3rem)/1.05 "Cinzel", serif;
    letter-spacing: .12em;
    margin: 0;
    text-shadow: 0 2px 18px rgba(0,0,0,.8), 0 0 25px rgba(197,160,89,.22);
    text-transform: uppercase;
}
.home-hero p {
    color: #d1d5db;
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.75;
    max-width: 690px;
    margin: 1.5rem auto 0;
    text-shadow: 0 2px 5px #000;
}
.home-hero__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.25rem; }
.home-btn,
.home-outline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .45rem;
    font: 700 .78rem/1 "Cinzel", serif;
    letter-spacing: .11em;
    text-transform: uppercase;
    transition: transform .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.home-btn { min-width: 190px; padding: 1rem 1.5rem; }
.home-btn:hover,
.home-outline-link:hover { transform: translateY(-2px); }
.home-btn--primary {
    color: #fff;
    border: 1px solid #e6c381;
    background: linear-gradient(180deg, #c5a059, #81612b);
    box-shadow: 0 8px 30px rgba(197,160,89,.22);
}
.home-btn--ghost { color: #ece5d9; border: 1px solid #5b5140; background: rgba(18,18,20,.86); }
.home-btn--ghost:hover { border-color: #c5a059; }

.home-shell { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: 4rem 0 1rem; }
.home-rates { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .85rem; }
.home-rate-card,
.home-module {
    position: relative;
    background: linear-gradient(145deg, rgba(25,26,31,.96), rgba(13,14,17,.94));
    border: 1px solid rgba(197,160,89,.22);
    box-shadow: 0 16px 45px rgba(0,0,0,.24);
}
.home-rate-card {
    min-height: 172px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem .75rem;
    border-radius: .75rem;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.home-rate-card::after {
    content: '';
    position: absolute;
    inset: auto 15% 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c5a059, transparent);
    opacity: 0;
}
.home-rate-card:hover {
    transform: translateY(-6px);
    border-color: rgba(230,195,129,.68);
    box-shadow: 0 18px 42px rgba(0,0,0,.38), 0 0 24px rgba(197,160,89,.12);
}
.home-rate-card:hover::after { opacity: 1; }
.home-rate-card__icon,
.home-module__icon {
    display: grid;
    place-items: center;
    color: #d3a954;
    border: 1px solid rgba(197,160,89,.35);
    background: rgba(197,160,89,.07);
    box-shadow: inset 0 0 18px rgba(197,160,89,.06), 0 0 16px rgba(197,160,89,.08);
}
.home-rate-card__icon { width: 48px; height: 48px; border-radius: 999px; margin-bottom: 1rem; }
.home-rate-card__icon svg { width: 24px; height: 24px; }
.home-rate-card__label { color: #8f9198; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.home-rate-card strong { color: #e5c785; font: 700 1.55rem/1.2 "Cinzel", serif; margin-top: .45rem; text-shadow: 0 0 15px rgba(197,160,89,.18); }

.home-dashboard-grid {
    display: grid;
    grid-template-columns: .9fr 1.05fr 1.2fr;
    align-items: stretch;
    gap: 1rem;
    margin-top: 1rem;
}
.home-module { border-radius: .8rem; padding: 1.5rem; }
.home-module__header { display: flex; align-items: center; gap: .8rem; border-bottom: 1px solid rgba(91,81,64,.6); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.home-module__header > div { min-width: 0; }
.home-module__header h2 { color: #f1eee8; font: 700 1rem/1.25 "Cinzel", serif; letter-spacing: .04em; margin: 0; text-transform: uppercase; }
.home-module__header p { color: #7e818a; font-size: .78rem; margin: .3rem 0 0; }
.home-module__icon { width: 34px; height: 34px; border: 0; background: transparent; box-shadow: none; flex: 0 0 auto; }
.home-module__icon svg { width: 23px; height: 23px; }
.home-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.home-feature-list li { position: relative; color: #aeb1b8; font-size: .8rem; line-height: 1.6; padding-left: 1rem; }
.home-feature-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: #c5a059; box-shadow: 0 0 8px #c5a059; }
.home-feature-list strong { color: #ded6c9; }

.home-news-list { display: grid; gap: .7rem; }
.home-news-item { display: block; padding: .9rem; border-radius: .55rem; border: 1px solid rgba(63,63,63,.75); background: rgba(12,13,16,.58); transition: border-color .2s ease, background .2s ease; }
.home-news-item:hover { border-color: rgba(197,160,89,.55); background: rgba(197,160,89,.045); }
.home-news-item__meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.home-news-item__meta span { color: #c5a059; background: rgba(197,160,89,.1); border: 1px solid rgba(197,160,89,.25); border-radius: .3rem; font-size: .58rem; font-weight: 800; letter-spacing: .14em; padding: .25rem .45rem; text-transform: uppercase; }
.home-news-item time { color: #666a72; font-size: .65rem; }
.home-news-item strong { color: #ddd8d0; display: block; font-size: .82rem; line-height: 1.45; }
.home-outline-link { width: fit-content; color: #d8bd82; border: 1px solid rgba(197,160,89,.45); padding: .72rem 1rem; margin-top: 1.1rem; font-size: .63rem; }
.home-outline-link:hover { color: #fff; border-color: #c5a059; box-shadow: 0 0 18px rgba(197,160,89,.12); }
.home-empty-state { color: #747780; font-size: .8rem; padding: 1rem 0; }

.home-rank-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .8rem; }
.home-rank-tabs button { color: #7f828a; background: rgba(12,13,16,.6); border: 1px solid #34363c; border-radius: .4rem; font-size: .65rem; font-weight: 800; letter-spacing: .1em; padding: .65rem; text-transform: uppercase; }
.home-rank-tabs button.is-active { color: #e1c681; border-color: rgba(197,160,89,.55); background: rgba(197,160,89,.08); }
.home-ranking-list { display: none; list-style: none; padding: 0 .25rem 0 0; margin: 0; max-height: 300px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #5b5140 transparent; }
.home-ranking-list.is-active { display: grid; gap: .45rem; }
.home-ranking-list li { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: .7rem; min-height: 56px; padding: .55rem .7rem; background: rgba(11,12,15,.62); border: 1px solid rgba(63,63,63,.55); border-radius: .55rem; }
.home-rank-position { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #a5a7ad; background: #292b30; font-size: .65rem; font-weight: 800; }
.home-rank-position--1 { color: #27200d; background: linear-gradient(145deg,#f5db66,#a9820a); box-shadow: 0 0 13px rgba(245,219,102,.3); }
.home-rank-position--2 { color: #252525; background: linear-gradient(145deg,#e1e2e4,#85888e); }
.home-rank-position--3 { color: #f7e7d2; background: linear-gradient(145deg,#bd7540,#684021); }
.home-rank-player { min-width: 0; }
.home-rank-player strong { color: #ddd8d0; display: block; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-rank-player small { color: #666a72; display: block; font-size: .62rem; margin-top: .12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-rank-score { color: #c5a059; font-size: .66rem; font-weight: 800; white-space: nowrap; }

.home-market { margin-top: 1rem; }
.home-market .home-module__header { margin-bottom: 1rem; }
.home-market-empty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
.home-market-empty div { display: grid; gap: .25rem; }
.home-market-empty strong { color: #c8cbd1; font-size: .85rem; }
.home-market-empty span { color: #747780; font-size: .75rem; }
.home-market-status { color: #b89c63 !important; border: 1px solid rgba(197,160,89,.25); background: rgba(197,160,89,.06); border-radius: 999px; padding: .55rem .8rem; white-space: nowrap; }
.home-market-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }
.home-market-grid article { padding: 1rem; background: rgba(12,13,16,.58); border: 1px solid #34363c; border-radius: .55rem; display: grid; gap: .3rem; }
.home-market-grid span { color: #747780; font-size: .65rem; }
.home-market-grid strong { color: #ddd8d0; }
.home-market-grid b { color: #c5a059; font-size: .75rem; }

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #e3ca92;
    background: rgba(19,20,24,.92);
    border: 1px solid rgba(197,160,89,.5);
    border-radius: .7rem;
    box-shadow: 0 8px 28px rgba(0,0,0,.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: #fff; border-color: #e6c381; transform: translateY(-2px); }
.back-to-top svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
    .home-rates { grid-template-columns: repeat(3, 1fr); }
    .home-dashboard-grid { grid-template-columns: 1fr 1fr; }
    .home-module--ranking { grid-column: 1 / -1; }
    .home-ranking-list { max-height: 300px; }
}
@media (max-width: 720px) {
    .home-hero { min-height: 460px; padding: 5.5rem 1rem; }
    .home-hero h1 { letter-spacing: .06em; }
    .home-shell { width: min(100% - 1.25rem, 1240px); padding-top: 2.5rem; }
    .home-rates { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .home-rate-card { min-height: 145px; }
    .home-dashboard-grid { grid-template-columns: 1fr; }
    .home-module--ranking { grid-column: auto; }
    .home-market-empty { align-items: flex-start; flex-direction: column; }
    .home-market-grid { grid-template-columns: 1fr; }
    .home-rank-score { font-size: .58rem; }
}

/* Language and appearance preferences */
.site-preferences,
.mobile-preferences { display: flex; align-items: center; gap: .55rem; }
.language-picker { position: relative; }
.language-picker__current,
.preference-icon {
    height: 40px;
    color: #d8dadd;
    background: rgba(12,14,18,.82);
    border: 1px solid rgba(197,160,89,.3);
    box-shadow: inset 0 0 14px rgba(255,255,255,.015);
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.language-picker__current { min-width: 104px; display: flex; align-items: center; justify-content: center; gap: .48rem; padding: 0 .7rem; border-radius: .38rem; }
.language-picker__current strong { font-size: .67rem; letter-spacing: .08em; }
.language-picker__current > span { font-size: 1.05rem; line-height: 1; }
.language-picker__current > svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s ease; }
.language-picker.is-open .language-picker__current > svg { transform: rotate(180deg); }
.language-picker__current:hover,
.preference-icon:hover { color: #f0cf87; border-color: rgba(230,195,129,.7); transform: translateY(-1px); }
.language-picker__menu {
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    z-index: 80;
    width: 162px;
    padding: .35rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-7px);
    border: 1px solid rgba(197,160,89,.35);
    border-radius: .45rem;
    background: rgba(13,15,19,.98);
    box-shadow: 0 18px 42px rgba(0,0,0,.48);
    transition: .18s ease;
}
.language-picker.is-open .language-picker__menu { visibility: visible; opacity: 1; transform: translateY(0); }
.language-picker__menu button { width: 100%; display: flex; align-items: center; gap: .65rem; color: #aeb1b8; padding: .65rem .7rem; border: 0; border-radius: .3rem; background: transparent; font-size: .74rem; text-align: left; }
.language-picker__menu button:hover,
.language-picker__menu button.is-active { color: #f0d395; background: rgba(197,160,89,.11); }
.language-picker__menu button span { font-size: 1rem; }
.preference-icon { width: 40px; display: grid; place-items: center; padding: 0; border-radius: 50%; }
.theme-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon--moon { display: none; }
.light .theme-icon--sun { display: none; }
.light .theme-icon--moon { display: block; }
.mobile-preferences { justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid rgba(91,81,64,.55); }
.mobile-language-options { display: flex; align-items: stretch; border: 1px solid rgba(197,160,89,.3); border-radius: .4rem; overflow: hidden; }
.mobile-language-options button { display: flex; align-items: center; gap: .35rem; color: #8f9299; background: rgba(12,14,18,.72); border: 0; border-right: 1px solid rgba(197,160,89,.2); padding: .62rem .72rem; font-size: .68rem; font-weight: 700; }
.mobile-language-options button:last-child { border-right: 0; }
.mobile-language-options button.is-active { color: #f2d48f; background: rgba(197,160,89,.16); }

/* Light theme retains the fantasy artwork while turning every reading surface light. */
.light body {
    color: #3b3731 !important;
    background-color: #e7e1d7 !important;
    background-image: linear-gradient(180deg, rgba(244,240,232,.76), rgba(231,225,215,.88)), url('../img/bg-dark-fantasy.jpg') !important;
}
.light .panel-glass { background: rgba(249,246,239,.9) !important; border-color: rgba(126,91,38,.28) !important; box-shadow: 0 7px 24px rgba(65,48,27,.12) !important; }
.light .home-rate-card,
.light .home-module { background: linear-gradient(145deg, rgba(255,253,248,.97), rgba(235,229,218,.96)); border-color: rgba(142,109,48,.28); box-shadow: 0 16px 36px rgba(72,54,30,.12); }
.light .home-hero { background: rgba(255,252,245,.25); }
.light .home-hero h1,
.light .home-module__header h2,
.light .home-news-item strong,
.light .home-rank-player strong,
.light .home-market-grid strong,
.light .home-market-empty strong,
.light .text-white { color: #28241f !important; text-shadow: none; }
.light .home-hero p,
.light .text-gray-200,
.light .text-gray-300 { color: #4a453e !important; text-shadow: none; }
.light .text-gray-400,
.light .home-feature-list li { color: #625d55 !important; }
.light .text-gray-500,
.light .home-module__header p,
.light .home-news-item time,
.light .home-rank-player small,
.light .home-empty-state,
.light .home-market-empty span { color: #7a7369 !important; }
.light .bg-medieval-900,
.light .bg-medieval-900\/30,
.light .bg-medieval-900\/40,
.light .bg-medieval-900\/60,
.light .bg-medieval-900\/80,
.light .bg-gray-800,
.light .bg-gray-800\/30,
.light .bg-gray-900\/80 { background-color: rgba(228,220,208,.82) !important; }
.light input,
.light select,
.light textarea { color: #332f2a !important; background: rgba(255,253,248,.92) !important; border-color: rgba(126,91,38,.38) !important; }
.light .home-news-item,
.light .home-ranking-list li,
.light .home-market-grid article,
.light .home-rank-tabs button { background: rgba(255,253,248,.68); border-color: rgba(126,91,38,.24); }
.light .home-btn--ghost { color: #55452c; background: rgba(255,252,245,.82); border-color: #a48654; }
.light .language-picker__current,
.light .preference-icon,
.light .mobile-language-options button { color: #554b3d; background: rgba(255,253,248,.88); }
.light .language-picker__menu { background: rgba(255,253,248,.99); box-shadow: 0 18px 42px rgba(74,55,30,.2); }
.light .language-picker__menu button { color: #62594d; }
.light .back-to-top { color: #785b28; background: rgba(255,253,248,.94); box-shadow: 0 8px 26px rgba(70,52,28,.16); }

@media (max-width: 1180px) and (min-width: 1024px) {
    .language-picker__current { min-width: 86px; padding: 0 .5rem; }
    .site-preferences { gap: .35rem; }
}

/* Refined header */
.site-nav { border-width: 0 0 1px; }
.site-nav__inner { width: min(1420px, calc(100% - 2rem)); height: 92px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.site-logo { width: 178px; height: 82px; display: flex; align-items: center; justify-content: flex-start; flex: 0 0 auto; }
.site-logo img { width: 174px; height: 74px; object-fit: contain; filter: drop-shadow(0 4px 13px rgba(0,0,0,.72)); transition: transform .25s ease, filter .25s ease; }
.site-logo:hover img { transform: scale(1.035); filter: drop-shadow(0 5px 16px rgba(197,160,89,.3)); }
.site-nav__links { align-items: center; justify-content: center; gap: .3rem; flex: 1 1 auto; }
.site-nav__link { position: relative; display: inline-flex; align-items: center; gap: .32rem; color: #bec0c5; padding: 1rem .72rem; border: 0; background: transparent; font: 700 .68rem/1 "Inter", sans-serif; letter-spacing: .105em; text-transform: uppercase; white-space: nowrap; transition: color .2s ease; }
.site-nav__link::after { content: ''; position: absolute; left: .7rem; right: .7rem; bottom: .48rem; height: 1px; background: #c5a059; transform: scaleX(0); transition: transform .2s ease; }
.site-nav__link:hover { color: #e8cd92; }
.site-nav__link:hover::after,
.nav-dropdown.is-open .nav-dropdown__trigger::after { transform: scaleX(1); }
.nav-dropdown { position: relative; }
.nav-dropdown__trigger svg { width: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s ease; }
.nav-dropdown.is-open .nav-dropdown__trigger svg { transform: rotate(180deg); }
.nav-dropdown__menu { position: absolute; top: calc(100% + .25rem); left: 50%; z-index: 80; width: 220px; padding: .45rem; visibility: hidden; opacity: 0; transform: translate(-50%, -8px); background: rgba(12,14,18,.98); border: 1px solid rgba(197,160,89,.28); border-radius: .25rem; box-shadow: 0 22px 50px rgba(0,0,0,.55); transition: .18s ease; }
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.nav-dropdown__menu a { display: grid; grid-template-columns: 32px 1fr; align-items: center; color: #b8bbc1; padding: .8rem; border-bottom: 1px solid rgba(91,81,64,.35); transition: color .2s ease, background .2s ease; }
.nav-dropdown__menu a:last-child { border-bottom: 0; }
.nav-dropdown__menu a:hover { color: #e8cd92; background: rgba(197,160,89,.08); }
.nav-dropdown__menu span { color: #806d49; font-size: .58rem; letter-spacing: .1em; }
.nav-dropdown__menu strong { font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.site-nav__actions { align-items: center; justify-content: flex-end; gap: .42rem; flex: 0 0 auto; }
.language-switcher { display: flex; align-items: stretch; height: 40px; overflow: hidden; background: rgba(9,11,14,.74); border: 1px solid rgba(197,160,89,.25); border-radius: .24rem; }
.language-switcher button { min-width: 45px; display: grid; place-items: center; align-content: center; gap: 2px; color: #656870; padding: .25rem .5rem; border: 0; border-right: 1px solid rgba(197,160,89,.14); background: transparent; transition: color .2s ease, background .2s ease; }
.language-switcher button:last-child { border-right: 0; }
.language-switcher span { font: 700 .55rem/1 "Inter", sans-serif; letter-spacing: .06em; }
.language-switcher strong { font: 700 .62rem/1 "Inter", sans-serif; letter-spacing: .06em; }
.language-switcher button:hover { color: #d4bb83; }
.language-switcher button.is-active { color: #17130d; background: linear-gradient(145deg,#e1c77e,#a9853c); }
.nav-account { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; color: #b8bbc1; padding: 0 .72rem; border: 1px solid transparent; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.nav-account:hover { color: #fff; }
.nav-account--primary { color: #fff; min-height: 42px; padding-inline: 1rem; border-radius: .45rem; background: linear-gradient(180deg,#c5a059 0%,#8e6d30 100%); border-color: #e6c381; box-shadow: 0 0 10px rgba(197,160,89,.4); font-family: "Cinzel",serif; letter-spacing: .1em; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; }
.nav-account--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 22px rgba(197,160,89,.78); filter: brightness(1.06); }
.light .nav-account--primary,
.light .nav-account--primary:hover { color: #fff !important; }
.mobile-menu-toggle { color: #d2bd8d; padding: .55rem; background: rgba(10,12,15,.6); border: 1px solid rgba(197,160,89,.25); border-radius: .25rem; }
.mobile-nav-panel { padding: 1.2rem; border-top: 1px solid rgba(197,160,89,.2); background: rgba(12,14,18,.97); }
.mobile-nav-links { display: grid; }
.mobile-nav-links > a,
.mobile-nav-links > button { display: flex; align-items: center; justify-content: space-between; color: #c3c5ca; padding: .9rem .15rem; border: 0; border-bottom: 1px solid rgba(91,81,64,.45); background: transparent; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mobile-stats-links { padding: .3rem 0 .55rem 1rem; border-bottom: 1px solid rgba(91,81,64,.45); }
.mobile-stats-links a { display: block; color: #8f9299; padding: .65rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mobile-nav-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; }
.mobile-account-links { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.mobile-account-links .nav-account { border-color: rgba(197,160,89,.3); }
.light .nav-dropdown__menu,
.light .mobile-nav-panel { background: rgba(250,247,240,.99); }
.light .site-nav__link,
.light .nav-account,
.light .mobile-nav-links > a,
.light .mobile-nav-links > button { color: #574f44; }
.light .language-switcher { background: rgba(255,253,248,.85); }

/* Information page */
.info-page { width: min(1240px, calc(100% - 2rem)); margin: 0 auto; padding: 5.5rem 0 2rem; }
.info-hero { max-width: 840px; margin-bottom: 3.5rem; }
.info-kicker { display: block; color: #c5a059; margin-bottom: .85rem; font-size: .65rem; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; }
.info-hero h1 { color: #f1eee8; font: 700 clamp(2.2rem,5vw,4rem)/1.08 "Cinzel",serif; letter-spacing: .04em; text-transform: uppercase; }
.info-hero p { max-width: 720px; color: #9699a1; margin-top: 1rem; font-size: .95rem; line-height: 1.8; }
.info-quick-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: .65rem; margin-bottom: 4.5rem; }
.info-quick-card { min-height: 125px; display: grid; place-items: center; align-content: center; gap: .7rem; text-align: center; background: rgba(17,19,24,.9); border: 1px solid rgba(197,160,89,.22); }
.info-quick-card svg { width: 22px; height: 22px; color: #dbbd72; fill: none; stroke: currentColor; stroke-width: 1.8; }
.info-quick-card span { color: #747882; font-size: .56rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.info-quick-card strong { color: #e6ca87; font: 700 1.25rem/1 "Cinzel",serif; }
.info-section { margin-bottom: 4.5rem; }
.info-section__heading { margin-bottom: 1.5rem; }
.info-section__heading span { color: #a98948; font-size: .58rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.info-section__heading h2 { color: #eee9df; margin-top: .55rem; font: 700 clamp(1.65rem,3vw,2.4rem)/1.15 "Cinzel",serif; text-transform: uppercase; }
.info-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; }
.info-card { min-height: 235px; padding: 1.5rem; background: rgba(18,20,25,.92); border: 1px solid rgba(197,160,89,.22); }
.info-card__icon { width: 34px; height: 34px; display: grid; place-items: center; color: #d9b65f; margin-bottom: 1rem; }
.info-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.info-card h3 { color: #e5e0d7; margin-bottom: 1rem; font: 700 .92rem/1.3 "Cinzel",serif; text-transform: uppercase; }
.info-card ul { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.info-card li { position: relative; color: #92959d; padding-left: .9rem; font-size: .75rem; line-height: 1.6; }
.info-card li::before { content: ''; position: absolute; left: 0; top: .65em; width: 4px; height: 4px; background: #d4af55; border-radius: 50%; }
.info-system-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.info-system-tags span { color: #cfb36f; padding: .55rem .7rem; border: 1px solid rgba(197,160,89,.25); background: rgba(197,160,89,.035); font-size: .62rem; letter-spacing: .04em; }
.light .info-hero h1,
.light .info-section__heading h2,
.light .info-card h3 { color: #2e2923; }
.light .info-hero p,
.light .info-card li { color: #696258; }
.light .info-quick-card,
.light .info-card { background: rgba(252,249,242,.92); border-color: rgba(126,91,38,.27); }

@media (max-width: 1260px) {
    .site-nav__inner { width: min(100% - 1rem, 1420px); gap: .55rem; }
    .site-logo { width: 145px; }
    .site-logo img { width: 142px; }
    .site-nav__link { padding-inline: .48rem; font-size: .62rem; }
    .language-switcher button { min-width: 38px; padding-inline: .35rem; }
    .nav-account { padding-inline: .48rem; }
}
@media (max-width: 900px) {
    .site-nav__inner { height: 78px; }
    .site-logo { width: 145px; height: 70px; }
    .site-logo img { width: 140px; height: 64px; }
    .info-page { padding-top: 3.5rem; }
    .info-quick-grid { grid-template-columns: repeat(3,1fr); }
    .info-card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .info-quick-grid { grid-template-columns: repeat(2,1fr); }
    .info-quick-card { min-height: 112px; }
}
.statistics-tabs a{border-radius:.5rem!important}.statistics-table .text-green-400,.statistics-table .text-red-400{display:inline-block;padding:.3rem .65rem;border:1px solid;border-radius:999px;font-weight:700;font-size:.75rem}.statistics-table .text-green-400{color:#58d99a;border-color:rgba(46,190,125,.3);background:rgba(20,120,78,.1);box-shadow:0 0 12px rgba(46,190,125,.13)}.statistics-table .text-red-400{color:#ef7777;border-color:rgba(220,65,65,.3);background:rgba(130,28,28,.1);box-shadow:0 0 12px rgba(220,65,65,.13)}

/* Unified public-page headings */
.light .home-hero h1,.light .statistics-hero h1,.light .info-hero h1,.light .info-section__heading h2{color:#211d19!important;text-shadow:none!important}.light .statistics-hero p{color:#504a42!important}.light .statistics-tabs a:not(.is-active){background:rgba(31,28,24,.92)!important;color:#e1d4bc!important;border-color:rgba(197,160,89,.45)!important}.light .statistics-table{background:rgba(28,26,23,.94)!important}.light .statistics-table th{background:#171614!important;color:#e5c66f!important}.light .statistics-table td{color:#ece6da!important;border-color:rgba(197,160,89,.2)!important}.light .statistics-table td:nth-child(2){color:#fff!important}.light .info-quick-card,.light .info-card{background:rgba(38,34,29,.95)!important;border-color:rgba(197,160,89,.55)!important;box-shadow:0 12px 28px rgba(54,42,25,.18)!important}.light .info-quick-card span,.light .info-card li{color:#e2ded5!important}.light .info-quick-card strong,.light .info-card h3{color:#edcb75!important}.light .info-system-tags span{color:#3b2b13!important;background:rgba(211,177,100,.26)!important;border-color:rgba(151,105,34,.48)!important;font-weight:700}.news-media img,.news-media video,.news-media iframe{display:block;width:min(100%,1280px);aspect-ratio:16/9;margin:1rem auto;object-fit:contain;background:#090a0d;border-radius:.55rem}.news-media iframe{border:0}.news-cover-standard{width:100%;aspect-ratio:16/9;object-fit:cover;object-position:center}.statistics-table .text-green-400,.statistics-table .text-red-400{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:70px;line-height:1!important;vertical-align:middle!important;transform:none!important;margin:0!important}.statistics-table td:nth-last-child(2){vertical-align:middle!important;padding-top:1rem!important;padding-bottom:1rem!important}
.news-preview-dialog{width:min(820px,calc(100% - 2rem));color:#d5d6da;padding:1.5rem;background:#121419;border:1px solid rgba(197,160,89,.4);border-radius:.7rem}.news-preview-dialog::backdrop{background:rgba(0,0,0,.78)}.news-preview-dialog>button{float:right;color:#e2c474;font-size:1.8rem}.news-preview-dialog>img:not([src]){display:none}.news-preview-dialog>img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:.5rem;margin-top:1rem}.news-preview-dialog h2{color:#fff;font:700 2rem "Cinzel",serif;margin:1rem 0}.news-preview-dialog #preview-dialog-content{white-space:pre-wrap}.news-preview-dialog #preview-dialog-media img{width:100%;margin-top:1rem;border-radius:.5rem}.admin-action-edit,.admin-action-delete{display:inline-flex!important;align-items:center;padding:.48rem .78rem!important;border-radius:.45rem!important;font-size:.75rem!important;font-weight:800!important;background:transparent}.admin-action-edit{color:#e2c474!important;border:1px solid rgba(197,160,89,.42)}.admin-action-delete{color:#ee7d7d!important;border:1px solid rgba(220,65,65,.38)}
.statistics-table td{vertical-align:middle}.admin-action-edit,.admin-action-delete{display:inline-flex;padding:.5rem .8rem;border-radius:.45rem;font-size:.75rem;font-weight:800}.admin-action-edit{color:#e2c474;background:rgba(197,160,89,.1);border:1px solid rgba(197,160,89,.3)}.admin-action-delete{color:#f08383;background:rgba(145,31,31,.12);border:1px solid rgba(220,65,65,.3)}
.public-page-heading,
.max-w-7xl > .text-center > h1,
.info-hero h1 {
    color: #fff !important;
    font-family: "Cinzel", serif !important;
    font-weight: 700 !important;
    letter-spacing: .035em;
    text-shadow: 0 2px 18px rgba(0,0,0,.82), 0 0 16px rgba(197,160,89,.12) !important;
}
.light .public-page-heading,
.light .max-w-7xl > .text-center > h1,
.light .info-hero h1 { color: #fff !important; text-shadow: 0 2px 18px rgba(0,0,0,.82), 0 0 16px rgba(197,160,89,.12) !important; }

/* Final visual corrections: light mode stays clean and neutral. */
.light .info-quick-card,.light .info-card{background:rgba(252,249,242,.94)!important;border-color:rgba(126,91,38,.25)!important;box-shadow:0 12px 28px rgba(54,42,25,.08)!important}.light .info-quick-card span,.light .info-card li{color:#514a41!important}.light .info-quick-card strong,.light .info-card h3{color:#8d682b!important}.light .statistics-table{background:rgba(250,247,240,.94)!important}.light .statistics-table th{background:rgba(237,231,220,.92)!important;color:#76551f!important}.light .statistics-table td{color:#48423a!important;border-color:rgba(111,96,72,.2)!important}.light .statistics-table td:nth-child(2){color:#24201c!important}.light .statistics-tabs a:not(.is-active){background:rgba(250,247,240,.92)!important;color:#514a41!important;border-color:rgba(126,91,38,.28)!important}
.light .home-hero h1,.light .statistics-hero h1,.light .info-hero h1,.light .info-section__heading h2,.light .public-page-heading,.light .max-w-7xl>.text-center>h1{color:#201c18!important;text-shadow:none!important}.light .statistics-hero p{color:#514a41!important}
.statistics-table td.text-green-400,.statistics-table td.text-red-400{display:table-cell!important;min-width:0!important;padding:1.2rem 1.4rem!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;border-left:0!important;border-right:0!important;border-bottom:0!important;line-height:inherit!important;white-space:nowrap!important}.statistics-table td.text-green-400{color:#55d996!important;text-shadow:0 0 8px rgba(39,205,126,.45),0 0 16px rgba(39,205,126,.18)!important}.statistics-table td.text-red-400{color:#ef7777!important;text-shadow:0 0 8px rgba(228,72,72,.42),0 0 16px rgba(228,72,72,.16)!important}
@media (min-width:1024px){.site-nav__links{gap:.35rem!important}.site-nav__link{padding:1.15rem .82rem!important;font-size:.82rem!important;letter-spacing:.095em!important}}
.ambient-lightning{position:fixed;inset:92px 0 0;z-index:0;overflow:hidden;pointer-events:none;opacity:.7}.ambient-lightning i{position:absolute;top:-18%;width:2px;height:62%;opacity:0;background:linear-gradient(to bottom,transparent,rgba(255,220,145,.18) 18%,rgba(255,245,218,.85) 52%,rgba(219,164,68,.12) 100%);filter:drop-shadow(0 0 7px rgba(255,225,164,.65));transform:rotate(5deg);animation:ambient-strike 13s infinite}.ambient-lightning i:nth-child(1){left:22%;animation-delay:1s}.ambient-lightning i:nth-child(2){left:57%;height:48%;animation-delay:6.5s}.ambient-lightning i:nth-child(3){left:81%;height:55%;animation-delay:10s}.site-nav,body>main,body>.flex-grow,body>footer,body>.max-w-4xl,body>.max-w-7xl{position:relative;z-index:1}.light .ambient-lightning{opacity:.3}@keyframes ambient-strike{0%,72%,75%,78%,100%{opacity:0}73%{opacity:.7;transform:rotate(5deg) scaleX(1)}74%{opacity:.12}76%{opacity:.48;transform:rotate(5deg) scaleX(1.7)}77%{opacity:0}}@media (prefers-reduced-motion:reduce){.ambient-lightning{display:none}}

/* Statistics: preserves the original elegant ranking composition. */
.statistics-page{width:min(1240px,calc(100% - 2rem));margin:0 auto;padding:5rem 0}.statistics-hero{text-align:center;margin-bottom:2.5rem}.statistics-hero>span{color:#c5a059;font-size:.62rem;font-weight:800;letter-spacing:.22em;text-transform:uppercase}.statistics-hero h1{color:#fff;margin:.7rem 0;font:700 clamp(2.35rem,5vw,4rem)/1.08 "Cinzel",serif;letter-spacing:.035em;text-transform:uppercase;text-shadow:0 2px 18px #000}.statistics-hero p{color:#a3a6ad;font-size:1rem}.statistics-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:.7rem;margin-bottom:2rem}.statistics-tabs a{min-height:52px;display:flex;align-items:center;justify-content:center;color:#9ea5b3;padding:.75rem 1.25rem;background:rgba(13,15,19,.88);border:1px solid rgba(197,160,89,.22);font-size:.72rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;transition:.2s ease}.statistics-tabs a:hover{color:#e3c77e;border-color:#b89243}.statistics-tabs a.is-active{color:#17130d;background:linear-gradient(145deg,#e2ca84,#b38c3d);border-color:#edcf84;box-shadow:0 0 16px rgba(197,160,89,.23)}.statistics-table{overflow:auto;background:rgba(15,17,22,.91);border:1px solid rgba(197,160,89,.24);border-radius:.55rem;box-shadow:0 20px 50px rgba(0,0,0,.25)}.statistics-table table{width:100%;border-collapse:collapse;min-width:760px}.statistics-table th{color:#d8bb70;padding:1.2rem 1.4rem;background:rgba(10,12,16,.58);font-size:.68rem;letter-spacing:.07em;text-align:left;text-transform:uppercase}.statistics-table td{color:#c9cbd1;padding:1.2rem 1.4rem;border-top:1px solid rgba(117,105,85,.3);font-size:.9rem}.statistics-table tbody tr:hover{background:rgba(197,160,89,.045)}.statistics-table td:nth-child(2){color:#f0eee9;font-weight:700}.statistics-table .empty{text-align:center;color:#8e9199}.light .statistics-table{background:rgba(250,247,240,.94)}.light .statistics-table td{color:#48423a}.light .statistics-table td:nth-child(2){color:#24201c}.light .statistics-tabs a:not(.is-active){background:rgba(250,247,240,.9);color:#62584c}
