.my-screen { background: var(--color-white); }

.my-appbar { display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 16px; }
.my-appbar .handle { font-family: var(--font-supreme-bold); font-size: 28px; line-height: 34px; letter-spacing: -1px; color: var(--color-black); }
/* Hamburger — 24×24 tap target, opens the settings page */
.my-appbar .menu { width: 24px; height: 24px; display: flex; flex-direction: column; justify-content: center; gap: 4px; cursor: pointer; }
.my-appbar .menu span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--color-black); margin: 0 auto 0 2px; }

.my-profile { display: flex; flex-direction: column; align-items: center; padding: 0 16px; margin-top: 26px; }
.my-profile .avatar { width: 100px; height: 100px; border-radius: 999px; object-fit: cover; }
.my-profile .name { margin: 8px 0 4px; font-family: var(--font-supreme-bold); font-size: 22px; line-height: 1.2; letter-spacing: -1px; color: var(--color-black); }
.my-profile .tag { font-family: var(--font-supreme); font-size: 13px; letter-spacing: -0.4px; color: var(--color-neutral-400); }

.my-stats { display: flex; justify-content: center; gap: 42px; margin: 20px 0; }
.my-stats .stat-col { text-align: center; }
.my-stats .stat-col .num { font-family: var(--font-supreme-bold); font-size: 22px; letter-spacing: -0.6px; color: var(--color-black); }
.my-stats .stat-col .lbl { font-family: var(--font-supreme); font-size: 12px; letter-spacing: -0.5px; color: var(--color-neutral-500); margin-top: 2px; }

/* Saved | My Pack — round segmented toggle (node 234:10261) */
.my-tap {
  display: flex; gap: 4px;
  height: 44px; margin: 20px 12px 8px; padding: 4px;
  background: #fff; border-radius: 20px; box-sizing: border-box;
}
.my-tap .seg {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: none; background: none; border-radius: 20px; cursor: pointer;
  font-family: var(--font-supreme-medium); font-size: 14px; letter-spacing: -0.56px;
  color: var(--color-neutral-700);
}
.my-tap .seg.active { background: var(--color-neutral-100); }
/* Tight bookmark glyph, pre-coloured Neutral/700, sized to match the label (node 234:10262). */
.my-tap .seg img { width: 11px; height: 14px; }

.my-panel { display: none; padding: 12px; }
.my-panel.active { display: block; }

/* Saved: masonry grid (node 1:1421) — 3 cols, 3 rows, two wide + one tall cell */
.saved-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 108px); gap: 4px; }
.saved-grid .cell {
  position: relative;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 8px;
  text-decoration: none;   /* the cell is an <a>; kill the underline that bled onto the label */
}
/* Soft blurred glow rising from each card's bottom, tinted to its level colour
   (node 246:15438). Clipped by the card's overflow so it hazes the lower edge. */
.saved-grid .cell::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 58%;
  z-index: 0; pointer-events: none;
  /* Figma uses a blurred colour blob AND a backdrop blur — frost the image behind it
     as well as tint it. Mask fades the band's top so the frost edge stays soft. */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent);
  mask-image: linear-gradient(to top, #000 35%, transparent);
}
.saved-grid .c1::after { background: linear-gradient(rgba(127,159,174,0.7), rgba(176,190,210,0.7)); }
.saved-grid .c2::after { display: none; }   /* dark Pro card has no glow */
.saved-grid .c3::after { background: linear-gradient(rgba(188,20,10,0.7), rgba(185,0,0,0.7)); }
.saved-grid .c4::after { background: linear-gradient(rgba(35,82,128,0.7), rgba(58,157,249,0.7)); }
.saved-grid .c5::after { background: linear-gradient(rgba(146,156,166,0.7), rgba(249,147,58,0.7)); }
.saved-grid .c6::after { background: linear-gradient(rgba(162,159,6,0.7), rgba(108,112,12,0.7)); }
.saved-grid .c1 { grid-area: 1 / 1 / 2 / 3; }
.saved-grid .c2 { grid-area: 1 / 3 / 2 / 4; }
.saved-grid .c3 { grid-area: 2 / 1 / 4 / 2; }   /* badge stays top-right like the rest */
.saved-grid .c4 { grid-area: 2 / 2 / 3 / 3; }
.saved-grid .c5 { grid-area: 2 / 3 / 3 / 4; }
.saved-grid .c6 { grid-area: 3 / 2 / 4 / 4; }
.sv-badge {
  position: relative; z-index: 1;
  padding: 4px 8px; border-radius: 12px;
  font-family: var(--font-supreme); font-size: 11px; color: #fff; white-space: nowrap;
}
.sv-pro      { background: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.2)), #E02321; }
.sv-skilled  { background: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.2)), rgba(28,70,112,0.85); }
.sv-creator  { background: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.2)), rgba(150,193,228,0.9); }
.sv-creator2 { background: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.2)), rgba(168,171,6,0.82); }
.sv-creator3 { background: linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.2)), rgba(129,162,177,0.85); }
.sv-prodark  { background: rgba(0,0,0,0.38); }

/* "차라락" slide-in when a panel becomes active */
.my-panel.active .cell,
.my-panel.active .pack-card { animation: my-slide .42s cubic-bezier(.2,.85,.3,1) both; }
.my-panel.active > *:nth-child(1) .pack-card, .my-panel.active .cell:nth-child(1) { animation-delay: .02s; }
.my-panel.active .cell:nth-child(2), .my-panel.active .pack-card:nth-child(2) { animation-delay: .07s; }
.my-panel.active .cell:nth-child(3), .my-panel.active .pack-card:nth-child(3) { animation-delay: .12s; }
.my-panel.active .cell:nth-child(4), .my-panel.active .pack-card:nth-child(4) { animation-delay: .17s; }
.my-panel.active .cell:nth-child(5) { animation-delay: .22s; }
.my-panel.active .cell:nth-child(6) { animation-delay: .27s; }
@keyframes my-slide { from { opacity: 0; transform: translateY(18px); } }

/* My Pack: 2-col titled cards */
.pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pack-card { text-decoration: none; }
.pack-card .thumb { position: relative; width: 100%; aspect-ratio: 1; border-radius: 20px; background-size: cover; background-position: center; overflow: hidden; }
.pack-card .pk-hot {
  position: absolute; top: 8px; right: 8px;
  display: flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 12px;
  background: rgba(239,232,228,0.9);
  font-family: var(--font-supreme); font-size: 11px; line-height: 1.2; color: #fa3030;
}
.pack-card .pk-hot img { width: 10px; height: 11px; }
.pack-card .pk-title { margin: 8px 0 2px; font-family: var(--font-supreme-bold); font-size: 15px; letter-spacing: -0.5px; color: var(--color-black); }
.pack-card .pk-sub { margin: 0; font-family: var(--font-supreme); font-size: 13px; letter-spacing: -0.5px; color: var(--color-neutral-500); }
