/* Separate app surface. Classic CSS remains an implementation dependency, not the visual design. */
html[data-native=true]{--native-bg:#062e2a;--native-panel:#103e38;--native-text:#f6f6ed;--native-muted:#a9c9bc;--native-mint:#a5f3cd;--gold:#a5f3cd;--felt:#062e2a;height:100%;background:var(--native-bg);color-scheme:dark;overflow:hidden}
html[data-native=true] *{box-sizing:border-box}
html[data-native=true] [hidden]{display:none!important}
html[data-native=true] body{height:100%;margin:0;overflow:hidden;background:var(--native-bg);color:var(--native-text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html[data-native=true] button,html[data-native=true] input,html[data-native=true] select,html[data-native=true] textarea{font:inherit;-webkit-tap-highlight-color:transparent}
html[data-native=true] button{min-height:44px;border-radius:14px;border:1px solid #ffffff18;background:#184c43;color:var(--native-text);box-shadow:none;font-size:14px;touch-action:manipulation}
html[data-native=true] button.primary{background:var(--native-mint);color:#062e2a;border:0;font-weight:700}
html[data-native=true] button:disabled{opacity:.4}
html[data-native=true] button:focus-visible,html[data-native=true] summary:focus-visible{outline:3px solid var(--native-mint);outline-offset:2px}
html[data-native=true] .game-shell{position:relative;display:grid;grid-template-rows:60px minmax(0,1fr) 62px;width:100%;max-width:1200px;height:100dvh;margin:auto;padding:env(safe-area-inset-top) max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left));gap:0}
html[data-native=true] .game-shell>.topbar{position:static;inset:auto;transform:none;margin:0;padding:8px 12px;display:flex;min-width:0;gap:12px;pointer-events:auto;background:transparent;border:0}
html[data-native=true] .topbar .brand{display:block!important;flex:1;font-size:19px;font-weight:750;letter-spacing:-.5px;white-space:nowrap;color:var(--native-text)}
html[data-native=true] .brand span{color:var(--native-mint)}
html[data-native=true] .brand small{display:none}
html[data-native=true] .header-actions{display:flex!important;flex:none!important;width:auto!important;gap:10px!important}
html[data-native=true] .header-actions #coin-account{flex:none!important;width:auto!important;max-width:145px!important;min-width:70px!important;border:0;background:transparent;padding:0;color:var(--native-mint);font-size:14px;box-shadow:none;overflow:visible}
html[data-native=true] .header-actions #profile-open{flex:none!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:2px!important;border:1px solid #a5f3cd66;background:#184c43;border-radius:50%}
html[data-native=true] #header-name{display:none!important}
html[data-native=true] .play-area{display:flex;flex-direction:column;min-height:0;border-radius:24px;overflow:hidden;margin:0;padding:0;background:radial-gradient(ellipse at 50% 35%,#15583f,#093c32 58%,#062e2a);box-shadow:inset 0 0 0 1px #ffffff0d}
html[data-native=true] .table{position:relative;flex:1;min-height:180px;width:100%;height:auto!important;border-radius:0;overflow:hidden;box-shadow:none;border:0;background:transparent}
html[data-native=true] .table-brand{display:none}
html[data-native=true] .opponent{gap:3px;max-width:100px}
html[data-native=true] .opponent.seat-2{top:16px;left:50%;transform:translateX(-50%)}
html[data-native=true] .opponent.seat-1{right:10px;top:46%;transform:translateY(-50%)}
html[data-native=true] .opponent.seat-3{left:10px;top:46%;transform:translateY(-50%)}
html[data-native=true] .opponent .avatar-ring{width:46px;height:46px;border:2px solid #ffffff24;box-shadow:none}
html[data-native=true] .opponent.active .avatar-ring{border-color:var(--native-mint);box-shadow:0 0 0 4px #a5f3cd14}
html[data-native=true] .opponent>.player-name{font-size:14px;max-width:100px;min-height:28px;padding:2px 4px;background:transparent;border:0;border-radius:6px;color:var(--native-muted)}
html[data-native=true] .table-center{left:50%;top:46%;transform:translate(-50%,-50%);gap:16px;align-items:center}
html[data-native=true] .indicator-group>.eyebrow,html[data-native=true] #joker{display:none}
html[data-native=true] .indicator-slot .tile,html[data-native=true] .pile-top>.tile{width:34px;height:48px;font-size:27px;border-radius:6px;box-shadow:0 3px 0 #c9c8b5}
html[data-native=true] .stock-pile{width:36px;height:50px;border-radius:6px;background:repeating-linear-gradient(45deg,#63816b,#63816b 2px,#6a8973 2px,#6a8973 5px);border:1px solid #9bbb9c;box-shadow:2px 3px 0 #466b55,4px 6px 0 #35573f}
html[data-native=true] .stock-pile b{color:#c7ddc5;font-size:12px;font-family:inherit}
html[data-native=true] .draw-control{min-width:52px;min-height:70px;border:0;background:transparent;padding:2px;opacity:1;gap:8px}
html[data-native=true] #remaining{font-size:12px;max-width:85px;line-height:1.2;color:var(--native-muted)}
html[data-native=true] .table-pile{position:absolute;width:48px;min-width:48px;min-height:62px;padding:5px;background:#ffffff03;border:1px solid #a5f3cd24;border-radius:12px;display:flex;align-items:center;justify-content:center;box-shadow:none}
html[data-native=true] .table-pile>strong,html[data-native=true] #take>span:not(.pile-top),html[data-native=true] .table-pile>small{display:none}
html[data-native=true] .pile-top{display:grid;place-items:center;width:34px;height:48px;min-height:48px;font-size:20px;color:#8aad9c;background:transparent;border:0;border-radius:5px}
html[data-native=true] .pile-0,html[data-native=true] .pile-1{right:16%}
html[data-native=true] .pile-2,html[data-native=true] .pile-3{left:16%}
html[data-native=true] .pile-1,html[data-native=true] .pile-2{top:19%}
html[data-native=true] .pile-0,html[data-native=true] .pile-3{bottom:14%}
html[data-native=true] .table-pile.action-ready{border-color:var(--native-mint);background:#a5f3cd0d}
html[data-native=true] .self-seat{display:flex!important;bottom:10px;left:50%;transform:translateX(-50%);min-height:32px;padding:2px 9px;background:#ffffff06;border:0;border-radius:30px;gap:7px;font-size:14px}
html[data-native=true] .self-seat .avatar-ring{width:28px;height:28px;box-shadow:none}
html[data-native=true] #turn-label{display:none}
html[data-native=true] .rack-section{position:relative!important;inset:auto!important;transform:none!important;flex:none;margin:0!important;padding:5px 8px 12px!important;width:100%;max-width:none;background:#062e2a;box-shadow:none;border:0;z-index:20}
html[data-native=true] .turn-strip{position:static!important;min-height:44px;display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin:0 3px 9px}
html[data-native=true] .turn-copy{flex:1;min-width:0}
html[data-native=true] .turn-copy h1{width:max-content;max-width:100%;font-size:14px;font-weight:500;line-height:1.3;padding:6px 10px;background:#ffffff06;border:1px solid #ffffff12;border-radius:99px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
html[data-native=true] #selected,html[data-native=true] .step-badge{display:none}
html[data-native=true] .turn-clock{font-size:16px;min-width:48px;padding:4px 7px;background:transparent;color:var(--native-mint);border:0;font-variant-numeric:tabular-nums}
html[data-native=true] .turn-strip .coach-feedback{font-size:12px;padding:3px 6px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
html[data-native=true] .rack-scroll{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;padding:5px 0 2px;scrollbar-width:thin;scrollbar-color:#a5f3cd55 transparent;touch-action:pan-x}
html[data-native=true] .rack{container-type:inline-size;width:100%;max-width:920px;min-width:0;margin:auto;padding:7px 6px 9px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:9px;border:1px solid #73927b44;border-radius:14px;background:#193e31;box-shadow:none;min-height:0}
html[data-native=true] .rack-row{display:grid;grid-template-columns:repeat(15,minmax(0,1fr))!important;min-height:53px;column-gap:2px;padding:0 0 4px;background:#0b2e24;border-bottom:2px solid #54745b;border-radius:5px}
html[data-native=true] .rack-group{display:flex;grid-row:1;gap:2px;min-width:0}
html[data-native=true] .rack-group>.tile{flex:1;min-width:0!important;width:100%;height:51px!important;min-height:0;max-height:none;aspect-ratio:auto;border-radius:5px;padding:3px 0;font-size:clamp(16px,4.7cqw,27px);font-family:inherit;font-weight:700;box-shadow:0 3px 0 #b7b99f;background:#fcf7e9;touch-action:none;transition:transform .12s}
html[data-native=true] .rack-group>.tile small{font-family:system-ui;font-size:9px;margin-top:2px}
html[data-native=true] .rack-group>.tile.selected{z-index:3;transform:translateY(-4px);outline:2px solid var(--native-mint);outline-offset:1px;box-shadow:0 3px 0 #b7b99f,0 0 0 4px #a5f3cd20}
html[data-native=true] #discard{flex:none;min-width:85px;min-height:44px;padding:8px 12px;font-size:14px;border-radius:13px;background:var(--native-mint);color:#062e2a;font-weight:700;box-shadow:none}
html[data-native=true] .native-message{position:static;width:100%;margin:4px 0 0;height:auto;max-height:42px;overflow:auto;font-size:12px;line-height:1.4;color:var(--native-muted)}
html[data-native=true] .drag-tip,html[data-native=true] .rack-swipe-hint,html[data-native=true] .history,html[data-native=true] footer,html[data-native=true] .rack-actions{display:none!important}
html[data-native=true] .native-nav{display:flex;align-items:center;justify-content:space-around;padding:4px 2px;gap:8px;background:#062e2a;border-top:1px solid #ffffff0d}
html[data-native=true] .native-nav>button,html[data-native=true] .native-nav .game-menu>summary{position:relative;display:grid;place-items:center;width:48px!important;min-width:48px;min-height:48px;height:48px;margin:0;padding:12px;border:0;background:transparent;color:var(--native-muted);border-radius:15px;box-shadow:none;inset:auto;list-style:none;font-size:0}
html[data-native=true] .native-nav button:hover,html[data-native=true] .native-nav button[aria-expanded=true]{background:#a5f3cd13;color:var(--native-mint)}
html[data-native=true] .native-nav svg,html[data-native=true] .native-media-button svg{width:23px;height:23px;display:block}
html[data-native=true] .native-nav .chat-launch::before{display:none}
html[data-native=true] .native-nav .chat-launch>span:first-of-type{display:none}
html[data-native=true] .native-nav .unread-badge,html[data-native=true] .native-nav .friend-request-count{position:absolute;right:1px;top:1px;bottom:auto;left:auto;font-size:12px;z-index:2}
html[data-native=true] .native-nav .native-nav-item{overflow:visible}
html[data-native=true] .game-menu{position:static;z-index:auto}
html[data-native=true] .coach-drawer{display:none;position:fixed;inset:auto max(8px,calc((100vw - 560px)/2)) calc(70px + env(safe-area-inset-bottom));margin:0;z-index:120;border:1px solid #ffffff20;border-radius:24px;background:#103e38;max-height:calc(100dvh - 92px);overflow:auto;box-shadow:0 -16px 60px #0007}
html[data-native=true] .coach-drawer[open]{display:block}
html[data-native=true] .coach-drawer>summary{position:sticky;top:0;background:#103e38;z-index:2;padding:8px 16px;min-height:52px}
html[data-native=true] .drawer-caption,html[data-native=true] .coach-heading>span{display:none}
html[data-native=true] .native-coach-close{padding:0;width:44px;height:44px;border:0;background:transparent;color:var(--native-text);font-size:28px}
html[data-native=true] .coach{background:transparent;padding:16px;gap:12px}
html[data-native=true] .coach-avatar{display:none}
html[data-native=true] .coach-copy{width:100%}
html[data-native=true] #coach-text{font-size:16px;line-height:1.5}
html[data-native=true] .hint-button{background:var(--native-mint);color:#062e2a;border:0;width:100%}
html[data-native=true] dialog{position:fixed;inset:auto 0 0;margin:auto;width:min(100%,560px);max-width:100%;max-height:calc(100dvh - 24px);padding:20px 20px max(20px,env(safe-area-inset-bottom));background:#103e38;border:1px solid #ffffff18;border-radius:26px 26px 0 0;color:var(--native-text);box-shadow:0 -24px 100px #0005;overflow:auto}
html[data-native=true] dialog::backdrop{background:#001d1acd;backdrop-filter:blur(5px)}
html[data-native=true] dialog h2{color:var(--native-text);font-size:24px;letter-spacing:-.6px;margin:0}
html[data-native=true] .dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;position:sticky;top:-20px;z-index:4;background:#103e38;padding:8px 0 12px;margin:0}
html[data-native=true] .dialog-heading .eyebrow{display:none}
html[data-native=true] .icon-button,html[data-native=true] .menu-close{display:grid;place-items:center;min-width:44px;height:44px;min-height:44px;padding:4px;background:#ffffff08;border:0;color:var(--native-text);font-size:25px}
html[data-native=true] dialog .field,html[data-native=true] dialog label{font-size:14px;line-height:1.5}
html[data-native=true] input:not([type=checkbox]):not([type=file]),html[data-native=true] select,html[data-native=true] textarea{min-height:46px;border:1px solid #ffffff20;border-radius:12px;background:#062e2a;color:var(--native-text);padding:10px 12px;font-size:16px;max-width:100%}
html[data-native=true] dialog p,html[data-native=true] .caption{color:var(--native-muted);font-size:14px;line-height:1.5}
html[data-native=true] dialog button{font-size:14px}
html[data-native=true] .table-menu-dialog .menu-content{display:flex;flex-direction:column;gap:10px;background:transparent;border:0;box-shadow:none;padding:0;color:var(--native-text)}
html[data-native=true] .session-bar{display:flex;flex-direction:column;gap:10px;background:transparent;border:0;padding:0}
html[data-native=true] .mode-pill{background:transparent;color:var(--native-muted);font-size:12px}
html[data-native=true] .language-switch{display:flex;width:100%;justify-content:space-between}
html[data-native=true] .language-switch select{width:100%;max-width:none}
html[data-native=true] .native-nav #leaderboard-open{display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:3px;min-height:58px}
html[data-native=true] .native-nav #leaderboard-open svg{width:23px;height:23px}
html[data-native=true] .profile-preview{padding:14px;border:0;background:#a5f3cd08;border-radius:18px}
html[data-native=true] .profile-preview img{width:64px;height:64px;border-radius:50%;border:2px solid #a5f3cd66}
html[data-native=true] .profile-preview p{display:none}
html[data-native=true] .profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}
html[data-native=true] .profile-stats>div{padding:10px;background:#ffffff05;border:0;border-radius:12px}
html[data-native=true] .profile-stats strong{color:var(--native-mint);font-size:24px}
html[data-native=true] .profile-stats span{font-size:12px;color:var(--native-muted)}
html[data-native=true] #avatar-options{display:flex;overflow:auto;gap:9px;max-height:86px;flex-wrap:nowrap;padding:5px}
html[data-native=true] .avatar-option{flex:0 0 52px;width:52px;height:52px;min-height:52px;padding:0;border:2px solid transparent;border-radius:50%;overflow:hidden}
html[data-native=true] .avatar-option img{width:100%;height:100%;object-fit:cover}
html[data-native=true] #profile-save{width:100%;margin:12px 0}
html[data-native=true] #signout{display:block;text-align:center;padding:14px;color:var(--native-muted)}
html[data-native=true] .native-info{font-size:14px;color:var(--native-muted);border:0;padding:4px 0}
html[data-native=true] .native-info>summary{cursor:pointer;min-height:32px;display:flex;align-items:center;width:max-content;color:var(--native-muted)}
html[data-native=true] .native-info p{margin:4px 0 12px;font-size:14px!important}
html[data-native=true] .chat-panel{position:fixed;inset:calc(var(--chat-viewport-top,0px) + 8px) max(8px,calc((100vw - 560px)/2)) auto!important;margin:0!important;width:auto!important;height:calc(var(--chat-viewport-height,100dvh) - 78px - env(safe-area-inset-bottom))!important;max-width:none!important;max-height:none!important;background:#103e38;border-radius:24px;border:1px solid #ffffff18;z-index:130;overflow:hidden;padding:14px;box-shadow:0 0 90px #0006}
html[data-native=true] .chat-panel .dialog-heading{top:0;padding:0 0 8px}
html[data-native=true] .chat-panel h2{color:var(--native-text);font-size:22px}
html[data-native=true] .chat-panel .native-info{flex:none}
html[data-native=true] .chat-panel .caption{font-size:12px}
html[data-native=true] .chat-messages,html[data-native=true] .friend-messages{flex:1;min-height:80px;background:transparent;border:0;overflow:auto;padding:6px 0}
html[data-native=true] .chat-message,html[data-native=true] .friend-message{border-radius:16px;background:#1a5145;border:0;padding:10px 12px;font-size:16px}
html[data-native=true] .chat-message.mine,html[data-native=true] .friend-message.mine{background:#a5f3cd;color:#062e2a}
html[data-native=true] #chat-form,html[data-native=true] #friend-form,html[data-native=true] #coach-form{display:flex;gap:8px;align-items:flex-end}
html[data-native=true] #chat-form textarea,html[data-native=true] #friend-form textarea,html[data-native=true] #coach-form textarea{flex:1;min-width:0;height:46px;min-height:46px;max-height:120px}
html[data-native=true] .native-media-button{display:grid;place-items:center;min-width:44px;width:44px;padding:9px}
html[data-native=true] .chat-media-tools,html[data-native=true] .friend-media-tools{gap:8px;padding:0}
html[data-native=true] .friend-chat-dialog{height:calc(100dvh - 32px);display:flex;flex-direction:column}
html[data-native=true] .friend-chat-dialog:not([open]){display:none}
html[data-native=true] .friend-row,html[data-native=true] .social-player-row,html[data-native=true] .opponent-actions{border-radius:15px;background:#ffffff05;border-color:#ffffff10;padding:12px}
html[data-native=true] .friend-toolbar{display:flex;gap:8px;flex-wrap:wrap}
html[data-native=true] .friend-toolbar input{flex:1;min-width:140px}
html[data-native=true] .coin-lobby{position:fixed;inset:60px max(8px,calc((100vw - 1160px)/2)) calc(64px + env(safe-area-inset-bottom));z-index:50;border-radius:24px;background:#062e2a;overflow:auto;padding:16px;border:1px solid #ffffff15}
html[data-native=true] .coin-lobby-inner{width:100%;max-width:920px;margin:auto;padding:0}
html[data-native=true] .coin-lobby-head{flex-wrap:nowrap;gap:8px;align-items:center}
html[data-native=true] .coin-lobby-head>div{flex:1;min-width:0}
html[data-native=true] .coin-lobby-head h2{font-size:24px;color:var(--native-text);letter-spacing:-.6px}
html[data-native=true] .coin-lobby-head .eyebrow,html[data-native=true] .coin-lobby-lead{display:none}
html[data-native=true] .coin-lobby-head p{font-size:14px}
html[data-native=true] .coin-balance{border:0;background:#a5f3cd0d;color:var(--native-mint);box-shadow:none}
html[data-native=true] #lobby-help{min-width:44px;padding:10px;border:0;background:#ffffff08;color:var(--native-text)}
html[data-native=true] #lobby-help span{display:none}
html[data-native=true] .coin-groups{margin-top:16px;gap:6px}
html[data-native=true] .coin-group{border:0;background:#ffffff08;padding:10px 14px;border-radius:12px;min-height:44px;font-size:14px}
html[data-native=true] .coin-group.selected{background:var(--native-mint);color:#062e2a}
html[data-native=true] .coin-navigation{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;gap:8px;margin:8px 0}
html[data-native=true] .coin-navigation>.quiet{background:#ffffff05;border:0;border-radius:12px;color:var(--native-muted)}
html[data-native=true] .coin-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow:visible}
html[data-native=true] .coin-card{flex:none;display:flex;flex-direction:column;min-height:230px;border:1px solid #a5f3cd25;border-radius:20px;background:#103e38;box-shadow:none}
html[data-native=true] .coin-card-art{height:90px;width:100%;flex:none;min-height:0;background:#ffffff03}
html[data-native=true] .coin-art-halo{display:none}
html[data-native=true] .coin-art-tile{border:0;background:#fcf7e9;color:#b63535;box-shadow:0 3px 0 #b7b99f;top:14px;left:calc(50% - 30px);font-family:Georgia,serif;transform:rotate(-9deg) scale(.8)}
html[data-native=true] .coin-art-tile.tile-b{color:#176b91;left:calc(50% + 2px);top:18px;transform:rotate(9deg) scale(.8)}
html[data-native=true] .coin-art-coins{display:none}
html[data-native=true] .coin-card-copy{display:flex;flex-direction:column;gap:6px;padding:14px}
html[data-native=true] .coin-card h3{font-size:14px;color:var(--native-muted);font-weight:500}
html[data-native=true] .coin-card strong{font-size:26px;color:var(--native-text)}
html[data-native=true] .coin-card p{font-size:14px;margin:0 0 4px}
html[data-native=true] .coin-card button{width:100%;min-height:44px;padding:10px}
html[data-native=true] .coin-page-caption{font-size:12px;color:var(--native-muted)}
html[data-native=true] .wheel-panel{display:flex;flex-direction:row;text-align:left;padding:14px;gap:16px;margin-top:18px;background:#103e38;border:1px solid #ffffff10;border-radius:20px;box-shadow:none}
html[data-native=true] .wheel-visual{flex:0 0 100px;height:108px}
html[data-native=true] .coin-wheel{width:96px;height:96px;filter:none}
html[data-native=true] .wheel-copy h3{font-size:18px;color:var(--native-text)}
html[data-native=true] .wheel-copy p{font-size:14px}
html[data-native=true] .wheel-copy .eyebrow{display:none}
html[data-native=true] .table-audience{position:absolute;top:60px;left:16px;right:16px;z-index:21;margin:0;padding:6px 8px;font-size:12px;pointer-events:none;background:#103e38;border-radius:10px}
html[data-native=true] .guest-banner{position:absolute;top:62px;left:20px;z-index:40;padding:4px 8px;font-size:12px;border:0;background:transparent;color:var(--native-muted);max-width:100px}
html[data-native=true] .guest-banner strong{font-size:12px}
html[data-native=true] .guest-banner p,html[data-native=true] .guest-banner #guest-signin{display:none}
/* A real start screen, separate from the table and its empty rack. */
html[data-native=true] .native-home .play-area{background:#062e2a;box-shadow:none;overflow:auto;border-radius:0}
html[data-native=true] .native-home .table{min-height:100%;flex:1;overflow:visible}
html[data-native=true] .native-home .table-center,html[data-native=true] .native-home #opponents,html[data-native=true] .native-home .discard-piles,html[data-native=true] .native-home #self-seat,html[data-native=true] .native-home .rack-section{display:none!important}
html[data-native=true] .native-home .welcome{position:static;inset:auto;transform:none;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;width:100%;min-height:100%;max-width:420px;margin:auto;padding:28px 22px;background:transparent;border:0;box-shadow:none;overflow:visible}
html[data-native=true] .welcome .eyebrow,html[data-native=true] #welcome-subtitle{display:none}
html[data-native=true] .native-welcome-mark{width:84px;height:84px;border-radius:24px;margin-bottom:8px;box-shadow:0 0 80px #a5f3cd0d}
html[data-native=true] #welcome-title{font-size:44px;letter-spacing:-1.7px;font-weight:650;margin:0 0 18px;color:var(--native-text)}
html[data-native=true] .welcome button{width:100%;min-height:52px;border-radius:16px;font-size:16px;margin:0;padding:12px 18px}
html[data-native=true] #guest-start{background:var(--native-mint);border:0;color:#062e2a;font-weight:700}
html[data-native=true] #native-signin{background:#184c43;border:1px solid #a5f3cd20}
html[data-native=true] #native-help{width:auto;min-height:44px;background:transparent;border:0;color:var(--native-muted);font-size:14px}
html[data-native=true] .native-access button,html[data-native=true] .native-access>a{display:block;width:100%;padding:14px;margin:8px 0;min-height:48px;border-radius:14px;text-align:center;font-size:16px;text-decoration:none}
html[data-native=true] .native-access .dialog-heading button{width:44px;margin:0;padding:0}
html[data-native=true] .native-access>a{color:var(--native-muted);background:#ffffff06}
html[data-native=true] .native-access .google-signin{background:#184c43;color:var(--native-text);border:1px solid #ffffff18}
html[data-native=true] .result-dialog{text-align:center}
html[data-native=true] .result-trophy{font-size:54px;margin:16px auto}
html[data-native=true] .result-title{font-size:28px}
html[data-native=true] .result-actions button{width:100%;min-height:50px}
html[data-native=true] .winning-hand{padding:14px 0;overflow:auto}
@media(max-width:700px){html[data-native=true] .coin-cards{grid-template-columns:1fr}html[data-native=true] .coin-card{flex-direction:row;min-height:116px}html[data-native=true] .coin-card-art{width:78px;flex:0 0 78px;height:auto}html[data-native=true] .coin-art-tile{top:26px;left:5px;transform:rotate(-9deg) scale(.65)}html[data-native=true] .coin-art-tile.tile-b{top:28px;left:28px;transform:rotate(9deg) scale(.65)}html[data-native=true] .coin-card-copy{display:grid;grid-template-columns:1fr auto;padding:12px;gap:3px;flex:1;min-width:0}html[data-native=true] .coin-card h3{grid-column:1}html[data-native=true] .coin-card strong{grid-column:1;font-size:24px}html[data-native=true] .coin-card p{grid-column:1;font-size:12px}html[data-native=true] .coin-card button{grid-column:2;grid-row:1/4;width:auto;min-width:74px}html[data-native=true] .coin-navigation{grid-template-columns:24px minmax(0,1fr) 24px;gap:5px}html[data-native=true] .coin-lobby{padding:12px}html[data-native=true] .coin-lobby-head h2{font-size:22px}}
@media(min-width:700px){html[data-native=true] .rack-section{padding:6px 24px 16px!important}html[data-native=true] .rack-group>.tile{height:59px!important;font-size:31px}html[data-native=true] .rack-row{min-height:61px}html[data-native=true] .opponent .avatar-ring{width:56px;height:56px}html[data-native=true] .opponent.seat-1{right:8%}html[data-native=true] .opponent.seat-3{left:8%}html[data-native=true] .pile-top,html[data-native=true] .pile-top>.tile{width:42px;height:58px;font-size:32px}html[data-native=true] .table-pile{width:56px;height:72px}html[data-native=true] .native-home .welcome{max-width:410px}}
@media(orientation:landscape) and (max-height:600px){html[data-native=true] .game-shell{grid-template-rows:44px minmax(0,1fr) 48px}html[data-native=true] .game-shell>.topbar{padding:0 12px}html[data-native=true] .topbar .brand{font-size:18px}html[data-native=true] .rack-section{padding:2px 12px 5px!important}html[data-native=true] .table{min-height:100px}html[data-native=true] .rack{padding:4px 6px 7px;gap:6px;max-width:900px}html[data-native=true] .rack-row{min-height:37px;padding-bottom:2px}html[data-native=true] .rack-group>.tile{height:35px!important;font-size:24px}html[data-native=true] .rack-group>.tile small{font-size:9px;margin-top:0}html[data-native=true] .turn-strip{min-height:40px;margin-bottom:3px}html[data-native=true] .turn-clock{font-size:14px;padding:2px 6px}html[data-native=true] .turn-copy h1{font-size:14px;padding:4px 8px}html[data-native=true] #discard{min-height:40px;padding:6px 12px}html[data-native=true] .native-nav>button,html[data-native=true] .native-nav .game-menu>summary{height:44px;min-height:44px;padding:10px}html[data-native=true] .opponent.seat-2{top:2px;flex-direction:row;max-width:180px}html[data-native=true] .opponent .avatar-ring{width:30px;height:30px}html[data-native=true] .opponent>.player-name{min-height:22px;padding:1px 4px;font-size:14px}html[data-native=true] .table-center{top:65%;gap:18px}html[data-native=true] .table-pile{min-height:42px;width:34px;padding:3px;border-radius:8px}html[data-native=true] .pile-top,html[data-native=true] .pile-top>.tile{width:24px;height:34px;font-size:22px}html[data-native=true] .pile-1,html[data-native=true] .pile-2{top:2%}html[data-native=true] .pile-0,html[data-native=true] .pile-3{bottom:2%}html[data-native=true] .indicator-slot .tile{width:24px;height:34px;font-size:22px}html[data-native=true] .stock-pile{width:26px;height:34px}html[data-native=true] .draw-control{min-height:45px;gap:3px}html[data-native=true] .self-seat{display:none!important}html[data-native=true] .coin-lobby{inset:44px max(8px,calc((100vw - 1160px)/2)) 50px}html[data-native=true] .coach-drawer{bottom:54px;max-height:calc(100dvh - 64px)}html[data-native=true] .native-message{margin:2px 0 0;max-height:17px}html[data-native=true] .native-home .welcome{display:grid;grid-template-columns:80px minmax(0,300px);gap:8px 24px;max-width:500px;min-height:100%;padding:12px;align-content:center}html[data-native=true] .native-welcome-mark{width:76px;height:76px;grid-column:1;grid-row:1/5;margin:0}html[data-native=true] #welcome-title{font-size:32px;grid-column:2;margin:0 0 6px}html[data-native=true] .welcome button{min-height:44px;padding:8px 16px;grid-column:2}html[data-native=true] .guest-banner{top:44px}}
@media(max-width:360px){html[data-native=true] .rack-section{padding:4px 5px 8px!important}html[data-native=true] .rack-row{min-height:47px}html[data-native=true] .rack-group>.tile{height:45px!important}html[data-native=true] #discard{min-width:74px;padding:8px}html[data-native=true] .turn-strip{gap:4px;margin:0 0 6px}html[data-native=true] .turn-copy h1{padding:6px 7px}html[data-native=true] .opponent .avatar-ring{width:38px;height:38px}html[data-native=true] .opponent>.player-name{max-width:82px;font-size:14px}html[data-native=true] .pile-0,html[data-native=true] .pile-1{right:15%}html[data-native=true] .pile-2,html[data-native=true] .pile-3{left:15%}}
@media(prefers-reduced-motion:reduce){html[data-native=true] *{transition:none!important;animation:none!important}}
/* Explicit native overrides for legacy ID selectors and drawer geometry. */
html[data-native=true] #friends-dialog,html[data-native=true] #friend-chat-dialog{inset:auto 0 0;margin:auto;width:min(100%,560px);height:calc(var(--chat-viewport-height,100dvh) - 24px);max-height:calc(var(--chat-viewport-height,100dvh) - 24px);top:auto;padding:20px;border:1px solid #ffffff18;border-radius:26px 26px 0 0;background:#103e38}
html[data-native=true] #friends-dialog .dialog-heading,html[data-native=true] #friend-chat-dialog .dialog-heading,html[data-native=true] #chat-panel .dialog-heading{background:#103e38;top:0;flex:none;min-height:52px;padding:0 0 10px}
html[data-native=true] #friends-dialog h2{font-size:24px}
html[data-native=true] #friends-dialog .friend-name-link{font-size:14px;background:transparent;border:0;min-height:24px;padding:2px 0;color:var(--native-text)}
html[data-native=true] #friends-dialog .friend-presence{font-size:12px}
html[data-native=true] #friends-dialog .friend-row{padding:12px 10px;gap:8px;margin:6px 0;min-height:66px;border:0;border-radius:16px;background:#ffffff05}
html[data-native=true] #friends-dialog .contact-actions button{width:36px;min-width:36px;min-height:44px;height:44px;background:transparent;border:0}
html[data-native=true] #friends-dialog .friend-toolbar input{font-size:16px;height:46px}
html[data-native=true] #friends-dialog .friend-toolbar button{font-size:14px;min-height:46px}
html[data-native=true] #friends-dialog details{border-color:#ffffff12}
html[data-native=true] #chat-panel{border-radius:24px;background:#103e38;padding:14px;z-index:221;max-height:calc(var(--chat-viewport-height,100dvh) - 78px)!important;overflow:hidden}
html[data-native=true] #friend-chat-dialog .friend-messages{max-height:none;flex:1;min-height:0}
html[data-native=true] #stock{border:0;background:transparent;box-shadow:none;outline:none}
html[data-native=true] #stock.action-ready .stock-pile{box-shadow:0 0 0 2px var(--native-mint),2px 3px 0 #466b55,4px 6px 0 #35573f;animation:none}
html[data-native=true] #stock.finish-ready{outline:2px solid var(--native-mint);outline-offset:3px;border-radius:12px}
html[data-native=true] #stock .stock-pile,html[data-native=true] #stock span{filter:none}
html[data-native=true] .self-seat>span:nth-child(2){background:transparent;border:0;padding:0;margin:0}
html[data-native=true] .self-seat.active .avatar-ring{box-shadow:0 0 0 3px #a5f3cd20}
html[data-native=true] #rack .tile small{font-size:9px;line-height:1;margin-top:2px}
html[data-native=true] #rack .tile{border-top-width:2px}
html[data-native=true] #rack .tile small::before,html[data-native=true] #rack .tile small::after{display:none}
html[data-native=true] .learning-guide{display:grid;grid-template-columns:1fr;gap:8px}
html[data-native=true] .learning-guide strong,html[data-native=true] .visual-advice>strong{color:var(--native-mint)}
html[data-native=true] .learning-guide>div,html[data-native=true] .visual-advice{background:#ffffff05;border-color:#ffffff15}
html[data-native=true] .native-lessons{width:100%;font-size:14px;border-top:1px solid #ffffff12;padding-top:8px}
html[data-native=true] .native-lessons summary{min-height:44px;display:flex;align-items:center;color:var(--native-muted);cursor:pointer}
html[data-native=true] .coin-history{border-color:#ffffff15;background:#ffffff04}
html[data-native=true] .upload-button{background:#184c43;border:1px solid #ffffff18;border-radius:14px;min-height:44px;padding:10px 14px}
@media(orientation:landscape) and (max-height:600px){html[data-native=true] .table-pile{height:42px;min-height:42px}html[data-native=true] #rack .tile{font-size:23px}html[data-native=true] #rack .tile small{font-size:8px;margin-top:1px}html[data-native=true] #friends-dialog,html[data-native=true] #friend-chat-dialog{height:calc(var(--chat-viewport-height,100dvh) - 12px);max-height:calc(var(--chat-viewport-height,100dvh) - 12px)}}
html[data-native=true] .native-profile-more>summary,html[data-native=true] .native-profile-editor>summary{display:flex;align-items:center;min-height:48px;padding:12px 14px;background:#ffffff05;border:1px solid #ffffff10;border-radius:14px;color:var(--native-muted);font-size:14px;cursor:pointer;margin:8px 0}
html[data-native=true] .native-profile-editor>summary{color:var(--native-mint)}
html[data-native=true] .native-profile-editor fieldset{padding:12px 0;border:0}
html[data-native=true] #profile-dialog #notifications-open,html[data-native=true] #profile-dialog .coin-history{width:100%;margin:8px 0;border-radius:14px;background:#ffffff05;border:1px solid #ffffff10;text-align:left;padding:14px;font-size:14px;color:var(--native-muted)}
/* Unread counts stay visible; transient banners must never intercept a sheet's close control. */
html[data-native=true] #native-rack-zoom{display:grid;place-items:center;flex:none;width:44px;min-width:44px;min-height:44px;padding:10px;background:transparent;border:0;color:var(--native-muted);order:2}
html[data-native=true] #native-rack-zoom svg{width:22px;height:22px}
html[data-native=true] #native-rack-zoom[aria-pressed=true]{color:var(--native-mint);background:#ffffff08}
html[data-native=true] .native-rack-enlarged .rack{min-width:540px}
html[data-native=true] #rack .tile{font-size:min(27px,var(--native-tile-font,24px))!important}
@media(orientation:landscape) and (max-height:600px){html[data-native=true] #rack .tile{font-size:min(23px,var(--native-tile-font,23px))!important}html[data-native=true] #native-rack-zoom{min-height:40px;height:40px}}
html[data-native=true] #watch-dialog{background:#062e2a;padding:20px;max-width:100%;border-radius:24px 24px 0 0;border:1px solid #ffffff18}
html[data-native=true] #watch-dialog .dialog-heading{background:#062e2a}
html[data-native=true] .spectator-board{background:radial-gradient(ellipse at 50% 30%,#15583f,#093c32);border:1px solid #ffffff10;border-radius:24px;box-shadow:none}
html[data-native=true] .watch-hand{background:#193e31;border-color:#73927b44;border-radius:14px}
html[data-native=true] #opponent-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html[data-native=true] #opponent-stats>div{background:#ffffff05;border:0;border-radius:12px;padding:10px}
html[data-native=true] #opponent-stats strong{color:var(--native-mint)}
html[data-native=true] #friend-table-picker{background:#103e38;border-color:#ffffff18;border-radius:26px 26px 0 0;inset:auto 0 0;margin:auto;max-width:100%;width:min(560px,100%);max-height:calc(100dvh - 24px)}
html[data-native=true] #friend-table-picker .table-pick-search input{font-size:16px}
html[data-native=true] .winning-hand{background:#193e31;border:1px solid #ffffff15;border-radius:16px;box-shadow:none;padding:14px;display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
html[data-native=true] .winning-group{display:flex;gap:3px;border:0}
html[data-native=true] .winning-tile{width:30px;height:44px;font-size:24px;border-radius:5px;box-shadow:0 3px 0 #b7b99f}
html[data-native=true] .winning-tile small{font-size:8px;margin-top:3px}
html[data-native=true] #friends-open,html[data-native=true] #chat-open{font-size:0!important}
html[data-native=true] .coin-lobby-open .native-nav>button:first-child{color:var(--native-mint);background:#a5f3cd10}
html[data-native=true] #welcome-title{font-family:inherit}
html[data-native=true] #welcome>#google-welcome,html[data-native=true] #welcome>#email-welcome,html[data-native=true] #welcome>#whatsapp-welcome,html[data-native=true] #welcome>#manual-welcome,html[data-native=true] #welcome>#signin{display:none}
html[data-native=true] .native-profile-placeholder{display:none}
html[data-native=true] .native-profile-placeholder svg{width:23px;height:23px}
html[data-native=true] .native-home:has(#native-signin:not([hidden])) #header-avatar{display:none}
html[data-native=true] .native-home:has(#native-signin:not([hidden])) .native-profile-placeholder{display:block}
html[data-native=true] .native-home:has(#native-signin:not([hidden])) .coin-account-label{display:none}
html[data-native=true].coin-lobby-open .native-nav>button:first-child{color:var(--native-mint);background:#a5f3cd10}
/* Live recording changes the button label to Stop; leave enough room for that essential state. */
html[data-native=true] .native-media-button{width:auto;min-width:44px}

/* Persistent coach: useful feedback and the real hint action beside the two-row rack. */
html[data-native=true] .native-coach-bar{display:flex;align-items:center;gap:8px;min-height:60px;max-width:920px;margin:7px auto 0;padding:5px 8px;border:1px solid #a5f3cd26;border-radius:14px;background:#103e38}
html[data-native=true] #native-coach-preview{flex:1;min-width:0;text-align:left;border:0;background:transparent;padding:0 3px;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:center;color:var(--native-muted);font-size:14px}
html[data-native=true] #native-coach-preview>strong{color:var(--native-mint);font-size:14px}
html[data-native=true] #native-coach-preview>.coach-feedback{background:transparent;border:0;padding:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
html[data-native=true] #native-coach-tip{grid-column:1/-1;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;line-height:1.4;font-size:14px;margin-top:3px}
html[data-native=true] .native-coach-bar #native-coach-hint{flex:none;width:auto;min-width:72px;min-height:44px;padding:8px 12px}
html[data-native=true] .native-home .native-coach-bar{display:none}
@media(max-height:650px){html[data-native=true] .table{min-height:140px}html[data-native=true] .native-coach-bar{min-height:52px;margin-top:4px;padding:3px 6px}}
@media(orientation:landscape) and (max-height:600px){html[data-native=true] .table{min-height:80px}html[data-native=true] .native-coach-bar{min-height:48px;margin-top:3px}html[data-native=true] #native-coach-preview{grid-template-columns:auto auto minmax(0,1fr)}html[data-native=true] #native-coach-tip{grid-column:auto;margin-top:0}html[data-native=true] #native-coach-preview>.coach-feedback{max-width:160px}html[data-native=true] .rack-section{padding-bottom:3px!important}}
html[data-native=true] .winning-jokers{width:100%;font-size:14px;color:var(--native-muted);margin:4px 0 0;text-align:center;line-height:1.5}
html[data-native=true] #native-coach-preview>.coach-feedback{margin:0}
@media(orientation:landscape) and (max-height:600px){html[data-native=true] .rack{padding:2px 6px 3px;gap:3px}html[data-native=true] .rack-row{min-height:35px;padding:0;border-bottom-width:1px}html[data-native=true] .rack-group>.tile{height:33px!important}}
@media(orientation:landscape) and (max-height:600px){html[data-native=true] #rack .rack-row{min-height:35px}}

html[data-native=true] .topbar .brand{display:flex!important;align-items:center;gap:7px}html[data-native=true] .brand .brand-wordmark{color:var(--native-text)}html[data-native=true] .brand .brand-wordmark b{color:var(--native-mint)}html[data-native=true] .brand .brand-mark{width:28px;height:28px}html[data-native=true] .native-welcome-mark{object-fit:contain;border-radius:0;box-shadow:none}
/* Joy and achievements stay compact inside the existing native sheets. */

/* Shared lobby behavior, with the classic table palette in the native layout. */
html[data-native=true] .coin-card{border:2px solid #d1aa5a;background:linear-gradient(140deg,#2c7369,#18413e 53%,#13252c);box-shadow:0 8px 20px #03181660}
html[data-native=true] .coin-card.theme-1{border-color:#82cabd;background:linear-gradient(140deg,#3b827c,#155557 53%,#132b39)}
html[data-native=true] .coin-card.theme-2{border-color:#e49a8a;background:linear-gradient(140deg,#a8636e,#683c62 53%,#26263c)}
html[data-native=true] .coin-card.theme-3{border-color:#c2a6de;background:linear-gradient(140deg,#6a67a1,#363c74 53%,#1c2e45)}
html[data-native=true] .coin-card.theme-4{border-color:#f7c777;background:linear-gradient(140deg,#ae744f,#80543b 53%,#283235)}
html[data-native=true] .coin-card.theme-5{border-color:#8bcbb5;background:linear-gradient(140deg,#498a6e,#2b605f 53%,#1a353c)}
html[data-native=true] .coin-card-art{background:radial-gradient(ellipse at 50% 95%,#ffd67b99,transparent 64%)}
html[data-native=true] .coin-art-halo{display:block}
html[data-native=true] .coin-art-coins{display:block}
html[data-native=true] .coin-card h3{color:#ffe6a8;font-size:16px;font-weight:700}
html[data-native=true] .coin-lobby{overflow-x:hidden}
html[data-native=true] .coin-navigation{grid-template-columns:44px minmax(0,1fr) 44px}
html[data-native=true] .coin-navigation>.quiet{display:block;width:44px;min-height:44px}
html[data-native=true] .group-dialog #group-form{grid-template-columns:minmax(0,1fr) auto}
html[data-native=true] .group-dialog #group-form button{width:auto;margin:0}
html[data-native=true] .gosterge-control{color:var(--native-text);font-size:14px}
html[data-native=true] .gosterge-control button{background:#a5f3cd10;border-color:#a5f3cd50;color:var(--native-mint)}
html[data-native=true] .coin-round-terms{color:var(--native-muted);font-size:12px}
@media(max-width:700px){
 html[data-native=true] .coin-category-viewport{grid-column:1/-1;grid-row:1}
 html[data-native=true] .coin-navigation>.quiet{grid-row:2}
}
@media(min-width:701px){
 html[data-native=true] .coin-category-viewport{grid-column:2;grid-row:1}
 html[data-native=true] #coin-prev{grid-column:1;grid-row:1}
 html[data-native=true] #coin-next{grid-column:3;grid-row:1}
}
html[data-native=true] .joy-invite{margin:8px 0 14px;padding:12px;border:1px solid #78ad9a66;border-radius:14px;background:#17483e}
html[data-native=true] .joy-invite summary{cursor:pointer;font-weight:750}
html[data-native=true] .joy-invite form{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:12px}
html[data-native=true] .joy-invite label{display:block;min-width:0;font-size:14px}
html[data-native=true] .joy-invite input{display:block;box-sizing:border-box;width:100%;min-width:0;margin-top:6px;min-height:44px}
html[data-native=true] .joy-invite form button{width:100%;min-height:44px}
html[data-native=true] .joy-pending-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px}
html[data-native=true] .joy-pending-row button{min-width:44px;min-height:44px}
html[data-native=true] .joy-accept{max-width:min(440px,calc(100vw - 24px));padding:20px;border-radius:20px;background:#123d36;color:#fff}
html[data-native=true] .joy-accept button{margin:6px 6px 6px 0}
html[data-native=true] .joy-notification-options{border-top:1px solid #fff3;margin-top:12px;padding-top:10px}
html[data-native=true] .award-tabs{display:flex;gap:8px;margin:10px 0}
html[data-native=true] .award-tabs button{flex:1;min-height:40px;border-radius:999px}
html[data-native=true] .award-tabs button[aria-pressed=true]{background:#a5f3cd;color:#08382f}
html[data-native=true] .award-card progress{width:100%;height:8px;accent-color:#a5f3cd}
html[data-native=true] .mini-award{display:inline-flex;padding:3px 8px;margin:3px;border:1px solid #a5f3cd66;border-radius:99px;font-size:12px}
/* Keep the active composer visible when the iPhone keyboard shrinks the viewport. */
html[data-native=true] #chat-panel{overflow-y:auto!important;overscroll-behavior:contain}
html[data-native=true] #chat-panel:has(#chat-input:focus) .chat-identities,html[data-native=true] #chat-panel:has(#chat-input:focus) .fair-play-note,html[data-native=true] #chat-panel:has(#chat-input:focus) .chat-media-tools,html[data-native=true] #chat-panel:has(#chat-input:focus) .emoji-tools,html[data-native=true] #chat-panel:has(#chat-input:focus) #chat-unread-list{display:none}
html[data-native=true] #chat-form{position:sticky;bottom:0;z-index:2;padding:7px 0;background:#103e38;flex:none}
html[data-native=true] #friend-chat-dialog{overflow-y:auto}
html[data-native=true] #friend-form{position:sticky;bottom:0;z-index:2;padding:7px 0;background:#103e38;flex:none}

/* Achievement rows follow the emerald/mint app concept. */
html[data-native=true] .award-grid{grid-template-columns:minmax(0,1fr);gap:10px;margin:16px 0}
html[data-native=true] .award-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px;text-align:left;border:1px solid #ffffff12;border-radius:18px;background:#ffffff04;box-shadow:none;min-width:0}
html[data-native=true] .award-card.earned{border-color:#a5f3cd30;background:#a5f3cd08;box-shadow:none}
html[data-native=true] .award-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;border:1px solid #a9c9bc55;background:#062e2a;color:#a9c9bc;flex:none}
html[data-native=true] .award-icon svg{width:26px;height:26px}
html[data-native=true] .earned .award-icon{color:#a5f3cd;border-color:#a5f3cd88;background:#a5f3cd12}
html[data-native=true] .award-body{display:flex;flex-direction:column;gap:7px;min-width:0;width:100%}
html[data-native=true] .award-body strong{font-size:16px;line-height:1.35;color:var(--native-text);overflow-wrap:anywhere}
html[data-native=true] .award-body small,html[data-native=true] .award-state{font-size:14px;line-height:1.4;color:var(--native-muted)}
html[data-native=true] .earned .award-state{color:var(--native-mint)}
html[data-native=true] .award-body p{font-size:14px;line-height:1.45;margin:0}
html[data-native=true] .award-check{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--native-mint);color:#062e2a;font-size:16px;font-weight:700}
html[data-native=true] .award-card progress{appearance:none;display:block;width:100%;height:6px;margin:3px 0 0;overflow:hidden;border:0;border-radius:99px;background:#ffffff18}
html[data-native=true] .award-card progress::-webkit-progress-bar{background:#ffffff18;border-radius:99px}
html[data-native=true] .award-card progress::-webkit-progress-value{background:var(--native-mint);border-radius:99px}
html[data-native=true] .award-card progress::-moz-progress-bar{background:var(--native-mint);border-radius:99px}
html[data-native=true] .mini-award{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;margin:3px;font-size:14px;border:1px solid #a5f3cd30;background:#a5f3cd08}
html[data-native=true] .mini-award .award-icon{width:24px;height:24px;border:0;background:transparent;color:var(--native-mint)}
html[data-native=true] .mini-award .award-icon svg{width:20px;height:20px}
@media(max-width:360px){html[data-native=true] .award-card{grid-template-columns:44px minmax(0,1fr) auto;padding:12px;gap:10px}html[data-native=true] .award-icon{width:44px;height:44px}}

/* Classic table composition, retained within the native petrol/mint palette. */
html[data-native=true] .table{margin:0;border:1px solid #a5f3cd20;border-radius:24px;background:radial-gradient(ellipse at 50% 35%,#15583f,#093c32 65%,#062e2a);box-shadow:inset 0 0 40px #062e2a55}
html[data-native=true] .opponent .avatar-ring{border-radius:50%;padding:2px;background:#103e38}
html[data-native=true] .opponent>.player-name{min-width:64px;max-width:100%;padding:5px 8px;margin:2px 0 0;border:1px solid #a5f3cd30;border-radius:9px;background:#062e2ae6;color:var(--native-text);font-weight:700;line-height:1.25;overflow-wrap:anywhere}
html[data-native=true] .opponent.active>.player-name{border-color:var(--native-mint);background:#174c40}
html[data-native=true] #stock:disabled,html[data-native=true] .table-pile:disabled{opacity:1}
html[data-native=true] #stock .stock-pile{background:linear-gradient(135deg,#fcf7e9,#dfd8ba);border:2px solid #f6f6ed;color:#5b7666;box-shadow:2px 3px 0 #879d84,4px 5px 0 #527660}
html[data-native=true] #stock .stock-pile b{color:#5b7666;border-color:#819783;font-weight:800}
html[data-native=true] #stock.action-ready .stock-pile{border-color:var(--native-mint);box-shadow:0 0 0 3px var(--native-mint),0 0 20px #a5f3cd35}
html[data-native=true] #remaining{max-width:96px;font-size:14px;font-weight:600;color:var(--native-muted)}
html[data-native=true] .table-pile{border:1px dashed #a5f3cd50;border-radius:10px;background:#062e2a20}
html[data-native=true] .table-pile.action-ready{border:2px solid var(--native-mint);box-shadow:0 0 0 3px #a5f3cd20;background:#a5f3cd0d}
html[data-native=true] .self-seat{flex-direction:row;max-width:65%;min-height:48px;padding:5px 12px;gap:10px;border:1px solid #a5f3cd30;background:#103e38!important;border-radius:999px}
html[data-native=true] .self-seat .avatar-ring{width:36px;height:36px;flex:none;border-radius:50%}
html[data-native=true] .self-seat>span:nth-child(2){max-width:150px;margin:0;padding:5px 9px;border:1px solid #a5f3cd30;border-radius:8px;background:#062e2a;color:var(--native-text);font-weight:700}
html[data-native=true] .self-seat.active{border:2px solid var(--native-mint);box-shadow:0 0 0 3px #a5f3cd25,0 0 20px #a5f3cd20}
@media(min-height:651px) and (orientation:portrait){
 html[data-native=true] .opponent.seat-2{top:12px}
 html[data-native=true] .opponent.seat-1,html[data-native=true] .opponent.seat-3{top:49%}
 html[data-native=true] .opponent .avatar-ring{width:clamp(42px,12vw,60px);height:clamp(42px,12vw,60px)}
 html[data-native=true] .table-center{top:50%;gap:8px}
 html[data-native=true] .indicator-group{width:56px}
 html[data-native=true] .indicator-slot .tile{width:36px;height:51px;font-size:29px}
 html[data-native=true] #stock .stock-pile{width:42px;height:59px}
 html[data-native=true] .pile-1,html[data-native=true] .pile-2{top:15%}
 html[data-native=true] .pile-0,html[data-native=true] .pile-3{bottom:21%}
 html[data-native=true] .self-seat{bottom:8px}
}
@media(min-width:700px) and (min-height:601px){
 html[data-native=true] .opponent>.player-name{max-width:140px;font-size:16px}
 html[data-native=true] .self-seat{font-size:16px}
}
@media(orientation:landscape) and (max-height:600px){
 html[data-native=true] .opponent>.player-name{padding:2px 6px;margin:0;font-size:14px;min-width:0}
 html[data-native=true] #remaining{font-size:12px}
 html[data-native=true] .table{border-radius:16px}
}

/* Classic middle section: inline coach, table log, then full turn feedback above the rack. */
html[data-native=true] .play-area{overflow-y:auto;overscroll-behavior-y:contain}
html[data-native=true] .table{flex:none;height:clamp(240px,38dvh,380px)!important;min-height:240px}
html[data-native=true] .native-table-middle{flex:none;padding:12px 8px 16px;background:var(--native-bg)}
html[data-native=true] .native-home .native-table-middle{display:none}
html[data-native=true] .native-table-middle .coach-drawer{display:block;position:static;inset:auto;width:100%;margin:0;max-height:none;overflow:visible;border:1px solid #a5f3cd36;border-radius:16px;background:var(--native-panel);box-shadow:none}
html[data-native=true] .native-table-middle .coach-drawer>summary{position:static;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:54px;padding:12px 16px;border-radius:16px;background:transparent;list-style:none;cursor:pointer;color:var(--native-mint);font-size:18px;font-weight:700}
html[data-native=true] .native-table-middle .drawer-caption{display:block;color:var(--native-muted);font-size:16px;font-weight:400}
html[data-native=true] .native-coach-close{display:none}
html[data-native=true] .coach-drawer[open] .native-coach-close{display:block}
html[data-native=true] .native-table-middle .history{display:block!important;margin:14px 0 0;padding:0;border:0;background:transparent;color:var(--native-muted);font-size:16px}
html[data-native=true] .native-table-middle .history>summary{padding:8px 0;min-height:44px;cursor:pointer}
html[data-native=true] .native-table-middle .history ol{max-height:180px;overflow:auto;margin:8px 0;padding-left:24px;line-height:1.5}
html[data-native=true] .native-table-middle footer{display:flex!important;position:static;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:14px 0 0;padding:8px 0;border:0;color:var(--native-muted);font-size:14px}
html[data-native=true] .native-table-middle footer>span:nth-child(2){display:none}
html[data-native=true] .native-table-middle footer a{color:var(--native-muted)}
html[data-native=true] .rack-section{border-top:1px solid #a5f3cd44;padding-top:12px!important}
html[data-native=true] .gosterge-control{margin:0 2px 10px;color:var(--native-mint);font-size:16px}
html[data-native=true] .turn-strip{display:flex;flex-wrap:wrap;gap:8px;min-height:44px;margin:0 2px 10px}
html[data-native=true] .turn-copy{order:0;flex:1 1 140px}
html[data-native=true] .turn-copy h1{width:auto;max-width:none;white-space:normal;overflow:visible;text-overflow:clip;border:0;border-radius:0;background:transparent;padding:0;font-size:16px;font-weight:650;line-height:1.35}
html[data-native=true] .turn-strip .coach-feedback{order:1;flex:none;max-width:100%;font-size:14px;line-height:1.3;padding:7px 10px;margin:0;border-radius:12px;white-space:normal;overflow:visible;text-overflow:clip;cursor:pointer}
html[data-native=true] .turn-clock{order:2;flex:none;min-width:54px;min-height:40px;display:grid;place-items:center;padding:4px 9px;border:1px solid #a5f3cd55;border-radius:999px;background:#103e38;font-size:20px;font-weight:750;color:var(--native-mint)}
html[data-native=true] .turn-clock.urgent{color:#ff9096;border-color:#ff9096}
html[data-native=true] .rack-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:8px;margin:10px 0 0}
html[data-native=true] .native-message{margin-top:8px;font-size:14px;max-height:none}
html[data-native=true] #discard{min-width:118px}
@media(max-width:390px){html[data-native=true] .turn-copy{flex-basis:100%}html[data-native=true] .turn-clock{margin-left:auto}}
@media(orientation:landscape) and (max-height:600px){
 html[data-native=true] .table{height:210px!important;min-height:210px}
 html[data-native=true] .native-table-middle{padding:8px}
 html[data-native=true] .native-table-middle .coach-drawer>summary{min-height:48px}
}

/* Chat prioritizes messages and a single-row composer on iPhone. */
html[data-native=true] #chat-panel,html[data-native=true] #friend-chat-dialog{
 display:flex;flex-direction:column;gap:8px;overflow:hidden!important;
 inset:var(--chat-viewport-top,0px) max(0px,calc((100vw - 560px)/2)) auto!important;
 width:min(100%,560px)!important;height:var(--chat-viewport-height,100dvh)!important;max-height:var(--chat-viewport-height,100dvh)!important;
 margin:0!important;padding:max(8px,env(safe-area-inset-top)) 12px max(8px,env(safe-area-inset-bottom));
 border:0;border-radius:0;background:var(--native-bg)
}
html[data-native=true] #chat-panel[hidden],html[data-native=true] #friend-chat-dialog:not([open]){display:none!important}
html[data-native=true] #chat-panel .dialog-heading,html[data-native=true] #friend-chat-dialog .dialog-heading{position:relative;top:auto;flex:none;gap:6px;min-height:48px;padding:0 0 7px;margin:0;border-bottom:1px solid #ffffff12;background:var(--native-bg)}
html[data-native=true] #chat-panel .dialog-heading>h2{display:none}
html[data-native=true] #friend-chat-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:19px}
html[data-native=true] #chat-panel .chat-toolbar{flex:1;min-width:0;gap:4px}
html[data-native=true] #chat-target{width:100%;min-width:0;min-height:44px;padding:8px 10px;border:0;background:#103e38;font-size:16px;border-radius:12px}
html[data-native=true] .native-chat-info{flex:none;position:relative;margin:0}
html[data-native=true] .native-chat-info>summary{display:grid;place-items:center;min-width:44px;min-height:44px;list-style:none;color:var(--native-muted);font-size:22px;cursor:pointer}
html[data-native=true] .native-chat-info[open]{position:absolute;inset:0 46px auto 0;z-index:5;padding:8px 12px;background:var(--native-panel);border:1px solid #ffffff20;border-radius:14px;max-height:50dvh;overflow:auto}
html[data-native=true] .native-chat-info[open]>summary{margin-left:auto;width:44px}
html[data-native=true] #chat-panel .chat-identities,html[data-native=true] .native-chat-info .native-info{display:block!important;max-height:none}
html[data-native=true] #chat-messages,html[data-native=true] #friend-messages{flex:1 1 0;min-height:0!important;max-height:none;margin:0;padding:6px 0;overflow-y:auto;overscroll-behavior:contain;gap:8px}
html[data-native=true] .chat-message,html[data-native=true] .friend-message{width:fit-content;max-width:90%;margin:0;padding:8px 12px;border-radius:16px;font-size:16px;line-height:1.4;background:#17483f}
html[data-native=true] .chat-message.mine,html[data-native=true] .friend-message.mine{align-self:flex-end;margin-left:auto;background:var(--native-mint);color:#062e2a}
html[data-native=true] .chat-message p,html[data-native=true] .friend-message p{margin-top:3px}
html[data-native=true] #chat-form,html[data-native=true] #friend-form{position:static;flex:none;display:flex;align-items:flex-end;gap:6px;margin:0;padding:6px 0 0;border-top:1px solid #ffffff12;background:var(--native-bg)}
html[data-native=true] #chat-form textarea,html[data-native=true] #friend-form textarea{flex:1;min-width:0;width:auto;min-height:44px;max-height:112px;margin:0;padding:10px 12px;line-height:22px;resize:none;overflow-y:auto;background:#103e38;border:0;border-radius:20px;font-size:16px}
html[data-native=true] #chat-form button,html[data-native=true] #friend-form button{flex:none;width:40px;min-width:40px;height:44px;min-height:44px;margin:0;padding:8px;border:0;border-radius:50%;background:transparent;color:var(--native-muted)}
html[data-native=true] #chat-form button.primary,html[data-native=true] #friend-form button.primary{background:var(--native-mint);color:#062e2a}
html[data-native=true] .native-chat-tools-toggle{font-size:28px!important;font-weight:400}
html[data-native=true] #chat-panel .native-chat-tools,html[data-native=true] #friend-chat-dialog .native-chat-tools{display:flex!important;flex:none;align-items:center;gap:8px;padding:8px;margin:0;background:var(--native-panel);border-radius:14px}
html[data-native=true] #chat-panel .native-chat-tools[hidden],html[data-native=true] #friend-chat-dialog .native-chat-tools[hidden]{display:none!important}
html[data-native=true] .native-chat-tools .emoji-tools{margin:0}
html[data-native=true] .native-chat-tools .emoji-picker{bottom:48px;top:auto;max-width:calc(100vw - 32px)}
html[data-native=true] #chat-status,html[data-native=true] #friend-status{flex:none;margin:0;font-size:12px;line-height:1.3;color:var(--native-muted)}
html[data-native=true] #chat-status:empty,html[data-native=true] #friend-status:empty,html[data-native=true] #chat-unread-list:empty{display:none}
html[data-native=true] #chat-unread-list{flex:none;max-height:60px;overflow:auto}
html[data-native=true] #chat-attachment-preview,html[data-native=true] #friend-attachment-preview{flex:none;max-height:100px;overflow:auto;padding:6px;font-size:14px}
html[data-native=true] .group-dialog[open]{display:flex;flex-direction:column;gap:8px;inset:var(--chat-viewport-top,0px) max(0px,calc((100vw - 560px)/2)) auto;width:min(100%,560px);height:var(--chat-viewport-height,100dvh);max-height:var(--chat-viewport-height,100dvh);border:0;border-radius:0;padding:12px;background:var(--native-bg)}
html[data-native=true] .group-dialog .friend-messages{flex:1;min-height:0;height:auto;margin:0;overflow:auto}
html[data-native=true] .group-dialog #group-management{flex:none;margin:0;max-height:30dvh;overflow:auto}
/* A transient banner must not cover an open conversation's header. */
html[data-native=true] body:has(#chat-panel:not([hidden])) #chat-notice,
html[data-native=true] body:has(#friend-chat-dialog[open]) #chat-notice,
html[data-native=true] body:has(#group-dialog[open]) #chat-notice{display:none!important}
/* Message actions share a compact footer instead of a full report-button row. */
html[data-native=true] .chat-message{position:relative}
html[data-native=true] .chat-message .report-button{position:absolute;right:5px;bottom:4px;display:grid;place-items:center;width:36px;min-width:36px;height:32px;min-height:32px;margin:0;padding:0;border:0;background:transparent;font-size:0;color:var(--native-muted)}
html[data-native=true] .chat-message .report-button::after{content:'⚑';font-size:18px}
html[data-native=true] .chat-message:has(.report-button) .message-reactions{max-width:calc(100% - 36px);min-height:28px}
html[data-native=true] .chat-message>strong{font-size:14px;color:var(--native-mint)}
html[data-native=true] .chat-message.own{align-self:flex-end;margin-left:auto;background:var(--native-mint);color:#062e2a}
html[data-native=true] .chat-message.own>strong{color:#062e2a}

/* Discard recall is part of play: no browsable move history. */
html[data-native=true] .history,html[data-native=true] .native-table-middle .history{display:none!important}
/* Compact controls, generous touch targets; no clipped or duplicated counters. */
html[data-native=true] .native-quick-controls{display:flex;gap:0;margin-right:auto;flex:none}
html[data-native=true] .native-quick-controls button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:10px;border:0;background:transparent;border-radius:12px;color:var(--native-muted)}
html[data-native=true] .native-quick-controls svg{width:20px;height:20px}
html[data-native=true] .quick-off-slash{display:none;paint-order:stroke;stroke:var(--native-muted);stroke-width:2.2}
html[data-native=true] .is-off .quick-off-slash{display:block}
html[data-native=true] .native-nav #social-unread-badge,
html[data-native=true] .native-nav #chat-badge,
html[data-native=true] .native-nav .friend-request-count{inset:0 0 auto auto;min-width:20px;width:auto;height:20px;line-height:16px;display:grid;place-items:center;padding:0 4px;border:2px solid var(--native-bg);font-size:12px;border-radius:999px;box-shadow:none;z-index:2}
html[data-native=true] .native-nav #friends-open:has(#social-unread-badge:not([hidden])) .friend-request-count{display:none!important}
html[data-native=true] .native-nav button:focus:not(:focus-visible){outline:none}
html[data-native=true] .native-nav button:focus-visible,html[data-native=true] .native-nav summary:focus-visible{outline:2px solid var(--native-mint);outline-offset:-2px;border-radius:12px}
@media(pointer:coarse){html[data-native=true] .native-nav button:focus-visible{outline:none;background:#a5f3cd13;color:var(--native-mint)}}
html[data-native=true] .rack-actions{flex-wrap:nowrap;gap:6px}
html[data-native=true] .rack-actions #native-rack-zoom{order:0}
html[data-native=true] #discard{display:none!important}
html[data-native=true] .rack-actions .native-exit{display:flex;align-items:center;justify-content:center;gap:8px;flex:none;min-width:44px;min-height:44px;margin:0;padding:8px;border:1px solid #8de6bd;background:#18764a;color:#fff;border-radius:8px;box-shadow:none}
html[data-native=true] .rack-actions .native-exit:hover{background:#20885a}
html[data-native=true] .native-exit svg{width:26px;height:26px;flex:none}
html[data-native=true] .native-exit-label{display:none}
html[data-native=true] .rack-actions .language-switch{flex:0 1 108px;width:auto;min-width:88px;margin:0}
html[data-native=true] .rack-actions .language-switch select{min-height:44px;width:100%;min-width:0;padding:8px 5px;font-size:14px}
@media(min-width:480px){html[data-native=true] .native-exit-label{display:inline;font-size:14px}}
/* The avatar ring conveys turn time; a second numeric countdown adds no value. */
html[data-native=true] #turn-clock{display:none!important}
html[data-native=true] .native-table-actions{display:flex;justify-content:flex-end;margin:6px 0 0}
html[data-native=true] .native-table-actions #leave{min-height:44px;margin:0;padding:8px 12px;border:0;background:transparent;color:var(--native-muted);font-size:14px;text-decoration:none}
html[data-native=true] .native-table-actions #leave:hover{background:#ffffff08;color:var(--native-text)}

html[data-native=true] .table-speed button[aria-pressed="true"]{background:var(--native-mint);color:var(--native-bg);border-color:var(--native-mint)}


/* Rack alignment is a layout-only action: it never sorts or suggests a move. */
html[data-native=true] #native-rack-align{display:grid;place-items:center;flex:none;width:44px;min-width:44px;min-height:44px;padding:10px;background:transparent;border:0;color:var(--native-muted);border-radius:12px}
html[data-native=true] #native-rack-align svg{width:22px;height:22px}
html[data-native=true] #native-rack-align:hover,html[data-native=true] #native-rack-align:focus-visible{color:var(--native-mint);background:#ffffff08}
@media(orientation:landscape) and (max-height:600px){html[data-native=true] #native-rack-align{min-height:40px;height:40px}}

/* Keep the indicator/joker reference and the stock as one calm, symmetric center cluster. */
html[data-native=true] .table-center{align-items:flex-start;gap:8px}
html[data-native=true] .table-center .indicator-group,html[data-native=true] .table-center #stock{box-sizing:border-box;width:72px;min-width:72px;display:grid;justify-items:center;align-items:start}
html[data-native=true] .table-center .indicator-group{place-content:start center}
html[data-native=true] .table-center .indicator-slot{display:grid;place-items:center}
html[data-native=true] .table-center .indicator-slot .tile,html[data-native=true] .table-center #stock .stock-pile{width:36px;height:50px}
html[data-native=true] .table-center #stock{grid-template-rows:50px auto;gap:6px}
html[data-native=true] .table-center #remaining{width:72px;max-width:72px;margin:0;text-align:center;line-height:1.15}
@media(min-height:651px) and (orientation:portrait){
 html[data-native=true] .table-center .indicator-slot .tile,html[data-native=true] .table-center #stock .stock-pile{width:42px;height:59px}
 html[data-native=true] .table-center #stock{grid-template-rows:59px auto}
}
@media(orientation:landscape) and (max-height:600px){
 html[data-native=true] .table-center{gap:6px}
 html[data-native=true] .table-center .indicator-group,html[data-native=true] .table-center #stock{width:58px;min-width:58px}
 html[data-native=true] .table-center .indicator-slot .tile,html[data-native=true] .table-center #stock .stock-pile{width:26px;height:36px}
 html[data-native=true] .table-center #stock{grid-template-rows:36px auto;gap:3px}
 html[data-native=true] .table-center #remaining{width:58px;max-width:58px;font-size:10px}
}

/* Notifications retain their intrinsic height in the top layer on mobile. */
html[data-native=true] #chat-notice{inset:auto;top:max(12px,env(safe-area-inset-top));left:50%;height:fit-content;min-height:0;max-height:130px;align-content:start;overflow:hidden}
html[data-native=true] #chat-notice-open{background:transparent;color:inherit;border:0;min-height:0;height:auto;border-radius:0;padding:5px 0;box-shadow:none}
html[data-native=true] #chat-notice-dismiss{background:#18372b12;color:#355648;border:0;width:32px;height:32px;min-height:32px;padding:0;box-shadow:none}
html[data-native=true] .native-message:empty{display:none}
html[data-native=true] #friends-dialog .friend-row{min-height:60px;padding:9px 0;border-radius:0;gap:8px;background:transparent}
html[data-native=true] #friends-dialog .friend-name-link{font-size:16px;text-decoration:none}
html[data-native=true] #friends-dialog .friend-presence{font-size:14px}
html[data-native=true] #friends-dialog .contact-actions button{width:36px;min-width:36px;min-height:40px;padding:0;background:transparent;border:0}
html[data-native=true] #friends-dialog .social-avatar{width:40px;height:40px}
html[data-native=true] .chat-message{max-width:88%;border-radius:15px 15px 15px 4px;padding:8px 11px}
html[data-native=true] .chat-message.own{border-radius:15px 15px 4px 15px}
html[data-native=true] #chat-notice,html[data-native=true] #activity-notice{height:auto!important;max-height:130px!important;min-height:0!important;inset:auto!important;top:max(12px,env(safe-area-inset-top))!important;left:50%!important;background:#e7f0e9;color:#062e2a;border-radius:16px;padding:10px 12px}
html[data-native=true] #chat-notice-open{min-height:0!important;height:auto!important;background:transparent;color:inherit}
html[data-native=true] #group-dialog .friend-messages{min-height:0;flex:1 1 0}
/* Lobby visibility applies to the player's table, never to the spectator surface. */
html[data-native=true] #watch-dialog .spectator-board{overflow:visible;height:320px!important;min-height:320px;margin:40px 0}
html[data-native=true] #watch-dialog .spectator-board>*{visibility:visible;pointer-events:auto}
html[data-native=true] .chat-message.own p,html[data-native=true] .chat-message.own .reaction-chip{color:#062e2a}

/* Labels distinguish live table chat from the friends / groups / Joy inbox. */
html[data-native=true] .native-nav>button{width:auto!important;min-width:52px;height:58px;padding:5px 3px;gap:3px;grid-template-rows:26px 16px}
html[data-native=true] .native-nav .native-nav-label{display:block!important;font-size:12px;line-height:16px;white-space:nowrap;max-width:92px;overflow:hidden;text-overflow:ellipsis}
html[data-native=true] .native-nav .chat-launch>.native-nav-label{display:block!important}

html[data-native=true] .native-nav>button,html[data-native=true] .native-nav>.game-menu{flex:1;min-width:0;width:0!important}
html[data-native=true] .native-nav .native-nav-label{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;text-align:center}
html[data-native=true] .native-nav{gap:2px;align-items:stretch}
html[data-native=true] .native-nav>button,html[data-native=true] .native-nav>.game-menu>summary{height:auto;min-height:58px;grid-template-columns:minmax(0,1fr);grid-template-rows:26px auto;align-content:start}
html[data-native=true] .native-nav>.game-menu>summary{width:100%!important;min-width:0;height:100%;min-height:58px;padding:5px 3px;gap:3px;grid-template-rows:26px auto}

/* Bound every chat row to the viewport: intrinsic input/media widths must not
   push the composer or message content outside the iPhone dialog. */
html[data-native=true] :is(#chat-panel,#friend-chat-dialog,#group-dialog){
 min-width:0;box-sizing:border-box;
}
html[data-native=true] :is(#chat-panel,#friend-chat-dialog,#group-dialog)>:not(.sr-only){
 min-width:0;max-width:100%;box-sizing:border-box;
}
html[data-native=true] :is(#chat-form,#friend-form){
 display:grid;grid-template-columns:40px minmax(0,1fr) 40px 40px;
 width:100%;min-width:0;max-width:100%;align-items:end;
}
html[data-native=true] :is(#chat-form,#friend-form)>textarea{
 width:100%;min-width:0;max-width:100%;box-sizing:border-box;
}
html[data-native=true] :is(#chat-form,#friend-form)>button{
 width:40px;min-width:40px;max-width:40px;padding:8px;
}
html[data-native=true] :is(#chat-messages,#friend-messages,#group-messages){
 width:100%;min-width:0;overflow-x:hidden;overflow-y:auto;
}
html[data-native=true] :is(.chat-message,.friend-message){
 min-width:0;flex-shrink:0;overflow-wrap:anywhere;
}
html[data-native=true] :is(.chat-message,.friend-message) :is(p,strong,a){
 max-width:100%;overflow-wrap:anywhere;
}
html[data-native=true] :is(.chat-message,.friend-message) :is(img,audio,video){
 max-width:100%;min-width:0;
}
html[data-native=true] :is(.native-chat-tools,#chat-status,#friend-status,#group-status){
 min-width:0;overflow-wrap:anywhere;
}
html[data-native=true] .native-chat-tools{flex-wrap:wrap}
