* {
    box-sizing: initial;
    margin: 0;
    padding: 0;
    user-select: none;
}

:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
    --bh-sys-accnt-col: #393939;
}

@supports (font-variation-settings: normal) {
    :root {
        font-family: InterVariable, sans-serif;
    }
}

@font-face {
    font-family: 'Emoji';
    src: url(fonts/AppleColorEmoji.ttf);
}

@font-face {
    font-family: 'Icons';
    src: url(fonts/IconsRegular.otf);
}

body {
    width: 100%;
    height: 100%;
    font-family: 'Inter', 'Emoji', Roboto, Segoe UI, --apple-system, system-ui, sans-serif;
}

html, body {
    overflow-x: hidden;
}

img {
    user-select: none;
}

[stretchy] {
    position: relative;
    overflow: hidden;
    user-select: none;
    transition: transform 0.15s ease;
    transform-origin: center;
}

[stretchy] .spotlight {
    position: absolute;
    width: 100px;
    height: 100px;
    background: #fff;
    filter: blur(72px);
    opacity: 0;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

[stretchy]:active {
    transform: scale(1.08);
}

svg {
    position: absolute;
    width: 0;
    height: 0;
}

.button-container {
    filter: url(#gooey);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 500px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    right: 0;
    z-index: 100;
    padding: 20px;
    box-sizing: border-box;
}

.top-bar .left, .top-bar .center, .top-bar .right {
    min-width: 0;
}

.top-bar .left {
    display: flex;
    gap: 5px;
}

.top-bar .right ul {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.top-bar .right ul li {
    list-style-type: none;
    padding: 10px;
    position: relative;
    border-radius: 64px;
    transition:  background 0.2s ease, color 0.2s ease, transform 0.25s cubic-bezier(.17,.67,0,1.52), border-radius 0.2s ease, box-shadow 0.3s ease;
    flex-shrink: 1;
    white-space: nowrap;
    min-width: 0;
}

.top-bar .right ul li:hover {
    border-radius: 12px;
    color: #fff;
    background: var(--bh-sys-accnt-col);
}

.top-bar .right ul li:active {
    transform: scale(1.3) rotate(-5deg);
    border-radius: 8px;
}

.top-bar .right ul li:active {
    background: #ffffff;
    color: var(--bh-sys-accnt-col);
    box-shadow: 0 1px 150px 0 #000;
}

.top-bar .right ul li  a {
    text-decoration: none;
    color: #000;
}

.favicon {
    width: 32px;
    height: 32px;
    background: url(favicon.png) no-repeat center center;
    background-size: cover;
    transition: transform 0.35s cubic-bezier(.17,.67,0,1.52);
}

.favicon:active {
    transform: scale(1.5) rotate(-10deg);
    background-image: url(favicon_f1.png);
}

.byhair_text {
    width: 87px;
    height: 34px;
    background: url(byhair_text.png) no-repeat center center;
    background-size: cover;
    -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 35%,
    black 65%,
    transparent 100%
  );
    mask-image: linear-gradient(
    90deg,
    transparent 9%,
    black 35%,
    black 65%,
    transparent 95%
  );
    -webkit-mask-size: 300% 100%;
    mask-size: 1000% 100%;
    -webkit-mask-position: 0% 0%;
    mask-position: -5% 0%;
    transition: mask-position 2s cubic-bezier(0.22, 1, 0.36, 1),
              -webkit-mask-position 2s cubic-bezier(0.22, 1, 0.36, 1), filter 2s ease;
}

.byhair_text.show {
  -webkit-mask-position: 100% 0%;
  mask-position: -50% 0%;
}

.header.header__main  {
    font-family: "Phudu", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

p.intro {
    font-family: "IBM Plex Mono", 'Emoji', monospace;
    font-weight: 400;
    font-style: normal;
}

.gradient-blur {
  position: fixed;
  z-index: 99;
  inset: 0 0 auto 0;
  height: 200px;
  transform: rotate(180deg);
  pointer-events: none;
}
.gradient-blur > div,
.gradient-blur::before,
.gradient-blur::after {
  position: absolute;
  inset: 0;
}
.gradient-blur::before {
  content: "";
  z-index: 1;
  backdrop-filter: blur(0.5px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 12.5%,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 0) 37.5%
  );
}
.gradient-blur > div:nth-of-type(1) {
  z-index: 2;
  backdrop-filter: blur(1px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 12.5%,
    rgba(0, 0, 0, 1) 25%,
    rgba(0, 0, 0, 1) 37.5%,
    rgba(0, 0, 0, 0) 50%
  );
}
.gradient-blur > div:nth-of-type(2) {
  z-index: 3;
  backdrop-filter: blur(2px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 1) 37.5%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 0) 62.5%
  );
}
.gradient-blur > div:nth-of-type(3) {
  z-index: 4;
  backdrop-filter: blur(4px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 37.5%,
    rgba(0, 0, 0, 1) 50%,
    rgba(0, 0, 0, 1) 62.5%,
    rgba(0, 0, 0, 0) 75%
  );
}
.gradient-blur > div:nth-of-type(4) {
  z-index: 5;
  backdrop-filter: blur(8px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 1) 62.5%,
    rgba(0, 0, 0, 1) 75%,
    rgba(0, 0, 0, 0) 87.5%
  );
}
.gradient-blur > div:nth-of-type(5) {
  z-index: 6;
  backdrop-filter: blur(16px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 62.5%,
    rgba(0, 0, 0, 1) 75%,
    rgba(0, 0, 0, 1) 87.5%,
    rgba(0, 0, 0, 0) 100%
  );
}
.gradient-blur > div:nth-of-type(6) {
  z-index: 7;
  backdrop-filter: blur(32px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 75%,
    rgba(0, 0, 0, 1) 87.5%,
    rgba(0, 0, 0, 1) 100%
  );
}
.gradient-blur::after {
  content: "";
  z-index: 8;
  backdrop-filter: blur(64px);
  mask: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 87.5%,
    rgba(0, 0, 0, 1) 100%
  );
}

.marquee {
    font-size: 1.8vw;
    color: #854b00;
    font-family: "IBM Plex Mono", 'Emoji', monospace;
    height: 2.5vw;
    overflow: hidden;
    position: relative;
}

.marquee div {
    display: block;
    width: 200%;
    position: absolute; 
    overflow: hidden;
    animation: marquee 12s linear infinite;
}

.marquee span {
    float: left;
    width: 50%;
}

@keyframes marquee {
    0% { left: 0; }
    100% { left: -100%; }
}

br {
    user-select: none;
}

.grid_intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid #ddd;
    backdrop-filter: blur(10px);
    width: 420px;
    height: 350.84px !important;
    padding: 25px;
    border-radius: 14px;
    position: relative;
    transition: width 0.35s cubic-bezier(.17,.67,0,1.52), border-radius 0.35s ease, background 0.35s ease;
}

.grid-item:first-child {
    border-radius: 48px 14px 14px 48px;
}

.grid-item:last-child {
    border-radius: 14px 48px 48px 14px;
}

.grid-item img {
    width: 100% ;
}

.grid-item:hover {
    color: #ffffff;
    background: var(--bh-sys-accnt-col);
    background-blend-mode: darken;
}

.grid-item:active {
    width: 490px;
    border-radius: 48px;
    background: #ffffff;
    color: var(--bh-sys-accnt-col);
}

.avatar-with-frame {
    position: relative;
}

.rentry-heart-frame-baby-blue {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.3);
    width: 64px; height: 64px;
    
    background: url(cdnassets/avatar-frame-3901929388494.png) no-repeat center center;
    background-size: cover;
    border-radius: 14px;
}

*{
    margin: 0;
    padding: 0;
}
.rate {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    height: 46px;
    padding: 0 10px;
}
.rate:not(:checked) > input {
    position:absolute;
    top:-9999px;
}
.rate:not(:checked) > label {
    width:1em;
    height: 1em;
    white-space:nowrap;
    cursor:pointer;
    font-size:30px;
    color:#ccc;
    font-family: 'Icons';
}
.rate:not(:checked) > label:before {
    content: '􀋃';
}
.rate > input:checked ~ label {
    color: #ffc700;    
}
.rate:not(:checked) > label:hover,
.rate:not(:checked) > label:hover ~ label {
    color: #deb217;  
}
.rate > input:checked + label:hover,
.rate > input:checked + label:hover ~ label,
.rate > input:checked ~ label:hover,
.rate > input:checked ~ label:hover ~ label,
.rate > label:hover ~ input:checked ~ label {
    color: #c59b08;
}

i.icon {
    font-family: 'Icons';
    font-style: normal;
}

.rate_stars.active_full {
    color: #deb217;
}

.rate_stars.active_half {
    background: linear-gradient(90deg,rgba(222, 178, 23, 1) 50%, rgba(199, 199, 199, 1) 50%);
    background-clip: text;
    color: #00000000;
}

.rate_stars {
    color: #ccc;
}

.card_review .name_inf {
    display: flex;
    gap: 10px;
}

.card_review .name_inf img {
    border-radius: 64px;
}

.card_review .name_inf .names {
    display: flex;
    flex-direction: column;
}

.card_review {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 24px;
    transition: all 0.3s ease;
    width: fit-content;
    backdrop-filter: blur(15px);
}

.card_review:hover {
    box-shadow: 0 0 190px -50px var(--bh-sys-accnt-col);
}

.grid_reviews {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.border1 {
    width: 100%; 
    height: 53px;
    background: url(cdnassets/border1.gif) ;
    background-repeat: repeat-x;
    position: fixed;
    top: -100%;
    left: 0;
    z-index: 1000;
}

.border2 {
    width: 100%; 
    height: 53px;
    background: url(cdnassets/border2.gif) ;
    background-repeat: repeat-x;
    position: fixed;
    bottom: -100%;
    left: 0;
    z-index: 1000;
}

.border1.show {top: 0;}
.border2.show {bottom: 0;}


.window {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

.menu {
    position: fixed;
    z-index: 1000;
}
/*
button {
    border: none;
    padding: 10px;
    border-radius: 7px;
    box-shadow: 0 4px 0 0 #989898;
    background: #ddd;
    position: relative;
    transform-origin: bottom center;
    transition: all 0.2s ease;
}

button span {
    position: relative; 
    z-index: 10;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff6a;
    border-radius: 7px;
    z-index: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}  

button:active {
    transform: scale(0.9) translateY(4px);
    box-shadow: 0 0 0 0 #989898;
}

button:active::before {
    transform: scale(1);
}

input {
    padding: 10px;
    border-radius: 0;
    border: 1px solid #ddd;
    outline: none;
    transition: all 0.3s ease;
}

input:active 
{
    border-radius: 36px;
}
    */

.dialog-container {
        display: flex;
        gap: 15px;
    }

    /* Left Panel */
    .left-panel {
        display: flex;
        flex-direction: column;
        width: 220px;
    }

    .section-title {
        margin-bottom: 4px;
    }

    .color-grid {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 2px;
        margin-bottom: 12px;
    }

    .swatch-container {
        width: 21px;
        height: 21px;
        box-sizing: border-box;
        border: 1px solid transparent;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .swatch-container.selected {
        border: 1px dotted #000;
    }

    .swatch {
        width: 17px;
        height: 17px;
        box-sizing: border-box;
        border-top: 1px solid #808080;
        border-left: 1px solid #808080;
        border-bottom: 1px solid #fff;
        border-right: 1px solid #fff;
        position: relative;
        cursor: pointer;
    }

    .swatch::after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        border-top: 1px solid #000;
        border-left: 1px solid #000;
        border-bottom: 1px solid #c0c0c0;
        border-right: 1px solid #c0c0c0;
    }

    .define-btn {
        width: 100%;
        margin-bottom: 8px;
        height: 23px;
    }

    .action-buttons {
        display: flex;
        gap: 5px;
    }

    .action-buttons .win-button {
        width: 70px;
        height: 23px;
    }

    /* Right Panel */
    .right-panel {
        display: flex;
        flex-direction: column;
    }

    .palette-area {
        display: flex;
        gap: 12px;
        margin-bottom: 10px;
    }

    .canvas-container {
        position: relative;
        border-top: 1px solid #808080;
        border-left: 1px solid #808080;
        border-bottom: 1px solid #fff;
        border-right: 1px solid #fff;
    }
    
    .canvas-inner-border {
        border-top: 1px solid #000;
        border-left: 1px solid #000;
        border-bottom: 1px solid #c0c0c0;
        border-right: 1px solid #c0c0c0;
        display: flex;
    }

    #palette {
        cursor: crosshair;
    }

    #lum-slider {
        cursor: pointer;
    }

    /* Pointers */
    #crosshair {
        position: absolute;
        width: 13px;
        height: 13px;
        pointer-events: none;
        transform: translate(-50%, -50%);
    }
    
    #crosshair .line {
        position: absolute;
        background: #000;
    }

    #lum-ptr-container {
        position: absolute;
        right: -10px;
        top: 0;
        width: 10px;
        height: 100%;
        pointer-events: none;
    }

    #lum-ptr {
        position: absolute;
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-right: 6px solid #000;
        transform: translateY(-50%);
    }

    /* Inputs Area */
    .inputs-area {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
        align-items: flex-end;
    }

    .preview-box {
        width: 60px;
        height: 45px;
        border-top: 1px solid #808080;
        border-left: 1px solid #808080;
        border-bottom: 1px solid #fff;
        border-right: 1px solid #fff;
        position: relative;
    }
    
    .preview-box-inner {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        border-top: 1px solid #000;
        border-left: 1px solid #000;
        border-bottom: 1px solid #c0c0c0;
        border-right: 1px solid #c0c0c0;
        background-color: #000; /* Default */
    }

    .preview-label {
        text-align: center;
        margin-top: 2px;
    }

    .inputs-table {
        border-collapse: collapse;
    }

    .inputs-table td {
        padding: 2px 2px;
        vertical-align: middle;
    }

    .win-input {
        width: 25px;
        height: 14px;
        border-top: 1px solid #808080;
        border-left: 1px solid #808080;
        border-bottom: 1px solid #fff;
        border-right: 1px solid #fff;
        background-color: #fff;
        padding: 1px 2px;
        font-family: inherit;
        font-size: 11px;
        outline: none;
    }

    .add-btn {
        width: 100%;
        height: 23px;
    }

.inputs-table {
    background: none !important;
    border: none !important;

}

.list {
    display: flex;
    flex-direction: column; 
    gap: 10px
    ;
}

.list .list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-button {
    background: none;
    border: none;
    box-shadow: none;
    width: 23px !important;
    min-width: 23px !important;
    padding: 0;
}

button.action-button::before {
    background: linear-gradient(#e6e6e693 45%,#cccccccb 0,#bababab1, #e6e6e651);
}

button.action-button:active::before {
    background: linear-gradient(#c3c3c393 45%,#aaaaaacb 0,#959595b1, #bbbbbb51) !important;
}

button.action-button::after
{
    box-shadow: none !important;
    border: none;
}

img {
    pointer-events: none;
}

.window-wrapper {
    perspective: 1000px;
    transform-style: preserve-3d;
    z-index: 10000;
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.window-wrapper .window {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: rotateX(-35deg);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s linear, opacity 0.45s ease;
    transform-origin: top;
}

.window.opened {
    transform: rotateX(0);
    opacity: 1;
    pointer-events: all;
    transform-origin: top !important;
}

.window.closed {
    transform-origin: bottom;
    transform: rotateX(35deg);
    opacity: 0;
}

.add-sticker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5) !important;
    z-index: 10000;
    padding: 10px;
    opacity: 0;
    pointer-events: none;
}

.add-sticker-overlay.opened {
    opacity: 1;
    pointer-events: all;
}

.add-sticker-overlay .toolbar {
    width: 100%;
    height: 97%;
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 10px
    ;
}

@media screen and (max-width: 800px) {
    h1 {
        width: 100% !important;
        font-size: 48px !important;
    }
    .bh-info {
        flex-direction: column;
        margin-top: 300px !important;
    }
    .top-bar {
        width: 100vw !important;
        transform: none;
        left: 0;
    }
    .grid-item {border-radius: 48px !important;}
    .grid-item:active {border-radius: 14px !important;}
}

.content {
    width: 100%;
}

.scr1 {
    width: 75%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 10%);
}

.scr2 {
    width: 65%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}