/* ==================================================================
   기능 확장 스타일 — 회의록 · 포춘쿠키 · 인형뽑기
   ================================================================== */

/* ---------------- 달력 칸 — 내용만큼 늘어나게 ---------------- */
.cal-cell {
  height: auto !important;
  min-height: 128px;
}
.cal-cell .cal-items { overflow: visible; }
/* 셀에 이미 다 보이므로 호버 확장 패널은 끈다 — 늘어난 셀과 겹쳐 깨져 보인다 */
.cal-expand-panel { display: none !important; }
.cal-cell:hover { transform: none !important; }
.cal-more-badge { cursor: pointer; }
.cal-more-badge:hover { color: var(--accent, #2fd6f5); }

/* ---------------- 로그인 화면 큰 썸네일 ---------------- */
.name-chip.big {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #06121f;
  border: 2px solid var(--accent, #2fd6f5);
  box-shadow: 0 0 10px rgba(47, 214, 245, .3);
  background-repeat: no-repeat;
  flex-shrink: 0;
  overflow: hidden;
}
.name-label-big { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.name-btn { padding: 16px 18px !important; gap: 14px !important; }
.login-card { max-width: 540px !important; }
.name-btn.frozen .name-chip.big { filter: grayscale(1); border-color: #444; box-shadow: none; }

/* ---------------- 회의록 ---------------- */
.meet-wrap { max-width: 760px; margin: 0 auto; padding-top: 10px; }
.meet-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.meet-empty { text-align: center; color: var(--text-dim); padding: 32px 10px; font-size: 13px; }

.meet-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.meet-card-preview {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  flex: 1;
}
.meet-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(47, 214, 245, .18);
  transform: translateY(-1px);
}
.meet-card-date { font-size: 11px; color: var(--accent); letter-spacing: .06em; }
.meet-card-title { font-size: 16px; font-weight: 700; margin: 3px 0 4px; }
.meet-card-sub { font-size: 12px; color: var(--text-dim); }

.mf-att-box { display: flex; flex-wrap: wrap; gap: 7px; }
.mf-att-chip {
  padding: 7px 15px;
  border-radius: 17px;
  border: 1px solid var(--border, #14395c);
  background: rgba(10, 26, 48, .8);
  color: var(--text-dim, #6e93ae);
  font-size: 13px;
  cursor: pointer;
  transition: all .13s;
}
.mf-att-chip.on {
  color: #eafcff;
  border-color: var(--accent, #2fd6f5);
  background: linear-gradient(180deg, #14a8cc, #0d7fa3);
  box-shadow: 0 0 8px rgba(47, 214, 245, .4);
}
.mf-att-chip.on::before { content: '✔ '; font-size: 11px; }

.meet-meta { font-size: 12px; color: var(--text-dim); margin: -6px 0 14px; }
.meet-body {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.75;
  background: rgba(5, 14, 28, .5);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  max-height: 320px;
  overflow-y: auto;
}

.meet-comments { display: grid; gap: 8px; margin-bottom: 10px; max-height: 240px; overflow-y: auto; }
.meet-comment {
  background: rgba(10, 26, 48, .6);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
}
.meet-comment-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.meet-comment-author { font-size: 12px; font-weight: 700; color: var(--accent); }
.meet-comment-time { font-size: 10px; color: var(--text-dim); }
.meet-comment-text { font-size: 13px; white-space: pre-wrap; }
.meet-comment-actions { margin-top: 5px; display: flex; gap: 6px; }
.meet-mini-btn {
  background: transparent; border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-dim); font-size: 10px; padding: 2px 8px; cursor: pointer;
}
.meet-mini-btn:hover { color: var(--accent); border-color: var(--accent); }
.meet-comment-input { display: flex; gap: 8px; align-items: flex-start; }
.meet-comment-input textarea { flex: 1; }

/* ---------------- 연차 사용 촉진 안내 ---------------- */
.leave-promo {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 176, 32, .4);
  border-left: 3px solid var(--warn, #ffb020);
  border-radius: 0 6px 6px 0;
  background: linear-gradient(180deg, rgba(255, 176, 32, .10) 0%, rgba(255, 176, 32, .03) 100%);
}
.leave-promo-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--warn, #ffb020);
  margin-bottom: 5px;
}
.leave-promo-body {
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-dim);
}
.leave-promo-body b { color: var(--text); }
.leave-promo-urgent {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 5px;
  background: rgba(255, 95, 102, .12);
  border: 1px solid rgba(255, 95, 102, .35);
  font-size: 12.5px;
  color: var(--text);
}
.leave-promo-urgent b { color: var(--bad, #ff5f66); }

/* ---------------- 프로필 사진 (원형 아바타) ---------------- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  color: #eafcff;
  font-weight: 800;
  border: 2px solid var(--accent, #2fd6f5);
  box-shadow: 0 0 8px rgba(47, 214, 245, .25);
  flex-shrink: 0;
  overflow: hidden;
}
.avatar-xs { width: 20px; height: 20px; font-size: 10px; border-width: 1px; }
.avatar-sm { width: 30px; height: 30px; font-size: 13px; }
.avatar-lg { width: 72px; height: 72px; font-size: 26px; }
.meet-comment-who { display: inline-flex; align-items: center; gap: 6px; }
#headerAvatar { margin: 0 4px 0 16px; vertical-align: middle; }
.header-left { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.header-left .sub { display: inline-flex; align-items: center; padding-left: 2px; }

.day-group-chip.photo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid;
}

/* ---------------- 올해 잔여 (메인 지표) ---------------- */
.nl-stat.year-main {
  border: 1px solid rgba(53, 224, 140, .55) !important;
  background: linear-gradient(180deg, rgba(53, 224, 140, .14) 0%, rgba(53, 224, 140, .04) 100%) !important;
  box-shadow: 0 0 12px rgba(53, 224, 140, .22);
}
.nl-stat.year-main .nl-stat-label {
  color: #35e08c !important;
  font-weight: 800;
}
.nl-stat.year-main .nl-stat-val {
  color: #35e08c !important;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(53, 224, 140, .55);
}

/* ---------------- 생일 ---------------- */
.noing-tag.birthday { background: rgba(255, 143, 208, .22); color: #ffb3dd; }
.noing-cell.birthday-cell .noing-day-num { color: #ffb3dd; }

.bday-banner {
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 143, 208, .4);
  border-radius: 8px;
  background:
    linear-gradient(var(--cyber-line, rgba(255,143,208,.5)), var(--cyber-line, rgba(255,143,208,.5))) 0 0 / 14px 2px no-repeat,
    linear-gradient(100deg, rgba(255, 143, 208, .12) 0%, rgba(198, 155, 255, .08) 55%, rgba(47, 214, 245, .07) 100%),
    var(--card-bg, #0a1a30);
  box-shadow: 0 0 14px rgba(255, 143, 208, .12);
  text-align: center;
}
.bday-banner-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #ffb3dd;
  text-shadow: 0 0 10px rgba(255, 143, 208, .5);
  margin-bottom: 9px;
}
.bday-banner-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.bday-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 18px;
  font-size: 13px;
  color: var(--text, #d7e9f5);
  background: rgba(10, 26, 48, .8);
  border: 1px solid var(--bc, #ff8fd0);
  box-shadow: 0 0 8px color-mix(in srgb, var(--bc, #ff8fd0) 35%, transparent);
  animation: bdayPop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}
.bday-chip b { color: var(--bc, #ff8fd0); }
.bday-chip:nth-child(2) { animation-delay: .07s; }
.bday-chip:nth-child(3) { animation-delay: .14s; }
.bday-chip:nth-child(4) { animation-delay: .21s; }
@keyframes bdayPop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------------- 포춘쿠키 ---------------- */
.fc-stage {
  position: relative;
  width: 320px;
  height: 300px;
  margin: 10px auto 0;
}

.fc-glow {
  position: absolute;
  left: 50%; top: 40%;
  width: 10px; height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 150, .95) 0%, rgba(255, 196, 90, .45) 40%, rgba(255, 196, 90, 0) 70%);
  opacity: 0;
  pointer-events: none;
}
.fc-glow.burst { animation: fcGlow 1.6s ease-out forwards; }
@keyframes fcGlow {
  0%   { opacity: 0;  transform: translate(-50%, -50%) scale(1); }
  25%  { opacity: 1;  transform: translate(-50%, -50%) scale(26); }
  100% { opacity: 0;  transform: translate(-50%, -50%) scale(34); }
}

.fc-cookie {
  position: absolute;
  left: 50%; top: 40%;
  width: 260px; height: 216px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5));
}
.fc-full,
.fc-half { position: absolute; inset: 0; width: 100%; height: 100%; }
.fc-half { opacity: 0; }                       /* 부서지기 전에는 통짜만 보인다 */
.fc-cookie.cracked .fc-full { opacity: 0; }
.fc-cookie.cracked .fc-half { opacity: 1; }

.fc-cookie.shaking { animation: fcShake .55s ease-in-out; }
@keyframes fcShake {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  20% { transform: translate(-52%, -50%) rotate(-7deg); }
  40% { transform: translate(-48%, -49%) rotate(6deg); }
  60% { transform: translate(-51%, -51%) rotate(-5deg); }
  80% { transform: translate(-49%, -50%) rotate(4deg); }
}

.fc-cookie.cracked { cursor: default; }
.fc-cookie.cracked .fc-left  { animation: fcHalfL .9s cubic-bezier(.3, .7, .4, 1) forwards; }
.fc-cookie.cracked .fc-right { animation: fcHalfR .9s cubic-bezier(.3, .7, .4, 1) forwards; }
@keyframes fcHalfL {
  to { transform: translate(-72px, 46px) rotate(-38deg); opacity: .92; }
}
@keyframes fcHalfR {
  to { transform: translate(72px, 46px) rotate(38deg); opacity: .92; }
}

.fc-crumb {
  position: absolute;
  left: 50%; top: 52%;
  width: 7px; height: 7px;
  border-radius: 40% 60% 55% 45%;
  background: linear-gradient(140deg, #e8b46b, #9c6527);
  opacity: 0;
  animation: fcCrumb .9s ease-in forwards;
}
@keyframes fcCrumb {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

.fc-paper {
  position: absolute;
  left: 50%; top: 34%;
  transform: translateX(-50%);
  width: 270px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
.fc-paper.unroll { animation: fcUnroll 1s cubic-bezier(.25, 1.2, .45, 1) forwards; }
@keyframes fcUnroll {
  0%   { max-height: 0;     opacity: 0; transform: translateX(-50%) scaleY(.2) rotate(-3deg); }
  40%  { opacity: 1; }
  100% { max-height: 340px; opacity: 1; transform: translateX(-50%) scaleY(1) rotate(0deg); }
}
.fc-paper-inner {
  background:
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,0) 8%, rgba(0,0,0,0) 92%, rgba(0,0,0,.14) 100%),
    linear-gradient(180deg, #fdf6e4 0%, #f7ecd2 100%);
  color: #4a3a20;
  border-radius: 4px;
  padding: 20px 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  text-align: left;
}
.fc-paper-inner .fortune-element { color: #8a713f; font-size: 12px; margin-bottom: 6px; }
.fc-paper-inner .fortune-tone { color: #3c2f16; font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.fc-paper-inner .fortune-message { color: #4a3a20; font-size: 14px; line-height: 1.75; }

/* ---------------- 인형뽑기 머신 ---------------- */
.lottery-chip {
  display: inline-block;
  margin: 4px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(10, 26, 48, .8);
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.lottery-chip.on {
  color: #eafcff;
  border-color: var(--accent);
  background: linear-gradient(180deg, #14a8cc, #0d7fa3);
  box-shadow: 0 0 10px rgba(47, 214, 245, .4);
}
#lotteryParticipants { text-align: center; margin-bottom: 14px; }

.claw-machine {
  width: 340px;
  margin: 0 auto;
  border-radius: 10px 10px 8px 8px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .55);
  border: 1px solid #6d1720;
}
.cm-marquee {
  background: linear-gradient(180deg, #e6404f 0%, #b21f2d 100%);
  color: #ffe9a8;
  text-align: center;
  font-weight: 800;
  letter-spacing: .35em;
  font-size: 13px;
  padding: 10px 0 8px;
  text-shadow: 0 0 8px rgba(255, 220, 130, .8);
}
.cm-glass {
  position: relative;
  height: 230px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 30%),
    linear-gradient(180deg, #0d2236 0%, #0a1a30 100%);
  border-left: 8px solid #b21f2d;
  border-right: 8px solid #b21f2d;
  overflow: hidden;
}
.cm-rail {
  position: absolute; top: 8px; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(180deg, #8fa3b8, #4a5b6e);
  border-radius: 3px;
}

.cm-claw {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 2px;
  transition: left 0.9s cubic-bezier(.45, .05, .35, 1);
  z-index: 5;
}
.cm-cable {
  width: 2px;
  height: 18px;
  margin: 0 auto;
  background: #9db2c6;
  transition: height .8s cubic-bezier(.5, .05, .4, 1);
}
.cm-grip { position: relative; width: 44px; margin-left: -22px; height: 30px; }
.cm-finger {
  position: absolute; top: 0;
  width: 5px; height: 26px;
  background: linear-gradient(180deg, #cfd9e4, #7b8fa3);
  border-radius: 0 0 4px 4px;
  transform-origin: top center;
  transition: transform .35s ease;
}
.cm-finger.f1 { left: 8px;  transform: rotate(-24deg); }
.cm-finger.f2 { left: 20px; transform: rotate(0deg) scaleY(1.06); }
.cm-finger.f3 { left: 32px; transform: rotate(24deg); }
.cm-grip.closed .f1 { transform: rotate(-6deg); }
.cm-grip.closed .f3 { transform: rotate(6deg); }

.cm-capsules { position: absolute; inset: 0; }
.cm-capsule {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 26%),
    linear-gradient(180deg, var(--c1) 0%, var(--c1) 48%, #f4f6f8 48%, #d6dde4 100%);
  border: 1px solid rgba(0, 0, 0, .35);
  box-shadow: inset -4px -6px 10px rgba(0, 0, 0, .28), 0 4px 6px rgba(0, 0, 0, .4);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(calc(var(--wob, 0) * 14deg));
}
.cm-cap-name {
  font-size: 10px; font-weight: 800; color: #17202b;
  background: rgba(255, 255, 255, .82);
  padding: 1px 5px; border-radius: 8px;
  max-width: 40px; overflow: hidden; white-space: nowrap;
}
.cm-capsule.grabbed { box-shadow: 0 0 14px rgba(255, 235, 140, .9), inset -4px -6px 10px rgba(0,0,0,.28); }
.cm-grip .cm-capsule { position: absolute; top: 22px; left: 50%; margin-left: -23px; transform: none; }
.cm-capsule.dropping { animation: cmDrop .65s cubic-bezier(.5, .05, .8, .4) forwards; }
@keyframes cmDrop {
  to { transform: translateY(190px) rotate(200deg); opacity: .2; }
}

.cm-base {
  position: relative;
  background: linear-gradient(180deg, #d5303f 0%, #9d1b28 100%);
  padding: 14px 16px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.cm-chute {
  width: 64px; height: 44px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,.9));
  border: 2px solid #6d1720;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, .8);
}
.cm-lever { font-size: 15px; padding: 12px 22px; }

.cm-win-pop { text-align: center; animation: fortuneGrow .5s cubic-bezier(.34, 1.56, .64, 1); }
.cm-win-capsule {
  width: 58px; height: 58px; margin: 0 auto 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 30%),
    linear-gradient(180deg, #ffd35c 0%, #ffd35c 48%, #fff 48%, #d6dde4 100%);
  box-shadow: 0 0 24px rgba(255, 214, 90, .8);
  animation: cmWinPulse 1.2s ease-in-out infinite;
}
@keyframes cmWinPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.cm-win-name { font-size: 24px; font-weight: 800; color: var(--accent); }
.cm-win-at { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .fc-cookie.shaking, .fc-glow.burst, .fc-crumb, .cm-win-capsule { animation: none !important; }
}
