html, body {
    font-family: 'VT323', monospace;
    font-size: 18px;
  }
  
  
  .card-title { font-weight:700; }
  .card-sub { color:var(--muted); font-size:.85rem; }
  
    /* Card 1: Group Tasks List */
    #groupTasks { padding: 10px 12px 14px; display:grid; gap:10px; }
    #projectFilter { padding:8px 10px; border-radius:8px; border:1px solid rgb(255, 255, 255); background:#ffffff92; color:var(--text); }
    #taskList { list-style:none; padding:0; margin:0; }
    .task-row {
      display:grid; grid-template-columns: minmax(0,1fr) auto; gap:10px; align-items:center;
      padding:px; margin:px 0; border:1px solid rgba(130, 130, 130, 0.5); background:rgb(221, 221, 221); border-radius:10px; }
    .task-title { font-weight:600; font-size: 0.75rem; font-weight: 600;}
  
  .task-meta {
    font-size: 0.85rem;
    opacity: 0.85;
  }
  
    .task-meta { color:var(--muted); font-size:.85rem; }
    .done .task-title { text-decoration: line-through; color:#007510; }
    .btn-sm { padding:4px 8px; border-radius:8px; }


    .guild-header {
        display: flex;
        align-items: center;
        gap: 12px; /* more spacing */
      
        font-size: 28px;                 /* ✅ bigger text */
        font-family: 'VT323', monospace; /* matches your UI */
      }
      

      .guild-icon {
        width: 40px;      /* ✅ bigger icon */
        height: 40px;
        box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        border-radius: 50%;
        object-fit: cover;
        image-rendering: pixelated;

              /* Hexagon shape */
              clip-path: polygon(
                30% 5%, 70% 5%,
                95% 50%,
                70% 95%, 30% 95%,
                5% 50%
              );

        border: 2px solid;
        border-color: #ffffff #808080 #808080 #ffffff; /* ✅ game-style border */
      
        background: #d8d8d8;
      }
      
      
  
  /* ===== Card 2: Calendar ===== */
  #calendar { min-height:520px; }
  
  #koImage {
    position:absolute;
    width:200px;
    display:none;
  }
  
  /* Damage effects */
  .boss-hit {
    animation: flash .15s ease-in-out 2, shake .3s ease;
  }
  @keyframes flash {
    0%{filter:brightness(1);}
    50%{filter:brightness(2) saturate(2);}
    100%{filter:brightness(1);}
  }
  @keyframes shake {
    0%{transform:translateX(0);}
    25%{transform:translateX(-6px);}
    50%{transform:translateX(6px);}
    75%{transform:translateX(-4px);}
    100%{transform:translateX(0);}
  }
  
  /* Boss HP + reward bar */
  .bar {
    width:90%;
    height:16px;
    border:1px solid #555;
    border-radius:8px;
    overflow:visible;
    position:relative;
  }
  #bossHpBar {
    height:100%;
    background:#ff5b5b;
    width:100%;
  }
  #rewardIcon {
    position:absolute;
    right:-44px;
    top:50%;
    transform:translateY(-50%);
    width:32px;
    height:32px;
    image-rendering:pixelated;
  }
  
  #memberATKS div { font-size:.85rem; }
  footer { text-align:center; color:var(--muted); padding:18px; }
  /* ===== Add Member Button (Fake) ===== */
  

.icon-card {
    display: flex;
    align-items: center;
    justify-content: center;
  
    padding: 6px;
  }
  .icon-button {
    width: 100%;
    height: 100%;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    background: #c0c0c0;
  
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
  
    border-radius: 10px;
  
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  
    text-decoration: none;
  
    transition: all 0.12s ease;
  }
  .icon-button img {
    width: 60%;   /* ✅ scales with card size */
    height: 60%;
    object-fit: contain;
  
    image-rendering: pixelated;
  
    transition: transform 0.1s ease;
  }
  .icon-button:hover {
    background: #dcdcdc;
    transform: translateY(-3px);
  }
  
  .icon-button:hover img {
    transform: scale(1.1);
  }
  
  .icon-button:active {
    border-color: #808080 #ffffff #ffffff #808080;
    transform: translateY(1px);
    box-shadow: inset 1px 1px 4px rgba(0,0,0,0.4);
  }
  
  .team-member.add-member {
    cursor: pointer;
    opacity: 0.9;
    border: 1px dashed rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.15);
  }
  
  .team-member.add-member:hover {
    background: rgba(255,255,255,0.25);
    opacity: 1;
  }
  
  /* Plus icon avatar */
  .add-member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px dashed rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.4);
  }
  .task-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .task-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
  }
  
  .task-title {
    font-weight: 600;
  }
  
  .task-meta {
    font-size: .8rem;
    color: var(--muted);
  }
  
  .task-actions button,
  .task-actions a {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #444;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
  }
  
  .btn-sm {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: var(--text);
    cursor: pointer;
    font-size: 0.9rem;
  }
  
  .btn-sm:hover {
    background: rgba(255,255,255,0.18);
  }
  /* ===== Task completion FX ===== */
  
  .points-popup {
    position: fixed;
    font-family: 'VT323', monospace; /* ✅ Google font applied */
    font-size: 28px;                 /* VT323 looks best large */
    letter-spacing: 1px;
    color: #ffd54f;
    pointer-events: none;
    z-index: 9999;
  
    text-shadow:
      0 0 6px rgba(255, 213, 79, 0.8),
      0 0 12px rgba(255, 213, 79, 0.4);
  
    animation: floatUpFade 1.2s ease forwards;
  }
  
  @keyframes floatUpFade {
    0%   { opacity: 0; transform: translateY(0) scale(0.8); }
    20%  { opacity: 1; transform: translateY(-10px) scale(1); }
    100% { opacity: 0; transform: translateY(-40px) scale(1); }
  }
  
  
  .task-complete-btn {
    transition: transform .15s ease, background .15s ease;
  }
  
  .task-complete-btn:active {
    transform: scale(0.92);
  }
  
  .task-row.completed {
    animation: taskFadeOut .4s ease forwards;
  }
  
  @keyframes taskFadeOut {
    to {
      opacity: 0;
      height: 0;
      margin: 0;
      padding: 0;
    }
  }
  
  .progress-wrapper {
    width: 100%;
    margin-top: 12px;
  }
  
  .progress-bar {
    position: relative;
    height: 18px;
    background: #ff3700;
    border-radius: 20px;
  }
  
  .progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #ffffff, #c6c6c6);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    transition: width 0.4s ease;
  }
  
  /* Reward icons */
  .reward {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    opacity: 0.35;
    transition: 0.3s ease;
  }
  
  .reward.unlocked {
    opacity: 1;
    transform: translate(-50%, -55%) scale(1.1);
  }
  
  .reward-label {
    position: absolute;
    top: 110%;
    font-size: 0.7rem;
    color: #555;
    white-space: nowrap;
  }
  
  .reward.unlocked .reward-label {
    color: #2e7d32;
    font-weight: 700;
  }
  
  
  .task-divider {
    border: none;
    border-top: 1px dashed rgba(255, 0, 0, 0.25);
    margin: 12px 0;
  }
  
  
  .task-meta div {
    font-size: 0.75rem;
    opacity: 0.85;
  }
  
  /* ===== Boss Milestone Pins ===== */
  .boss-milestone {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.4;
    transition: 0.3s ease;
  }
  
  .boss-milestone.unlocked {
    opacity: 1;
    background: #fff;
    transform: translate(-50%, -55%) scale(1.15);
  }
  
  .boss-milestone-label {
    position: absolute;
    top: 110%;
    font-size: 0.7rem;
    white-space: nowrap;
    color: #555;
  }
  
  .boss-milestone.unlocked .boss-milestone-label {
    color: #2e7d32;
    font-weight: 700;
  }
  
  /* ===== Milestone Unlock Animation ===== */
  @keyframes milestonePop {
    0%   { transform: translate(-50%, -50%) scale(1); }
    40%  { transform: translate(-50%, -55%) scale(1.4); }
    70%  { transform: translate(-50%, -50%) scale(0.95); }
    100% { transform: translate(-50%, -55%) scale(1.15); }
  }
  
  @keyframes milestoneGlow {
    0%   { box-shadow: 0 0 0 rgba(255, 213, 79, 0); }
    50%  { box-shadow: 0 0 18px rgba(255, 213, 79, 0.9); }
    100% { box-shadow: 0 0 10px rgba(255, 213, 79, 0.6); }
  }
  
  .boss-milestone.unlock-anim {
    animation:
      milestonePop 0.45s ease-out,
      milestoneGlow 0.6s ease-out;
  }
  
  /* ===== Milestone Toast Notification ===== */
  .milestone-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 220px;
    padding: 12px 16px;
    background: #ffffff;
    color: #333;
    border-radius: 12px;
    font-size: 0.85rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    animation: toastInOut 3s ease forwards;
  }
  
  .milestone-toast strong {
    color: #2e7d32;
  }
  
  @keyframes toastInOut {
    0%   { opacity: 0; transform: translateY(-10px); }
    15%  { opacity: 1; transform: translateY(0); }
    85%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
  }
  
  @keyframes toastInOut {
    0%   { opacity: 0; transform: translateY(-10px); }
    15%  { opacity: 1; transform: translateY(0); }
    85%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
  }
  
  /* ===== Chat Card Styling ===== */
  
  .chat-body {
    background: #dadada;
    padding: 8px;
  }
  
  .chat-messages {
    height: 100%;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: "VT323", monospace;
    font-size: 18px;
  }
  
  .chat-message {
    padding: 6px 8px;
    background: #ffffff;
    border: 1px solid #808080;
    border-radius: 6px;
    box-shadow: inset 1px 1px 0 #fff;
  }
  
  /* Input area */
  .chat-input {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-top: 2px solid #808080;
    background: #c0c0c0;
  }
  
  .chat-input input {
    flex: 1;
    padding: 6px;
    font-family: "VT323", monospace;
    font-size: 18px;
    border: 2px inset #808080;
  }
  
  .chat-input button {
    padding: 6px 12px;
    font-family: "VT323", monospace;
    font-size: 18px;
    border: 2px outset #fff;
    background: #dfdfdf;
    cursor: pointer;
  }
  
  .chat-input button:active {
    border-style: inset;
  }
  
  /* ===== TASK ITEMS: NOT VT323 ===== */
  .task-row,
  .task-row * {
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif !important;
  
    image-rendering: auto !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  
  }
  
  .task-meta {
    font-size: 0.7rem;   /* adjust this value */
  }
  
  #card5 {
    aspect-ratio: 1 / 1;      /* ensures perfect circle */
    border-radius: 50%;
    overflow: hidden;         /* clips inner content */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #analogClock {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
  }
  
  #hourHand, #minuteHand, #secondHand {
    position: absolute;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%);
  }
  
  #hourHand {
    width: 6px;
    height: 40px;
    background: white;
    top: 30px;
    border-radius: 3px;
  }
  
  #minuteHand {
    width: 4px;
    height: 55px;
    background: white;
    top: 15px;
    border-radius: 2px;
  }
  
  #secondHand {
    width: 2px;
    height: 60px;
    background: #f44336;
    top: 10px;
  }
  #clockCenter {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
      .btn-sm,
    .chat-input button {
      padding: 10px 14px;
      font-size: 1rem;
    }
  
    .chat-input input {
      font-size: 1rem;
      padding: 10px;
    }
  
    .task-row {
      gap: 12px;
    }
  
    .window {
      height: 100%;
  
    }
  /* ✅ RESTORE VERTICAL BREATHING ROOM BETWEEN CARDS */
  .grid-stack-item-content {
    padding-top: 12px;
    padding-bottom: 12px;
    box-sizing: border-box;
  }
  
  .window-wrapper {
    height: 100%;
    margin-bottom: 8px; /* ✅ visual separation */
  }
  
  #leftGrid .grid-stack-item {
    margin-bottom: 28px;
  }
  
  .study-area {
    display: flex;
    justify-content: center;   /* center everything */
    align-items: center;
    gap: 20px;
    height: 100%;
  }
  
  /* Each item box */
  
  .pet-preview-wrapper {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
    transform: none !important;
  
    width: auto !important;
    height: auto !important;
  }

  .study-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  
    width: 100px;          /* ✅ uniform width */
  }
  
  
  .study-item img:hover {
    transform: scale(1.05);
    transition: 0.2s ease;
  }
  
  /* GIF images */
  .study-item img {
    max-width: 200%;
    max-height: 200%;
  
    width: 90px;
    height: 90px;
  
    object-fit: contain;      /* ✅ prevents stretching */
    image-rendering: pixelated;
  }

/* ✅ same visual box for ALL pets */
.study-visual {
    width: 100px;
    height: 100px;
  
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #petPreview {
    width: 90px;
    height: 90px;
    position: relative;
    transform: scale(0.9);} /* tiny extra tweak */ 
    /* #petPreview {
        width: 100px;
        height: 100px;
        transform: translateY(-10px);
      } */
      
  #petPreview img:not([src]) {
    display: none !important;
  }
  
.pet-label {
    margin-top: 6px;
    min-height: 20px;   /* ✅ forces same baseline */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Pet sizing */
  .study-area #petPreview {
    width: 60px;
    height: 60px;
    position: relative;
  }
  .pet-panel .pet-preview-wrapper {
    position: relative;   
    width: 100%;
    height: 100%;
    inset: auto;             /* cancel fixed positioning */
    bottom: auto;
    right: auto;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
    place-items: center;
  
  }
  
  .pet-preview-wrapper {
    position: static !important;
    bottom: auto !important;
    right: auto !important;
    transform: none !important;
  
    width: auto !important;
    height: auto !important;
  }
  
  .pet-panel .pet-gif {
    max-width: 100px;          /* ✅ shrink image */
    max-height: 100px;
    width: 100%;
    height: 100px;
    object-fit: contain;
    display: block;
    transform: none;           /* ✅ remove weird shifting */
  }
  