/* ==========================================================================
   VICE TIMBER — GTA VI "Vice" design layer
   Tokens come from vice-base.css (--v-*). GTA Art Deco only.
   Layout: one floating night plate on the left (crew + management),
   CTA pill bottom-right, toast stack top-right, progress HUD plate.
   ========================================================================== */
:root {
    --themeColor: #ffb2c6;
    --gradientfirstColor: transparent;
    --gradientSecondColor: rgba(255, 178, 198, 0.18);
}

* { user-select: none; margin: 0; padding: 0; box-sizing: border-box; }

body {
    color: #fff;
    overflow: hidden;
    font-family: var(--v-font);
    letter-spacing: var(--v-track);
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------- icons */
img[src$="strokes.svg"], .decorationParent, .decorationLine img { display: none !important; }
img[src$="clothingIcon.svg"] { content: url(assets/vice/clothing.svg); }
img[src$="cash.svg"]         { content: url(assets/vice/cash.svg); }
img[src$="hostIcon.svg"]     { content: url(assets/vice/host.svg); }
img[src$="clientIcon.svg"]   { content: url(assets/vice/member.svg); }
img[src$="newUser.svg"]      { content: url(assets/vice/newuser.svg); }
img[src$="home.svg"]         { content: url(assets/vice/home.svg); }
img[src$="management.svg"]   { content: url(assets/vice/manage.svg); }
img[src$="inviteBtn.svg"]    { content: url(assets/vice/invite.svg); }
img[src$="kickIcon.svg"]     { content: url(assets/vice/kick.svg); }
img[src$="check.svg"]        { content: url(assets/vice/check.svg); }
img[src$="xMark.svg"]        { content: url(assets/vice/xmark.svg); }

/* ------------------------------------------------------------ the plate */
.multiplayerMenu {
    display: none;
    position: fixed;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 13, 27, 0.78) 0%, rgba(12, 13, 27, 0.35) 38%, rgba(12, 13, 27, 0) 62%);
}

.fixedSize {
    position: absolute;
    left: 48px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    width: 474px;
    height: fit-content;
    max-height: calc(100% - 64px);
    padding: 34px 32px 30px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: var(--v-r-feature);
    background: var(--v-glow-top), var(--v-grad-night);
    box-shadow: var(--v-shadow);
    animation: v-fade 0.35s var(--v-ease) both; /* opacity only: a transform here would trap the fixed CTA */
}
.fixedSize::-webkit-scrollbar { display: none; }
.fixedSize::before {
    content: "";
    position: absolute;
    left: 32px;
    top: 0;
    width: 64px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--v-sunset-line);
}

/* title stack: eyebrow / screen title / subtitle */
.jobTittle .title { display: none; }
.jobTittle .description {
    font: 500 11px/1.2 var(--v-font);
    letter-spacing: var(--v-track-wide);
    text-transform: uppercase;
    color: var(--v-pink);
}

.header { margin-top: 10px; }
.backgroundText { position: relative; }
.backgroundText .bgText {
    display: none;
    position: absolute;
    left: -2px;
    top: -16px;
    font: 500 58px/1 var(--v-font);
    letter-spacing: 0.12em;
    white-space: nowrap;
    color: rgba(255, 249, 203, 0.035);
    pointer-events: none;
}
.backgroundText .content { position: relative; display: flex; align-items: center; min-height: 44px; }
.header .decorationLine { margin: 0; }
#headerDecoText {
    font: 500 40px/0.92 var(--v-font);
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--v-cream);
    clip-path: none;
}

.viceSub {
    margin-top: 10px;
    max-width: 380px;
    font: 400 14px/1.45 var(--v-font);
    color: var(--v-lilac);
    opacity: 0.88;
}

/* ------------------------------------------------------------- tabs */
.mainScreen { display: none; margin-top: 24px; }

.tabs {
    display: flex;
    gap: 4px;
    width: fit-content;
    padding: 4px;
    border-radius: var(--v-r-pill);
    background: var(--v-s1);
}
.tabs .tab {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--v-r-pill);
    font: 500 12px/1 var(--v-font);
    letter-spacing: 0.06em;
    color: var(--v-lilac-soft);
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--v-med) var(--v-ease), color var(--v-med) var(--v-ease);
}
.tabs .tab img { width: 16px; height: 16px; opacity: 0.85; }
.tabs .tab .text { margin: 0; }
.tabs .tab:hover { background: var(--v-s2); }
.tabs .activeTab, .tabs .activeTab:hover { background: var(--v-cream); color: var(--v-chip-ink); }
.tabs .activeTab img { filter: brightness(0); opacity: 0.85; }

/* horizontal slider: two 410px slides, JS scrolls by 410px */
.tabsSlider {
    display: flex;
    width: 410px;
    overflow: hidden;
    scroll-behavior: smooth;
    margin-top: 6px;
}
.slide { flex: 0 0 410px; width: 410px; }
.mainMenu, .management { transition: 0.5s; }

/* --------------------------------------------------------- section titles */
.decoLine { margin: 22px 0 10px; }
.decoLine .decorationLine { display: block; margin: 0; }
.decoLine .text {
    font: 500 11px/1.2 var(--v-font);
    letter-spacing: var(--v-track-wide);
    text-transform: uppercase;
    color: var(--v-peach);
    clip-path: none;
    white-space: nowrap;
}
.decoLine .line {
    margin-top: 5px;
    font: 400 12.5px/1.35 var(--v-font);
    letter-spacing: var(--v-track);
    color: var(--v-lilac-soft);
    opacity: 0.85;
}

/* ------------------------------------------------------------- rows */
.box {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 64px;
    margin-top: 8px;
    padding: 0 14px;
    border-radius: var(--v-r-media);
    background: var(--v-s1);
    transition: transform 0.5s var(--v-ease), background var(--v-med) var(--v-ease);
}
.box:hover { background: var(--v-s2); }
.box .icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 50%;
    background: rgba(229, 221, 255, 0.07);
}
.box .icon img { width: 20px; height: 20px; }
.box .content {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.box .content .topic {
    font: 500 10px/1.2 var(--v-font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v-faint);
}
.box .content .value {
    font: 500 15px/1.2 var(--v-font);
    color: var(--v-cream);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#cashPercentage .content { max-width: none; }
.salaryPercent { color: var(--v-lime); }

.inviteBtn, .kickBtn, .boxInput { z-index: 10; }
.inviteBtn, .kickBtn {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--v-med) var(--v-ease), box-shadow var(--v-med) var(--v-ease);
}
.inviteBtn { background: var(--v-cta); box-shadow: var(--v-glow-cta-sm); }
.inviteBtn:hover { background: #ffe1ea; }
.kickBtn { background: rgba(244, 113, 124, 0.16); }
.kickBtn:hover { background: rgba(244, 113, 124, 0.28); }
.inviteBtn img, .kickBtn img { width: 16px; height: 16px; }

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.box .boxInput {
    flex: none;
    width: 76px;
    height: 36px;
    margin: 0;
    outline: none;
    border: 1px solid rgba(229, 221, 255, 0.12);
    border-radius: var(--v-r-pill);
    background: rgba(229, 221, 255, 0.06);
    color: var(--v-lime);
    text-align: center;
    font: 500 14px var(--v-font);
    user-select: text;
}
.box .boxInput:focus { border-color: rgba(255, 249, 203, 0.45); }

/* outfit switch: cream thumb moves 34px */
.box .switch {
    position: relative;
    flex: none;
    display: flex;
    padding: 3px;
    border-radius: var(--v-r-pill);
    background: rgba(229, 221, 255, 0.07);
}
.switch .sliderParent { position: absolute; inset: 3px; margin: 0; }
.switch .sliderParent .fullHeight { display: none; }
.switch .activeSlider {
    width: 34px;
    height: 100%;
    border-radius: var(--v-r-pill);
    background: var(--v-cream);
    transition: margin-left 0.35s var(--v-ease);
}
.switchFlex { position: relative; z-index: 2; display: flex; }
.box .switch .option {
    width: 34px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font: 500 12px/28px var(--v-font);
    color: var(--v-lilac);
    cursor: pointer;
    transition: color 0.3s var(--v-ease);
}
.box .switch .option.on { color: var(--v-chip-ink); }
.fullHeight { height: 100%; }

.nearbyPlayersParent { display: none; }
.nearbyPlayers {
    max-height: 216px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}
.nearbyPlayers::-webkit-scrollbar { width: 4px; }
.nearbyPlayers::-webkit-scrollbar-thumb { background: rgba(229, 221, 255, 0.16); border-radius: var(--v-r-pill); }
.manageReward { margin-bottom: 4px; }

/* -------------------------------------------------- dialogs (in-plate) */
.tutorialScreen {
    display: none;
    margin-top: 22px;
    font: 400 14px/1.5 var(--v-font);
    color: var(--v-lilac);
}
.tutorialScreen .background {
    position: relative;
    padding: 20px;
    border-radius: var(--v-r-md);
    background: var(--v-s1);
}
.tutorialScreen .background.media { padding: 0; overflow: hidden; border-radius: var(--v-r-media); background: var(--v-grad-v1); }
.tutorialScreen .background .title {
    margin-bottom: 8px;
    font: 500 11px/1.2 var(--v-font);
    letter-spacing: var(--v-track-wide);
    text-transform: uppercase;
    color: var(--v-peach);
}
.tutorialScreen .background .text { color: var(--v-lilac); }
.inviterName { color: var(--v-pink); }
.customScreenImg { display: block; width: 100%; height: 200px; object-fit: cover; border-radius: var(--v-r-media); }
.tutorialScreen .btns { display: flex; gap: 10px; margin-top: 18px; }
.tutorialScreen .btns .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 18px;
    border-radius: var(--v-r-pill);
    font: 500 14px/1 var(--v-font);
    text-align: center;
    cursor: pointer;
    transition: background var(--v-med) var(--v-ease), box-shadow var(--v-med) var(--v-ease);
}
.closeTutorialBtn { background: var(--v-cta); color: var(--v-cta-ink); box-shadow: var(--v-glow-cta-sm); }
.closeTutorialBtn:hover { background: #ffe1ea; box-shadow: var(--v-glow-cta); }
.dontShowTutorialBtn { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--v-ghost); }
.dontShowTutorialBtn:hover { background: var(--v-s2); }

/* -------------------------------------------- start CTA (bottom-right) */
.startJob {
    display: none;
    position: fixed;
    right: 48px;
    bottom: 44px;
    width: 300px;
    z-index: 5;
}
.gradient {
    position: absolute;
    z-index: -1;
    right: -48px;
    bottom: -44px;
    width: 640px;
    height: 420px;
    background: radial-gradient(60% 70% at 100% 100%, rgba(12, 13, 27, 0.85) 0%, rgba(12, 13, 27, 0) 100%);
    pointer-events: none;
}
.startJob .decoLine { margin: 0 0 12px; text-align: right; }
.startJob .decoLine .text { color: var(--v-pink); }
.startBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 26px;
    border-radius: var(--v-r-pill);
    background: var(--v-cta);
    color: var(--v-cta-ink);
    font: 500 16px/1 var(--v-font);
    box-shadow: var(--v-glow-cta);
    cursor: pointer;
    transition: background var(--v-med) var(--v-ease);
}
.startBtn:hover { background: #ffe1ea; }

/* --------------------------------------------- progress HUD (#counter) */
#counter {
    display: none;
    position: absolute;
    bottom: 32px;
    right: 32px;
    width: auto;
    min-width: 210px;
    padding: 16px 20px 14px;
    border-radius: var(--v-r-md);
    background: var(--v-glow-top), var(--v-grad-night);
    box-shadow: 0 20px 50px rgba(7, 7, 15, 0.45);
    overflow: hidden;
}
#counter::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    width: 48px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--v-sunset-line);
}
#counter .decoLine { margin: 0 0 6px; text-align: left; }
#counter .decoLine .text { color: var(--v-peach); }
#counter .decoLine .line { margin-top: 3px; font-size: 12px; }
#counter .startBtn {
    justify-content: flex-start;
    height: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    color: var(--v-gold);
    font: 500 34px/1 var(--v-font);
    cursor: default;
}

/* ------------------------------------------------------ notifications */
.notifications {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 360px;
    max-height: 640px;
    overflow: hidden;
}
.notification {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    padding: 14px 16px 12px;
    border-radius: var(--v-r-md);
    background: rgba(12, 13, 27, 0.94);
    box-shadow: 0 16px 40px rgba(7, 7, 15, 0.45);
    transition: transform 0.5s var(--v-ease);
}
.notification .flexBox { display: flex; align-items: center; gap: 12px; }
.notification .flexBox .icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--v-s2);
}
.notification .flexBox .icon img { width: 18px; height: 18px; }
.notification .flexBox .text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
}
.shortNotify, .longNotify { width: auto; height: auto; margin: 0; }
.notification .flexBox .text .title,
.notification .flexBox .text .wrongTittle {
    font: 500 10px/1.2 var(--v-font);
    letter-spacing: var(--v-track-wide);
    color: var(--v-peach);
}
.notification .flexBox .text .wrongTittle { color: var(--v-pink-deep); }
.notification .flexBox .text .content {
    margin: 0;
    font: 400 13.5px/1.4 var(--v-font);
    color: var(--v-lilac);
}
.progressbar {
    position: relative;
    height: 2px;
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-radius: var(--v-r-pill);
    background: var(--v-s2);
    overflow: hidden;
}
.progressbar .track { position: absolute; inset: 0; width: 100%; height: 2px; margin: 0; background: none; }
.progressbar .rdyTrack, .progressbar .wrongRdyTrack { width: 0%; height: 2px; border-radius: var(--v-r-pill); background: var(--v-sunset-line); }
.progressbar .wrongRdyTrack { background: var(--v-pink-deep); }

/* --------------------------------------------------------- small screens */
@media screen and (max-height: 540px) {
    .fixedSize { padding: 26px 28px 24px; max-height: calc(100% - 40px); }
    #headerDecoText { font-size: 32px; }
    .backgroundText .bgText { font-size: 60px; top: -12px; }
    .box { height: 56px; margin-top: 6px; }
    .decoLine { margin: 16px 0 8px; }
    .customScreenImg { height: 150px; }
    .startJob { right: 32px; bottom: 28px; }
}
@media screen and (max-height: 480px) {
    .viceSub { font-size: 12.5px; }
    .notifications { max-height: 300px; }
}

/* --------------------------------------------------------- resolution scale
   Layout is in 1080p pixels; the whole UI scales as one piece so every screen
   keeps 1080p proportions (720p ×0.72 · 1080p/ultrawide ×1 · 1440p ×1.333 · 4K ×2).
   Plate heights use % of the overlay, not vh, so they are not scaled twice. */
html, body { height: 100%; }
@media (max-width: 1500px), (max-height: 860px) { body { zoom: 0.72; } }
@media (min-width: 1501px) and (min-height: 861px) and (max-height: 1000px) { body { zoom: 0.86; } }
@media (min-width: 2300px) and (min-height: 1300px) { body { zoom: 1.3333; } }
@media (min-width: 3400px) and (min-height: 1900px) { body { zoom: 2; } }
