/* 복사본: /workspace/gosiwon-src/battle-mockups/assets/components.css (브랜딩 시안)
   게임 화면을 건드리지 않도록 전역 규칙(*, html/body, img, button/input)만 뺐어요. */
/* Reusable battle-mode components for /workspace/gosiwon-battle/coin/
   Classes are prefixed ce- so they can be slotted without colliding.
   Visual language matches the existing gosiwon modal/card/button CSS.
*/

/* ---- typography helpers ---- */
.ce-koen{display:flex;flex-direction:column;gap:1px;line-height:1.25}
.ce-koen b{font-weight:800}
.ce-en{display:block;font-weight:600;opacity:.62;font-size:.82em;letter-spacing:-.01em}
.ce-disc{font-size:11px;opacity:.78;line-height:1.5;background:var(--disc-bg);border-radius:10px;padding:8px 10px;font-weight:600}
.ce-draft{outline:1.5px dashed #c9487a;outline-offset:2px}
.ce-need{display:inline-block;background:#ffe3ec;border:1.5px solid #e85d75;border-radius:6px;padding:0 5px;font-size:9px;font-weight:800;color:#c0344f;vertical-align:middle;letter-spacing:-.02em}

/* ---- buttons / chips / pills (source .btn .chip .pill .seg) ---- */
.ce-btn{font:inherit;font-weight:800;font-size:14px;color:var(--ink);background:var(--card);border:var(--stroke);border-radius:var(--radius-btn);padding:10px 14px;box-shadow:var(--shadow);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-align:center;line-height:1.25}
.ce-btn.main{background:var(--butter);font-size:16px;padding:12px 16px}
.ce-btn.pink{background:#ffd6e1}
.ce-btn.mint{background:var(--mint)}
.ce-btn.ghost{background:#fff;box-shadow:none}
.ce-btn.warn{background:#ffe0e0}
.ce-btn:disabled,.ce-btn[aria-disabled="true"]{opacity:.5}
.ce-rowb{display:flex;gap:8px}.ce-rowb .ce-btn{flex:1}
.ce-chip{background:var(--card);border:var(--stroke);border-radius:var(--radius-chip);padding:6px 12px;font-size:13px;font-weight:700;box-shadow:0 3px 0 rgba(74,63,85,.2);display:inline-flex;align-items:center;gap:6px}
.ce-pill{display:inline-block;background:var(--mint);border-radius:999px;padding:2px 10px;font-size:12px;font-weight:700}
.ce-seg{display:flex;gap:6px}
.ce-seg button{flex:1;font:inherit;font-weight:800;font-size:13px;color:var(--ink);background:#fff;border:var(--stroke);border-radius:12px;padding:8px 6px;cursor:pointer;line-height:1.2}
.ce-seg button.sel{background:var(--butter);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ink)}
.ce-seg button.sel.dn{background:#ffd6e1}
.ce-seg button.sel.hold{background:var(--lav)}

/* ---- card / modal shell ---- */
.ce-card{width:min(380px,100%);background:var(--card-solid);border:var(--stroke-thick);border-radius:var(--radius-card);padding:16px 16px 14px;box-shadow:var(--shadow-card)}
.ce-card.wide{width:min(470px,100%)}
.ce-card h2{margin:0 0 4px;font-size:18px;letter-spacing:-.4px;font-weight:900}
.ce-card .sub{margin:0 0 10px;font-size:12px;opacity:.75;line-height:1.45;font-weight:600}

/* ---- name tag (source .tag) ---- */
.ce-nametag{background:#fffaf3;border:var(--stroke);border-radius:14px;padding:3px 10px 4px;text-align:center;line-height:1.15;box-shadow:0 2px 0 rgba(74,63,85,.25);position:relative;display:inline-flex;flex-direction:column;align-items:center;min-width:86px}
.ce-nametag::after{content:"";position:absolute;left:50%;bottom:-8px;margin-left:-6px;width:10px;height:10px;background:#fffaf3;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg) skew(8deg,8deg);border-radius:0 0 3px 0}
.ce-nametag .ttl{display:block;font-size:10px;color:var(--muted);font-weight:600}
.ce-nametag .nk{display:block;font-size:13px;font-weight:800}
.ce-nametag.me{background:#fff3bf}
.ce-nametag.me::after{background:#fff3bf}

/* ---- 검증 입주민 badge: OPTIONAL, never required to play. [확인 필요] ---- */
.ce-badge-verified{display:inline-flex;align-items:center;gap:3px;background:var(--mint);border:1.5px solid var(--ink);border-radius:999px;padding:1px 7px 1px 5px;font-size:9px;font-weight:800;line-height:1.2;color:var(--ink);margin-top:3px}
.ce-badge-verified .mark{width:11px;height:11px;border-radius:50%;background:#3fae7c;border:1.5px solid var(--ink);color:#fff;font-size:8px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.ce-badge-note{font-size:10px;font-weight:600;opacity:.7;line-height:1.4;margin-top:4px}

/* ---- 털뭉치 사장님 (not official 3D EasyBoy) ---- */
.ce-blob{width:64px;height:72px;position:relative;flex:none}
.ce-blob .hood{position:absolute;inset:0 6px 10px 6px;background:var(--hood,var(--player-orange));border:2.5px solid var(--ink);border-radius:50% 50% 46% 46%;box-shadow:inset 0 -6px 0 rgba(74,63,85,.08)}
.ce-blob .face{position:absolute;left:50%;top:22px;transform:translateX(-50%);width:38px;height:32px;background:#fff1e3;border:2.5px solid var(--ink);border-radius:50%;}
.ce-blob .eye{position:absolute;top:12px;width:6px;height:7px;background:var(--ink);border-radius:50%}
.ce-blob .eye.l{left:10px}.ce-blob .eye.r{right:10px}
.ce-blob .mouth{position:absolute;left:50%;bottom:6px;width:10px;height:5px;border:2px solid var(--ink);border-top:0;border-radius:0 0 10px 10px;transform:translateX(-50%)}
.ce-blob.sm{width:48px;height:54px}
.ce-blob.sm .face{width:28px;height:24px;top:16px}
.ce-blob.sm .eye{width:5px;height:5px;top:9px}
.ce-blob.lg{width:84px;height:94px}
.ce-blob.lg .face{width:50px;height:42px;top:28px}
.ce-blob.lg .eye{width:8px;height:9px;top:16px}

/* ---- Clawd 🦀 pixel-ish 8x6 (mentor pet, not a guardian) ---- */
.ce-clawd{width:56px;height:48px;image-rendering:pixelated;position:relative;flex:none}
.ce-clawd svg{width:100%;height:100%;display:block}

/* ---- price row: official logo + ticker + source ---- */
.ce-price{display:flex;align-items:center;gap:8px;background:#fff;border:var(--stroke);border-radius:14px;padding:7px 10px}
.ce-price .logo{width:22px;height:22px;flex:none;object-fit:contain}
.ce-price .src{width:16px;height:16px;flex:none;object-fit:contain}
.ce-price .tk{font-weight:900;font-size:14px}
.ce-price .px{margin-left:auto;text-align:right;font-weight:900;font-size:14px;line-height:1.15}
.ce-price .px small{display:block;font-size:10px;font-weight:700}
.ce-price .px.up{color:var(--up)}.ce-price .px.dn{color:var(--dn-kr)}
.ce-price-note{font-size:10px;font-weight:600;opacity:.72;line-height:1.4;margin-top:4px}

/* ---- result card (round + final) ---- */
.ce-result-card{background:#fff;border:var(--stroke);border-radius:16px;padding:10px 12px}
.ce-outcome{display:inline-flex;align-items:center;gap:4px;border:var(--stroke);border-radius:999px;padding:3px 9px;font-size:12px;font-weight:900}
.ce-outcome.hold{background:#efeaf8}
.ce-outcome.win{background:#d6f5e4}
.ce-outcome.lose{background:#ffe0e6}
.ce-outcome.stop{background:#fff3c4}
.ce-outcome.liq{background:#ffd0d9}
.ce-duel-heads{display:flex;align-items:stretch;gap:6px}
.ce-duC{flex:1;background:#fff;border:var(--stroke);border-radius:12px;padding:6px 8px;font-size:12px;font-weight:700;min-width:0;display:flex;flex-direction:column;gap:1px}
.ce-duC b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ce-duC small{opacity:.6}
.ce-duBal{font-size:16px;font-weight:900}
.ce-duWin{text-align:center;font-size:24px;font-weight:900;margin:2px 0 6px}
.ce-duWin.win{color:#e06a10}.ce-duWin.lose{color:#5a5a80}.ce-duWin.draw{color:#5a4a8a}
.ce-say{display:flex;gap:8px;align-items:flex-start;background:var(--hint-bg);border-radius:12px;padding:8px;margin-top:8px;font-size:12.5px;font-weight:700;line-height:1.5}
.ce-legend{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}

/* ---- share card (X / Telegram) ---- */
.ce-share-card{width:1080px;height:1350px;background:linear-gradient(180deg,#fffaf3 0%,#ffe9d2 55%,#f9d5c8 100%);color:var(--ink);padding:64px 72px 56px;display:flex;flex-direction:column;position:relative;overflow:hidden;font-family:var(--font)}
.ce-share-card .brand-row{display:flex;align-items:center;justify-content:space-between}
.ce-share-card .brand-row img.word{height:52px;width:auto}
.ce-share-card .brand-row img.tg,.ce-share-card .brand-row img.x{width:40px;height:40px}
.ce-share-card h1{margin:36px 0 8px;font-size:64px;letter-spacing:-1.5px;line-height:1.1;font-weight:900}
.ce-share-card .versus{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fffaf3;border:4px solid var(--ink);border-radius:32px;padding:28px 32px;box-shadow:0 10px 0 rgba(74,63,85,.25);margin-top:28px}
.ce-share-card .guard{margin-top:auto;background:#fff;border:3px solid var(--ink);border-radius:20px;padding:18px 22px;font-weight:700;font-size:22px;line-height:1.45}

/* ---- ecosystem / after-duel CTA card ---- */
.ce-cta-card{background:#fff;border:var(--stroke);border-radius:16px;padding:10px 10px 8px}
.ce-cta-card h3{margin:0 0 8px;font-size:14px;font-weight:900}
.ce-cta-link{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:#fff;border:var(--stroke);border-radius:12px;padding:8px 10px;margin-top:6px;font:inherit;font-weight:700;font-size:12px;line-height:1.35;color:var(--ink);text-decoration:none;cursor:pointer}
.ce-cta-link .ico{width:22px;height:22px;flex:none;object-fit:contain}
.ce-cta-link .go{margin-left:auto;opacity:.5;font-weight:900}
.ce-cta-link.primary{background:var(--butter)}

/* ---- numbered steps (ordered only) ---- */
.ce-step{display:flex;gap:10px;align-items:flex-start}
.ce-num{flex:none;width:22px;height:22px;border-radius:50%;background:var(--ink);color:#fffaf3;font-size:12px;font-weight:900;display:flex;align-items:center;justify-content:center;margin-top:1px}
.ce-step + .ce-step{margin-top:10px}

/* ---- board list ---- */
.ce-board{background:#fff;border:var(--stroke);border-radius:12px;overflow:hidden}
.ce-board .row{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px dashed var(--line);font-size:12px;font-weight:700}
.ce-board .row:last-child{border-bottom:0}
.ce-board .row .res{margin-left:auto;font-size:11px;opacity:.75}

/* ---- phone / desktop stage ---- */
.stage-phone{width:390px;height:844px;position:relative;overflow:hidden;background:#cfeaf5;flex:none}
.stage-desktop{width:1440px;height:900px;position:relative;overflow:hidden;background:#cfeaf5;flex:none}
.stage-phone .bg, .stage-desktop .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(3px) saturate(1.05);transform:scale(1.04)}
.stage-phone .veil, .stage-desktop .veil{position:absolute;inset:0;background:#4a3f5566;backdrop-filter:blur(3px)}
.stage-phone .hud, .stage-desktop .hud{position:absolute;left:10px;top:10px;right:10px;display:flex;flex-wrap:wrap;gap:6px;z-index:2;pointer-events:none}
.stage-phone .stage-card, .stage-desktop .stage-card{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);max-height:92%;overflow:auto}
.stage-desktop .stage-card{top:48px;transform:translate(-50%,0);max-height:calc(100% - 72px)}

.sheet-wrap{padding:24px;display:flex;flex-direction:column;gap:32px;align-items:flex-start}
.sheet-wrap h1.frame-label{font-size:13px;margin:0 0 8px;font-weight:800;color:#6a5a86}

/* Prefer not to split Korean words mid-syllable */
.ce-card,.ce-btn,.ce-cta-link,.ce-koen b,.ce-invite,.ce-disc,.tiny{
  word-break:keep-all;
  overflow-wrap:break-word;
}
.ce-cta-link .tiny{word-break:break-all;} /* URLs may wrap */
