@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/inter-regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/inter-italic.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Selincah';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/selincah.ttf') format('truetype');
    font-display: swap;
}

:root {
    /* Core Backgrounds */
    --background: #0a0808;                /* Warm charcoal black */
    --obsidian: #110d0d;                  /* Slightly red-tinted black */
    --midnight-ember: #1a1414;            /* Panel base – warm & hostile */

    /* Surfaces */
    --card-bg: #110d0d;
    --card-bg-light: #1a1414;
    --card-border: rgba(120, 60, 40, 0.18); /* Subtle ember-tinted border */
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.75);
    --card-bg-green: linear-gradient(
        180deg,
        rgba(122, 159, 84, 0.05),
        transparent                
    );
    --card-border-green: rgba(79, 109, 48, 0.18);
    --card-bg-red: linear-gradient(
        180deg,
        rgba(158, 27, 27, 0.2),
        transparent                
    );
    --card-border-red: rgba(196, 58, 31, 0.3);

    /* Text Colors */
    --bone: #e4dfd7;                      
    --ash: #afa79d;                       
    --soot: #6b635c;                       
    --link: #A87A32;

    /* Feral Accent Colors */
    --blood-ember: #9e1b1b;                
    --dried-blood: #5c1313;                
    --rage-glow: #c43a1f;                 

    /* Bars */
    --stamina-green: #7a9f54;             
    --satiation-ochre: #a9782b;           
    --vitality-bone: #d7cfc3;             
    --rage-red: #9e1b1b;                 

    /* Utility */
    --glass-alpha: #1a1414; 
    --currency-bonechips: #C8A556;  
    --currency-moonshards: #8C5EC4; 
    --currency-moontokens: #C43E7F;
    --glory: #4A6687;
    --level-cyan: #2AA6A8;  
    --ap: #B76E3C;        
    --moonshard-glow: #A789E6;
    --moontoken-glow: #E56BAD;
    --glory-glow: #6A8FAF;
    --level-cyan-glow: #54CBD0;
    --ap-glow: #DB9A66;  
    --gender-male: #3A5677;
    --gender-male-soft: #2E455F;
    --gender-male-glow: #4E6F96;

    --gender-female: #A45A68;
    --gender-female-soft: #8C4957;
    --gender-female-glow: #C07484;

    --gender-enby: #7351A1;
    --gender-enby-soft: #5E4384;
    --gender-enby-glow: #8B6CC0;

    --rarity-common-primary:    #B8B8B8;
    --rarity-common-bg:         #2E2E2E;
    --rarity-common-glow:       #D2D2D2;

    --rarity-feral-primary:     #FF9E3D;
    --rarity-feral-bg:          #3A2414;
    --rarity-feral-glow:        #FFB769;

    --rarity-lunar-primary:     #7BCBFF;
    --rarity-lunar-bg:          #1A2A3A;
    --rarity-lunar-glow:        #B6E6FF;

    /* Hall of Fame Medals */
    --hof-gold: #C9A24D;
    --hof-gold-soft: #A8863E;
    --hof-gold-glow: #E1BF6B;

    --hof-silver: #B2B4B6;
    --hof-silver-soft: #8E9092;
    --hof-silver-glow: #D0D3D6;

    --hof-bronze: #9C6238;
    --hof-bronze-soft: #7A4C2C;
    --hof-bronze-glow: #C98552;

    --rotgore: #5e716A;
}

html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--background);
    color: var(--bone);
    font-size: 15px;
    padding: 12px 12px 90px 12px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--obsidian);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-alpha);
    border-radius: 6px;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4, .title {
    font-family: "Selincah", sans-serif;
    font-weight: 700;
}

a {
    color: var(--link);
    text-decoration: none;
    transition: 0.15s ease;
}

a:hover {
    color: var(--rage-glow);
    text-decoration: underline;
}

a:active {
    color: var(--dried-blood);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    background: var(--midnight-ember);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--bone);
    padding: 10px 12px;
    font-size: 15px;
    transition: 0.15s ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ap-glow);
    outline: none;
    box-shadow: 0 0 0 2px rgba(158, 27, 27, 0.25);
}

textarea {
    resize: vertical;
}

blockquote {
    background: var(--glass-alpha);
    border-left: .3em solid var(--ap-glow);
    margin: .25em 0;
    padding: .5em .5em .5em .75em;
}

blockquote cite {
    border-bottom: 1px solid var(--card-border);
    display: block;
    font-size: 1em;
    font-weight: 700;
    margin: 0 -.5em .25em -.75em;
    padding: 0 .5em .15em .75em;
}

.table-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    background-color: var(--glass-alpha);
}

table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

th,
td {
    padding: 12px 8px;
    text-align: left;
}

thead {
    background-color: var(--bone);
}

th {
    color: var(--midnight-ember);
    font-family: "Selincah", serif;
    font-size: 1.15em;
    border-bottom: 2px solid var(--card-border);
}

tbody {
    border-radius: 10px;
}

tbody tr {
    border-bottom: 1px solid var(--card-border);
    transition: background-color 0.2s;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background-color: rgba(0,0,0,0.09);
}

ul {
    list-style: none;
    padding: 0;
}

.list li {
    border-bottom: 1px dashed var(--card-border);
    margin-bottom: 7px;
    padding-bottom: 4px;
}

p > img {
    display: inline;
}

fieldset {
    border: 1px solid var(--card-border);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

legend {
    color: var(--ash);
    font-variation-settings: "wght" 600;
}

img.emoji {
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
}

.button-primary {
    min-width: 45px;
    display: inline-block;
    background: var(--bone);
    padding: 8px 14px;
    border: 1px solid var(--ash);
    border-radius: 12px;
    font-family: "Selincah", sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--obsidian);
    text-align: center;
    cursor: pointer;
    transition: 0.15s ease;
    text-shadow: 0 2px 2px rgba(0,0,0,0.5);
}

.button-primary:hover:not(:disabled) {
    background: var(--ash);
}

.button-primary:active:not(:disabled) {
    background: var(--soot);
    color: var(--bone);
}

.button-primary:disabled {
    background: #2b2b2b;
	color: #777;
	border-color: #444;
	cursor: not-allowed;
	text-shadow: none;
	box-shadow: none;
}

.button-secondary {
    display: inline-block;
    background: var(--blood-ember);
    padding: 10px 16px;
    border: 1px solid var(--dried-blood);
    border-radius: 12px;
    font-family: "Selincah", sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--bone);
    cursor: pointer;
    transition: 0.15s ease;
    text-shadow: 0 2px 2px rgba(0,0,0,0.8);
    box-shadow: inset 0 0 5px rgba(255,0,0,0.2), 0 0 5px rgba(0,0,0,0.4);
}

.button-secondary:hover {
    background: var(--rage-glow);
    border-color: var(--blood-ember);
}

.button-secondary:active {
    background: var(--dried-blood);
}

.button-secondary:disabled {
    background: #2b2b2b;
	color: #777;
	border-color: #444;
	cursor: not-allowed;
	text-shadow: none;
	box-shadow: none;
}

.button-accept {
	background: #1f4d1f;
	border-color: #3a863a;
    color: var(--bone);
}

.button-accept:hover:not(:disabled) {
	background: #3a863a;
	box-shadow: inset 0 0 6px rgba(0,255,0,0.3), 0 0 6px rgba(0,0,0,0.6);
}

.button-cancel {
	background: #3a0b0b;
	border-color: #a02020;
    color: var(--bone);
}

.button-cancel:hover:not(:disabled) {
	background: #a02020;
	box-shadow: inset 0 0 6px rgba(255,0,0,0.3), 0 0 6px rgba(0,0,0,0.6);
}

.button-accept:disabled {
    background: #1f4d1f;   /* Keep accept green */
    border-color: #3a863a;
    color: #aaa;
    cursor: not-allowed;
    text-shadow: none;
    box-shadow: none;
}

.button-cancel:disabled {
    background: #3a0b0b;   /* Keep cancel red */
    border-color: #a02020;
    color: #aaa;
    cursor: not-allowed;
    text-shadow: none;
    box-shadow: none;
}

.button-ghost {
    background: transparent;
    color: var(--ash);
    padding: 8px 10px;
    border: none;
    cursor: pointer;
    transition: 0.15s ease;
}

.button-ghost:hover {
    color: var(--bone);
}

.button-primary-small {
    border-radius: 8px;
	font-size: 15px;
	padding: 6px 10px;
	line-height: 1.3;
	min-height: 15px;
	flex: 0 0 auto;
}

.w-form {
    display: flex;
	flex-direction: column;
	gap: 15px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-value {
    font-weight: bold;
    color: var(--blood-ember);
    min-width: 20px;
    text-align: center;
}

input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #444;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: var(--rage-red);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #300;
    box-shadow: 0 0 6px var(--rage-glow);
    transition: 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--rage-glow);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.9em;
}

.checkbox-container input {
    accent-color: var(--ap-glow);
    width: 1.1em;
    height: 1.1em;
}

.bonechips {
    color: var(--currency-bonechips) !important;
}

.stamina {
    color: var(--stamina-green) !important;
}

.satiation {
    color: var(--satiation-ochre) !important;
}

.vitality {
    color: var(--vitality-bone) !important;
}

.rage {
    color: var(--rage-red) !important;
}

.moonshards {
    color: var(--currency-moonshards) !important;
}

.moontokens {
    color: var(--currency-moontokens) !important;
}

.glory {
    color: var(--glory) !important;
}

.level {
    color: var(--level-cyan) !important;
}

.ap {
    color: var(--ap) !important;
}

.male {
    color: var(--gender-male) !important;
}

.female {
    color: var(--gender-female) !important;
}

.enby {
    color: var(--gender-enby) !important;
}

.bone {
    color: var(--bone) !important;
}

.ash {
    color: var(--ash) !important;
}

.soot {
    color: var(--soot) !important;
}

.gold {
    color: var(--hof-gold) !important;
}

.silver {
    color: var(--hof-silver) !important;
}

.bronze {
    color: var(--hof-bronze) !important;
}

.rotgore {
    color: var(--rotgore) !important;
}

.center {
    text-align: center;
}

.text-right { 
    text-align: right; 
}

.justify {
    text-align: justify;
}

.b, strong {
    font-weight: bold;
    font-variation-settings: "wght" 700;
}

.i, i, em {
    font-style: italic;
}

.small {
    font-size: 13px;
}

.upper {
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.not-active {
    opacity: 0.5;
    pointer-events: none;
}

.green-bg {
    background: var(--card-bg-green) !important;
    border: 1px solid var(--card-border-green) !important;
}

.red-bg {
    background: var(--card-bg-red) !important;
    border: 1px solid var(--card-border-red) !important;
}

.Common {
    color: var(--rarity-common-primary);
}

.Feral {
    color: var(--rarity-feral-primary);
}

.Lunar-Marked {
    color: var(--rarity-lunar-primary);
}

.w-text p {
	font-size: 14px;                             
	text-align: justify;         
	color: var(--ash);               
}

.w-text > p:first-of-type::first-letter { 
	float: left;
	font-size: 35px;
    font-family: 'Selincah', serif;
    font-weight: 900;
	color: var(--ap-glow);
	line-height: 1;
	padding-right: 0.3em;
	padding-top: 0.1em;
}

.w-story-box {
	background: var(--glass-alpha);
	border: 1px solid var(--card-border);
	padding: 20px;
	border-radius: 0.5em;
	margin: 20px auto;
	box-shadow: var(--card-shadow);
	position: relative;
	z-index: 1;
}

.w-story-box::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/scratches-two.svg') no-repeat top right;
	background-size: 100px;
	opacity: 0.15;
	pointer-events: none;
	z-index: 0;
}

.sidenav {
    position: fixed;
    top: 0;
    left: -250px; 
    width: 250px;
    height: 100%;
    background: var(--obsidian);
    border-right: 1px solid #000;
    padding-top: 30px;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 5;
}

.sidenav a {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    color: var(--ash);
    font-weight: bold;
    transition: background 0.2s;
}

.sidenav a .w-icon {
    color: var(--soot);
    text-align: center;
    font-size: 28px;
    margin-right: 12px;
}

.sidenav a:hover {
    background: rgba(0, 0, 0, 0.2);
}

.sidenav.active {
    left: 0;
}

.clock-container {
    text-align: center;
    color: var(--ash);
    padding: 10px;
    border-top: 1px solid #222;
}

.clock-time {
    font-weight: bold;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 4;
}

.overlay.active {
    display: block;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap:12px;
}

.container.front {
    width: 100%;
    display: block;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.menu-btn, .icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    color: var(--bone);
    border-radius: 10px;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    cursor: pointer;
}

.menu-btn {
    width: 60px;
    height: 60px;
}

.icon-btn {
    width: 40px;
    height: 40px;
}

.menu-btn .w-icon {
    width: 32px;
    height: 32px;
}

.icon-btn .w-icon {
    width: 22px;
    height: 22px;
}

.badge-container {
    position: relative;
}

.icon-btn .badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--blood-ember);
    font-size: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    margin-top: 0px;
}

.top-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.events-group {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
}

.events-dropdown-btn,
.events-dropdown {
    display: none;
}

.brand {
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.brand .mark {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand .mark .w-icon {
    width: 36px;
    height: 36px;
}

.brand h1 {
    font-family: "Selincah", sans-serif;
    font-size: 30px;   
    letter-spacing: 1px;
    color: var(--bone);
}

.brand p {
    font-size: 10px;
    color: var(--ash);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -5px;
}

main.main {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-top: 5px;
}

main.front {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    margin: 50px auto;
}

section.content {
    flex-grow: 1;
    min-height: 40vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

aside.status {
    position: relative;
    flex: 0 0 25%; 
    display: flex;
    flex-direction: column;       
    gap: 14px;
    padding: 8px;  
}

.bars {
    display: flex;
    flex-direction: column;       
    gap: 12px;
    width: 100%;                 
}

.bar-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bar-row .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bar-row .stat label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--ash);
    letter-spacing: 1px;
}

.bar-row .stat span:not(.w-icon) {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--soot);
    letter-spacing: 1px;
}

.bar-row .stat .w-icon {
    width: 16px;
    height: 16px;
}

.bar {
    height: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
    overflow: hidden;
}

.bar .fill {
    height:100%;
    width: 40%;
    transition: width .35s ease;
    background: linear-gradient(90deg, var(--silvermoon), rgba(255,255,255,0.08));
}

.bar .fill.stamina {
    background: linear-gradient(90deg,var(--stamina-green), rgba(255,255,255,0.06));
}

.bar .fill.satiation {
    background: linear-gradient(90deg,var(--satiation-ochre), rgba(255,255,255,0.06));
}

.bar .fill.vitality {
    background: linear-gradient(90deg,var(--vitality-bone), rgba(255,255,255,0.06));
}

.bar .fill.rage {
    background: linear-gradient(90deg,var(--rage-red), rgba(255,255,255,0.06));
}

.bar .fill.glory {
    background: linear-gradient(90deg,var(--glory), rgba(255,255,255,0.06));
}

.status-clock {   
    position: absolute;
    bottom: -26px;
    left: 8px;
    right: 8px;
    text-align: center;
    font-size: 12px;
    color: var(--soot);
    padding-top: 10px;
    letter-spacing: 0.5px;
}

.tokens {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.token {
    flex: 45%;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 10px;
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    font-weight: 600;
    font-size: 11px;
}

a.token:hover {
    text-decoration: none !important;
}

.token .w-icon {
    width: 16px;
    height: 16px;
}

.token-data {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.token-data a:hover {
    color:rgba(213,210,202,0.7);
}

.token-data small {
    color:rgba(213,210,202,0.7);
}

.content-top {
    display: flex;
    justify-content: space-between;
    align-items:center;
    margin-bottom: 10px;
}

.content-top a.moon-status {
    font-size: 13px;
    /* color:rgba(213,210,202,0.6); */
    color: var(--soot);
    text-align: right;
}

.content-top a.moon-status:hover {
    color: var(--bone);
}

.nav-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1000px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-bottom: none;
    border-radius: 14px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: var(--card-shadow);
    padding: 5px 0;
    margin: 0px auto;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    justify-content: center;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.nav {
    display: grid;
    grid-auto-flow: column;
    gap: 20px;
    padding: 0;
    min-width: max-content; 
    z-index: 2;
}

.nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 60px;
    background: none;
    color: var(--bone);
    text-decoration: none;
    font-size: 22px;
    border-radius: 8px;
    transition: background 0.3s;
    padding: 5px;
}

.nav a:hover {
    animation: bounce 0.3s ease-in-out;
}

.nav a span:not(.w-icon) {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav a .w-icon {
    width: 30px;
    height: 30px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.arrow {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 24px;
    padding: 0;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 4;
}

#leftArrow {
    left: 5px;
}

#rightArrow {
    right: 5px;
}

.nav-wrapper:hover .arrow {
    display: block;
}

.panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: var(--card-shadow); 
}

.panel.panel-scratches {
    position: relative;
    z-index: 1;
}

.panel.panel-scratches::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/scratches-two.svg') no-repeat top right;
	background-size: 100px;
	opacity: 0.25;
	pointer-events: none;
	z-index: -1;
}

.separator {
    height: 0px;
    margin: 10px 15px;
    border-right: none;
    border-left: none;
}

.separator.black {
    border-top: 1px solid #000;
    border-bottom: 1px solid #222;
}

.alert {
	width: 100%;
	padding: 12px;
	border: 2px solid;
	border-radius: 6px;
	background-color: #000;
	color: #eee;
	min-height: 48px;
    display: flex;
	align-items: flex-start;
    gap: 10px;
}

.alert strong {
	font-family: "Selincah", sans-serif;
	font-weight: 600;
	font-style: normal;
}

.alert-icon {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	filter: brightness(1.2);
}

.alert-content {
	flex: 1;
}

.alert-success {
	border-color: #2e8b57;
	background-color: #1f3b2d;
	color: #d2f4de;
}

.alert-success .alert-icon {
	color: #2e8b57;
}

.alert-failure {
	border-color: #cc7722;
	background-color: #3b2c1f;
	color: #ffe6c4;
}

.alert-failure .alert-icon {
	color: #cc7722;
}

.alert-critical {
	border-color: #a40000;
	background-color: #2a0000;
	color: #f9d2d2;
}

.alert-critical a {
    color: #f9d2d2;
    text-shadow: none;
}

.alert-critical .alert-icon {
	color: #a40000;
}

.alert-info {
	border-color: #4169e1;     
	background-color: #1c2238;    
	color: #d6e3ff;               
}

.alert-info a {
    color: #4169e1;
    text-shadow: none;
}

.alert-info .alert-icon {
	color: #4169e1;
}

.card-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.card-container.single {
    grid-template-columns: 2fr;
}

.card {
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--card-shadow);
}

.card.alt {
    background: var(--card-bg);
}

.card.referral {
    border: 5px dashed var(--card-border);
    font-size: 13px;
    text-align: center;
    color: var(--ash);
    font-variation-settings: "wght" 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.card.referral button {
    background-color: var(--bone);
    color: var(--obsidian);
    border: 1px solid var(--ash);
    border-radius: 6px;
    padding: 2px 5px;
    cursor: pointer;
}

.card.referral button:hover {
    background-color: var(--ash);
    border: 1px solid var(--soot);
}

.card input[type="text"],
.card input[type="password"],
.card input[type="email"],
.card input[type="number"],
.card select,
.card textarea {
    background-color: rgba(255,255,255,0.04);
}

.mo-card.selectable-card,
.card.selectable-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.mo-card.selectable-card:hover,
.card.selectable-card:hover {
    transform: scale(1.02);
}

.mo-card.selectable-card.selected,
.card.selectable-card.selected {
    border-color: var(--blood-ember);
    box-shadow: 0 0 10px var(--rage-glow);
}

.card.card-power {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.card.card-power.locked {
    opacity: 0.5;
    pointer-events: none;
}

.card.card-task {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.card.card-task h2 {
    color: var(--ap-glow);
}

.card.card-task p {
    color: var(--ash);
}

.card-title {
    font-family: "Inter";
    font-size: 14px;
    font-weight: bold;
    color: var(--bone);
    margin: 0 0 6px 0;
}

.card.simple {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.card.card-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.card.card-fancy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.card.card-fancy .card-icon .w-icon,
.card.card-power .card-icon .w-icon  {
    width: 32px;
    height: 32px;
}

.card.card-task .card-icon .w-icon {
    width: 48px;
    height: 48px;
}

.card.card-fancy .card-content {
    flex: 1;
}

.card.card-power .card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card.card-task .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card.card-power .card-action {
    flex: 0 0 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.card.vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.card.wolf-head {
    position: relative;
    z-index: 1;
}

.card.wolf-head::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/wolf-head.svg') no-repeat top right;
	background-size: 80px;
	opacity: 0.25;
	pointer-events: none;
	z-index: -1;
}

.card.chips {
    position: relative;
    z-index: 1;
}

.card.chips::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/bone-chips.svg') no-repeat top right;
	background-size: 60px;
	opacity: 0.25;
	pointer-events: none;
	z-index: -1;
}

.card.scratches {
    position: relative;
    z-index: 1;
}

.card.scratches::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/scratches-two.svg') no-repeat top right;
	background-size: 80px;
	opacity: 0.25;
	pointer-events: none;
	z-index: -1;
}

.card.claw {
    position: relative;
    z-index: 1;
}

.card.claw::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/claw.svg') no-repeat top right;
	background-size: 60px;
	opacity: 0.25;
	pointer-events: none;
	z-index: -1;
}

.card.rage {
    position: relative;
    z-index: 1;
}

.card.rage::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/scratches.svg') no-repeat top right;
	background-size: 80px;
	opacity: 0.15;
	pointer-events: none;
	z-index: -1;
}

.card.paw {
    position: relative;
    z-index: 1;
}

.card.paw::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/paw.svg') no-repeat top right;
	background-size: 60px;
	opacity: 0.25;
	pointer-events: none;
	z-index: -1;
}

.card.eggs {
    position: relative;
    z-index: 1;
}

.card.eggs::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/eggs.svg') no-repeat top right;
	background-size: 60px;
	opacity: 0.25;
	pointer-events: none;
	z-index: -1;
}

.card.crown {
    position: relative;
    z-index: 1;
}

.card.crown::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/crown.svg') no-repeat top right;
	background-size: 80px;
	opacity: 0.25;
	pointer-events: none;
	z-index: -1;
}

.mo-card {
    background: var(--glass-alpha);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px;
}

.mo-card.mo-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mo-card.mo-banner.promotion { 
    font-size: 13px;
    gap: 5px;
}

.mo-card.mo-banner.promotion .small {
    font-size: 11px;
}

.mo-card.mo-banner.promotion.green {
    background-color: #1f3b2d;
    border-color: #2e8b57;
	color: #d2f4de;
    box-shadow: 0 0 10px #1f3b2d;
}

.mo-card.mo-banner.promotion.orange {
    background-color: #3b2c1f;
    border-color: #cc7722;
	color: #ffe6c4;
    box-shadow: 0 0 10px #3b2c1f;
}

.mo-card.mo-banner.promotion.red {
    background-color: #2a0000;
    border-color: #a40000;
	color: #f9d2d2;
    box-shadow: 0 0 10px #2a0000;
}

.mo-card.mo-banner.promotion.blue {
    background-color: #1c2238;
    border-color: #4169e1;
	color: #d6e3ff;
    box-shadow: 0 0 10px #1c2238;
}

.mo-card.mo-banner.promotion.pink {
    background-color: #5B1F3A;
    border-color: #8E2E3B;
	color: #F2B8C6;
    box-shadow: 0 0 10px #5B1F3A;
}

.mo-card.mo-banner.promotion p {
    text-align: center;
}

.mo-card.mo-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.hof-form {
    display: flex;
    gap: 10px;
}

.stats-list {
    display: grid;
    gap: 8px;
}

.stat-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;       
}

.stat-item-simple {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;       
}

.stat-label {
    color: var(--ash); 
    font-size: 11px;
    text-transform: uppercase; 
    letter-spacing: 0.8px;
}

.stat-label-simple {
    color: var(--ash); 
    font-size: 11px;
}

.stat-label.hof,
.stat-label-simple.hof {
    font-size: 13px;
}

.stat-label.gold {
    color: var(--hof-gold);
}

.stat-label.silver {
    color: var(--hof-silver);
}

.stat-label.bronze {
    color: var(--hof-bronze);
}

.stat-label.hof .w-icon,
.stat-label-simple.hof .w-icon {
    width: 18px;
    height: 18px;
}

.val, a.val { 
    color: var(--bone); 
    font-size: 13px; 
    font-variation-settings: "wght" 800;
}

.val.simple, a.val.simple { 
    min-width: 50px;
    color: var(--bone); 
    font-size: 11px; 
    font-variation-settings: "wght" 600;
}

/* .details-list {

} */

.details-group {
    margin-top: 15px;
}

.detail-item {
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    padding: 8px;
}

.detail-item:last-child {
    border-bottom: none;
}

.event-entry time {
    display: block;
    font-size: 12px;
    color: var(--ash);
    margin-bottom: 4px;
}

.event-entry p {
    margin: 0;
    font-size: 15px;
}

.detail-item.rel-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rel-entry .rel-info {
    flex: 1;
}

.rel-entry .rel-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--ap-glow);
    cursor: pointer;
}

.rel-entry .rel-info input {
    width: 90%;
}

.rel-entry .rel-notes {
    font-style: italic;
    color: var(--ash);
    font-size: 13px;
}

.rel-entry .rel-actions {
    display: flex;
    gap: 7px;
}

.rel-entry .rel-actions .button-primary {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rel-entry .rel-actions .button-primary .w-icon {
    width: 24px;
    height: 24px;
}

.counts { 
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.count { 
    flex: 1;   
    background: var(--glass-alpha);
    border: 1px solid var(--card-border); 
    border-radius: 8px; 
    padding: 8px 10px; 
}

.count .k { 
    color: var(--ash); 
    font-size: 11px; 
    text-transform: uppercase;
}

.count .v { 
    color: var(--bone);
    font-variation-settings: "wght" 700;
    font-size: 14px;
}

.profile-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

section.profile {
    display: grid;
    grid-template-columns: 315px 1fr;
    gap: 15px;
}

.profile-column {
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.avatar {
    width: 291px;
    height: 291px;
    flex: 0 0 291px;
    border: 2px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.avatar img { 
    width: 100%;
    height: 100%; 
    object-fit: cover;
    display: block;
}

.name-block  {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.icons-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-id { 
    background: rgba(255,255,255,0.02);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    font-weight: 700;
    font-size: 13px;
    color: var(--ash);
}

.status-dot { 
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
}
.online { background: var(--stamina-green); box-shadow: 0 4px 12px rgba(122,159,84,0.08); }
.offline { background: #3a3535; opacity: 0.7; }

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-actions .button-primary {
    font-size: 15px;
    padding: 3px 9px;
}

.profile-signature {
    padding: 8px 0px 15px 0px;
}

.profile-title {
    text-align: center;
    padding-bottom: 8px;
}

.signature-content {
    min-height: 50px;
    background: var(--glass-alpha);
    padding: 10px;
    word-break: break-all;
    overflow: hidden;
}

.w-tag {
    min-width: 20px;
    min-height: 24px;
    background: #3a2929;
    color: #a0988c;
    padding: 3px 5px;
    border: 1px solid #1c1c1c;
    border-radius: 4px;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
}

.w-tag-large {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 13px;
}

.w-tag-stamina {
    background-color: #4e6537;
    border-color: #647f46;
    color: #cdeba0;        
}

.w-tag-satiation {
    background-color: #704e19;
    border-color: #876427;
    color: #e8ba6b;         
}

.w-tag-vitality {
    background-color: #9d968c;
    border-color: #bcb5ab;
    color: #eee7dc;        
}

.w-tag-rage {
    background-color: #6a1212;
    border-color: #851717;
    color: #ed6666;       
}

.w-tag-glory {
    background-color: #2f4256;
    border-color: #3e556d;
    color: #a8caf0;        
}

.w-tag-bonechips {
    background-color: #8a6e34;
    border-color: #a28545;
    color: #ebd8a9;       
}

.w-tag-moonshards {
    background-color: #593985;
    border-color: #724fa5;
    color: #a784d6;     
}

.w-tag-level {
    background-color: #1a6f71;
    border-color: #239093;
    color: #71ecf0;     
}

.w-tag-attributepoints {
    background-color: #7b4b28;
    border-color: #965b32;
    color: #cf8a57;     
}

.w-tag-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.fight-back-button {
    text-align: center;
    margin-bottom: 25px;
}

.fight-header {
    text-align: center;
    font-style: italic;
    font-size: 16px;
    color: var(--bone);
    margin-bottom: 15px;
}

.fight-vs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.fight-vs .fighter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fight-vs .fighter img {
    width: 130px;
    height: 130px;
    border: 2px solid var(--card-border);
    object-fit: cover;
    position: relative;
    z-index: 2;
    opacity: 1;
}

.fight-vs .fighter-name {
    margin-top: 7px;
    font-size: 15px;
    text-align: center;
}

.fight-vs .vs-text {
    font-family: "Selincah";
    font-size: 35px;
    color: var(--bone);
}

.fight-result {
    font-size: 40px;
    text-align: center;
    font-family: "Selincah";
    margin: 0.5em 0;
}

.fight-result.win,
.success {
    color: #8f8;
    text-shadow: 0 0 10px #6f6;
}

.fight-result.defeat,
.cancel {
    color: #d80;
    text-shadow: 0 0 10px #d80;
}

.fight-result.draw {
    color: #ffeb7f;
    text-shadow: 0 0 10px #ffd700;
}

.fight-summary {
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    padding: 0.75em 1em;
    margin: 1em auto;
    border-radius: 6px;
    color: var(--ash);
    font-size: 14px;
    text-align: center;
}

.fight-reward {
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    padding: 0.75em 1em;
    margin: 1em auto;
    border-radius: 6px;
    font-size: 1.1em;
    text-align: center;
}

.fight-log-wrapper {
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    height: 300px;
    margin-top: 1.5em;   
    padding: 15px;
}

.fight-log-container {
    background: var(--obsidian);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    height: 268px;
    padding: 0px 3px;
    overflow-y: auto;
}

.fight-log {   
    background-color: var(--card-bg);
    padding: 5px 10px;
    border-left: 4px solid #444;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fight-log .w-icon {
    min-width: 17px;
    height: 17px;
}

.fight-log.hit {
    border-left-color: #4f4;
    background-color: rgba(0, 128, 0, 0.1);
    color: #cfc;
}

.fight-log.miss {
    border-left-color: #c22;
    background-color: rgba(128, 0, 0, 0.1);
    color: #fbb;
}

.fight-log.power {
    border-left-color: #724fa5;
    background-color: rgba(89, 57, 133, 0.1);
    color: #a784d6;
}

.fight-log.effect {
    border-left-color: #3e556d;
    background-color: rgba(0, 0, 128, 0.1);
    color: #a8caf0;
}

.w-alert {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9997;
    backdrop-filter: blur(2px);
}

.w-alert.hidden {
    display: none;
}

.w-alert-box {
    padding: 20px;
    border: 2px solid;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 9999;
    transition: transform 0.5s, opacity 0.3s;
}

.w-alert-icon {
    font-size: 30px;
    margin-bottom: 7px;
}

.w-alert-title {
    font-size: 20px;
    margin: 7px 0;
}

.w-alert-message {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.w-alert-button {
    border: none;
    padding: 8px 15px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.w-alert-button:hover {
    background-color: #b00;
}

.inventory-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 0px 5px;
}

.inventory-item {
    padding: 4px;
    transition: 0.2s;
    border-bottom: 1px solid var(--card-border); 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inventory-item:hover {
    background: rgba(158, 27, 27, 0.02);
    border-radius: 5px;
}

.inventory-item.hidden {
    display: none;
}

.inventory-item-name {
    font-size: 13px;
    font-variation-settings: "wght" 600;
    cursor: pointer;
}

.inventory-item-name.break {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.inventory-item-buttons {
    display: flex;
    gap: 3px;
    align-items: center;
    justify-content: space-between;
}

.inventory-item-buttons .buy-item-form {
    display: flex;
    gap: 3px;
    align-items: center;
}

.buy-item-form input[type="number"] {
	width: 70px;
    min-height: 30px;
	padding: 0.3em;
    background: var(--glass-alpha);
    color: var(--bone);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.buy-item-form input[type="number"]:focus {
    border-color: var(--ap-glow);
	outline: none;
}

.inventory-item-use-btn {
    min-width: 30px;
    min-height: 30px;
    background: #e4dfd7; /* bone */
    border: 1px solid #b7b1a7; /* aged bone */
    border-radius: 4px;
    color: #2a2a2a; /* charcoal text */
    font-size: 16px;
    padding: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    box-shadow: 
        inset 0 0 5px rgba(255,255,255,0.4), /* inner highlight */
        0 0 5px rgba(0,0,0,0.25); /* outer shadow */
    display: flex;
    align-items: center;
    justify-content: center;
}

.inventory-item-use-btn:hover {
    background: #d8d2c8; /* darker bone */
    box-shadow: 
        inset 0 0 6px rgba(255,255,255,0.5),
        0 0 6px rgba(0,0,0,0.35);
}

#item-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background-color: var(--obsidian);
    box-shadow: -4px 0 10px rgba(0,0,0,0.5);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 3;
    overflow-y: auto;
    padding: 1.5em;
    border-left: 2px solid var(--card-border);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

#item-panel.open {
    transform: translateX(0);
    opacity: 1;
}

.panel-content {
    position: relative;
    padding-top: 40px;
}

.panel-content .separator {
    margin: 20px 15px;
}

#close-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.5em;
    font-weight: bold;
    padding: 0.2em 0.6em;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 4;
}

#close-panel:hover {
    color: #444;
}

.itempanel-header {
    font-size: 23px;
    font-family: "Selincah";
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.itempanel-section {
    font-size: 14px;
    margin-bottom: 8px;
}

.itempanel-section:last-child {
    margin-bottom: 0px;
}

.itempanel-label {
    font-variation-settings: "wght" 600;
    color: var(--ash);
}

.itempanel-label.Lunar-Marked {
    color: var(--rarity-lunar-primary);
}

.equipped-text {
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    color: var(--soot);
}

.itempanel-set {
    background-color: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 8px;
}

.itempanel-attributes {
    background-color: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 8px;
}

.itempanel-description {
    background-color: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--soot);
    font-style: italic;
    padding: 8px;
    text-align: justify;
}

.hunt-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hunt-action-card {
    background: var(--glass-alpha);
	border: 1px solid var(--card-border);
    border-radius: 6px;
    overflow: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
    transition: box-shadow 0.2s;
}

.hunt-action-card:hover {
    box-shadow: 0 0 10px var(--rage-red);
}

.hunt-action-card.locked {
    opacity: 0.5;
    pointer-events: none;
}

.hunt-action-header {
    width: 100%;
    text-align: left;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.hunt-action-header:has(~ .hunt-button-container.open) {
    border-bottom: 1px solid var(--card-border);
}

.hunt-action-header:has(~ .hunt-content.open) {
    border-bottom: 1px solid var(--card-border);
}

.hunt-main {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.hunt-type-name {
    font-size: 15px;
    font-weight: bold;
    color: var(--ash);
}

.hunt-content {
    display: none;
    padding: 10px;
}

.hunt-content.open {
    display: block;
}

.hunt-button-container {
    display: none;
    width: 100%;
    padding: 10px;
    justify-content: center;
    align-items: center;
}

.hunt-button-container.open {
    display: flex;
}

.proposal-message {
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    margin: 25px 0px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--card-border);
}

.proposal-vow {
    font-size: 15px;
    margin-bottom: 25px;
    color: var(--rarity-feral-glow);
}

.accept-button {
    background: var(--rage-red);
    color: #fff;
    border: 1px solid var(--rage-glow);
    font-family: "Selincah", sans-serif;
    font-size: 18px;
    padding: 15px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-bottom: 15px;
}

.accept-button:hover {
    background: var(--rage-glow);
}

.reject-button {
    background: none;
    color: #999;
    font-size: 0.95em;
    text-decoration: underline;
    border: none;
    cursor: pointer;
}

.reject-button:hover {
    color: #c66;
}

.marriage-couple {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 20px;
}

.proposal-box {
    background: var(--glass-alpha);
    border-left: 4px solid var(--card-border);
    padding: 10px;
    margin-bottom: 20px;
    font-style: italic;
}

.proposal-date {
    font-size: 0.85em;
    color: var(--soot);
    margin-top: 0.5em;
    text-align: right;
}

.marriage-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.love-howl-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.financial-section {
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.financial-header {
    font-size: 18px;
    font-family: "Selincah", serif;
    text-align: center;
    margin-bottom: 10px;
    color: var(--ap-glow);
}

.currency-balances {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.transfer-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-items: center;
    justify-content: center;
}

.transfer-controls input[type="number"] {
    width: 130px;
    padding: 0.4em;
    border-radius: 4px;
}

.message-header {
    margin: 20px 0px;
}

.sender-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 7px;
}

.sender-info a.back-button {
    flex: 1;
    text-align: right;
    font-size: 14px;
}

.sender-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
}

.sender-name {
    font-weight: bold;
    font-size: 16px;
    color: var(--ap-glow);
    cursor: pointer;
}

.sent-date {
    font-size: 13px;
    color: var(--soot);
}

.message-subject {
    font-style: italic;
    color: var(--ash);
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid var(--card-border);
}

.message-body {
    line-height: 1.6;
    margin: 20px 0;
    font-size: 15px;
}

.message-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.msg-back {
    font-size: 14px;
}

.scars-container {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scar-group {
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 10px;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 1;
}

.scar-group::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/scar.svg') no-repeat top right;
	background-size: 80px;
	opacity: 0.15;
	pointer-events: none;
	z-index: 0;
}

.scar-group h3 {
    color: var(--ap-glow);
    margin-bottom: 8px;
}

.scars {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.scar {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scar span:not(.w-icon) {
    font-variation-settings: "wght" 600;
}

.scar-btn {
    padding: 6px 8px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Selincah", sans-serif;
}

.claim-btn {
    background: #4e6537;
    color: #cdeba0;
}

.claim-btn:hover {
    filter: brightness(1.15);
}

.claimed-btn {
    background: var(--dried-blood);
    color: var(--bone);
    cursor: default;
}

.locked-btn {
    background: var(--obsidian);
    color: var(--soot);
    cursor: not-allowed;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 5px;
}

.tab {
    background: var(--glass-alpha);
    color: var(--ash);
    font-size: 14px;
    text-decoration: none;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 8px 16px;
    transition: 0.25s ease;
}

.tab:hover {
    color: var(--ap);
    border-color: var(--ap);
    text-decoration: none;
}

.tab.active {
    border-color: var(--ap);
    color: var(--ap);
    box-shadow: 0 0 6px rgba(219, 154, 102, 0.4);
}

.tasks-list {
    display: grid;
    grid-template-columns: 1fr; /* Default: Single column */
    gap: 10px;
    margin-top: 20px;
}

.task-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px 5px;
    padding: 5px 0px 10px 0px;
    border-bottom: 2px solid var(--card-border);
}

.task-group:last-child {
    border-bottom: none;
}

.task-group-name {
    width: 30%;
}

.task-group-name h4 {
    color: var(--satiation-ochre);
}

.task-group-name p {
    font-size: 0.85em;
}

.task-group-claims {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.task-claim {
    min-width: 75px;
    text-align: center;
}

.login-week {
    display: flex;
    gap: 4px;
    margin: 25px 0px;
}

.login-day {
    flex: 14%;
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 4px;
    text-align: center;
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-day.today {
    border: 1px solid var(--ap-glow);
}

.explore-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.explore-section h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: var(--ap-glow);
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 4px;
    letter-spacing: 1px;
}

.explore-link {
    
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 5px;
    padding: 10px;
    margin: 6px 0;
    font-size: 14px;
    text-decoration: none;
    color: var(--ash);
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.explore-link:hover {
    color: var(--bone);
    border-color: var(--ap-glow);
    text-decoration: none;
}

.explore-link .w-icon {
    width: 20px;
    height: 20px;
}

.pack-view-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.pack-header-apply {
    margin-top: 18px;
}

.pack-view-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--bone);
    border: 1px solid var(--ash);
    border-radius: 8px;  
    margin-top: 0.2em;
    color: var(--background);
    font-size: 30px;
    transition: all 0.2s ease;
	text-shadow: 0 1px 2px rgba(0,0,0,0.7);
	box-shadow: inset 0 0 5px rgba(0,0,0,0.5), 0 0 5px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-view-icon .w-icon {
    width: 60px;
    height: 60px;
}

.pack-view-info {
    flex: 1;
}

h1.pack-view-name {
    color: var(--ap-glow);
    text-align: left;
    font-size: 30px;
    margin: 0;
}

.pack-view-meta {
    font-size: 0.95em;
    color: var(--ash);
    margin-top: 0.4em;
}

.pack-apply-link {
    display: block;
    margin: 15px 0px;
}

.pack-apply-form {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.pack-status {
    font-weight: bold;
    padding: 0.15em 0.5em;
    border-radius: 5px;
    font-size: 0.9em;
    margin-left: 0.3em;
}

.pack-status.open {
    background-color: #204020;
    color: #8f8;
    border: 1px solid #4f4;
}

.pack-status.closed {
    background-color: #402800;
    color: #ffa500;
    border: 1px solid #cc8400;
}

.pack-status.permanently {
    background-color: #6a1212;
    border-color: #851717;
    color: #ed6666;  
}

.pack-view-description {
    margin-top: 2em;
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.2em;
    font-size: 1em;
    line-height: 1.6;
    color: var(--ash);
    white-space: pre-wrap;
}

.pack-application-card {  
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 10px;
    margin: 15px 0;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.pack-app-header {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #f0e6e6;
}

.pack-app-text {
    font-size: 0.95em;
    color: #ddd;
    margin-bottom: 0.8em;
    font-style: italic;
}

.pack-app-actions {
    display: flex;
    gap: 0.6em;
}

.pack-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.pack-tabs a {
    width: 50px;
    height: 50px;
	color: var(--midnight-ember);
	background: var(--bone);
	border: 1px solid var(--soot);
	border-radius: 8px;
	cursor: pointer;
    white-space: nowrap;
	transition: all 0.2s ease;
	text-shadow: 0 1px 2px rgba(0,0,0,0.7);
	box-shadow: inset 0 0 5px rgba(0,0,0,0.2), 0 0 5px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.pack-tabs a:hover,
.pack-tabs a.active {
	background: var(--ash);
    text-decoration: none;
}

.pack-tabs a:active {
	transform: scale(0.98);
}

.pack-tabs a:focus-visible {
	outline: 2px solid var(--ap-glow);
	outline-offset: 2px;
}

.pack-tabs a .w-icon {
    width: 25px;
    height: 25px;
}

.pack-tabs a .tab-title {
    font-size: 8px;
    text-transform: uppercase;
    text-align: center;
    margin-top: 4px; 
}

.mobile-pack-menu {
    display: none;
    background: var(--bone);
    color: var(--midnight-ember);
    padding: 0.8em;
    font-family: "Selincah";
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
}

.mobile-pack-dropdown {
    display: none;
    flex-direction: column;
    background: var(--bone);
    border-radius: 5px;
}

.mobile-pack-dropdown a {
    padding: 10px;
    color: var(--midnight-ember);
    text-decoration: none;
    text-align: center;
    border-bottom: 1px solid var(--soot);
}

.mobile-pack-dropdown a:last-child {
    border-bottom: none;
}

.mobile-pack-dropdown a:hover {
    background: var(--soot);
}

.pack-section,
.social-section {
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 1;
}

.pack-section::before,
.social-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/wolf-howl.svg') no-repeat top right;
	background-size: 80px;
	opacity: 0.25;
	pointer-events: none;
	z-index: 0;
}

.pack-section h2,
.social-section h2 {
    font-size: 18px;
    color: var(--ap-glow);
    margin-bottom: 0.8em;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.4em;
}

.pack-announcement {
    font-size: 0.9em;
    margin-bottom: 0.6em;
    border-bottom: 1px dashed var(--satiation-ochre);
    padding-bottom: 0.4em;
    color: var(--ash);
}

.pack-announcement time {
    font-size: 0.8em;
    color: var(--soot);
    display: block;
    margin-top: 0.2em;
}

.pack-event {
    padding: 0.6em 0.8em;
    border-left: 4px solid var(--ash);
    margin-bottom: 0.6em;
    font-size: 0.9em;
    border-radius: 4px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75em;
}

.pack-event > div {
    flex-grow: 1; 
}

.pack-event time {
    min-width: 60px;
    color: var(--soot);
    text-align: center;
}

.pack-event .w-icon {
    min-width: 18px;
    height: 18px;
}

.event-normal {
    border-color: var(--card-border);
    background-color: rgba(255,255,255,0.02);;
    color: var(--ash);
}

.event-success {
    border-color: #2f8f2f;
    background-color: #183118;
    color: #bfffbf;
}

.event-warning {
    border-color: #c9a300;
    background-color: #3a330f;
    color: #ffe08a;
}

.event-fail {
    border-color: #d57f1e;
    background-color: #3a250f;
    color: #ffd7a3;
}

.event-urgent {
    border-color: #a00;
    background-color: #3a0f0f;
    color: #ffb3b3;
}

.pack-challenge-entry {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--ash);
    text-align: center;
}

.pack-challenge-entry strong {
    color: var(--bone);
}

.pack-member-card {  
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 10px;
    margin: 15px 0;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pack-member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pack-member-name {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pack-member-rank-label {
    font-size: 0.95em;
    color: var(--ash);
    font-style: italic;
}

.pack-member-actions {
    display: flex;
    gap: 4px;
}

.pack-member-actions .button-primary {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.packs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--glass-alpha);
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.packs-table th,
.packs-table td {
    padding: 12px;
    text-align: left;
}

.packs-table thead {
    background-color: var(--bone);
}

.packs-table th {
    color: var(--midnight-ember);
    font-family: "Selincah", serif;
    font-size: 1.15em;
    border-bottom: 2px solid var(--card-border);
}

.packs-table tbody tr {
    border-bottom: 1px solid var(--card-border);
    transition: background-color 0.2s;
}

.packs-table tbody tr:hover {
    background-color: var();
}

.pack-link {
    font-variation-settings: "wght" 700;
}

.pack-link:hover {
    text-decoration: underline;
}

.dominance-number {
    color: var(--glory);
}

.members-number {
    color: var(--stamina-green);
}

.icon-grid-container {
    max-height: 300px;
    background: var(--glass-alpha); 
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0; 
    overflow-y: auto;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.icon-option {
    background-color: var(--bone);
    color: var(--midnight-ember);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: border 0.3s, background-color 0.3s;
}

.icon-option:hover {
    border-color: var(--ap-glow);
}

.icon-option.selected {
    border-color: var(--ap-glow);
    background-color: var(--ash);
}

.icon-option .w-icon {
    width: 40px;
    height: 40px;
}

.dominance-info {
    text-align: center;
    font-size: 18px;
    font-family: "Selincah", serif;
    font-weight: 600;
    margin: 25px 0;
}

.upgrades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.upgrade-card {
    background-color: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

.upgrade-header {
    font-size: 18px;
    font-family: "Selincah", serif;
    font-weight: 600;
    color: var(--ap-glow);
    margin-bottom: 5px;
}

.upgrade-description {
    min-height: 45px;
    font-size: 13px;
    color: var(--ash);
}

.level-squares {
    display: flex;
    gap: 5px;
    margin-bottom: 7px;
}

.square {
    width: 14px;
    height: 14px;
    background-color: var(--rarity-feral-bg);
    border: 1px solid var(--rarity-feral-primary);
}

.square.filled {
    background-color: var(--rarity-feral-primary);
}

.upgrade-level {
    font-size: 13px;
    color: var(--bone);
}

.upgrade-cost {
    font-size: 13px;
    color: var(--glory-glow);
}

.maxed-out {
    font-size: 13px;
    color: var(--ash);
    font-style: italic;  
}

.bounty-list {
    width: 100%;
    overflow: hidden;
}

.bounty-header {
    display: none;
    grid-template-columns: 1fr 2fr 1fr 2fr 1fr 1.2fr;
    align-items: center;
    border-bottom: 2px solid var(--card-border);
}

.bounty-header > div {
    font-variation-settings: "wght" 700;
    text-transform: uppercase;
    padding: 4px 6px;
}

.bounty-row {
    display: grid;
    grid-template-columns: 0.35fr 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 4px 6px;
    border-bottom: 1px dashed var(--card-border);
    transition: background-color 0.2s ease;
}

.bounty-row:hover {
    background: rgba(0, 0, 0, 0.1);
}

.bounty-row:last-child {
    border-bottom: none;
}

.bounty-cell {
    display: none;
    font-size: 14px;
}

.bounty-cell.reward,
.bounty-cell.target {
    display: block;
}

.bounty-cell.reward {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bounty-cell.target {
    font-size: 1.05em;
    font-variation-settings: "wght" 500;
}

.bounty-toggle {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.2s ease;
}

.bounty-toggle svg {
    width: 16px;
    height: 16px;
    color: var(--soot);
    transition: transform 0.3s ease;
}

.bounty-row.is-expanded .bounty-toggle {
    transform: rotate(180deg);
}

.bounty-details {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    padding: 4px 6px;
    border-top: 1px solid #222;
}

.bounty-row.is-expanded .bounty-details {
    display: grid;
}

.bounty-details-item {
    font-size: 0.95em;
}

.bounty-details-item::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 4px;
}

.notices-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.notice-post {
    break-inside: avoid;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--card-border);
}

.notice-post h3 {
    font-family: "Selincah", sans-serif;
    font-size: 16px;
    color: var(--ap-glow);
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.notice-post small {
    font-style: italic;
    font-size: 0.75em;
    color: var(--soot);
}

.notice-post p {
    font-size: 0.88em;
    color: var(--ash);
    margin: 5px 0 0 0;
}

.boards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.board-card {
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease;
    z-index: 3;
}

.board-card:hover {
    transform: translateY(-4px);
}

.board-title {
    font-family: "Selincah", serif;
    font-size: 18px;
    color: var(--ap-glow);
    margin-bottom: 7px;
    text-decoration: none;
    display: inline-block;
}

.board-title:hover {
    text-decoration: underline;
}

.board-description {
    font-size: 0.95em;
    color: var(--ash);
    margin-bottom: 1em;
}

.board-meta {
    font-size: 0.8em;
    color: var(--soot);
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.thread-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thread-row {
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--card-border);
    border-radius: 6px;
    padding: 15px;  
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;   
    transition: background 0.2s;
}

.thread-row.pinned {
    border-color: #c0a000;
    border-left-color: #c0a000;
    background-color: #251a00;
}

.thread-title {
    flex: 2;
    color: var(--ash);
    display: flex;
    flex-direction: column;
}

.thread-title a {
    font-size: 15px;
    text-decoration: none;
    font-weight: bold;
}

.thread-title a:hover {
    text-decoration: underline;
}

.thread-row.pinned .thread-title a {
    color: #ffb347;
}

.thread-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
 
    text-align: left; 
    color: var(--ash);
    font-size: 13px;
    margin-top: 0;
}

.post {
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 15px 20px;  
    margin-bottom: 15px;
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.post-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 3;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    padding-bottom: 0;
    z-index: 3;
}

.post-avatar {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    object-fit: cover;
    border: 2px solid var(--card-border);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
}

.author-id {
    color: var(--soot);
}

.post-date {
    font-size: 0.85em;
    color: var(--soot);
}

.post-body {
    font-size: 15px;
    color: var(--ash);
}

.post-footer {
    display: flex;
    justify-content:space-between;
    gap: 10px;
    margin-top: 15px;
}

.post-reaction-btns,
.post-action-btns {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.post-action-btns {
    justify-content: flex-start;
}

.post-btn {
    background: var(--bone);
    border: 1px solid var(--ash);
    padding: 0.3em 0.6em;
    color: var(--obsidian);
    font-size: 0.85em;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    transition: background 0.2s;
}

.post-btn:hover {
    background: var(--ash);
}

.post-btn:disabled {
    cursor: not-allowed;
}

.post-btn .w-icon {
    width: 14px;
    height: 14px;
}

.w-quote {
    position: relative;
}

.w-quote-content {
    max-height: 90px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.w-quote.expanded .w-quote-content {
    max-height: none;
}

.w-quote-toggle {
    display: block;
    margin-top: 0.5em;
    background: none;
    border: none;
    color: var(--ap-glow);
    cursor: pointer;
    font-size: 0.85em;
    text-align: left;
}

.w-quote-toggle:hover {
    color: var(--ap);
}

ul.help-topics-list {
    list-style: disc;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px 8px;
}

ul.help-topics-list li {
    list-style-position: inside;
    padding: 10px; 
    border-bottom: 1px dashed var(--card-border);
    transition: 0.2s;
}

.rules h2 {
    border-bottom: 1px solid var(--card-border);
    margin: 25px 0 15px 0;
    padding-bottom: 5px;
}

.rules p {
    font-size: 14px;
    color: var(--ash);
    text-align: justify;
    margin-bottom: 15px;
}

.game-settings-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.game-settings-field {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
}

.market-search {
    padding: 0.5rem;
}

.market-search__top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.market-search__sort {
    min-width: 0;
}

.market-search__submit,
.filter-toggle,
.load-more {
    background: var(--bone);
    border: 1px solid var(--ash);
    border-radius: 6px;
    font-family: "Selincah", sans-serif;
    color: var(--obsidian);
    padding: 6px;
    cursor: pointer;
    white-space: nowrap;
    text-shadow: 0 2px 2px rgba(0,0,0,0.5);
}

.market-filters,
.load-more {
    margin-top: 0.75em;
}

.pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.4em;
}

.pill {
    font-size: 0.8em;
    padding: 0.3em 0.5em;
    border: 1px solid var(--ash);
    border-radius: 999px;
    text-align: center;
    cursor: pointer;
}

.pill input {
    display: none;
}

.pill:has(input:checked) {
    border-color: var(--ap-glow);
    color: var(--ap-glow);
}

.level-range {
    display: flex;
    gap: 0.4em;
    align-items: center;
}

.level-range input {
    width: 100%;
    padding: 0.5em;
    border-radius: 8px;
    font-size: 13px;
}

.item-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 25px;
    justify-content: center;
}

.item-tab {
    min-width: 45px;
    min-height: 45px;
    background: #e4dfd7; /* bone */
    border: 1px solid #b7b1a7; /* aged bone */
    border-radius: 8px;
    color: var(--background); /* charcoal text */
    font-size: 26px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    box-shadow: 
        inset 0 0 5px rgba(255,255,255,0.6), /* inner highlight */
        0 0 5px rgba(0,0,0,0.25); /* outer shadow */
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-tab:hover,
.item-tab.active {
    background: #bbb4a8; /* darker bone */
    box-shadow: 
        inset 0 0 6px rgba(255,255,255,0.5),
        0 0 6px rgba(0,0,0,0.35);
}

.item-tab:active {
	transform: scale(0.98);
}

.item-tab:disabled {
    background: #2b2b2b;
	color: #777;
	border-color: #444;
	cursor: not-allowed;
	text-shadow: none;
	box-shadow: none;
}

.item-row {
    padding: 4px;
    transition: 0.2s;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.item-row:hover {
    background: rgba(158, 27, 27, 0.02);
    border-radius: 5px;
}

.item-row.hidden {
    display: none;
}

.item-row-name {
    flex-grow: 1;
    font-size: 13px;
    font-variation-settings: "wght" 600;
    cursor: pointer;
}

.item-row-name.break {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.item-row-actions {
    display: flex;
    align-items: center;
    gap: 3px;
}

.item-row-actions input[type="number"] {
    width: 70px;
    min-height: 30px;
	padding: 0.3em;
    background: var(--glass-alpha);
    color: var(--bone);
    font-size: 13px;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.item-row-actions button {
    min-width: 30px;
    min-height: 30px;
    background: #e4dfd7; /* bone */
    border: 1px solid #b7b1a7; /* aged bone */
    border-radius: 4px;
    color: #2a2a2a; /* charcoal text */
    font-size: 16px;
    padding: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    box-shadow: 
        inset 0 0 5px rgba(255,255,255,0.4), /* inner highlight */
        0 0 5px rgba(0,0,0,0.25); /* outer shadow */
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-row-actions button:hover {
    background: #d8d2c8; /* darker bone */
    box-shadow: 
        inset 0 0 6px rgba(255,255,255,0.5),
        0 0 6px rgba(0,0,0,0.35);
}

.moon-phases {
    background: var(--glass-alpha);
    width: 300px; 
    margin: 20px auto;
    padding: 15px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    display: flex; 
    flex-direction: column; 
    gap: 10px;
}

.boss-section {
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.boss-section #participants {
    width: 100%;
}

.boss-section #boss-countdown {
    font-family: "Selincah", sans-serif;
    font-size: 26px;
    text-align: center;
    color: #ffeb7f;
    text-shadow: 0 0 5px #ffd700;
}

.boss-section #boss-timer.urgent #boss-countdown {
    color: var(--rage-red);
    text-shadow: 0 0 5px var(--rage-glow);
    animation: pulse 1s infinite;
}

.boss-info h1 {
    text-align: center;
}

.boss-info p {
    color: var(--ash);
    font-size: 13px;
    text-align: center;
}

.boss-bar {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 36px;

    background: #2a0000;
    border: 3px solid #700000;
    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.5),
        inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.boss-bar-fill {
    position: relative;
    height: 100%;
    width: 100%;

    background: linear-gradient(
        to bottom,
        #ff3b3b,
        #a00000
    );

    transition: width 0.5s ease-out;

    overflow: hidden;
}

.boss-bar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.6) 50%,
        transparent 70%
    );

    animation: bossGlow 2.5s linear infinite;
}

@keyframes bossGlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.boss-bar.low-health {
    animation: pulseRed 1s ease-in-out infinite;
}

@keyframes pulseRed {
    0%, 100% {
        box-shadow:
        0 0 15px rgba(255,0,0,0.4),
        inset 0 0 15px rgba(0,0,0,0.8);
    }
    50% {
        box-shadow:
        0 0 35px rgba(255,0,0,0.9),
        inset 0 0 15px rgba(0,0,0,0.8);
    }
}

.map {
    width: 100%;
    display: grid;
    grid-template-areas:
        "northwest north northeast"
        "west center_region east"
        "southwest south southeast";
    gap: 10px;
}

.region {
    background: var(--card-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    padding: 15px;
}

.region.endless_winter {
    background-image: image-set(url('/static/images/endless_winter.jpg') 1x type('image/jpeg'));
}

.region.sundered_wilds {
    background-image: image-set(url('/static/images/sundered_wilds.jpg') 1x type('image/jpeg'));
}

.region.umbral_veil {
    background-image: image-set(url('/static/images/umbral_veil.jpg') 1x type('image/jpeg'));
}

.region.tempest_highlands {
    background-image: image-set(url('/static/images/tempest_highlands.jpg') 1x type('image/jpeg'));
}

.region.elderwood_expanse {
    background-image: image-set(url('/static/images/elderwood_expanse.jpg') 1x type('image/jpeg'));
}

.region.ashen_infernum {
    background-image: image-set(url('/static/images/ashen_infernum.jpg') 1x type('image/jpeg'));
}

.region.luminous_cataclysm {
    background-image: image-set(url('/static/images/luminous_cataclysm.jpg') 1x type('image/jpeg'));
}

.region.dreaming_vast {
    background-image: image-set(url('/static/images/dreaming_vast.jpg') 1x type('image/jpeg'));
}

.region.blightwomb {
    background-image: image-set(url('/static/images/blightwomb.jpg') 1x type('image/jpeg'));
}

.region h2 {
    font-size: 18px;
    color: var(--bone);
    text-shadow: 0 0 10px var(--obsidian);
    text-align: center;
    margin-bottom: 15px;
}

.toggle-territories-btn {
    margin-top: auto;
    padding: 4px 8px;
    background: var(--midnight-ember);
    border: 1px solid var(--card-border);
    color: var(--bone);
    cursor: pointer;
    border-radius: 6px;
}

.northwest { grid-area: northwest; }
.north { grid-area: north; }
.northeast { grid-area: northeast; }
.west { grid-area: west; }
.center_region { grid-area: center_region; }
.east { grid-area: east; }
.southwest { grid-area: southwest; }
.south { grid-area: south; }
.southeast { grid-area: southeast; }

.territories {
    display: grid;
    margin-top: auto;
    grid-template-columns: repeat(3, 40px);
    gap: 5px;
    justify-content: center;
}

.hex {
    width: 40px;
    height: 50px;
    background: var(--midnight-ember);
    color: var(--bone);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    clip-path: polygon(
    50% 0%,
    100% 25%,
    100% 75%,
    50% 100%,
    0% 75%,
    0% 25%
    );

    transition: transform 0.2s ease, background 0.2s ease;
}

.hex:hover {
    transform: scale(1.08);
}

.unclaimed {
    background: var(--obsidian);
}

.owned {
    background: var(--stamina-green);
}

.enemy {
    background: var(--ap);
}

.contested {
    background: var(--dried-blood);
}

.territory-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4;
    backdrop-filter: blur(2px);
}

.modal-content {
    max-width: 420px;
    width: 90%;
    background: var(--card-bg);
    color: var(--ash);
    padding: 25px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.modal-content h3 {
    margin-top: 0;
}

#modal-region {
    color: var(--level-cyan);
}

#modal-controller {
    color: var(--stamina-green);
}

#modal-dominance-yield {
    color: var(--glory);
}

#modal-challenger {
    color: var(--blood-ember);
}

.regions-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
}

.region-card {
    background: var(--glass-alpha);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease;
}

.region-card:hover {
    transform: translateY(-4px);
}

.region-header {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.region-overlay {
    width: 100%;
    padding: 20px;
    background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.4),
    transparent
    );
}

.region-title {
    margin: 0;
    font-size: 22px;
    letter-spacing: 1px;
    font-weight: bold;
}

.region-tribe {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.85;
    font-style: italic;
}

.region-body {
    padding: 20px;
}

.region-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    color: var(--bone);
    text-align: justify;
}

.territories-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--ash);
}

.territory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.territory-list li {
    padding: 8px 10px;
    margin-bottom: 6px;
    background: var(--card-bg);
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.2s ease;
}

.moon-intro {
    color: var(--ash);
    line-height: 1.6;
}

.moon-current {
    margin: 40px 0;
}

.current-phase-card {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.phase-header {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.phase-overlay {
    width: 100%;
    padding: 20px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85),
        rgba(0,0,0,0.4),
        transparent
    );
}

.phase-header h2,
.phase-header h3 {
    margin: 0;
}

.phase-time {
    font-size: 14px;
    color: var(--ash);
}

.phase-body {
    background: var(--glass-alpha);
    padding: 20px;
    color: var(--ash);
}

.timeline {
    display: flex;
    justify-content: space-around;
    margin: 50px 0;
    position: relative;
}

.timeline-item {
    text-align: center;
    font-size: 13px;
    color: var(--ash);
}

.timeline-item .dot {
    width: 12px;
    height: 12px;
    background: #444;
    border-radius: 50%;
    margin: 8px auto;
}

.timeline-item.current .dot {
    background: var(--rage-glow);
    box-shadow: 0 0 12px var(--rage-glow);
}

.moon-phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.phase-card {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease;
}

.phase-card:hover {
    transform: translateY(-4px);
}

.phase-card.active {
    border-color: var(--rage-glow);
    box-shadow: 0 0 20px rgba(196, 58, 31, 0.4);
}

.tribes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tribe-card {
    background: var(--glass-alpha);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tribe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(196, 58, 31, 0.25);
}

.tribe-card.selected {
    border-color: var(--rage-glow);
    box-shadow: 0 0 20px rgba(196, 58, 31, 0.4);
}

.tribe-card.selectable {
    cursor: pointer;
}

.tribe-header {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.tribe-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.2) 70%
    );
    z-index: 1;
}

.tribe-overlay {
    width: 100%;
    padding: 20px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.9),
        rgba(0,0,0,0.4),
        transparent
    );
}

.tribe-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tribe-title h2 {
    margin: 0;
    font-size: 22px;
    text-shadow: 0 0 10px var(--obsidian);
}

.tribe-title .w-icon {
    width: 28px;
    height: 28px;
    filter: brightness(1.2);
}

.tribe-fur {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: var(--ash);
}

.tribe-body {
    padding: 20px;
}

.tribe-description {
    color: var(--ash);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tribe-power {
    background: rgba(0,0,0,0.35);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.power-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ash);
}

.tribe-power h3 {
    margin: 8px 0 6px;
    font-size: 16px;
    color: var(--rage-glow);
}

.tribe-power p {
    font-size: 14px;
    color: var(--ash);
}

.training-page {
    padding: 20px;
}

.training-current {
    padding: 20px;
    gap: 10px;
}

.training-title {
    font-size: 22px;
    color: var(--ap-glow);
}

.training-meta {
    font-size: 14px;
    color: var(--ash);
}

.training-progress {
    width: 100%;
    max-width: 400px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--rage-red),
        var(--rage-glow)
    );
    transition: width 0.4s ease;
}

.progress-text {
    text-align: center;
    margin-top: 6px;
    font-size: 13px;
    color: var(--ash);
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 15px;
}

.training-card {
    min-height: 133px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.training-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.training-card-title {
    font-weight: 700;
    font-variation-settings: "wght" 700;
}

.training-reward {
    font-size: 13px;
}

.training-info {
    font-size: 13px;
    color: var(--ash);
    display: flex;
    justify-content: space-between;
}

.training-completed {
    text-align: center;
    font-weight: bold;
    color: var(--stamina-green);
}

.training-locked {
    text-align: center;
    font-size: 13px;
    color: var(--soot);
}

.moonblessed-hero {
    text-align: center;
    padding: 30px 20px;
}

.moonblessed-hero p {
    color: var(--ash);
    margin-top: 6px;
}

.benefits {
    margin-top: 20px;
    display: grid;
    gap: 8px;
}

.benefit {
    background: var(--glass-alpha);
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    text-align: center;
}

.step {
    flex: 1;
    background: var(--glass-alpha);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ash);
}

.step strong{
    display: block;
    margin-bottom: 5px;
    color: var(--bone);
}

.offerings {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    text-align: center;
}

.offering {
    flex: 1;
    background: var(--glass-alpha);
    padding: 12px;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    color: var(--ash);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offering strong {
    display: block;
    margin-bottom: 5px;
    color: var(--bone);
}

.offering.offering-moon,
.offering.offering-moonshards {
    position: relative;
    z-index: 1;
}

.offering.offering-moon::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/moon.svg') no-repeat top right;
	background-size: 50px;
	opacity: 0.25;
	pointer-events: none;
	z-index: 0;
}

.offering.offering-moonshards::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/moonshards.svg') no-repeat top right;
	background-size: 50px;
	opacity: 0.25;
	pointer-events: none;
	z-index: 0;
}

.mo-list {
    max-width: 250px;
}

span.mo-list-item {
    display: block;
    position: relative;
}

span.mo-list-item::before {
    content: '*';
    display: block;
    padding-right: 5px;
    font-size: 17px;
    color: var(--ash);
    position: absolute;
    top: 2px;
    left: -10px;
}

.promo {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
    font-size: 14px;
}

.promo.green {
    background-color: #1f3b2d;
    border-color: #2e8b57;
	color: #d2f4de;
    box-shadow: 0 0 10px #1f3b2d;
}

.promo.orange {
    background-color: #3b2c1f;
    border-color: #cc7722;
	color: #ffe6c4;
    box-shadow: 0 0 10px #3b2c1f;
}

.promo.red {
    background-color: #2a0000;
    border-color: #a40000;
	color: #f9d2d2;
    box-shadow: 0 0 10px #2a0000;
}

.promo.blue {
    background-color: #1c2238;
    border-color: #4169e1;
	color: #d6e3ff;
    box-shadow: 0 0 10px #1c2238;
}

.promo.pink {
    background-color: #5B1F3A;
    border-color: #8E2E3B;
	color: #F2B8C6;
    box-shadow: 0 0 10px #5B1F3A;
}

.currency-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 250px;
}

.currency-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ash);
    padding: 4px;
}

.currency-toggle {
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    transition: all .25s ease;
}

.currency-toggle svg {
    width: 18px;
    height: 18px;
    stroke: var(--ash);
    transition: transform .25s ease;
}

.currency-toggle:hover{
    border-color: var(--ap-glow);
}

.currency-selector.open .currency-toggle svg {
    transform: rotate(180deg);
}

.currency-dropdown {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-5px);
    transition:
    max-height .25s ease,
    opacity .2s ease,
    transform .25s ease;
}

.currency-selector.open .currency-dropdown {
    max-height: 100px;
    opacity: 1;
    transform: translateY(0);
}

.currency-dropdown select {
    padding: 8px 10px;
    font-size: 14px;
}

.store-tabs {
    display: flex;
    gap: 10px;
}

.store-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: var(--glass-alpha);
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--card-border);
}

.store-tab.active {
    border-color: var(--ap-glow);
    color: var(--ap-glow);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 15px;
    margin-top: 15px;
}

.store-option {
    background: var(--glass-alpha);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--card-border);
    transition: .2s;
}

.store-option:hover{
    transform: translateY(-3px);
}

.store-option.selected {
    border-color: var(--blood-ember);
    box-shadow: 0 0 12px var(--rage-glow);
}

.store-option.option-moon,
.store-option.option-moonshards {
    position: relative;
    z-index: 1;
}

.store-option.option-moon::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/moon.svg') no-repeat top right;
	background-size: 50px;
	opacity: 0.25;
	pointer-events: none;
	z-index: 0;
}

.store-option.option-moonshards::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/static/images/moonshards.svg') no-repeat top right;
	background-size: 50px;
	opacity: 0.25;
	pointer-events: none;
	z-index: 0;
}

.mo-label {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.mo-qty {
    font-size: 20px;
    font-variation-settings: "wght" 600;
    color: var(--rage-glow);
}

.mo-name {
    font-variation-settings: "wght" 500;
    color: var(--ash);
}

.mo-price {
    margin-top: 6px;
    font-size: 20px;
    font-variation-settings: "wght" 600;
    color: var(--stamina-green);
}

.mo-tag {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--ash);
    text-align: center;
    white-space: nowrap;
}

.tab-content {
    display: none;
}

.tab-content.active{
    display: grid;
}

.checkout-button {
    background: var(--bone);
    padding: 10px;
    border: 1px solid var(--ash);
    border-radius: 10px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: 0.15s ease;
    color: var(--obsidian);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.checkout-button:hover:not(:disabled) {
    background: var(--ash);
}

.checkout-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.stages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 7px;
}

.stage {
    width: 20px;
    height: 5px;
    background-color: var(--rarity-feral-bg);
    border: 1px solid var(--rarity-feral-primary);
    border-radius: 2px;
}

.stage.filled {
    background-color: var(--rarity-feral-primary);
}

.listings{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.listings-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 60px;
    font-weight: bold;
    font-variation-settings: "wght" 700;
    font-size: 14px;
    color: var(--ash);
    padding: 10px;
}

.listing-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 60px;
    align-items: center;
    background: var(--glass-alpha);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    font-size: 13px;
}

.price {
    color: var(--currency-bonechips);
    font-weight: bold;
}

.shards{
    color: var(--currency-moonshards);
    font-weight:bold;
}

.seller {
    color: var(--link);
}

.scroll-top {
    position: fixed;
    bottom: 80px;
    right: 10px;

    width: 44px;
    height: 44px;

    border-radius: 999px;
    border: none;

    font-size: 1.4em;
    font-weight: bold;
    font-variation-settings: "wght" 700;

    background: var(--ap);
    color: var(--bone);

    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    cursor: pointer;

    transition: opacity 0.2s ease, transform 0.2s ease;

    z-index: 1000;
}

.scroll-top[hidden] {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.scroll-top:hover {
    filter: brightness(1.1);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.htmx-swapping {
    opacity: 0;
    transition: opacity 1s ease-out;
}

#offline-banner {
    display: none;
    background: #3a0f0f;
    color: #f2c2c2;
    padding: 0.75rem;
    text-align: center;
    font-weight: bold;
}

.is-offline #offline-banner {
    display: block;
}

.mr-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.mr-bg::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(10, 8, 8, 0.75),
            rgba(10, 8, 8, 0.85)
        ),
        url("/static/images/moonrage.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.quick-actions {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quick-toggle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    font-size: 1.4em;
    font-weight: bold;
    font-variation-settings: "wght" 700;
    color: var(--soot);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    cursor: pointer;
    z-index: 2;
    transition: transform 0.25s ease;
}

.quick-toggle svg {
    width: 16px;
    height: 16px;
    color: var(--soot);
    transition: transform 0.25s ease;
}

.quick-actions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: max-height .3s ease, opacity .2s ease, transform .3s ease;
}

.quick-actions.open .quick-actions-list {
    margin-top: 8px;
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

.quick-actions.open .quick-toggle svg {
    transform: rotate(180deg);
}

.quick-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

.quick-btn:hover:not(:disabled) {
    filter: brightness(1.1);
}

.quick-btn.rage {
    background-color: var(--blood-ember);
    color: var(--bone)!important;
}

.quick-btn.stamina {
    background-color: var(--stamina-green);
    color: var(--bone)!important;
}

.quick-btn.special {
    background-color: var(--glory);
    color: var(--bone)!important;
}

.quick-btn.rage:disabled,
.quick-btn.stamina:disabled {
    background: #2b2b2b;
	color: #777!important;
    cursor: not-allowed;
}

.quick-btn .w-icon {
    width: 30px;
    height: 30px;
}

.user-image {
    max-width: 100%;
    height: auto;
}

.accordion {
    margin-bottom: 5px;
}

.accordion-toggle {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--bone);
    font-family: "Selincah", sans-serif;
}

.accordion-content {
    display: none;
}

.accordion-content.open {
    display: block;
    margin-top: 8px;
}

#notebook-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    height: 100%;
    background: var(--obsidian);
    border-left: 2px solid var(--card-border);
    box-shadow: -4px 0 10px rgba(0,0,0,0.5);
    transform: translateX(100%);
    opacity: 0;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
    z-index: 5000;
}

#notebook-panel.open {
    transform: translateX(0);
    opacity: 1;
}

.notebook-header {
    border-bottom: 1px solid var(--card-border);
    padding: 0px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notebook-header-title {
    font-family: "Selincah", sans-serif;
    color: var(--bone);
    font-size: 20px;
}

.notebook-actions {
    display: flex;
    gap: 3px;
}

.notebook-actions button,
.note-editor-actions button {
    min-width: 35px;
    min-height: 35px;   
    background: var(--bone);
    color: var(--obsidian);
    border: 1px solid var(--ash);
    border-radius: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.notebook-actions button:hover,
.note-editor-actions button:hover { 
    background: var(--ash);
    border: 1px solid var(--soot);
}

.notebook-content {
    padding: 13px;
    height: 100%;
    overflow-y: auto;
}

.note-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    border-bottom: 1px solid var(--card-border);
}

.note-title {
    background: none;
    border: none;
    color: var(--ash);
    cursor: pointer;
    text-align: left;
}

.note-row:hover .note-title {
    color: var(--bone);
}

.note-delete {
    background: none;
    border: none;
    color: var(--soot);
    cursor: pointer;
}

.note-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.note-editor-actions {
    display: flex;
    justify-content: space-between;
}

.note-editor input {
    padding: 6px;
    border-radius: 0px;
}

.note-editor textarea {
    min-height: 180px;
    resize: vertical;
    padding: 6px;
    border-radius: 0px;
}

.back-button {
    align-self: flex-start;
}

#close-notebook {
    position: absolute;
    top: 10px;
    right: 12px;

    background: none;
    border: none;

    font-size: 20px;
    color: var(--soot);
    cursor: pointer;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.chat-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
}

.chat-username-holder {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-username {
    font-weight: bold;
    color: var(--ap-glow);
}

.chat-status {
    font-size: 12px;
    color: var(--soot);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 0px;
}

.chat-row {
    display: flex;
}

.chat-row.me {
    justify-content: flex-end;
}

.chat-row.them {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 12px;
    border-radius: 12px;
    position: relative;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
}

.chat-row.me .chat-bubble {
    background: linear-gradient(
        180deg,
        rgba(158, 27, 27, 0.25),
        rgba(158, 27, 27, 0.05)
    );
    border-color: var(--blood-ember);
    color: var(--bone);
}

.chat-row.them .chat-bubble {
    background: var(--glass-alpha);
    color: var(--bone);
}

.chat-text {
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.chat-time {
    font-size: 11px;
    color: var(--soot);
    margin-top: 5px;
    text-align: right;
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.chat-input-hidden {
    display: none;
}

.chat-input-visible {
    display: flex;
}

.attack-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.attack-card {
    background: var(--glass-alpha);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px; 
    position: relative;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.2s ease;
}

.attack-card:hover {
    transform: scale(1.02);
}

.attack-card.selected {
    border-color: var(--blood-ember);
    box-shadow: 0 0 10px var(--rage-glow);
}

.attack-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attack-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.attack-left h3 {
    color: var(--bone);
    margin: 0;
}

.expand-toggle {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--ash);
    transition: transform 0.2s ease;
}

.attack-card.expanded .expand-toggle {
    transform: rotate(180deg);
}

.attack-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.25s ease;
}

.attack-card.expanded .attack-card-body {
    margin-top: 8px;
    max-height: 200px;
    opacity: 1;
}

.attack-flavor {
    font-size: 12px;
    color: var(--ash);
}

#atk-submit-btn {
    position: sticky;
    width: 100%;
    z-index: 10;
}

.nav-editor {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.nav-editor-column {
	min-height: 360px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nav-dropzone {
	min-height: 260px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px;
	background: rgba(255,255,255,0.02);
	border: 1px dashed var(--card-border);
	border-radius: 10px;
}

.nav-edit-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px;
	border-radius: 10px;
	background: var(--glass-alpha);
	border: 1px solid var(--card-border);
	box-shadow: var(--card-shadow);
	cursor: grab;
}

.nav-edit-item:active {
	cursor: grabbing;
}

.nav-edit-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.nav-edit-main .w-icon {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
}

.nav-edit-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.nav-edit-text strong {
	color: var(--bone);
	font-size: 14px;
}

.nav-edit-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nav-editor-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.nav-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 8px 0;
}

.nav-preview-item {
	width: 70px;
	height: 70px;
	border-radius: 10px;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	text-align: center;
}

.nav-preview-item .w-icon {
	width: 28px;
	height: 28px;
}

.nav-preview-item span:last-child {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--bone);
}

.nav a.active {
	background: rgba(255,255,255,0.05);
	box-shadow: inset 0 0 0 1px var(--ap-glow);
}

@media (min-width: 769px) {
    .quick-actions-list {
        max-width: 232px;
    }

    .attack-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .attack-card-body {
        max-height: none !important;
        opacity: 1 !important;
    }

    .expand-toggle {
        display: none;
    }

    .attack-flavor {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .quick-actions {
        position: fixed;
        bottom: 80px;
        left: 10px;
        z-index: 10;
        flex-direction: column-reverse;
        align-items: center;
        gap: 10px;
    }

    .quick-actions-list {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        transform: translateY(8px);
    }

    .quick-actions.open .quick-actions-list {
        transform: translateY(0);
    }

    .quick-toggle svg {
        transform: rotate(180deg);
    }

    .quick-actions.open .quick-toggle svg {
        transform: rotate(0deg);
    }

    .chat-username-holder {
        flex-direction: column;
    }

    .nav-editor {
		grid-template-columns: 1fr;
	}

	.nav-editor-actions {
		flex-direction: column;
	}
}

@media (min-width: 1050px) {
    .bounty-header {
        display: grid;
        font-size: 14px;
    }

    .bounty-row {
        grid-template-columns: 1fr 2fr 1fr 2fr 1fr 1.2fr;
        padding: 0px;
        gap: 0px;
    }

    .bounty-cell {
        display: block;
        padding: 4px 6px;
        font-size: 13px;
    }
    
    .bounty-cell.target {
        font-size: 13px; 
    }
    
    .bounty-cell.reward {
        font-size: 13px;
    }

    .bounty-toggle {
        display: none;
    }

    .bounty-details {
        display: none !important;
    }

    .bounty-row.is-expanded {
        background-color: transparent;
    }

    .bounty-cell.attack {
        justify-self: flex-start;
    }
}

@media (max-width: 1050px) {
    body {
        padding: 5px 12px 90px 12px;
    }

    .header {
        gap: 0px;
    }

    .menu-btn {
        width: 50px;
        height: 50px;
    }

    .events-main,
    .fight-btn {
        display: none;
    }

    .events-dropdown-btn {
        display: flex;
    }

    .events-group {
        position: relative;
    }

    .events-dropdown {
        position: absolute;
        top: 45px;
        right: 0;
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        border-radius: 10px;
        box-shadow: var(--card-shadow);
        display: none;
        flex-direction: column;
        min-width: 160px;
        z-index: 100;
    }

    .events-dropdown a {          
        color: var(--ash);
        text-align: right;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 12px;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .events-dropdown a:hover {
        background: rgba(255,255,255,0.05);
    }

    .events-group.open .events-dropdown {
        display: flex;
    }

    .events-dropdown .badge {
        background: var(--blood-ember);
        font-size: 12px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    }

    .brand {
        justify-content: center;
        gap: 10px;
    }

    .brand.front {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        justify-content: center;
        gap: 10px;
        padding-left: 0px;
    }

    .brand .mark .w-icon {
        width: 30px;
        height: 30px;
    }

    .brand h1 {
        font-size: 28px;   
    }

    .brand p {
        font-size: 8px;
    }

    .sidenav a {
        padding: 6px 10px;
    }

    main.main {
        flex-direction: column;
        align-items: normal;
        gap: 10px;
        padding: 0;
    }

    section.content {
        flex: 0 0 100%;
    }

    aside.status {
        flex: 0 0 100%;
        order: -1;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
        margin-top: 10px;
    }

    aside.status h1 {
        display: none;
    }

    .bars {
        flex: 1 1 220px;
        min-width: 0;
        flex-direction: row; 
        justify-content: stretch;
        align-items: center;
        gap: 8px;
    }

    .bar-row {
        flex: 20%;
        display: flex;
        flex-direction: column;
    }

    .bar-row .stat {
        display: flex;
        justify-content: flex-start;
        gap: 4px;
        align-items: center;
    }

    .bar-row .stat label {
        letter-spacing: 0.5px;
    }

    .bar-row .stat span:not(.w-icon, .stat-name) {
        font-size: 10px;
        text-transform: uppercase;
        color: var(--ash);
        letter-spacing: 0.5px;
    }

    .bar-row .stat .w-icon {
        width: 14px;
        height: 14px;
    }

    .bar-row .stat .stat-name {
        display: none;
    }

    .status-clock {   
        top: -28px;
        bottom: auto;
        font-size: 10px;
        text-align: right;
        color: var(--ash);
    }

    .tokens {
        flex-direction: row;
        width: 100%;
        gap: 4px;
    }

    .token {
        flex: 20%;
        display: flex;
        gap: 4px;
        align-items: center;
        padding: 3px 5px;
        border-radius: 6px;
        font-weight: 600;
        font-size: 10px;
    }

    .token-data small {
        display: none;
    }

    .nav-wrapper {
        box-shadow: 0 -3px 5px rgba(0, 0, 0, 0.3);
    }

    .nav-container {
        justify-content: flex-start;
        border-radius: 0;
        padding: 5px 10px;
        margin: 0px;
    }

    /* Show arrows only if scrolling is needed */
    .nav-container:has(.nav) {
        display: flex;
    }

    .alert {
        font-size: 13px;
        text-align: justify;
        padding: 10px;
    }

    .card-container,
    .attrs-grid {
        grid-template-columns: 1fr;
    }

    .card.card-power {
        flex-direction: column;
        align-items: flex-start;
    }

    .card.card-power .card-action {
        flex: 0;
    }

    .count .k {
        font-size: 10px;
    }

    .count .v {
        font-size: 13px;
    }

    .detail-item.rel-entry {
        padding: 8px 0;
    }

    .message-entry-meta {
        flex-direction: column;
        justify-content: center;
    }

    .tribes-grid,
    section.profile {
        grid-template-columns: 1fr;
    }

    .avatar {
        align-self: center;
    }

    .inventory-list {
        grid-template-columns: 2fr;
    }

    #item-panel {
        width: 100%;
        height: 100%;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-left: none;
        border-top: 2px solid var(--card-border);
        transform: translateY(100%);
        right: 0;
        left: 0;
        bottom: 0;
        top: auto;
        transition: transform 0.4s ease, opacity 0.4s ease;
        padding: 1em;
        text-align: center;
    }
    
    #item-panel.open {
        transform: translateY(0);
    }

    .hunt-action-header {
        padding: 10px;
        flex-direction: column;
        gap: 8px;
    }

    .scars {
        flex-direction: column;
    }

    .scar {
        justify-content: space-around;
    }

    .tab {
        padding: 8px 12px;
    }

    .tabs .tab .tab-label.mobile {
        display: none;
    }

    .task-group-name h4 {
        text-align: center;
    }

    .task-group-name p {
        font-size: 0.8em;
        text-align: center;
    }

    .task-group-claims.wrap {
        flex-grow: 1;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 0px;
    }

    .task-claim {
        min-width: 70px;
        font-size: 0.8em;
    }

    .login-week {
        flex-direction: column;
    }

    .login-day {
        flex: 100%;
    }

    .explore-container,
    .notices-list {
        grid-template-columns: 3fr;
    }

    .pack-tabs {
        display: none; /* Hide normal tabs */
    }

    .mobile-pack-menu {
        display: block; /* Show menu button */
    }

    .mobile-pack-dropdown {
        display: flex;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-5px);
        transition:
            max-height 0.25s ease,
            opacity 0.2s ease,
            transform 0.25s ease;
        pointer-events: none;  
    }

    .mobile-pack-dropdown.open {
        max-height: 1000px;
        margin-top: 5px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .pack-event time {
        width: 60px;
    }

    .pack-member-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
    }

    .packs-table th,
    .packs-table td {
        padding: 12px 6px;
        font-size: 13px;
        overflow: hidden;
    }

    th, td {
        padding: 10px 6px;
        font-size: 13px;
        overflow: hidden;
    }

    .thread-row {
        flex-direction: column;
    }

    .thread-meta {     
        flex-direction: column;
        justify-content: flex-start;
        text-align: left;
        margin-top: 0.5em;  
        gap: 0;     
    }

    .post {    
        flex-direction: column;
        gap: 1em;
    }

    .post-header {
        border-bottom: 1px solid var(--card-border);
        padding-bottom: 0.75em;      
    }

    .post-footer {
        flex-direction: column;
        gap: 1em;
    }

    .post-reaction-btns,
    .post-action-btns {
        justify-content: flex-start;
    }

    .item-row.break {
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
    }

    .item-row.break .item-row-name {
        text-align: center;
        justify-content: center;
    }

    .item-row.break .item-row-actions {
        justify-content: center;
    }

    .vit-fb {
        display: block;
    }

    .map {
        grid-template-areas:
            "northwest"
            "north"
            "northeast"
            "west"
            "center_region"
            "east"
            "southwest"
            "south"
            "southeast";
    }

    .territories {
        grid-template-columns: repeat(3, 40px);
    }

    .hex {
        width: 40px;
        height: 50px;
    }

    .regions-container {
        grid-template-columns: 1fr; /* 1 column */
        justify-content: center;
    }

    .steps,
    .offerings {
        flex-direction: column;
    }

    .store-option {
        padding: 6px;
    }

    .mo-tag {
        top: 4px;
        left: 6px;
        bottom: auto;
        transform: none;
        font-size: 10px;
    }

    .listings-header {
        display: none;
    }

    .listing-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .listing-row div {
        display: flex;
        justify-content: space-between;
    }

    .listing-row div::before {
        font-weight: bold;
        font-variation-settings: "wght" 700;
        color: var(--ash);
    }

    .seller::before {
        content: "Seller";
    }

    .shards::before {
        content: "Moonshards";
    }

    .priceTotal::before {
        content: "Total Price";
    }

    .priceUnit::before {
        content: "Price/Shard";
    }

    .buyCell {
        justify-content: center;
        margin-top: 6px;
    }

    .buyCell::before{
        content: "";
    }

    #notebook-panel {
        width: 100%;
        height: 80%;
        top: auto;
        bottom: 0;
        left: 0;
        border-left: none;
        border-top: 2px solid var(--card-border);
        transform: translateY(100%);
    }

    #notebook-panel.open {
        transform: translateY(0);
    }

    .fight-back-button {
        text-align: center;
        margin-bottom: 10px;
    }

    .boss-section {
        padding: 18px;
        margin-bottom: 12px;
    }
}