/* 선물 가게 · 미리보기 · 판 위 전광판 · 스타 선물함
   단색만(소유자 지시 2026-10-02) — 그라데이션·테두리 선·빛번짐 없이 색 면·둥근 모서리·움직임으로 */

/* ── 가게 ── */
.gshop { max-width: 1040px !important; }
.gs-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.gs-hero { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gs-hero canvas { flex-shrink: 0; background: #fff0f5; border-radius: 20px; padding: 6px; box-sizing: content-box; }
.gs-hero h1 { margin: 0 0 2px !important; }
.gs-hero .lead { margin: 0 !important; font-size: 14px; }
.gs-bal { display: grid; justify-items: end; text-decoration: none; padding: 8px 14px; border-radius: 14px; background: var(--brand-soft); flex-shrink: 0; }
.gs-bal span { font-size: 12px; color: var(--muted); }
.gs-bal b { font-size: 20px; color: var(--brand-2); font-weight: 900; }

.gs-pick { background: var(--panel); border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; }
.gp-chosen { display: flex; align-items: center; gap: 12px; }
.gp-face { width: 44px; height: 55px; border-radius: 10px; object-fit: cover; background: var(--panel-2); flex-shrink: 0; }
.gp-who { display: grid; flex: 1; min-width: 0; }
.gp-who .muted { font-size: 12px; }
.gp-who b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-search { display: grid; gap: 8px; position: relative; }
.gp-search b { font-size: 15px; }
.gp-search input { min-height: 44px; border-radius: 12px; border: 0; background: var(--panel-2); padding: 0 14px; outline: none; width: 100%; }
.gp-search input:focus { background: var(--line); }
.gp-res { display: grid; gap: 4px; }
.gp-res:empty { display: none; }
.gp-opt { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 12px; background: var(--panel-2); cursor: pointer; text-align: left; min-height: 48px; }
.gp-opt:hover { background: var(--line); }
.gp-opt span:nth-child(2) { flex: 1; font-weight: 700; }
.gp-more { display: grid; gap: 14px; margin-top: 14px; }
.gp-more:empty { display: none; }
.gp-jjim { display: grid; gap: 8px; margin-bottom: 12px; }
.gp-more .gp-jjim { margin-bottom: 0; }
.gp-jh { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.gp-jl { display: flex; flex-wrap: wrap; gap: 6px; }
.gp-jl > p { margin: 2px 0; font-size: 13px; }
.gs-pick { margin-top: 6px; }
.gp-favs { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; margin-top: 10px; }
.gp-favs:empty { display: none; }
.gp-favs > .muted { font-size: 12px; flex-shrink: 0; }
.gp-fav { flex: 0 0 auto; display: grid; justify-items: center; gap: 3px; width: 58px; padding: 4px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.gp-fav:hover { background: var(--panel-2); }
.gp-fav img, .gp-fav canvas { width: 40px; height: 50px; border-radius: 10px; object-fit: cover; }
.gp-fav span { font-size: 11px; max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }

.gs-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.gs-tabs .chip { background: var(--panel-2); min-height: 38px; padding: 0 15px; font-size: 14px; }
.gs-tabs .chip[aria-pressed="true"] { background: var(--brand); color: #fff; }

.gs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 12px; }
.gcard { background: var(--panel); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s; }
@media (hover: hover) { .gcard:hover { transform: translateY(-3px); } .gcard:hover .gc-art canvas { transform: scale(1.08) rotate(-3deg); } }
.gc-art { position: relative; border: 0; height: 128px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.gc-art canvas { transition: transform .25s; }
.gc-dur { position: absolute; left: 10px; top: 10px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; }
.gc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gc-name { font-size: 16px; font-weight: 900; }
.gc-desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }
.gc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.gc-price { font-size: 17px; font-weight: 900; color: var(--brand-2); white-space: nowrap; }
.gc-btns { display: flex; gap: 4px; }
.gc-btns .btn { padding: 0 11px; }
.gc-btns .btn.ghost { color: var(--muted); }
.gc-btns .btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.gs-foot { margin-top: 18px !important; text-align: center; line-height: 1.6; }

.gs-sent { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gs-sent li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--panel); }
.gs-sent canvas { flex-shrink: 0; background: var(--panel-2); border-radius: 12px; padding: 4px; box-sizing: content-box; }
.gs-sent-tx { flex: 1; min-width: 0; font-size: 14px; line-height: 1.5; word-break: break-word; }
.gs-sent-tx a { color: var(--text); font-weight: 700; }
.gs-sent-tx .muted { font-size: 12.5px; }
.gs-sent li.on { background: var(--brand-soft); }
.gs-sent .pill.on { background: var(--brand); color: var(--brand-ink); }
.gs-sent li > .btn { flex-shrink: 0; }
.gs-sent-act { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gs-sent-act .btn { min-width: 64px; }
.gs-sent-del { border: 0; background: none; padding: 2px 6px; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--danger); cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .gs-sent-del:hover { text-decoration: underline; } }
/* 카드: 내가 사서 적용 중인 선물 */
.gc-on { position: absolute; right: 10px; top: 10px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }
.gc-mine { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; cursor: pointer; text-align: left; font: inherit; font-size: 12.5px; line-height: 1.4;
  padding: 8px 10px; border-radius: 12px; background: var(--brand-soft); color: var(--text); }
.gc-mine-act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.gc-mine-act button { border: 0; background: none; padding: 2px 0; font: inherit; font-weight: 800; white-space: nowrap; cursor: pointer; }
.gc-view { color: var(--brand-2); }
.gc-del { color: var(--danger); font-size: 12px; }
@media (hover: hover) { .gc-mine:hover { background: var(--brand); color: var(--brand-ink); } .gc-mine:hover .gc-view { color: var(--brand-ink); }
  .gc-mine:hover .gc-del { color: var(--brand-ink); } .gc-del:hover { text-decoration: underline; } }

/* ── 미리보기 · 보내기 창 ── */
.modal.gmodal { max-width: 460px; }
.gstage { position: relative; border-radius: 16px; overflow: hidden; background: #15151d; margin-bottom: 12px; }
.gstage canvas { display: block; width: 100%; }
.gm-info { margin-bottom: 10px; }
.gm-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.gm-line .pill { background: var(--brand-soft); color: var(--brand-2); font-weight: 800; }
.gm-info p { font-size: 14px; line-height: 1.55; }
.gm-opt { display: grid; gap: 8px; margin: 10px 0; }
.gm-opt > span { font-weight: 700; font-size: 14px; }
.gm-swatches, .gm-stickers { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-swatches .sw { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; transition: transform .15s, border-radius .15s; color: #fff; font-weight: 900; font-size: 18px; display: grid; place-items: center; padding: 0; }
.gm-swatches .sw[aria-pressed="true"] { transform: scale(1.14); border-radius: 12px; }
.gm-swatches .sw[aria-pressed="true"]::after { content: '✓'; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.gm-stickers .st { width: 50px; height: 50px; border-radius: 14px; border: 0; background: var(--panel-2); cursor: pointer; display: grid; place-items: center; padding: 0; }
.gm-stickers .st[aria-pressed="true"] { background: var(--brand); }
.gm-msg label { display: flex; justify-content: space-between; align-items: center; }
.gm-cnt { font-size: 12px; color: var(--muted); font-weight: 600; }
.gm-cnt.over { color: var(--danger); }
.gm-msg textarea { resize: vertical; min-height: 96px; }
.gm-queue { font-size: 13px; background: var(--panel-2); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.gm-ok { width: 100%; min-height: 50px; font-size: 16px; font-weight: 800; }
.gm-btns { display: flex; gap: 8px; margin-top: 12px; }
.gm-btns .btn { flex: 1; }
.gm-pick { background: var(--panel-2); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.gm-pick .gp-search input, .gm-pick .gp-opt { background: var(--panel); }
.gm-pick .gp-fav:hover { background: var(--panel); }

.gdone { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 4px 0; }
.gdone canvas { animation: gpop .5s cubic-bezier(.3, 1.6, .5, 1); }
.gdone b { font-size: 17px; }
.gdone p { margin: 0; color: var(--muted); font-size: 14px; }
.gdone .gm-btns { width: 100%; }
@keyframes gpop { 0% { transform: scale(.3) rotate(-20deg); } 100% { transform: none; } }

/* ── 판 위 전광판 ── */
.gticker { position: absolute; z-index: 5; left: 50%; top: 12px; transform: translateX(-50%); width: min(560px, calc(100% - 140px)); }
.gticker.inside { top: 8px; width: calc(100% - 16px); z-index: 1; }
.gt-in { width: 100%; display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 6px; min-height: 40px; border: 0; border-radius: 999px; background: #ffc83d; color: #1a1a1a; cursor: pointer; font-weight: 800; font-size: 14px; overflow: hidden; }
.gt-in canvas { flex-shrink: 0; background: #fff; border-radius: 50%; }
.gt-txt { flex: 1; overflow: hidden; white-space: nowrap; }
.gt-run { display: inline-flex; gap: 60px; padding-left: 100%; animation: gtrun 16s linear infinite; }
.gticker.inside .gt-run { animation-duration: 10s; }
@keyframes gtrun { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .gt-run { animation: none; padding-left: 0; } .gt-run span + span { display: none; } .gdone canvas { animation: none; } }
@media (max-width: 899px) { .gticker:not(.inside) { top: 60px; width: calc(100% - 24px); } }
@media (max-width: 520px) { .gticker:not(.inside) { top: 52px; width: calc(100% - 16px); } }

/* ── 스타 상세 ── */
.gift-btn { background: #ff5c8a !important; color: #fff; }
.gift-btn:hover { background: #ef4a79 !important; }
.ribbon-ic { vertical-align: middle; }
.gbox-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.gbox-head h4 { margin: 0; }
.glive { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.glive li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--panel-2); font-size: 13px; }
.glive canvas { grid-row: span 2; }
.glive .muted { font-size: 12px; }
.gwall { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gwall li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: #fff4d6; color: #5a3d00; font-weight: 800; font-size: 13px; }
.gletters { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gletters li { padding: 10px 12px; border-radius: 14px; background: #ffeaf1; color: #3a1a24; }
.gl-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.gl-head .muted { margin-left: auto; color: #8a5b6a; font-size: 12px; }
.gletters p { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.55; }
.fi .ic.gift { background: #fff0f5; }

@media (max-width: 520px) {
  .gs-top { align-items: flex-start; }
  .gs-hero canvas { width: 46px !important; height: 46px !important; border-radius: 14px; }
  .gs-hero h1 { font-size: 21px !important; }
  .gs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gc-art { height: 104px; }
  .gc-body { padding: 10px; }
  .gc-name { font-size: 15px; }
  .gc-desc { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .gc-foot { flex-direction: column; align-items: stretch; }
  .gc-btns { display: grid; grid-template-columns: 1fr 1.4fr; }
  .gc-btns .btn { padding: 0 6px; }
}
