.ar-sub { margin: 0; padding: 0 16px 14px; color: var(--mute); font-size: 13px; line-height: 1.5; }
.ar-grid { grid-template-columns: repeat(2, 1fr); }
.ar-ol { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.ar-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #151e3e; border-radius: 12px; } .ar-row .grow { flex: 1; min-width: 0; } .ar-row b { display: block; font-size: 14px; } .ar-row small { color: var(--mute); font-size: 12px; }
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; background: #4a5cf0 center / cover; display: grid; place-items: center; font-weight: 800; color: #fff; position: relative; } .av.sm { width: 36px; height: 36px; } .av.lg { width: 64px; height: 64px; font-size: 26px; border: 3px solid rgba(255,255,255,.15); } .av.on::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #2fe08f; border: 2px solid #151e3e; }
.arena-box { margin: 8px 16px 0; border-radius: 14px; overflow: hidden; background: #151e3e; display: grid; grid-template-columns: 1fr; }
.arena-art { position: relative; min-height: 290px; overflow: hidden; background: linear-gradient(160deg, var(--c1), var(--c2)); display: grid; place-items: center; }
.art-bg { position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 40%, rgba(255,255,255,.18), transparent 70%), repeating-conic-gradient(rgba(255,255,255,.05) 0 10deg, transparent 10deg 20deg); }
.art-fig { position: relative; width: 62%; max-width: 240px; aspect-ratio: 3 / 4; animation: float 3.4s ease-in-out infinite; } .art-fig svg { width: 100%; height: 100%; filter: drop-shadow(0 16px 18px rgba(0,0,0,.4)); }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.arena-panel { padding: 18px 16px 18px; background: #131b37; } .arena-panel h3 { margin: 0 0 14px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.ar-p { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #1b254b; } .ar-p b { display: block; font-size: 15px; } .ar-p small { color: var(--mute); font-size: 12px; } .ar-p .stake { margin-left: auto; font-weight: 800; color: #fff; }
.ar-p.wait { color: #5d679f; } .ar-p .spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #1f2a51; border-top-color: #5b6cff; animation: rot 1s linear infinite; flex: none; } @keyframes rot { to { transform: rotate(360deg); } }
.ar-priv { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; color: #aab3e6; margin: 14px 0 10px; cursor: pointer; }
.ar-priv .sw { width: 44px; height: 26px; border-radius: 13px; background: #101936; position: relative; flex: none; } .ar-priv .sw b { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #8f98cf; transition: .2s; } .ar-priv .sw.on { background: #3d5afe; } .ar-priv .sw.on b { left: 21px; background: #fff; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #5d679f; font-size: 11px; font-weight: 700; } .or::before, .or::after { content: ''; flex: 1; height: 1px; background: #1b254b; }
.ar-codebox { margin-top: 10px; text-align: center; font-weight: 800; font-size: 28px; letter-spacing: .3em; padding: 12px; background: #0f152d; border-radius: 10px; }
.ar-note { color: var(--mute); font-size: 13px; margin: 8px 0 14px; }
.arena-bar { margin: 8px 16px 0; padding: 12px; border-radius: 12px; background: #131c3d; display: flex; align-items: center; justify-content: center; gap: 10px; color: #7f89bd; font-weight: 800; } .arena-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #2fe08f; box-shadow: 0 0 8px #2fe08f; }
.ar-codein { display: flex; gap: 8px; margin-bottom: 14px; } .ar-codein input { flex: 1; height: 44px; border-radius: 10px; background: #101936; border: 0; outline: 0; padding: 0 14px; color: #fff; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; user-select: text; -webkit-user-select: text; } .ar-ol-m { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; }

/* duel stage */
.duel { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center; padding: 20px 8px; gap: 4px; }
.duel-p { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; transition: .4s; } .duel-p b { font-size: 13px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .duel-p small { color: rgba(255,255,255,.6); font-size: 11px; }
.duel-p.win { transform: scale(1.1); } .duel-p.win .av { box-shadow: 0 0 0 4px #ffc83d, 0 0 30px rgba(255,200,61,.6); } .duel-p.lose { opacity: .45; filter: grayscale(.6); }
.duel-mid { display: grid; place-items: center; min-height: 190px; }
.vs { font-weight: 900; font-size: 22px; color: rgba(255,255,255,.75); letter-spacing: .05em; text-shadow: 0 4px 14px rgba(0,0,0,.4); }
.duel-res { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; text-align: center; font-weight: 800; font-size: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.6); } .duel-res.win { color: #5ff0a8; } .duel-res.lose { color: #ff8a90; } .duel-res b { font-weight: 900; }
.dice-duel { display: flex; align-items: center; gap: 6px; } .dd { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: 78px; position: relative; padding-bottom: 20px; } .dd .die { width: 34px; height: 34px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.4)); } .dd em { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-style: normal; font-weight: 900; font-size: 15px; color: #fff; } .dd.roll .die { animation: dshake .18s infinite; } @keyframes dshake { 50% { transform: rotate(14deg) translateY(-3px); } }
.war-duel { display: flex; align-items: center; gap: 6px; } .pcard.big { width: 64px; height: 92px; } .war-duel .pc-corner { font-size: 20px; } .war-duel .pc-mid svg { width: 36px; height: 36px; }
.coin-duel { perspective: 700px; } .coin-duel .coin { width: 110px; height: 110px; position: relative; transform-style: preserve-3d; } .coin-duel .cface { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; background: radial-gradient(circle at 35% 30%, #ffe08a, #e8a020 60%, #8a4a08); border: 4px solid #ffd36b; display: grid; place-items: center; } .coin-duel .cface span { font-size: 34px; font-weight: 900; color: #5a2d00; } .coin-duel .cface.back { transform: rotateX(180deg); }
.rps-duel { display: flex; align-items: center; gap: 4px; } .rh { font-size: 54px; line-height: 1; } .rh.shake { animation: shake .5s infinite; }
@media (min-width: 640px) { .arena-box { grid-template-columns: 1.6fr 1fr; } .arena-art { min-height: 400px; } }
.duel { grid-template-columns: 72px 1fr 72px; padding: 20px 10px; } .av.lg { width: 54px; height: 54px; font-size: 22px; } .duel-p b { max-width: 70px; }
.dd { width: 70px; } .dd .die { width: 30px; height: 30px; }

/* match games */
.arena-art.match { display: block; min-height: 0; padding: 0; }
.mwrap { position: relative; z-index: 2; padding: 10px 8px 14px; }
.mbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 4px 10px; }
.mp { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 22px; background: rgba(8,10,40,.35); font-size: 13px; font-weight: 700; transition: .25s; max-width: 42%; } .mp b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mp.r { flex-direction: row; padding: 5px 5px 5px 10px; } .mp.turn { background: #3d5afe; box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.mt { font-weight: 800; font-size: 18px; letter-spacing: .04em; color: #fff; font-variant-numeric: tabular-nums; }
.mstage { display: grid; place-items: center; min-height: 200px; }
.mres { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 6; text-align: center; padding: 12px; border-radius: 12px; background: rgba(8,10,40,.82); font-weight: 800; font-size: 18px; } .mres[hidden] { display: none; } .mres.win { color: #5ff0a8; } .mres.lose { color: #ff8a90; }

/* connect */
.c4-turn { text-align: center; font-weight: 800; margin-bottom: 8px; color: rgba(255,255,255,.75); } .c4-turn.on { color: #fff; }
.c4-board { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 8px; background: #2547d8; border-radius: 14px; box-shadow: 0 6px 0 #40475d; width: min(100%, 360px); }
.c4-col { display: flex; flex-direction: column; gap: 4px; } .c4-board.mine .c4-col { cursor: pointer; }
.c4-cell { aspect-ratio: 1; border-radius: 50%; background: #142357; display: block; box-shadow: inset 0 3px 5px rgba(0,0,0,.45); } .c4-cell.me { background: #ffd23c; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); } .c4-cell.opp { background: #ff4d5e; box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); } .c4-cell.drop { animation: c4drop .5s cubic-bezier(.45,.05,.55,1.2); } @keyframes c4drop { from { transform: translateY(calc(var(--fall) * -1)); } } .c4-cell.win { animation: c4w .7s infinite alternate; } @keyframes c4w { to { filter: brightness(1.5); transform: scale(1.1); } }
/* word guess */
.wg-g { width: min(100%, 340px); } .wg-grid { display: grid; gap: 5px; margin: 8px 0 12px; } .wg-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; } .wg-row b { aspect-ratio: 1; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.25); border-radius: 6px; font-size: 24px; font-weight: 800; color: #fff; } .wg-row b.f { border-color: rgba(255,255,255,.7); }
.c-g { background: #1fae6a !important; border-color: #1fae6a !important; } .c-y { background: #d9a21c !important; border-color: #d9a21c !important; } .c-x { background: #484c59 !important; border-color: #484c59 !important; }
.wg-opp { display: flex; align-items: center; gap: 6px; min-height: 22px; font-size: 11px; color: rgba(255,255,255,.7); } .wg-opp span { display: flex; gap: 2px; } .wg-opp i { width: 9px; height: 9px; border-radius: 2px; display: block; } .wg-opp em { font-style: normal; margin-left: auto; color: #fff; font-weight: 800; }
.wg-keys { display: flex; flex-direction: column; gap: 6px; align-items: center; } .wg-keys div { display: flex; gap: 4px; } .wg-keys button { min-width: 28px; height: 42px; padding: 0 4px; border-radius: 6px; background: #3a4290; color: #fff; font-weight: 800; text-transform: uppercase; font-size: 13px; flex: 1; } .wg-keys button.w { flex: 1.6; font-size: 11px; }
/* type racer */
.tr { width: 100%; padding: 6px 6px 0; } .tr-bars > div { margin-bottom: 8px; } .tr-bars small { font-size: 11px; color: rgba(255,255,255,.7); font-weight: 700; } .tr-bars div > div, .tr-bars i { display: block; height: 8px; border-radius: 4px; background: #3fe08f; width: 0; transition: width .2s; } .tr-bars i.o { background: #ff9d3c; }
.tr-count { text-align: center; font-size: 54px; font-weight: 900; margin: 6px 0; }
.tr-text { font-size: 17px; line-height: 1.55; font-weight: 600; background: rgba(8,10,40,.4); padding: 12px; border-radius: 10px; color: rgba(255,255,255,.55); } .tr-text .ok { color: #fff; } .tr-text .bad { background: #e0393e; color: #fff; border-radius: 2px; } .tr-text .cur { border-left: 2px solid #5fb8ff; margin-left: -1px; }
.tr-in { width: 100%; margin-top: 10px; height: 46px; border-radius: 10px; border: 0; outline: 0; background: #0f152d; color: #fff; font-size: 16px; padding: 0 14px; user-select: text; -webkit-user-select: text; }
/* color find */
.cf { width: min(100%, 340px); } .cf-score { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: 10px; } .cf-score b { font-size: 26px; } .cf-score span { font-size: 12px; color: rgba(255,255,255,.7); }
.cf-grid { display: grid; gap: 6px; } .cf-t { aspect-ratio: 1; border-radius: 10px; border: 0; } .cf-t.found { outline: 4px solid #fff; z-index: 1; } .cf-msg { text-align: center; margin-top: 12px; font-weight: 700; font-size: 13px; min-height: 18px; }
/* sudoku */
.sd { width: min(100%, 340px); } .sd-opp { margin-bottom: 8px; } .sd-opp small { font-size: 11px; color: rgba(255,255,255,.7); font-weight: 700; } .sd-opp i { display: block; height: 6px; border-radius: 3px; background: #ff9d3c; width: 0; transition: width .3s; margin-top: 4px; }
.sd-grid { display: grid; grid-template-columns: repeat(9, 1fr); background: #f3f7e8; border: 3px solid #111832; border-radius: 6px; overflow: hidden; } .sd-grid b { aspect-ratio: 1; display: grid; place-items: center; font-size: 17px; font-weight: 700; color: #2547d8; border: .5px solid #c9d0b8; } .sd-grid b.giv { color: #111832; font-weight: 900; background: #e7ecd8; } .sd-grid b.rb { border-right: 2px solid #111832; } .sd-grid b.bb { border-bottom: 2px solid #111832; } .sd-grid b.sel { background: #ffe27a; } .sd-grid b.same { background: #d7e6ff; }
.sd-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; } .sd-pad button { height: 42px; border-radius: 8px; background: #3a4290; color: #fff; font-weight: 800; font-size: 17px; }
/* poker */
.pkr { width: 100%; text-align: center; } .pk-row, .pk-board { display: flex; justify-content: center; gap: 8px; margin: 10px 0; } .pcard.pk { width: 54px; height: 78px; }
.pk-info { min-height: 36px; font-size: 13px; color: rgba(255,255,255,.8); padding: 6px 12px; } .pk-info b { color: #fff; } .pk-act { gap: 10px; justify-content: center; margin-top: 6px; } .pk-act .btn { min-width: 120px; }
/* flappy + blocks */
.fl, .bk { position: relative; display: grid; justify-items: center; } .fl canvas { width: min(100%, 320px); height: auto; border-radius: 12px; touch-action: none; } .fl-hud { position: absolute; top: 10px; left: 0; right: 0; z-index: 3; text-align: center; pointer-events: none; } .fl-hud b { font-size: 40px; font-weight: 900; color: #fff; text-shadow: 0 3px 0 #111832; } .fl-hud span { display: block; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 2px 0 #111832; }
.bk canvas { width: min(70%, 240px); height: auto; border-radius: 10px; border: 3px solid #1b2959; } .bk-hud { display: flex; justify-content: space-between; width: min(70%, 240px); font-weight: 800; margin-bottom: 6px; font-size: 14px; } .bk-pad { display: flex; gap: 6px; margin-top: 10px; width: 100%; } .bk-pad button { flex: 1; height: 48px; border-radius: 10px; background: #3a4290; color: #fff; font-size: 18px; font-weight: 800; touch-action: manipulation; } .bk-pad .w { flex: 1.6; font-size: 12px; background: #3d5afe; }
/* 8 ball */
.eb { width: 100%; } .eb-info { display: flex; justify-content: space-between; font-size: 13px; padding: 0 4px 8px; color: rgba(255,255,255,.75); } .eb-info b { color: #fff; } .eb canvas { width: 100%; height: auto; display: block; border-radius: 12px; }
.eb-tray { display: flex; gap: 12px; margin-top: 8px; font-size: 11px; color: rgba(255,255,255,.65); } .eb-tray div { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 24px; } .eb-tray small { width: 100%; } .eb-tray i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 10px; color: #fff; } .eb-hint { text-align: center; font-size: 11px; color: rgba(255,255,255,.55); margin-top: 8px; }
.mstage { display: flex; justify-content: center; } .mstage > * { width: 100%; max-width: 380px; } .c4 { width: 100%; } .c4-board { width: 100%; }
.fl, .bk { width: 100%; }
