:root {
  --portal-bg: #fff9fc;
  --portal-surface: rgba(255, 255, 255, 0.82);
  --portal-ink: #2d2430;
  --portal-muted: #736876;
  --portal-line: rgba(113, 76, 104, 0.14);
  --portal-pink: #f45f9d;
  --portal-pink-deep: #d83c80;
  --portal-pink-soft: #ffe1ed;
  --portal-mint: #dff7ec;
  --portal-lilac: #eee4ff;
  --portal-sky: #e2f2ff;
  --portal-shadow: 0 24px 70px rgba(105, 69, 91, 0.13);
  --portal-shadow-soft: 0 12px 35px rgba(105, 69, 91, 0.09);
  --portal-radius-xl: 34px;
  --portal-radius-lg: 26px;
  --portal-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --portal-display: 'Space Grotesk', 'DM Sans', sans-serif;
  --gold-light: #ffd3e5;
  --gold-primary: #f45f9d;
  --gold-dark: #c82e70;
  --gold-gradient: linear-gradient(135deg, #ff91bc, #ef4d93);
  --text-primary: #2d2430;
  --text-secondary: #6e6370;
  --text-muted: #9b8f9c;
  --bg-card: rgba(255, 255, 255, 0.86);
  --border-glass: rgba(121, 75, 108, 0.14);
  --bg-dark: #fff8fb;
}

html { scroll-behavior: smooth; }
body {
  display: block;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 15% -5%, rgba(255, 182, 210, 0.45), transparent 28rem), radial-gradient(circle at 93% 12%, rgba(219, 241, 255, 0.62), transparent 26rem), var(--portal-bg);
  color: var(--portal-ink);
  font-family: var(--portal-font);
  transition: background 0.35s ease, color 0.35s ease;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.ambient { position: fixed; z-index: 0; width: 24rem; height: 24rem; border-radius: 50%; filter: blur(80px); opacity: 0.25; pointer-events: none; }
.ambient-one { top: 18rem; left: -14rem; background: #ffc0db; }
.ambient-two { right: -12rem; top: 42rem; background: #bce9ff; }
.ambient-three { left: 38%; bottom: -18rem; background: #e9d7ff; }
.site-shell { position: relative; z-index: 1; width: min(1420px, calc(100% - 36px)); margin: 0 auto; padding-bottom: 34px; }

.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: max(16px, env(safe-area-inset-top)) 4px 12px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { position: relative; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(216, 60, 128, 0.2); border-radius: 18px 18px 20px 15px; background: linear-gradient(145deg, #fff, #ffe6f0); box-shadow: 0 10px 24px rgba(210, 73, 135, 0.18); transform: rotate(-3deg); }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; top: -4px; width: 17px; height: 18px; border: 1px solid rgba(216, 60, 128, 0.18); background: #fff4f8; z-index: -1; }
.brand-mark::before { left: 5px; border-radius: 10px 3px 3px 3px; transform: rotate(-20deg); }
.brand-mark::after { right: 5px; border-radius: 3px 10px 3px 3px; transform: rotate(20deg); }
.brand-mark span { font: 700 13px var(--portal-display); letter-spacing: -0.7px; color: var(--portal-pink-deep); }
.brand-mark i { position: absolute; width: 17px; height: 12px; right: -5px; top: 7px; background: var(--portal-pink); border-radius: 11px 3px 11px 3px; transform: rotate(10deg); }
.brand-mark i::after { content: ''; position: absolute; width: 7px; height: 7px; left: 5px; top: 3px; border-radius: 50%; background: #fff0f6; }
.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy small { font-size: 9px; font-weight: 800; letter-spacing: 1.6px; color: var(--portal-muted); }
.brand-copy strong { font: 700 21px var(--portal-display); letter-spacing: -0.8px; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.live-pill, .admin-shortcut, .icon-button { min-height: 42px; border: 1px solid var(--portal-line); background: rgba(255,255,255,0.72); box-shadow: 0 8px 24px rgba(85,53,76,0.06); backdrop-filter: blur(16px); }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--portal-muted); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #40c788; box-shadow: 0 0 0 5px rgba(64,199,136,0.13); animation: livePulse 2s infinite; }
.icon-button { width: 42px; border-radius: 15px; cursor: pointer; color: var(--portal-ink); }
.admin-shortcut { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 15px; text-decoration: none; font-size: 13px; font-weight: 800; }

.taskbar { position: sticky; top: 10px; z-index: 20; display: flex; align-items: center; gap: 7px; width: 100%; padding: 8px; overflow-x: auto; scrollbar-width: none; border: 1px solid rgba(139,93,123,0.13); border-radius: 22px; background: rgba(255,255,255,0.76); box-shadow: 0 18px 55px rgba(93,56,82,0.11); backdrop-filter: blur(22px) saturate(1.2); }
.taskbar::-webkit-scrollbar { display: none; }
.task-item { position: relative; flex: 0 0 auto; min-height: 48px; display: inline-flex; align-items: center; gap: 9px; padding: 0 17px; border: 0; border-radius: 16px; background: transparent; color: var(--portal-muted); cursor: pointer; transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease; }
.task-item span { font-size: 17px; }
.task-item em { font-style: normal; font-size: 13px; font-weight: 800; white-space: nowrap; }
.task-item b { font-size: 8px; letter-spacing: 0.7px; padding: 4px 6px; border-radius: 999px; background: #ff4f93; color: #fff; }
.task-item:hover { transform: translateY(-2px); color: var(--portal-ink); background: #fff4f8; }
.task-item.is-active { color: #fff; background: linear-gradient(135deg, #ff81b1, #e9468b); box-shadow: 0 10px 25px rgba(224,58,132,0.23); }
.task-game { margin-left: auto; }
.task-game.is-active b { color: var(--portal-pink-deep); background: #fff; }
.site-main { min-height: 72vh; padding: 42px 0 26px; }
.view-panel { display: none; }
.view-panel.is-active { display: block; animation: panelIn 0.45s cubic-bezier(0.2,0.75,0.2,1) both; }
.section-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--portal-pink-deep); font-size: 11px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; }
.section-kicker::before { content: ''; width: 20px; height: 2px; border-radius: 99px; background: currentColor; }

.hero-grid { min-height: 570px; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(390px,0.92fr); align-items: center; gap: 54px; padding: 36px clamp(6px,2vw,24px) 46px; }
.hero-copy { max-width: 760px; }
.hero-copy h1 { max-width: 790px; margin: 20px 0 22px; font: 700 clamp(48px,6vw,88px)/0.98 var(--portal-display); letter-spacing: clamp(-4px,-0.35vw,-2px); color: var(--portal-ink); }
.hero-copy h1 span { color: var(--portal-pink); }
.hero-copy > p { max-width: 660px; color: var(--portal-muted); font-size: clamp(16px,1.35vw,19px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 21px; border: 0; border-radius: 16px; cursor: pointer; font-weight: 850; font-size: 14px; transition: transform 0.22s ease, box-shadow 0.22s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg,#ff78ac,#e74489); color: #fff; box-shadow: 0 14px 28px rgba(224,54,130,0.22); }
.button-quiet { background: #fff; color: var(--portal-ink); border: 1px solid var(--portal-line); box-shadow: var(--portal-shadow-soft); }
.button-dark { background: #302431; color: #fff; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--portal-muted); font-size: 13px; font-weight: 600; }
.cat-whisker { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--portal-pink-soft); color: var(--portal-pink-deep); font-size: 18px; }

.hero-art { position: relative; min-height: 490px; display: grid; place-items: center; isolation: isolate; }
.hero-art::before { content: ''; position: absolute; inset: 7% 4% 6%; z-index: -2; border-radius: 46% 54% 58% 42% / 44% 44% 56% 56%; background: linear-gradient(145deg,#ffe4ef,#fff2dd 48%,#e9f6ff); transform: rotate(-4deg); }
.orbit { position: absolute; border: 1px dashed rgba(219,67,136,0.22); border-radius: 50%; }
.orbit-one { width: 360px; height: 360px; animation: orbitSpin 25s linear infinite; }
.orbit-two { width: 455px; height: 455px; border-style: solid; border-color: rgba(219,67,136,0.08); }
.cat-card { position: absolute; display: grid; place-items: center; box-shadow: 0 30px 70px rgba(126,71,104,0.18); }
.cat-card-back { width: 260px; height: 340px; border-radius: 36px; background: linear-gradient(160deg,#ffd9e8,#ffa8c9); transform: translate(58px,25px) rotate(10deg); }
.cat-card-back span { position: absolute; bottom: 34px; font: 700 44px var(--portal-display); color: rgba(255,255,255,0.55); transform: rotate(-90deg); }
.cat-card-main { width: 285px; height: 370px; border: 8px solid #fff; border-radius: 42px; background: linear-gradient(155deg,#fff,#fff9ed); transform: translate(-38px,-12px) rotate(-6deg); }
.cat-card-main small { position: absolute; bottom: 25px; left: 28px; font: 700 15px/1.1 var(--portal-display); color: var(--portal-pink-deep); }
.cat-face { position: relative; width: 170px; height: 138px; border: 3px solid #3d2b38; border-radius: 48% 48% 45% 45%; background: #fff; }
.cat-ears { position: absolute; top: 54px; width: 150px; height: 55px; }
.cat-ears i { position: absolute; width: 48px; height: 58px; border: 3px solid #3d2b38; background: #fff; transform: rotate(35deg); }
.cat-ears i:first-child { left: 5px; border-radius: 8px 25px 8px 18px; }
.cat-ears i:last-child { right: 5px; border-radius: 25px 8px 18px 8px; transform: rotate(-35deg); }
.eye { position: absolute; top: 61px; width: 9px; height: 15px; border-radius: 50%; background: #352530; }
.eye-left { left: 44px; }.eye-right { right: 44px; }
.nose { position: absolute; left: 50%; top: 78px; width: 12px; height: 9px; transform: translateX(-50%); border-radius: 50%; background: #ffd34f; }
.whisker { position: absolute; top: 85px; width: 42px; height: 2px; background: #352530; }
.w-left { left: -26px; box-shadow: 2px -13px 0 #352530,2px 13px 0 #352530; }.w-right { right: -26px; box-shadow: -2px -13px 0 #352530,-2px 13px 0 #352530; }
.cat-bow { position: absolute; right: -17px; top: 8px; width: 55px; height: 42px; display: grid; place-items: center; border-radius: 20px 8px 20px 8px; background: var(--portal-pink); color: #fff; font-size: 23px; transform: rotate(8deg); }
.float-sticker { position: absolute; display: grid; place-items: center; border: 4px solid #fff; box-shadow: 0 14px 30px rgba(110,63,93,0.14); animation: floatSticker 4s ease-in-out infinite; }
.sticker-heart { left: 6%; top: 21%; width: 66px; height: 66px; border-radius: 22px; background: #fff; color: var(--portal-pink); font-size: 36px; }
.sticker-star { right: 3%; top: 15%; width: 58px; height: 58px; border-radius: 50%; background: var(--portal-lilac); color: #8b63c8; font-size: 25px; animation-delay: -1.2s; }
.sticker-note { right: 2%; bottom: 13%; width: 94px; height: 70px; border-radius: 22px; background: var(--portal-mint); color: #3e8a70; font-size: 10px; font-weight: 900; letter-spacing: 1px; text-align: center; transform: rotate(7deg); animation-delay: -2s; }
.sticker-note b { font-size: 17px; }

.home-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 30px; border: 1px solid rgba(211,64,129,0.12); border-radius: var(--portal-radius-lg); background: linear-gradient(100deg,#fff0f6,#fff9e9 52%,#effaff); box-shadow: var(--portal-shadow-soft); }
.home-ribbon > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.home-ribbon small { color: var(--portal-muted); font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }
.home-ribbon strong { font: 700 21px var(--portal-display); }
.ribbon-stats { display: flex; align-items: stretch; gap: 9px; }
.ribbon-stats span { min-width: 110px; display: flex; flex-direction: column; padding-left: 20px; border-left: 1px solid var(--portal-line); }
.ribbon-stats b { font: 700 24px var(--portal-display); color: var(--portal-pink-deep); }
.ribbon-stats small { letter-spacing: 0; font-size: 10px; text-transform: none; }

.intro-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 22px; }
.intro-card { position: relative; min-height: 210px; padding: 27px; overflow: hidden; border: 1px solid var(--portal-line); border-radius: var(--portal-radius-lg); background: var(--portal-surface); box-shadow: var(--portal-shadow-soft); cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.intro-card:nth-child(2) { background: linear-gradient(145deg,#fff,#f5ecff); }.intro-card:nth-child(3) { background: linear-gradient(145deg,#fff,#eaf8f2); }
.intro-card:hover { transform: translateY(-6px); box-shadow: var(--portal-shadow); }
.intro-number { display: inline-grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: var(--portal-pink-soft); color: var(--portal-pink-deep); font: 700 13px var(--portal-display); }
.intro-card:nth-child(2) .intro-number { background: var(--portal-lilac); color: #7b58b6; }.intro-card:nth-child(3) .intro-number { background: var(--portal-mint); color: #2e8d6a; }
.intro-card h3 { margin: 38px 0 10px; font: 700 24px var(--portal-display); letter-spacing: -0.8px; }.intro-card p { color: var(--portal-muted); line-height: 1.65; font-size: 14px; }.intro-arrow { position: absolute; right: 25px; top: 26px; font-size: 22px; color: var(--portal-muted); }

.home-columns { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(320px,0.6fr); gap: 18px; margin-top: 22px; }
.soft-card { border: 1px solid var(--portal-line); border-radius: var(--portal-radius-lg); background: var(--portal-surface); box-shadow: var(--portal-shadow-soft); }
.featured-news-card { padding: 27px; }.card-topline { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 10px; }.text-button { border: 0; background: transparent; color: var(--portal-pink-deep); font-weight: 800; cursor: pointer; }
.news-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 14px; padding: 17px 4px; border-top: 1px solid var(--portal-line); cursor: pointer; }
.news-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--portal-pink); }.news-row small { color: var(--portal-muted); font-size: 10px; font-weight: 800; }.news-row h3 { margin-top: 4px; font: 650 16px var(--portal-display); }.news-arrow { color: var(--portal-muted); }
.mini-game-card { position: relative; padding: 32px; overflow: hidden; background: linear-gradient(145deg,#ffc9dd,#ffe4ef 58%,#fff4dc); }
.mini-game-card::after { content: '🥚'; position: absolute; right: -18px; bottom: -35px; font-size: 125px; filter: saturate(0.7); opacity: 0.7; transform: rotate(15deg); }
.mini-game-card h2 { max-width: 260px; margin: 40px 0 10px; font: 700 30px/1.05 var(--portal-display); }.mini-game-card p { max-width: 290px; color: #715364; line-height: 1.6; font-size: 14px; }.mini-game-card .button { position: relative; z-index: 2; margin-top: 25px; }.mini-sticker { position: absolute; right: 21px; top: 21px; padding: 7px 10px; border-radius: 999px; background: #fff; color: var(--portal-pink-deep); font-size: 9px; font-weight: 900; letter-spacing: 0.8px; transform: rotate(4deg); }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin: 12px 0 30px; padding: 18px 4px 0; }
.page-heading > div:first-child { max-width: 820px; }.page-heading h2 { margin: 13px 0 10px; font: 700 clamp(36px,4vw,62px)/1 var(--portal-display); letter-spacing: -2.5px; }.page-heading h2 span { color: var(--portal-pink); }.page-heading p { max-width: 720px; color: var(--portal-muted); font-size: 16px; line-height: 1.7; }
.heading-chip, .count-badge { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; padding: 14px 17px; border: 1px solid var(--portal-line); border-radius: 17px; background: #fff; box-shadow: var(--portal-shadow-soft); font-size: 12px; font-weight: 800; color: var(--portal-muted); }
.count-badge { width: 122px; height: 100px; flex-direction: column; justify-content: center; gap: 0; background: var(--portal-pink-soft); color: var(--portal-pink-deep); }.count-badge strong { font: 700 34px var(--portal-display); }.count-badge span { font-size: 11px; }.count-badge-mint { background: var(--portal-mint); color: #2d8b68; }

.timetable-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }.segmented-control { display: inline-flex; gap: 5px; padding: 5px; border: 1px solid var(--portal-line); border-radius: 16px; background: rgba(255,255,255,0.8); box-shadow: var(--portal-shadow-soft); }
.segmented-control button, .filter-row button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; color: var(--portal-muted); font-size: 12px; font-weight: 850; cursor: pointer; }
.segmented-control button.is-active, .filter-row button.is-active { background: var(--portal-pink); color: #fff; box-shadow: 0 8px 18px rgba(221,63,133,0.2); }.helper-text { color: var(--portal-muted); font-size: 12px; }
.timetable-wrap { overflow: hidden; border: 1px solid var(--portal-line); border-radius: var(--portal-radius-lg); background: #fff; box-shadow: var(--portal-shadow-soft); }.schedule-table-head, .schedule-row { display: grid; grid-template-columns: 90px 1fr 1fr; }.schedule-table-head { background: #392b38; color: #fff; }.schedule-table-head span { padding: 17px 20px; font-size: 11px; font-weight: 900; letter-spacing: 1.1px; }.schedule-table-head span + span { border-left: 1px solid rgba(255,255,255,0.14); }
.schedule-row { min-height: 78px; border-top: 1px solid var(--portal-line); }.schedule-row > strong { display: grid; place-items: center; font: 700 20px var(--portal-display); color: var(--portal-pink-deep); background: #fff8fb; }.schedule-row > div { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 14px 20px; border-left: 1px solid var(--portal-line); }.schedule-row b { font: 650 18px var(--portal-display); }.schedule-row span { color: var(--portal-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.room-guide { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 16px; }.room-card { padding: 22px; border: 1px solid var(--portal-line); border-radius: 20px; background: linear-gradient(145deg,#fff,#fff3f8); }.room-card strong { display: inline-flex; padding: 7px 10px; border-radius: 10px; background: #372b37; color: #fff; font: 700 14px var(--portal-display); }.room-card p { margin-top: 13px; color: var(--portal-muted); line-height: 1.55; font-size: 13px; }

.filter-row { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }.filter-row::-webkit-scrollbar { display: none; }.filter-row button { flex: 0 0 auto; border: 1px solid var(--portal-line); background: rgba(255,255,255,0.72); }
.club-groups, .faculty-groups { display: grid; gap: 19px; }.club-group, .faculty-group { padding: 25px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius-lg); background: rgba(255,255,255,0.72); box-shadow: var(--portal-shadow-soft); }
.group-heading, .faculty-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; }.group-heading h3, .faculty-heading h3 { font: 700 21px var(--portal-display); }.group-count { margin-left: auto; color: var(--portal-muted); font-size: 11px; font-weight: 800; }.group-swatch { width: 11px; height: 11px; border-radius: 4px; background: var(--portal-pink); transform: rotate(10deg); }.accent-mint .group-swatch { background: #5cb895; }.accent-lilac .group-swatch { background: #9977d9; }.accent-sky .group-swatch { background: #5ba9d8; }.accent-peach .group-swatch { background: #ee9476; }.accent-yellow .group-swatch { background: #d9ad32; }
.club-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.club-card, .faculty-card { position: relative; min-width: 0; display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid rgba(118,76,106,0.11); border-radius: 18px; background: #fff; text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }.club-card:hover, .faculty-card:hover { transform: translateY(-3px); border-color: rgba(231,70,140,0.3); box-shadow: 0 14px 26px rgba(104,63,92,0.1); }
.avatar { position: relative; flex: 0 0 48px; width: 48px; height: 48px; overflow: hidden; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(145deg,#ffe4ef,#f5eaff); }.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }.avatar-fallback { font: 700 13px var(--portal-display); color: var(--portal-pink-deep); }.club-copy, .faculty-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }.club-copy strong, .faculty-copy strong { overflow: hidden; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; }.club-copy small, .faculty-copy small { color: var(--portal-muted); font-size: 10px; }.card-arrow { margin-left: auto; align-self: flex-start; color: var(--portal-muted); }
.faculty-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }.faculty-group { min-width: 0; }.faculty-list { display: grid; gap: 9px; }.faculty-card { padding: 12px; }.faculty-avatar { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }

.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }.news-card { position: relative; min-height: 330px; display: flex; flex-direction: column; padding: 29px; overflow: hidden; border: 1px solid var(--portal-line); border-radius: var(--portal-radius-lg); box-shadow: var(--portal-shadow-soft); background: linear-gradient(145deg,#ffe0eb,#fff3e6); }.news-card-2 { background: linear-gradient(145deg,#e4f7ee,#f5fffb); }.news-card-3 { background: linear-gradient(145deg,#ece4ff,#f9f6ff); }.news-card-number { position: absolute; right: 18px; top: 8px; font: 700 90px var(--portal-display); color: rgba(255,255,255,0.62); }.news-tag { position: relative; z-index: 1; align-self: flex-start; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,0.72); color: var(--portal-pink-deep); font-size: 10px; font-weight: 900; }.news-card h3 { position: relative; z-index: 1; margin-top: auto; font: 700 27px/1.08 var(--portal-display); letter-spacing: -0.9px; }.news-card p { position: relative; z-index: 1; margin-top: 12px; color: var(--portal-muted); line-height: 1.6; font-size: 13px; }.news-card small { position: relative; z-index: 1; margin-top: 20px; font-weight: 800; color: var(--portal-muted); }
.school-links-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }.school-link-card { position: relative; min-height: 210px; display: flex; flex-direction: column; align-items: flex-start; padding: 27px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius-lg); background: #fff; box-shadow: var(--portal-shadow-soft); text-decoration: none; transition: transform 0.22s ease, box-shadow 0.22s ease; }.school-link-card:hover { transform: translateY(-5px); box-shadow: var(--portal-shadow); }.school-link-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 19px; background: var(--portal-pink-soft); color: var(--portal-pink-deep); font: 700 14px var(--portal-display); }.school-link-copy { display: flex; flex-direction: column; gap: 8px; margin-top: 35px; }.school-link-copy strong { font: 700 21px var(--portal-display); }.school-link-copy small { color: var(--portal-muted); line-height: 1.5; }.school-link-card .card-arrow { position: absolute; right: 24px; top: 24px; }

.game-panel { --gold-light: #ffd6e6; --gold-primary: #ef5796; --gold-dark: #bc2967; }.game-portal-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 18px; }.game-portal-head h2 { margin: 12px 0 8px; font: 700 clamp(38px,4vw,58px)/1 var(--portal-display); letter-spacing: -2px; }.game-portal-head h2 span { color: var(--portal-pink); }.game-portal-head p { color: var(--portal-muted); }.game-live-mark { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-radius: 999px; background: #342833; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 1px; }.game-live-mark i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a98; box-shadow: 0 0 0 5px rgba(255,90,152,0.16); }
.game-app-container { min-height: 650px; padding: 24px; overflow: hidden; border: 1px solid var(--portal-line); border-radius: var(--portal-radius-xl); background: radial-gradient(circle at 50% -10%,rgba(255,184,211,0.42),transparent 31rem),linear-gradient(145deg,#fff,#fff5f9); box-shadow: var(--portal-shadow); }.game-app-container .app-header { margin: 0; padding: 0 0 19px; border-color: var(--portal-line); }.game-app-container .logo-title { background: linear-gradient(135deg,#3b2c39,#ea4c8d); -webkit-background-clip: text; }.game-app-container .stat-card { background: #fff; border-color: var(--portal-line); }.game-app-container .stat-label { color: var(--portal-muted); }.game-app-container .stat-value { color: var(--portal-pink-deep); }.game-app-container .card-glass { margin: 40px auto 20px; background: rgba(255,255,255,0.88); box-shadow: var(--portal-shadow-soft); }.game-app-container .card-glass::before { background: linear-gradient(90deg,transparent,var(--portal-pink),transparent); }.game-app-container .card-header h2 { color: var(--portal-ink); }.game-app-container .input-group input { background: #fff9fb; border-color: var(--portal-line); color: var(--portal-ink); }.game-app-container .input-group label { color: var(--portal-muted); }.game-app-container .game-instructions { color: var(--portal-ink); }.game-app-container .game-instructions p { color: var(--portal-muted); }.game-app-container .egg-grid { margin-top: 24px; }.game-app-container .egg { filter: hue-rotate(310deg) saturate(0.72) brightness(1.14); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 5px 0; border-top: 1px solid var(--portal-line); color: var(--portal-muted); font-size: 11px; }.site-footer > div { display: flex; align-items: center; gap: 10px; color: var(--portal-ink); }.small-mark { width: 34px; height: 34px; border-radius: 12px; }.small-mark span { font-size: 9px; }.small-mark i { width: 12px; height: 9px; }.footer-view-count b { color: var(--portal-pink-deep); }
.modal-overlay { background: rgba(48,34,47,0.45); backdrop-filter: blur(12px); }.modal-card { background: #fff; color: var(--portal-ink); border-color: rgba(255,255,255,0.55); box-shadow: 0 30px 80px rgba(50,32,47,0.28); }.modal-gilded-header { background: linear-gradient(145deg,#ffe1ed,#fff3dc); }.modal-gilded-header h2, .modal-gilded-header p { color: var(--portal-ink); }.modal-body { background: #fff; }.credential-row { background: #fff8fb; border-color: var(--portal-line); }.cred-label, .prize-desc, .spectator-msg { color: var(--portal-ink); }.cred-value { color: var(--portal-pink-deep); }.troll-body { text-align: center; padding: 22px; }.troll-img { max-width: 100%; max-height: 280px; border-radius: 18px; box-shadow: var(--portal-shadow-soft); }

.is-night { --portal-bg: #241c25; --portal-surface: rgba(45,34,46,0.86); --portal-ink: #fff4f8; --portal-muted: #c3b4c0; --portal-line: rgba(255,255,255,0.11); --portal-shadow: 0 24px 70px rgba(0,0,0,0.27); --portal-shadow-soft: 0 12px 35px rgba(0,0,0,0.2); background: radial-gradient(circle at 12% 0,rgba(183,68,123,0.22),transparent 26rem),#241c25; }
.is-night .site-header, .is-night .taskbar, .is-night .live-pill, .is-night .icon-button, .is-night .admin-shortcut, .is-night .button-quiet, .is-night .heading-chip, .is-night .segmented-control, .is-night .filter-row button, .is-night .club-card, .is-night .faculty-card, .is-night .school-link-card, .is-night .timetable-wrap, .is-night .schedule-row > strong { background-color: #302532; color: var(--portal-ink); }
.is-night .hero-copy h1, .is-night .brand-copy strong { color: var(--portal-ink); }.is-night .hero-art::before { opacity: 0.22; }.is-night .cat-card-main { background: linear-gradient(155deg,#fff,#fff0f6); }.is-night .home-ribbon { background: linear-gradient(100deg,#362633,#302a27 55%,#24343c); }.is-night .intro-card, .is-night .soft-card, .is-night .club-group, .is-night .faculty-group { background: var(--portal-surface); }.is-night .mini-game-card { background: linear-gradient(145deg,#633147,#4d303d); }.is-night .mini-game-card p { color: #e9ceda; }.is-night .game-app-container { background: radial-gradient(circle at 50% -10%,rgba(239,87,150,0.24),transparent 31rem),#2a202a; }.is-night .game-app-container .card-glass, .is-night .game-app-container .stat-card, .is-night .game-app-container .input-group input, .is-night .modal-card, .is-night .modal-body { background: #352836; color: var(--portal-ink); }

@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes floatSticker { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes livePulse { 50% { box-shadow: 0 0 0 8px rgba(64,199,136,0.04); } }

@media (max-width: 1120px) {
  .task-item { padding: 0 13px; }
  .hero-grid { grid-template-columns: minmax(0,1fr) 390px; gap: 20px; }
  .hero-art { transform: scale(0.88); }
  .club-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .site-shell { width: min(100% - 24px,760px); }
  .live-pill { display: none; }
  .taskbar { top: 6px; }
  .task-game { margin-left: 0; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-top: 28px; }
  .hero-copy { text-align: center; }.hero-copy > p { margin-inline: auto; }.hero-actions, .hero-note { justify-content: center; }
  .hero-art { min-height: 430px; order: -1; transform: scale(0.88); margin: -30px 0 -50px; }
  .home-ribbon { flex-direction: column; align-items: flex-start; }.ribbon-stats { width: 100%; }.ribbon-stats span { flex: 1; min-width: 0; }
  .intro-grid, .news-grid, .school-links-grid { grid-template-columns: 1fr; }
  .home-columns { grid-template-columns: 1fr; }
  .club-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .faculty-groups { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; }.count-badge { width: 96px; height: 88px; }
}

@media (max-width: 620px) {
  .site-shell { width: calc(100% - 18px); }
  .site-header { min-height: 72px; }.brand-mark { width: 43px; height: 43px; border-radius: 15px; }.brand-copy small { display: none; }.brand-copy strong { font-size: 17px; }.admin-shortcut { width: 42px; padding: 0; justify-content: center; font-size: 0; }.admin-shortcut span { font-size: 16px; }
  .taskbar { gap: 4px; padding: 6px; border-radius: 18px; }.task-item { min-height: 43px; padding: 0 12px; border-radius: 13px; }.task-item em { font-size: 12px; }.task-item b { display: none; }
  .site-main { padding-top: 22px; }.hero-grid { padding-inline: 2px; }.hero-copy h1 { font-size: clamp(42px,13vw,58px); letter-spacing: -2.5px; }.hero-copy > p { font-size: 15px; }.button { width: 100%; }
  .hero-art { min-height: 360px; transform: scale(0.72); margin: -65px 0 -70px; }.home-ribbon { padding: 22px; }.ribbon-stats { flex-wrap: wrap; }.ribbon-stats span { flex: 1 1 30%; padding-left: 10px; }.ribbon-stats b { font-size: 20px; }.intro-card { min-height: 185px; }.home-columns { gap: 12px; }
  .page-heading { flex-direction: column; margin-bottom: 20px; }.page-heading h2 { font-size: 40px; letter-spacing: -1.8px; }.count-badge { width: 100%; height: auto; flex-direction: row; gap: 7px; justify-content: flex-start; padding: 13px 18px; }.count-badge strong { font-size: 23px; }.timetable-toolbar { align-items: flex-start; flex-direction: column; }.segmented-control { width: 100%; overflow-x: auto; }.segmented-control button { flex: 0 0 auto; }
  .schedule-table-head, .schedule-row { grid-template-columns: 58px 1fr 1fr; }.schedule-table-head span, .schedule-row > div { padding: 12px 9px; }.schedule-row b { font-size: 14px; }.room-guide { grid-template-columns: 1fr; }.club-group, .faculty-group { padding: 17px; }.club-grid { grid-template-columns: 1fr; }.club-card { padding: 13px; }.news-card { min-height: 280px; }.game-portal-head { align-items: flex-start; flex-direction: column; }.game-app-container { padding: 13px; border-radius: 24px; }.game-app-container .app-header { align-items: flex-start; gap: 12px; }.game-app-container .stats-area { width: 100%; }.game-app-container .stat-card { flex: 1; }.game-app-container .card-glass { margin-top: 22px; padding: 24px 18px; }.site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.timetable-wrap { overflow-x: auto; }
.schedule-table-head, .schedule-row { grid-template-columns: 78px minmax(0, 1fr) 78px minmax(0, 1fr); }
.schedule-table-head span, .schedule-row > div, .schedule-row > strong { min-width: 0; }
.schedule-period { display: grid; place-items: center; font: 700 20px var(--portal-display); color: var(--portal-pink-deep); background: #fff8fb; }
.schedule-row > div { overflow-wrap: anywhere; }
.room-guide { grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr); align-items: stretch; }
.room-guide-visual { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--portal-line); border-radius: 20px; background: linear-gradient(145deg, #fff, #fff3f8); }
.room-guide-visual img { width: 100%; height: auto; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(104, 63, 92, 0.08); }
.room-guide-visual figcaption { color: var(--portal-muted); font-size: 12px; line-height: 1.55; }
.room-guide-download { align-self: flex-start; padding: 8px 11px; border-radius: 10px; background: var(--portal-pink-soft); color: var(--portal-pink-deep); font-size: 11px; font-weight: 850; text-decoration: none; }
.room-guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.room-guide-cards .room-card { height: 100%; box-sizing: border-box; }
.club-card.is-unlinked, .faculty-card.is-unlinked { cursor: default; }
.club-card.is-unlinked:hover, .faculty-card.is-unlinked:hover { transform: none; border-color: rgba(118, 76, 106, 0.11); box-shadow: none; }
.club-card.is-unlinked .club-copy small, .faculty-card.is-unlinked .faculty-copy small { color: var(--portal-muted); }
.school-link-avatar { flex-basis: 52px; width: 52px; height: 52px; border-radius: 15px; }
.school-link-avatar .avatar-fallback { font-size: 11px; }

@media (max-width: 620px) {
  .page-heading > div:first-child { min-width: 0; width: 100%; }
  .page-heading h2 { overflow-wrap: anywhere; }
  .schedule-table-head, .schedule-row { grid-template-columns: 54px minmax(112px, 1fr) 54px minmax(112px, 1fr); min-width: 420px; }
  .schedule-table-head span, .schedule-row > div, .schedule-row > strong { padding-left: 10px; padding-right: 10px; }
  .room-guide { grid-template-columns: 1fr; }
  .room-guide-cards { grid-template-columns: 1fr; }
}
