:root{--ink:#172b2b;--navy:#102f31;--navy2:#1c4846;--cream:#fff7dd;--gold:#f4bd45;--orange:#e96f31;--muted:#73807b;--line:#dbc89b;--danger:#b74737;--success:#2d8067}*{box-sizing:border-box}html{background:#ead9b5}body{margin:0;color:var(--ink);font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;background:linear-gradient(180deg,#123335 0 250px,#ead8b2 250px 100%);min-height:100vh}button,input,select{font:inherit}button,a{transition:.18s ease}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffcf65;outline-offset:2px}.site-header{height:72px;padding:0 max(24px,4vw);display:flex;align-items:center;color:white;border-bottom:1px solid #ffffff1f;gap:34px}.brand{display:grid;grid-template-columns:40px auto;grid-template-rows:1fr 1fr;align-items:center;margin-right:auto}.brand>span{grid-row:1/3;width:40px;height:40px;display:grid;place-items:center;background:var(--gold);border-radius:13px;box-shadow:0 4px 0 #9f5c23;margin-right:10px}.brand strong{font-size:17px;letter-spacing:.08em}.brand small{color:#9ac2b8;font-size:8px;letter-spacing:.18em}.site-header nav{display:flex;gap:6px}.site-header nav a{padding:9px 14px;border-radius:10px;color:#a8c4bf;font-size:13px;font-weight:700}.site-header nav a:hover,.site-header nav a.active{background:#ffffff14;color:#ffdc86}.account-menu{display:flex;align-items:center;gap:10px}.account-menu>div{display:flex;flex-direction:column;text-align:right}.account-menu small{font-size:9px;color:#8eb2ac}.account-menu strong{font-size:12px}.account-menu a{font-size:15px}.account-menu button{border:1px solid #ffffff24;color:white;background:#ffffff10;padding:7px 10px;border-radius:9px;cursor:pointer}.flash-stack{position:fixed;right:20px;top:82px;z-index:20;display:grid;gap:8px}.flash{padding:11px 15px;border-radius:11px;background:white;box-shadow:0 8px 24px #0003;font-size:12px;font-weight:700;border-left:4px solid var(--gold)}.flash.error{border-color:var(--danger)}.flash.success{border-color:var(--success)}.section-kicker{color:#e9aa38;font-size:10px;font-weight:900;letter-spacing:.15em}.page-title-row{max-width:1180px;margin:32px auto 18px;color:white;display:flex;justify-content:space-between;align-items:end}.page-title-row h1{font-family:Georgia,"STSong",serif;font-size:38px;margin:4px 0 5px}.page-title-row p{color:#abc6bf;margin:0;font-size:13px}.summary-chip{min-width:100px;background:#ffffff14;border:1px solid #ffffff1f;padding:10px 15px;border-radius:14px;display:flex;flex-direction:column;text-align:center}.summary-chip strong{color:#ffd26b;font-size:23px}.summary-chip small{color:#9fc0ba;font-size:9px}.content-card{background:#fffaf0;border:1px solid #d7bf88;border-radius:20px;box-shadow:0 14px 30px #4136192e;padding:22px}.card-heading{display:flex;gap:11px;align-items:center;margin-bottom:18px}.card-heading>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--gold);font-weight:900}.card-heading h2{margin:0;font-size:17px}.card-heading p{margin:2px 0 0;color:var(--muted);font-size:10px}.stack-form{display:grid;gap:14px}.stack-form label{display:grid;gap:6px;font-size:11px;font-weight:800;color:#465851}.stack-form input{width:100%;border:1px solid #cfbf98;background:white;padding:12px;border-radius:10px;color:var(--ink)}.primary-button{border:0;border-radius:12px;padding:12px 18px;color:white;background:linear-gradient(135deg,#ef8a38,#d9572f);box-shadow:0 4px 0 #923921;cursor:pointer;font-weight:900}.primary-button:hover{transform:translateY(-2px);box-shadow:0 6px 0 #923921}.ghost-button{border:1px solid #c7b78f;background:white;border-radius:8px;padding:6px 9px;cursor:pointer;font-size:10px}.notice,.info-box{padding:12px;border-radius:11px;background:#fff1c7;border:1px solid #e7c66c;font-size:11px;margin:13px 0}.info-box{margin-top:18px;background:#eef5e8;border-color:#bfd0ab}.info-box p{margin:4px 0 0;color:#66715f;line-height:1.5}.narrow-page{max-width:480px;margin:45px auto}.narrow-page h1{margin:6px 0 20px}.empty-state{display:grid;place-items:center;min-height:220px;color:#7b806e;text-align:center}.empty-state span{font-size:40px}.empty-state h3{margin:8px 0 2px}.empty-state p{font-size:11px;margin:0}

.auth-page{background:radial-gradient(circle at 20% 30%,#315c53 0,transparent 35%),linear-gradient(135deg,#0f2c30,#173f3c 60%,#0c2427);display:grid;place-items:center}.auth-shell{width:min(1040px,92vw);display:grid;grid-template-columns:1.25fr .8fr;min-height:570px;border:1px solid #ffffff17;border-radius:30px;overflow:hidden;box-shadow:0 30px 80px #0007;background:#ffffff08}.auth-story{padding:65px;color:white;position:relative;display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 60% 30%,#f5bd4524,transparent 26%),linear-gradient(145deg,#173f3db0,#0d2d2fcc)}.auth-story:after{content:"";position:absolute;inset:auto 0 0;height:180px;background:repeating-linear-gradient(110deg,transparent 0 35px,#d49f3920 37px,transparent 39px)}.auth-kicker{color:#f5c968;font-size:10px;font-weight:900;letter-spacing:.26em}.auth-emblem{width:72px;height:72px;margin:25px 0 16px;display:grid;place-items:center;border-radius:24px;background:var(--gold);box-shadow:0 7px 0 #925222;font-size:34px}.auth-story h1{font-family:Georgia,"STSong",serif;font-size:44px;margin:0}.auth-story>p{color:#b3cec6;line-height:1.8;max-width:480px}.auth-feature-row{display:flex;gap:18px;margin-top:24px;position:relative;z-index:1}.auth-feature-row span{font-size:10px;color:#f8dda4}.auth-card{background:#fff8e8;padding:50px 38px;display:flex;justify-content:center;flex-direction:column}.auth-card-head{display:flex;align-items:center;gap:13px;margin-bottom:27px}.auth-card-head>span{font-size:38px}.auth-card-head small{font-size:8px;color:#be7828;letter-spacing:.18em}.auth-card-head h2{margin:2px 0 0;font-size:24px}.auth-card .primary-button{display:flex;justify-content:space-between;align-items:center;margin-top:6px}.auth-card .primary-button small{font-size:8px;color:#ffd9ab}.form-note{text-align:center;color:#8c8a7d;font-size:9px;margin:17px 0 0}

.admin-page,.leaderboard-page{padding:0 24px 50px}.admin-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:330px 1fr;gap:18px}.create-user-card{align-self:start}.user-list-card{min-width:0}.user-list{display:grid;gap:7px}.user-row{display:grid;grid-template-columns:42px minmax(130px,1fr) 80px 65px 150px;align-items:center;gap:9px;padding:10px;border:1px solid #e2d5b7;background:#f5eedc;border-radius:12px}.user-row.disabled{opacity:.55}.avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#1d4b46;color:#ffd170;font-weight:900}.user-identity{display:flex;flex-direction:column;min-width:0}.user-identity strong{font-size:12px}.user-identity span,.user-identity small{font-size:9px;color:#7a847a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-stat{text-align:right;display:flex;flex-direction:column}.user-stat strong{font-size:12px}.user-stat small{font-size:8px;color:#8c897d}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.row-actions details{position:relative}.row-actions summary{list-style:none;cursor:pointer;font-size:9px;color:#9c572f}.row-actions details form{position:absolute;right:0;top:25px;z-index:3;width:205px;background:white;border:1px solid #d7c8a4;border-radius:10px;padding:9px;box-shadow:0 8px 25px #0003;display:grid;grid-template-columns:1fr auto;gap:5px}.row-actions details input{min-width:0;border:1px solid #d8caac;border-radius:6px;padding:6px;font-size:9px}.row-actions details button{border:0;border-radius:6px;background:var(--navy2);color:white;font-size:9px}.ranking-card{max-width:1180px;margin:auto;padding:12px}.ranking-head,.ranking-row{display:grid;grid-template-columns:60px minmax(150px,1fr) repeat(6,95px);align-items:center;gap:8px;padding:10px 14px}.ranking-head{color:#8c8d80;font-size:9px;font-weight:800}.ranking-row{border-top:1px solid #eadfca;min-height:62px;font-size:11px}.ranking-row.me{background:#fff1c4;border-radius:12px;border-top-color:transparent}.rank-badge{font-size:14px;font-weight:900}.rank-1,.rank-2,.rank-3{font-size:24px}.ranking-player{display:flex;align-items:center;gap:10px}.ranking-player>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#1b4845;color:#ffd36e;font-weight:900}.ranking-player strong{font-size:12px}.ranking-player small{margin-left:5px;padding:2px 5px;border-radius:5px;background:#e38534;color:white;font-size:8px}.ranking-row>b{color:#bd6a25;font-size:13px}

.game-page{padding:0 24px 45px}.game-hero{max-width:1230px;margin:22px auto 17px;display:flex;justify-content:space-between;align-items:end;color:white}.game-hero h1{font-family:Georgia,"STSong",serif;font-size:40px;margin:4px 0}.game-hero h1 em{color:#ffd16d;font-style:normal}.game-hero p{color:#a8c5be;font-size:12px;margin:0}.wallet-card{display:flex;gap:15px;align-items:center;background:#ffffff12;border:1px solid #ffffff1c;padding:10px 15px;border-radius:15px}.wallet-card>span{font-size:27px}.wallet-card>div{display:flex;flex-direction:column;min-width:90px}.wallet-card small{font-size:8px;color:#9bbab4}.wallet-card strong{color:#ffdd8c;font-size:14px}.game-layout{max-width:1230px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:17px}.slot-machine{border:7px solid #315653;border-radius:30px;padding:57px 22px 18px;background:linear-gradient(145deg,#efbd4d,#f8dfa0 50%,#d49532);box-shadow:0 15px 0 #183a38,0 22px 30px #2f281a55,inset 0 0 0 4px #fff1bb;position:relative}.machine-crown{position:absolute;top:6px;left:28px;right:20px;height:47px;display:flex;align-items:center;justify-content:space-between;color:#986223}.rivets{font-size:20px;letter-spacing:10px;overflow:hidden;white-space:nowrap}.compass{width:112px;height:58px;border:4px solid #f2c95e;border-radius:50%;background:#153c3a;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 4px 0 #945726}.compass small{color:#9bc3b9;font-size:8px}.compass strong{color:#ffcf59;font-size:21px}.reel-window{padding:13px;background:#153b39;border:4px solid #965826;border-radius:20px;box-shadow:inset 0 0 0 4px #f7ce62;position:relative}.reels{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:7px;background:linear-gradient(#fff9e7,#ead6a1);border-radius:13px;min-height:345px}.reel{display:grid;grid-template-rows:repeat(3,1fr);gap:4px;background:#604b2112;border-radius:9px;padding:4px;box-shadow:inset -4px 0 12px #68501b1b}.symbol{min-height:96px;display:flex;align-items:center;justify-content:center;position:relative;border-radius:9px;font-size:58px;filter:none}.symbol small{position:absolute;bottom:2px;left:50%;transform:translateX(-50%);font-size:7px;background:#173f3c;color:white;border-radius:5px;padding:1px 4px}.symbol-wild{background:radial-gradient(circle,#ffe777,transparent 67%)}.symbol-scatter{background:radial-gradient(circle,#ffb35d,transparent 67%)}.symbol.winner{background:#fff0a2;box-shadow:0 0 0 3px #f0822d,0 0 24px #ffdb3d;animation:winner .7s infinite alternate}.reels.spinning .symbol{animation:spinBlur .15s infinite linear}.line-flag{position:absolute;top:50%;transform:translateY(-50%);writing-mode:vertical-rl;background:#153b39;border:2px solid #eaa542;color:#ffdb83;border-radius:7px;padding:6px 4px;font-size:8px;font-weight:900}.line-flag.left{left:-16px}.line-flag.right{right:-18px}.status-ribbon{margin:10px 5px 8px;min-height:40px;display:grid;place-items:center;padding:8px 12px;border-radius:10px;background:#204843;color:#f8ecd0;font-size:11px;font-weight:800}.machine-controls{display:grid;grid-template-columns:1fr 1.15fr 140px 1.2fr;gap:11px;align-items:center}.machine-controls small{display:block;font-size:9px;color:#6b491f;font-weight:800;margin-bottom:4px}.win-box strong{font-size:21px;color:#183f3c}.win-box span{font-size:9px;margin-left:3px}.bet-box select{width:100%;height:39px;border:2px solid #9b632a;border-radius:20px;background:#fff3ce;color:#153e3b;font-weight:900;text-align:center}.spin-button{height:78px;border:5px solid #fff0ae;border-radius:50%;background:radial-gradient(circle at 35% 25%,#f49b3e,#d9482a 70%,#852b1c);color:white;box-shadow:0 6px 0 #6d2a1d;display:grid;grid-template-columns:28px 1fr;padding:7px 11px;place-content:center;cursor:pointer}.spin-button:disabled{filter:grayscale(.7);opacity:.65;cursor:not-allowed}.spin-button>span{font-size:25px;grid-row:1/3;align-self:center}.spin-button strong{font-size:14px}.spin-button small{color:#ffdda7;margin:0}.auto-box>div{height:39px;display:grid;grid-template-columns:repeat(4,1fr);border:2px solid #9b632a;border-radius:20px;overflow:hidden;background:#fff3ce}.auto-box button{border:0;border-right:1px solid #dfc691;background:transparent;font-size:10px;font-weight:900;color:#6a4a24;cursor:pointer}.auto-box button.active{background:#17433f;color:white}.game-side{border:1px solid #d7be86;background:#fff9e9;border-radius:20px;overflow:hidden;box-shadow:0 13px 28px #352e1f32}.side-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:7px;background:#153b39}.side-tabs button{border:0;border-radius:9px;padding:9px;background:transparent;color:#9bbab4;font-weight:800;font-size:11px;cursor:pointer}.side-tabs button.active{background:var(--gold);color:#173c39;box-shadow:0 3px 0 #a76725}.side-content{padding:12px}.side-content.hidden{display:none}.side-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.side-title>div{display:flex;gap:7px;align-items:center}.side-title span{font-size:21px}.side-title strong{font-size:13px}.side-title>b{font-size:8px;background:#2e7f68;color:white;padding:4px 6px;border-radius:6px}.tier-row{display:grid;grid-template-columns:28px 1fr auto;gap:6px;align-items:center;background:#f2ead2;border:1px solid #e5d7b4;border-radius:8px;padding:5px 7px;margin-bottom:4px}.tier-row>span{width:23px;height:23px;display:grid;place-items:center;border-radius:7px;background:#e6d4a9;font-size:12px}.tier-row>div{display:flex;flex-direction:column}.tier-row strong{font-size:10px}.tier-row small{font-size:8px;color:#908775}.tier-row>b{font-size:11px;color:#d6602f}.side-content article{display:flex;gap:9px;padding:10px;margin-bottom:7px;border-radius:10px;background:#f2ead2;border:1px solid #e1d1aa}.side-content article>span{font-size:22px}.side-content article strong{font-size:11px}.side-content article p{font-size:9px;color:#697262;margin:3px 0 0;line-height:1.5}.leaderboard-link{margin:0 12px 12px;padding:11px;display:grid;grid-template-columns:31px 1fr auto;align-items:center;border-radius:11px;background:#183f3c;color:white}.leaderboard-link>span{font-size:21px}.leaderboard-link div{display:flex;flex-direction:column}.leaderboard-link strong{font-size:10px}.leaderboard-link small{font-size:8px;color:#9ec2b7}.leaderboard-link>b{color:#ffd26c}.shake{animation:shake .35s}

@keyframes spinBlur{50%{transform:translateY(5px);opacity:.42}}@keyframes winner{to{background:#ffe27b;box-shadow:0 0 0 3px #f0822d,0 0 32px #ffe24b}}@keyframes shake{20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}}
@media(max-width:980px){.game-layout,.admin-grid{grid-template-columns:1fr}.game-side{display:grid;grid-template-columns:1.4fr 1fr}.side-tabs,.leaderboard-link{grid-column:1/3}.leaderboard-link{margin-top:12px}.create-user-card{max-width:none}.ranking-card{overflow-x:auto}.ranking-head,.ranking-row{grid-template-columns:50px minmax(130px,1fr) repeat(6,85px);min-width:790px}}
@media(max-width:680px){body{background:linear-gradient(180deg,#123335 0 210px,#ead8b2 210px)}.site-header{height:62px;padding:0 10px;gap:5px}.brand small,.site-header nav{display:none}.account-menu{margin-left:auto}.account-menu>div{display:none}.auth-shell{grid-template-columns:1fr;width:min(420px,92vw);margin:25px 0}.auth-story{padding:30px;min-height:270px}.auth-story h1{font-size:30px}.auth-emblem{width:54px;height:54px;font-size:26px}.auth-feature-row{display:grid;gap:5px}.auth-card{padding:31px 26px}.page-title-row,.game-hero{margin-top:18px;align-items:flex-start}.page-title-row h1,.game-hero h1{font-size:27px}.page-title-row p,.game-hero p{font-size:10px}.wallet-card{padding:8px;gap:7px}.wallet-card>span{display:none}.wallet-card>div{min-width:65px}.game-page,.admin-page,.leaderboard-page{padding-inline:8px}.slot-machine{padding:48px 8px 12px;border-width:5px}.reel-window{padding:8px}.reels{min-height:248px;gap:3px;padding:4px}.reel{padding:2px;gap:2px}.symbol{min-height:71px;font-size:33px}.machine-controls{grid-template-columns:1fr 105px 1fr;gap:7px}.win-box{grid-column:1;grid-row:1}.bet-box{grid-column:1;grid-row:2}.spin-button{grid-column:2;grid-row:1/3;height:72px}.auto-box{grid-column:3;grid-row:1/3}.auto-box>div{grid-template-columns:1fr 1fr;height:60px;border-radius:11px}.game-side{display:block}.side-tabs,.leaderboard-link{display:grid}.user-row{grid-template-columns:38px 1fr 65px}.user-stat:nth-of-type(2),.user-row>.user-stat:nth-child(4){display:none}.row-actions{grid-column:2/4;justify-content:flex-start}.ranking-card{overflow-x:auto}.ranking-head,.ranking-row{min-width:520px}.flash-stack{left:10px;right:10px}.narrow-page{margin:24px 10px}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* 3×3 reels and the public latest-spin panel */
.reels{grid-template-columns:repeat(3,1fr)}
.side-tabs{grid-template-columns:repeat(3,1fr)}
.spin-records{display:grid;gap:5px;max-height:430px;overflow-y:auto}
.spin-record{display:grid;grid-template-columns:minmax(0,1fr) 55px 62px;gap:6px;align-items:center;padding:7px 8px;border:1px solid #e4d5b2;border-radius:8px;background:#f4ecd6;font-size:9px}
.spin-record span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}
.spin-record small{color:#8a8374;text-align:right}
.spin-record b{text-align:right;color:#8a8374}.spin-record b.won{color:#d45c2d}
.record-empty{text-align:center;color:#8a8374;font-size:10px;padding:30px 0}
.record-filters{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:8px;padding:3px;border-radius:9px;background:#eadcbc}
.record-filters button{border:0;border-radius:7px;padding:6px;background:transparent;color:#746b59;font-size:9px;font-weight:900;cursor:pointer}
.record-filters button.active{background:#153b39;color:#ffda83}
.spin-records.hidden{display:none}

/* 天龙人收购 */
.devil-page{padding:0 24px 50px}.devil-hero{max-width:1230px;margin:30px auto 18px;color:white;display:flex;align-items:end;justify-content:space-between}.devil-hero h1{font-family:Georgia,"STSong",serif;font-size:40px;font-weight:700;color:#ffd16d;margin:4px 0}.devil-hero p{color:#a8c5be;margin:0;font-size:12px}.devil-wallet{min-width:145px;padding:12px 18px;border:1px solid #ffffff25;border-radius:15px;background:#ffffff12;display:flex;flex-direction:column;text-align:right}.devil-wallet small{font-size:9px;color:#9fc0ba}.devil-wallet strong{font-size:21px;color:#ffda79}.devil-layout{max-width:1230px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:17px}.devil-main{padding:0 22px 22px;overflow:hidden}.round-bar{margin:0 -22px 20px;padding:14px 22px;background:#153b39;color:white;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}.round-bar>div{display:flex;flex-direction:column}.round-bar small{font-size:8px;color:#9bbab4}.round-state{padding:7px 18px!important;border-radius:20px;background:#2d8067;color:white;font-size:11px;font-weight:900}.round-state.closed{background:#b44c3a}.countdown{text-align:right}.countdown strong{font-size:22px;color:#ffcf68}.fruit-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.fruit-heading>div{display:flex;align-items:center;gap:9px}.fruit-heading span{font-size:30px}.fruit-heading h2{font-size:16px;margin:0}.fruit-heading p{font-size:9px;color:#7d847b;margin:2px 0}.fruit-heading>b,.guess-head>b{color:#d45c2d}.fruit-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.fruit-grid button{position:relative;min-height:105px;border:2px solid #e0d1ae;border-radius:13px;background:#f5ecd4;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}.fruit-grid button b{position:absolute;left:7px;top:6px;width:20px;height:20px;display:grid;place-items:center;border-radius:7px;background:#173f3c;color:#ffda75;font-size:10px}.fruit-grid button span{font-size:37px}.fruit-grid button small{font-size:9px;color:#696f65}.fruit-grid button:hover,.fruit-grid button.selected,.guess-buttons button.selected{border-color:#e86e32;background:#fff0bd;box-shadow:0 0 0 2px #f4b547}.fruit-grid button:disabled,.guess-buttons button:disabled{cursor:not-allowed;opacity:.55}.guess-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:15px}.guess-grid>section{padding:12px;border:1px solid #dfd0ad;border-radius:13px;background:#f7efdb}.guess-head{display:grid;grid-template-columns:30px 1fr auto;align-items:center}.guess-head>span{font-size:24px}.guess-head>div{display:flex;flex-direction:column}.guess-head strong{font-size:11px}.guess-head small{font-size:8px;color:#858477}.guess-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.guess-buttons button{border:2px solid #d8c59a;border-radius:9px;background:white;padding:9px;cursor:pointer;font-weight:900;color:#274b47}.bet-dock{margin-top:15px;padding:13px;border-radius:14px;background:#173f3c;color:white;display:grid;grid-template-columns:1.2fr 125px 1.5fr 120px;gap:10px;align-items:end}.chosen-bet,.amount-control{display:flex;flex-direction:column}.bet-dock small{font-size:8px;color:#9ebeb8;margin-bottom:4px}.chosen-bet strong{font-size:11px;color:#ffdb85}.amount-control input{width:100%;height:35px;border:0;border-radius:8px;padding:0 9px}.quick-amounts{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}.quick-amounts button{height:35px;border:0;border-radius:7px;background:#ffffff12;color:#dcebe6;font-size:9px;cursor:pointer}.quick-amounts button.active{background:#f4bd45;color:#173f3c}.devil-bet-button{height:38px;border:0;border-radius:10px;background:#e76c31;color:white;font-weight:900;cursor:pointer}.devil-bet-button:disabled{opacity:.45;cursor:not-allowed}.devil-message{padding:10px;text-align:center;font-size:10px;color:#6c7168}.devil-side{display:grid;gap:12px;align-content:start}.devil-side .content-card{padding:15px}.result-list,.my-bet-list{display:grid;gap:6px;max-height:270px;overflow:auto}.result-row,.my-bet-row{display:flex;align-items:center;justify-content:space-between;padding:8px;border-radius:9px;background:#f3ead2;border:1px solid #e4d5b2}.result-row>span{font-size:25px}.result-row>div,.my-bet-row>div{display:flex;flex-direction:column;flex:1;margin-left:8px}.result-row strong,.my-bet-row strong{font-size:10px}.result-row small,.my-bet-row small{font-size:8px;color:#868174}.my-bet-row>b{font-size:9px;color:#7e7c72}.my-bet-row.won>b{color:#d45c2d}.devil-rules h3{font-size:12px;margin:0 0 6px}.devil-rules p{font-size:9px;line-height:1.6;color:#72776e;margin:0}
@media(max-width:980px){.devil-layout{grid-template-columns:1fr}.devil-side{grid-template-columns:1fr 1fr}.devil-rules{grid-column:1/3}}
@media(max-width:680px){.devil-page{padding-inline:8px}.devil-hero{margin-top:18px}.devil-hero h1{font-size:28px}.devil-wallet{min-width:100px;padding:9px}.fruit-grid{grid-template-columns:repeat(2,1fr)}.fruit-grid button:last-child{grid-column:1/3}.guess-grid{grid-template-columns:1fr}.bet-dock{grid-template-columns:1fr 1fr}.quick-amounts{grid-column:1/3}.devil-bet-button{grid-column:1/3}.devil-side{grid-template-columns:1fr}.devil-rules{grid-column:auto}.round-bar{grid-template-columns:1fr auto}.round-state{order:3;grid-column:1/3;text-align:center;margin-top:8px}.site-header nav{display:flex;gap:1px}.site-header nav a{padding-inline:5px;font-size:9px}.brand strong{font-size:13px}}

.bet-record-tabs,.win-record-subtabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0 0 8px;padding:7px;border-radius:10px;background:#153b39}.bet-record-tabs button,.win-record-subtabs button{border:0;border-radius:9px;padding:9px 4px;background:transparent;color:#9bbab4;font-size:9px;font-weight:900;cursor:pointer}.bet-record-tabs button.active,.win-record-subtabs button.active{background:#f4bd45;color:#173c39;box-shadow:0 3px 0 #a76725}.devil-record-list{display:grid;gap:5px;max-height:390px;overflow-y:auto;overscroll-behavior:contain;padding-right:2px}.devil-record-row{display:grid;grid-template-columns:55px minmax(0,1fr) 60px;align-items:center;gap:6px;padding:8px;border:1px solid #e2d3b1;border-radius:9px;background:#f4ecd7}.record-player{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;color:#172b2b;font-weight:900}.devil-record-row>div{display:flex;flex-direction:column;min-width:0}.devil-record-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.devil-record-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px;color:#8b8578}.record-round,.record-amount,.record-multiplier{color:#172b2b;font-weight:900}.devil-record-row>b{text-align:right;font-size:9px;color:#77766d}.devil-record-row.won>b.record-payout{color:#d9482a;font-weight:900}.record-load-state{text-align:center;padding:7px 0 0;color:#969083;font-size:8px}.devil-history-panel[hidden],.win-record-subtabs[hidden]{display:none}.devil-record-card .result-list{max-height:390px}.result-meta{display:flex!important;flex-flow:row nowrap!important;align-items:center;gap:0;margin-left:0!important;white-space:nowrap}.result-meta b{color:#172b2b;font-weight:900}.result-meta .result-value{font-size:12px;line-height:1.1}

/* Centered, self-dismissing login/account notices */
.flash-stack{left:50%;right:auto;top:74px;width:min(420px,calc(100vw - 24px));transform:translateX(-50%);justify-items:stretch}
.flash{text-align:center;transition:opacity .3s ease,transform .3s ease}
.flash.dismissing{opacity:0;transform:translateY(-8px)}

/* Manual spin only */
.machine-controls{grid-template-columns:1fr 1.15fr 140px}
@media(max-width:680px){.machine-controls{grid-template-columns:1fr 105px}.win-box{grid-column:1;grid-row:1}.bet-box{grid-column:1;grid-row:2}.spin-button{grid-column:2;grid-row:1/3}}
.bet-box input{width:100%;height:39px;border:2px solid #9b632a;border-radius:20px;background:#fff3ce;color:#153e3b;font-weight:900;text-align:center;padding:0 10px}
.bet-combobox{position:relative;display:block}.bet-combobox input{padding-right:38px}.bet-combobox>button{position:absolute;right:2px;top:2px;width:35px;height:35px;border:0;border-left:1px solid #d4b872;border-radius:0 18px 18px 0;background:#f3dfa7;color:#173f3c;font-weight:900;cursor:pointer}.bet-combobox>button:disabled{cursor:not-allowed;opacity:.55}.bet-dropdown{position:absolute;left:0;right:0;top:43px;z-index:15;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:6px;border:2px solid #9b632a;border-radius:12px;background:#fff7dd;box-shadow:0 8px 20px #0003}.bet-dropdown[hidden]{display:none}.bet-dropdown button{border:0;border-radius:7px;padding:7px 2px;background:#173f3c;color:#ffda7d;font-size:9px;font-weight:900;cursor:pointer}.bet-dropdown button:hover{background:#e76c31;color:white}

/* Bold and enlarge descriptive content in all three slot side panels */
#paytablePanel .tier-row small,#paytablePanel .tier-row strong,#paytablePanel .tier-row>b,#rulesPanel article strong,#rulesPanel article p,#recordsPanel .spin-record span,#recordsPanel .spin-record small,#recordsPanel .spin-record b,#recordsPanel .record-empty{font-weight:900}
#paytablePanel .tier-row strong{font-size:12px}
#paytablePanel .tier-row small{font-size:10px}
#paytablePanel .tier-row>b{font-size:12px}
#rulesPanel article strong{font-size:13px}
#rulesPanel article p{font-size:11px;line-height:1.65}
#recordsPanel .spin-record{font-size:11px;grid-template-columns:minmax(0,1fr) 62px 70px}
#recordsPanel .spin-record small,#recordsPanel .spin-record b{font-size:10px}
#recordsPanel .spin-record.latest-record,#recordsPanel .spin-record.jackpot-record{grid-template-columns:minmax(0,1fr) 72px 78px}
#recordsPanel .spin-record.latest-record>span,#recordsPanel .spin-record.jackpot-record>span{grid-column:1}
#recordsPanel .spin-record.latest-record>small,#recordsPanel .spin-record.jackpot-record>small{grid-column:2}
#recordsPanel .spin-record.latest-record>b,#recordsPanel .spin-record.jackpot-record>b{grid-column:3}
#recordsPanel .spin-tier{grid-column:1/-1;grid-row:2;overflow-wrap:anywhere;white-space:normal;color:#173f3c;text-align:left;font-size:10px;font-style:normal;font-weight:900;line-height:1.45;padding-top:4px;border-top:1px dashed #d8c394}
#recordsPanel .spin-tier i{font-style:normal}
#recordsPanel .spin-tier .multiplier-number{color:#d6602f;font-weight:900}
#recordsPanel .record-empty{font-size:12px}

/* Match the enlarged, bold list treatment in the devil-fruit activity panel */
.devil-record-card .record-player,.devil-record-card .devil-record-row strong,.devil-record-card .devil-record-row small,.devil-record-card .devil-record-row>b,.devil-record-card .result-row strong,.devil-record-card .result-meta,.devil-record-card .record-empty,.devil-record-card .record-load-state{font-weight:900}
.devil-record-card .devil-record-row{grid-template-columns:62px minmax(0,1fr) 68px;padding:9px 8px}
.devil-record-card .record-player{font-size:10px}
.devil-record-card .devil-record-row strong{font-size:12px}
.devil-record-card .devil-record-row small{font-size:9px;line-height:1.5}
.devil-record-card .devil-record-row>b{font-size:11px;white-space:nowrap}
.devil-record-card .result-row{padding:9px 8px}
.devil-record-card .result-row>span{font-size:28px}
.devil-record-card .result-row strong{font-size:12px}
.devil-record-card .result-meta{font-size:10px;line-height:1.5}
.devil-record-card .result-meta .result-value{font-size:14px}
.devil-record-card .record-empty{font-size:12px}
.devil-record-card .record-load-state{font-size:10px}

/* Give activity records enough horizontal room without shrinking the game board */
.devil-hero,.devil-layout{max-width:1320px}
.devil-layout{grid-template-columns:minmax(0,1fr) 390px}
@media(max-width:980px){.devil-layout{grid-template-columns:1fr}}

/* Player profile opened from the leaderboard */
.ranking-player{min-width:0;border-radius:10px;padding:5px;margin:-5px}.ranking-player:hover{background:#eadcb9}.ranking-player i{margin-left:auto;color:#a45f2d;font-size:9px;font-style:normal;font-weight:900;white-space:nowrap}.player-profile-title{align-items:center}.back-link{display:inline-block;margin-bottom:10px;padding:8px 14px;border:1px solid #ffd16d;border-radius:10px;background:#ffffff12;color:#ffe09a;font-size:15px;font-weight:900;box-shadow:0 3px 0 #8c5a25}.back-link:hover{background:#ffd16d;color:#173f3c;transform:translateY(-1px)}.player-profile-card{max-width:1180px;margin:auto}.profile-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:7px;margin-bottom:18px;border-radius:12px;background:#153b39}.profile-tabs button{border:0;border-radius:9px;padding:11px 8px;background:transparent;color:#a3c1bb;font-size:12px;font-weight:900;cursor:pointer}.profile-tabs button b{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:4px;padding:0 5px;border-radius:10px;background:#ffffff18;font-size:9px}.profile-tabs button.active{background:#f4bd45;color:#173c39;box-shadow:0 3px 0 #a76725}.profile-tabs button.active b{background:#173c3920}.profile-panel[hidden]{display:none}.profile-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.profile-summary>div{min-height:85px;padding:16px;border:1px solid #e2d3b1;border-radius:13px;background:#f4ecd7;display:flex;flex-direction:column;justify-content:center}.profile-summary small{margin-bottom:5px;color:#837e72;font-size:10px;font-weight:800}.profile-summary strong{font-size:16px}.profile-summary .profile-status{color:#2d8067}.profile-record-list{display:grid;gap:8px;max-height:650px;overflow-y:auto;padding-right:3px}.profile-record-row{display:grid;grid-template-columns:minmax(260px,1fr) 190px 145px;gap:12px;align-items:center;padding:13px 15px;border:1px solid #e2d3b1;border-radius:12px;background:#f4ecd7}.profile-record-row>div{display:flex;flex-direction:column;min-width:0}.profile-record-row>div:last-child{text-align:right}.profile-record-row small{color:#817d72;font-size:9px;font-weight:900}.profile-record-row strong{margin:3px 0;font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-record-row span{color:#908a7c;font-size:9px;font-weight:800}.profile-record-row b,.profile-record-row.won>div:last-child strong,.record-win-amount{color:#d9482a;font-size:12px;font-weight:900}.profile-record-row:not(.won) .record-win-amount{color:#77766d}.poker-profile-record .poker-opponents{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45}.poker-profile-record>div:last-child span{margin-top:3px}
@media(max-width:680px){.ranking-player i{display:none}.back-link{font-size:13px;padding:7px 11px}.player-profile-card{padding:10px}.profile-tabs{gap:3px}.profile-tabs button{padding:9px 3px;font-size:10px}.profile-summary{grid-template-columns:1fr 1fr}.profile-summary>div{min-height:72px;padding:11px}.profile-summary strong{font-size:13px}.profile-record-row{grid-template-columns:minmax(0,1fr) 105px;padding:10px;gap:7px}.profile-record-row>div:last-child{grid-column:1/3;display:flex;flex-direction:row;justify-content:space-between;text-align:left;border-top:1px solid #ddcda8;padding-top:6px}.profile-record-row>div:last-child small{margin-right:auto}.profile-record-row>div:last-child strong,.profile-record-row>div:last-child b{margin-left:8px}}

/* Emphasize key devil-fruit round and betting hints */
.round-bar small{font-weight:900;color:#f7e2b0}
.fruit-heading p,.guess-head small{font-weight:900;color:#3d4a45}
.amount-control small{font-weight:900;color:#f7e2b0}

/* Player coin inbox and administrator gift controls */
.inbox-link{position:relative;display:flex;align-items:center;gap:4px;padding:7px 9px;border:1px solid #ffffff24;border-radius:9px;background:#ffffff10;color:white;font-size:11px;font-weight:900}.inbox-link:hover,.inbox-link.active{background:#f4bd45;color:#173f3c}.inbox-link>b{position:absolute;right:-7px;top:-8px;min-width:19px;height:19px;display:grid;place-items:center;padding:0 4px;border-radius:10px;background:#d9482a;color:white;font-size:8px;box-shadow:0 2px 0 #7f2b1d}.admin-tools{display:grid;gap:18px;align-content:start}.admin-gift-card{align-self:start}.stack-form select{width:100%;border:1px solid #cfbf98;background:white;padding:12px;border-radius:10px;color:var(--ink)}.admin-gift-history{margin-top:15px;padding-top:12px;border-top:1px solid #e2d3b1}.admin-gift-history>strong{font-size:11px}.admin-gift-history p{display:flex;justify-content:space-between;gap:8px;margin:7px 0;font-size:9px}.admin-gift-history p span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#777b72}.admin-gift-history p b{color:#d45c2d;white-space:nowrap}.user-row{grid-template-columns:42px minmax(130px,1fr) 80px 65px 225px}.row-actions .gift-details form{width:260px;grid-template-columns:1fr auto}.row-actions .gift-details form input[name="message"]{grid-column:1/3}.inbox-card{max-width:960px;margin:auto}.gift-list{display:grid;gap:10px}.gift-message{display:grid;grid-template-columns:55px minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px;border:1px solid #dfcca1;border-radius:15px;background:#f5ecd5}.gift-message.claimed{opacity:.68;background:#eee8d9}.gift-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#173f3c;font-size:25px}.gift-copy{min-width:0}.gift-copy small{color:#858074;font-size:9px;font-weight:900}.gift-copy h2{margin:4px 0;font-size:14px;overflow-wrap:anywhere}.gift-copy strong{color:#d9482a;font-size:17px}.gift-message form{margin:0}.gift-message .primary-button{min-width:100px}.gift-claimed{padding:8px 12px;border-radius:9px;background:#d8d4c8;color:#6e726b;font-size:11px;font-weight:900}
@media(max-width:680px){.inbox-link span{display:none}.inbox-link{padding:7px}.admin-tools{gap:10px}.user-row{grid-template-columns:38px 1fr 65px}.row-actions .gift-details form{left:0;right:auto;width:min(270px,calc(100vw - 35px))}.gift-message{grid-template-columns:42px minmax(0,1fr);padding:12px;gap:9px}.gift-icon{width:40px;height:40px;font-size:21px}.gift-message>form,.gift-message>.gift-claimed{grid-column:1/3}.gift-message .primary-button{width:100%}.gift-claimed{text-align:center}}

/* Responsive devil-fruit betting dock and complete two-column mobile fruit grid */
.bet-dock{grid-template-columns:minmax(135px,1fr) 120px 125px minmax(220px,1.35fr) 120px}
.dock-wallet{display:flex;flex-direction:column}.dock-wallet strong{height:35px;display:flex;align-items:center;padding:0 10px;border:1px solid #ffffff20;border-radius:8px;background:#ffffff10;color:#ffdb85;font-size:14px;font-weight:900;white-space:nowrap}
@media(max-width:1180px) and (min-width:681px){.bet-dock{grid-template-columns:120px 140px minmax(120px,1fr)}.chosen-bet{grid-column:1/4}.quick-amounts{grid-column:1/4}.devil-bet-button{grid-column:3;grid-row:2}}
@media(max-width:680px){.fruit-grid button:last-child{grid-column:auto}.bet-dock{grid-template-columns:1fr 1fr}.chosen-bet{grid-column:1/3}.dock-wallet{grid-column:1}.amount-control{grid-column:2}.quick-amounts{grid-column:1/3}.devil-bet-button{grid-column:1/3}.dock-wallet strong{font-size:13px}}

/* Prominent wallet and free-spin stats beside the current-spin win */
.game-hero{justify-content:flex-start}
.machine-controls{grid-template-columns:minmax(0,1fr) 140px;align-items:stretch}
.slot-stats{grid-column:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.slot-stat{min-width:0;padding:9px 11px;border:2px solid #efbd4d;border-radius:13px;background:linear-gradient(145deg,#173f3c,#245b54);box-shadow:0 4px 0 #9b632a,0 7px 14px #69461930;color:#fff;overflow:hidden}
.slot-stat small{margin:0 0 3px;color:#ffe3a0;font-size:9px;white-space:nowrap}
.slot-stat strong{color:#fff1a9;font-size:21px;line-height:1.15;font-weight:900;text-shadow:0 2px 0 #0003;white-space:nowrap}
.slot-stat span{margin-left:3px;color:#d8eee7;font-size:9px;font-weight:800}
.slot-balance-stat{border-color:#ffd35e;background:linear-gradient(145deg,#174641,#286a5e)}
.slot-balance-stat strong{color:#ffd45f}
.slot-free-stat{border-color:#ff9b4a;background:linear-gradient(145deg,#512d28,#97452f)}
.slot-free-stat strong{color:#ffd067}
.bet-box{grid-column:1;grid-row:2;align-self:end}
.spin-button{grid-column:2;grid-row:1/3;align-self:center}

/* Make the devil-fruit wallet immediately noticeable */
.dock-wallet small{color:#ffe39b;font-size:9px;font-weight:900;letter-spacing:.04em}
.dock-wallet strong{height:39px;border:2px solid #ffd05a;background:linear-gradient(135deg,#fff0a8,#f2b83e);color:#153f3c;font-size:18px;text-shadow:0 1px 0 #fff8;box-shadow:0 3px 0 #9f6126,0 5px 12px #0003}

@media(max-width:680px){
  .game-hero{margin-bottom:12px}
  .machine-controls{grid-template-columns:minmax(0,1fr) 105px;gap:9px}
  .slot-stats{grid-column:1/3;grid-row:1;gap:5px}
  .slot-stat{padding:7px 6px;border-radius:10px;text-align:center}
  .slot-stat small{font-size:8px;overflow:hidden;text-overflow:ellipsis}
  .slot-stat strong{font-size:16px}
  .slot-stat span{display:none}
  .bet-box{grid-column:1;grid-row:2}
  .spin-button{grid-column:2;grid-row:2;height:72px}
  .dock-wallet strong{height:39px;font-size:16px;padding-inline:8px}
}

/* Compact player-name dropdown for all account actions */
.account-menu{position:relative}
.account-dropdown{position:relative}
.account-dropdown>summary{position:relative;min-width:132px;display:grid;grid-template-columns:34px minmax(0,1fr) 16px;align-items:center;gap:8px;padding:7px 9px;border:1px solid #ffffff25;border-radius:12px;background:#ffffff0f;cursor:pointer;list-style:none;user-select:none}
.account-dropdown>summary::-webkit-details-marker{display:none}
.account-dropdown>summary:hover,.account-dropdown[open]>summary{border-color:#f4bd45;background:#ffffff18;box-shadow:0 0 0 2px #f4bd4525}
.account-avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(145deg,#f7ce61,#e58b31);color:#173f3c;font-size:14px;font-weight:900;box-shadow:0 3px 0 #925222}
.account-identity{display:flex;flex-direction:column;min-width:0}
.account-identity small{color:#9bc0b9;font-size:8px}
.account-identity strong{max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:12px}
.account-chevron{color:#ffd16e;font-size:11px;transition:transform .18s ease}
.account-dropdown[open] .account-chevron{transform:rotate(180deg)}
.account-alert{position:absolute;right:-7px;top:-7px;min-width:19px;height:19px;display:grid;place-items:center;padding:0 4px;border-radius:10px;background:#dc492d;color:#fff;font-size:8px;box-shadow:0 2px 0 #7f2b1d}
.account-dropdown-panel{position:absolute;z-index:100;right:0;top:calc(100% + 9px);width:230px;padding:7px;border:1px solid #d8bf86;border-radius:14px;background:#fff8e7;box-shadow:0 15px 35px #071d1d66;color:#173f3c}
.account-dropdown-panel:before{content:"";position:absolute;right:20px;top:-6px;width:11px;height:11px;transform:rotate(45deg);border-left:1px solid #d8bf86;border-top:1px solid #d8bf86;background:#fff8e7}
.account-dropdown-panel form{margin:0}
.account-dropdown-panel .account-action{position:relative;width:100%;display:grid;grid-template-columns:35px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px;border:0;border-radius:10px;background:transparent;color:#173f3c;text-align:left;cursor:pointer}
.account-action:hover,.account-action.active{background:#f5e5ba}
.account-action>span{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#173f3c;color:#ffd36d;font-size:16px}
.account-action>div{display:flex;flex-direction:column;min-width:0}
.account-action strong{font-size:12px}
.account-action small{margin-top:2px;color:#807c70;font-size:8px}
.account-action>b{min-width:21px;height:21px;display:grid;place-items:center;padding:0 5px;border-radius:11px;background:#d9482a;color:#fff;font-size:8px}
.account-dropdown-panel .account-logout{border-top:1px solid #e5d5ae;border-radius:0 0 10px 10px;margin-top:4px;padding-top:12px}
.account-logout>span{background:#8f382e;color:#fff}

/* Daily check-in */
.checkin-trigger{position:relative;display:flex;align-items:center;gap:6px;min-height:46px;padding:7px 11px;border:2px solid #ffd36b;border-radius:12px;background:linear-gradient(145deg,#f7c94f,#e88a2f);color:#173f3c;box-shadow:0 3px 0 #8f4f20;cursor:pointer}
.checkin-trigger:hover{transform:translateY(-1px);box-shadow:0 4px 0 #8f4f20}
.checkin-trigger>span{font-size:20px}.checkin-trigger>strong{font-size:11px;font-weight:900;white-space:nowrap}
.checkin-trigger>b{position:absolute;right:-5px;top:-6px;width:12px;height:12px;border:2px solid #123335;border-radius:50%;background:#e53f2f;box-shadow:0 0 8px #ff5a43}
.checkin-trigger.claimed{border-color:#ffffff35;background:#ffffff12;color:#bad0ca;box-shadow:none}
.checkin-modal[hidden]{display:none!important}
.checkin-modal{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:16px}
.checkin-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:#061f20cc;cursor:pointer}
.checkin-dialog{position:relative;width:min(560px,100%);max-height:calc(100vh - 32px);overflow-y:auto;padding:24px;border:3px solid #f2bc48;border-radius:22px;background:#fff7e1;box-shadow:0 22px 70px #0008;color:#173f3c}
.checkin-close{position:absolute;right:13px;top:12px;width:34px;height:34px;border:0;border-radius:10px;background:#173f3c;color:#ffd36e;font-size:22px;line-height:1;cursor:pointer}
.checkin-dialog>header{display:flex;align-items:center;gap:13px;padding-right:35px}
.checkin-dialog>header>span{width:52px;height:52px;display:grid;place-items:center;flex:0 0 52px;border-radius:15px;background:#f4bd45;font-size:26px;box-shadow:0 4px 0 #a96825}
.checkin-dialog header small{color:#ad6d2d;font-size:8px;font-weight:900;letter-spacing:.14em}
.checkin-dialog h2{margin:1px 0 3px;font-size:22px}.checkin-dialog header p{margin:0;color:#576b65;font-size:10px;font-weight:800}
.checkin-status{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0 12px}
.checkin-status>div{padding:11px 14px;border:1px solid #ddc58e;border-radius:12px;background:#f5ead0;display:flex;align-items:center;justify-content:space-between}
.checkin-status small{font-size:9px;font-weight:900;color:#5f6d68}.checkin-status strong{color:#d24b2f;font-size:15px}
.checkin-schedule{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.checkin-schedule article{position:relative;min-width:0;padding:11px 5px 9px;border:2px solid #e0cea6;border-radius:12px;background:#f8efd9;text-align:center}
.checkin-schedule article span,.checkin-schedule article small{display:block;color:#67736d;font-size:8px;font-weight:900}
.checkin-schedule article b{display:block;margin:4px 0 1px;color:#d04a2f;font-size:16px}
.checkin-schedule article.completed{border-color:#6a9b7e;background:#e2f0df}.checkin-schedule article.completed:after{content:"✓";position:absolute;right:5px;top:4px;color:#2d8067;font-size:11px;font-weight:900}
.checkin-schedule article.current{border-color:#e39c30;box-shadow:0 0 0 2px #f4bd4550}.checkin-schedule article.next{border-color:#e39c30;background:#fff0bd}
.checkin-tip{margin:12px 0 10px;padding:9px 11px;border-radius:10px;background:#173f3c;color:#ffe09a;font-size:10px;font-weight:900;text-align:center}
.checkin-claim{width:100%}.checkin-claim:disabled{background:#a7aaa1;box-shadow:0 4px 0 #73766f;cursor:not-allowed;transform:none}
body.modal-open{overflow:hidden}

@media(max-width:680px){
  .account-menu{margin-left:auto}
  .account-menu{gap:6px}
  .checkin-trigger{min-width:42px;min-height:42px;padding:6px;justify-content:center}
  .checkin-trigger>strong{display:none}.checkin-trigger>span{font-size:19px}
  .account-dropdown>summary{min-width:0;grid-template-columns:32px minmax(0,1fr) 13px;padding:6px 7px;gap:6px}
  .account-avatar{width:30px;height:30px}
  .account-identity strong{max-width:76px;font-size:11px}
  .account-dropdown-panel{right:0;width:min(230px,calc(100vw - 18px))}
  .checkin-dialog{padding:18px 13px 15px;border-width:2px;border-radius:17px}
  .checkin-dialog>header{gap:9px}.checkin-dialog>header>span{width:44px;height:44px;flex-basis:44px;font-size:22px}
  .checkin-dialog h2{font-size:19px}.checkin-dialog header p{font-size:8px;line-height:1.5}
  .checkin-status{margin:13px 0 9px}.checkin-status>div{padding:9px}.checkin-status strong{font-size:13px}
  .checkin-schedule{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  .checkin-schedule article{display:grid;grid-template-columns:1fr auto auto;align-items:center;padding:9px;text-align:left}
  .checkin-schedule article b{margin:0 3px 0 0;font-size:14px}.checkin-schedule article small{display:inline}
}
@media(max-width:380px){
  .account-dropdown>summary{grid-template-columns:30px 13px}
  .account-dropdown>summary .account-identity{display:none}
  .site-header .brand strong{font-size:12px}
}

/* Clearly interactive game-mode switcher */
.site-header .mode-switch{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;align-items:stretch;gap:5px;padding:5px;border:1px solid #ffffff24;border-radius:14px;background:#08292b;box-shadow:inset 0 0 0 1px #0003,0 5px 14px #061b1b45}
.mode-switch-label{position:absolute;left:12px;top:-10px;padding:1px 7px;border-radius:8px;background:#123d3d;color:#ffd472;font-size:7px;font-weight:900;letter-spacing:.12em;box-shadow:0 0 0 1px #ffffff18}
.site-header .mode-switch a{min-width:92px;display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 12px;border:1px solid transparent;border-radius:10px;color:#c2d9d3;font-size:12px;font-weight:900;white-space:nowrap}
.site-header .mode-switch a>span{font-size:15px;filter:grayscale(.35)}
.site-header .mode-switch a:hover{border-color:#f4bd4570;background:#ffffff12;color:#ffe29b;transform:translateY(-1px)}
.site-header .mode-switch a.active{border-color:#ffd76c;background:linear-gradient(145deg,#ffd565,#efa836);color:#173f3c;box-shadow:0 3px 0 #955723,0 5px 10px #0003;text-shadow:0 1px 0 #fff7}
.site-header .mode-switch a.active>span{filter:none}

@media(max-width:680px){
  body{background:linear-gradient(180deg,#123335 0 255px,#ead8b2 255px)}
  .site-header{height:auto;min-height:112px;flex-wrap:wrap;padding:8px 10px 10px;gap:7px}
  .brand{order:1}
  .account-menu{order:2}
  .site-header .mode-switch{order:3;display:grid;width:100%;flex-basis:100%;grid-auto-columns:1fr;gap:4px;padding:4px}
  .mode-switch-label{left:10px;top:-8px;font-size:6px}
  .site-header .mode-switch a{min-width:0;padding:8px 3px;font-size:10px}
  .site-header .mode-switch a>span{font-size:13px}
}

/* Login password visibility toggle */
.password-field{position:relative;display:block}
.stack-form .password-field input{padding-right:48px}
.password-toggle{position:absolute;right:5px;top:50%;width:38px;height:36px;display:grid;place-items:center;transform:translateY(-50%);border:0;border-radius:8px;background:transparent;color:#48615a;font-size:18px;line-height:1;cursor:pointer}
.password-toggle:hover,.password-toggle.visible{background:#f5e3b8;color:#a65329}
.password-toggle.visible span{filter:saturate(.6);opacity:.75}

/* Match the leaderboard heading with the main game headings */
.leaderboard-page .page-title-row h1{font-family:Georgia,"STSong",serif;font-size:40px;font-weight:700;color:#ffd16d}
@media(max-width:680px){.leaderboard-page .page-title-row h1{font-size:28px}}

/* Compact devil-fruit choices on phones; desktop layout remains unchanged */
@media(max-width:680px){
  .fruit-heading{margin-bottom:7px}
  .fruit-heading span{font-size:23px}
  .fruit-heading h2{font-size:13px}
  .fruit-heading p{font-size:8px}
  .fruit-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
  .fruit-grid button{min-width:0;min-height:76px;border-width:1px;border-radius:9px;padding:5px 1px}
  .fruit-grid button b{left:4px;top:4px;width:17px;height:17px;border-radius:6px;font-size:8px}
  .fruit-grid button span{font-size:26px;line-height:1.15}
  .fruit-grid button small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:7px}
  .fruit-grid button:last-child{grid-column:auto}
  .guess-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:8px}
  .guess-grid>section{min-width:0;padding:7px;border-radius:10px}
  .guess-head{grid-template-columns:22px minmax(0,1fr) auto;gap:2px}
  .guess-head>span{font-size:18px}
  .guess-head strong{font-size:9px;white-space:nowrap}
  .guess-head small{font-size:6px;line-height:1.2}
  .guess-head>b{font-size:8px}
  .guess-buttons{gap:4px;margin-top:6px}
  .guess-buttons button{padding:7px 2px;border-width:1px;border-radius:7px;font-size:9px}
}

/* Align and highlight the mobile brand name beside its icon */
.site-header .brand strong{color:#ffd16d}
@media(max-width:680px){
  .site-header .brand{display:flex;align-items:center;align-self:center;min-width:0;margin-right:auto}
  .site-header .brand>span{flex:0 0 40px;margin-right:8px}
  .site-header .brand strong{display:block;color:#ffd16d;font-size:14px;font-weight:900;line-height:40px;letter-spacing:.03em;white-space:nowrap}
  .site-header .brand small{display:none}
}

/* Keep the player's choice and that round's result on one unchanged record row */
.devil-record-card .record-choice-line{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;overflow:hidden;white-space:nowrap}
.record-selection{flex:0 0 auto;color:#172b2b}
.record-round-result{flex:0 1 110px;width:110px;min-width:0;margin-left:auto;padding:2px 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #dfc994;border-radius:7px;background:#eadbb8;color:#9b4628;font-size:10px;font-weight:900;text-align:left}
.record-round-result.pending{border-color:#d9cfb7;background:#e9e3d3;color:#747970}
@media(max-width:680px){
  .devil-record-card .record-choice-line{gap:9px}
  .record-round-result{flex-basis:100px;width:100px;padding:2px 5px;font-size:9px}
}

/* Only the recent-results tab: keep the round left and align draw values right */
.devil-record-card .result-meta{justify-content:space-between;gap:8px;width:100%;overflow:hidden}
.result-round{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.result-outcome{flex:0 0 76px;display:flex;align-items:center;justify-content:flex-end;margin-left:auto;text-align:right;white-space:nowrap}

/* Multiplayer three-card poker */
.poker-page{max-width:1240px;margin:auto;padding:0 24px 55px}.poker-hero{margin:27px 0 18px;display:flex;align-items:end;justify-content:space-between;color:#fff}.poker-hero h1{margin:4px 0;font-family:Georgia,"STSong",serif;font-size:40px;color:#ffd16d}.poker-hero p{margin:0;color:#a8c5be;font-size:12px}.poker-wallet{min-width:145px;padding:11px 17px;border:1px solid #ffffff24;border-radius:14px;background:#ffffff12;display:flex;flex-direction:column}.poker-wallet small{color:#a8c5be;font-size:9px}.poker-wallet strong{color:#ffd16d;font-size:22px}.poker-lobby,.poker-table-shell,.poker-rules{padding:18px;border:1px solid #d8bf87;border-radius:20px;background:#fff8e8;box-shadow:0 14px 30px #3d321d2e}.poker-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.poker-section-head h2,.poker-section-head h3{margin:0;font-size:18px}.poker-section-head p{margin:3px 0 0;color:#7f8177;font-size:10px}.poker-refresh,.poker-table-toolbar button{border:1px solid #cfba89;border-radius:9px;background:#fff;padding:8px 12px;color:#234944;font-size:10px;font-weight:900;cursor:pointer}.poker-room-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.poker-room-card{padding:14px;border:1px solid #decca4;border-radius:15px;background:#f4ead2}.poker-room-card>div:first-child{display:flex;align-items:center;gap:10px}.poker-room-card>div:first-child>span{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;background:#183f3c;font-size:20px}.poker-room-card>div:first-child>div{display:flex;flex-direction:column}.poker-room-card small{color:#7f8178;font-size:8px}.poker-room-card strong{font-size:14px}.poker-room-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:12px 0}.poker-room-stats span{padding:7px;border-radius:8px;background:#fff8e8;display:flex;flex-direction:column}.poker-room-stats b{margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.poker-room-card>button{width:100%;border:0;border-radius:9px;padding:9px;background:#e66d31;color:#fff;font-size:11px;font-weight:900;cursor:pointer}.poker-room-card>button:disabled{background:#b9b4a6;cursor:not-allowed}.poker-room-card.playing{opacity:.72}.poker-table-shell{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:14px;padding:14px}.poker-table-shell[hidden]{display:none}.poker-table-toolbar{grid-column:1/3;display:grid;grid-template-columns:110px 1fr 110px;align-items:center;text-align:center}.poker-table-toolbar h2{margin:2px 0 0;font-size:19px}.poker-table-toolbar small{color:#8a8476;font-size:8px}.poker-table-toolbar button.danger{border-color:#d8a190;color:#a84331}.poker-table{padding:15px;border:6px solid #d7a23d;border-radius:35px;background:radial-gradient(ellipse,#267661,#123f3c 70%);box-shadow:inset 0 0 0 4px #f3d77b,0 8px 0 #173c39;color:#fff}.poker-table-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.poker-table-stats>div{padding:8px;border:1px solid #ffffff20;border-radius:10px;background:#092d2da8;text-align:center;display:flex;flex-direction:column}.poker-table-stats small{color:#9dc4bb;font-size:8px}.poker-table-stats strong{color:#ffd263;font-size:17px}.poker-announcement{margin:9px 0;padding:9px;border-radius:10px;background:#f4bd45;color:#173f3c;text-align:center;font-size:11px;font-weight:900}.poker-announcement.error{background:#d95639;color:#fff}.poker-player-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;min-height:180px}.poker-player{min-width:0;padding:7px;border:1px solid #ffffff1d;border-radius:11px;background:#082e2dbd;opacity:.78}.poker-player.turn{border-color:#ffd15e;box-shadow:0 0 0 2px #ffd15e,0 0 16px #ffd15e70;opacity:1}.poker-player.folded,.poker-player.out{filter:grayscale(1);opacity:.45}.poker-player.winner{border-color:#ffd15e;background:#69461c}.poker-player-name{display:flex;align-items:center;gap:5px;min-width:0}.poker-player-name>span{width:27px;height:27px;flex:0 0 27px;display:grid;place-items:center;border-radius:8px;background:#f4bd45;color:#173f3c;font-size:11px;font-weight:900}.poker-player-name>div{display:flex;flex-direction:column;min-width:0;flex:1}.poker-player-name strong,.poker-player-name small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.poker-player-name strong{font-size:9px}.poker-player-name small{color:#a6c6bf;font-size:6px}.poker-player-name>b{padding:2px 3px;border-radius:5px;font-size:7px}.poker-player-name .dealer{background:#f4bd45;color:#173f3c}.poker-player-name .seen{background:#e66d31}.poker-player-name .dark{background:#ffffff18}.poker-player>p{height:18px;margin:5px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#bad0ca;font-size:7px}.poker-mini-cards{display:flex;justify-content:center;gap:2px;min-height:38px}.poker-my-area{margin-top:10px;padding:10px;border:1px solid #ffffff26;border-radius:13px;background:#092d2dc9}.poker-my-head{display:flex;justify-content:space-between;align-items:center}.poker-my-head>div{display:flex;flex-direction:column}.poker-my-head small{color:#9fc1ba;font-size:8px}.poker-my-head strong{color:#ffd16d;font-size:13px}.poker-my-head>span{padding:5px 9px;border-radius:12px;background:#ffffff14;color:#f8e2af;font-size:9px;font-weight:900}.poker-cards{display:flex;justify-content:center;gap:8px;margin-top:8px}.poker-card{width:68px;height:88px;padding:7px;border:2px solid #e0c78d;border-radius:10px;background:#fffdf3;color:#202b2a;box-shadow:0 4px 0 #8c642c;display:flex;flex-direction:column;justify-content:center;align-items:center}.poker-card b{font-family:Georgia,serif;font-size:24px}.poker-card span{font-size:27px}.poker-card.red{color:#d84332}.poker-card.back{padding:0;background:repeating-linear-gradient(45deg,#143f3c 0 6px,#205b53 6px 12px);color:#ffd16d;font-size:25px}.poker-card.small{width:25px;height:35px;padding:2px;border-width:1px;border-radius:5px;box-shadow:none}.poker-card.small b{font-size:8px}.poker-card.small span{font-size:10px}.poker-card.back.small{font-size:9px}.poker-start-panel{margin-top:10px;text-align:center}.poker-start-panel button{border:0;border-radius:12px;padding:12px 22px;background:linear-gradient(135deg,#f4bd45,#e76a31);color:#173f3c;font-weight:900;box-shadow:0 4px 0 #8f5028;cursor:pointer}.poker-controls{margin-top:10px;display:grid;grid-template-columns:85px 105px minmax(230px,1fr) 75px 145px;gap:7px;align-items:stretch}.poker-controls[hidden]{display:none}.poker-action{border:0;border-radius:10px;padding:8px;background:#f4bd45;color:#173f3c;font-size:10px;font-weight:900;cursor:pointer}.poker-action:disabled{filter:grayscale(1);opacity:.45;cursor:not-allowed}.poker-action.fold{background:#9e4537;color:#fff}.poker-action.compare{background:#e76d31;color:#fff}.poker-raise-box{display:grid;grid-template-columns:95px 1fr 80px;gap:4px;padding:5px;border-radius:10px;background:#ffffff12}.poker-raise-box label{display:flex;flex-direction:column;color:#bdd2cc;font-size:7px}.poker-raise-box input{width:100%;height:26px;border:0;border-radius:6px;padding:0 5px}.poker-quick-bets{display:grid;grid-template-columns:repeat(6,1fr);gap:2px;align-items:end}.poker-quick-bets button{height:26px;border:0;border-radius:5px;background:#ffffff17;color:#fff;font-size:7px;cursor:pointer}.poker-quick-bets button:disabled{opacity:.3}.poker-compare-box{display:grid;grid-template-rows:1fr 1fr;gap:4px}.poker-compare-box select{min-width:0;border:0;border-radius:7px;padding:4px;font-size:8px}.poker-action-log{min-width:0;padding:13px;border-radius:15px;background:#f4ead2;color:#172b2b}.poker-action-log #pokerActionLog{display:grid;gap:5px;max-height:610px;overflow-y:auto}.poker-action-log p{display:grid;grid-template-columns:55px minmax(0,1fr) auto;gap:5px;margin:0;padding:7px;border:1px solid #dfcca2;border-radius:8px;background:#fff9e9;font-size:8px}.poker-action-log strong,.poker-action-log span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.poker-action-log b{color:#d24f2f}.poker-rules{margin-top:18px}.poker-rule-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.poker-rule-grid article{display:grid;grid-template-columns:28px 60px 1fr;align-items:center;padding:9px;border:1px solid #dfcca3;border-radius:10px;background:#f4ead2}.poker-rule-grid article>b{width:23px;height:23px;display:grid;place-items:center;border-radius:7px;background:#173f3c;color:#ffd16d}.poker-rule-grid strong{font-size:11px}.poker-rule-grid span{color:#72786e;font-size:9px}.poker-rule-notes{margin-top:10px;padding:10px;border-radius:10px;background:#173f3c;color:#dcebe5;font-size:10px}.poker-rule-notes p{margin:4px 0}.poker-rule-notes strong{color:#ffd16d}

@media(max-width:900px){.poker-room-grid{grid-template-columns:repeat(2,1fr)}.poker-table-shell{grid-template-columns:1fr}.poker-table-toolbar{grid-column:1}.poker-action-log{grid-row:auto}.poker-action-log #pokerActionLog{max-height:230px}.poker-controls{grid-template-columns:1fr 1fr}.poker-raise-box{grid-column:1/3}.poker-compare-box{grid-template-columns:1fr 1fr;grid-template-rows:none}.poker-rule-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.poker-page{padding:0 8px 40px}.poker-hero{margin:17px 2px 12px}.poker-hero h1{font-size:28px}.poker-hero p{font-size:9px}.poker-wallet{min-width:100px;padding:8px}.poker-wallet strong{font-size:16px}.poker-lobby,.poker-table-shell,.poker-rules{padding:9px;border-radius:15px}.poker-room-grid{grid-template-columns:1fr 1fr;gap:6px}.poker-room-card{padding:8px;border-radius:11px}.poker-room-card>div:first-child>span{width:31px;height:31px;font-size:16px}.poker-room-card strong{font-size:11px}.poker-room-stats{margin:8px 0;gap:2px}.poker-room-stats span{padding:4px}.poker-room-card>button{padding:7px;font-size:9px}.poker-table-toolbar{grid-template-columns:85px 1fr 75px;gap:3px}.poker-table-toolbar button{padding:7px 3px;font-size:8px}.poker-table-toolbar h2{font-size:14px}.poker-table{padding:8px;border-width:4px;border-radius:24px}.poker-table-stats{gap:4px}.poker-table-stats>div{padding:6px 2px}.poker-table-stats strong{font-size:14px}.poker-announcement{font-size:9px}.poker-player-grid{grid-template-columns:repeat(2,1fr);min-height:0;gap:4px}.poker-player{padding:5px}.poker-my-area{padding:7px}.poker-card{width:58px;height:76px}.poker-controls{grid-template-columns:1fr 1fr;gap:5px}.poker-raise-box{grid-template-columns:80px 1fr;grid-column:1/3}.poker-raise-box .raise{grid-column:1/3}.poker-quick-bets{grid-template-columns:repeat(3,1fr)}.poker-compare-box{grid-column:1/3}.poker-rule-grid{grid-template-columns:1fr}.poker-rule-grid article{grid-template-columns:25px 55px 1fr;padding:7px}.poker-rule-notes{font-size:9px}}

/* Poker readability and compact multiplayer seats */
.poker-page small,.poker-page p,.poker-page label,.poker-page .poker-rule-grid span{font-weight:900}
.poker-lobby small,.poker-lobby p,.poker-rules small,.poker-rules p,.poker-rules span,.poker-action-log small,.poker-action-log p{color:#172b2b}
.poker-hero p,.poker-hero small{color:#d9ebe5}
.poker-table small,.poker-table label,.poker-table .poker-player p{color:#f9e6ad;font-weight:900}
.poker-player-grid{gap:5px;min-height:0;align-items:start}
.poker-player{padding:5px;border-radius:9px;align-self:start}
.poker-player.folded,.poker-player.out{filter:none;opacity:1;background:#0a3533}
.poker-player.folded .poker-player-name,.poker-player.out .poker-player-name,.poker-player.folded>p,.poker-player.out>p{opacity:.58}
.poker-player-name{gap:4px}
.poker-player-name>span{width:22px;height:22px;flex-basis:22px;border-radius:6px;font-size:9px}
.poker-player-name strong{font-size:9px;font-weight:900}
.poker-player-name small{color:#f9e6ad;font-size:7px;font-weight:900}
.poker-player-name>b{padding:1px 3px;font-size:6px;font-weight:900}
.poker-player>p{height:14px;margin-top:3px;font-size:7px}
.poker-mini-cards{min-height:44px;gap:0}
.poker-mini-cards .poker-card+.poker-card{margin-left:-3px}
.poker-card.small{width:34px;height:44px;border-width:2px}
.poker-card.small b{font-size:11px}.poker-card.small span{font-size:15px}
.poker-mini-cards .poker-card{border-color:#ffd45c;background:#fffef5;color:#172b2b;filter:none;opacity:1;box-shadow:0 2px 0 #8e6727}
.poker-mini-cards .poker-card.red{color:#d63c2f}
.poker-mini-cards .poker-card.back{color:#ffd45c;font-size:14px;background:repeating-linear-gradient(45deg,#143f3c 0 5px,#277466 5px 10px);box-shadow:0 2px 0 #8e6727,0 0 8px #ffd45c55}
.poker-my-area{margin-top:6px;padding:7px}
.poker-cards{gap:11px;margin-top:5px}
.poker-cards .poker-card:not(.small){width:66px;height:90px;padding:8px;border:3px solid #ffd45c;border-radius:13px;background:#fffef5;box-shadow:0 5px 0 #8e6727,0 0 17px #ffd45c80;filter:none;opacity:1}
.poker-cards .poker-card:not(.small) b{font-size:32px;font-weight:900}
.poker-cards .poker-card:not(.small) span{font-size:37px}
.poker-cards .poker-card.back:not(.small){font-size:34px;background:repeating-linear-gradient(45deg,#143f3c 0 6px,#277466 6px 12px)}
.poker-action-log p{grid-template-columns:58px minmax(0,1fr) auto;padding:8px;font-size:9px;font-weight:900;color:#172b2b}
.poker-action-log p strong,.poker-action-log p span,.poker-action-log p b{color:#172b2b;font-weight:900}
.poker-action-log p.settlement{border-color:#d59f35;background:#ffedb6}
.poker-action-log p.settlement span{white-space:normal;line-height:1.45}
@media(max-width:680px){
  .poker-player-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
  .poker-player{padding:4px}
  .poker-player-name>span{width:19px;height:19px;flex-basis:19px;font-size:8px}
  .poker-player-name strong{font-size:8px}
  .poker-player-name small{font-size:6px}
  .poker-player>p{height:12px;font-size:6px}
  .poker-mini-cards{min-height:44px;gap:0}
  .poker-mini-cards .poker-card+.poker-card{margin-left:-3px}
  .poker-card.small{width:34px;height:44px;border-width:2px}
  .poker-card.small b{font-size:11px}
  .poker-card.small span{font-size:15px}
  .poker-my-area{margin-top:6px;padding:7px}
  .poker-cards{gap:11px;margin-top:5px}
  .poker-cards .poker-card:not(.small){width:66px;height:90px;padding:8px;border:3px solid #ffd45c;border-radius:13px;background:#fffef5;box-shadow:0 5px 0 #8e6727,0 0 17px #ffd45c80;filter:none;opacity:1}
  .poker-cards .poker-card:not(.small) b{font-size:32px;font-weight:900}
  .poker-cards .poker-card:not(.small) span{font-size:37px}
  .poker-cards .poker-card.back:not(.small){font-size:34px;background:repeating-linear-gradient(45deg,#143f3c 0 6px,#277466 6px 12px)}
  .poker-action-log p{grid-template-columns:48px minmax(0,1fr);font-size:8px}
  .poker-action-log p>b{grid-column:2}
}

/* Poker rules: clearer text and stronger contrast on desktop and mobile */
.poker-rules .poker-section-head{margin-bottom:17px}
.poker-rules .poker-section-head h2{font-size:21px;font-weight:900;color:#122c2b}
.poker-rules .poker-section-head p{margin-top:5px;color:#405b56;font-size:12px;font-weight:900}
.poker-info-tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-bottom:18px;padding:6px;border-radius:13px;background:#123f3c}
.poker-info-tabs button{min-height:42px;border:1px solid transparent;border-radius:9px;background:transparent;color:#dcebe5;font-size:12px;font-weight:900;cursor:pointer;transition:background .18s,color .18s,box-shadow .18s}
.poker-info-tabs button:hover{color:#ffd16d}
.poker-info-tabs button.active{background:linear-gradient(135deg,#f6c64c,#efa936);color:#123f3c;box-shadow:0 3px 0 #b97425}
.poker-info-panel[hidden]{display:none}
.poker-world-head{padding:3px 7px 10px;border-bottom:1px solid #e5ca82}
.poker-world-head>span{font-size:28px;filter:drop-shadow(0 2px 0 #a35a22)}
.poker-world-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.poker-world-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;overflow:hidden;padding:11px 33px 11px 13px;border:2px solid #e3b746;border-radius:14px;background:linear-gradient(105deg,#fff6d9,#f5e4bd 60%,#ffe7a4);box-shadow:inset 0 1px 0 #fff,0 3px 0 #c89132}
.poker-world-row:before{content:"";position:absolute;left:0;top:0;width:4px;height:100%;background:linear-gradient(#ffd75d,#e64f2f,#ffd75d)}
.poker-world-detail,.poker-world-result{display:flex;flex-direction:column;min-width:0}
.poker-world-detail strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#132f2d;font-size:13px;font-weight:900}
.poker-world-detail strong span{color:#b04a24}
.poker-world-detail small,.poker-world-result small{color:#4a625d;font-size:10px;font-weight:900}
.poker-world-horn{display:inline-block;margin-right:2px;filter:drop-shadow(0 1px 0 #9c5724)}
.poker-world-result{align-items:flex-end;text-align:right}
.poker-world-result b{color:#e3412f;font-size:14px;font-weight:900;white-space:nowrap}
.poker-world-salute{position:absolute;right:6px;top:5px;font-size:17px;transform:rotate(8deg);filter:drop-shadow(0 1px 0 #9c5724)}
.poker-world-empty{grid-column:1/-1;margin:0;padding:20px;border:1px dashed #d3b96f;border-radius:12px;background:#f5ead0;color:#405b56;text-align:center;font-size:12px;font-weight:900}
.poker-detailed-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.poker-detailed-rules>section{min-width:0;padding:15px;border:2px solid #dfbd67;border-radius:15px;background:linear-gradient(145deg,#fff9e9,#f4e8ca);box-shadow:0 3px 0 #c89439}
.poker-detailed-rules h3{display:flex;align-items:center;gap:9px;margin:0 0 12px;color:#123f3c;font-size:17px;font-weight:900}
.poker-detailed-rules h3>b{width:30px;height:30px;display:grid;place-items:center;flex:0 0 30px;border-radius:9px;background:#123f3c;color:#ffd269;font-size:14px;box-shadow:0 3px 0 #082927}
.poker-detailed-rules h4{margin:13px 0 7px;color:#172f2d;font-size:13px;font-weight:900}
.poker-rule-lines{display:grid;gap:6px}
.poker-rule-lines p,.poker-hand-details p,.poker-compare-rules p{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;margin:0;padding:8px 10px;border:1px solid #e3d0a1;border-radius:9px;background:#fffaf0;color:#193330}
.poker-rule-lines strong,.poker-hand-details strong,.poker-compare-rules strong{color:#9b561f;font-size:11px;font-weight:900}
.poker-rule-lines span,.poker-hand-details span,.poker-compare-rules span{color:#223d39;font-size:11px;font-weight:900;line-height:1.55}
.poker-rank-summary{display:flex;flex-wrap:wrap;align-items:center;gap:9px 12px;margin-top:9px;padding:11px 12px;border:2px solid #e4ad39;border-radius:11px;background:#123f3c;box-shadow:inset 0 0 0 1px #ffffff14;color:#fff3d0}
.poker-rank-summary>strong{flex:0 0 100%;color:#ffd269;font-size:12px;font-weight:900}
.poker-rank-order{display:grid;grid-template-columns:repeat(11,auto);align-items:center;justify-content:start;gap:5px;width:100%;color:#fff4cf!important;font-size:12px;font-weight:900;letter-spacing:.02em}
.poker-rank-order b{display:inline-flex;align-items:center;justify-content:center;min-width:44px;padding:5px 8px;border:1px solid #ffd269;border-radius:7px;background:#fff3c9;color:#173f3c;font-size:11px;font-weight:900;box-shadow:0 2px 0 #a66d24}
.poker-rank-order i{color:#ffd269;font-size:14px;font-style:normal;font-weight:900;text-shadow:0 1px 0 #000}
.poker-hand-details{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
.poker-hand-details p{grid-template-columns:100px minmax(0,1fr)}
.poker-action-rules{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0;padding:0;list-style:none}
.poker-action-rules li{display:flex;gap:7px;padding:8px 10px;border:1px solid #e3d0a1;border-radius:9px;background:#fffaf0;color:#223d39;font-size:11px;font-weight:900;line-height:1.55}
.poker-action-rules b{flex:0 0 auto;color:#9b561f}
.poker-compare-rules{margin-top:10px;padding:11px;border:2px solid #d69b31;border-radius:11px;background:#fff0bd}
.poker-compare-rules h4{margin:0 0 8px;color:#a04426}
.poker-compare-rules p{grid-template-columns:115px minmax(0,1fr);border-color:#e8c66f;background:#fff8dc}
.poker-rule-example,.poker-rule-alert{margin-top:9px;padding:10px 12px;border-radius:10px;background:#123f3c;color:#fff3d0;font-size:11px;font-weight:900;line-height:1.6}
.poker-rule-example b{color:#ffd269}.poker-rule-alert.success{background:#285d4b;color:#fff9dd}
.poker-rule-grid{gap:10px}
.poker-rule-grid article{grid-template-columns:34px 76px minmax(0,1fr);gap:8px;padding:12px 11px;border-width:2px;background:#f7ecd2}
.poker-rule-grid article>b{width:29px;height:29px;border-radius:8px;font-size:15px;font-weight:900}
.poker-rule-grid strong{color:#142e2c;font-size:13px;font-weight:900;white-space:nowrap}
.poker-rule-grid span{color:#263f3b;font-size:11px;font-weight:900;line-height:1.55}
.poker-rule-notes{margin-top:13px;padding:13px 15px;border:2px solid #d7a33f;background:#123f3c;font-size:12px;line-height:1.7}
.poker-rule-notes p{margin:6px 0;color:#f8edcf!important;font-size:12px;font-weight:900}
.poker-rule-notes strong{color:#ffd160;font-weight:900}
@media(max-width:680px){
  .poker-rules .poker-section-head{margin-bottom:11px}
  .poker-rules .poker-section-head h2{font-size:17px}
  .poker-rules .poker-section-head p{font-size:10px;line-height:1.5}
  .poker-info-tabs{gap:4px;margin-bottom:12px;padding:4px}
  .poker-info-tabs button{min-height:38px;padding:6px 3px;font-size:11px}
  .poker-world-list{grid-template-columns:1fr;gap:7px}
  .poker-world-head{padding:2px 4px 8px}.poker-world-head>span{font-size:23px}
  .poker-world-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:9px 27px 9px 9px}
  .poker-world-detail strong{font-size:12px}
  .poker-world-detail small,.poker-world-result small{font-size:9px}
  .poker-world-result b{font-size:12px}
  .poker-world-salute{right:5px;top:4px;font-size:14px}
  .poker-detailed-rules{grid-template-columns:1fr;gap:9px}
  .poker-detailed-rules>section{padding:11px 9px;border-radius:12px}
  .poker-detailed-rules h3{gap:7px;margin-bottom:9px;font-size:15px}
  .poker-detailed-rules h3>b{width:27px;height:27px;flex-basis:27px;font-size:12px}
  .poker-detailed-rules h4{font-size:12px}
  .poker-rule-lines p,.poker-hand-details p,.poker-compare-rules p{grid-template-columns:82px minmax(0,1fr);gap:6px;padding:7px 8px}
  .poker-rule-lines strong,.poker-hand-details strong,.poker-compare-rules strong{font-size:10px}
  .poker-rule-lines span,.poker-hand-details span,.poker-compare-rules span{font-size:10px;line-height:1.55}
  .poker-rank-summary{align-items:flex-start;padding:9px}
  .poker-rank-summary>strong{font-size:10px}
  .poker-rank-order{justify-content:space-between;gap:1px;font-size:10px}
  .poker-rank-order b{min-width:34px;padding:4px 5px;font-size:10px}
  .poker-rank-order i{font-size:12px}
  .poker-hand-details,.poker-action-rules{grid-template-columns:1fr}
  .poker-hand-details p{grid-template-columns:105px minmax(0,1fr)}
  .poker-action-rules li,.poker-rule-example,.poker-rule-alert{font-size:10px}
  .poker-compare-rules{padding:8px}
  .poker-rule-grid{gap:6px}
  .poker-rule-grid article{grid-template-columns:30px 60px minmax(0,1fr);gap:6px;padding:10px 8px}
  .poker-rule-grid article>b{width:26px;height:26px;font-size:13px}
  .poker-rule-grid strong{font-size:12px}
  .poker-rule-grid span{font-size:10px;line-height:1.5}
  .poker-rule-notes{margin-top:9px;padding:10px 11px;font-size:11px}
  .poker-rule-notes p{font-size:11px;line-height:1.7}
}

/* Poker action log: keep the subtitle on one line and show complete messages */
.poker-action-log .poker-section-head>div{width:100%;min-width:0}
.poker-action-log .poker-section-head p{display:block;width:100%;margin:3px 0 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;white-space:nowrap!important;overflow:visible;text-overflow:clip}
.poker-action-log #pokerActionLog{padding:2px}
.poker-action-log #pokerActionLog>p{min-width:0;align-items:start;border:2px solid #d3b267;box-shadow:0 1px 0 #ffffff inset}
.poker-action-log #pokerActionLog>p strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.poker-action-log #pokerActionLog>p span{min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word;line-height:1.55}
.poker-action-log #pokerActionLog>p b{color:#d52f27!important;font-weight:900;white-space:nowrap}
.poker-action.follow b,.poker-raise-box input{color:#d52f27;font-weight:900}
.poker-reserve-hint{grid-column:1/-1;margin:2px 0 0;color:#ffe08a;font-size:8px;font-weight:900;line-height:1.35}
.poker-quick-bets button{color:#ff7868;font-weight:900}
@media(min-width:901px){
  .poker-table-shell{grid-template-columns:minmax(0,1fr) 310px}
  .poker-action-log #pokerActionLog>p{grid-template-columns:62px minmax(0,1fr) auto;column-gap:7px;font-size:10px}
}
@media(max-width:680px){
  .poker-action-log .poker-section-head{display:block}
  .poker-action-log .poker-section-head p{font-size:9px}
  .poker-action-log #pokerActionLog>p{grid-template-columns:50px minmax(0,1fr) auto;column-gap:6px}
  .poker-action-log #pokerActionLog>p>b{grid-column:auto}
}

/* Player detail: stronger small text and cleaner five-tab record layout */
.player-profile-title p{color:#d7ebe5;font-weight:900}
.player-profile-card small,.player-profile-card span{color:#243c38;font-weight:900}
.player-profile-card .profile-tabs{align-items:stretch}
.player-profile-card .profile-tabs button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;white-space:nowrap}
.player-profile-card .profile-tabs button b{flex:0 0 auto;margin-left:0}
.coin-source-record{grid-template-columns:minmax(210px,.8fr) minmax(260px,1.2fr) 170px;border:2px solid #dfc37e;background:#fff4d8}
.coin-source-record strong i{display:inline-grid;place-items:center;width:26px;height:26px;margin-right:7px;border-radius:8px;background:#173f3c;font-style:normal}
.coin-source-record .coin-source-kind strong{display:flex;align-items:center}
.coin-source-record .coin-source-description strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.5}
.coin-source-record .coin-source-gain{gap:2px}
.coin-source-record>div:last-child b{font-size:15px}
.poker-profile-record{grid-template-columns:minmax(190px,.8fr) minmax(300px,1.35fr) minmax(260px,1fr);gap:16px;border:2px solid #d9c18c;background:#f8efd9}
.poker-profile-record>div{justify-content:center}
.poker-profile-record small{color:#354b46;font-size:10px;font-weight:900}
.poker-profile-record strong{color:#122e2b;font-size:13px;line-height:1.45}
.poker-profile-record span{color:#354b46;font-size:10px;font-weight:900;line-height:1.5}
.poker-profile-record .poker-opponents{margin:4px 0;overflow-wrap:anywhere}
.poker-profile-record>div:last-child{padding-left:14px;border-left:1px solid #d9c392}
.poker-profile-record>div:last-child .record-win-amount{margin:3px 0;font-size:13px}
@media(max-width:680px){
  .player-profile-title p{font-size:11px;line-height:1.5}
  .player-profile-card .profile-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:5px}
  .player-profile-card .profile-tabs button{flex-direction:column;gap:2px;padding:8px 2px;font-size:9px;line-height:1.2}
  .player-profile-card .profile-tabs button b{height:17px;min-width:18px;font-size:8px}
  .poker-profile-record{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:9px;padding:12px}
  .poker-profile-record small{font-size:9px}
  .poker-profile-record strong{font-size:12px;white-space:normal;overflow:visible;text-overflow:clip}
  .poker-profile-record span{font-size:9px}
  .poker-profile-record>div:last-child{grid-column:1/3;display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;justify-content:initial;gap:6px;padding:8px 0 0;border-top:1px solid #d9c392;border-left:0;text-align:left}
  .poker-profile-record>div:last-child small{margin:0}
  .poker-profile-record>div:last-child strong,.poker-profile-record>div:last-child b{margin:0;white-space:nowrap}
  .poker-profile-record>div:last-child span{grid-column:1/4;margin:0;padding-top:3px}
  .coin-source-record{grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;padding:12px;border-radius:13px;background:linear-gradient(145deg,#fff6df,#ffedc3)}
  .coin-source-record>.coin-source-kind{grid-column:1;grid-row:1;justify-content:center}
  .coin-source-record>.coin-source-kind strong{margin:3px 0;font-size:12px}
  .coin-source-record>.coin-source-kind span{font-size:8px}
  .player-profile-card .coin-source-record>.coin-source-gain{grid-column:2;grid-row:1;min-width:88px;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;padding:6px 8px;border:1px solid #efc369;border-radius:10px;background:#fff7e8;text-align:right}
  .player-profile-card .coin-source-record>.coin-source-gain small{margin:0;color:#745b32;font-size:8px}
  .player-profile-card .coin-source-record>.coin-source-gain b{margin:2px 0;color:#e13f28;font-size:18px;line-height:1.1}
  .player-profile-card .coin-source-record>.coin-source-gain span{color:#4b5d57;font-size:8px;white-space:nowrap}
  .coin-source-record>.coin-source-description{grid-column:1/3;grid-row:2;padding:9px 10px;border-top:1px solid #e2c98e;border-radius:8px;background:#f7e9c8;text-align:left}
  .coin-source-record>.coin-source-description small{margin-bottom:3px;color:#756648}
  .coin-source-record>.coin-source-description strong{margin:0;color:#173f3c;font-size:10px;line-height:1.55;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
}

/* Mobile leaderboard: replace the clipped wide table with complete player cards */
@media(max-width:680px){
  .leaderboard-page:not(.player-profile-page) .page-title-row{gap:10px}
  .leaderboard-page:not(.player-profile-page) .page-title-row>div:first-child{min-width:0}
  .leaderboard-page:not(.player-profile-page) .page-title-row p{font-size:9px;line-height:1.5}
  .leaderboard-page:not(.player-profile-page) .summary-chip{min-width:82px;padding:8px 10px}
  .ranking-card{padding:8px;overflow:visible}
  .ranking-head{display:none}
  .ranking-row{min-width:0;min-height:0;margin-bottom:8px;padding:11px 10px;display:grid;grid-template-columns:40px repeat(2,minmax(0,1fr));gap:8px 10px;border:2px solid #e1d0a9;border-radius:13px;background:#fffaf0}
  .ranking-row:last-child{margin-bottom:0}
  .ranking-row.me{border-color:#e7ad36;background:#fff0bd}
  .ranking-row .rank-badge{grid-column:1;grid-row:1/5;align-self:stretch;display:grid;place-items:center;border-radius:10px;background:#173f3c;color:#ffd36e;font-size:15px}
  .ranking-row .rank-1,.ranking-row .rank-2,.ranking-row .rank-3{font-size:21px}
  .ranking-row .ranking-player{grid-column:2/4;grid-row:1;min-width:0;margin:0;padding:6px 7px;gap:7px;border:2px solid #d9a43a;border-radius:10px;background:#fff1bd;box-shadow:0 2px 0 #b97d29;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
  .ranking-row .ranking-player:active{transform:translateY(2px);box-shadow:none}
  .ranking-row .ranking-player>span{width:31px;height:31px;flex:0 0 31px;border-radius:9px}
  .ranking-row .ranking-player strong{min-width:0;flex:1;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ranking-row .ranking-player i{display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;margin-left:auto;padding:6px 8px;border-radius:8px;background:#173f3c;color:#ffd36e;font-size:9px;font-weight:900;line-height:1;white-space:nowrap;box-shadow:0 2px 0 #082d2b}
  .ranking-row>b,.ranking-row>span{min-width:0;display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;padding:7px 8px;border-radius:8px;background:#f2e7cd;color:#172b2b;font-size:11px;font-weight:900}
  .ranking-row>b{grid-column:2;grid-row:2;color:#c7422e}
  .ranking-row>span:nth-of-type(1){grid-column:3;grid-row:2}
  .ranking-row>span:nth-of-type(2){grid-column:2;grid-row:3}
  .ranking-row>span:nth-of-type(3){grid-column:3;grid-row:3}
  .ranking-row>span:nth-of-type(4){grid-column:2;grid-row:4}
  .ranking-row>span:nth-of-type(5){grid-column:3;grid-row:4}
  .ranking-row>b::before,.ranking-row>span::before{margin-bottom:3px;color:#53645f;font-size:8px;font-weight:900;white-space:nowrap}
  .ranking-row>b::before{content:"金币余额"}
  .ranking-row>span:nth-of-type(1)::before{content:"累计赢取"}
  .ranking-row>span:nth-of-type(2)::before{content:"摇摇乐次数"}
  .ranking-row>span:nth-of-type(3)::before{content:"天龙人收购次数"}
  .ranking-row>span:nth-of-type(4)::before{content:"炸金花次数"}
  .ranking-row>span:nth-of-type(5)::before{content:"单局最高"}
}

/* Desktop leaderboard: polished full-width ranking table */
@media(min-width:681px){
  .leaderboard-page:not(.player-profile-page) .ranking-card{padding:16px;border:2px solid #d9bd7c;background:#fff8e8;box-shadow:0 16px 34px #3d321d38}
  .leaderboard-page:not(.player-profile-page) .ranking-head{margin-bottom:9px;padding:13px 16px;border-radius:12px;background:#153f3c;color:#f8dda0;font-size:10px;font-weight:900;letter-spacing:.04em}
  .leaderboard-page:not(.player-profile-page) .ranking-head span:nth-child(n+3){text-align:center}
  .leaderboard-page:not(.player-profile-page) .ranking-row{min-height:72px;margin-bottom:8px;padding:10px 16px;border:2px solid #e3d1a8;border-radius:13px;background:#f7efd9;box-shadow:0 3px 0 #d8c18d;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
  .leaderboard-page:not(.player-profile-page) .ranking-row:last-child{margin-bottom:0}
  .leaderboard-page:not(.player-profile-page) .ranking-row:hover{transform:translateY(-2px);border-color:#dda63b;box-shadow:0 5px 0 #bd8932,0 9px 18px #483b1b1f}
  .leaderboard-page:not(.player-profile-page) .ranking-row.me{border-color:#e0a631;background:linear-gradient(90deg,#fff0b6,#fff8df);box-shadow:0 4px 0 #b67a26}
  .leaderboard-page:not(.player-profile-page) .rank-badge{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#173f3c;color:#ffd36e;font-size:15px}
  .leaderboard-page:not(.player-profile-page) .rank-1,.leaderboard-page:not(.player-profile-page) .rank-2,.leaderboard-page:not(.player-profile-page) .rank-3{font-size:23px;background:#fff4cf}
  .leaderboard-page:not(.player-profile-page) .ranking-player{margin:0;padding:5px 8px;gap:11px}
  .leaderboard-page:not(.player-profile-page) .ranking-player:hover{background:#ead9ad}
  .leaderboard-page:not(.player-profile-page) .ranking-player>span{width:39px;height:39px;flex:0 0 39px;border:2px solid #dca63e;font-size:14px}
  .leaderboard-page:not(.player-profile-page) .ranking-player strong{font-size:13px;font-weight:900}
  .leaderboard-page:not(.player-profile-page) .ranking-player i{padding:4px 7px;border-radius:7px;background:#173f3c;color:#ffd675;font-size:8px}
  .leaderboard-page:not(.player-profile-page) .ranking-row>b,.leaderboard-page:not(.player-profile-page) .ranking-row>span{min-width:0;padding:9px 7px;border:1px solid #e1cea2;border-radius:9px;background:#fff9e9;color:#243c38;text-align:center;font-size:12px;font-weight:900}
  .leaderboard-page:not(.player-profile-page) .ranking-row>b{color:#d24a2f;font-size:14px}
}

/* Poker balances: show every player's remaining coins and keep mine beside betting controls */
.poker-player-balance{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:4px;padding:4px 5px;border:1px solid #f4bd454d;border-radius:7px;background:#061f1f8c}
.poker-player-balance span{min-width:0;color:#f9e6ad;font-size:7px;font-weight:900;white-space:nowrap}
.poker-player-balance b{min-width:0;color:#ffd15e;font-size:10px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.poker-controls{width:100%;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}
.poker-control-balance{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px;border:2px solid #f4bd45;border-radius:10px;background:#092d2d;color:#fff;box-shadow:inset 0 0 0 1px #ffffff12}
.poker-control-balance small{color:#f9e6ad;font-size:7px;font-weight:900}
.poker-control-balance strong{margin-top:2px;color:#ffd15e;font-size:15px;font-weight:900}
@media(min-width:901px){
  .poker-controls{grid-template-columns:100px 90px 110px 90px minmax(155px,1fr);grid-template-rows:minmax(54px,auto) auto}
  .poker-controls>.poker-control-balance{grid-column:1;grid-row:1}
  .poker-controls>.poker-action.see{grid-column:2;grid-row:1}
  .poker-controls>.poker-action.follow{grid-column:3;grid-row:1}
  .poker-controls>.poker-action.fold{grid-column:4;grid-row:1}
  .poker-controls>.poker-compare-box{grid-column:5;grid-row:1;min-width:0}
  .poker-controls>.poker-raise-box{grid-column:1/-1;grid-row:2;min-width:0;grid-template-columns:125px minmax(0,1fr) 115px;padding:7px}
  .poker-controls>.poker-raise-box .poker-quick-bets{min-width:0}
  .poker-controls>.poker-raise-box .poker-action.raise{min-width:0}
}
@media(max-width:900px){
  .poker-table,.poker-my-area,.poker-player-grid,.poker-controls,.poker-controls>*{min-width:0;max-width:100%}
  .poker-control-balance{grid-column:1/-1;min-height:46px}
  .poker-raise-box{grid-column:1/-1;min-width:0}
  .poker-quick-bets,.poker-compare-box{min-width:0}
}
@media(max-width:680px){
  .poker-table{width:100%;overflow:hidden}
  .poker-player-grid{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}
  .poker-player{width:100%;overflow:hidden}
  .poker-player-balance{margin-top:3px;padding:3px 4px}
  .poker-player-balance span{font-size:6px;overflow:hidden;text-overflow:ellipsis}
  .poker-player-balance b{font-size:9px}
  .poker-control-balance{min-height:42px;flex-direction:row;gap:8px}
  .poker-control-balance strong{margin:0;font-size:16px}
}

/* Administrator player list: live wallet and all game counters */
.admin-page .user-row{grid-template-columns:42px minmax(130px,1fr) minmax(290px,340px) 225px}
.admin-page .user-stats{min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.admin-page .user-stats .user-stat{min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;padding:6px 4px;border:1px solid #e2d1aa;border-radius:9px;background:#fff8e8;text-align:center}
.admin-page .user-stats .user-stat strong{max-width:100%;color:#173f3c;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-page .user-stats .user-stat small{margin-top:2px;color:#716f65;font-size:7px;font-weight:900;line-height:1.2}
.admin-page .user-stats .balance-stat{border-color:#e3ad43;background:#fff0bd}
.admin-page .user-stats .balance-stat strong{color:#d3492d;font-size:14px}
.admin-page .user-toggle-button{-webkit-appearance:none;appearance:none;min-width:48px;color:#a43f2f!important;-webkit-text-fill-color:#a43f2f;background:#fffaf0;font-weight:900;line-height:1.4;opacity:1}
.admin-page .user-toggle-button.activate{color:#24705b!important;-webkit-text-fill-color:#24705b;border-color:#75a58f;background:#f0f8ed}
@media(max-width:1100px){
  .admin-page .user-row{grid-template-columns:38px minmax(110px,1fr) minmax(210px,260px)}
  .admin-page .user-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-page .row-actions{grid-column:2/4;justify-content:flex-end}
}
@media(min-width:981px) and (max-width:1100px){
  .admin-grid{grid-template-columns:300px minmax(0,1fr)}
}
@media(max-width:680px){
  .admin-grid{grid-template-columns:1fr}
  .admin-page .user-row{grid-template-columns:38px minmax(0,1fr);gap:8px}
  .admin-page .user-identity{padding-right:3px}
  .admin-page .user-stats{grid-column:1/3;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .admin-page .user-stats .user-stat{display:flex;min-height:54px}
  .admin-page .user-stats .user-stat strong{font-size:13px}
  .admin-page .user-stats .balance-stat strong{font-size:15px}
  .admin-page .row-actions{grid-column:1/3;justify-content:flex-start;padding-top:4px;border-top:1px solid #e2d1aa}
}

/* Bull Bull */
.bull-page{max-width:1240px;margin:auto;padding:0 24px 55px}.bull-hero{margin:27px 0 18px;display:flex;align-items:end;justify-content:space-between;color:#fff}.bull-hero h1{margin:4px 0;font-family:Georgia,"STSong",serif;font-size:40px;color:#ffd16d}.bull-hero p{margin:0;color:#a8c5be;font-size:12px}.bull-wallet{min-width:145px;padding:11px 17px;border:1px solid #ffffff24;border-radius:14px;background:#ffffff12;display:flex;flex-direction:column}.bull-wallet small{color:#a8c5be;font-size:9px}.bull-wallet strong{color:#ffd16d;font-size:22px}.bull-lobby,.bull-table-shell,.bull-rules{padding:18px;border:1px solid #d8bf87;border-radius:20px;background:#fff8e8;box-shadow:0 14px 30px #3d321d2e}.bull-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.bull-section-head h2,.bull-section-head h3{margin:0;font-size:18px}.bull-section-head p{margin:3px 0 0;color:#536b65;font-size:10px;font-weight:900}.bull-section-head>button,.bull-table-toolbar button{border:1px solid #cfba89;border-radius:9px;background:#fff;padding:8px 12px;color:#234944;font-size:10px;font-weight:900;cursor:pointer}.bull-room-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.bull-room-card{padding:14px;border:2px solid #debd69;border-radius:15px;background:#f4ead2}.bull-room-title{display:flex;align-items:center;gap:10px}.bull-room-title>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#183f3c;font-size:22px}.bull-room-title>div{display:flex;flex-direction:column}.bull-room-title small{color:#6f7e77;font-size:8px;font-weight:900}.bull-room-title strong{font-size:14px}.bull-room-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:12px 0}.bull-room-stats span{min-width:0;padding:7px;border-radius:8px;background:#fff8e8;display:flex;flex-direction:column}.bull-room-stats small{font-size:8px;color:#6f756e}.bull-room-stats b{margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.bull-room-card>button{width:100%;border:0;border-radius:9px;padding:10px;background:#e66d31;color:#fff;font-size:11px;font-weight:900;cursor:pointer}.bull-room-card>button:disabled{background:#aaa;cursor:not-allowed}.bull-table-shell{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:14px;padding:14px}.bull-table-shell[hidden]{display:none}.bull-table-toolbar{grid-column:1/3;display:grid;grid-template-columns:100px 1fr 100px;align-items:center;text-align:center}.bull-table-toolbar h2{margin:2px 0 0;font-size:19px}.bull-table-toolbar small{font-size:8px;color:#6f756e}.bull-table-toolbar button.danger{border-color:#d8a190;color:#a84331}.bull-table{min-width:0;padding:15px;border:6px solid #d7a23d;border-radius:30px;background:radial-gradient(ellipse,#267661,#123f3c 70%);box-shadow:inset 0 0 0 4px #f3d77b,0 8px 0 #173c39;color:#fff}.bull-table-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.bull-table-summary>div{padding:8px;border:1px solid #ffffff20;border-radius:10px;background:#092d2da8;text-align:center;display:flex;flex-direction:column}.bull-table-summary small{color:#9dc4bb;font-size:8px}.bull-table-summary strong{color:#ffd263;font-size:16px}.bull-announcement{margin:9px 0;padding:9px;border-radius:10px;background:#f4bd45;color:#173f3c;text-align:center;font-size:11px;font-weight:900}.bull-announcement.error{background:#d95639;color:#fff}.bull-player-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.bull-player{min-width:0;padding:8px;border:1px solid #ffffff28;border-radius:12px;background:#082e2dcc}.bull-player.me{border-color:#ffd15e;box-shadow:0 0 0 2px #ffd15e}.bull-player.dealer{background:#164d45}.bull-player-head{display:flex;align-items:center;gap:6px;min-width:0}.bull-player-head>span{width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px;border-radius:8px;background:#f4bd45;color:#173f3c;font-size:10px;font-weight:900}.bull-player-head>div{display:flex;flex-direction:column;min-width:0;flex:1}.bull-player-head strong,.bull-player-head small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bull-player-head strong{font-size:10px}.bull-player-head small{color:#b8d0ca;font-size:7px}.bull-player-head>b{padding:3px 5px;border-radius:6px;background:#e76d31;color:#fff;font-size:8px}.bull-cards{display:flex;justify-content:center;gap:3px;margin:8px 0}.bull-card{width:34px;height:48px;padding:2px;border:2px solid #e0c78d;border-radius:6px;background:#fffdf3;color:#202b2a;box-shadow:0 3px 0 #8c642c;display:flex;flex-direction:column;justify-content:center;align-items:center}.bull-card b{font-family:Georgia,serif;font-size:13px}.bull-card span{font-size:15px}.bull-card.red{color:#d84332}.bull-card.back{background:repeating-linear-gradient(45deg,#184943 0 5px,#2b7669 5px 10px);color:#ffd16d;font-size:14px}.bull-player-result{display:grid;grid-template-columns:1fr auto;gap:2px 5px;padding-top:6px;border-top:1px solid #ffffff1d}.bull-player-result strong{color:#ffd269;font-size:11px}.bull-player-result strong i{font-style:normal;color:#ffebad}.bull-player-result span{grid-column:1/3;color:#c7dbd6;font-size:8px;font-weight:900}.bull-player-result>b{grid-column:2;grid-row:1;color:#fff1c7;font-size:8px}.bull-player-result.won span{color:#ffdc71}.bull-player-result.lost span{color:#ff9c89}.bull-controls{display:grid;grid-template-columns:minmax(220px,1fr) 120px 150px;gap:8px;margin-top:10px;padding:9px;border-radius:12px;background:#092d2dc9}.bull-controls section>small{display:block;margin-bottom:5px;color:#b9d0ca;font-size:8px;font-weight:900}.bull-bet-options{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.bull-bet-options button,.bull-controls>button{border:0;border-radius:8px;padding:9px;background:#ffffff18;color:#fff;font-size:9px;font-weight:900;cursor:pointer}.bull-bet-options button.active{background:#f4bd45;color:#173f3c}.bull-controls>button{align-self:end;background:#37766a}.bull-controls .bull-start{background:#e76d31}.bull-controls button:disabled{filter:grayscale(1);opacity:.45;cursor:not-allowed}.bull-action-log{min-width:0;padding:13px;border-radius:15px;background:#f4ead2;color:#172b2b}.bull-action-log #bullActionLog{display:grid;gap:5px;max-height:610px;overflow-y:auto}.bull-action-log #bullActionLog p{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin:0;padding:8px;border:1px solid #dfcca2;border-radius:8px;background:#fff9e9;font-size:9px;font-weight:900;line-height:1.5}.bull-action-log b.positive{color:#d43d27}.bull-action-log b.negative{color:#24705b}.bull-log-empty{text-align:center;color:#6d7770}.bull-rules{margin-top:18px}.bull-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bull-rule-grid article{padding:13px;border:2px solid #dfbd67;border-radius:13px;background:#f6ecd3}.bull-rule-grid h3{display:flex;align-items:center;gap:7px;margin:0 0 9px;color:#153c39;font-size:14px}.bull-rule-grid h3>b{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#153c39;color:#ffd16d;font-size:12px}.bull-rule-grid p{margin:6px 0;color:#253e3a;font-size:10px;font-weight:900;line-height:1.65}.bull-rank-order{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-bottom:9px;padding:9px;border-radius:9px;background:#153c39}.bull-rank-order b{padding:4px 6px;border-radius:6px;background:#fff0bd;color:#173f3c;font-size:9px}.bull-rank-order i{color:#ffd16d;font-style:normal;font-weight:900}.bull-multiplier-list{display:grid;grid-template-columns:1fr 1fr;gap:5px}.bull-multiplier-list span{display:flex;justify-content:space-between;padding:7px;border:1px solid #dfc98e;border-radius:8px;background:#fff9e9;color:#253e3a;font-size:9px;font-weight:900}.bull-multiplier-list b{color:#d64a2e}.bull-bot-rule{grid-column:1/-1}
@media(max-width:680px){.bull-page{padding:0 8px 40px}.bull-hero{margin:17px 2px 12px}.bull-hero h1{font-size:28px}.bull-hero p{font-size:9px}.bull-wallet{min-width:100px;padding:8px}.bull-wallet strong{font-size:16px}.bull-lobby,.bull-table-shell,.bull-rules{padding:9px;border-radius:15px}.bull-room-grid{grid-template-columns:1fr;gap:7px}.bull-table-shell{grid-template-columns:1fr}.bull-table-toolbar{grid-column:1;grid-template-columns:70px 1fr 70px;gap:3px}.bull-table-toolbar button{padding:7px 2px;font-size:8px}.bull-table-toolbar h2{font-size:14px}.bull-table{padding:8px;border-width:4px;border-radius:23px}.bull-table-summary{gap:4px}.bull-table-summary strong{font-size:13px}.bull-player-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.bull-player{padding:6px}.bull-cards{gap:2px}.bull-card{width:29px;height:42px}.bull-card b{font-size:11px}.bull-card span{font-size:13px}.bull-controls{grid-template-columns:1fr 1fr}.bull-controls section{grid-column:1/3}.bull-action-log{margin-top:3px}.bull-action-log #bullActionLog{max-height:270px}.bull-rule-grid{grid-template-columns:1fr;gap:7px}.bull-rule-grid article{padding:10px}.bull-bot-rule{grid-column:auto}.bull-rank-order{gap:3px}.bull-multiplier-list{grid-template-columns:1fr}}

/* Bull world news, lifetime counts and player-history layout */
.ranking-head,.ranking-row{grid-template-columns:60px minmax(150px,1fr) repeat(7,90px)}
.player-profile-card .profile-tabs{grid-template-columns:repeat(6,minmax(0,1fr))}
.bull-profile-record>div:nth-child(2) strong{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45}
@media(max-width:980px) and (min-width:681px){
  .ranking-head,.ranking-row{grid-template-columns:50px minmax(130px,1fr) repeat(7,82px);min-width:850px}
}
@media(max-width:680px){
  .ranking-row .rank-badge{grid-row:1/6}
  .ranking-row>span:nth-of-type(5){grid-column:3;grid-row:4}
  .ranking-row>span:nth-of-type(6){grid-column:2/4;grid-row:5}
  .ranking-row>span:nth-of-type(5)::before{content:"斗牛次数"}
  .ranking-row>span:nth-of-type(6)::before{content:"单局最高"}
  .player-profile-card .profile-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
}

.bull-remove-bot{flex:0 0 auto;border:1px solid #ffb69f;border-radius:6px;padding:4px 6px;background:#a74435;color:#fff;font-size:7px;font-weight:900;cursor:pointer}
.bull-remove-bot:hover{background:#d6543c}.bull-remove-bot:disabled{opacity:.45;cursor:not-allowed}
.bull-bet-safety{margin:5px 0 0;padding:5px 7px;border:1px solid #f4bd4566;border-radius:7px;background:#061f1f73;color:#ffdda0;font-size:8px;font-weight:900;line-height:1.45}
.bull-controls{grid-template-columns:minmax(220px,1fr) 105px 155px 130px}.bull-controls .bull-group{background:#f4bd45;color:#173f3c}.bull-card.selectable{cursor:pointer;transition:transform .15s,box-shadow .15s}.bull-card.selectable:hover{transform:translateY(-3px)}.bull-card.selectable.selected{transform:translateY(-6px);border-color:#ffda58;box-shadow:0 4px 0 #8c642c,0 0 0 3px #ffda58,0 0 15px #ffda58}
@media(max-width:680px){.bull-controls{grid-template-columns:1fr 1fr}.bull-controls section{grid-column:1/3}.bull-controls .bull-group{grid-column:1/3}.bull-card.selectable.selected{transform:translateY(-4px)}}
