:root {
    --card: #ffffff;
    --text: #6b7280;
    --strong: #1f2937;
    --hobby-body-font: "Be Vietnam Pro", Arial, sans-serif;
    --hobby-title-font: "Spectral", Georgia, serif;
    /* spring (≈ visualDuration .6, bounce .25 của Aceternity) */
    --spring: linear(0, 0.0366, 0.1279, 0.253, 0.3886, 0.5326, 0.669, 0.7908, 0.8901, 0.9732, 1.0357, 1.0789, 1.1045, 1.1171, 1.1185, 1.1116, 1.0996, 1.0839, 1.0668, 1.0499, 1.0347, 1.0209, 1.0094, 1.0003, 0.9939, 0.9894, 0.9869, 0.9859, 0.9861, 0.9871, 0.9888, 0.9906, 0.9927, 0.9947, 0.9965, 0.998, 0.9992, 1.0002, 1.0009, 1.0014, 1.0016, 1.0017, 1.0016, 1.0015, 1.0013, 1.001, 1.0008, 1.0006, 1.0004, 1.0002, 1);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    background: #f9faff url("../../../../assets/images/background/continuation.svg") center top / 100% 200svh repeat-y;
    font-family: var(--hobby-body-font);
    color: var(--text);
    padding: 64px 24px;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }

  /* ================= LƯỚI ================= */
  .bento {
    max-width: 1168px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(300px, auto);
    grid-auto-flow: dense;
    gap: 16px;
  }
  .card {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: var(--card);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    transition: opacity .2s;
  }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .tall   { grid-row: span 2; }
  @media (max-width: 1023px) { .bento { grid-template-columns: repeat(2, 1fr); } .span-3 { grid-column: span 2; } }
  @media (max-width: 767px)  {
    .bento { grid-template-columns: 1fr; }
    .span-2, .span-3 { grid-column: span 1; }
    .hobby { grid-row: span 2; }                  /* điện thoại: ô sở thích cao hơn */
    .music .hint { display: none; }
  }

  .card.is-dragging { opacity: .25; }
  .drag-ghost { position: fixed; z-index: 1000; pointer-events: none; border-radius: 32px; overflow: hidden; scale: 1.05; box-shadow: 0 0 30px rgba(0,0,0,.12); }

  .label {                       /* nhãn nhỏ góc trên trái */
    position: absolute;
    top: 22px;
    left: 26px;
    z-index: 30;
    font-size: 13px;
    font-weight: 600;
    color: var(--strong);
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .label.light { color: #fff; }

  .arrow-btn {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 16px;
    z-index: 40;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0d1117;
    box-shadow: 0 0 0 2px #e5e7eb, 0 8px 18px rgba(0,0,0,.12);
    transition: box-shadow .3s;
  }
  .arrow-btn:hover { box-shadow: 0 0 0 4px #d1d5db, 0 8px 18px rgba(0,0,0,.12); }
  .arrow-btn svg { width: 20px; height: 20px; }

  /* ================= 1. CHÀO ================= */
  .intro { display: flex; flex-direction: column; justify-content: flex-start; padding: 24px 56px; }
  @media (max-width: 1023px) { .intro { padding: 24px 32px; } }
  .intro-bottom { display: flex; align-items: flex-end; gap: 16px; min-height: 165px; margin: auto -32px -24px; padding-top: 12px; flex-shrink: 0; }
  .avatar { width: 144px; height: 153px; flex: none; }
  .avatar img { display: block; width: 100%; height: 100%; object-fit: contain; transform: translateY(16px); }
  .chat { align-self: center; min-width: 0; flex: 1; }
  .bubble {
    position: relative;
    width: fit-content;
    max-width: min(240px, 100%);
    padding: 8px 14px;
    border-radius: 30px;
    background: #0a84ff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.375;
    box-shadow: 0 10px 22px rgba(10,132,255,.45), 0 0 0 1px rgba(165,219,255,.45);
    opacity: 0;
    translate: 0 4px;
    transition: opacity .7s, translate .7s;
  }
  .bubble.show { opacity: 1; translate: 0 0; }
  .bubble svg { position: absolute; left: -9px; top: 17px; width: 15px; height: 15px; }
  .intro h1, .intro p { font-size: 16px; font-weight: 400; line-height: 1.65; }
  .intro p { margin-top: 4px; max-width: 500px; }
  .name { position: relative; display: inline-block; white-space: nowrap; font-weight: 700; color: var(--strong); }
  .name span { position: relative; z-index: 2; font-family: var(--hobby-title-font); font-size: 21px; }
  .name svg { position: absolute; left: 0; bottom: -6px; width: 100%; height: 10px; }

  /* ================= 2. BẢN ĐỒ ================= */
  .map { background: #e0f2f1; }
  .map iframe { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); border: 0; pointer-events: none; }
  .pin { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; pointer-events: none; }
  .pin-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(34,211,238,.5);
    border: 1px solid rgba(103,232,249,.7);
    box-shadow: 0 10px 30px rgba(14,165,233,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease-out;
  }
  .pin-circle::before {               /* sóng lan toả */
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 2px solid rgba(34,211,238,.6);
    animation: wave 2.4s ease-out infinite;
  }
  @keyframes wave { to { scale: 1.6; opacity: 0; } }
  .pin-circle span { font-size: 54px; line-height: 1; filter: drop-shadow(0 4px 3px rgba(0,0,0,.15)); transition: transform .3s ease-out; }
  .map:hover .pin-circle { transform: rotate(-10deg) scale(1.05); }
  .map:hover .pin-circle span { transform: rotate(10deg) translateY(-4px); }
  .place {
    position: absolute;
    left: 50%;
    bottom: 18px;
    translate: -50% 0;
    z-index: 25;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
    color: var(--strong);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
  }

  /* ================= 3. WEBSITE (cửa sổ trình duyệt xoay vòng) ================= */
  .web { background: linear-gradient(160deg, #faf8f5, #efe7dd); }
  .web .head { position: absolute; top: 24px; left: 26px; right: 26px; z-index: 30; }
  .web .head h3 { font-family: var(--hobby-title-font); font-size: 21px; font-weight: 600; color: #2b2b2b; line-height: 1.25; }
  .web .head p { margin-top: 6px; font-size: 13px; color: #8a7f75; }
  .stack { position: absolute; left: 20px; right: 20px; top: 150px; bottom: 76px; }
  .win {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(60,40,20,.16), 0 0 0 1px rgba(0,0,0,.05);
    transition: translate .7s var(--spring), rotate .7s var(--spring), scale .7s var(--spring), opacity .5s, filter .5s;
  }
  .win[data-pos="0"] { z-index: 3; }
  .win[data-pos="1"] { z-index: 2; translate: 0 -26px; scale: .92; rotate: 3deg; filter: brightness(.96); }
  .win[data-pos="2"] { z-index: 1; translate: 0 -50px; scale: .84; rotate: -3deg; filter: brightness(.92); }
  .bar { height: 30px; display: flex; align-items: center; gap: 5px; padding: 0 12px; background: #f3f0ec; border-bottom: 1px solid #ebe5de; }
  .bar i { width: 8px; height: 8px; border-radius: 50%; background: #e6ddd3; }
  .bar i:nth-child(1) { background: #ff5f57; } .bar i:nth-child(2) { background: #febc2e; } .bar i:nth-child(3) { background: #28c840; }
  .bar span { margin-left: 8px; flex: 1; height: 18px; border-radius: 6px; background: #fff; font-size: 10px; line-height: 18px; padding: 0 8px; color: #9a8f85; white-space: nowrap; overflow: hidden; }
  .site-shot { position: relative; height: calc(100% - 30px); }
  .site-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 90% center; display: block; background: #e9e1d7; }
  .site-shot .over { position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; }
  .site-shot .over b { display: block; font-family: var(--hobby-title-font); font-weight: 600; font-size: 20px; line-height: 1.3; }
  .site-shot .over small { font-size: 11px; opacity: .85; }
  /* giao diện CMS giả lập */
  .cms { display: flex; height: calc(100% - 30px); font-size: 10px; }
  .cms aside { width: 30%; background: #2b2622; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; }
  .cms aside b { color: #fff; font-size: 11px; margin-bottom: 6px; }
  .cms aside em { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.14); }
  .cms aside em.on { background: #c9a27e; }
  .cms .cms-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #fbfaf8; }
  .cms .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .cms .kpis div { border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #eee; padding: 6px; color: #9a8f85; }
  .cms .kpis strong { display: block; font-size: 14px; color: #2b2622; }
  .cms .rows div { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid #f0ebe5; color: #6b625a; }
  .cms .rows i { width: 18px; height: 18px; border-radius: 5px; background: var(--c, #e7d7c6); flex: none; }
  .cms .rows u { margin-left: auto; text-decoration: none; padding: 1px 6px; border-radius: 99px; background: #eef7ee; color: #3b8a46; font-size: 9px; }
  .cms .rows u.wait { background: #fff4e5; color: #b26a00; }
  .web .tabs { position: absolute; left: 72px; right: 20px; bottom: 26px; z-index: 30; display: flex; gap: 6px; }
  .web .tabs span { padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.7); color: #8a7f75; transition: all .3s; }
  .web .tabs span.on { background: #2b2622; color: #fff; }

  /* ================= 4. NHẠC (Interface Craft Cards) ================= */
  .card.music { min-height: 340px; isolation: isolate; background: #d1dff6; }
  .music::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 0;
    width: 200%;
    background: linear-gradient(90deg, #d1dff6, #e8dff5, #f5e0e9, #dcefe8, #d1dff6);
    background-size: 50% 100%;
    animation: playlist-gradient-loop 18s linear infinite;
    pointer-events: none;
  }
  @keyframes playlist-gradient-loop { to { transform: translateX(-50%); } }
  .deck { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
  .track {
    --x: 0px; --y: 0px; --r: 0deg; --s: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 128px;
    height: 228px;
    margin: -114px 0 0 -64px;
    padding: 8px;
    border: 0;
    border-radius: 18px;
    text-align: left;
    cursor: pointer;
    color: #fff;
    background: var(--bg);
    box-shadow: 0 10px 24px rgba(0,0,0,.14);
    translate: var(--x) var(--y);
    rotate: var(--r);
    scale: var(--s);
    transition: translate .6s var(--spring), rotate .6s var(--spring), scale .6s var(--spring);
    font-family: inherit;
  }
  .track:hover { --s: 1.06; }
  .track:focus-visible { z-index: 60 !important; outline: 2px solid #2455af; outline-offset: 3px; }
  .track .art { position: relative; height: 112px; border-radius: 12px; background: #202020; overflow: hidden; }
  .track .art img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .track h4, .track p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .track h4 { margin-top: 8px; font-size: 12px; font-weight: 700; line-height: 1.3; color: #fff; }
  .track p { margin-top: 2px; font-size: 9.5px; line-height: 1.3; color: #fff; }
  .track .ctrl { display: none; align-items: center; gap: 6px; margin-top: 6px; }
  .track .ctrl b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: #111; font-size: 8px; }
  .track .ctrl i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
  .track .ctrl i::after { content: ""; display: block; height: 100%; width: var(--p, 0%); background: #fff; }
  .track.active .ctrl { display: flex; }
  /* sóng nhạc khi đang phát */
  .eq { position: absolute; right: 8px; bottom: 8px; display: none; gap: 2px; align-items: flex-end; height: 14px; }
  .eq i { width: 3px; background: #fff; border-radius: 2px; animation: eq .8s ease-in-out infinite; }
  .eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
  @keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
  .track.playing .eq { display: flex; }
  .music .hint { position: absolute; right: 24px; top: 22px; font-size: 11px; color: #3d5473; }
  .music.has-music-error .hint { display: block; z-index: 60; top: auto; right: 16px; bottom: 10px; left: 16px; padding: 6px 10px; border-radius: 8px; background: rgb(245 245 244 / 96%); color: #526887; text-align: center; }

  /* ================= 5. MẠNG XÃ HỘI ================= */
  .slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; scale: .98; transition: opacity 1.2s cubic-bezier(.22,1,.36,1), scale 1.2s cubic-bezier(.22,1,.36,1); }
  .slide.active { opacity: 1; scale: 1; z-index: 1; }
  .slide.fb { background: linear-gradient(to bottom right, #1877f2, #0b5fd8 60%, #00a3ff); }
  .slide.tt { background: radial-gradient(circle at 25% 20%, #25f4ee44, transparent 45%), radial-gradient(circle at 80% 85%, #fe2c5544, transparent 45%), #0b0b0f; }
  .slide a {
    width: 96px; height: 96px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(2px);
    box-shadow: 0 12px 35px rgba(0,0,0,.2);
    transition: transform .3s, background .3s;
  }
  .slide a:hover { transform: scale(1.05); background: rgba(255,255,255,.2); }
  .slide svg { width: 46px; height: 46px; }
  .slide.tt svg { filter: drop-shadow(-2px -2px 0 #25f4ee) drop-shadow(2px 2px 0 #fe2c55); }
  .dots { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; z-index: 5; display: flex; gap: 8px; }
  .dots span { height: 6px; width: 8px; border-radius: 99px; background: rgba(255,255,255,.5); transition: all .3s; }
  .dots span.on { width: 24px; background: rgba(255,255,255,.9); }

  /* ================= 6. SỞ THÍCH ================= */
  .hobby { padding: 56px 18px 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: #fffaf3; }
  @media (max-width: 767px) { .hobby { grid-template-columns: repeat(2, 1fr); padding-top: 52px; } }
  .h-tile {
    position: relative;
    border-radius: 20px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    background: var(--tile);
    overflow: hidden;
    transition: transform .4s var(--spring);
  }
  .h-tile:hover { transform: translateY(-4px) rotate(-1.5deg); }
  .h-tile .big { font-size: 36px; line-height: 1; transition: transform .5s var(--spring); }
  .h-tile:hover .big { transform: scale(1.15) rotate(8deg); }
  .h-tile h4 { margin-top: auto; font-size: 15px; font-weight: 700; color: #1f2937; }
  .h-tile p { margin-top: 2px; font-size: 11.5px; color: #6b7280; line-height: 1.35; }
  .h-tile--badminton { isolation: isolate; background: #19373a; }
  .h-tile-photo { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 45% 65%; transform: scale(1.6); transform-origin: 45% 85%; }
  .h-tile--badminton::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgb(15 32 53 / 12%), rgb(15 32 53 / 24%) 40%, rgb(15 32 53 / 88%));
    pointer-events: none;
  }
  .h-tile--badminton .big, .h-tile--badminton h4, .h-tile--badminton p { position: relative; z-index: 2; }
  .h-tile--badminton .shuttle { z-index: 2; }
  .h-tile--badminton h4, .h-tile--badminton p { color: #fff; }
  .swatches { display: flex; margin-top: 6px; }
  .swatches i { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; margin-right: -8px; background: var(--c); box-shadow: 0 2px 6px rgba(0,0,0,.08); transition: margin .4s var(--spring); }
  .h-tile:hover .swatches i { margin-right: 2px; }
  /* quả cầu lông nảy */
  .shuttle { position: absolute; right: 12px; top: 12px; font-size: 26px; animation: hit 1.6s ease-in-out infinite; }
  @keyframes hit { 0%, 100% { translate: 0 0; rotate: -20deg; } 50% { translate: -46px 22px; rotate: 160deg; } }
  @media (max-width: 767px) { .h-tile { min-height: 0; } }

  /* ================= 7. PHIM ================= */
  .movies { background: #111015; }
  .marquee { position: absolute; left: 0; right: 0; top: 64px; bottom: 22px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .reel { display: flex; gap: 14px; width: max-content; height: 100%; padding-right: 14px; animation: scroll 38s linear infinite; }
  .movies:hover .reel, .movies:focus-within .reel { animation-play-state: paused; }
  .marquee:focus-visible { outline: 2px solid #c4d6f3; outline-offset: -4px; }
  @keyframes scroll { to { translate: -50% 0; } }
  .poster {
    position: relative;
    width: 138px;
    height: 100%;
    flex: none;
    border-radius: 16px;
    overflow: hidden;
    background: var(--g);
    box-shadow: 0 10px 24px rgba(0,0,0,.4);
    transition: transform .4s var(--spring);
    color: #fff;
  }
  .poster:hover { transform: translateY(-6px) scale(1.03); }
  .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .poster .info { position: absolute; inset: auto 0 0 0; padding: 30px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
  .poster b { display: block; font-family: var(--hobby-title-font); font-weight: 600; font-size: 15px; line-height: 1.3; }
  .poster small { font-size: 10.5px; opacity: .8; }

  /* ================= 8. TỦ SÁCH ================= */
  .books { background: linear-gradient(#fbf7f1, #f3ece2); }
  .shelf {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 40px;
    display: flex;
    align-items: flex-end;
    gap: 22px;
    padding: 20px 18px 0;
    perspective: 900px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf::after { content: ""; flex: none; width: 1px; }
  .board { position: absolute; left: 24px; right: 24px; bottom: 26px; height: 14px; border-radius: 4px; background: linear-gradient(#c9a27e, #a77f5c); box-shadow: 0 10px 18px rgba(120,80,40,.25); }
  .book {
    position: relative;
    flex: none;
    width: auto;
    height: 176px;
    aspect-ratio: var(--book-ratio);
    transform-style: preserve-3d;
    transform: rotateY(-22deg);
    transform-origin: left center;
    transition: transform .6s var(--spring);
    cursor: pointer;
  }
  .book:hover, .book:focus-visible { transform: rotateY(0deg) translateY(-14px); }
  .book:focus-visible { outline: 2px solid #2455af; outline-offset: 4px; }
  /* Crop the product-photo margins to the front-cover bounds. */
  .book--marketing {
    --book-ratio: 688 / 989;
    --cover-width: 174.419%;
    --cover-height: 121.335%;
    --cover-left: -39.535%;
    --cover-top: -11.224%;
  }
  .book--data {
    --book-ratio: 616 / 750;
    --cover-width: 121.753%;
    --cover-left: -10.877%;
  }
  .book--practice { --book-ratio: 4 / 5; }
  .book--imperfection {
    --book-ratio: 486 / 699;
    --cover-width: 144.033%;
    --cover-height: 100.143%;
    --cover-left: -21.811%;
    --cover-top: -.143%;
  }
  .cover {
    position: absolute;
    inset: 0;
    border-radius: 3px 8px 8px 3px;
    overflow: hidden;
    background: var(--c);
    box-shadow: inset 6px 0 8px -4px rgba(0,0,0,.35), 6px 8px 16px rgba(0,0,0,.18);
  }
  .cover img {
    position: absolute;
    left: var(--cover-left, 0%);
    top: var(--cover-top, 0%);
    width: var(--cover-width, 100%);
    height: var(--cover-height, 100%);
    max-width: none;
    display: block;
  }
  .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.18), transparent 12%, transparent 80%, rgba(0,0,0,.08)); }
  .pages {                                   /* gáy trang giấy phía phải */
    position: absolute;
    top: 3px;
    bottom: 3px;
    right: -10px;
    width: 12px;
    transform: rotateY(90deg) translateZ(0);
    transform-origin: left center;
    background: repeating-linear-gradient(90deg, #fffdf8 0 1px, #e9e2d6 1px 2px);
  }
  .books .count { position: absolute; right: 26px; top: 22px; font-size: 12px; color: #a8937c; }

  /* ================= 9. HỘP THƯ TÂM SỰ ================= */
  .mail { background: linear-gradient(160deg, #ffe4ec, #ffd1dc 55%, #ffc2d1); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .env { position: relative; width: 150px; height: 100px; margin-top: 18px; }
  .env .back { position: absolute; inset: 0; border-radius: 10px; background: #c93d63; }
  .env .letter {
    position: absolute;
    left: 10px; right: 10px; top: 10px; height: 86px;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    font-size: 11px;
    line-height: 1.35;
    color: #be4469;
    font-weight: 600;
    z-index: 1;
    transition: translate .6s var(--spring);
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
  }
  .env .front {                 /* túi thư phía trước, khoét chữ V ở trên */
    position: absolute; inset: 0; border-radius: 10px; z-index: 2;
    background: linear-gradient(to top, #ee5f86, #f27a9a);
    clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  }
  .env .flap {
    position: absolute; left: 0; right: 0; top: 0; height: 60px;
    background: linear-gradient(to bottom, #d9466e, #e85a80);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    transition: transform .5s ease, z-index 0s .25s;
    z-index: 3;
  }
  .mail:hover .flap { transform: rotateX(180deg); z-index: 0; transition: transform .5s ease, z-index 0s .2s; }
  .mail:hover .letter { translate: 0 -46px; }
  .heart { position: absolute; left: 50%; top: 46px; translate: -50% 0; z-index: 4; font-size: 20px; transition: opacity .3s; animation: beat 1.2s ease-in-out infinite; }
  .mail:hover .heart { opacity: 0; }
  @keyframes beat { 50% { scale: 1.2; } }
  .mail h3 { margin-top: 22px; font-family: var(--hobby-title-font); font-weight: 600; font-size: 22px; line-height: 1.3; color: #7a1f3d; }
  .mail p { margin-top: 4px; font-size: 12.5px; color: #a23b5d; padding: 0 20px; }
  .mail .go {
    margin-top: 14px; padding: 9px 18px; border-radius: 99px;
    background: #7a1f3d; color: #fff; font-size: 13px; font-weight: 600;
    box-shadow: 0 8px 18px rgba(122,31,61,.25);
    transition: transform .2s;
  }
  .mail .go:hover { transform: translateY(-2px); }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  }
/* Keep the reference cards readable when the grid becomes a single column. */
body { min-height: 100svh; }
.bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid #2455af; outline-offset: -5px; }
.slide:not(.active) { visibility: hidden; }
.slide.active { visibility: visible; }
@media (max-width: 1023px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  body { padding: 24px 16px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .card { min-height: 300px; }
  .intro { padding: 32px; }
  .intro-bottom { gap: 12px; min-height: 140px; margin: auto -16px -32px; }
  .avatar { width: 120px; height: 128px; }
  .bubble { padding-inline: 10px; font-size: 13px; }
  .tall { min-height: 616px; }
  .hobby { grid-row: auto; min-height: 500px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .music::before { animation: none; }
  .marquee { overflow-x: auto; mask-image: none; }
  .reel { animation: none; }
  .poster[aria-hidden="true"] { display: none; }
}
