@font-face {
    font-family: 'cheri';
    src: url('CHERI___.TTF') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #cbeaed;
    background-image: url("img2/dressuphtmlbackdrop.gif");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    font-family: 'cheri', cursive, sans-serif;
}

/* ========== CORNER IMAGES ========== */
.corner {
    position: fixed;
    width: 1400px;
    height: auto;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}
.corner-tl { top: 10px; left: 10px; }
.corner-tr { top: 10px; right: 10px; }
.corner-bl { bottom: 10px; left: 6px; }
.corner-br { bottom: 10px; right: 10px; }

/* ========== HEADER ========== */
.game-header {
    text-align: center;
    margin-bottom: 16px;
    z-index: 1;
    position: relative;
}

.header-banner {
    width: 1130px;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
    margin-left: -20px;
}

/* ========== MAIN LAYOUT (like your site) ========== */
.game-layout {
    width: 900px;
    max-width: 100%;
    display: grid;
    grid-gap: 16px;
    grid-template: "leftSidebar main clothing" auto / 170px auto 250px;
    position: relative;
    z-index: 1;
    margin-left: -250px;
}

.game-main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========== SIDEBARS (scrollable, one box each) ========== */
.game-sidebar {
    border-width:8px;
border-style:solid;
border-image: url("https://i.ibb.co/h1Q3bFn/83-B27704-CEA1-4-B8-F-BF79-90-D624-EDC6-F6.png") 8 fill round;    
    overflow-y: auto;
    max-height: 550px;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px;
    font-size: 0.85em;
    color: #8f4d6b;
    width: 170px;
}

.left-sidebar-game {
    grid-area: leftSidebar;
}

.right-sidebar-game {
    grid-area: rightSidebar;
}

.sidebar-section {
    margin-bottom: 16px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-title {
    font-weight: bold;
    font-size: 1em;
    font-family: 'cheri', cursive;
    color: #c0607a;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #ffb7c5;
}

.sidebar-section p {
    margin: 4px 0;
    font-size: 0.9em;
}

.sidebar-link {
    display: block;
    padding: 5px 8px;
    font-size: 0.9em;
    color: #c0607a;
    text-decoration: none;
    border-radius: 8px;
    margin: 2px 0;
}

.sidebar-link:hover {
    background: #ffe2ec;
}

/* ========== MUSIC PLAYER ========== */
#music-player-container {
    text-align: center;
}

#music-player {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 24px;
    background: linear-gradient(135deg, #fff, #FACDE0);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 140, 174, 0.3);
    animation: spin 4s linear infinite;
    color: #c0607a;
    margin: 5px auto;
}

#music-player:hover {
    transform: scale(1.1);
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ========== DOLL AREA ========== */
.doll-area {
    background: #fff0f7;
    border-radius: 30px;
    padding: 20px;
    border-width:8px;
border-style:solid;
border-image: url("https://i.ibb.co/h1Q3bFn/83-B27704-CEA1-4-B8-F-BF79-90-D624-EDC6-F6.png") 8 fill round;    
    text-align: center;
}

.doll-stage {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    background: radial-gradient(ellipse at center, rgba(255,214,233,0.3) 0%, transparent 70%);
    border-radius: 20px;
}

.doll-stage img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* ========== CLOTHING AREA ========== */
.clothing-area {
    grid-area: clothing;
    background: #fff;
    border-radius: 30px;
    padding: 10px;
    border-width: 8px;
    border-style: solid;
    border-image: url("https://i.ibb.co/h1Q3bFn/83-B27704-CEA1-4-B8-F-BF79-90-D624-EDC6-F6.png") 8 fill round;    
    width: 360px;
    max-height: 550px;
    overflow-y: auto;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.cat-tab {
    background: #ffe2ec;
    border: 2px solid #ffb7c5;
    border-radius: 12px 12px 0 0;
    padding: 6px 10px;
    cursor: pointer;
    font-family: 'cheri', cursive;
    font-size: 12px;
    color: #c0607a;
}

.cat-tab.active {
    background: white;
    font-weight: bold;
}

.cat-tab:hover {
    background: white;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: white;
    border-radius: 0 15px 15px 15px;
    padding: 15px;
    min-height: 250px;
    max-height: 350px;
    overflow-y: auto;
    border: 2px solid #ffb7c5;
}


/* Face category needs more scroll room */
.items-grid.face-accordion {
    display: block;
    max-height: 400px;
    overflow-y: auto;
}

.item-preview-img {
  min-height: 80px;
  max-height: 250px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.item-btn {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
    background: #fff5f8;
    border: 2px solid #ffe2ec;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
}

.item-btn:hover {
    border-color: #ffb7c5;
}

.item-btn img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
}

.item-label {
    font-size: 10px;
    color: #c0607a;
    margin-top: 3px;
}

/* ========== FOOTER ========== */
.game-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 0.75em;
    color: #8f4d6b;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid #ffb7c5;
    max-width: 1120px;
    width: 1100%;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar:horizontal { height: 17px; }
::-webkit-scrollbar-corner { background: #eee; }
::-webkit-scrollbar-track:vertical { background: linear-gradient(90deg, #e5e5e5, #f0f0f0 20%); }
::-webkit-scrollbar-track:horizontal { background: linear-gradient(180deg, #e5e5e5, #f0f0f0 20%); }
::-webkit-scrollbar-thumb {
    border: 1.5px solid #888;
    border-radius: 3px;
    box-shadow: inset 0 -1px 1px #fff, inset 0 1px 1px #fff;
    background-color: #eee;
}
::-webkit-scrollbar-thumb:vertical {
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAIAAADpZ+PpAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAADrSURBVChTTc5LboJQGAXguyoCu4ERCzAGlRk7UOwGWIDh0s4M4kxb06RSq/jAB6AxJkJ4lTDrue3AnvyzP+fLId+/yfM8juP7PQmCCOf7B3e+ZD+O40RRVFW12VQUpd3r9U3T2m4OpKoqWZYNwzBZLEqfh0N7NnvfrPcEWlEUWZb9mWF4Ph6D0ylcLbfM5HkeJrhGA2hb15/QXnv+w7RYXsDatjOdvnmrHSnLEizMNE2v11sUXQBCnn98kbquBUGQJAlmq9WB2e3qg4HJdqKkaRql1HGc0WgMcDJ5dd0F24kediZJ8t/ELT69H+8py0CYSIO5AAAAAElFTkSuQmCC") no-repeat 50%, linear-gradient(90deg, #eee 45%, #ddd 0, #bbb);
}
::-webkit-scrollbar-thumb:horizontal {
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAJCAYAAAALpr0TAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAADcSURBVChTNZBLqoUwEEQrURQUxZGCvy24ACfiityJi7tv8GauQoPxk5tquA2RQ9vVVYk6z9NZaxFFEe77htYazjk8z4MwDIVZ+rourOuKaZrwvi+WZcE8z1BKCbPPCjk4DAO2bRP1OI7wLiL6Mbd7J408z1GWpQwWRYGqqiQG+03TgMu0MacfUN4qANmn8UOv9MjW3sKaSm7iIdOSlziOQ3LScd93aPonSYK6riVLlmVo21aYfVqzND9pmqLrOlGT+76XbcxLZkb19/l3fEP+oF0cx8KMEASBsDEGX2/CgZCHkg+8AAAAAElFTkSuQmCC") no-repeat 50%, linear-gradient(180deg, #eee 45%, #ddd 0, #bbb);
}
::-webkit-scrollbar-button:horizontal:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:vertical:start:decrement { display: block; }
::-webkit-scrollbar-button:vertical { height: 17px; }
::-webkit-scrollbar-button:vertical:start:decrement {
    background: white;
    background-image: url("https://cdn.discordapp.com/attachments/904308736712138793/1001299199633141851/download.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
::-webkit-scrollbar-button:vertical:start:increment { display: none; }
::-webkit-scrollbar-button:vertical:end:decrement { display: none; }
::-webkit-scrollbar-button:vertical:end:increment {
    background: white;
    background-image: url("https://cdn.discordapp.com/attachments/904308736712138793/1001299200052576387/87ae92e1-3894-4469-b1b9-aedf5f04975c.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 950px) {
    .game-layout {
        width: 100%;
        grid-template: "leftSidebar" auto "main" auto "rightSidebar" auto / 1fr;
    }
    .game-sidebar {
        max-height: 200px;
    }
    .game-footer {
        max-width: 100%;
    }
}

/* Swatch arrows */
.swatch-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}

.swatch-arrow {
    background: none;
    border: 1px solid #ffb7c5;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 8px;
    cursor: pointer;
    color: #c0607a;
    padding: 0;
    line-height: 16px;
    text-align: center;
}

.swatch-arrow:hover {
    background: #ffe2ec;
}

.swatch-count {
    font-size: 9px;
    color: #c0607a;
}

/* ========== FACE CATEGORY - ACCORDION ========== */
.face-accordion {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.face-section {
    border: 2px solid #ffb7c5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff5f8;
}

.face-section-header {
    background: #ffe2ec;
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'cheri', cursive;
    font-size: 13px;
    color: #c0607a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    width: 100%;
}

.face-section-header:hover {
    background: #ffd0de;
}

.face-section-header .arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.face-section.open .face-section-header .arrow {
    transform: rotate(90deg);
}

.face-section-body {
    display: none;
    padding: 10px;
    background: white;
}

.face-section.open .face-section-body {
    display: block;
}

/* Sub-group within face section */
.face-subgroup {
    margin-bottom: 8px;
    border-bottom: 1px dashed #ffd9e3;
    padding-bottom: 8px;
}

.face-subgroup:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.face-subgroup-label {
    font-family: 'cheri', cursive;
    font-size: 11px;
    color: #c0607a;
    margin-bottom: 4px;
}

/* Multi-select items */
.multiselect-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.multiselect-item input[type="checkbox"] {
    accent-color: #e892a6;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.multiselect-item label {
    font-size: 11px;
    color: #8f4d6b;
    cursor: pointer;
}

.multiselect-swatches {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 4px;
}

.multiselect-swatch-arrow {
    background: none;
    border: 1px solid #ffb7c5;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 7px;
    cursor: pointer;
    color: #c0607a;
    padding: 0;
    line-height: 14px;
    text-align: center;
}

.multiselect-swatch-arrow:hover {
    background: #ffe2ec;
}

.multiselect-swatch-count {
    font-size: 8px;
    color: #c0607a;
}

/* ========== TITLE SCREEN ========== */
#title-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #fff0f5 0%, #ffe4ec 50%, #ffd1dc 100%);
background-image: url("img2/dovedollsheader.png"), linear-gradient(180deg, #fff0f5 0%, #ffe4ec 50%, #ffd1dc 100%);
background-size: cover;
background-blend-mode: overlay;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#title-container {
    display: block;
    position: relative;
    border-width: 7px;
    border-style: solid;
    border-image: url("https://i.imgur.com/ROjUrNz.gif") 7 fill round;
    overflow: hidden;
    height: 500px;
    width: 1500px;
    background: rgba(255, 255, 255, 0.3);
}

.title-banner {
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 100;
    height: 100%;
    width: 100%;
    transition: 0.8s ease;
}

/* Hover: image shrinks to the LEFT, revealing menu on the RIGHT */
#title-container:hover .title-banner {
    width: 80%;
    left: 0;
}

.title-game-name {
    font-family: 'cheri', cursive;
    color: white;
    font-size: 2.8em;
    font-weight: bold;
    text-shadow: -1px 0 #f7b9d5, 0 1px #f7b9d5, 1px 0 #f7b9d5, 0 -1px #f7b9d5;
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 98;
    text-align: right;
}

.title-menu {
    position: absolute;
    top: 42%;
    right: 35px;
    text-align: right;
    color: white;
    font-weight: bold;
    text-shadow: -1px 0 #f7b9d5, 0 1px #f7b9d5, 1px 0 #f7b9d5, 0 -1px #f7b9d5;
    font-family: 'cheri', cursive;
    font-size: 2.2em;
    line-height: 1.8;
    z-index: 98;
}

.title-menu a {
    color: white;
    text-decoration: none;
    transition: 0.4s ease;
    display: block;
}

.title-menu a:hover {
    color: #FAE6F0;
    filter: blur(0.5px);
}

#title-screen.hidden {
    display: none;
}

/*-------MUSIC PLAYER BY GLENTHEMES-------*/
#glenplayer02 { 
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    z-index: 100001;
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
}
#glenplayer02 a { text-decoration: none; }
#glenplayer02 > div {
    align-self: center;
}
.music-controls {
    user-select: none;
    width: 13px;
    font-size: 40px;
    cursor: pointer;
    text-shadow: -1px 0 #DF01A5, 0 1px #DF01A5, 1px 0 #DF01A5, 0 -1px #DF01A5;
}
.playy, .pausee { color: #F6CEEC; }
.pausee { display: none; }
.sonata {
    margin-left: 10px;
    color: #fff;
    text-shadow: -1px 0 #DF01A5, 0 1px #DF01A5, 1px 0 #DF01A5, 0 -1px #DF01A5;
}
.labeltext {
    margin-left: 8px;
    font-family: courier new;
    font-size: 9px;
    color: #fff;
    text-shadow: -1px 0 #DF01A5, 0 1px #DF01A5, 1px 0 #DF01A5, 0 -1px #DF01A5;
}

#layer-lips,
#layer-eyes,
#layer-nose,
#layer-brows,
#layer-makeup,
#layer-piercings {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 100%;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
}