/* The classic PENNYX live room (PENNYX/web/styles.css), copied 1:1 and scoped to the simulation section (.cx). */
.cx {
  --s1: #0e1017; --s2: #151822; --s3: #1c2030; --line: #252a3a; --line2: #33394d;
  --text: #f4f1ea; --muted: #8b90a4; --dim: #5d6277;
  --cu: #ff7a2c; --cu2: #ffb36b; --cu3: #c2410c; --mint: #2bff9e; --red: #ff3d5a; --gold: #ffd166; --blue: #6c8cff;
  --r2: 26px; line-height: 1.5;
}
.cx .mint { color: var(--mint); }
.cx .sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.cx .sec-head h2 { font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.035em; line-height: 1; }
.cx .sec-head p { color: var(--muted); max-width: 520px; margin-top: 10px; }
.cx .sec-head p b { color: var(--text); }
.cx .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--cu); text-transform: uppercase; margin-bottom: 12px; display: block; }
.cx .card { background: linear-gradient(180deg, var(--s1), #0b0d13); border: 1px solid var(--line); border-radius: var(--r2); }
.cx .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 800; font-size: 15px; transition: transform .12s, box-shadow .2s, background .2s, opacity .2s; white-space: nowrap; box-shadow: none; }
.cx .btn:active { transform: translateY(1px) scale(0.98); }
.cx .btn-cu { background: linear-gradient(180deg, var(--cu2), var(--cu) 55%, var(--cu3)); color: #140803; box-shadow: 0 8px 30px -8px rgba(255,122,44,0.7), inset 0 1px 0 rgba(255,255,255,0.45); }
.cx .btn-cu:hover { box-shadow: 0 10px 40px -6px rgba(255,122,44,0.85), inset 0 1px 0 rgba(255,255,255,0.45); }
.cx .btn-ghost { background: var(--s2); border: 1px solid var(--line2); color: var(--text); }
.cx .btn-ghost:hover { background: var(--s3); }

/* auction room */
.cx .room { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.cx .room-main { padding: 26px; position: relative; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.cx .room-main.hot { border-color: rgba(255,61,90,0.5); box-shadow: 0 0 0 1px rgba(255,61,90,0.25), 0 0 80px -20px rgba(255,61,90,0.45); }
.cx .room-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cx .badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.cx .badge.live { background: rgba(255,61,90,0.12); color: var(--red); border: 1px solid rgba(255,61,90,0.35); }
.cx .badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: cxblink 1s infinite; }
.cx .badge.esc { background: rgba(43,255,158,0.08); color: var(--mint); border: 1px solid rgba(43,255,158,0.3); }
.cx .badge.soon { background: rgba(108,140,255,0.1); color: var(--blue); border: 1px solid rgba(108,140,255,0.35); }
.cx .badge.sim { background: rgba(255,209,102,0.08); color: var(--gold); border: 1px solid rgba(255,209,102,0.35); }
.cx .badge.sold { background: rgba(255,209,102,0.12); color: var(--gold); border: 1px solid rgba(255,209,102,0.4); }
@keyframes cxblink { 50% { opacity: 0.25; } }
.cx .prize { display: flex; gap: 22px; align-items: center; margin-top: 22px; }
.cx .stock { width: 96px; height: 96px; border-radius: 26px; display: grid; place-items: center; position: relative; flex: none; background: #0d0f14; overflow: visible; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 20px 40px -18px var(--cu); }
.cx .stock img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cx .stock::after { content: "x"; position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 10px; background: #07080c; border: 2px solid var(--line2); display: grid; place-items: center; font-family: var(--mono); font-size: 15px; color: var(--cu); }
.cx .stock.sm { width: 52px; height: 52px; border-radius: 15px; }
.cx .stock.sm::after { width: 20px; height: 20px; border-radius: 7px; font-size: 11px; right: -5px; bottom: -5px; }
.cx .stock.swap { animation: cxpop .55s cubic-bezier(.2,1.4,.4,1); }
@keyframes cxpop { 0% { transform: scale(.6) rotate(-10deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cx .prize h3 { font-family: var(--display); font-size: 34px; letter-spacing: -0.03em; line-height: 1.05; }
.cx .prize .val { font-family: var(--mono); color: var(--mint); font-size: 18px; margin-top: 4px; }
.cx .prize .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.cx .clock-row { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: center; margin-top: 26px; }
.cx .clock { position: relative; width: 250px; height: 250px; }
.cx .clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cx .clock .trk { stroke: var(--s3); }
.cx .clock .arc { stroke: var(--mint); transition: stroke .3s; }
.cx .clock::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,44,0.12), transparent 70%); }
.cx .clock-in { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.cx .clock-num { font-family: var(--mono); font-weight: 800; font-size: 76px; letter-spacing: -0.04em; line-height: 1; }
.cx .clock-num small { font-size: 30px; color: var(--muted); }
.cx .clock-lbl { font-size: 12px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.cx .clock.warn .clock-num { color: var(--cu); }
.cx .clock.hot .clock-num { color: var(--red); animation: cxpulse .5s ease-in-out infinite alternate; }
@keyframes cxpulse { to { transform: scale(1.06); } }
.cx .clock .reset { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); font-family: var(--mono); font-weight: 800; color: var(--mint); font-size: 20px; opacity: 0; pointer-events: none; }
.cx .clock .reset.go { animation: cxresetpop .9s ease-out; }
@keyframes cxresetpop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -30px) scale(1); } }
.cx .flashring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--mint); opacity: 0; pointer-events: none; }
.cx .flashring.go { animation: cxring .6s ease-out; }
@keyframes cxring { 0% { opacity: 1; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1.3); } }

.cx .leader { background: var(--s2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; gap: 14px; align-items: center; position: relative; min-height: 90px; }
.cx .leader.me-lead { border-color: rgba(43,255,158,0.5); background: rgba(43,255,158,0.06); }
.cx .leader img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--cu); }
.cx .leader .crown { position: absolute; left: 30px; top: -10px; font-size: 22px; transform: rotate(-12deg); }
.cx .leader b { display: block; font-size: 18px; }
.cx .leader span { color: var(--muted); font-size: 13px; }
.cx .leader.swap { animation: cxswap .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes cxswap { 0% { transform: translateY(14px) scale(0.96); opacity: 0.2; } 100% { transform: none; opacity: 1; } }
.cx .meta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.cx .meta { background: var(--s2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.cx .meta span { color: var(--muted); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; display: block; }
.cx .meta b { font-family: var(--mono); font-size: 18px; }
.cx .cap-bar { height: 6px; background: var(--s3); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.cx .cap-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cu), var(--gold)); transition: width .4s; }

.cx .bid-zone { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.cx .bid-btn { position: relative; height: 76px; border-radius: 20px; font-size: 24px; font-family: var(--display); letter-spacing: -0.02em; overflow: hidden; width: 100%; }
.cx .bid-btn .price { font-family: var(--mono); font-size: 15px; background: rgba(0,0,0,0.18); padding: 4px 10px; border-radius: 8px; }
.cx .bid-btn .rip { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.55); transform: scale(0); animation: cxrip .6s ease-out forwards; pointer-events: none; }
@keyframes cxrip { to { transform: scale(18); opacity: 0; } }
.cx .bid-btn.out { background: var(--s2); color: var(--text); border: 1px solid var(--line2); box-shadow: none; font-size: 20px; }
.cx .fine { color: var(--dim); font-size: 12.5px; margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.cx .fine span::before { content: "◆ "; color: var(--cu); }

.cx .room-side { display: flex; flex-direction: column; gap: 20px; }
.cx .feed { padding: 20px; flex: 1; display: flex; flex-direction: column; min-height: 420px; }
.cx .feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cx .feed-head h4 { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.cx .feed-list { list-style: none; overflow: hidden; flex: 1; position: relative; max-height: 470px; }
.cx .feed-list li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--line); animation: cxslidein .4s cubic-bezier(.2,1.3,.4,1); }
.cx .feed-list li img { width: 36px; height: 36px; border-radius: 50%; }
.cx .feed-list li b { font-size: 14.5px; }
.cx .feed-list li .t { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.cx .feed-list li .t em { display: block; font-style: normal; color: var(--mint); }
.cx .feed-list li.mine { background: rgba(43,255,158,0.07); border-radius: 12px; border-bottom-color: transparent; }
.cx .feed-list .none { justify-content: center; color: var(--muted); border-bottom: 0; animation: none; }
@keyframes cxslidein { from { transform: translateX(-20px); opacity: 0; background: rgba(255,122,44,0.2); } }
.cx .you { padding: 18px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cx .you div span { color: var(--muted); font-size: 12px; display: block; }
.cx .you div b { font-family: var(--mono); font-size: 20px; }

/* more rooms */
.cx .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.cx .acard { padding: 18px; cursor: pointer; transition: transform .2s, border-color .2s; position: relative; overflow: hidden; }
.cx .acard:hover { transform: translateY(-4px); border-color: var(--line2); }
.cx .acard.sel { border-color: var(--cu); box-shadow: 0 0 0 1px var(--cu) inset; }
.cx .acard.bump { animation: cxbump .4s; }
@keyframes cxbump { 40% { border-color: var(--mint); } }
.cx .acard-top { display: flex; justify-content: space-between; align-items: center; }
.cx .acard-prize { display: flex; gap: 14px; align-items: center; margin: 16px 0 14px; }
.cx .acard-prize h5 { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.cx .acard-prize .v { font-family: var(--mono); color: var(--mint); font-size: 14px; }
.cx .acard-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cx .acard-foot .lb { color: var(--text); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.cx .acard-foot .lb img { width: 24px; height: 24px; border-radius: 50%; }
.cx .acard-foot .tm { font-family: var(--mono); font-weight: 800; font-size: 22px; color: var(--text); }
.cx .acard-foot .tm.hot { color: var(--red); }
.cx .acard-foot .tm.sold { color: var(--gold); font-size: 18px; }
.cx .mini-bar { height: 4px; background: var(--s3); border-radius: 2px; overflow: hidden; margin-top: 12px; }
.cx .mini-bar i { display: block; height: 100%; background: var(--mint); transition: width .25s linear; }

/* win screen (the classic full-screen "SOLD" overlay, inside the room card) */
.cx .cx-win { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(circle at 50% 45%, rgba(120,48,12,0.94), rgba(3,4,7,0.97) 66%); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cx .cx-win.on { opacity: 1; pointer-events: auto; }
.cx .win-card { max-width: 460px; }
.cx .cx-win.on .win-card { animation: cxup .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes cxup { from { transform: translateY(30px) scale(0.96); opacity: 0; } }
.cx .win-card .big { font-family: var(--display); font-size: clamp(56px, 8vw, 96px); letter-spacing: -0.05em; line-height: 0.9; }
.cx .win-card .big.me { background: linear-gradient(90deg, var(--gold), var(--cu2), var(--cu)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx .win-card .stock { margin: 22px auto 22px; width: 110px; height: 110px; }
.cx .win-card h3 { font-family: var(--display); font-size: 30px; letter-spacing: -0.03em; }
.cx .win-card p { color: #c6c9d6; font-size: 16px; margin-top: 8px; }
.cx .win-card p img { width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.cx .win-card .btn { margin-top: 18px; height: 52px; padding: 0 26px; }
.cx .win-bar { width: 180px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); margin: 18px auto 0; overflow: hidden; }
.cx .win-bar i { display: block; height: 100%; background: var(--cu); width: 100%; transform-origin: left; }
.cx .cx-win.on .win-bar i { animation: cxdrain var(--d, 6s) linear forwards; }
@keyframes cxdrain { to { transform: scaleX(0); } }

@media (max-width: 1160px) { .cx .room { grid-template-columns: 1fr; } .cx .feed { min-height: 0; } .cx .feed-list { max-height: 340px; } }
@media (max-width: 1020px) {
  .cx .sec-head { flex-direction: column; align-items: flex-start; }
  .cx .clock-row { grid-template-columns: 1fr; justify-items: center; }
  .cx .clock-row > div:last-child { width: 100%; }
  .cx .clock { width: 220px; height: 220px; }
  .cx .prize h3 { font-size: 26px; }
  .cx .stock { width: 76px; height: 76px; }
}
@media (max-width: 640px) {
  .cx .room-main { padding: 18px; }
  .cx .bid-btn { height: 66px; font-size: 21px; }
  .cx .meta { padding: 8px 9px; }
  .cx .meta b { font-size: 15px; }
  .cx .meta span { font-size: 10px; }
  .cx .you div b { font-size: 17px; }
}
.cx .shake { animation: cxshake .25s; }
@keyframes cxshake { 25% { transform: translate(3px, -2px); } 50% { transform: translate(-3px, 2px); } 75% { transform: translate(2px, 1px); } }
