/* Rummikub Terminal 0.7: unobtrusive missions, inventory, and cosmetics */
.wallet-pill{border:1px solid #5a576f;background:#29263d;color:#e9d8ff;border-radius:20px;font-size:10px;font-weight:850;padding:7px 11px;cursor:pointer;white-space:nowrap}
.wallet-pill:hover{border-color:#aa92ec;background:#363251}
.wallet-pill span{font-weight:550;color:#a6a0bd}
.profile-tabs{position:sticky;top:-25px;z-index:3;display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;background:#17253a;padding:5px;border:1px solid #344d62;border-radius:12px;margin:0 0 16px}
.profile-tabs::-webkit-scrollbar{display:none}
.profile-tab{position:relative;white-space:nowrap;min-height:38px;flex:1;min-width:92px;border:1px solid transparent;border-radius:8px;background:transparent;color:#a7c1d2;font-weight:850;font-size:11px;letter-spacing:.04em;cursor:pointer;padding:7px 12px}
.profile-tab:hover{background:#243951;color:#e2f8ff}
.profile-tab.active{color:#ddfaff;border-color:#367c87;background:#18414d;box-shadow:inset 0 0 16px #39e6db0b}
.tab-dot{display:inline-block;vertical-align:middle;background:#e6bb74;width:5px;height:5px;margin-left:5px;border-radius:50%;box-shadow:0 0 7px #ffca7d}
.profile-content{min-height:275px}
.profile-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:13px 0}
.profile-summary-grid button{text-align:left;display:flex;flex-direction:column;gap:8px;background:#101f30;border:1px solid #31516a;border-radius:12px;padding:15px;cursor:pointer;color:#e7f5fa}
.profile-summary-grid button:hover{background:#183648;border-color:#70cabd}
.profile-summary-grid strong{font-size:28px;letter-spacing:-.03em;color:#8df0e7}
.profile-summary-grid span{font-size:10px;letter-spacing:.045em;font-weight:800}
.profile-summary-grid small{color:#9aafc1;font-size:10px}
.profile-mini-stats{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0;color:#a5becf;font-size:11px}
.profile-mini-stats span{border-radius:30px;border:1px solid #395268;padding:8px 13px;background:#142639}
.daily-feature{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:18px;border-radius:13px;border:1px solid #82714e;background:radial-gradient(ellipse at top right,#84633828,transparent 60%),linear-gradient(140deg,#1e2e3e,#171e31);margin-bottom:20px}
.daily-feature>div{min-width:0;flex:1}.daily-feature small{font-size:10px;letter-spacing:.12em;font-weight:850;color:#ead195}
.daily-feature h3{font-size:20px;margin:8px 0 5px;color:#f9edcf;letter-spacing:-.02em}
.daily-feature p{margin:0 0 9px;max-width:530px}.daily-feature p strong{color:#efdb9e}
.daily-feature span{font-size:11px;color:#c3bda5}
.daily-feature button{white-space:nowrap}
.mission-section{margin-top:12px;margin-bottom:23px}
.section-title{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:6px 0 10px}
.section-title strong{color:#dceff7;font-size:12px;letter-spacing:.1em}
.section-title span{font-size:10px;color:#809eaf}
.mission-list{display:grid;gap:8px}
.mission-card{display:flex;align-items:center;gap:13px;border:1px solid #2a455a;background:#102335;border-radius:11px;padding:12px 13px;transition:border-color .16s ease}
.mission-card.is-ready{border-color:#528b78;background:linear-gradient(110deg,#163a37,#112637)}
.mission-card.is-done{opacity:.68}
.mission-glyph{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:9px;border:1px solid #557689;background:#203749;font-size:22px;color:#95e2de}
.mission-body{flex:1;min-width:0}.mission-body strong{display:block;font-size:12px;color:#f0f6fa}
.mission-body small{font-size:10px;color:#99b0be;display:block;margin:3px 0 7px}
.mission-progress{height:5px;background:#273f4f;border-radius:6px;overflow:hidden}.mission-progress span{height:100%;background:linear-gradient(90deg,#31b1c9,#8eefc7);display:block;border-radius:6px}
.mission-details{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#8daabd;margin-top:5px}
.mission-card.is-ready .mission-details span:last-child{color:#9fefcc}
.mission-card .mini-btn{flex:none;min-width:80px;min-height:32px;font-size:9px}
.shop-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #355368;padding-bottom:16px;margin-bottom:18px}
.shop-intro small{font-size:10px;letter-spacing:.12em;color:#8bd9db;font-weight:900}.shop-intro h3{font-size:21px;margin:5px 0;color:#e5f4f9}
.shop-intro p{margin:4px 0 0}
.coin-balance{flex:none;text-align:center;border-radius:12px;border:1px solid #87704b;background:#3b2e2544;color:#f5d59a;font-weight:850;font-size:25px;min-width:126px;padding:11px}
.coin-balance small{display:block;color:#c5af85;font-size:9px;letter-spacing:.1em;margin-top:3px}
.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.shop-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#122638;border:1px solid #304a62;border-radius:12px;padding:9px;gap:10px}
.shop-preview{height:84px;border:1px solid #416279;border-radius:9px;display:grid;place-items:center;position:relative;overflow:hidden;background:linear-gradient(135deg,#123b4b,#141e35)}
.shop-preview:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#ffffff0a 1px,transparent 1px),linear-gradient(#ffffff0a 1px,transparent 1px);background-size:17px 17px;transform:perspective(200px) rotateX(32deg) scale(1.3)}
.shop-preview>span{position:relative;font-size:35px;color:#b9f3e9;text-shadow:0 0 22px #76dcca77}
.preview-aurora{background:radial-gradient(circle at 65% 20%,#1d9180,#123e5d 65%,#11152c)}
.preview-ember{background:radial-gradient(circle at 65% 20%,#b15a29,#4e2937 66%,#10192f)}
.preview-graphite{background:linear-gradient(125deg,#172737,#444e58,#19202e)}
.preview-glass{background:linear-gradient(125deg,#b1d7e9,#568b9f,#1b3d5f)}
.preview-pulse{background:radial-gradient(ellipse,#4dbca3,#114859,#111b31)}
.preview-arcade{background:repeating-linear-gradient(90deg,#352a65 0 9px,#1a234a 9px 20px)}
.shop-copy{display:flex;flex-direction:column;gap:4px;flex:1}.shop-type{color:#7b9aac;font-size:9px;letter-spacing:.07em;font-weight:850}
.shop-copy strong{color:#e9f4f9;font-size:13px}.shop-copy small{font-size:11px;color:#92aaba;line-height:1.4}
.shop-card>.btn{min-height:34px;font-size:10px;width:100%;border-radius:8px}
.shop-card .shop-buy{background:#1b494e;border:1px solid #487c84;color:#a2eee5}
.shop-card .shop-buy:hover{background:#28606a}
.collection-defaults{display:flex;gap:6px;flex-wrap:wrap}
.collection-defaults .mini-btn{padding:8px 10px;min-height:34px}
/* Truly different unlocked table environments */
.in-game[data-theme="aurora"]{--table-a:#14554c;--table-b:#0a222f;--table-edge:#409b8d;--accent:#5cf7b1;--accent-soft:#4cf1b51b;--warm:#cbfff1}
.in-game[data-theme="ember"]{--table-a:#522e35;--table-b:#201e29;--table-edge:#ad6b57;--accent:#ffc078;--accent-soft:#ea85551d;--warm:#fff1d9}
.in-game[data-theme="aurora"] .player-card.active{background:#174b45;border-color:#5ce8ae}
.in-game[data-theme="ember"] .player-card.active{background:#543136;border-color:#efb681}
.in-game[data-theme="aurora"] .table-card:before{background-size:35px 35px;opacity:.24}
.in-game[data-theme="ember"] .table-card:before{background-size:42px 42px;opacity:.23}
/* Keep printed number colors exact and distinguishable, including with tile skins. */
.in-game[data-tiles="graphite"] .tile:not(.joker){background:linear-gradient(150deg,#485260,#222c3b);border-color:#89949a;box-shadow:0 3px 0 #121b27,0 7px 11px #0008}
.in-game[data-tiles="graphite"] .tile.red{--tc:#ff9fac}.in-game[data-tiles="graphite"] .tile.blue{--tc:#93d3ff}.in-game[data-tiles="graphite"] .tile.black{--tc:#f4f9ff}.in-game[data-tiles="graphite"] .tile.orange{--tc:#ffd097}
.in-game[data-tiles="glass"] .tile:not(.joker){background:linear-gradient(140deg,#f9ffffee,#9dbbcebf);border-color:#d4f9ff;box-shadow:0 3px 0 #638c9f,0 0 9px #9bdeec55,0 7px 15px #0007}
.in-game[data-tiles="glass"] .tile.black{--tc:#172231}
.in-game[data-fx="pulse"] .tile.selected{outline-color:#69e9c4;box-shadow:0 3px 0 #6e9b9a,0 0 0 5px #4ef7b32b,0 0 21px #58ffd59c,0 13px 16px #0009}
.in-game[data-fx="pulse"] .tile.new-play:after{background:#a9ffce;box-shadow:0 0 12px #a9ffce}
@media(max-width:900px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-summary-grid{grid-template-columns:1fr 1fr}.profile-summary-grid button:last-child{grid-column:span 2}}
@media(max-width:550px){.wallet-pill{padding:5px 6px;font-size:9px}.wallet-pill span{display:none}.in-game .top-actions{gap:3px}.level-pill{padding:5px 6px}.menu-v04 .menu-buttons{grid-template-columns:1fr 1fr}.menu-v04 .menu-buttons .btn{font-size:10px;letter-spacing:.01em;min-height:41px;padding:7px 10px}.menu-v04 .menu-buttons .btn:nth-child(3){grid-column:span 2}.menu-v04 .menu-buttons .btn:nth-child(4){grid-column:span 2}.profile-tabs{top:-18px;margin:0 0 10px;padding:4px}.profile-tab{min-width:86px;font-size:10px;padding:7px 8px}.shop-grid{grid-template-columns:1fr 1fr;gap:7px}.shop-card{padding:6px;gap:8px}.shop-preview{height:66px}.shop-copy strong{font-size:11px}.shop-copy small{font-size:10px}.shop-type{font-size:8px}.daily-feature{flex-direction:column;align-items:stretch;padding:14px}.daily-feature h3{font-size:17px}.daily-feature .btn{width:100%}.mission-card{padding:9px;gap:8px}.mission-glyph{width:28px;height:34px;flex-basis:28px;font-size:18px}.mission-card .mini-btn{min-width:69px;font-size:8px;padding:5px}.mission-details{font-size:9px}.profile-summary-grid{grid-template-columns:1fr}.profile-summary-grid button:last-child{grid-column:auto}.coin-balance{min-width:80px;font-size:18px;padding:8px}.shop-intro h3{font-size:17px}.section-title{flex-wrap:wrap}.wallet-pill span{display:none}}
@media(prefers-reduced-motion:reduce){.in-game[data-fx="pulse"] .tile.selected{animation:none}}

@media(max-width:550px){.menu-shell .top-actions>.icon-btn{display:none}.profile-tab{min-width:0;font-size:9px;padding:6px 5px}.profile-tabs{gap:2px}.menu-shell .topbar{gap:5px}.menu-shell .top-actions{gap:3px}}
