/* DUEL: stage pages. Matchmaking, the room, the countdown, the arena, the result, the replay dialog. Flat charcoal panels,
   a green side and a red side, thin lines. */
.spin { display: inline-block; width: 15px; height: 15px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
.small { font-size: 13px; line-height: 1.45; } .err { color: #ff7167; font-weight: 700; }

/* ---------- the split stage (matchmaking, room, countdown) ---------- */
.stage { position: relative; min-height: calc(100vh - 62px); color: var(--text); overflow: hidden; isolation: isolate; background: radial-gradient(55% 45% at 0% 0%, rgba(47, 209, 107, .17), transparent 72%) no-repeat, radial-gradient(55% 45% at 100% 0%, rgba(255, 77, 66, .15), transparent 72%) no-repeat, var(--bg); }
.stage.flash::after { content: ''; position: absolute; inset: 0; background: #fff; pointer-events: none; animation: flash .8s ease-out forwards; z-index: 5; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.stage.hot::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 160px rgba(255, 77, 66, .5); pointer-events: none; animation: heart .55s ease-in-out infinite; z-index: 4; }
@keyframes heart { 50% { opacity: .35; } }
.stage h1, .stage h2 { color: #fff; }

.find { padding: 50px 0 70px; }
.find-top { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.find-h { text-align: center; font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.035em; }
.find-sub { text-align: center; margin: 14px auto 0; width: fit-content; color: var(--muted); font-weight: 600; font-size: 16px; }
.find-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; max-width: 880px; margin: 44px auto 0; }
.fcard { background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 28px 22px 24px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.fcard.you { border-top: 3px solid var(--green); } .fcard.them { border-top: 3px solid var(--red); }
.fcard b { font: 800 22px var(--body); letter-spacing: -.02em; } .fav .avatar { width: 112px; height: 112px; border-radius: 26px; }
.fcard.slam { animation: slam .5s var(--ease); } @keyframes slam { 0% { transform: scale(.85); opacity: 0; } 100% { transform: none; opacity: 1; } }
.fvs { position: relative; display: grid; place-items: center; width: 120px; height: 120px; }
.radar i { position: absolute; inset: 0; border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 50%; opacity: 0; animation: radar 2.4s ease-out infinite; } .radar i:nth-child(2) { animation-delay: .8s; } .radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes radar { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.vsb { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--panel3); color: #fff; display: grid; place-items: center; font: 800 17px var(--body); letter-spacing: .02em; border: 1px solid var(--line2); }
.find-wait { text-align: center; margin-top: 26px; font-weight: 600; color: var(--muted); font-size: 14px; } .find-wait:empty { display: none; }

/* ---------- the room ---------- */
.roomx { padding: 28px 0 70px; }
.room-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.rclock { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 8px 24px 9px; text-align: center; }
.rclock b { display: block; font: 700 clamp(28px, 4.4vw, 40px)/1.05 var(--mono); color: #fff; } .rclock small { font-weight: 600; color: var(--dim); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); gap: 14px; align-items: start; }
.rvs { align-self: center; display: grid; place-items: center; } .rvs span { width: 46px; height: 46px; border-radius: 50%; background: var(--panel3); color: #fff; font: 800 14px var(--body); display: grid; place-items: center; border: 1px solid var(--line2); }
.rside { display: grid; gap: 10px; }
.rside.sa .rhead, .rside.sa .form, .rside.sa .cook { border-top: 3px solid var(--green); }
.rside.sb .rhead, .rside.sb .form, .rside.sb .cook { border-top: 3px solid var(--red); }
.rhead { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; } .rhead > div { flex: 1; min-width: 0; line-height: 1.25; } .rhead b { display: block; font-weight: 700; } .rhead small { color: var(--dim); font-weight: 600; } .rhead .avatar { border-radius: 11px; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 14px; }
.form h3 { font-size: 24px; }
.field { display: grid; gap: 6px; } .field label { font-weight: 600; font-size: 13px; color: var(--muted); }
input, textarea { font: 600 15px var(--body); color: var(--text); background: #141518; border: 1px solid var(--line2); border-radius: 10px; padding: 11px 13px; width: 100%; resize: vertical; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--dim); font-weight: 500; }
input:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 209, 107, .2); } input:disabled, textarea:disabled { opacity: .6; }
.drop { display: flex; align-items: center; gap: 16px; border: 1.5px dashed rgba(255, 255, 255, .24); border-radius: 14px; padding: 14px; cursor: pointer; background: #141518; transition: background .15s, border-color .15s; } .drop:hover { background: #1a1c20; border-color: var(--green); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; } .drop.has { border-style: solid; border-color: var(--line2); }
.dprev { width: 76px; height: 76px; border-radius: 16px; border: 1px solid var(--line2); background: var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0a6b0'%3E%3Cpath d='M19 7h-2.2l-1.2-2H8.400L7.200 7H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zm-7 11a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/%3E%3C/svg%3E") center / 30px no-repeat; overflow: hidden; flex: none; }
.dprev img { width: 100%; height: 100%; object-fit: cover; display: block; } .dtxt b { display: block; } .dtxt small { color: var(--dim); font-weight: 500; }
.xl-s { padding: 15px 22px; font-size: 17px; font-weight: 800; }
.cook { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; display: grid; justify-items: center; gap: 14px; text-align: center; min-height: 330px; align-content: center; }
.cav .avatar { width: 92px; height: 92px; border-radius: 22px; animation: breathe 2.4s ease-in-out infinite; } @keyframes breathe { 50% { transform: scale(1.04); } }
.sa .cav .avatar { box-shadow: 0 0 0 3px var(--green); } .sb .cav .avatar { box-shadow: 0 0 0 3px var(--red); }
.skel { display: grid; gap: 9px; width: min(260px, 100%); } .skel i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .06) 25%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .06) 75%) 0 0 / 200% 100%; animation: shimmer 1.6s linear infinite; } .skel i:nth-child(1) { width: 62%; justify-self: center; height: 16px; } .skel i:nth-child(2) { width: 38%; justify-self: center; animation-delay: -.5s; } .skel i:nth-child(3) { width: 84%; justify-self: center; animation-delay: -1s; }
@keyframes shimmer { to { background-position: -200% 0; } }
.cphrase { font: 600 15px var(--body); color: var(--muted); min-height: 24px; }
.chip.st { transition: background .2s, color .2s; } .chip.st.done { background: rgba(47, 209, 107, .16); color: #4fe08a; border-color: rgba(47, 209, 107, .4); }
.room-note { text-align: center; margin: 24px auto 0; font-weight: 500; font-size: 13.5px; color: var(--dim); }
.sign p { font-weight: 500; color: var(--muted); }
.steps-l { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 11px; }
.steps-l li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--dim); } .steps-l i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; flex: none; }
.steps-l li.now { color: var(--text); } .steps-l li.now i { border-top-color: transparent; animation: spin .8s linear infinite; }
.steps-l li.done { color: var(--green); } .steps-l li.done i { background: var(--green); border-color: var(--green); } .steps-l li.done i::after { content: '✓'; color: #04130a; font-size: 13px; font-weight: 900; }
.steps-l li.bad { color: #ff7167; } .steps-l li.bad i { background: var(--red); border-color: var(--red); }

/* ---------- the countdown ---------- */
.cd-wrap { display: grid; grid-template-columns: 1fr 2.2fr 1fr; align-items: center; gap: 10px; min-height: calc(100vh - 62px); padding: 20px 0; }
.cd-side { display: grid; justify-items: center; gap: 14px; text-align: center; } .cd-side .avatar { width: 140px; height: 140px; border-radius: 32px; }
.cd-side.l .avatar { box-shadow: 0 0 0 4px var(--green), 0 0 60px rgba(47, 209, 107, .35); } .cd-side.r .avatar { box-shadow: 0 0 0 4px var(--red), 0 0 60px rgba(255, 77, 66, .35); }
.cd-side b { font: 700 16px var(--body); color: var(--text); }
.cd-mid { text-align: center; } .cd-k { font: 600 14px var(--body); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.cd-n { font: 800 clamp(160px, 28vw, 340px)/1 var(--body); letter-spacing: -.05em; color: #fff; font-feature-settings: 'tnum'; text-shadow: 0 0 80px rgba(255, 255, 255, .22); }
.cd-n.pop { animation: cdpop .8s var(--ease); } .cd-n.go { color: var(--green); text-shadow: 0 0 80px rgba(47, 209, 107, .5); animation: cdpop .6s var(--ease); } .cd-n.small { font-size: clamp(90px, 16vw, 190px); }
@keyframes cdpop { 0% { transform: scale(1.5); opacity: 0; } 40% { transform: scale(.97); opacity: 1; } 100% { transform: scale(1); } }
.cd-s { font-weight: 600; font-size: 17px; color: var(--muted); margin-top: 4px; }
.firing { display: grid; place-content: center; justify-items: center; gap: 18px; min-height: calc(100vh - 160px); text-align: center; } .firing p { font-weight: 500; color: var(--muted); }
.firing h2 { font-size: clamp(26px, 4vw, 40px); }
.bar { width: min(420px, 80vw); height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; } .bar i { display: block; height: 100%; width: 38%; background: var(--green); border-radius: 999px; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(270%); } }
.card.cancelled { max-width: 540px; margin: 0 auto; padding: 34px 26px; min-height: 0; } .card.cancelled h2 { font-size: 30px; } .card.cancelled p { color: var(--muted); }

/* ---------- the arena ---------- */
.stage.arena { padding: 22px 0 70px; }
.a-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .a-meta, .a-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.live-c { color: #fff !important; background: var(--red) !important; border-color: transparent !important; } .live-c i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ping 1.4s infinite; } .live-c.final { background: var(--panel3) !important; color: var(--text) !important; }
.a-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr); gap: 14px; margin: 16px 0 14px; align-items: stretch; }
.coin { position: relative; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid; border-radius: 16px; padding: 18px 20px 16px; display: grid; gap: 4px; align-content: start; overflow: hidden; }
.coin::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07; }
.coin.g { border-top-color: var(--green); } .coin.g::before { background: linear-gradient(180deg, var(--green), transparent 60%); }
.coin.r { border-top-color: var(--red); } .coin.r::before { background: linear-gradient(180deg, var(--red), transparent 60%); }
.coin > * { position: relative; }
.coin header { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; } .coin header .chip { margin-left: auto; align-self: flex-start; }
.cpic { width: 58px; height: 58px; border-radius: 15px; object-fit: cover; flex: none; background: var(--panel3); } .coin.g .cpic { box-shadow: 0 0 0 2px var(--green); } .coin.r .cpic { box-shadow: 0 0 0 2px var(--red); }
.cpic.ph { font-size: 26px; } .cn { min-width: 0; } .cn h3 { font: 800 20px/1.1 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tk { font: 600 13.5px var(--mono); color: var(--muted); }
.mcl { font: 700 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.mc { display: flex; align-items: baseline; } .mc b { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.03em; color: #fff; } .mc span { margin-left: 8px; font-weight: 700; color: var(--dim); }
.usd { color: var(--muted); font-weight: 600; font-size: 14px; } .chg { display: flex; align-items: center; gap: 10px; margin: 10px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.gbar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; } .gbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--green)); border-radius: 4px; transition: width .5s ease; } .grad small { font-weight: 600; color: var(--dim); font-size: 11.5px; }
.owner { margin-top: 10px; font-size: 13.5px; } .owner a { text-decoration: none; } .links { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.coin.hit { animation: hit .35s ease-out; } @keyframes hit { 30% { filter: brightness(1.18); } }
.pops { position: absolute; inset: 0; pointer-events: none; } .pop { position: absolute; bottom: 36%; font: 700 19px var(--mono); animation: floatup 1.4s ease-out forwards; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); } .pop.buy { color: var(--green); } .pop.sell { color: var(--red); }
@keyframes floatup { 0% { transform: translateY(0) scale(.8); opacity: 0; } 15% { opacity: 1; transform: translateY(-12px) scale(1.1); } 100% { transform: translateY(-110px) scale(1); opacity: 0; } }
.a-mid { display: grid; align-content: center; justify-items: center; gap: 8px; text-align: center; }
.ring { position: relative; width: 176px; height: 176px; } .ring svg { width: 100%; height: 100%; } .trk { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 5; }
.prg { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .26s linear; } .late .prg { stroke: var(--red); }
.rin { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .rin b { font-size: 40px; line-height: 1; color: #fff; } .rin small { font-weight: 700; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; } .late .rin b { color: var(--red); animation: heart .7s infinite; }
.leadt { font-size: 15px; font-weight: 600; min-height: 48px; color: var(--muted); } .leadt b { color: var(--text); } .g-t { color: var(--green) !important; } .r-t { color: var(--red) !important; } .lcn { font-size: 12.5px; font-weight: 600; color: var(--dim); }
.spin.dark { display: inline-block; width: 13px; height: 13px; border: 2.5px solid var(--muted); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
.tug { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 4px 0 16px; font: 700 14px var(--mono); } .tl { color: var(--green); } .tr { color: var(--red); }
.tug-bar { position: relative; height: 12px; border-radius: 6px; background: var(--red); overflow: hidden; }
.tug-bar .g { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--green); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: width .5s cubic-bezier(.2, .9, .25, 1.1); } .tug.hit .tug-bar { animation: hit .5s; }
.chart-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 6px; } .chart-h { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 8px; font-size: 14px; } .chart-h b { font: 700 15px var(--body); } .chart-h .muted { color: var(--dim); font-weight: 600; font-size: 12.5px; }
canvas#cv { width: 100%; height: clamp(250px, 34vw, 420px); display: block; touch-action: pan-y; cursor: crosshair; }
.feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; } .feed { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid; border-radius: 16px; padding: 14px 18px 8px; } .feed.g { border-top-color: var(--green); } .feed.r { border-top-color: var(--red); }
.feed h4 { font: 700 15px var(--body); margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; } .feed h4 small { font: 600 12px var(--body); color: var(--dim); }
.feed ul { list-style: none; margin: 0; padding: 0; min-height: 110px; } .feed li { display: grid; grid-template-columns: 48px 1fr auto; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; animation: rise .3s var(--ease); } .feed li:first-child { border-top: 0; } .feed li.buy b { color: var(--green); } .feed li.sell b { color: var(--red); } .feed li .muted { color: var(--dim); }
.stage.arena.done .ring .prg { stroke: var(--dim); }

/* ---------- the result ---------- */
.res { position: fixed; inset: 0; z-index: 70; background: rgba(12, 13, 15, .78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 100px 16px 24px; overflow: auto; animation: fade .3s; } @keyframes fade { from { opacity: 0; } }
.res.min { position: static; inset: auto; background: none; backdrop-filter: none; padding: 22px 0 0; overflow: visible; display: block; animation: none; } .res.min .res-card { margin: 0 auto; width: 100%; max-width: 760px; padding: 16px 22px; } .res.min .crown { display: none; } .res.min .rk { display: none; } .res.min h2 { font-size: 26px; } .res.min .rscore, .res.min .rn { display: none; }
.res-card { background: var(--panel); border: 1px solid var(--line2); color: var(--text); width: min(540px, 100%); text-align: center; padding: 26px; margin-top: 80px; animation: slam .45s var(--ease); border-radius: 22px; } .res.won .res-card { border-color: rgba(255, 210, 63, .5); }
.crown { position: relative; width: 150px; height: 150px; margin: -104px auto 8px; } .crown::before { content: ''; position: absolute; left: 50%; top: -48px; width: 96px; height: 60px; transform: translateX(-50%); z-index: 2; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 74'%3E%3Cpath d='M8 66L2 14l34 26L60 4l24 36 34-26-6 52z' fill='%23ffd23f'/%3E%3C/svg%3E") center / contain no-repeat; }
.crown:empty::before { display: none; } .rpic > * { width: 150px; height: 150px; border-radius: 50%; border: 4px solid var(--line2); object-fit: cover; display: block; background: var(--panel3); } .crown.g .rpic > * { border-color: var(--green); } .crown.r .rpic > * { border-color: var(--red); } .lost .rpic > * { filter: grayscale(1); }
.rk { font: 700 12px var(--body); letter-spacing: .24em; color: var(--dim); } .res-card h2 { color: #fff; font-size: clamp(34px, 6vw, 48px); margin: 4px 0 4px; } .rn { font-weight: 700; font-size: 16px; color: var(--muted); }
.rscore { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 16px 0 6px; } .rscore div { display: grid; } .rscore small { font-weight: 700; color: var(--dim); } .rscore b { font-size: 26px; } .rscore .g b { color: var(--green); } .rscore .r b { color: var(--red); } .rscore .vs { border-color: var(--panel); }
.rwhy { font-weight: 500; color: var(--muted); font-size: 14px; } .newb { margin-top: 12px; } .newb:empty { display: none; }
.ract { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

/* ---------- replay dialog ---------- */
dialog.rpd { width: min(560px, 100% - 24px); } .rp { gap: 12px; }
.rp-fmt { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line2); border-radius: 11px; background: var(--bg); width: fit-content; } .rp-fmt button { border: 0; background: transparent; border-radius: 8px; padding: 7px 16px; font-weight: 700; font-size: 13.5px; color: var(--muted); } .rp-fmt button.on { background: var(--panel3); color: #fff; }
.rp-stage { display: grid; place-items: center; background: #0e0f11; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; padding: 0; } .rp-stage canvas, .rp-stage video, .rp-stage img { max-height: 54vh; max-width: 100%; width: auto; height: auto; display: block; }
.rp-bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; } .rp-bar i { display: block; height: 100%; width: 0; background: var(--green); } .rp-act { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .find-grid { grid-template-columns: 1fr; } .fvs { width: 80px; height: 80px; margin: 0 auto; } .vsb { width: 50px; height: 50px; }
  .room-grid { grid-template-columns: 1fr; } .rvs span { width: 40px; height: 40px; } .rvs { margin: -2px 0; }
  .cd-wrap { grid-template-columns: 1fr; } .cd-side { display: none; }
  .a-grid { grid-template-columns: 1fr 1fr; } .a-mid { grid-column: 1 / -1; order: -1; grid-template-columns: auto 1fr; text-align: left; justify-items: start; gap: 4px 18px; } .a-mid .ring { grid-row: 1 / 3; width: 112px; height: 112px; } .rin b { font-size: 26px; } .leadt { min-height: 0; align-self: end; }
  .coin { padding: 14px; } .coin header { flex-wrap: wrap; } .coin header .chip { margin-left: 0; } .cpic { width: 46px; height: 46px; border-radius: 12px; } .cn h3 { font-size: 17px; } .mc b { font-size: clamp(26px, 7vw, 40px); } .links .btn { padding: 6px 11px; font-size: 12.5px; }
  .feeds { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { padding: 16px; } .a-top { gap: 8px; } .chart-card { padding: 10px 6px 2px; }
  .coin .links { display: none; } .res { padding-top: 90px; } .crown { width: 128px; height: 128px; } .rpic > * { width: 128px; height: 128px; }
}

/* ---------- coin form extras: banner, links, initial buy ---------- */
.opt { font-weight: 500; color: var(--dim); font-size: 12px; margin-left: 4px; }
.media { display: grid; gap: 10px; }
.drop.banner { position: relative; }
.bprev { width: 132px; height: 44px; border-radius: 8px; border: 1px solid var(--line2); background: var(--panel2); overflow: hidden; flex: none; display: block; }
.bprev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dtxt em { font-style: normal; font-weight: 500; color: var(--dim); font-size: 12px; margin-left: 4px; }
.bx { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line2); background: var(--panel3); color: var(--text); font: 600 16px/1 var(--body); display: grid; place-items: center; padding: 0; }
.two-f { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.links-f { display: grid; gap: 8px; }
.lf { display: flex; align-items: center; background: #141518; border: 1px solid var(--line2); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.lf:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 209, 107, .2); }
.lf i { width: 40px; display: grid; place-items: center; color: var(--dim); flex: none; }
.lf input { border: 0; background: transparent; box-shadow: none !important; padding-left: 0; }
.buyrow { display: grid; gap: 10px; }
.chips-b { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-b button { border: 1px solid var(--line2); background: transparent; color: var(--muted); border-radius: 8px; padding: 7px 13px; font: 700 13px var(--mono); transition: background .15s, color .15s, border-color .15s; }
.chips-b button:hover:not(:disabled) { background: rgba(255, 255, 255, .06); color: var(--text); }
.chips-b button.on { background: rgba(47, 209, 107, .15); color: var(--green); border-color: rgba(47, 209, 107, .5); }
.chips-b button:disabled { opacity: .6; cursor: default; }
.buyin { display: flex; align-items: center; background: #141518; border: 1px solid var(--line2); border-radius: 10px; } .buyin:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 209, 107, .2); }
.buyin input { border: 0; background: transparent; box-shadow: none !important; font-family: var(--mono); font-weight: 700; } .buyin span { padding: 0 14px; font-weight: 700; color: var(--dim); font-size: 13px; }

/* the coin card in the arena: banner, initial buy, links */
.coin > .cban { position: absolute; left: 0; right: 0; top: 0; height: 120px; margin: 0; overflow: hidden; background: transparent; pointer-events: none; z-index: 0; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.cban img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .55; } .cban .ph { display: none; }
.coin > :not(.cban):not(.pops) { z-index: 1; }
.ibrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; margin-top: 8px; }
.ib { font-size: 12.5px; font-weight: 600; color: var(--dim); } .ib b { color: var(--muted); font-size: 12.5px; }
.lks { display: flex; gap: 6px; min-height: 32px; }
.lk { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line2); display: grid; place-items: center; color: var(--muted); text-decoration: none; transition: background .15s, color .15s; } .lk:hover { background: rgba(255, 255, 255, .08); color: #fff; } .lk img { width: 15px; height: 15px; }
@media (max-width: 980px) { .coin > .cban { height: 90px; } }
