/* 가는날 크리스마스 트리 이벤트(11-24) — merry.js */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #2a2466 linear-gradient(180deg, #1d1b4f 0%, #3b2f7a 45%, #8c6bbd 75%, #f3b6cf 100%) fixed; color: #f3f5fa; font-family: "IBM Plex Sans KR", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; overflow: hidden;  word-break: keep-all; overflow-wrap: break-word; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.top { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; z-index: 3; pointer-events: none; }
.top a { pointer-events: auto; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; background: rgba(10,19,36,.55); border: 1px solid rgba(255,255,255,.18); padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
#load { position: fixed; inset: 0; display: grid; place-items: center; z-index: 4; color: #fff; font-size: 16px; font-family: Jua, inherit; }
#ui { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(520px, calc(100% - 32px)); z-index: 3;
  background: rgba(255,255,255,.94); color: #2b2140; border: 3px solid #fff; border-radius: 26px; padding: 18px 18px 16px; text-align: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0,0,0,.45); opacity: 0; transition: opacity .5s, transform .5s; }
#ui.in { opacity: 1; }
#ui.out { opacity: 0; transform: translateX(-50%) translateY(16px); pointer-events: none; }
#ui.low { padding: 14px 16px 12px; }
#ui .kick { margin: 0 0 4px; font-size: 13px; color: #ffd27a; font-weight: 600; letter-spacing: .2px; }
#ui h1 { margin: 0 0 6px; font-size: 22px; line-height: 1.35; letter-spacing: -.3px; }
#ui h1 b { color: #ffd27a; }
#ui p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: #d6deee; }
#ui p b { color: #fff; }
#ui .hint { margin: 10px 0 0; font-size: 12px; color: #8f9bb5; }
.btns { display: flex; flex-direction: column; gap: 8px; }
.btns a, .btns button { display: block; width: 100%; padding: 13px 14px; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; }
.b1 { background: linear-gradient(180deg, #d8323f, #a91d2a); color: #fff; box-shadow: 0 6px 18px rgba(201,40,52,.35); }
.b2 { background: rgba(255,255,255,.1); color: #e8edf7; border: 1px solid rgba(255,255,255,.16) !important; }
@media (min-width: 640px) { .btns { flex-direction: row; flex-wrap: wrap; } .btns .b1 { flex: 1 1 100%; } .btns .b2 { flex: 1; } }
#load[hidden], #ui[hidden] { display: none; }
#ui.low h1 { font-size: 19px; margin-bottom: 2px; }
#ui.low p { font-size: 13px; margin-bottom: 10px; }
#ui.low .btns { flex-direction: row; flex-wrap: wrap; gap: 6px; }
#ui.low .btns a, #ui.low .btns button { padding: 10px 8px; font-size: 13.5px; }
#ui.low .btns .b1 { flex: 1 1 100%; }
#ui.low .btns .b2 { flex: 1; }
#ui.low .hint { margin-top: 8px; }

/* 11-24 귀여운 스타일 */
#ui h1, .btns a, .btns button, #ui .kick, .top a { font-family: Jua, "IBM Plex Sans KR", sans-serif; font-weight: 400; }
#ui h1 { color: #2b2140; font-size: 24px; }
#ui h1 b { color: #ff5a6e; }
#ui p { color: #5a5070; }
#ui p b { color: #2b2140; }
#ui .kick { color: #ff5a6e; font-size: 15px; }
#ui .hint { color: #9a91ae; }
.b1 { background: #ff5a6e; color: #fff; box-shadow: 0 5px 0 #d63a4f; font-size: 17px !important; }
.b1:active { transform: translateY(3px); box-shadow: 0 2px 0 #d63a4f; }
.b2 { background: #f1ecfb; color: #4a3f6b; border: 0 !important; }
.top a { background: rgba(255,255,255,.9); color: #2b2140; border: 0; font-size: 15px; }
#ui.low h1 { font-size: 21px; }
