
/* TeenConnect attendance v1 */
.tc-attendance-page{display:grid;gap:20px}
.tc-attendance-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;gap:24px;align-items:center;padding:32px;border:1px solid rgba(24,119,242,.16);border-radius:28px;background:linear-gradient(135deg,rgba(24,119,242,.10),rgba(121,92,255,.08),rgba(255,255,255,.9))}
.tc-attendance-hero:after{content:"✓";position:absolute;right:6%;top:-44px;font-size:180px;font-weight:900;line-height:1;color:rgba(24,119,242,.06);transform:rotate(-8deg);pointer-events:none}
.tc-attendance-hero h1{margin:7px 0 10px;font-size:clamp(28px,4vw,46px);line-height:1.08;letter-spacing:-.05em}
.tc-attendance-hero p{margin:0;max-width:620px;color:var(--muted,#64748b);line-height:1.7}
.tc-attendance-hero-side{position:relative;z-index:1;min-width:170px;text-align:center;padding:22px;border-radius:24px;background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.9);box-shadow:0 18px 50px rgba(20,45,90,.08)}
.tc-attendance-hero-side>span{display:block;color:var(--muted,#64748b);font-size:13px}
.tc-attendance-hero-side>b{display:block;margin-top:5px;font-size:46px;letter-spacing:-.05em}
.tc-attendance-hero-side b small{font-size:16px;margin-left:3px}
.tc-attendance-hero-side em{display:block;margin-top:7px;font-size:12px;color:#e65353;font-style:normal}
.tc-attendance-claim-card,.tc-attendance-home-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border:1px solid rgba(24,119,242,.17);border-radius:24px;background:#fff;box-shadow:0 15px 44px rgba(26,67,122,.07)}
.tc-attendance-claim-card>div>span{font-size:12px;font-weight:800;color:#1877f2}
.tc-attendance-claim-card h2{margin:5px 0 4px;font-size:28px;letter-spacing:-.04em}
.tc-attendance-claim-card h2 small{font-size:14px;font-weight:800}
.tc-attendance-claim-card p,.tc-attendance-home-card p{margin:0;color:var(--muted,#64748b)}
.tc-attendance-claim-card.is-done{background:linear-gradient(120deg,rgba(49,196,141,.09),#fff)}
.tc-attendance-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tc-attendance-stat-grid article{padding:20px;border:1px solid var(--line,#e8edf5);border-radius:21px;background:#fff}
.tc-attendance-stat-grid span{display:block;font-size:12px;color:var(--muted,#64748b)}
.tc-attendance-stat-grid b{display:block;margin:7px 0 3px;font-size:27px;letter-spacing:-.04em}
.tc-attendance-stat-grid b small{font-size:13px;margin-left:2px}
.tc-attendance-stat-grid p{margin:0;font-size:12px;color:var(--muted,#64748b)}
.tc-attendance-panel{padding:24px;border:1px solid var(--line,#e8edf5);border-radius:24px;background:#fff}
.tc-attendance-panel>header,.tc-attendance-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.tc-attendance-panel h2{margin:3px 0 0;font-size:22px}
.tc-attendance-calendar-head nav{display:flex;gap:8px}
.tc-attendance-weekdays,.tc-attendance-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.tc-attendance-weekdays{margin-bottom:8px}
.tc-attendance-weekdays span{text-align:center;font-size:11px;font-weight:800;color:var(--muted,#64748b)}
.tc-attendance-calendar article,.tc-attendance-calendar>span{min-height:78px;border-radius:18px}
.tc-attendance-calendar article{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #edf1f7;background:#fafcff}
.tc-attendance-calendar article>span{position:absolute;left:9px;top:7px;font-size:11px;color:#758196}
.tc-attendance-calendar article b{font-size:24px;color:#1877f2}
.tc-attendance-calendar article small{font-size:10px;font-weight:800;color:#1877f2}
.tc-attendance-calendar article em{font-style:normal;color:#ccd5e2}
.tc-attendance-calendar article.is-checked{border-color:rgba(24,119,242,.24);background:linear-gradient(145deg,rgba(24,119,242,.10),rgba(121,92,255,.06))}
.tc-attendance-calendar article.is-today{outline:2px solid rgba(24,119,242,.38);outline-offset:-2px}
.tc-attendance-reward-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.tc-attendance-reward-grid article{padding:18px 14px;text-align:center;border:1px solid #edf1f7;border-radius:19px;background:#fafcff}
.tc-attendance-reward-grid article>span{display:block;font-size:22px}
.tc-attendance-reward-grid article>b{display:block;margin:7px 0 3px;font-size:20px}
.tc-attendance-reward-grid article p{margin:0;font-size:12px;color:var(--muted,#64748b)}
.tc-attendance-reward-grid article.is-earned{background:rgba(49,196,141,.08);border-color:rgba(49,196,141,.2)}
.tc-attendance-home-card{margin:0 0 18px;background:linear-gradient(120deg,rgba(24,119,242,.08),rgba(255,255,255,.98))}
.tc-attendance-home-copy h2{margin:4px 0 5px;font-size:21px}
.tc-attendance-home-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tc-attendance-home-actions form{margin:0}
.tc-attendance-admin{display:grid;gap:18px}
.tc-attendance-admin-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.tc-attendance-admin-form{gap:16px}
.tc-attendance-admin-table-wrap{overflow:auto;border:1px solid var(--line,#e8edf5);border-radius:16px}
.tc-attendance-admin-table{width:100%;min-width:620px;border-collapse:collapse}
.tc-attendance-admin-table th,.tc-attendance-admin-table td{padding:10px;border-bottom:1px solid var(--line,#edf1f7);text-align:left}
.tc-attendance-admin-table input[type=number]{width:100%}
.tc-attendance-special-list>div{align-items:center}
.tc-attendance-special-list form{margin-left:auto}
@media(max-width:800px){
  .tc-attendance-hero{align-items:flex-start;padding:24px}
  .tc-attendance-hero-side{min-width:135px}
  .tc-attendance-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tc-attendance-calendar article,.tc-attendance-calendar>span{min-height:62px}
  .tc-attendance-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .tc-attendance-hero,.tc-attendance-claim-card,.tc-attendance-home-card{display:block}
  .tc-attendance-hero-side{margin-top:18px}
  .tc-attendance-claim-card form,.tc-attendance-claim-card>a,.tc-attendance-home-actions{margin-top:15px}
  .tc-attendance-claim-card button{width:100%}
  .tc-attendance-home-actions{display:flex}
  .tc-attendance-weekdays,.tc-attendance-calendar{gap:4px}
  .tc-attendance-calendar article,.tc-attendance-calendar>span{min-height:52px;border-radius:12px}
  .tc-attendance-calendar article>span{left:6px;top:5px}
  .tc-attendance-calendar article b{font-size:20px}
  .tc-attendance-calendar article small{font-size:9px}
  .tc-attendance-panel{padding:17px}
}

.tc-attendance-reward-details{margin:10px 0;padding:12px 14px;border:1px solid var(--line,#e8edf5);border-radius:15px;background:#fbfcff}
.tc-attendance-reward-details>summary{cursor:pointer;font-weight:800}
.tc-attendance-reward-details.compact{margin:0;min-width:250px}
.tc-attendance-item-rewards{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:10px;margin-top:12px}
.tc-attendance-item-rewards label{font-size:12px;font-weight:700}
.tc-attendance-item-rewards label small{display:block;margin:3px 0 6px;font-weight:500;color:var(--muted,#64748b)}
.tc-attendance-item-rewards select{width:100%;min-height:92px;padding:7px;border:1px solid var(--line,#dfe6ef);border-radius:10px;background:#fff}
@media(max-width:900px){.tc-attendance-item-rewards{grid-template-columns:1fr}}

.tc-attendance-item-preview{margin-top:7px!important;font-size:12px;color:#5a45d6!important}
.tc-attendance-item-preview small{display:block;margin-top:2px;color:var(--muted,#64748b)}

/* TC_ATTENDANCE_GAME_REWARD_BOARD_V2 */
.tc-attendance-game-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
.tc-attendance-game-head p{margin:6px 0 0;color:var(--muted,#64748b);font-size:12px;line-height:1.55}
.tc-attendance-game-progress{flex:0 0 auto;text-align:right;padding:10px 13px;border-radius:15px;background:#f4f7ff;border:1px solid #e3eaff}
.tc-attendance-game-progress span{display:block;font-size:11px;color:#718096;font-weight:800}
.tc-attendance-game-progress b{display:block;margin-top:2px;font-size:15px;color:#315fca}
.tc-attendance-game-board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.tc-attendance-game-board article{position:relative;min-width:0;min-height:116px;padding:13px 10px;border:1px solid #e8edf5;border-radius:18px;background:linear-gradient(160deg,#fff,#f8faff);overflow:hidden}
.tc-attendance-game-board article .day{display:block;font-size:11px;font-weight:900;color:#6c788b}
.tc-attendance-game-board article>b{display:block;margin-top:12px;font-size:21px;letter-spacing:-.04em;color:#26364d}
.tc-attendance-game-board article>b em{margin-left:2px;font-size:10px;font-style:normal;color:#79879b}
.tc-attendance-game-board article>small{display:block;margin-top:3px;font-size:9.5px;color:#8792a4;line-height:1.25;overflow:hidden;text-overflow:ellipsis}
.tc-attendance-game-board article .bonus{color:#7450d8;font-weight:900}
.tc-attendance-game-board article .gift{color:#5b45c9;font-weight:800}
.tc-attendance-game-board article>i{position:absolute;right:8px;top:8px;padding:3px 6px;border-radius:999px;background:#edf3ff;color:#3170e2;font-size:9px;font-weight:950;font-style:normal}
.tc-attendance-game-board article.is-earned{border-color:rgba(49,196,141,.30);background:linear-gradient(155deg,rgba(49,196,141,.13),#fff)}
.tc-attendance-game-board article.is-earned>i{background:#e6f8f1;color:#18865e}
.tc-attendance-game-board article.is-next{border:2px solid rgba(47,124,255,.58);background:linear-gradient(145deg,#eef5ff,#f7f2ff);box-shadow:0 10px 24px rgba(47,124,255,.13)}
.tc-attendance-game-board article.is-next:after{content:"";position:absolute;inset:-35%;background:linear-gradient(115deg,transparent 42%,rgba(255,255,255,.85) 50%,transparent 58%);transform:translateX(-60%);animation:tcAttendanceShine 2.8s ease-in-out infinite;pointer-events:none}
.tc-attendance-game-board article.is-milestone{background:linear-gradient(155deg,#fff9ec,#fff);border-color:#f0dfbb}
.tc-attendance-game-board article.is-milestone.is-next{background:linear-gradient(145deg,#fff7df,#f4f1ff);border-color:#d5b76d}
.tc-attendance-game-board article.is-milestone>b{color:#715418}
@keyframes tcAttendanceShine{0%,45%{transform:translateX(-70%)}70%,100%{transform:translateX(85%)}}
@media(max-width:900px){.tc-attendance-game-board{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:620px){
 .tc-attendance-game-head{align-items:flex-start}.tc-attendance-game-progress{padding:8px 10px}.tc-attendance-game-head p{font-size:11px}
 .tc-attendance-game-board{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .tc-attendance-game-board article{min-height:100px;padding:11px 8px;border-radius:15px}
 .tc-attendance-game-board article>b{margin-top:10px;font-size:18px}.tc-attendance-game-board article>small{font-size:9px}
}

/* TC_ATTENDANCE_GAME_VISUAL_V3_STAGE424 */
.tc-attendance-game-panel{
  position:relative;overflow:hidden;
  background:
    radial-gradient(circle at 88% 8%,rgba(255,202,66,.12),transparent 24%),
    radial-gradient(circle at 4% 94%,rgba(87,104,255,.10),transparent 27%),
    #fff;
}
.tc-attendance-game-panel:before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.42;
  background-image:radial-gradient(rgba(68,93,145,.13) .7px,transparent .7px);
  background-size:13px 13px;
  mask-image:linear-gradient(to bottom,#000,transparent 62%);
}
.tc-attendance-game-head,.tc-attendance-game-board{position:relative;z-index:1}
.tc-attendance-game-progress{box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 8px 22px rgba(54,89,165,.08)}
.tc-attendance-game-board{gap:10px;align-items:stretch}
.tc-attendance-game-board article{
  min-height:122px;padding:14px 11px 12px;
  border-color:#e5eaf3;border-radius:20px;
  background:linear-gradient(155deg,#fff 0%,#f8faff 100%);
  box-shadow:0 6px 18px rgba(38,58,97,.045);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,filter .2s ease;
}
.tc-attendance-game-board article:not(.is-earned):not(.is-next){filter:saturate(.82)}
.tc-attendance-game-board article:not(.is-earned):not(.is-next):after{
  content:"";position:absolute;right:9px;bottom:9px;width:16px;height:20px;border:2px solid #d5dce8;border-radius:5px;opacity:.55;pointer-events:none
}
.tc-attendance-game-board article:not(.is-earned):not(.is-next):before{
  content:"";position:absolute;right:12px;bottom:26px;width:10px;height:9px;border:2px solid #d5dce8;border-bottom:0;border-radius:8px 8px 0 0;opacity:.55;pointer-events:none
}
.tc-attendance-game-board article.is-earned{opacity:.82;box-shadow:none}
.tc-attendance-game-board article.is-earned>b{color:#2d6957}
.tc-attendance-game-board article.is-next{
  transform:translateY(-3px);z-index:3;
  box-shadow:0 15px 34px rgba(47,124,255,.20),0 0 0 4px rgba(47,124,255,.07);
  animation:tcAttendanceTodayPulse 2.4s ease-in-out infinite;
}
.tc-attendance-game-board article.is-next .day:after{content:" · TODAY";color:#3477eb;font-size:8px;letter-spacing:.08em}
@keyframes tcAttendanceTodayPulse{0%,100%{transform:translateY(-3px)}50%{transform:translateY(-6px)}}

/* milestone cards: 7 / 14 / 30 day boss rewards */
.tc-attendance-game-board article:nth-child(7),
.tc-attendance-game-board article:nth-child(14){grid-column:span 2;min-height:142px;padding:16px 15px}
.tc-attendance-game-board article:nth-child(7){
  border-color:#f0cf71;
  background:radial-gradient(circle at 82% 26%,rgba(255,225,125,.56),transparent 29%),linear-gradient(145deg,#fff6d7,#fffdf8 58%,#fff4c6);
  box-shadow:0 13px 28px rgba(181,130,23,.11);
}
.tc-attendance-game-board article:nth-child(7):before{
  content:"🎁";position:absolute;right:14px;bottom:9px;font-size:48px;line-height:1;filter:drop-shadow(0 8px 10px rgba(166,112,13,.18));opacity:.96;border:0;width:auto;height:auto
}
.tc-attendance-game-board article:nth-child(7):after{content:"WEEK 1";position:absolute;right:12px;top:11px;padding:4px 7px;border-radius:999px;background:#9a6c13;color:#fff;font-size:8px;font-weight:950;letter-spacing:.08em;animation:none;transform:none}
.tc-attendance-game-board article:nth-child(7)>b{font-size:27px;color:#765313}

.tc-attendance-game-board article:nth-child(14){
  border-color:#c7b8ff;
  background:radial-gradient(circle at 84% 22%,rgba(173,146,255,.34),transparent 30%),linear-gradient(145deg,#f4efff,#fff 58%,#eee9ff);
  box-shadow:0 13px 30px rgba(104,73,193,.11);
}
.tc-attendance-game-board article:nth-child(14):before{
  content:"💎";position:absolute;right:14px;bottom:10px;font-size:45px;line-height:1;filter:drop-shadow(0 8px 10px rgba(82,55,169,.17));opacity:.96;border:0;width:auto;height:auto
}
.tc-attendance-game-board article:nth-child(14):after{content:"RARE";position:absolute;right:12px;top:11px;padding:4px 8px;border-radius:999px;background:#6850c7;color:#fff;font-size:8px;font-weight:950;letter-spacing:.09em;animation:none;transform:none}
.tc-attendance-game-board article:nth-child(14)>b{font-size:27px;color:#5b45ad}

.tc-attendance-game-board article:nth-child(30){
  grid-column:1/-1;min-height:178px;padding:23px 24px;
  border:2px solid #e8bd52;border-radius:26px;
  background:
    radial-gradient(circle at 84% 42%,rgba(255,224,107,.54),transparent 23%),
    radial-gradient(circle at 69% 100%,rgba(107,78,210,.20),transparent 32%),
    linear-gradient(130deg,#171e38 0%,#29264d 49%,#5a3e52 100%);
  box-shadow:0 20px 50px rgba(37,35,78,.22),inset 0 0 0 1px rgba(255,255,255,.12);
  color:#fff;
}
.tc-attendance-game-board article:nth-child(30):before{
  content:"👑";position:absolute;right:8%;top:50%;transform:translateY(-48%) rotate(5deg);font-size:86px;line-height:1;filter:drop-shadow(0 12px 18px rgba(0,0,0,.28));border:0;width:auto;height:auto;opacity:1
}
.tc-attendance-game-board article:nth-child(30):after{
  content:"FINAL REWARD";position:absolute;right:22px;top:18px;padding:6px 10px;border-radius:999px;
  background:linear-gradient(135deg,#ffd76a,#eaa74a);color:#30220d;font-size:9px;font-weight:1000;letter-spacing:.12em;
  animation:none;transform:none
}
.tc-attendance-game-board article:nth-child(30) .day{color:#f6d67d;font-size:12px;letter-spacing:.08em}
.tc-attendance-game-board article:nth-child(30)>b{margin-top:17px;color:#fff;font-size:38px;text-shadow:0 4px 16px rgba(0,0,0,.22)}
.tc-attendance-game-board article:nth-child(30)>b em{color:#f4dda5;font-size:12px}
.tc-attendance-game-board article:nth-child(30)>small{max-width:56%;color:#d7d8e7;font-size:10.5px}
.tc-attendance-game-board article:nth-child(30) .bonus{color:#ffd76a}
.tc-attendance-game-board article:nth-child(30) .gift{color:#ddd2ff}
.tc-attendance-game-board article:nth-child(30)>i{right:auto;left:24px;top:auto;bottom:18px;padding:5px 9px;background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.18)}
.tc-attendance-game-board article:nth-child(30).is-earned{opacity:1}
.tc-attendance-game-board article:nth-child(30).is-next{border-color:#ffd76a;box-shadow:0 23px 58px rgba(55,43,92,.30),0 0 0 5px rgba(255,207,82,.12)}

@media(hover:hover){
 .tc-attendance-game-board article:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(38,58,97,.09)}
 .tc-attendance-game-board article.is-next:hover{transform:translateY(-6px)}
}
@media(max-width:620px){
 .tc-attendance-game-board{gap:7px}
 .tc-attendance-game-board article{min-height:104px;padding:11px 8px;border-radius:16px}
 .tc-attendance-game-board article:nth-child(7),.tc-attendance-game-board article:nth-child(14){min-height:125px;padding:13px 11px}
 .tc-attendance-game-board article:nth-child(7)>b,.tc-attendance-game-board article:nth-child(14)>b{font-size:22px}
 .tc-attendance-game-board article:nth-child(7):before,.tc-attendance-game-board article:nth-child(14):before{right:9px;bottom:8px;font-size:36px}
 .tc-attendance-game-board article:nth-child(30){min-height:156px;padding:19px 17px;border-radius:22px}
 .tc-attendance-game-board article:nth-child(30):before{right:5%;font-size:67px}
 .tc-attendance-game-board article:nth-child(30):after{right:13px;top:13px;padding:5px 7px;font-size:7px}
 .tc-attendance-game-board article:nth-child(30)>b{margin-top:14px;font-size:30px}
 .tc-attendance-game-board article:nth-child(30)>small{max-width:62%;font-size:9px}
 .tc-attendance-game-board article:nth-child(30)>i{left:17px;bottom:14px}
}
@media(prefers-reduced-motion:reduce){.tc-attendance-game-board article.is-next{animation:none}.tc-attendance-game-board article{transition:none}}
