/* ============================================================
   봄세이.exe  -  Yuidust-style XP pixel desktop
   1280x960 fixed wide scene, scaled to fit viewport
   palette: muted XP blue sky / gray clouds / green hill
   ============================================================ */
:root{
  --sky-1:#78a8df;
  --sky-2:#8ab7e7;
  --sky-3:#a0c7ee;
  --grass:#6aa84c;
  --grass-dk:#4f842f;
  --chrome-hi:#5a8ae8;
  --chrome:#2f62c8;
  --chrome-dk:#1e4aa8;
  --frame:#1e4aa8;
  --body-bg:#b8cdf2;
  --panel:#ccdcf6;
  --panel-lt:#e4edfb;
  --ink:#16295e;
  --ink-soft:#3d5490;
  --red:#c23b2e;
  --gold:#c99a2e;
  --white:#f2f6fc;
  --blush:#f1a8c5;
  --blush-dk:#c75d86;
  --mint:#9bd681;
  --lemon:#f6d86b;
}
*{margin:0;padding:0;box-sizing:border-box;}
html,body{height:100%;}
body{
  background:#0d1830;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
  font-family:'Galmuri11','Galmuri9','DotGothic16','Courier New',monospace;
  color:var(--ink);
  -webkit-font-smoothing:none;
  image-rendering:pixelated;
}
#stage-wrap{position:relative;}
#stage{
  position:relative;
  width:1280px;height:960px;
  overflow:hidden;
  background:linear-gradient(180deg,
    var(--sky-1) 0%, var(--sky-1) 32%,
    var(--sky-2) 32%, var(--sky-2) 62%,
    var(--sky-3) 62%, var(--sky-3) 100%);
  transform-origin:top left;
  cursor:none;
  user-select:none;
}
#stage *{cursor:none !important;}
#stage::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(var(--white),var(--white)) 86px 92px / 4px 4px no-repeat,
    linear-gradient(var(--blush),var(--blush)) 90px 96px / 4px 4px no-repeat,
    linear-gradient(var(--lemon),var(--lemon)) 224px 64px / 5px 5px no-repeat,
    linear-gradient(var(--white),var(--white)) 229px 69px / 4px 4px no-repeat,
    linear-gradient(var(--blush),var(--blush)) 504px 118px / 5px 5px no-repeat,
    linear-gradient(var(--white),var(--white)) 512px 122px / 4px 4px no-repeat,
    linear-gradient(var(--lemon),var(--lemon)) 772px 128px / 5px 5px no-repeat,
    linear-gradient(var(--white),var(--white)) 778px 134px / 4px 4px no-repeat,
    linear-gradient(var(--blush),var(--blush)) 708px 368px / 4px 4px no-repeat,
    linear-gradient(var(--white),var(--white)) 714px 374px / 4px 4px no-repeat;
  opacity:.85;
}
canvas{image-rendering:pixelated;display:block;}

/* ---------- hill (rises to the right, like ref) ---------- */
.hill{position:absolute;background:var(--grass);}
.hill.base{left:0;right:0;bottom:0;height:122px;}
.hill.base::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(var(--blush),var(--blush)) 72px 42px / 5px 5px no-repeat,
    linear-gradient(var(--lemon),var(--lemon)) 78px 42px / 4px 4px no-repeat,
    linear-gradient(var(--white),var(--white)) 76px 48px / 4px 4px no-repeat,
    linear-gradient(var(--lemon),var(--lemon)) 310px 72px / 5px 5px no-repeat,
    linear-gradient(var(--blush),var(--blush)) 316px 78px / 4px 4px no-repeat,
    linear-gradient(var(--white),var(--white)) 642px 58px / 5px 5px no-repeat,
    linear-gradient(var(--blush),var(--blush)) 648px 64px / 4px 4px no-repeat,
    linear-gradient(var(--lemon),var(--lemon)) 850px 74px / 5px 5px no-repeat,
    linear-gradient(var(--white),var(--white)) 856px 80px / 4px 4px no-repeat;
}
.hill.s1{right:0;bottom:122px;width:60%;height:28px;}
.hill.s2{right:0;bottom:150px;width:50%;height:28px;}
.hill.s3{right:0;bottom:178px;width:42%;height:28px;}
.hill.s4{right:0;bottom:206px;width:35%;height:28px;}
.hill.s5{right:0;bottom:234px;width:28%;height:28px;}
.hill.s6{right:0;bottom:262px;width:22%;height:28px;}
.hill.s7{right:0;bottom:290px;width:16%;height:28px;}
.hill.s8{right:0;bottom:318px;width:10%;height:28px;}
.hill-dark{position:absolute;left:0;right:0;bottom:0;height:40px;background:var(--grass-dk);}
.tuft{position:absolute;}

/* ---------- clouds ---------- */
.cloud{position:absolute;}
.cloud canvas{filter:drop-shadow(2px 2px 0 rgba(241,168,197,.32));}

/* ---------- desktop shortcuts ---------- */
.desktop-icons{
  position:absolute;
  left:18px;top:18px;
  z-index:8;
  display:grid;
  grid-template-columns:82px 82px 82px;
  grid-template-rows:88px 88px 88px;
  gap:10px 16px;
}
.desk-icon{
  appearance:none;-webkit-appearance:none;
  width:82px;height:88px;
  border:0;background:transparent;
  color:var(--white);
  font-family:inherit;font-size:13px;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  gap:7px;padding:4px 2px;
  cursor:pointer;
  text-shadow:2px 2px 0 #08255d, -1px 0 0 #08255d, 0 -1px 0 #08255d;
}
.desk-icon:hover .desk-art,
.desk-icon:focus-visible .desk-art{
  transform:translateY(-1px);
  filter:drop-shadow(2px 3px 0 #08255d) brightness(1.08);
}
.desk-icon:hover .desk-label,
.desk-icon:focus-visible .desk-label{
  background:var(--chrome);
  outline:2px solid var(--white);
}
.desk-art{
  position:relative;
  width:42px;height:42px;
  image-rendering:pixelated;
  filter:drop-shadow(2px 2px 0 #08255d);
  transition:transform .08s steps(1), filter .08s steps(1);
}
.desk-label{
  padding:1px 4px 2px;
  line-height:1.15;
  text-align:center;
}
.desk-art.trash{
  background:
    linear-gradient(#ffffff,#ffffff) left 12px top 4px / 18px 4px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 10px top 8px / 23px 3px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 12px top 11px / 4px 25px no-repeat,
    linear-gradient(var(--frame),var(--frame)) right 10px top 11px / 4px 25px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 14px bottom 3px / 15px 4px no-repeat,
    linear-gradient(#f4fbff,#f4fbff) left 16px top 12px / 14px 22px no-repeat,
    linear-gradient(#5f7fb8,#5f7fb8) left 19px top 15px / 3px 16px no-repeat,
    linear-gradient(#5f7fb8,#5f7fb8) left 25px top 15px / 3px 16px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 16px top 12px / 14px 4px no-repeat;
}
.desk-art.schedule{
  background:
    linear-gradient(#5da64c,#5da64c) left 12px top 16px / 4px 4px no-repeat,
    linear-gradient(#5da64c,#5da64c) left 12px top 24px / 4px 4px no-repeat,
    linear-gradient(#5da64c,#5da64c) left 12px top 32px / 4px 4px no-repeat,
    linear-gradient(#8fb4ff,#8fb4ff) left 19px top 16px / 13px 3px no-repeat,
    linear-gradient(#ffc3d7,#ffc3d7) left 19px top 24px / 13px 3px no-repeat,
    linear-gradient(#8fb4ff,#8fb4ff) left 19px top 32px / 10px 3px no-repeat,
    linear-gradient(#ff4f5d,#ff4f5d) right 9px top 6px / 5px 8px no-repeat,
    linear-gradient(var(--chrome),var(--chrome)) left 10px top 8px / 24px 5px no-repeat,
    linear-gradient(#f9fcff,#f9fcff) left 8px top 5px / 28px 33px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 5px top 2px / 34px 39px no-repeat;
}
.desk-art.calendar{
  background:
    linear-gradient(#ffffff,#ffffff) left 11px top 4px / 4px 8px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 27px top 4px / 4px 8px no-repeat,
    linear-gradient(#7da5f0,#7da5f0) left 14px top 20px / 4px 4px no-repeat,
    linear-gradient(#d86a83,#d86a83) left 22px top 20px / 4px 4px no-repeat,
    linear-gradient(#9bd681,#9bd681) left 30px top 20px / 4px 4px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 14px top 28px / 4px 4px no-repeat,
    linear-gradient(#ffd86b,#ffd86b) left 22px top 28px / 4px 4px no-repeat,
    linear-gradient(#6f9bff,#6f9bff) left 30px top 28px / 4px 4px no-repeat,
    linear-gradient(#ff6f8f,#ff6f8f) left 8px top 8px / 28px 8px no-repeat,
    linear-gradient(#f4f8ff,#f4f8ff) left 8px top 16px / 28px 21px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 5px top 5px / 34px 35px no-repeat;
}
.desk-art.playlist{
  background:
    linear-gradient(#ffffff,#ffffff) right 7px bottom 7px / 3px 6px no-repeat,
    linear-gradient(#ffffff,#ffffff) right 4px bottom 10px / 6px 3px no-repeat,
    linear-gradient(#ffffff,#ffffff) right 10px bottom 7px / 3px 3px no-repeat,
    linear-gradient(var(--red),var(--red)) right 4px bottom 4px / 12px 12px no-repeat,
    linear-gradient(var(--chrome),var(--chrome)) left 14px top 14px / 11px 3px no-repeat,
    linear-gradient(var(--chrome),var(--chrome)) left 14px top 21px / 9px 3px no-repeat,
    linear-gradient(var(--chrome),var(--chrome)) left 14px top 28px / 12px 3px no-repeat,
    linear-gradient(#f9fcff,#f9fcff) left 10px top 10px / 21px 24px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 7px top 7px / 27px 30px no-repeat;
}
.desk-art.thanks{
  background:
    linear-gradient(#ffffff,#ffffff) left 14px top 9px / 14px 3px no-repeat,
    linear-gradient(#8fb4ff,#8fb4ff) left 14px top 16px / 14px 3px no-repeat,
    linear-gradient(#ffc3d7,#ffc3d7) left 14px top 23px / 10px 3px no-repeat,
    linear-gradient(#c25b78,#c25b78) left 24px top 29px / 4px 4px no-repeat,
    linear-gradient(#c25b78,#c25b78) left 18px top 29px / 4px 4px no-repeat,
    linear-gradient(#c25b78,#c25b78) left 20px top 31px / 6px 4px no-repeat,
    linear-gradient(#c25b78,#c25b78) left 22px top 35px / 2px 2px no-repeat,
    linear-gradient(#f9fcff,#f9fcff) left 10px top 6px / 23px 32px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 7px top 3px / 29px 38px no-repeat;
}
.desk-art.minesweeper{
  background:
    url("assets/images/bomsei_minesweeper.png") center 7px / 30px auto no-repeat,
    linear-gradient(#ff6f8f,#ff6f8f) right 5px bottom 5px / 8px 8px no-repeat,
    linear-gradient(#5da64c,#5da64c) right 7px bottom 7px / 4px 4px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 7px top 5px / 28px 28px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 4px top 2px / 34px 34px no-repeat;
}
.playlist-shortcut{grid-column:1;grid-row:2;}
.calendar-shortcut{grid-column:2;grid-row:2;}
.thanks-shortcut{grid-column:3;grid-row:1;}
.minesweeper-shortcut{grid-column:1;grid-row:3;}

/* ---------- window chrome ---------- */
.win{
  position:absolute;
  background:var(--body-bg);
  border:5px solid var(--frame);
  border-radius:0;
  overflow:visible;
  clip-path:polygon(
    14px 0,
    calc(100% - 14px) 0,
    calc(100% - 14px) 4px,
    calc(100% - 8px) 4px,
    calc(100% - 8px) 8px,
    calc(100% - 4px) 8px,
    calc(100% - 4px) 12px,
    100% 12px,
    100% 100%,
    0 100%,
    0 12px,
    4px 12px,
    4px 8px,
    8px 8px,
    8px 4px,
    14px 4px
  );
  box-shadow:
    inset 2px 2px 0 #6f9bff,
    inset -2px -2px 0 #0b2f78;
  filter:drop-shadow(6px 6px 0 rgba(10,22,52,.34));
}
.win::before{
  content:"";
  position:absolute;
  inset:-5px;
  z-index:5;
  pointer-events:none;
  background:
    linear-gradient(var(--frame),var(--frame)) left 14px top 0 / calc(100% - 28px) 5px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 8px top 4px / 6px 5px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 4px top 8px / 4px 5px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 0 top 12px / 5px calc(100% - 12px) no-repeat,
    linear-gradient(var(--frame),var(--frame)) right 8px top 4px / 6px 5px no-repeat,
    linear-gradient(var(--frame),var(--frame)) right 4px top 8px / 4px 5px no-repeat,
    linear-gradient(var(--frame),var(--frame)) right 0 top 12px / 5px calc(100% - 12px) no-repeat;
}
.tbar{
  height:38px;display:flex;align-items:center;
  padding:3px 12px 4px 18px;gap:4px;
  border-radius:0;
  background:
    linear-gradient(#6f9bff,#6f9bff) left 14px top 0 / calc(100% - 28px) 3px no-repeat,
    linear-gradient(#6f9bff,#6f9bff) left 8px top 4px / 6px 3px no-repeat,
    linear-gradient(#6f9bff,#6f9bff) left 4px top 8px / 4px 3px no-repeat,
    linear-gradient(#1c4ca8,#1c4ca8) right 8px top 4px / 6px 3px no-repeat,
    linear-gradient(#1c4ca8,#1c4ca8) right 4px top 8px / 4px 3px no-repeat,
    linear-gradient(180deg,var(--chrome-hi) 0%,var(--chrome) 48%,var(--chrome-dk) 100%);
  border-bottom:5px solid var(--frame);
  color:var(--white);cursor:grab;
}
.tbar:active{cursor:grabbing;}
.tbar .tt{flex:1;font-size:18px;line-height:1;letter-spacing:0;text-shadow:2px 2px 0 var(--chrome-dk);white-space:nowrap;overflow:hidden;}
.tbtn{
  appearance:none;
  -webkit-appearance:none;
  position:relative;
  width:26px;height:25px;flex:0 0 26px;border-radius:0;
  border:0;
  background-color:transparent;
  --btn-fill:#3869cf;
  --btn-top:#eef4ff;
  --btn-right:#b8c9ef;
  --btn-bottom:#8aa7e6;
  --btn-left:#eef4ff;
  background-image:
    linear-gradient(var(--btn-top),var(--btn-top)),
    linear-gradient(var(--btn-bottom),var(--btn-bottom)),
    linear-gradient(var(--btn-left),var(--btn-left)),
    linear-gradient(var(--btn-right),var(--btn-right)),
    linear-gradient(var(--btn-fill),var(--btn-fill));
  background-position:
    left 3px top 0,
    left 3px bottom 0,
    left 0 top 3px,
    right 0 top 3px,
    left 3px top 3px;
  background-size:
    calc(100% - 6px) 3px,
    calc(100% - 6px) 3px,
    3px calc(100% - 6px),
    3px calc(100% - 6px),
    calc(100% - 6px) calc(100% - 6px);
  background-repeat:no-repeat;
  color:transparent;font-size:0;line-height:1;text-align:center;
  cursor:pointer;font-family:inherit;font-weight:bold;padding:0;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.tbtn::before,
.tbtn::after{box-sizing:border-box;}
.tbtn::before{
  content:"";
  position:absolute;
  left:6px;right:6px;bottom:6px;height:3px;
  background:#eef4ff;
  box-shadow:
    1px 1px 0 #153f96,
    0 -1px 0 rgba(255,255,255,.45);
}
.tbtn.max::before{
  left:7px;right:7px;top:7px;bottom:auto;height:10px;
  background:transparent;
  border:3px solid #eef4ff;
  border-top-width:3px;
  box-shadow:
    1px 1px 0 #153f96,
    inset 1px 1px 0 rgba(255,255,255,.35);
}
.tbtn.min::after{
  content:"";
  position:absolute;
  left:7px;right:7px;bottom:10px;height:2px;
  background:#b9d0ff;
}
.tbtn.close{
  background-color:transparent;
  --btn-fill:var(--red);
  --btn-top:#eef4ff;
  --btn-right:#b8c9ef;
  --btn-bottom:#8aa7e6;
  --btn-left:#eef4ff;
}
.tbtn.close::before,
.tbtn.close::after{
  content:"";
  position:absolute;
  left:6px;right:auto;top:11px;bottom:auto;width:14px;height:3px;
  border:0;
  background:#eef4ff;
  box-shadow:
    1px 1px 0 #7b1d16,
    0 -1px 0 rgba(255,255,255,.35);
}
.tbtn.close::before{transform:rotate(45deg);}
.tbtn.close::after{transform:rotate(-45deg);}
.tbtn:active{transform:translateY(1px);}
.wbody{padding:8px;background:var(--body-bg);}

/* ---------- profile window (big, ref layout) ---------- */
#w-profile{
  border-radius:0;
  --profile-photo-w:286px;
  --profile-photo-h:382px;
  --profile-info-w:232px;
}
.phead{
  height:44px;display:flex;align-items:center;gap:10px;
  padding:4px 13px 5px 18px;cursor:grab;
  border-radius:0;
  background:
    linear-gradient(#6f9bff,#6f9bff) left 14px top 0 / calc(100% - 28px) 3px no-repeat,
    linear-gradient(#6f9bff,#6f9bff) left 8px top 4px / 6px 3px no-repeat,
    linear-gradient(#6f9bff,#6f9bff) left 4px top 8px / 4px 3px no-repeat,
    linear-gradient(#1c4ca8,#1c4ca8) right 8px top 4px / 6px 3px no-repeat,
    linear-gradient(#1c4ca8,#1c4ca8) right 4px top 8px / 4px 3px no-repeat,
    linear-gradient(180deg,var(--chrome-hi) 0%,var(--chrome) 48%,var(--chrome-dk) 100%);
  border-bottom:5px solid var(--frame);
}
.phead:active{cursor:grabbing;}
.phead .thumb{
  width:32px;height:32px;flex:0 0 32px;
  border:3px solid var(--white);border-radius:0;
  background:#7fa9de;overflow:hidden;
  display:flex;align-items:flex-end;justify-content:center;
}
.phead .nm{
  flex:1;font-size:20px;color:var(--white);letter-spacing:0;
  text-shadow:2px 2px 0 var(--chrome-dk);
}
.phead .thumb canvas{
  width:32px;
  height:32px;
}
.phead .thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  image-rendering:auto;
}
.phead .tbtn{align-self:center;}
.profile-browserbar{
  background:var(--body-bg);
  border-bottom:3px solid var(--frame);
  padding:7px 10px 8px;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.65);
}
.browser-nav{
  display:flex;
  align-items:center;
  gap:6px;
}
.browser-btn{
  appearance:none;-webkit-appearance:none;
  width:32px;height:26px;
  border:2px solid var(--frame);
  background:var(--panel-lt);
  color:var(--ink);
  font-family:inherit;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  box-shadow:inset 1px 1px 0 var(--white), inset -1px -1px 0 #8fa9dc;
}
.browser-btn:active{transform:translate(1px,1px);}
.address-box{
  flex:1;
  height:26px;
  display:flex;
  align-items:center;
  border:2px solid var(--frame);
  background:var(--panel-lt);
  color:var(--ink);
  font-size:13px;
  padding:0 8px;
  white-space:nowrap;
  overflow:hidden;
  box-shadow:inset 2px 2px 0 #ffffff;
}
.bookmark-bar{
  margin-top:6px;
  display:flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  border:2px solid var(--frame);
  background:var(--panel);
  padding:3px 6px;
  box-shadow:inset 1px 1px 0 var(--white), inset -1px -1px 0 #8fa9dc;
}
.bookmark-bar span{
  color:var(--ink-soft);
  font-size:13px;
  margin-right:2px;
}
.bookmark-bar a{
  color:var(--ink);
  text-decoration:none;
  font-size:14px;
  background:var(--panel-lt);
  border:2px solid var(--frame);
  padding:3px 8px;
  box-shadow:inset 1px 1px 0 #ffffff, inset -1px -1px 0 #8fa9dc;
}
.bookmark-bar a:hover{
  color:var(--white);
  background:var(--chrome);
}
#w-profile .cols{
  display:grid;
  grid-template-columns:var(--profile-photo-w) var(--profile-info-w);
  align-items:stretch;
  gap:10px;
  padding:12px 16px 14px;
}
.pf-left{
  width:auto;
  height:var(--profile-photo-h);
  aspect-ratio:3 / 4;
  background:var(--panel-lt);
  border:3px solid var(--frame);
  display:block;
  padding:0;
  min-height:0;
  overflow:hidden;
  box-shadow:inset 2px 2px 0 #ffffff, inset -2px -2px 0 #8fa9dc;
}
.pf-left .avatar-box{position:relative;}
.profile-photo{
  width:100%;
  height:100%;
  overflow:hidden;
  border:0;
  background:var(--panel-lt);
}
.profile-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  transform:none;
  image-rendering:auto;
}
.pf-right{
  min-width:0;
  height:var(--profile-photo-h);
  background:var(--panel);border:3px solid var(--frame);
  padding:14px 12px;display:flex;flex-direction:column;
}
.pf-right ul{list-style:none;font-size:18px;line-height:2.05;}
.pf-right ul li::before{content:"●";color:var(--ink);margin-right:12px;font-size:11px;vertical-align:2px;}
.pf-bio{margin-top:18px;font-size:15px;line-height:1.8;color:var(--ink-soft);text-align:center;}
.pf-heart{text-align:center;color:#c25b78;font-size:18px;margin-top:6px;}
.xpbtn{
  font-family:inherit;font-size:17px;color:var(--ink);
  background:var(--panel-lt);
  border:3px solid var(--frame);border-radius:0;
  box-shadow:inset 2px 2px 0 var(--white), inset -2px -2px 0 #8fa9dc, 2px 2px 0 rgba(10,22,52,.28);
  padding:6px 14px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;
}
.xpbtn:active{transform:translate(1px,1px);box-shadow:none;}
.key-ic{display:inline-block;width:16px;height:16px;background:var(--gold);border:2px solid #8a6a10;border-radius:3px;}
.off-ic{display:inline-block;width:16px;height:16px;background:var(--red);border:2px solid #7e241a;border-radius:50%;}

/* ---------- list windows ---------- */
.listwin .wbody{padding:8px;}
.listbox{
  background:var(--panel-lt);border:3px solid var(--frame);
  padding:8px 4px 8px 12px;display:flex;
  box-shadow:inset 2px 2px 0 #f4f4f4;
}
.listbox ul{list-style:none;flex:1;font-size:26px;line-height:1.36;color:var(--ink);}
.scroll{
  width:18px;flex:0 0 18px;margin-left:8px;
  background:var(--panel);border:3px solid var(--frame);
  display:flex;flex-direction:column;gap:3px;padding:2px;
  box-shadow:inset 2px 2px 0 #fff, inset -2px -2px 0 #8fa9dc;
}
.scroll::before,
.scroll::after{
  content:"";
  display:block;
  height:14px;
  background:#f2f2f2;
  border:2px solid #9a9a9a;
  box-shadow:inset 2px 2px 0 #fff;
}
.scroll i{display:block;height:6px;background:var(--chrome);}
.scroll i.gap{background:transparent;}
/* ---------- notepad ---------- */
#w-new .wbody{
  min-height:200px;
}
.notepad-body{
  padding:0;
  background:var(--panel);
}
.notepad-menu{
  height:25px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 9px;
  background:var(--body-bg);
  border-bottom:3px solid var(--frame);
  color:var(--ink);
  font-size:13px;
  box-shadow:inset 0 1px 0 #ffffff;
}
.notepad-menu span{
  display:inline-flex;
  align-items:center;
  height:100%;
}
.notepad-save{
  margin-left:auto;
  min-height:19px;
  border:2px solid var(--frame);
  background:var(--panel-lt);
  color:var(--ink);
  font-family:inherit;
  font-size:12px;
  line-height:1;
  padding:1px 8px 2px;
  box-shadow:inset 1px 1px 0 #ffffff, inset -1px -1px 0 #8fa9dc;
}
.notepad-save[hidden]{
  display:none !important;
}
.notepad-text{
  display:block;
  width:100%;
  height:175px;
  resize:none;
  border:0;
  outline:0;
  background:var(--panel-lt);
  color:var(--ink);
  font-family:inherit;
  font-size:15px;
  line-height:1.45;
  padding:9px 10px;
  box-shadow:inset 2px 2px 0 #ffffff;
  -webkit-font-smoothing:none;
  user-select:text;
}
.notepad-text[readonly]{
  color:#263d78;
}
.notepad-text::selection{
  background:var(--chrome);
  color:var(--white);
}
.notepad-status{
  min-height:22px;
  padding:4px 8px;
  border-top:3px solid var(--frame);
  background:var(--body-bg);
  color:var(--ink-soft);
  font-size:12px;
  line-height:1.2;
}
.notepad-status[hidden]{
  display:none !important;
}

/* ---------- thanks to ---------- */
#w-thanks{display:none;}
.thanks-body{
  padding:8px;
  background:var(--panel);
}
.thanks-card{
  min-height:210px;
  background:var(--panel-lt);
  border:3px solid var(--frame);
  box-shadow:inset 2px 2px 0 #ffffff, inset -2px -2px 0 #8fa9dc;
  padding:12px 14px;
}
.thanks-title{
  color:var(--chrome-dk);
  font-size:17px;
  font-weight:bold;
  border-bottom:2px dashed #9eb7e8;
  padding-bottom:6px;
  margin-bottom:8px;
}
.thanks-list{
  list-style:none;
  display:grid;
  gap:5px;
  color:var(--ink);
  font-size:16px;
  line-height:1.35;
}
.thanks-list li{
  display:flex;
  align-items:center;
  min-height:25px;
  padding:2px 0;
  font-weight:bold;
}
.thanks-list li::before{
  content:"♥";
  color:#c25b78;
  font-size:12px;
  margin-right:9px;
  text-shadow:1px 1px 0 #ffffff;
}
.thanks-made{
  margin-top:10px;
  padding-top:9px;
  border-top:2px dashed #9eb7e8;
  color:var(--ink-soft);
  text-align:center;
  font-size:13px;
  font-weight:bold;
  line-height:1.45;
}
.thanks-made b,
.thanks-made strong{
  display:block;
  font-weight:bold;
}
.thanks-made strong{
  color:var(--ink);
  font-size:16px;
}
.thanks-copy{
  margin-top:6px;
  color:var(--ink-soft);
  text-align:center;
  font-size:12px;
  font-weight:bold;
  line-height:1.35;
}

/* ---------- minesweeper ---------- */
#w-minesweeper{display:none;}
.minesweeper-body{
  padding:8px;
  background:var(--panel);
}
.mine-hero{
  display:flex;
  align-items:center;
  justify-content:center;
  border:3px solid var(--frame);
  background:var(--panel-lt);
  min-height:52px;
  padding:8px 10px;
  box-shadow:inset 2px 2px 0 #ffffff, inset -2px -2px 0 #8fa9dc;
}
.mine-hero b,
.mine-hero span{
  display:block;
  font-weight:bold;
}
.mine-hero b{
  color:var(--ink);
  font-size:18px;
  line-height:1.2;
  text-align:center;
}
.mine-hero span{
  margin-top:5px;
  color:#c25b78;
  font-size:13px;
  text-align:center;
}
.mine-panel{
  margin-top:8px;
  display:grid;
  grid-template-columns:1fr 44px 1fr;
  align-items:center;
  gap:8px;
}
.mine-counter{
  height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  padding:0 7px;
  border:3px solid var(--frame);
  background:#12285f;
  color:#ff6f8f;
  box-shadow:inset 2px 2px 0 #061332, inset -2px -2px 0 #345aa6;
}
.mine-counter span{
  color:#9bd681;
  font-size:11px;
  font-weight:bold;
}
.mine-counter b{
  min-width:34px;
  text-align:right;
  font-size:18px;
  letter-spacing:1px;
}
.mine-reset{
  appearance:none;
  -webkit-appearance:none;
  width:44px;
  height:36px;
  border:3px solid var(--frame);
  background:var(--panel-lt);
  color:var(--ink);
  font-family:inherit;
  font-size:21px;
  font-weight:bold;
  line-height:1;
  cursor:pointer;
  box-shadow:inset 2px 2px 0 #ffffff, inset -2px -2px 0 #8fa9dc;
}
.mine-reset:active{
  transform:translate(1px,1px);
}
.mine-board{
  margin-top:8px;
  display:grid;
  grid-template-columns:repeat(9, 34px);
  grid-auto-rows:34px;
  width:max-content;
  max-width:100%;
  border:3px solid var(--frame);
  background:#9eb7e8;
  box-shadow:inset 2px 2px 0 #ffffff, 3px 3px 0 rgba(10,22,52,.16);
}
.mine-cell{
  appearance:none;
  -webkit-appearance:none;
  width:34px;
  height:34px;
  border:2px solid var(--frame);
  background:var(--panel);
  color:var(--ink);
  font-family:inherit;
  font-size:18px;
  font-weight:bold;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:inset 2px 2px 0 #ffffff, inset -2px -2px 0 #8fa9dc;
}
.mine-cell.open{
  background:#edf4ff;
  border-color:#8fa9dc;
  box-shadow:inset 1px 1px 0 #d6e4fa;
  cursor:default;
}
.mine-cell.flagged{
  color:transparent;
  background:
    url("assets/images/bomsei_minesweeper.png") center center / 26px auto no-repeat,
    #fff4bf;
}
.mine-cell.boom{
  color:#ffffff;
  background:#ff4d57;
  border-color:#9d2d25;
}
.mine-cell.n1{color:#245aad;}
.mine-cell.n2{color:#3f9426;}
.mine-cell.n3{color:#c23b2e;}
.mine-cell.n4{color:#5b4db5;}
.mine-cell.n5,
.mine-cell.n6,
.mine-cell.n7,
.mine-cell.n8{color:#733c00;}

/* ---------- playlist ---------- */
#w-playlist{display:block;}
.playlist-body{
  padding:8px;
  position:relative;
}
.playlist-list{
  background:var(--panel-lt);
  border:3px solid var(--frame);
  box-shadow:inset 2px 2px 0 #f4f4f4;
  padding:6px;
  display:flex;
  flex-direction:column;
  gap:4px;
  min-height:244px;
  max-height:340px;
  overflow-y:auto;
}
.track{
  appearance:none;-webkit-appearance:none;
  border:0;
  background:transparent;
  color:var(--ink);
  font-family:inherit;
  font-size:15px;
  display:grid;
  grid-template-columns:30px 1fr 48px;
  align-items:center;
  gap:6px;
  min-height:36px;
  padding:4px;
  text-align:left;
  cursor:pointer;
}
.track:hover,
.track.active{
  background:var(--chrome);
  color:var(--white);
}
.track-no{color:var(--ink-soft);}
.track:hover .track-no,
.track.active .track-no{color:var(--white);}
.track-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:1px;
}
.track-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.track-artist{
  color:var(--ink-soft);
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.track:hover .track-artist,
.track.active .track-artist{color:#eaf2ff;}
.track-time{text-align:right;font-size:13px;}
.track-empty{
  padding:18px 8px;
  color:var(--ink-soft);
  font-size:13px;
  text-align:center;
}
.playlist-player{
  position:absolute;
  left:0;
  top:0;
  width:1px;
  height:1px;
  margin:0;
  border:0;
  opacity:0;
  pointer-events:none;
  overflow:hidden;
  clip-path:inset(50%);
}
.playlist-player iframe{
  width:1px;
  height:1px;
  border:0;
  display:block;
}
.playlist-toolbar{
  margin-top:18px;
  height:164px;
  padding:14px 0 18px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:0;
  box-shadow:none;
}
.ipod-wheel{
  position:relative;
  width:116px;
  height:116px;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 28px, var(--panel-lt) 29px 100%),
    linear-gradient(180deg,#edf4ff 0%,#dce8fb 52%,#bed3f2 100%);
  border:3px solid var(--frame);
  box-shadow:
    inset 3px 3px 0 #ffffff,
    inset -3px -3px 0 #8fa9dc,
    3px 3px 0 rgba(10,22,52,.22);
}
.ipod-wheel button{
  appearance:none;-webkit-appearance:none;
  border:0;
  background:transparent;
  color:var(--ink-soft);
  font-family:inherit;
  font-weight:bold;
  cursor:pointer;
  text-shadow:1px 1px 0 #ffffff;
}
.wheel-menu{
  position:absolute;
  left:0;right:0;top:7px;
  height:20px;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:var(--ink-soft);
  font-size:10px;
  line-height:1;
  font-weight:bold;
  text-shadow:1px 1px 0 #ffffff;
  transform:translateY(1px);
}
.wheel-menu:focus-visible{
  outline:2px solid #ffda6b;
  outline-offset:1px;
}
.wheel-prev,
.wheel-next{
  position:absolute;
  top:50%;
  width:22px;height:22px;
  margin-top:-11px;
  font-size:13px;
}
.wheel-prev{left:4px;}
.wheel-next{right:4px;}
.wheel-play{
  position:absolute;
  left:50%;bottom:4px;
  width:22px;height:22px;
  margin-left:-11px;
  font-size:13px;
}
.wheel-center{
  position:absolute;
  left:50%;top:50%;
  width:46px !important;
  height:46px !important;
  margin:-23px 0 0 -23px;
  border-radius:50% !important;
  background:
    linear-gradient(180deg,#b8cdf2 0%,#f3f7ff 48%,#b8cdf2 100%) !important;
  color:var(--ink-soft) !important;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  box-shadow:
    inset 1px 1px 0 #ffffff,
    inset -2px -2px 0 #8fa9dc,
    1px 1px 0 rgba(10,22,52,.16);
}
.ipod-wheel button:active{
  transform:translateY(1px);
}

/* ---------- schedule ---------- */
#w-sched{display:block;}
#w-sched .wbody{
  height:auto;
  min-height:356px;
  padding:9px;
  box-sizing:border-box;
}
.schbox{
  min-height:338px;
  background:#f6fbff;
  border:2px solid var(--frame);
  padding:8px;
  box-shadow:inset 2px 2px 0 #ffffff;
  display:flex;
  flex-direction:column;
  box-sizing:border-box;
  overflow:visible;
}
.schrow{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  align-items:flex-start;
  min-height:36px;
  font-size:16px;
  line-height:1.35;
  padding:5px;
  gap:8px;
}
.schrow + .schrow{border-top:2px dashed #9db2dd;}
.schrow.today{
  position:relative;
  margin:3px 0;
  padding:6px 5px;
  background:#fff6c6;
  border:2px solid var(--gold);
  box-shadow:inset 2px 2px 0 #ffffff, inset -2px -2px 0 #d6bf68, 2px 2px 0 rgba(10,22,52,.14);
}
.schrow.today + .schrow{
  border-top:0;
}
.schrow .d{
  color:#174a9a;
  font-weight:bold;
  text-align:center;
  padding-top:4px;
}
.sch-events{
  min-width:0;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  align-items:start;
  gap:4px;
}
.sch-date{
  color:#102d63;
  font-size:15px;
  font-weight:bold;
  padding-top:4px;
}
.schrow.today .sch-date{color:#7a4c00;}
.sch-event{
  grid-column:2;
  min-height:28px;
  font-size:15px;
  -webkit-line-clamp:1;
}
.sch-event:hover{
  transform:translateY(-1px);
}
.sch-empty{
  grid-column:2;
  color:#60708e;
  font-size:15px;
  font-weight:bold;
  padding-top:4px;
}
.schrow.rest .sch-date{color:#60708e;}
.schrow.today.rest .sch-date{color:#7a4c00;}
.schrow .live{
  flex:0 0 auto;
  font-size:12px;
  color:var(--white);
  background:var(--red);
  padding:2px 6px;
  margin-left:4px;
  box-shadow:1px 1px 0 rgba(10,22,52,.22);
}

/* ---------- calendar (hidden at first) ---------- */
#w-calendar{display:none;}
#w-calendar .tbar .tt{font-size:18px;}
#w-calendar.maximized{
  filter:none;
}
#w-calendar.maximized .calendar-body{
  height:calc(100% - 38px);
}
#w-calendar.maximized .calendar-app{
  height:100%;
  display:flex;
  flex-direction:column;
}
#w-calendar.maximized .cal-layout{
  flex:1;
  min-height:0;
}
#w-calendar.maximized .cal-main{
  display:flex;
  flex-direction:column;
  min-height:0;
}
#w-calendar.maximized .cal-grid{
  flex:1;
  grid-template-rows:repeat(6,1fr);
}
#w-calendar.maximized .cal-cell{
  height:auto;
}
.calendar-body{
  padding:6px;
  background:#5aa0ec;
}
.calendar-app{
  position:relative;
  background:#4b96eb;
  border:3px solid #2c66bd;
  box-shadow:inset 2px 2px 0 #91c2ff, inset -2px -2px 0 #1d4b96;
  color:#1c2f62;
  overflow:hidden;
}
.cal-top{
  position:relative;
  height:48px;
  display:grid;
  grid-template-columns:auto auto auto;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding:4px 12px;
  background:linear-gradient(180deg,#5ba5f4 0%,#428eea 100%);
}
.cal-top button{
  appearance:none;-webkit-appearance:none;
  border:0;
  background:transparent;
  color:var(--white);
  font-family:inherit;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  text-shadow:2px 2px 0 #2c66bd, 0 0 5px #ffffff;
}
#cal-memo-toggle{
  position:absolute;
  right:10px;
  top:10px;
  height:28px;
  min-width:56px;
  border:2px solid #2c66bd;
  background:#d9f2ff;
  color:#225b9d;
  font-size:13px;
  padding:0 8px;
  text-shadow:none;
  box-shadow:inset 1px 1px 0 #ffffff, inset -1px -1px 0 #77a6dc;
}
#cal-add-event{
  position:absolute;
  left:10px;
  top:10px;
  height:28px;
  min-width:74px;
  border:2px solid #2c66bd;
  background:#fff4bf;
  color:#8a5300;
  font-size:13px;
  padding:0 8px;
  text-shadow:none;
  box-shadow:inset 1px 1px 0 #ffffff, inset -1px -1px 0 #d5a52b;
}
.calendar-app.memo-open #cal-memo-toggle{
  background:#2a9be7;
  color:var(--white);
  box-shadow:inset 1px 1px 0 #8fd4ff, inset -1px -1px 0 #1d4b96;
}
.cal-title{
  text-align:center;
  color:var(--white);
  text-shadow:2px 2px 0 #2c66bd;
}
.cal-title span{
  display:inline;
  font-size:24px;
  font-weight:bold;
  line-height:1;
}
.cal-title b{
  display:inline;
  font-size:24px;
  line-height:1;
}
.cal-layout{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  padding:0 6px 6px;
}
.calendar-app.memo-open .cal-layout{
  grid-template-columns:1fr 150px;
  gap:6px;
}
.cal-main{
  min-width:0;
}
.cal-weekdays{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:0;
}
.cal-weekdays span{
  height:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--white);
  font-size:21px;
  font-weight:bold;
  text-shadow:2px 2px 0 #2c66bd;
}
.cal-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  border-left:1px solid #9bd0ff;
  border-top:1px solid #9bd0ff;
  background:#9bd0ff;
}
.cal-cell{
  position:relative;
  height:94px;
  background:#f7fbff;
  border-right:1px solid #9bd0ff;
  border-bottom:1px dotted #9aa8bf;
  padding:5px 5px 4px;
  overflow:hidden;
  font-size:13px;
  line-height:1.25;
  color:#1d2e5d;
}
.cal-cell:nth-child(7n+1){background:#fbfdff;}
.cal-cell.today{background:#d6f4ff;}
.cal-cell.today .cal-day{
  color:var(--white);
  background:#2a9be7;
  padding:1px 3px;
}
.cal-cell.muted{
  color:#9da9bf;
  background:#f0f5fb;
}
.cal-day{
  display:inline-block;
  min-width:22px;
  font-size:12px;
  font-weight:bold;
  color:#1d2e5d;
}
.cal-cell.sun .cal-day{color:#c23b2e;}
.cal-cell.sat .cal-day{color:#2a6fd1;}
.cal-cell.muted .cal-day{color:#9da9bf;}
.cal-cell.muted.sun .cal-day{color:#d79790;}
.cal-cell.muted.sat .cal-day{color:#8caee3;}
.cal-cell.today .cal-day{color:#fff;}
.cal-events{
  margin-top:4px;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.cal-event{
  display:block;
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  border:2px solid #b8d5f5;
  font-family:inherit;
  font-size:12px;
  font-weight:bold;
  line-height:1.24;
  text-align:left;
  cursor:pointer;
  min-height:28px;
  padding:3px 4px 3px 7px;
  background:#eef7ff;
  border-left:5px solid #5f963f;
  color:#10255d;
  white-space:normal;
  overflow:hidden;
  box-shadow:inset 1px 1px 0 #ffffff, 1px 1px 0 rgba(44,102,189,.18);
  word-break:keep-all;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.cal-event:hover,
.cal-event:focus-visible{
  background:#2a9be7;
  color:var(--white);
  outline:1px solid #ffffff;
}
.cal-event.main{
  background:#dff0ff;
  border-left-color:#2a9be7;
  color:#174b91;
}
.cal-cell.sun .cal-event.main{border-left-color:#c23b2e;color:#9d2d25;}
.cal-cell.sat .cal-event.main{border-left-color:#2a6fd1;color:#245aad;}
.cal-event.notice{
  background:#fff4bf;
  border-left-color:#ff7a3c;
  color:#733c00;
}
.cal-event.rest{
  background:#eef1f5;
  border-left-color:#8b98aa;
  color:#566173;
}
.cal-more{
  position:absolute;
  right:3px;bottom:3px;
  border:2px solid #ffffff;
  background:#2a9be7;
  color:var(--white);
  font-family:inherit;
  font-size:10px;
  padding:1px 4px;
  cursor:pointer;
}
.cal-more:hover,
.cal-more:focus-visible{
  background:#1f5fc2;
  outline:1px solid #ffffff;
}
.cal-add-day{
  position:absolute;
  top:4px;
  right:4px;
  width:18px;
  height:18px;
  border:2px solid #2c66bd;
  background:#fff4bf;
  color:#8a5300;
  font-family:inherit;
  font-size:13px;
  line-height:1;
  cursor:pointer;
  box-shadow:inset 1px 1px 0 #ffffff;
}
.cal-side{
  background:#beeaff;
  border:2px solid #2c66bd;
  box-shadow:inset 2px 2px 0 #eaf8ff;
  display:none;
  flex-direction:column;
  min-height:0;
  overflow:hidden;
}
.calendar-app.memo-open .cal-side{
  display:flex;
}
.cal-memo{
  height:100%;
  padding:8px 9px;
  font-size:11px;
  line-height:1.55;
  background:#d9f2ff;
}
.cal-memo b{
  display:inline-block;
  margin-bottom:3px;
  color:#2c66bd;
}
.cal-bottom{
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  color:var(--white);
  font-size:10px;
  background:#4b96eb;
  text-shadow:1px 1px 0 #2c66bd;
}
.cal-bottom b{
  color:var(--white);
  font-weight:normal;
  text-shadow:1px 1px 0 #2c66bd;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cal-modal{
  position:absolute;
  inset:0;
  z-index:12000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(25,67,130,.24);
}
.cal-modal[hidden]{display:none !important;}
.cal-modal-box{
  width:520px;
  max-width:calc(100% - 36px);
  max-height:calc(100% - 36px);
  background:var(--body-bg);
  border:4px solid var(--frame);
  box-shadow:6px 6px 0 rgba(10,22,52,.34), inset 2px 2px 0 #6f9bff, inset -2px -2px 0 #0b2f78;
  color:var(--ink);
  display:flex;
  flex-direction:column;
}
.cal-modal-head{
  height:34px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:3px 7px 4px 10px;
  background:linear-gradient(180deg,var(--chrome-hi) 0%,var(--chrome) 48%,var(--chrome-dk) 100%);
  border-bottom:4px solid var(--frame);
  color:var(--white);
  text-shadow:2px 2px 0 var(--chrome-dk);
}
.cal-modal-head span{
  flex:1;
  font-size:18px;
  white-space:nowrap;
}
#cal-modal-close{
  appearance:none;
  -webkit-appearance:none;
  width:24px;
  height:23px;
  border:2px solid #ffffff;
  background:#c23b2e;
  color:#ffffff;
  font-family:inherit;
  font-size:17px;
  line-height:1;
  cursor:pointer;
  box-shadow:inset 1px 1px 0 #ff9b91, inset -1px -1px 0 #7e241a;
}
.cal-modal-scroll{
  min-height:180px;
  overflow-y:auto;
  padding:16px 18px 14px;
  background:var(--panel-lt);
}
#cal-modal-title{
  margin:0 0 10px;
  color:#3b2727;
  font-size:28px;
  line-height:1.18;
  text-align:center;
  word-break:keep-all;
}
.cal-modal-meta{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  min-height:30px;
  margin-bottom:12px;
}
.cal-pill{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 10px;
  border:2px solid var(--frame);
  background:#fff4bf;
  color:#ff7800;
  font-size:15px;
  font-weight:bold;
  text-decoration:none;
  box-shadow:inset 1px 1px 0 #ffffff, 2px 2px 0 rgba(10,22,52,.14);
}
.cal-pill.notice{
  background:#ff668a;
  color:#ffffff;
  border-color:#b93055;
  text-shadow:1px 1px 0 #b93055;
}
.cal-detail-section{
  margin-top:14px;
}
.cal-detail-section h3{
  margin:0 0 8px;
  color:#2c4d8f;
  font-size:15px;
  border-bottom:2px dashed #9db2dd;
  padding-bottom:4px;
}
.cal-avatar-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px 10px;
}
.cal-avatar-grid.streamer-grid{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px 34px;
}
.cal-avatar-grid.crew-grid{
  grid-template-columns:1fr;
}
.cal-avatar{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  text-align:center;
}
.cal-avatar img{
  width:58px;
  height:58px;
  border-radius:50%;
  border:3px solid #ff7fa3;
  background:#ffffff;
  object-fit:cover;
  image-rendering:auto;
  box-shadow:none;
}
.cal-avatar.streamer{
  width:82px;
}
.cal-avatar.crew{
  align-items:stretch;
  width:100%;
}
.cal-avatar.crew img{
  width:100%;
  height:auto;
  max-height:none;
  border-radius:0;
  object-fit:contain;
  border:3px solid var(--frame);
  background:#ffffff;
  padding:0;
}
.cal-avatar span{
  max-width:100%;
  color:#3b2727;
  font-size:14px;
  font-weight:bold;
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#cal-modal-poster{
  display:block;
  width:100%;
  max-width:none;
  height:auto;
  object-fit:cover;
  border:3px solid var(--frame);
  background:#ffffff;
  image-rendering:auto;
  box-shadow:inset 2px 2px 0 #ffffff;
}
#cal-modal-memo{
  margin:0;
  padding:10px 12px;
  background:#ffffff;
  border:2px solid var(--frame);
  color:#1c2f62;
  font-size:15px;
  line-height:1.55;
  white-space:pre-wrap;
  word-break:keep-all;
  overflow-wrap:anywhere;
  box-shadow:inset 1px 1px 0 #ffffff;
}
.cal-day-event-list{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.cal-day-event-list button{
  appearance:none;
  -webkit-appearance:none;
  border:2px solid var(--frame);
  background:var(--panel);
  color:var(--ink);
  font-family:inherit;
  font-size:15px;
  text-align:left;
  padding:7px 9px;
  cursor:pointer;
  box-shadow:inset 1px 1px 0 #ffffff;
}
.cal-day-event-list button:hover{
  background:var(--chrome);
  color:var(--white);
}
.cal-modal-actions{
  display:flex;
  justify-content:center;
  gap:10px;
  padding:9px 12px 12px;
  background:var(--body-bg);
  border-top:3px solid var(--frame);
}
.cal-modal-ok{
  min-width:82px;
  height:30px;
  border:3px solid var(--frame);
  background:var(--panel-lt);
  color:var(--ink);
  font-family:inherit;
  font-size:15px;
  cursor:pointer;
  box-shadow:inset 2px 2px 0 #ffffff, inset -2px -2px 0 #8fa9dc;
}
.cal-modal-edit,
.cal-modal-delete{
  min-width:82px;
  height:30px;
  border:3px solid var(--frame);
  color:#ffffff;
  font-family:inherit;
  font-size:15px;
  cursor:pointer;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.5), inset -2px -2px 0 rgba(0,0,0,.22);
}
.cal-modal-edit{background:#f5a83b;}
.cal-modal-delete{background:#ff4d57;}

/* ---------- pet (hidden at first) ---------- */
#w-pet{display:none;}
#w-pet .wbody{padding:8px;}
.petyard{
  position:relative;height:150px;
  background:linear-gradient(180deg,#a9c6ec 0 36%, #6f9c48 36% 100%);
  border:2px solid var(--frame);overflow:hidden;
}
.fence{position:absolute;top:22px;left:0;right:0;height:38px;display:flex;gap:6px;padding:0 4px;}
.fence i{flex:1;background:#c9a05e;border:2px solid #96713a;border-top-width:4px;}
.pet-sprite{position:absolute;left:104px;bottom:12px;}
.pet-house{position:absolute;right:10px;bottom:10px;}
.pet-bowl{position:absolute;left:22px;bottom:8px;}
.bubble{
  position:absolute;left:8px;top:6px;
  background:var(--white);border:2px solid var(--frame);
  font-size:13px;padding:3px 7px;color:var(--ink);
  opacity:0;transition:opacity .15s steps(2);
}
.bubble.show{opacity:1;}
.pet-ui{display:flex;gap:8px;margin-top:8px;align-items:stretch;}
.pet-ui .xpbtn{font-size:13px;padding:3px 10px;}
.meter{flex:1;background:var(--panel-lt);border:2px solid var(--frame);padding:3px 5px;font-size:11px;display:flex;align-items:center;gap:5px;}
.meter .bar{flex:1;height:9px;border:1px solid var(--frame);background:var(--white);}
.meter .bar b{display:block;height:100%;background:var(--red);width:60%;transition:width .2s steps(4);}
.meter.hp .bar b{background:#4f8f3c;}
.pet-name{font-size:12px;color:var(--ink-soft);margin-top:6px;text-align:center;}

/* ---------- admin ---------- */
#w-login{display:none;}
#w-admin{display:none;}
#w-admin{
  max-width:calc(100% - 24px);
  max-height:calc(100% - 58px);
}
.admin-body{
  padding:10px;
  background:var(--panel);
  height:calc(100% - 34px);
  max-height:none;
  overflow:hidden;
  position:relative;
}
.admin-status{
  min-height:30px;
  margin-bottom:8px;
  padding:6px 8px;
  background:var(--panel-lt);
  border:2px solid var(--frame);
  color:var(--ink-soft);
  font-size:13px;
  line-height:1.35;
  box-shadow:inset 1px 1px 0 #ffffff;
}
.admin-status[hidden]{
  display:none !important;
}
.admin-status.compact{
  margin:10px 0 0;
}
.admin-locked{
  padding:18px 14px;
  background:var(--panel-lt);
  border:2px solid var(--frame);
  color:var(--ink-soft);
  font-size:14px;
  line-height:1.45;
  text-align:center;
  box-shadow:inset 2px 2px 0 #ffffff;
}
.admin-login,
.admin-form{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.admin-login[hidden]{
  display:none !important;
}
.admin-login label,
.admin-form label{
  display:flex;
  flex-direction:column;
  gap:5px;
  color:var(--red);
  font-size:14px;
  font-weight:bold;
}
.admin-login input,
.admin-form input,
.admin-form textarea{
  width:100%;
  min-height:34px;
  border:2px solid var(--frame);
  background:#ffffff;
  color:var(--ink);
  font-family:inherit;
  font-size:15px;
  padding:7px 9px;
  outline:0;
  box-shadow:inset 2px 2px 0 #ffffff;
  user-select:text;
}
.admin-form textarea{
  min-height:76px;
  line-height:1.45;
  resize:vertical;
}
.admin-login input:focus,
.admin-form input:focus,
.admin-form textarea:focus{
  background:#ffffff;
  outline:2px solid #ffda6b;
}
.admin-panel-wrap{
  min-height:0;
  height:calc(100% - 38px);
  display:flex;
  flex-direction:column;
}
.admin-account{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}
.login-account{
  margin:0;
  padding:8px;
  background:var(--panel-lt);
  border:2px solid var(--frame);
  box-shadow:inset 2px 2px 0 #ffffff;
  flex-direction:column;
  align-items:stretch;
  text-align:center;
}
.login-account[hidden]{
  display:none !important;
}
.login-welcome{
  color:var(--chrome-dk);
  font-size:17px;
  font-weight:bold;
  padding:8px 4px 4px;
}
.admin-account span{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
  color:var(--ink-soft);
}
.admin-account .xpbtn,
.admin-login .xpbtn,
.admin-form .xpbtn{
  min-height:28px;
  justify-content:center;
  font-size:13px;
  padding:4px 9px;
}
.admin-tabs{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:4px;
  margin-bottom:8px;
}
.admin-tabs[hidden],
.admin-tab-panel[hidden]{
  display:none !important;
}
.admin-tabs button{
  appearance:none;
  -webkit-appearance:none;
  border:2px solid var(--frame);
  background:var(--panel-lt);
  color:var(--ink);
  font-family:inherit;
  font-size:13px;
  padding:5px 4px;
  cursor:pointer;
  box-shadow:inset 1px 1px 0 #ffffff;
}
.admin-tabs button.active{
  background:var(--chrome);
  color:var(--white);
}
.admin-tab-panel{
  display:none;
  flex:1;
  min-height:0;
  overflow-y:auto;
  padding:10px;
  background:var(--panel-lt);
  border:2px solid var(--frame);
  box-shadow:inset 2px 2px 0 #ffffff;
}
.admin-tab-panel.active{display:block;}
.event-editor-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  align-items:start;
}
.event-editor-main,
.event-editor-side{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.admin-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  align-items:end;
}
.admin-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.admin-actions .xpbtn{
  flex:1;
  min-height:36px;
  font-size:15px;
}
.admin-url-card{
  padding:10px;
  background:var(--panel);
  border:2px solid var(--frame);
  box-shadow:inset 2px 2px 0 #ffffff, 4px 4px 0 rgba(10,22,52,.14);
}
.admin-url-card input{
  margin-top:5px;
}
.cal-edit-modal .cal-modal-box{
  width:720px;
}
.cal-edit-form{
  padding:12px;
  background:var(--panel-lt);
  overflow-y:auto;
}
#event-memo{
  min-height:124px;
}
.admin-list-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.admin-list-head div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.admin-list-head b{
  color:var(--red);
  font-size:15px;
}
.admin-list-head span{
  color:var(--ink-soft);
  font-size:12px;
}
.admin-list-head .xpbtn{
  flex:0 0 auto;
  min-width:82px;
  min-height:30px;
}
.admin-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:none;
  overflow-y:auto;
}
.admin-empty{
  padding:18px 10px;
  background:#ffffff;
  border:2px solid var(--frame);
  color:var(--ink-soft);
  font-size:13px;
  text-align:center;
  box-shadow:inset 2px 2px 0 #ffffff;
}
.admin-item{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:7px;
  background:#ffffff;
  border:2px solid var(--frame);
  box-shadow:inset 2px 2px 0 #ffffff, 2px 2px 0 rgba(10,22,52,.12);
}
.admin-item-no{
  color:var(--chrome-dk);
  font-size:13px;
  font-weight:bold;
  text-align:center;
}
.admin-item-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.admin-item-main b{
  min-width:0;
  color:var(--ink);
  font-size:14px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.admin-item-main span{
  min-width:0;
  color:var(--ink-soft);
  font-size:11px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.admin-item-actions{
  display:flex;
  gap:4px;
}
.admin-item-actions .xpbtn{
  min-width:46px;
  min-height:28px;
  padding:3px 6px;
  font-size:12px;
}
.admin-item-actions .xpbtn:disabled{
  color:#8b97ae;
  cursor:not-allowed;
  filter:grayscale(.35);
}
.admin-profile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.admin-list-panel{
  min-width:0;
}
.admin-profile-item{
  grid-template-columns:54px minmax(0,1fr) auto;
}
.admin-streamer-thumb,
.admin-crew-thumb{
  display:block;
  background:#ffffff;
  border:2px solid var(--white);
  box-shadow:0 0 0 2px var(--frame), 2px 2px 0 rgba(10,22,52,.15);
}
.admin-streamer-thumb{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
  justify-self:center;
}
.admin-crew-thumb{
  width:48px;
  height:34px;
  border-radius:2px;
  object-fit:contain;
  justify-self:center;
}
.admin-edit-modal{
  position:absolute;
  inset:0;
  z-index:6;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 12px 12px;
  background:rgba(104, 130, 173, .48);
}
.admin-edit-modal[hidden]{
  display:none !important;
}
.admin-edit-box{
  width:min(520px, 100%);
  max-height:100%;
  background:var(--panel);
  border:3px solid var(--frame);
  box-shadow:inset 2px 2px 0 #ffffff, 6px 6px 0 rgba(10,22,52,.25);
  overflow:auto;
}
.admin-edit-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:32px;
  padding:4px 6px 4px 10px;
  background:var(--chrome);
  color:var(--white);
  font-size:15px;
  font-weight:bold;
  text-shadow:1px 1px 0 var(--chrome-dk);
}
.admin-edit-head button{
  appearance:none;
  -webkit-appearance:none;
  width:24px;
  height:24px;
  border:2px solid var(--white);
  background:#d54a43;
  color:#ffffff;
  font-family:inherit;
  font-size:18px;
  font-weight:bold;
  line-height:18px;
  cursor:pointer;
}
.admin-edit-box .admin-form{
  padding:12px;
}
.profile-preview b{
  display:block;
  margin-bottom:4px;
  color:var(--chrome-dk);
  font-size:14px;
}
.profile-preview p{
  margin:0;
  color:var(--ink-soft);
  font-size:12px;
  line-height:1.45;
  word-break:keep-all;
  overflow-wrap:anywhere;
}

/* ---------- system dialog ---------- */
#w-sys{display:none;width:300px;z-index:900;}
#w-sys .wbody{font-size:16px;padding:16px 14px;line-height:1.8;text-align:center;}
#w-sys .btns{display:flex;gap:14px;justify-content:center;margin-top:12px;}
#w-sys .xpbtn{font-size:14px;}

/* ---------- cursor sprite ---------- */
#cursor-sprite{
  position:absolute;
  left:0;top:0;
  z-index:20000;
  pointer-events:none;
  opacity:0;
  transform:translate(var(--cursor-x,706px),var(--cursor-y,436px));
  transition:opacity .08s steps(1);
}
#cursor-sprite.is-visible{opacity:1;}
#cursor-sprite.is-down{transform:translate(var(--cursor-x,706px),var(--cursor-y,436px)) translate(1px,1px);}

/* ---------- taskbar ---------- */
#taskbar{
  position:absolute;left:0;right:0;bottom:0;height:40px;
  background:linear-gradient(180deg,#4a7ad8 0%,#2f62c8 55%,#2451b0 100%);
  border-top:3px solid #7ba3ec;
  display:flex;align-items:center;gap:6px;padding:0;
  z-index:800;
}
#btn-start{
  height:40px;flex:0 0 auto;border:none;cursor:pointer;
  background:linear-gradient(180deg,#6ccf4c 0%,#55b43a 55%,#3d8f28 100%);
  color:var(--white);font-family:inherit;font-size:20px;font-style:italic;
  padding:0 22px 0 14px;letter-spacing:1px;
  border-radius:0 15px 15px 0;
  text-shadow:1px 1px 0 #276014;
  display:flex;align-items:center;gap:8px;
}
#btn-start:active{filter:brightness(.92);}
#task-list{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:6px;
  overflow:hidden;
  padding-right:2px;
}
.start-logo{
  position:relative;
  width:24px;height:21px;flex:0 0 24px;
  display:inline-block;
  transform:skewY(7deg) rotate(2deg);
  filter:drop-shadow(1px 1px 0 #276014);
}
.start-logo .pane{
  position:absolute;
  width:10px;height:9px;
  clip-path:polygon(12% 0,100% 9%,88% 100%,0 90%);
  box-shadow:
    inset 2px 1px 0 rgba(255,255,255,.35),
    inset -2px -2px 0 rgba(0,0,0,.18);
}
.start-logo .red{
  left:1px;top:0;
  background:linear-gradient(135deg,#ff913b 0%,#ef5a2d 52%,#d73527 100%);
}
.start-logo .green{
  left:12px;top:2px;
  background:linear-gradient(135deg,#a4d957 0%,#6fb83c 58%,#4f8f2b 100%);
  transform:skewY(-5deg);
}
.start-logo .blue{
  left:0;top:10px;
  background:linear-gradient(135deg,#48a8df 0%,#2f73c7 55%,#2847a8 100%);
  transform:skewY(-4deg);
}
.start-logo .yellow{
  left:12px;top:12px;
  background:linear-gradient(135deg,#ffe25a 0%,#ffc61c 58%,#c98c1f 100%);
}
.tsk{
  height:30px;display:flex;align-items:center;gap:6px;
  flex:1 1 0;
  min-width:86px;
  background:#4a7ad8;border:2px solid #7ba3ec;border-bottom-color:#2451b0;border-right-color:#2451b0;
  border-radius:4px 4px 0 0;
  color:var(--white);font-size:14px;padding:0 10px;cursor:pointer;
  max-width:170px;white-space:nowrap;overflow:hidden;
}
.tsk[hidden]{
  display:none !important;
}
.tsk .fico{
  width:18px;height:18px;flex:0 0 18px;position:relative;
  background:
    linear-gradient(#4a7ad8,#4a7ad8) right 2px top 2px / 5px 5px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 4px top 3px / 9px 2px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 4px top 8px / 10px 2px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 4px top 13px / 8px 2px no-repeat,
    linear-gradient(#f8fbff,#f8fbff) left 2px top 1px / 13px 16px no-repeat,
    linear-gradient(#143d91,#143d91) left 0 top 0 / 16px 18px no-repeat;
  border:0;
  box-shadow:none;
  clip-path:none;
}
.tsk[data-open="w-profile"] .fico{
  width:18px;height:18px;flex-basis:18px;
  background:
    url("assets/images/bomsei_icon.png") center center / cover no-repeat,
    var(--white);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:1px 1px 0 #174ca7;
  clip-path:none;
}
.tsk[data-open="w-new"] .fico{
  background:
    linear-gradient(#1b3678,#1b3678) left 3px top 5px / 12px 2px no-repeat,
    linear-gradient(#1b3678,#1b3678) left 3px top 9px / 10px 2px no-repeat,
    linear-gradient(#1b3678,#1b3678) left 3px top 13px / 11px 2px no-repeat,
    linear-gradient(#c9d9fb,#c9d9fb) left 1px top 1px / 16px 3px no-repeat,
    linear-gradient(#eef6ff,#eef6ff) left 1px top 4px / 16px 13px no-repeat,
    linear-gradient(#143d91,#143d91) left 0 top 0 / 18px 18px no-repeat;
}
.tsk[data-open="w-sched"] .fico{
  background:
    linear-gradient(#5da64c,#5da64c) left 4px top 5px / 2px 2px no-repeat,
    linear-gradient(#5da64c,#5da64c) left 4px top 9px / 2px 2px no-repeat,
    linear-gradient(#5da64c,#5da64c) left 4px top 13px / 2px 2px no-repeat,
    linear-gradient(#7ba3ec,#7ba3ec) left 8px top 5px / 6px 2px no-repeat,
    linear-gradient(#ffc3d7,#ffc3d7) left 8px top 9px / 6px 2px no-repeat,
    linear-gradient(#7ba3ec,#7ba3ec) left 8px top 13px / 5px 2px no-repeat,
    linear-gradient(#f8fbff,#f8fbff) left 2px top 2px / 14px 15px no-repeat,
    linear-gradient(#143d91,#143d91) left 0 top 0 / 18px 18px no-repeat;
}
.tsk[data-open="w-calendar"] .fico{
  background:
    linear-gradient(#ffffff,#ffffff) left 5px top 0 / 2px 4px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 12px top 0 / 2px 4px no-repeat,
    linear-gradient(#7ba3ec,#7ba3ec) left 4px top 8px / 2px 2px no-repeat,
    linear-gradient(#ff6f8f,#ff6f8f) left 8px top 8px / 2px 2px no-repeat,
    linear-gradient(#9bd681,#9bd681) left 12px top 8px / 2px 2px no-repeat,
    linear-gradient(#ffd86b,#ffd86b) left 4px top 12px / 2px 2px no-repeat,
    linear-gradient(#7ba3ec,#7ba3ec) left 8px top 12px / 2px 2px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 12px top 12px / 2px 2px no-repeat,
    linear-gradient(#ff6f8f,#ff6f8f) left 2px top 3px / 14px 4px no-repeat,
    linear-gradient(#f8fbff,#f8fbff) left 2px top 7px / 14px 10px no-repeat,
    linear-gradient(#143d91,#143d91) left 0 top 1px / 18px 17px no-repeat;
}
.tsk[data-open="w-thanks"] .fico{
  background:
    linear-gradient(#ffffff,#ffffff) left 5px top 5px / 8px 2px no-repeat,
    linear-gradient(#7ba3ec,#7ba3ec) left 5px top 9px / 8px 2px no-repeat,
    linear-gradient(#d45c7c,#d45c7c) left 8px top 12px / 3px 4px no-repeat,
    linear-gradient(#d45c7c,#d45c7c) left 6px top 13px / 7px 2px no-repeat,
    linear-gradient(#fff5fb,#fff5fb) left 3px top 2px / 12px 15px no-repeat,
    linear-gradient(#143d91,#143d91) left 1px top 0 / 16px 18px no-repeat;
}
.tsk[data-open="w-minesweeper"] .fico{
  background:
    url("assets/images/bomsei_minesweeper.png") center center / 14px auto no-repeat,
    linear-gradient(#ffffff,#ffffff) left 2px top 2px / 14px 14px no-repeat,
    linear-gradient(#143d91,#143d91) left 0 top 0 / 18px 18px no-repeat;
}
.tsk[data-open="w-pet"] .fico{
  background:
    radial-gradient(circle at 6px 8px,#143d91 0 1px,transparent 2px),
    radial-gradient(circle at 12px 8px,#143d91 0 1px,transparent 2px),
    linear-gradient(#143d91,#143d91) left 7px top 12px / 5px 2px no-repeat,
    linear-gradient(#ffd7e6,#ffd7e6) left 3px top 4px / 12px 12px no-repeat,
    linear-gradient(#143d91,#143d91) left 1px top 2px / 16px 16px no-repeat;
}
.tsk[data-open="w-playlist"] .fico{
  background:
    linear-gradient(#ffffff,#ffffff) right 3px bottom 4px / 2px 5px no-repeat,
    linear-gradient(#ffffff,#ffffff) right 2px bottom 7px / 5px 2px no-repeat,
    linear-gradient(#ffffff,#ffffff) right 6px bottom 4px / 2px 2px no-repeat,
    linear-gradient(#d94343,#d94343) right 1px bottom 1px / 9px 9px no-repeat,
    linear-gradient(#7ba3ec,#7ba3ec) left 5px top 5px / 6px 2px no-repeat,
    linear-gradient(#7ba3ec,#7ba3ec) left 5px top 9px / 5px 2px no-repeat,
    linear-gradient(#7ba3ec,#7ba3ec) left 5px top 13px / 6px 2px no-repeat,
    linear-gradient(#f8fbff,#f8fbff) left 2px top 2px / 12px 14px no-repeat,
    linear-gradient(#143d91,#143d91) left 0 top 0 / 16px 18px no-repeat;
}
.tsk[data-open="w-login"] .fico{
  background:
    linear-gradient(#ffffff,#ffffff) left 6px top 6px / 6px 2px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 5px top 8px / 8px 6px no-repeat,
    linear-gradient(#ffffff,#ffffff) left 8px top 13px / 2px 2px no-repeat,
    linear-gradient(#d94343,#d94343) left 2px top 5px / 14px 11px no-repeat,
    linear-gradient(#143d91,#143d91) left 4px top 1px / 10px 8px no-repeat;
}
.tsk[data-open="w-admin"] .fico{
  background:
    radial-gradient(circle at 9px 9px,#fff4bd 0 3px,transparent 4px),
    linear-gradient(#fff4bd,#fff4bd) left 8px top 1px / 2px 16px no-repeat,
    linear-gradient(#fff4bd,#fff4bd) left 1px top 8px / 16px 2px no-repeat,
    linear-gradient(45deg,transparent 0 6px,#fff4bd 6px 8px,transparent 8px) left 0 top 0 / 18px 18px no-repeat,
    linear-gradient(-45deg,transparent 0 6px,#fff4bd 6px 8px,transparent 8px) left 0 top 0 / 18px 18px no-repeat,
    radial-gradient(circle at 9px 9px,#b78614 0 7px,transparent 8px);
}
#clock{
  flex:0 0 122px;height:40px;display:flex;align-items:center;justify-content:center;
  align-self:stretch;
  background:linear-gradient(180deg,#3f93ee 0%,#2578d8 54%,#1c61bd 100%);
  border:0;
  border-left:2px solid #174ca7;
  border-top:1px solid #6fb4ff;
  border-left-color:#174ca7;
  border-radius:0;
  color:#ffffff;font-size:14px;padding:0 8px;letter-spacing:0;
  white-space:nowrap;
  line-height:1;
  text-shadow:1px 1px 0 #174ca7;
  box-shadow:
    inset 1px 1px 0 #8bc7ff,
    inset -1px -1px 0 #11428f;
}

/* ---------- start menu ---------- */
#startmenu{
  display:none;position:absolute;left:0;bottom:40px;width:534px;
  background:var(--chrome);
  border:5px solid var(--frame);
  border-bottom:0;
  box-shadow:8px 8px 0 rgba(10,22,52,.34);
  z-index:850;
  clip-path:polygon(
    14px 0,
    calc(100% - 14px) 0,
    calc(100% - 14px) 4px,
    calc(100% - 8px) 4px,
    calc(100% - 8px) 8px,
    calc(100% - 4px) 8px,
    calc(100% - 4px) 12px,
    100% 12px,
    100% 100%,
    0 100%,
    0 12px,
    4px 12px,
    4px 8px,
    8px 8px,
    8px 4px,
    14px 4px
  );
}
#startmenu::before{
  content:"";
  position:absolute;
  inset:-5px -5px 0 -5px;
  z-index:5;
  pointer-events:none;
  background:
    linear-gradient(var(--frame),var(--frame)) left 14px top 0 / calc(100% - 28px) 5px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 8px top 4px / 6px 5px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 4px top 8px / 4px 5px no-repeat,
    linear-gradient(var(--frame),var(--frame)) left 0 top 12px / 5px calc(100% - 12px) no-repeat,
    linear-gradient(var(--frame),var(--frame)) right 8px top 4px / 6px 5px no-repeat,
    linear-gradient(var(--frame),var(--frame)) right 4px top 8px / 4px 5px no-repeat,
    linear-gradient(var(--frame),var(--frame)) right 0 top 12px / 5px calc(100% - 12px) no-repeat;
}
.sm-head{
  height:58px;display:flex;align-items:center;gap:12px;
  padding:7px 16px 7px 18px;
  background:linear-gradient(180deg,var(--chrome-hi) 0%,var(--chrome) 48%,var(--chrome-dk) 100%);
}
.sm-thumb{
  width:42px;height:42px;flex:0 0 42px;
  border:3px solid var(--white);
  background:#7fa9de;overflow:hidden;
  display:flex;align-items:flex-end;justify-content:center;
  box-shadow:2px 2px 0 var(--chrome-dk);
}
.sm-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  image-rendering:auto;
}
.sm-name{
  flex:1;color:var(--white);font-size:30px;
  text-shadow:2px 2px 0 var(--chrome-dk);
}
.sm-main{
  display:flex;height:410px;min-height:0;
  border-top:5px solid var(--frame);
  border-bottom:5px solid var(--frame);
  background:var(--body-bg);
}
.sm-left{
  width:248px;flex:0 0 248px;
  background:var(--panel-lt);
  border-right:4px solid var(--frame);
  display:flex;flex-direction:column;align-items:center;
  padding:24px 10px 18px;
}
.sm-avatar{
  flex:1;
  min-height:316px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.sm-profile-photo{
  width:210px;
  aspect-ratio:3 / 4;
  border:3px solid var(--frame);
  background:var(--panel-lt);
  overflow:hidden;
  box-shadow:inset 2px 2px 0 #ffffff, inset -2px -2px 0 #8fa9dc;
}
.sm-start-photo{
  width:212px;
  height:212px;
  aspect-ratio:auto;
  background:#edf6df;
}
.sm-profile-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  image-rendering:auto;
}
.sm-start-photo img{
  object-position:58% center;
}
.sm-all{
  appearance:none;-webkit-appearance:none;
  border:0;background:transparent;color:var(--ink);
  font-family:inherit;font-size:24px;cursor:pointer;
  margin-top:auto;display:flex;align-items:center;gap:12px;
}
.sm-all b{color:#3f9426;font-size:24px;text-shadow:1px 1px 0 #fff;}
.sm-right{
  flex:1;background:var(--panel);
  padding:22px 18px 14px;
  display:flex;flex-direction:column;
  min-height:0;
}
.sm-view{flex:1;min-height:0;}
.sm-view[hidden]{display:none !important;}
.sm-profile-view{display:flex;flex-direction:column;}
.sm-profile-view{
  justify-content:center;
}
.sm-program-view[hidden]{display:none;}
.sm-program-view{
  display:flex;
  flex-direction:column;
  gap:8px;
  overflow:hidden;
}
.sm-info{list-style:none;font-size:18px;line-height:2.05;}
.sm-info li::before{content:"●";color:var(--ink);margin-right:12px;font-size:11px;vertical-align:2px;}
.sm-bio{margin-top:18px;font-size:15px;line-height:1.8;color:var(--ink-soft);text-align:center;}
.sm-heart{text-align:center;color:#c25b78;font-size:18px;margin-top:6px;}
.sm-program-title{
  flex:0 0 auto;
  color:var(--ink);
  font-size:24px;
  padding:0 0 8px;
  border-bottom:3px solid var(--frame);
}
.sm-program-list{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  overflow-y:auto;
  padding:2px 8px 2px 0;
  overscroll-behavior:contain;
  scrollbar-width:auto;
  scrollbar-color:var(--chrome) var(--panel-lt);
}
.sm-program-list::-webkit-scrollbar{
  width:18px;
}
.sm-program-list::-webkit-scrollbar-track{
  background:var(--panel-lt);
  border:3px solid var(--frame);
  box-shadow:inset 2px 2px 0 #ffffff, inset -2px -2px 0 #8fa9dc;
}
.sm-program-list::-webkit-scrollbar-thumb{
  background:
    linear-gradient(#8bb3ff,#8bb3ff) left 3px top 3px / 8px 3px no-repeat,
    linear-gradient(#8bb3ff,#8bb3ff) left 3px top 9px / 8px 3px no-repeat,
    linear-gradient(180deg,var(--chrome-hi),var(--chrome));
  border:3px solid var(--frame);
}
.sm-program-list::-webkit-scrollbar-button{
  height:14px;
  background:var(--panel-lt);
  border:3px solid var(--frame);
}
.sm-program-list button{
  flex:0 0 auto;
  appearance:none;-webkit-appearance:none;
  background:var(--panel-lt);border:2px solid var(--frame);
  color:var(--ink);font-family:inherit;font-size:18px;
  padding:7px 9px;cursor:pointer;text-align:left;
  box-shadow:inset 1px 1px 0 var(--white), inset -1px -1px 0 #8fa9dc;
}
.sm-program-list button:hover{background:var(--chrome);color:var(--white);}
.sm-foot{
  height:52px;display:flex;align-items:center;justify-content:flex-end;gap:22px;
  padding:7px 20px 8px;
  background:linear-gradient(180deg,var(--chrome) 0%,var(--chrome-dk) 100%);
}
.sm-action{
  appearance:none;-webkit-appearance:none;
  border:0;background:transparent;color:var(--white);
  font-family:inherit;font-size:19px;cursor:pointer;
  display:flex;align-items:center;gap:10px;
  text-shadow:2px 2px 0 var(--chrome-dk);
}
.sm-action .key-ic,
.sm-action .off-ic,
.sm-action .gear-ic,
.sm-action .lock-ic{
  width:30px;height:30px;
  border:3px solid var(--white);
  box-shadow:2px 2px 0 rgba(0,0,0,.24);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.sm-action .key-ic{border-radius:5px;}
.sm-action .off-ic{border-radius:6px;}
.sm-action .gear-ic{
  background:var(--gold);
  border-radius:5px;
}
.sm-action .lock-ic{
  background:var(--red);
  border-radius:5px;
}
.sm-action svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.sm-action .gear-ic svg{
  color:#ffffff;
}
.sm-action .lock-ic svg{
  color:#ffffff;
}

/* ---------- xp alert ---------- */
#w-alert,
#w-confirm{display:none;}
#w-confirm{
  z-index:19000 !important;
}
.xp-alert-body{
  padding:18px 16px 14px;
  background:var(--panel);
}
.xp-alert-message{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  background:var(--panel-lt);
  border:2px solid var(--frame);
  color:var(--ink);
  font-size:15px;
  line-height:1.45;
  text-align:center;
  box-shadow:inset 2px 2px 0 #ffffff;
}
.xp-alert-body .btns{
  margin-top:14px;
  display:flex;
  justify-content:center;
  gap:12px;
}
.xp-alert-actions .xpbtn{
  min-width:96px;
  justify-content:center;
}
.xp-alert-actions .xp-confirm-danger{
  background:#ff4d57;
  color:#ffffff;
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.5), inset -2px -2px 0 rgba(0,0,0,.22), 2px 2px 0 rgba(10,22,52,.28);
}

/* ---------- title glitch ---------- */
.glitch-on-t{animation:tglitch 3.2s steps(1) infinite;}
@keyframes tglitch{
  0%,93%{text-shadow:2px 2px 0 var(--chrome-dk);}
  94%{text-shadow:-2px 0 0 #e06a5a, 2px 0 0 #6ad4e0, 2px 2px 0 var(--chrome-dk);}
  97%{text-shadow:2px 0 0 #e06a5a, -2px 0 0 #6ad4e0, 2px 2px 0 var(--chrome-dk);}
  98%{text-shadow:2px 2px 0 var(--chrome-dk);}
}
.win.front{box-shadow:inset 2px 2px 0 #6f9bff,inset -2px -2px 0 #0b2f78;filter:drop-shadow(8px 8px 0 rgba(10,22,52,.38));}
