/* CO:DAY — every page is laid out on a fixed 1920×1080 stage (the Figma frame size)
   which js/app.js scales to fit the window. Coordinates below come straight from Figma. */

:root {
  --lime: #c8ff00;
  --pink: #ff009e;
  --cyan: #0fffff;
  --blue: #0157ed;
  --ink: #2d2d2d;
  --font: 'SUIT', 'Outfit', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #fff; }
body { font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { user-select: none; -webkit-user-drag: none; }

#liquid { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }

#stage {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  transform-origin: 0 0; z-index: 1;
}
.bottom-bar { position: absolute; left: 0; top: 1000px; width: 1920px; height: 80px; object-fit: cover; pointer-events: none; }
.abs { position: absolute; }

/* ---------- pages ---------- */
.page { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity .45s ease, visibility 0s linear .45s; }
.page.active { visibility: visible; opacity: 1; transition: opacity .45s ease; }
.page > * { position: absolute; }

/* ---------- nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; height: 90px; z-index: 30; }
.nav-logo { position: absolute; left: 113px; top: 21px; width: 228.15px; height: 46px; transition: transform .25s ease-out; }
.nav-logo img { width: 100%; height: 100%; display: block; }
.nav-link {
  position: absolute; left: var(--x); top: 27px; font-size: 26px; line-height: 32px; white-space: nowrap;
  color: var(--ink); transition: color .2s;
}
.nav-link::before {
  content: ''; position: absolute; left: var(--pl); top: -6px; width: var(--pw); height: 46px; border-radius: 40px;
  background: var(--lime); box-shadow: 3px 3px 9.4px rgba(60,60,60,.3); z-index: -1;
  transform: scale(.6); opacity: 0; transition: transform .25s, opacity .25s;
}
.nav-link:hover::before { opacity: .45; transform: scale(1); }
.nav-link.active::before { opacity: 1; transform: scale(1); }
.nav-icon { position: absolute; top: 23px; width: 32px; height: 32px; transition: transform .2s; }
.nav-icon:hover { transform: scale(1.12); }
.nav-icon img { width: 100%; height: 100%; display: block; }
.nav-bell { left: 1660px; top: 23px; width: 28.67px; height: 28.67px; }
.nav-settings { left: 1714px; }
.nav-me { left: 1777px; }
/* Frame 2 (Friendship Anniversary intro) uses a shifted nav without bell/settings and no active pill */
body[data-page="anniversary"] .nav-logo { left: 147px; }
body[data-page="anniversary"] .nav-link { transform: translateX(41px); top: 26px; }
body[data-page="anniversary"] .nav-link.active::before { opacity: 0; }
body[data-page="anniversary"] .nav-link:hover::before { opacity: .45; }
body[data-page="anniversary"] .nav-bell,
body[data-page="anniversary"] .nav-settings { display: none; }
body[data-page="anniversary"] .nav-me { left: 1707px; top: 27px; }

/* ---------- buttons ---------- */
.btn {
  position: absolute; height: 60px; border-radius: 40px; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 32px; line-height: 1; letter-spacing: .01em; white-space: nowrap;
  box-shadow: 6px 5px 20px rgba(53,53,53,.4); transition: transform .18s ease, box-shadow .18s ease, filter .18s;
}
.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 8px 10px 24px rgba(53,53,53,.42); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-26 { font-size: 26px; }
.btn-blue { background: var(--blue); color: var(--lime); }
.btn-cyan { background: var(--cyan); color: var(--pink); }
.btn-lime { background: var(--lime); color: var(--pink); box-shadow: 4px 4px 20.2px rgba(0,0,0,.25); }
.btn.static { position: static; padding: 0 44px; display: inline-flex; }
.btn[disabled] { filter: grayscale(.6) opacity(.6); cursor: not-allowed; }

/* ---------- HOME ---------- */
.pendant { left: 601px; top: 92px; width: 645px; height: 645px; perspective: 1800px; cursor: grab; outline: none; z-index: 2; }
.pendant.dragging { cursor: grabbing; }
.pendant-swing { position: absolute; inset: 0; transform-origin: 50% 3%; animation: swing 5.5s ease-in-out infinite; transform-style: preserve-3d; }
.pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; backface-visibility: hidden; will-change: transform, opacity; }
@keyframes swing { 0%, 100% { transform: rotateZ(-1.4deg); } 50% { transform: rotateZ(1.4deg); } }

.home-title { left: 646px; top: 739px; width: 587px; text-align: center; font-weight: 700; font-size: 36px; color: var(--blue); }
.home-copy-bg { left: 562px; top: 794px; width: 770px; height: 106px; border-radius: 20px; background: #fff; opacity: .6; box-shadow: 4px 4px 26px rgba(49,49,49,.25); }
.home-copy { left: 572px; top: 809px; width: 734px; text-align: center; font-weight: 500; font-size: 20px; line-height: normal; color: var(--blue); }

#letters { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.letter { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; transform-origin: 50% 50%; }
.letter img { width: 100%; height: 100%; display: block; }
.letter.loose { pointer-events: none; }

/* ---------- FRIENDSHIP ANNIVERSARY ---------- */
.ann-title { left: 147px; top: 148px; width: 704px; font-weight: 700; font-size: 52px; line-height: normal; color: var(--blue); }
.ann-copy { left: 147px; top: 286px; width: 560px; font-weight: 500; font-size: 24px; line-height: 32px; color: var(--blue); }
.ann-tag { position: absolute; left: 147px; height: 32px; border-radius: 40px; text-align: left; z-index: 1; }
.ann-tag::before { content: ''; position: absolute; inset: 0; border-radius: 40px; background: var(--cyan); opacity: .25; box-shadow: 2px 2px 6.1px rgba(53,53,53,.3); transition: opacity .2s; }
.ann-tag:hover::before { opacity: .55; }
.ann-tag span { position: absolute; left: 27px; top: 0; font-size: 20px; line-height: 32px; color: var(--pink); white-space: nowrap; }
.ann-pill-cyan { left: 757px; top: 221px; width: 450px; height: 712px; border-radius: 300px; opacity: .6; background: var(--cyan);
  box-shadow: 6px 6px 20.1px rgba(49,49,49,.4), inset 43px 40px 50px #06c2c2; cursor: pointer; transition: opacity .3s; }
.ann-pill-cyan:hover { opacity: .72; }
.ann-outline-lime { left: 735px; top: 184px; width: 450px; height: 712px; border-radius: 300px; border: 4px solid var(--lime); pointer-events: none; animation: bob 6s ease-in-out infinite; }
.ann-pill-pink-box { left: 1195px; top: 209px; width: 647.55px; height: 816.04px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ann-pill-pink { width: 450px; height: 712px; border-radius: 300px; transform: rotate(17.95deg); background: var(--pink);
  box-shadow: 6px 6px 20px rgba(49,49,49,.4), inset 43px 40px 50px #de008a; pointer-events: auto; cursor: pointer; }
.ann-year { font-family: 'Rubik Glitch Pop', var(--font); font-size: 220px; line-height: normal; pointer-events: auto; cursor: pointer; }
.ann-year p { line-height: normal; }
.ann-year-cyan { left: 817px; top: 308px; width: 342px; color: var(--blue); }
.ann-year-pink-box { left: 1272px; top: 308px; width: 554.24px; height: 672.56px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ann-year-pink { position: relative; width: 395px; height: 579px; transform: rotate(17.95deg); color: var(--lime); }
.ann-outline-blue-box { left: 1185px; top: 164px; width: 649.5px; height: 816.79px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ann-outline-blue { width: 450px; height: 712px; border-radius: 300px; border: 4px solid var(--blue); transform: rotate(18.16deg); animation: bob 7s ease-in-out infinite reverse; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 6px -8px; } }

/* ---------- CALENDAR ---------- */
.cal-eyebrow { left: 39px; top: 134px; font-weight: 800; font-size: 24px; color: var(--blue); }
.cal-title { left: 39px; top: 173px; font-weight: 800; font-size: 40px; color: var(--blue); }
.cal-sub { left: 40px; top: 228px; font-size: 20px; color: #8a8a8a; }
.glass { position: absolute; border: 1px solid #d5d5d5; border-radius: 40px; box-shadow: 4px 4px 10px rgba(67,67,67,.3); pointer-events: none; }
.h32 { font-weight: 800; font-size: 32px; line-height: normal; color: var(--ink); white-space: nowrap; }
.dot46 { position: absolute; width: 46px; height: 46px; border-radius: 40px; }

.stat { position: absolute; top: 226px; height: 70px; text-align: left; border-radius: 18px; transition: background .2s; }
.stat:hover { background: rgba(255,255,255,.55); }
.stat > * { position: absolute; }
.stat img { width: 32px; height: 32px; }
.stat b { font-weight: 700; font-size: 28px; line-height: normal; color: var(--ink); }
.stat small { font-size: 20px; line-height: normal; color: #646464; white-space: nowrap; }
.next-day { position: absolute; left: 1608px; top: 196px; width: 253px; height: 109px; border-radius: 20px; background: var(--pink); color: var(--lime); text-align: left; transition: transform .2s; }
.next-day:hover { transform: scale(1.03); }
.next-day > * { position: absolute; }
.next-day img { left: 27px; top: 52px; width: 32px; height: 32px; }
.next-day small { font-size: 20px; line-height: normal; white-space: nowrap; }
.next-day b { font-weight: 700; font-size: 28px; line-height: normal; white-space: nowrap; }

.view-all { position: absolute; height: 30px; display: flex; align-items: center; gap: 4px; font-size: 18px; color: var(--ink); }
.view-all img { width: 28px; height: 28px; transition: transform .2s; }
.view-all:hover img { transform: translateX(4px); }
.note-row { position: absolute; left: 60px; width: 570px; height: 74px; text-align: left; border-radius: 16px; transition: background .2s; }
.note-row:hover { background: rgba(255,255,255,.45); }
.note-row > * { position: absolute; }
.note-row img { left: 15px; top: 4px; width: 32px; height: 32px; }
.note-row b { left: 69px; top: 4px; font-weight: 500; font-size: 24px; line-height: normal; }
.note-row small { left: 69px; top: 37px; width: 490px; font-size: 18px; line-height: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-btn { position: absolute; height: 46px; border-radius: 40px; box-shadow: 3px 3px 9.4px rgba(60,60,60,.3); transition: transform .18s; }
.pill-btn:hover { transform: translateY(-2px) scale(1.03); }
.pill-btn.lime { background: var(--lime); }
.pill-btn.cyan { background: var(--cyan); }
.pill-btn img { position: absolute; left: 21px; top: 7px; width: 32px; height: 32px; }
.pill-btn span { position: absolute; left: 56px; top: 8px; font-weight: 700; font-size: 26px; line-height: normal; white-space: nowrap; }
.pill-btn.cyan img { left: 30px; } .pill-btn.cyan span { left: 62px; }

.ms-row { position: absolute; left: 60px; width: 570px; height: 48px; border-radius: 14px; transition: background .2s; }
.ms-row:hover { background: rgba(255,255,255,.4); }
.ms-row > * { position: absolute; }
.ms-check { left: 7px; top: 0; width: 46px; height: 46px; border-radius: 40px; }
.ms-check.done { background: var(--cyan); }
.ms-check img { position: absolute; left: 7px; top: 8px; width: 32px; height: 32px; }
.ms-check.todo img { left: 8px; top: 7px; }
.ms-title { left: 69px; top: 8px; width: 380px; font-weight: 500; font-size: 24px; line-height: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ms-state { left: 468px; top: 11px; width: 76px; height: 29px; border-radius: 40px; }
.ms-state::before { content: ''; position: absolute; inset: 0; border-radius: 40px; border: 1px solid #d5d5d5; box-shadow: 3px 3px 6.6px rgba(67,67,67,.3); background: var(--lime); opacity: .4; }
.ms-state.todo { width: 80px; }
.ms-state.todo::before { background: #f3ffff; opacity: .6; }
.ms-state span { position: absolute; left: 17px; top: 2px; font-size: 18px; line-height: normal; color: #000; }
.ms-sep { position: absolute; left: 130px; width: 497px; height: 1px; background: #d4d4d4; }

.icon-btn { position: absolute; width: 48px; height: 48px; border-radius: 40px; transition: background .2s; }
.icon-btn:hover { background: rgba(200,255,0,.5); }
.icon-btn img { position: absolute; left: 5px; top: 7px; width: 32px; height: 32px; }
.icon-btn.flip img { left: 10px; transform: scaleX(-1); }
.cal-month { left: 797px; top: 393px; width: 190px; font-weight: 800; font-size: 24px; line-height: normal; color: #000; white-space: nowrap; }
.seg-pill { position: absolute; top: 387px; height: 46px; width: 116px; left: 1187px; border-radius: 40px; background: var(--lime); box-shadow: 3px 3px 9.4px rgba(60,60,60,.3); transition: left .3s cubic-bezier(.5,1.6,.5,1), width .3s; }
.seg { position: absolute; top: 387px; height: 46px; width: 116px; font-weight: 700; font-size: 24px; color: #000; text-align: center; line-height: 46px; border-radius: 40px; }
.seg[data-action="cal-today"] { width: 107px; }
.tool { position: absolute; top: 392px; height: 44px; display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 24px; color: #000; padding: 0 4px; border-radius: 12px; transition: background .2s; white-space: nowrap; }
.tool:hover { background: rgba(200,255,0,.45); }
.tool img { width: 32px; height: 32px; }
.dow span { position: absolute; top: 454px; font-weight: 600; font-size: 24px; line-height: normal; color: #000; }

#cal-grid { position: absolute; inset: 0; pointer-events: none; }
.cal-line { position: absolute; left: 746px; width: 1085px; height: .75px; background: var(--pink); }
.cal-cell { position: absolute; pointer-events: auto; border-radius: 14px; transition: background .2s; cursor: pointer; }
.cal-cell:hover { background: rgba(200,255,0,.18); }
.cal-num { position: absolute; font-weight: 600; font-size: 24px; line-height: normal; color: #000; pointer-events: none; }
.cal-num.muted { color: #bbb; }
.cal-num.today::after { content: ''; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--pink); transform: translate(-50%, -50%); }
.chip { position: absolute; height: 34px; border-radius: 10px; display: flex; align-items: center; gap: 8px; padding: 0 9px; pointer-events: auto; cursor: pointer;
  font-weight: 600; font-size: 20px; white-space: nowrap; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.chip:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.18); z-index: 2; }
.chip .emo { font-size: 26px; line-height: 1; font-family: 'Apple Color Emoji','Segoe UI Emoji',sans-serif; }
.chip .t { overflow: hidden; text-overflow: ellipsis; }
.chip.fit .t { overflow: visible; }
.chip.pink { background: var(--pink); color: var(--cyan); }
.chip.lime { background: var(--lime); color: var(--blue); }
.chip.cyan { background: var(--cyan); color: var(--pink); }
.chip.blue { background: var(--blue); color: var(--lime); }
.more { position: absolute; font-size: 16px; font-weight: 700; color: var(--pink); pointer-events: auto; cursor: pointer; }

/* ---------- FRIENDSHIP TEST intro ---------- */
.tag-pill {
  left: calc(var(--cx) - var(--w) / 2); top: calc(var(--cy) - 24px); width: var(--w); height: 48px; border-radius: 40px;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 24px; white-space: nowrap;
  transform: rotate(var(--r)); z-index: 2; animation: tagfloat 4s ease-in-out infinite; pointer-events: none;
}
.tag-pill:nth-of-type(2n) { animation-duration: 5s; animation-direction: reverse; }
@keyframes tagfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.test-title { left: 421px; top: 169px; width: 1053px; text-align: center; font-weight: 800; font-size: 128px; line-height: 150px; color: #000; z-index: 3; }
.test-desc { left: 417px; top: 635px; width: 1065px; text-align: center; font-weight: 500; font-size: 30px; line-height: normal; color: var(--pink); z-index: 3; }
#page-test .btn, #page-quiz .btn { z-index: 6; }

.bouncers { position: absolute !important; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.bouncer { position: absolute; left: 0; top: 0; will-change: transform; }
.bouncer img { width: 100%; height: 100%; display: block; }

/* ---------- QUIZ ---------- */
.q-head { left: 360px; top: 95px; width: 1233px; height: 252px; border-radius: 40px; background: rgba(200,255,0,.3); box-shadow: 4px 4px 20.1px rgba(69,69,69,.3); z-index: 3; }
.q-count { left: 497px; top: 114px; font-weight: 700; font-size: 24px; line-height: 32px; z-index: 4; white-space: nowrap; }
.q-track { left: 687px; top: 117px; width: 768px; height: 23px; border-radius: 40px; background: #fff; z-index: 4; overflow: hidden; }
.q-fill { height: 100%; width: 23px; border-radius: 40px; background: var(--lime); transition: width .55s cubic-bezier(.3,1.4,.5,1); }
.q-who { left: 1470px; top: 114px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; line-height: 32px; z-index: 4; white-space: nowrap; }
.who-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--pink); }
.q-who.b .who-dot { background: var(--cyan); }
.q-part { left: 476px; top: 165px; width: 1000px; text-align: center; font-weight: 700; font-size: 36px; line-height: 32px; color: var(--pink); z-index: 4; }
.q-desc { left: 728px; top: 211px; width: 496px; text-align: center; font-weight: 700; font-size: 20px; line-height: 26px; color: var(--pink); z-index: 4; }
.q-desc.wide { left: 656px; width: 640px; }
.q-text { left: 400px; top: 262px; width: 1153px; height: 82px; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-size: 30px; line-height: 32px; z-index: 4; }
.q-text.long { padding: 0 140px; }
.q-opt { position: absolute; left: 363px; width: 1233px; height: 117px; border-radius: 30px; background: #fff; box-shadow: 4px 4px 11.1px rgba(69,69,69,.3); z-index: 4;
  text-align: left; transition: background .25s, transform .2s; }
.q-opt:hover { transform: translateX(6px); }
.q-opt.sel { background: rgba(200,255,0,.3); }
.q-opt .circ { position: absolute; left: 74px; top: 30px; width: 56px; height: 56px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .3s cubic-bezier(.4,1.8,.5,1); }
.q-opt.sel .circ { transform: scale(1); }
.q-opt .let { position: absolute; left: 91px; top: 43px; font-weight: 800; font-size: 34px; line-height: 32px; }
.q-opt .txt { position: absolute; left: 167px; top: 0; height: 117px; width: 1045px; display: flex; align-items: center; font-weight: 800; font-size: 34px; line-height: 38px; }
.q-opt .txt.small { font-size: 28px; line-height: 32px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { translate: -10px 0; } 40%, 80% { translate: 10px 0; } }
.handoff { inset: 0; z-index: 25; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.handoff[hidden] { display: none; }
.handoff-card { width: 900px; padding: 60px 70px; border-radius: 40px; background: rgba(200,255,0,.55); box-shadow: 4px 4px 20.1px rgba(69,69,69,.3); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.handoff-text { font-weight: 800; font-size: 30px; line-height: 40px; }

/* ---------- RESULTS ---------- */
.res-title { left: 460px; top: 104px; width: 1000px; text-align: center; font-weight: 700; font-size: 40px; line-height: 32px; color: var(--pink); }
.res-sub { left: 360px; top: 158px; width: 1200px; text-align: center; font-size: 24px; line-height: 32px; color: var(--pink); }
.rb { position: absolute; text-align: left; border-radius: 24px; transition: background .2s; }
.rb:hover { background: rgba(255,255,255,.35); }
.rb > * { position: absolute; }
.rb-icon { width: 120px; height: 75px; }
.rb-icon img, .rb-icon svg { position: absolute; }
.rb-label { font-weight: 700; font-size: 26px; line-height: 32px; white-space: nowrap; }
.rb-name { font-weight: 700; font-size: 32px; line-height: 32px; white-space: nowrap; }
.tab { position: absolute; height: 40px; border-radius: 40px; background: var(--cyan); box-shadow: 4px 4px 20.2px rgba(0,0,0,.25); }
.tab span { position: absolute; font-weight: 700; font-size: 26px; line-height: 32px; color: var(--pink); white-space: nowrap; }
.tab-sub { font-size: 16px; line-height: 32px; }
.type-hl { position: absolute; top: 431px; width: 267px; height: 173px; border-radius: 20px; background: var(--lime); opacity: .53; transition: left .5s cubic-bezier(.5,1.4,.5,1), opacity .3s; }
.type-col { position: absolute; top: 431px; width: 290px; height: 173px; border-radius: 20px; cursor: pointer; }
.type-col:hover { background: rgba(200,255,0,.15); }
.type-col > * { position: absolute; }
.type-col .tn { top: 91px; left: 0; width: 100%; text-align: center; font-weight: 700; font-size: 22px; line-height: 32px; white-space: nowrap; }
.type-col .ts { top: 124px; font-weight: 700; font-size: 16px; line-height: 20px; text-align: center; }
.bcard { position: absolute; width: 358px; height: 110px; border-radius: 20px; background: rgba(255,255,255,.7); text-align: left; transition: transform .2s, box-shadow .2s; }
.bcard:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255,0,158,.18); }
.bcard > * { position: absolute; }
.bcard b { font-weight: 700; font-size: 22px; line-height: 32px; white-space: nowrap; }
.bcard small { font-size: 18px; line-height: 32px; white-space: nowrap; }
.map-svg { position: absolute; overflow: visible; }
.map-svg text { font-family: var(--font); font-weight: 700; }
.bar-label { font-weight: 700; font-size: 18px; line-height: 32px; white-space: nowrap; }
.bar { position: absolute; top: 967px; width: 186px; height: 22px; border-radius: 20px; background: #d9d9d9; overflow: hidden; }
.bar span { position: absolute; left: 0; top: 0; height: 100%; border-radius: 20px; background: var(--lime); transition: width 1s cubic-bezier(.3,1.2,.5,1); }

/* ---------- modal / popover / toast ---------- */
.modal-backdrop { position: absolute; inset: 0; z-index: 100; background: rgba(1,87,237,.18); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: 760px; max-height: 900px; overflow: auto; padding: 46px 54px 40px; border-radius: 40px; background: rgba(255,255,255,.96);
  box-shadow: 6px 6px 30px rgba(49,49,49,.35); animation: pop .3s cubic-bezier(.4,1.6,.5,1); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.modal-x { position: absolute; right: 26px; top: 18px; font-size: 44px; line-height: 1; color: var(--ink); width: 48px; height: 48px; border-radius: 50%; }
.modal-x:hover { background: var(--lime); }
.modal-title { font-weight: 800; font-size: 36px; color: var(--blue); margin-bottom: 26px; padding-right: 50px; }
.modal-body { font-size: 22px; line-height: 1.5; }
.modal-body p + p { margin-top: 10px; }
.modal-actions { display: flex; gap: 18px; justify-content: flex-end; margin-top: 30px; flex-wrap: wrap; }
.mbtn { height: 54px; padding: 0 30px; border-radius: 40px; font-weight: 700; font-size: 22px; box-shadow: 3px 3px 9.4px rgba(60,60,60,.3); transition: transform .15s; }
.mbtn:hover { transform: translateY(-2px); }
.mbtn.lime { background: var(--lime); color: var(--ink); }
.mbtn.cyan { background: var(--cyan); color: var(--pink); }
.mbtn.blue { background: var(--blue); color: var(--lime); }
.mbtn.pink { background: var(--pink); color: #fff; }
.mbtn.ghost { background: #fff; color: var(--ink); border: 1px solid #d5d5d5; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 700; font-size: 20px; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 22px; padding: 12px 18px; border-radius: 18px; border: 1.5px solid #d5d5d5; background: #fff; color: var(--ink); outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15,255,255,.35); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { height: 46px; padding: 0 18px; border-radius: 40px; border: 1.5px solid #d5d5d5; background: #fff; font-size: 20px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.choice.on { background: var(--lime); border-color: var(--lime); }
.choice.sw { width: 46px; padding: 0; justify-content: center; }
.choice.sw.on { box-shadow: 0 0 0 3px #fff inset, 0 0 0 3px var(--ink); }
.list { display: flex; flex-direction: column; gap: 10px; }
.li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: #f6f9ff; font-size: 20px; }
.li .grow { flex: 1; min-width: 0; }
.li .grow small { display: block; color: #8a8a8a; font-size: 16px; }
.li button { font-size: 16px; font-weight: 700; padding: 6px 14px; border-radius: 30px; background: #fff; border: 1px solid #d5d5d5; }
.li button:hover { background: var(--lime); }
.li .sw { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.empty { color: #8a8a8a; font-size: 20px; }

.popover { position: absolute; z-index: 90; width: 470px; padding: 26px 28px; border-radius: 30px; background: rgba(255,255,255,.97); box-shadow: 6px 6px 30px rgba(49,49,49,.3); animation: pop .25s; }
.popover[hidden] { display: none; }
.popover h4 { margin: 0 0 14px; font-size: 24px; font-weight: 800; color: var(--blue); }
.popover .li { font-size: 18px; }

.toast { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 120; padding: 18px 34px; border-radius: 40px; background: var(--blue); color: var(--lime);
  font-weight: 700; font-size: 22px; box-shadow: 4px 4px 20px rgba(0,0,0,.25); animation: pop .25s; white-space: nowrap; }
.toast[hidden] { display: none; }

/* ---------- CO:MEMORY intro (Frame 21) ---------- */
.gm-title { left: 132px; top: 125px; font-weight: 800; font-size: 128px; line-height: normal; color: var(--ink); white-space: nowrap; }
.gm-sub { left: 145px; top: 296px; font-weight: 600; font-size: 36px; line-height: normal; color: var(--pink); white-space: nowrap; }
.gm-copy { left: 150px; top: 348px; width: 736px; font-weight: 500; font-size: 26px; line-height: 35px; color: var(--pink); }
.gm-card { position: absolute; top: 442px; width: 274px; height: 213px; border-radius: 40px; }
.gm-card::before { content: ''; position: absolute; inset: 0; border-radius: 40px; background: #fff; opacity: .6; box-shadow: 2px 2px 6.1px rgba(53,53,53,.3); }
.gm-card > * { position: absolute; color: var(--blue); }
.gm-card b { font-weight: 800; font-size: 22px; line-height: 26px; text-align: center; }
.gm-card span { font-weight: 500; font-size: 20px; line-height: 22px; }
.gm-step { position: absolute; left: 148px; height: 40px; border-radius: 40px; text-align: left; }
.gm-step::before { content: ''; position: absolute; inset: 0; border-radius: 40px; background: #fff; opacity: .6; box-shadow: 2px 2px 6.1px rgba(53,53,53,.3); transition: opacity .2s; }
.gm-step:hover::before { opacity: .9; }
.gm-step span { position: absolute; left: 27px; top: 4px; font-weight: 500; font-size: 24px; line-height: 32px; color: var(--blue); white-space: nowrap; }
.deco { position: absolute; pointer-events: none; }
.gm-letters { position: absolute !important; inset: 0; pointer-events: none; z-index: 5; }
.gm-letter { position: absolute; left: 0; top: 0; pointer-events: auto; will-change: transform; filter: drop-shadow(5px 4px 24px rgba(255,0,158,.55)); }
.gm-letter img { width: 100%; height: 100%; display: block; }
.gm-letter.loose { pointer-events: none; }

/* ---------- game shared ---------- */
.g-progress { position: absolute; left: var(--l); top: var(--t); width: 840px; height: 58px; border-radius: 30px; }
.g-progress::before { content: ''; position: absolute; inset: 0; border-radius: 30px; background: #fff; opacity: .7; box-shadow: 4px 4px 20px rgba(92,92,92,.25); }
.g-progress b { position: absolute; left: calc(var(--ll) - var(--l)); top: calc(var(--lt) - var(--t)); font-weight: 600; font-size: 24px; line-height: 32px; white-space: nowrap; }
.g-track { position: absolute; left: calc(var(--tl) - var(--l)); top: calc(var(--tt) - var(--t)); width: 567px; height: 23px; border-radius: 40px; background: var(--cyan); overflow: hidden; }
.g-track i { position: absolute; left: 0; top: 0; height: 100%; width: 60px; border-radius: 40px; background: var(--blue); transition: width .6s cubic-bezier(.3,1.3,.5,1); }
.g-title { font-weight: 800; font-size: 60px; line-height: 32px; color: var(--ink); white-space: nowrap; padding-top: 14px; margin-top: -14px; }
.g-sub { font-weight: 600; font-size: 24px; line-height: 28px; color: #000; text-align: center; }

/* ---------- Pick Your Memory Box ---------- */
.pbox { position: absolute; width: 346px; height: 333px; border-radius: 40px; text-align: left; transition: transform .2s; }
.pbox::before { content: ''; position: absolute; inset: 0; border-radius: 40px; background: #fff; opacity: .6; box-shadow: 4px 4px 26px rgba(49,49,49,.25); border: 3px solid transparent; transition: background .2s, border-color .2s; }
.pbox:hover { transform: translateY(-4px); }
.pbox.sel::before { background: rgba(1,87,237,.2); border-color: var(--blue); }
.pbox > * { position: absolute; }
.pbox .pl { font-weight: 800; font-size: 26px; line-height: normal; color: var(--pink); white-space: nowrap; }
.pi { position: absolute; }
.pi > * { position: absolute; }
.mbox { position: absolute; inset: 0; pointer-events: none; }
.mbox-box { transform-origin: 50% 80%; }
.mbox.open .mbox-box { animation: boxpop .6s cubic-bezier(.4,1.8,.5,1); }
@keyframes boxpop { 40% { transform: scale(1.06) rotate(-3deg); } }

/* ---------- Unlock Your Memory ---------- */
.u-icon { position: absolute; }
.u-theme { left: 341px; top: 360px; font-weight: 800; font-size: 46px; line-height: 64px; color: var(--blue); white-space: nowrap; }
.u-question { left: 131px; width: 1140px; font-weight: 800; font-size: 50px; line-height: normal; color: var(--pink); }
.kw { position: absolute; height: 60px; border-radius: 40px; background: #fff; box-shadow: 4px 4px 15px rgba(51,51,51,.3); font-weight: 800; font-size: 24px; color: var(--ink);
  display: flex; align-items: center; justify-content: center; white-space: nowrap; padding: 0 22px; transition: background .2s, transform .15s; }
.kw:hover { transform: translateY(-2px); }
.kw .ck { position: absolute; left: 29px; top: 11px; width: 39px; height: 39px; border-radius: 40px; background: var(--blue); box-shadow: 4px 4px 20.2px rgba(0,0,0,.25); transform: scale(0); transition: transform .25s cubic-bezier(.4,1.8,.5,1); }
.kw .ck img { position: absolute; left: 8px; top: 8px; width: 23.1px; height: 23.1px; }
.kw.sel { background: var(--lime); justify-content: flex-start; padding-left: 84px; }
.kw.sel .ck { transform: scale(1); }
.u-detail { position: absolute; left: 116px; top: 832px; width: 947px; height: 64px; border-radius: 40px; border: 0; background: #fff; box-shadow: 4px 4px 15px rgba(51,51,51,.3);
  padding: 0 33px; font: inherit; font-size: 26px; color: var(--ink); outline: none; }
.u-detail::placeholder { color: #9d9d9d; }
.u-detail:focus { box-shadow: 4px 4px 15px rgba(51,51,51,.3), 0 0 0 4px rgba(15,255,255,.6); }
.u-preview-title { left: 1347px; top: 343px; font-weight: 800; font-size: 46px; line-height: 44px; color: var(--blue); white-space: nowrap; }
.u-preview { position: absolute; inset: 0; pointer-events: none; }
.pv-main { position: absolute; transition: transform .6s cubic-bezier(.3,1.4,.5,1); }
.pv-deco { position: absolute; transition: transform .6s cubic-bezier(.3,1.4,.5,1), opacity .4s; }
.pv-kw { position: absolute; filter: drop-shadow(4px 6px 14px rgba(255,0,158,.45)); animation: kwin .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes kwin { from { transform: scale(0) rotate(-40deg); opacity: 0; } }

/* ---------- Memory Badge ---------- */
.b-stage { position: absolute; left: 78px; top: 345px; width: 1033px; height: 545px; overflow: hidden; border-radius: 40px; }
.b-stage > * { position: absolute; }
.b-name { left: 1162px; top: 412px; width: 680px; text-align: center; font-weight: 800; font-size: 46px; line-height: normal; color: var(--blue); white-space: nowrap; }
.b-desc { left: 1226px; top: 484px; width: 589px; font-weight: 500; font-size: 32px; line-height: 36px; color: var(--blue); }
.b-kw-title { left: 1162px; top: 645px; width: 680px; text-align: center; font-weight: 800; font-size: 46px; line-height: normal; color: var(--pink); }
.b-kws { position: absolute; left: 1162px; top: 742px; width: 680px; display: flex; justify-content: center; gap: 27px; }
.b-kws span { height: 60px; padding: 0 22px; border-radius: 40px; background: var(--lime); box-shadow: 4px 4px 15px rgba(51,51,51,.3); display: flex; align-items: center; font-weight: 700; font-size: 24px; color: var(--pink); white-space: nowrap; }

/* ---------- My CO:DAY ---------- */
.me-title { left: 288px; top: 105px; font-weight: 800; font-size: 64px; line-height: 70px; color: var(--blue); white-space: nowrap; }
.me-sub { left: 237px; top: 168px; width: 467px; text-align: center; font-weight: 500; font-size: 24px; line-height: 28px; color: var(--blue); }
.radar text { font-family: var(--font); }
.rl { position: absolute; font-weight: 600; font-size: 22px; line-height: 32px; color: var(--pink); white-space: nowrap; }
.rv { position: absolute; width: 120px; height: 36px; border-radius: 40px; background: var(--cyan); font-weight: 500; font-size: 22px; line-height: 36px; color: var(--pink); text-align: center; transition: transform .2s; }
.rep { position: absolute; top: 191px; width: 209px; height: 154px; border-radius: 30px; text-align: left; transition: transform .2s; }
.rep:hover { transform: translateY(-4px); }
.rep > * { position: absolute; }
.rep b { top: 82px; font-weight: 700; font-size: 32px; line-height: 32px; }
.rep small { top: 113px; font-size: 18px; line-height: 32px; }
.me-res { position: absolute; top: 569px; height: 144px; border-radius: 30px; text-align: left; transition: transform .2s; }
.me-res:hover { transform: translateY(-3px); }
.me-res > * { position: absolute; }
.me-res .lbl { font-weight: 700; font-size: 24px; line-height: 32px; white-space: nowrap; }
.me-res .nm { font-weight: 700; font-size: 32px; line-height: 32px; white-space: nowrap; }
.me-res .ic { width: 90px; height: 76px; }
.me-row { position: absolute; left: 928px; width: 899px; height: 93px; border-radius: 30px; text-align: left; transition: filter .2s; }
.me-row:hover { filter: brightness(1.06); }
.me-row > * { position: absolute; }
.me-row b { left: 36px; top: 13px; font-weight: 700; font-size: 24px; line-height: 32px; }
.me-row small { left: 36px; top: 49px; font-size: 20px; line-height: 24px; white-space: nowrap; }
.me-row .go { left: 818px; top: 23px; width: 48px; height: 48px; border-radius: 40px; background: var(--lime); box-shadow: 3px 3px 5px rgba(67,67,67,.3); }
.me-row .go img { position: absolute; left: 8px; top: 8px; width: 32px; height: 32px; transform: scaleX(-1); }
.badge-thumb { width: 120px; height: 80px; object-fit: contain; border-radius: 12px; background: #fff; flex: none; }


@media (prefers-reduced-motion: reduce) {
  .pendant-swing, .tag-pill, .ann-outline-lime, .ann-outline-blue { animation: none; }
}
