/* "My gifts" of the Secret Room (20.11): same boudoir palette as the room and the conversation history. Animations: transform and opacity only;
   they are off in html.lite and with prefers-reduced-motion. */
.gs-body { --gs-rose: #ff5fa2; --gs-violet: #a78bfa; --gs-gold: #ffcf6b; --gs-bg: #0f0a12; --gs-surface: rgba(34, 22, 38, .86); --gs-line: rgba(255, 170, 210, .16);
    --gs-text: #f6eef6; --gs-text-2: #c4b3c8; }

.gs-app { position: relative; isolation: isolate; margin: 0 auto; max-width: 1120px; min-height: calc(100dvh - 140px); padding: 0 0 36px; box-sizing: border-box;
    color: var(--gs-text); border-radius: 26px; overflow: hidden;
    background: radial-gradient(120% 70% at 85% -10%, rgba(214, 51, 132, .22), transparent 60%), radial-gradient(90% 60% at 0% 100%, rgba(120, 70, 220, .16), transparent 60%), var(--gs-bg); }
@media (max-width: 768px) { .gs-app { border-radius: 20px; margin: 0 6px; } }

.gs-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gs-bg i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gs-rose); box-shadow: 0 0 10px 2px rgba(255, 95, 162, .5); opacity: 0; animation: gsFloat 16s linear infinite; }
.gs-bg i:nth-child(1) { left: 12%; } .gs-bg i:nth-child(2) { left: 32%; animation-delay: 4s; width: 3px; height: 3px; } .gs-bg i:nth-child(3) { left: 52%; animation-delay: 8s; }
.gs-bg i:nth-child(4) { left: 72%; animation-delay: 2s; width: 2px; height: 2px; } .gs-bg i:nth-child(5) { left: 90%; animation-delay: 10s; }
@keyframes gsFloat { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .6; } 85% { opacity: .25; } 100% { transform: translate(14px, -100vh); opacity: 0; } }

.gs-hero, .gs-main, .gs-gate { position: relative; z-index: 2; }
.gs-hero { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: start; padding: 26px 30px 6px; }
.gs-back { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 7px 12px 7px 8px; border-radius: 999px; font-size: .85rem; font-weight: 700;
    color: var(--gs-text-2); text-decoration: none; background: rgba(255, 255, 255, .05); border: 1px solid var(--gs-line); transition: color .2s, background .2s; }
.gs-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gs-back:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.gs-title { margin: 4px 0 8px; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em;
    background-image: linear-gradient(180deg, #fff 0%, #ffd3e7 45%, #ff6aa8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 6px 28px rgba(255, 80, 150, .32)); }
.gs-sub { margin: 0; max-width: 560px; color: var(--gs-text-2); line-height: 1.5; font-size: 1rem; }
.gs-gem { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; font-weight: 800; color: var(--gs-gold); background: rgba(255, 207, 107, .1); border: 1px solid rgba(255, 207, 107, .3);
    transition: transform .25s, box-shadow .25s; }
.gs-gem svg { width: 18px; height: 18px; fill: currentColor; }
.gs-gem.is-flash { animation: gsFlash .7s ease; }
@keyframes gsFlash { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 207, 107, .6); } 35% { transform: scale(1.12); box-shadow: 0 0 22px 4px rgba(255, 207, 107, .45); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 207, 107, 0); } }
@media (max-width: 640px) { .gs-hero { padding: 18px 16px 4px; } .gs-gem { position: absolute; right: 14px; top: 18px; padding: 7px 11px; } }

.gs-main { padding: 14px 30px 0; }
@media (max-width: 640px) { .gs-main { padding: 12px 14px 0; } }

.gs-gate { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 20px; text-align: center; }
.gs-cta { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 999px; font-weight: 800; color: #fff; text-decoration: none;
    background: linear-gradient(135deg, #ff5fa2, #c026d3); box-shadow: 0 10px 28px rgba(214, 51, 132, .38); }

    background: transparent; transition: background .2s, color .2s; min-height: 40px; }

.gs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .gs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 900px) { .gs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .gs-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.gs-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 16px 10px 12px; border-radius: 20px; text-align: center;
    background: linear-gradient(160deg, rgba(60, 36, 66, .7), rgba(26, 17, 30, .9)); border: 1px solid var(--gs-line); box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
    opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease, box-shadow .25s; transition-delay: calc(var(--gs-i, 0) * 40ms); overflow: hidden; }
.gs-tile.is-in { opacity: 1; transform: none; }
.gs-tile::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .12), transparent);
    transform: translateX(0) skewX(-18deg); opacity: 0; pointer-events: none; }
@media (hover: hover) { .gs-tile:hover { box-shadow: 0 14px 34px rgba(214, 51, 132, .25); } .gs-tile:hover::after { opacity: 1; transform: translateX(420%) skewX(-18deg); transition: transform .9s ease, opacity .2s; } }
.gs-tile.is-sold, .gs-tile.is-given { filter: grayscale(.7) brightness(.85); }
.gs-tile.is-selling { opacity: 0; transform: scale(.86); transition: opacity .42s ease, transform .42s ease; }

.gs-art { position: relative; display: flex; align-items: center; justify-content: center; width: 86px; height: 86px; border-radius: 22px; background: radial-gradient(circle at 50% 40%, rgba(255, 130, 190, .22), rgba(0, 0, 0, 0) 70%);
    animation: gsBob 5s ease-in-out infinite; }
.gs-tile:nth-child(2n) .gs-art { animation-delay: -1.6s; } .gs-tile:nth-child(3n) .gs-art { animation-delay: -3.1s; }
@keyframes gsBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.gs-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(255, 90, 160, .35)); }
.gs-fb { display: none; width: 44px; height: 44px; color: var(--gs-rose); } .gs-fb svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gs-noimg .gs-fb, .gs-art:not(:has(img)) .gs-fb { display: block; }
.gs-r-rare { box-shadow: 0 0 0 1px rgba(120, 170, 255, .35) inset; } .gs-r-epic { box-shadow: 0 0 0 1px rgba(190, 120, 255, .45) inset; }
.gs-r-legendary { box-shadow: 0 0 0 1px rgba(255, 207, 107, .55) inset; } .gs-r-mythic { box-shadow: 0 0 0 1px rgba(255, 95, 162, .65) inset; }

.gs-name { display: block; max-width: 100%; font-size: .95rem; line-height: 1.25; font-weight: 700; color: var(--gs-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-meta { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; font-size: .76rem; line-height: 1.3; color: var(--gs-text-2); overflow: hidden; white-space: normal; overflow-wrap: anywhere; min-height: 2.6em; }
.gs-sell { appearance: none; border: 0; cursor: pointer; width: 100%; min-height: 44px; margin-top: 6px; padding: 0 12px; border-radius: 14px; font: inherit; font-size: .9rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #ff5fa2, #c026d3); box-shadow: 0 8px 20px rgba(214, 51, 132, .34); transition: transform .15s, box-shadow .2s, opacity .2s; white-space: nowrap; }
.gs-sell span { display: block; overflow: hidden; text-overflow: ellipsis; }
.gs-sell:active { transform: scale(.96); } .gs-sell:disabled { opacity: .6; cursor: default; }
@media (hover: hover) { .gs-sell:hover { box-shadow: 0 12px 26px rgba(214, 51, 132, .5); } }

.gs-plus { position: absolute; left: 50%; top: 52%; z-index: 3; transform: translate(-50%, 0); padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .9rem; color: #2b1a00;
    background: linear-gradient(135deg, #ffe08a, #ffb347); box-shadow: 0 6px 18px rgba(255, 179, 71, .5); animation: gsPlus .9s ease forwards; pointer-events: none; }
@keyframes gsPlus { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 25% { opacity: 1; transform: translate(-50%, -6px) scale(1.05); } 100% { opacity: 0; transform: translate(-50%, -34px) scale(1); } }

.gs-coin { position: fixed; z-index: 2147483000; width: 28px; height: 28px; border-radius: 50%; pointer-events: none; opacity: 1;
    background: radial-gradient(circle at 35% 30%, #fff3c4, #ffcf6b 55%, #d98a1b); box-shadow: 0 0 14px rgba(255, 207, 107, .8); transition: transform .8s cubic-bezier(.3, .6, .3, 1), opacity .8s ease-in; }

.gs-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 46px 18px; text-align: center; color: var(--gs-text-2); }
.gs-empty b { font-size: 1.1rem; color: var(--gs-text); }
.gs-empty-ico { width: 64px; height: 64px; color: var(--gs-rose); opacity: .9; animation: gsBob 5s ease-in-out infinite; } .gs-empty-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.gs-loading { display: flex; justify-content: center; gap: 6px; padding: 30px 0; } .gs-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--gs-rose); animation: gsDot 1s ease-in-out infinite; }
.gs-loading i:nth-child(2) { animation-delay: .15s; } .gs-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes gsDot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-6px); opacity: 1; } }
.gs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.gs-toast { position: fixed; left: 50%; bottom: 84px; z-index: 2147483000; max-width: min(92vw, 420px); transform: translate(-50%, 12px); opacity: 0; padding: 12px 18px; border-radius: 14px; font-size: .92rem; font-weight: 600;
    color: #fff; background: rgba(34, 22, 38, .96); border: 1px solid var(--gs-line); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s; text-align: center; }
.gs-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

html.lite .gs-bg i, html.lite .gs-art, html.lite .gs-empty-ico, html.lite .gs-gem.is-flash, html.lite .gs-plus, html.lite .gs-loading i { animation: none; }
html.lite .gs-tile { transition: none; opacity: 1; transform: none; } html.lite .gs-tile::after { display: none; } html.lite .gs-coin { display: none; }
html.lite .gs-plus { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .gs-bg i, .gs-art, .gs-empty-ico, .gs-gem.is-flash, .gs-plus, .gs-loading i { animation: none; }
    .gs-tile { transition: none; opacity: 1; transform: none; } .gs-tile::after { display: none; } .gs-coin { display: none; } .gs-plus { opacity: 1; }
}

/* Entry line on /meet/: one short row that leads to My gifts (20.11) */
.mt-gifts-line { display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%; min-width: 0; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: #f6eef6;
    background: linear-gradient(135deg, rgba(255, 207, 107, .12), rgba(255, 95, 162, .1)); border: 1px solid rgba(255, 207, 107, .28); transition: transform .15s, box-shadow .2s; }
.mt-gifts-line:active { transform: scale(.985); }
@media (hover: hover) { .mt-gifts-line:hover { box-shadow: 0 10px 26px rgba(255, 179, 71, .2); } }
.mt-gl-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; color: #ffcf6b; background: rgba(255, 207, 107, .12); }
.mt-gl-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mt-gl-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mt-gl-txt b { font-size: .98rem; font-weight: 800; line-height: 1.25; }
.mt-gl-txt small { font-size: .8rem; line-height: 1.3; color: #c4b3c8; }
.mt-gl-go { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: .86rem; font-weight: 800; color: #ffcf6b; white-space: nowrap; }
.mt-gl-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 380px) { .mt-gl-go { display: none; } }

/* the hidden attribute must win over the display rules above */
.gs-app [hidden], .gs-toast[hidden], .gs-empty[hidden], .gs-gem[hidden] { display: none !important; }
@media (max-width: 440px) { .gs-tile { padding: 14px 8px 10px; } .gs-sell { font-size: .8rem; padding: 0 4px; letter-spacing: -.01em; } .gs-art { width: 76px; height: 76px; } }
@media (max-width: 340px) { .gs-sell { font-size: .74rem; } }
/* On /meet/ the entry line sits in the same grid cell as the old market block (market area on desktop, full row on phones) */
.mt-gifts-wrap { display: block; grid-template-columns: none; }
.mt-gifts-wrap > .mt-gifts-line { margin: 0; }

.mt-sell1{display:block;width:100%;margin-top:8px;padding:9px 12px;border:0;border-radius:10px;background:#f5c542;color:#1a1204;font:600 14px/1.2 inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:transform .15s,opacity .15s}
.mt-sell1:active{transform:scale(.97)}
.mt-sell1[disabled]{opacity:.7}
.mt-sell1.is-done{background:#2e7d4f;color:#fff}
@media (max-width:340px){.mt-sell1{font-size:13px;padding:8px 8px}}
html.lite .mt-sell1{transition:none}
