/* ================================================
   carl's world ♡ — style.css
   ================================================ */

/* ---- CAUSE FONT ---- */
@font-face {
    font-family: 'Cause';
    src: url('assets/Cause/Cause-VariableFont_wght.ttf') format('truetype');
}

/* ---- DYNAPUFF FONT ---- */
@font-face {
    font-family: 'DynaPuff';
    src: url('assets/DynaPuff/static/DynaPuff-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'DynaPuff';
    src: url('assets/DynaPuff/static/DynaPuff-Medium.ttf') format('truetype');
    font-weight: 500;
}
@font-face {
    font-family: 'DynaPuff';
    src: url('assets/DynaPuff/static/DynaPuff-SemiBold.ttf') format('truetype');
    font-weight: 600;
}
@font-face {
    font-family: 'DynaPuff';
    src: url('assets/DynaPuff/static/DynaPuff-Bold.ttf') format('truetype');
    font-weight: 700;
}

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&display=swap');

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; }

/* ---- VARIABLES ---- */
:root {
    --pink:        #FF80B3;
    --pink-dark:   #d9619a;
    --pink-mid:    #ffadd0;
    --pink-pale:   #ffe8f4;
    --pink-border: #FF80B3;
    --text:        #774466;
    --white:       #ffffff;
}

/* ---- BASE ---- */
body {
    font-family: 'DynaPuff', sans-serif;
    background-image: url('assets/b1.gif?v=2');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================================================
   MUSIC PLAYER — franja rosa igual al diseño
   ================================================== */
#music-player {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--pink);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-bottom: 2px solid var(--pink-dark);
    font-size: 10px;
    font-family: 'DynaPuff', sans-serif;
    color: white;
    min-height: 22px;
    margin-bottom: 12px;
}

.p-controls { display: flex; gap: 3px; align-items: center; }

.pbtn {
    background: linear-gradient(180deg, #FF99CC 0%, #FF6699 100%);
    border: 1.5px solid #FF80B3;
    border-radius: 6px;
    box-shadow: 
        0 3px 0 #d9619a,
        inset 0 2px 4px rgba(255,255,255,0.7);
    color: white;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 6px;
    line-height: 1;
    transition: transform 0.1s, box-shadow 0.1s;
}
.pbtn:hover { background: linear-gradient(180deg, #FFAAD0 0%, #FF80B3 100%); }
.pbtn:active { 
    transform: translateY(2px);
    box-shadow: 0 1px 0 #d9619a, inset 0 1px 2px rgba(255,255,255,0.5);
}

.p-progress { flex: 1; }
#prog-bar {
    width: 100%;
    cursor: pointer;
    vertical-align: middle;
}

.p-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
#track-name {
    color: white;
    font-size: 10px;
}
#prog-bar {
    --val: 0;
}
/* Estilo para los sliders y evitar el color gris/oscuro del navegador */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
    height: 12px;
}
input[type=range]:focus {
    outline: none;
}
#prog-bar::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #ffb3d9 calc(var(--val) * 1% + (9px - var(--val) * 0.18px)), white 0);
    border: 1px solid var(--pink-dark);
    border-radius: 4px;
}
#vol-bar {
    width: 55px;
    cursor: pointer;
    vertical-align: middle;
    --val: 80;
}
#vol-bar::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #ffb3d9 calc(var(--val) * 1% + (9px - var(--val) * 0.18px)), white 0);
    border: 1px solid var(--pink-dark);
    border-radius: 4px;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="%23ffcce6"/><stop offset="20%" stop-color="%23ff99cc"/><stop offset="100%" stop-color="%23ff6699"/></linearGradient><filter id="f"><feDropShadow dx="0" dy="2" stdDeviation="0" flood-color="%23d9619a"/></filter></defs><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z" fill="url(%23g)" filter="url(%23f)" stroke="%23d9619a" stroke-width="1"/></svg>') center/contain no-repeat;
    border: none;
    background-color: transparent;
    margin-top: -6px;
    cursor: pointer;
    box-shadow: none;
}

/* ==================================================
   WRAPPER — centrado, 850 px con fondo de puntos
   ================================================== */
#wrapper {
    max-width: 950px;
    margin: 0px auto;
    background-color: white;
    background-repeat: repeat;
    min-height: 100vh; /* Para que siempre llegue hasta abajo */
    position: relative;
    /* Contorno tipo encaje de esa época */
    border: 6px double var(--pink);
    outline: 2px dashed var(--pink-mid);
    outline-offset: 3px;
    border-radius: 12px;
}

/* Pseudo-elemento para el fondo rosa del header que se difumina */
#wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 380px; /* Cubre el header y el navbar */
    background-image: url('assets/r115.jpg');
    
    /* Difuminado suave: opaco en el header (200px) y transparente en el navbar */
    -webkit-mask-image: linear-gradient(to bottom, black 280px, transparent 280px);
    mask-image: linear-gradient(to bottom, rgb(0, 0, 0) 180px, transparent 280px);
    z-index: 0;
    pointer-events: none;
    border-radius: 12px 12px 0 0; /* Para no salirse del borde del wrapper */
}

/* ==================================================
   HEADER
   ================================================== */
#site-header {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

#logo-img {
    height: 224px;
    width: auto;
    margin: 0 0 -30px 350px;
    object-fit: contain;
    object-position: bottom left;
    flex-shrink: 0;
    /* Fuerza recarga ignorando caché */
    image-rendering: auto;
}

.logo-fallback {
    font-family: 'DynaPuff', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: #ff6699;
    -webkit-text-stroke: 3px white;
    text-shadow: 4px 4px 0 rgba(255,100,150,0.25);
    line-height: 1.0;
    margin: 0 0 14px 22px;
    align-self: flex-end;
    flex-shrink: 0;
}

#cinnamoroll {
    height: 250px;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    margin: 0 40px 0px 100px;
    flex-shrink: 0;
}

/* ==================================================
   NAVIGATION — píldoras con gap, fondo blanco translúcido
   EXACTO al diseño de la imagen
   ================================================== */
#navbar {
    display: flex;
    gap: 6px;
    padding: 12px 8px 16px;
    /* Degradado blanco solicitado por el usuario */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%);
    position: relative;
    z-index: 1;
}

.nbtn {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    /* PÍLDORA — border-radius más cuadrado pero redondeado */
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 13px;
    font-family: 'DynaPuff', sans-serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.22);
    /* Sombra 3D y destello blanco */
    box-shadow:
        0 4px 0 rgba(0,0,0,0.15),
        inset 0 2px 4px rgba(255,255,255,0.7);
    border: 2px solid transparent;
    display: block;
    white-space: nowrap;
    transition: transform 0.1s, box-shadow 0.1s;
}
.nbtn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 5px 0 rgba(0,0,0,0.15),
        inset 0 2px 5px rgba(255,255,255,0.8);
}
.nbtn:active {
    transform: translateY(3px);
    box-shadow:
        0 1px 0 rgba(0,0,0,0.15),
        inset 0 1px 3px rgba(255,255,255,0.5);
}

/* Colores exactos del diseño con borde */
.n-pink   { background: linear-gradient(180deg, #FF99CC 0%, #FF6699 100%); border-color: #FF80B3; }
.n-orange { background: linear-gradient(180deg, #FFBB66 0%, #FF9933 100%); border-color: #FFAA55; }
.n-green  { background: linear-gradient(180deg, #99DD77 0%, #66BB44 100%); border-color: #88CC66; }
.n-teal   { background: linear-gradient(180deg, #66DDEE 0%, #33AACC 100%); border-color: #55CCDD; }
.n-purple { background: linear-gradient(180deg, #BB99EE 0%, #8855BB 100%); border-color: #AA88DD; }

/* ==================================================
   MAIN LAYOUT
   ================================================== */
#main {
    padding: 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.row {
    display: grid;
    gap: 16px;
    width: 100%;
}

#row1 {
    grid-template-columns: 3.5fr 4.5fr 2fr;
    align-items: stretch;
}
#row2 {
    grid-template-columns: 205px 1fr;
    align-items: stretch;
}

#row3 {
    grid-template-columns: 205px 1fr;
    align-items: start;
}

/* ==================================================
   CAJAS — borde rosa con radio generoso, sombra suave
   EXACTO al diseño
   ================================================== */
.box {
    background: var(--white);
    /* Borde con doble sombra: el borde rosa + glow exterior suave */
    border: 2px solid var(--pink-border);
    border-radius: 14px;
    overflow: hidden;
    /* Sombra exterior suave como en el diseño */
    box-shadow:
        0 0 0 3px rgba(255,128,179,0.20),
        0 2px 8px rgba(255,128,179,0.15);
}

.stamp-wrapper {
    /* 3D glow shadow on the outer shape */
    filter: 
        drop-shadow(0 0 3px rgba(255,128,179,0.20))
        drop-shadow(0 2px 8px rgba(255,128,179,0.15));
}

.stamp-box {
    height: 100%;
}

.stamp-inner-wrap {
    background: white;
    height: 100%;
    overflow: hidden;
}

.stamp-inner {
    height: 100%;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}
.social-row:last-child { margin-bottom: 0; }
.social-row img {
    width: 14px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}
.social-row a {
    font-family: 'Cause', sans-serif;
    font-size: 16px;
    color: var(--pink-dark);
    text-decoration: none;
    font-weight: bold;
}
.social-row a:hover {
    text-decoration: underline;
    color: var(--pink-border);
}

@keyframes sparkleGlow {
    0%, 100% { 
        text-shadow: 0 0 4px var(--pink), 0 0 8px var(--pink); 
        filter: drop-shadow(0 0 2px var(--pink));
        transform: scale(1); 
    }
    50% { 
        text-shadow: 0 0 8px var(--pink-dark), 0 0 15px var(--pink-dark); 
        filter: drop-shadow(0 0 6px var(--pink-dark));
        transform: scale(1.05); 
    }
}
.sparkle-title {
    display: inline-block;
    color: var(--pink-dark) !important;
}
/* ==================================================
   CROSS / BOX TOP BAR — franja blanca con icono rosa
   EXACTO al diseño: fondo blanco, separador rosa suave
   ================================================== */
.box-bar {
    padding: 7px 8px 6px;
    background: white;
    border-bottom: 2px solid var(--pink-mid);
    display: flex;
    align-items: center;
}

/* El icono de cruz — cuadrado rosa redondeado con † blanco
   Igual al de la imagen */
.cross-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Fondo rosa degradado igual al diseño */
    background: linear-gradient(180deg, #FFAAD0 0%, var(--pink) 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    /* Sombra igual al diseño */
    box-shadow:
        0 3px 0 var(--pink-dark),
        0 3px 6px rgba(255,100,150,0.3);
    text-shadow: 0 1px 1px rgba(0,0,0,0.12);
    flex-shrink: 0;
    letter-spacing: 0;
}

/* ==================================================
   TÍTULOS DE SECCIÓN — barra rosa sólida ancha
   EXACTO al diseño
   ================================================== */
.sec-title {
    background: linear-gradient(180deg, #FF99CC 0%, var(--pink) 60%, #FF6699 100%);
    padding: 7px 14px;
    font-family: 'DynaPuff', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    /* Efecto 3D extra */
    box-shadow: 
        0 3px 0 var(--pink-dark),
        inset 0 2px 4px rgba(255,255,255,0.6);
    border-bottom: 2px solid var(--pink-dark);
}

/* Posts — barra rosa, texto cursivo */
.posts-title {
    background: linear-gradient(180deg, #FF99CC 0%, var(--pink) 60%, #FF6699 100%);
    font-family: 'Dancing Script', cursive;
    font-size: 22px;
    font-weight: 500;
    color: white;
    text-shadow: 1px 1px 3px rgba(150,0,80,0.3);
    padding: 8px 14px;
    box-shadow: 
        0 3px 0 var(--pink-dark),
        inset 0 2px 4px rgba(255,255,255,0.6);
    border-bottom: 2px solid var(--pink-dark);
}

/* Actualizaciones */
.updates-title {
    background: linear-gradient(180deg, #FF99CC 0%, var(--pink) 60%, #FF6699 100%);
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DynaPuff', sans-serif;
    color: white;
    box-shadow: 
        0 3px 0 var(--pink-dark),
        inset 0 2px 4px rgba(255,255,255,0.6);
    border-bottom: 2px solid var(--pink-dark);
}

/* To Do List */
.todo-title {
    background: linear-gradient(180deg, #FF99CC 0%, var(--pink) 60%, #FF6699 100%);
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DynaPuff', sans-serif;
    color: white;
    box-shadow: 
        0 3px 0 var(--pink-dark),
        inset 0 2px 4px rgba(255,255,255,0.6);
    border-bottom: 2px solid var(--pink-dark);
}

/* ==================================================
   MURO (GUESTBOOK)
   ================================================== */
#muro-box {
    display: flex;
    flex-direction: column;
    min-height: 230px;
}

#muro-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 6px 8px;
    min-height: 118px;
    background: #fff8fd;
    border-bottom: 2px solid var(--pink-mid);
}

#muro-msgs::-webkit-scrollbar { width: 2px; }
#muro-msgs::-webkit-scrollbar-track { background: var(--pink-pale); border-radius: 2px; }
#muro-msgs::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 2px; }

.no-msgs {
    color: #dda8c8;
    font-size: 11px;
    text-align: center;
    padding: 20px 6px;
    line-height: 1.65;
    font-family: 'DynaPuff', sans-serif;
}

.msg-card {
    background: var(--pink-pale);
    border-radius: 8px;
    padding: 4px 8px;
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--text);
    word-break: break-word;
    line-height: 1.5;
    font-family: 'DynaPuff', sans-serif;
}
.msg-card:last-child { margin-bottom: 0; }

.msg-user {
    font-weight: 400;
    color: var(--pink);
    margin-right: 4px;
}

.msg-date {
    display: block;
    font-size: 9px;
    color: #ccaabb;
    text-align: right;
    margin-top: 2px;
}

/* Form */
.muro-form { 
    padding: 6px 8px 8px; 
    position: relative; 
}

.mf-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
}

.mf-lbl {
    font-size: 10px;
    color: var(--text);
    white-space: nowrap;
    min-width: 56px;
    font-family: 'DynaPuff', sans-serif;
}

.mf-row input[type="text"] {
    flex: 1;
    border: 1.5px solid var(--pink-mid);
    border-radius: 8px;
    padding: 3px 6px;
    font-size: 8px;
    font-family: 'DynaPuff', sans-serif;
    background: #fff0f8;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mf-row input[type="text"]:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 4px rgba(255,128,179,0.2);
}

/* Botón "go" — mini píldora rosa */
#btn-go {
    background: linear-gradient(180deg, #FFAAD0, var(--pink));
    color: white;
    border: none;
    border-radius: 20px;
    padding: -10 2px;
    font-size: 0px;
    font-weight: 400;
    font-family: 'DynaPuff', sans-serif;
    box-shadow: 0 2px 0 var(--pink-dark), 0 2px 4px rgba(255,100,150,0.3);
    transition: transform 0.1s, box-shadow 0.1s;
}
#btn-go:active { transform: translateY(2px); box-shadow: 0 0 0 var(--pink-dark); }

.mf-btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

/* Botón stickers */
#btn-sticker {
    background: linear-gradient(180deg, #FF99CC, var(--pink));
    border: none;
    border-radius: 11px;
    padding: 5px 16px;
    font-size: 10px;
    color: white;
    font-family: 'DynaPuff', sans-serif;
    font-weight: 400;
    box-shadow: 0 3px 0 var(--pink-dark), 0 3px 6px rgba(255,80,130,0.3);
    transition: transform 0.1s, box-shadow 0.1s;
}
#btn-sticker:hover { transform: translateY(-1px); }
#btn-sticker:active { transform: translateY(2px); box-shadow: 0 0 0 var(--pink-dark); }

/* Botón "enviar" — píldora rosa igual al diseño */
#btn-enviar {
    background: linear-gradient(180deg, #FF99CC, var(--pink));
    color: white;
    border: none;
    border-radius: 11px;
    padding: 5px 16px;
    font-size: 10px;
    font-weight: 400;
    font-family: 'DynaPuff', sans-serif;
    box-shadow: 0 3px 0 var(--pink-dark), 0 3px 6px rgba(255,80,130,0.3);
    transition: transform 0.1s, box-shadow 0.1s;
}
#btn-enviar:hover { transform: translateY(-1px); }
#btn-enviar:active { transform: translateY(2px); box-shadow: 0 0 0 var(--pink-dark); }

/* Sticker popup */
#sticker-popup {
    position: absolute;
    bottom: 35px;
    left: 8px;
    z-index: 1000;
    max-width: 220px;
    background: white;
    border: 2px solid var(--pink-mid);
    border-radius: 11px;
    padding: 10px;
    box-shadow: 0 4px 14px rgba(255,150,200,0.28);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
#sticker-popup.hidden { display: none; }

.sk {
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    border-radius: 7px;
    transition: background 0.1s, transform 0.1s;
    user-select: none;
    line-height: 1;
}
.sk:hover { background: var(--pink-pale); transform: scale(1.2); }

/* ==================================================
   INTRO BOX
   ================================================== */
#intro-box { display: flex; flex-direction: column; }

.intro-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px 14px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--pink-dark);
    max-height: 260px;
    font-family: 'DynaPuff', sans-serif;
}

.intro-scroll::-webkit-scrollbar { width: 2px; }
.intro-scroll::-webkit-scrollbar-track { background: var(--pink-pale); border-radius: 2px; }
.intro-scroll::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 2px; }
.intro-scroll p { margin-bottom: 10px; }

.intro-sticker-space {
    float: right;
    width: 70px;
    height: 70px;
    margin: 0 0 8px 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-marquee {
    margin: 0;
    padding: 0;
    line-height: 1;
    display: block;
    height: 14px;
}

/* ==================================================
   GIF GALLERY — label rosa con corazones
   ================================================== */
#gif-box {
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

/* Label "♥ Gifs de la semana ♥" — fondo rosa degradado */
.gif-label {
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    color: white;
    padding: 8px 6px;
    background: linear-gradient(180deg, #FF99CC 0%, var(--pink) 60%, #FF6699 100%);
    border-bottom: 2px solid var(--pink-dark);
    font-family: 'DynaPuff', sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.18);
    box-shadow: 
        0 2px 0 var(--pink-dark),
        inset 0 2px 4px rgba(255,255,255,0.6);
}

.gif-viewer {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 5px;
    gap: 3px;
}

.gif-frame {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 10px;
    overflow: hidden;
    min-height: 110px;
}

#gif-img {
    max-width: 100%;
    max-height: 118px;
    object-fit: contain;
    display: block;
}

/* Flechas ‹ › — círculo rosa con relieve, EXACTO al diseño */
.gif-arr {
    background: linear-gradient(180deg, #FFAAD0, var(--pink));
    color: white;
    border: none;
    border-radius: 30%;
    width: 20px;
    height: 20px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 0 var(--pink-dark), 0 3px 8px rgba(255,100,150,0.35);
    transition: transform 0.1s, box-shadow 0.1s;
    flex-shrink: 0;
}
.gif-arr:hover { transform: translateY(-1px); }
.gif-arr:active { transform: translateY(2px); box-shadow: 0 0 0 var(--pink-dark); }

/* ==================================================
   POSTS
   ================================================== */
#posts-box { display: flex; flex-direction: column; }

.posts-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px;
    min-height: 200px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.78;
    font-family: 'DynaPuff', sans-serif;
}

.posts-scroll::-webkit-scrollbar { width: 4px; }
.posts-scroll::-webkit-scrollbar-track { background: var(--pink-pale); border-radius: 2px; }
.posts-scroll::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 2px; }

/* ==================================================
   CALENDARIO estilo 2000s
   ================================================== */
#cal-box { padding: 0; overflow: hidden; }

.cal-wrap { font-size: 11px; }

/* Encabezado del calendario — barra rosa como el diseño */
.cal-head {
    background: linear-gradient(180deg, #FF99CC 0%, var(--pink) 60%, #FF6699 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    color: white;
    font-weight: 500;
    font-size: 13px;
    font-family: 'DynaPuff', sans-serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    border-bottom: 2px solid var(--pink-dark);
    box-shadow: 
        0 3px 0 var(--pink-dark),
        inset 0 2px 2px rgba(255,255,255,0.6);
}

.cal-nav-btn {
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.55);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    padding: 2px 9px;
    font-size: 9px;
    font-weight: bold;
    font-family: monospace;
    transition: background 0.12s;
}
.cal-nav-btn:hover { background: rgba(255,255,255,0.55); }

.cal-tbl {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-family: 'DynaPuff', sans-serif;
}

.cal-tbl thead th {
    background: linear-gradient(180deg, #FFE4F4, #FFD0E8);
    color: var(--pink-dark);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 2px;
    text-align: center;
    border: 1px solid #FFCCE0;
}

.cal-tbl tbody td {
    text-align: center;
    padding: 5px 2px;
    font-size: 11px;
    color: var(--text);
    border: 1px solid #FFE8F4;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.1s;
}
.cal-tbl tbody td:not(:empty):hover { background: var(--pink-pale); }

.cal-today {
    background: var(--pink) !important;
    color: white !important;
    font-weight: 700 !important;
    border-radius: 50%;
}

.cal-empty { background: #FFF8FC; }

/* ==================================================
   RIGHT COL — Actualizaciones + Todo
   ================================================== */
#right-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: start;
}

#updates-box,
#todo-box {
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.updates-list { padding: 8px 10px; }
.update-item {
    font-size: 11px;
    color: var(--text);
    line-height: 1.8;
    padding: 4px 0;
    border-bottom: 1px dotted #FFD8EE;
    font-family: 'DynaPuff', sans-serif;
}
.update-item:last-child { border-bottom: none; }

.todo-list { padding: 8px 10px; }
.todo-item {
    font-size: 11px;
    color: var(--text);
    line-height: 1.88;
    padding: 2px 0;
    font-family: 'DynaPuff', sans-serif;
}

/* ==================================================
   GIF STRIP — franja de gifs desplazable
   ================================================== */
#gif-strip {
    overflow: hidden;
    background: transparent;
    padding: 5px 0;
    margin-top: 8px;
}

.strip-track {
    display: flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.strip-track img {
    height: 58px;
    width: auto;
    border: none;
    border-radius: 3px;
    display: block;
}

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

#gif-strip:hover .strip-track { animation-play-state: paused; }

/* ==================================================
   CONVEX SCALLOPED EDGE (Like a flower or cloud)
   ================================================== */
.scalloped-box {
    -webkit-mask:
        linear-gradient(black, black) center / calc(100% - 20px) calc(100% - 20px) no-repeat,
        radial-gradient(circle at center, black 10px, transparent 10.5px) left top / 20px 20px round;
    mask:
        linear-gradient(black, black) center / calc(100% - 20px) calc(100% - 20px) no-repeat,
        radial-gradient(circle at center, black 10px, transparent 10.5px) left top / 20px 20px round;
    filter: 
        drop-shadow(2px 0px 0px var(--pink-border))
        drop-shadow(-2px 0px 0px var(--pink-border))
        drop-shadow(0px 2px 0px var(--pink-border))
        drop-shadow(0px -2px 0px var(--pink-border));
}
