/* Oyunçu səhifələri (giriş, qeydiyyat, masa seçimi, AZE Coin) – orijinal oyunun üslubu:
   taxta masa fonu, ağ popup pəncərələr, boz başlıqlar, yaşıl düymələr, narıncı dairəvi düymələr, Arial. */
:root{--green:#97ca31;--green-d:#7aa329;--orange:#f39a2b;--orange-d:#d98300;--text:#4a4a4a;--muted:#8c8c8c;--head:#9a9a9a;--line:#e8e8e8;--soft:#f5f5f5;--blue:#3db2fe;--pink:#ff7bac;--heart:#f15a24;--gold:#e9a103}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body.gs{font-family:Arial,Helvetica,sans-serif;color:var(--text);background:#c78747 url('/assets/images/ui_table.png') center/cover fixed;min-height:100vh}
body.gs:before{content:"";position:fixed;inset:0;background:radial-gradient(ellipse at center,rgba(0,0,0,0) 45%,rgba(60,25,0,.45) 100%);pointer-events:none;z-index:0}
.gs-wrap{position:relative;z-index:1;max-width:1080px;margin:0 auto;padding:18px 16px 40px}
a{color:#1b8fe0}
button,input,select,textarea{font-family:inherit}
.gs-loading{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;color:#fff;font-weight:bold;font-size:18px;text-shadow:0 2px 3px rgba(0,0,0,.5)}
.gs-loading img{height:110px;animation:gs-spin 2.4s linear infinite;filter:drop-shadow(0 8px 10px rgba(0,0,0,.35))}
@keyframes gs-spin{to{transform:rotate(360deg)}}

/* Popup (oyunun ağ pəncərəsi) */
.gs-popup{background:#fff;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.35);overflow:hidden}
.gs-popup__head{min-height:48px;display:flex;align-items:center;justify-content:center;position:relative;padding:0 52px;color:var(--head);font-size:16px;font-weight:bold;border-bottom:1px solid var(--line);text-align:center}
.gs-popup__body{padding:18px 20px 20px}
.gs-x{position:absolute;right:9px;top:8px;width:32px;height:32px;border:0;border-radius:50%;background:#f2f2f2;cursor:pointer}
.gs-x:before,.gs-x:after{content:"";position:absolute;left:9px;top:15px;width:14px;height:2.6px;border-radius:2px;background:#9a9a9a;transform:rotate(45deg)}
.gs-x:after{transform:rotate(-45deg)}.gs-x:hover{background:#e7e7e7}

/* Düymələr */
.gs-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:0 20px;border:0;border-radius:7px;background:var(--green);color:#fff;font-weight:bold;font-size:15px;cursor:pointer;text-decoration:none;box-shadow:0 3px 0 var(--green-d);transition:filter .15s,transform .05s;white-space:nowrap}
.gs-btn:hover{filter:brightness(1.06)}.gs-btn:active{transform:translateY(2px);box-shadow:0 1px 0 var(--green-d)}
.gs-btn:disabled{background:#c7c7c7;box-shadow:0 3px 0 #a9a9a9;cursor:default}
.gs-btn--big{min-height:48px;font-size:18px;padding:0 30px;border-radius:9px}
.gs-btn--full{width:100%}
.gs-btn--ghost{background:#fff;color:var(--green-d);border:2px solid var(--green);box-shadow:none}
.gs-btn--orange{background:var(--orange);box-shadow:0 3px 0 var(--orange-d)}
.gs-btn--blue{background:var(--blue);box-shadow:0 3px 0 #1f8fd6}
.gs-link{background:none;border:0;color:#1b8fe0;font-weight:bold;font-size:14px;cursor:pointer;padding:6px}
.gs-round{width:44px;height:44px;border-radius:50%;border:0;display:inline-flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;background:radial-gradient(circle at 50% 35%,#ffb85c,#f39a2b 60%,#e0841a);box-shadow:0 2px 0 #c06d10,0 3px 6px rgba(0,0,0,.35);text-decoration:none;flex:none}
.gs-round svg{width:22px;height:22px}
.gs-round:hover{transform:scale(1.06)}

/* Sahələr */
.gs-field{display:block;margin:0 0 12px}
.gs-field>span{display:block;font-size:13px;font-weight:bold;color:var(--muted);margin:0 0 5px 2px}
.gs-input{width:100%;height:42px;border:1px solid #d6d6d6;border-radius:8px;background:#fafafa;padding:0 13px;font-size:15px;color:var(--text);outline:none}
.gs-input:focus{border-color:var(--green);background:#fff;box-shadow:0 0 0 3px rgba(151,202,49,.2)}
textarea.gs-input{height:auto;padding:10px 13px;min-height:80px}
.gs-error{min-height:20px;color:#e03d1f;font-size:13px;font-weight:bold;margin:4px 0 10px;text-align:center}
.gs-note{font-size:13px;color:var(--muted);line-height:1.5}
.gs-gender{display:flex;gap:10px;margin:0 0 14px}
.gs-gender label{flex:1;cursor:pointer}
.gs-gender input{position:absolute;opacity:0}
.gs-gender span{display:flex;align-items:center;justify-content:center;gap:8px;height:46px;border-radius:9px;border:2px solid #e2e2e2;font-weight:bold;color:var(--muted);background:#fafafa}
.gs-gender span i{width:26px;height:26px;border-radius:50%;display:inline-block;color:#fff;font-style:normal;line-height:26px;text-align:center;font-size:15px}
.gs-gender .m i{background:var(--blue)}.gs-gender .f i{background:var(--pink)}
.gs-gender input:checked+span.m{border-color:var(--blue);color:#1f8fd6;background:#eef8ff}
.gs-gender input:checked+span.f{border-color:var(--pink);color:#e0558a;background:#fff0f6}

/* Giriş ekranı */
.gs-auth{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}
.gs-auth .gs-popup{width:min(400px,100%)}
.gs-brand{display:flex;flex-direction:column;align-items:center;gap:4px;padding:20px 20px 6px}
.gs-brand .gs-table{width:120px;height:120px;border-radius:50%;background:url('/assets/images/ui_table.png') center/cover;border:5px solid #a8662b;box-shadow:inset 0 0 18px rgba(0,0,0,.35),0 6px 14px rgba(0,0,0,.25);display:flex;align-items:center;justify-content:center}
.gs-brand .gs-table img{height:92px;transform:rotate(-28deg);filter:drop-shadow(0 6px 5px rgba(0,0,0,.35));animation:gs-wobble 6s ease-in-out infinite}
@keyframes gs-wobble{0%,100%{transform:rotate(-28deg)}50%{transform:rotate(332deg)}}
.gs-brand h1{margin:8px 0 0;font-size:28px;color:#f39a2b;text-shadow:0 2px 0 #c06d10;letter-spacing:.5px}
.gs-brand p{margin:0;color:var(--muted);font-size:14px}
.gs-tabs{display:flex;margin:14px 20px 0;background:#f2f2f2;border-radius:9px;padding:4px}
.gs-tabs button{flex:1;height:36px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-weight:bold;font-size:14px;cursor:pointer}
.gs-tabs button.on{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.15)}

/* Masa seçimi */
.gs-top{display:flex;align-items:center;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.gs-me{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.95);border-radius:40px;padding:5px 16px 5px 5px;box-shadow:0 3px 10px rgba(0,0,0,.25);cursor:pointer;border:0;font:inherit;color:inherit;text-align:left}
.gs-avatar{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#ddd;flex:none}
.gs-me b{display:block;font-size:15px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gs-me small{color:var(--muted);font-size:12px}
.gs-chip{display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 15px 0 8px;border-radius:24px;background:rgba(255,255,255,.95);box-shadow:0 3px 10px rgba(0,0,0,.25);font-weight:bold;font-size:16px;color:var(--text);text-decoration:none;cursor:pointer;border:0}
.gs-chip .ic{width:28px;height:28px;display:flex;align-items:center;justify-content:center}
.gs-chip .plus{width:22px;height:22px;border-radius:50%;background:var(--green);color:#fff;font-size:17px;line-height:22px;text-align:center;margin-left:2px}
.gs-spacer{flex:1}
.gs-main{display:grid;grid-template-columns:1fr 300px;gap:16px;align-items:start}
.gs-rooms{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px}
.gs-room{background:#fff;border-radius:14px;padding:14px;display:flex;flex-direction:column;align-items:center;gap:8px;box-shadow:0 6px 16px rgba(0,0,0,.25);position:relative}
.gs-room .mini{width:96px;height:96px;border-radius:50%;background:url('/assets/images/ui_table.png') center/cover;border:4px solid #a8662b;box-shadow:inset 0 0 12px rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;position:relative}
.gs-room .mini img{height:66px;transform:rotate(35deg);filter:drop-shadow(0 4px 3px rgba(0,0,0,.35))}
.gs-room h3{margin:2px 0 0;font-size:17px;color:var(--text)}
.gs-count{display:flex;gap:12px;font-weight:bold;font-size:14px}
.gs-count .m{color:#1f8fd6}.gs-count .f{color:#e0558a}
.gs-bar{width:100%;height:6px;border-radius:3px;background:#eee;overflow:hidden}
.gs-bar i{display:block;height:100%;background:var(--green)}
.gs-room .music{position:absolute;top:10px;right:10px;font-size:11px;color:#a34dc3;font-weight:bold;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gs-room.full{opacity:.75}
.gs-side .gs-popup{margin-bottom:14px}
.gs-play{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.gs-play .gs-table{width:130px;height:130px}
.gs-stat{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.gs-stat:last-child{border:0}.gs-stat b{color:var(--text)}
.gs-online{display:inline-flex;align-items:center;gap:6px;color:#fff;font-weight:bold;text-shadow:0 1px 2px rgba(0,0,0,.6);font-size:14px}
.gs-online i{width:9px;height:9px;border-radius:50%;background:#7ee04a;box-shadow:0 0 0 3px rgba(126,224,74,.3)}
.gs-title{color:#fff;font-size:20px;margin:0 0 12px;text-shadow:0 2px 3px rgba(0,0,0,.55);display:flex;align-items:center;gap:12px}
.gs-announce{background:#fffbe6;border:1px solid #f0d033;color:#7a5b00;border-radius:12px;padding:10px 14px;margin:0 0 14px;font-weight:bold;font-size:14px}

/* Dialoq (profil və s.) */
dialog.gs-dialog{border:0;padding:0;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.45);width:min(440px,94vw);color:var(--text);font-family:Arial,Helvetica,sans-serif}
dialog.gs-dialog::backdrop{background:rgba(0,0,0,.55)}
.gs-profile{display:flex;flex-direction:column;align-items:center;gap:8px}
.gs-profile .ph{width:110px;height:110px;border-radius:12px;object-fit:cover;background:#ddd;box-shadow:0 3px 10px rgba(0,0,0,.2)}
.gs-profile h3{margin:4px 0 0;font-size:19px}
.gs-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%;margin:6px 0}
.gs-stats div{background:var(--soft);border-radius:10px;padding:9px 4px;text-align:center}
.gs-stats b{display:block;font-size:18px}.gs-stats small{color:var(--muted);font-size:11px}
details.gs-more{width:100%;margin-top:8px;border-top:1px solid var(--line);padding-top:10px}
details.gs-more summary{cursor:pointer;font-weight:bold;color:var(--muted);font-size:14px}
#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:rgba(20,10,40,.92);color:#fff;padding:11px 20px;border-radius:14px;font:bold 14px Arial,sans-serif;z-index:2147483647;display:none;box-shadow:0 6px 24px rgba(0,0,0,.4)}

/* AZE Coin mağazası */
.gs-store{max-width:760px;margin:0 auto}
.gs-balances{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.gs-bal{background:var(--soft);border-radius:12px;padding:12px;text-align:center}
.gs-bal small{display:block;color:var(--muted);font-size:12px;font-weight:bold}
.gs-bal b{display:block;font-size:22px;margin-top:4px}
.gs-bal .coin{color:var(--gold)}.gs-bal .heart{color:var(--heart)}.gs-bal .vip{color:#a34dc3}
.gs-stabs{display:flex;gap:6px;margin:0 0 14px;flex-wrap:wrap}
.gs-stabs button{flex:1;min-width:100px;height:38px;border:2px solid #e2e2e2;border-radius:9px;background:#fff;color:var(--muted);font-weight:bold;cursor:pointer}
.gs-stabs button.on{border-color:var(--green);color:var(--green-d);background:#f6fbec}
.gs-packs{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.gs-pack{border:2px solid #eee;border-radius:14px;padding:14px 10px;text-align:center;display:flex;flex-direction:column;gap:6px;align-items:center;background:#fff}
.gs-pack .big{font-size:24px;font-weight:bold}
.gs-pack .bonus{color:var(--green-d);font-weight:bold;font-size:13px;min-height:16px}
.gs-pack .price{font-weight:bold;color:var(--text);font-size:15px}
.gs-pack .ico{font-size:30px;line-height:1}
.gs-table-list{width:100%;border-collapse:collapse;font-size:13px}
.gs-table-list th{text-align:left;color:var(--muted);font-size:12px;padding:6px;border-bottom:1px solid var(--line)}
.gs-table-list td{padding:8px 6px;border-bottom:1px solid var(--line);vertical-align:top}
.gs-status{display:inline-block;padding:3px 8px;border-radius:8px;font-weight:bold;font-size:12px;background:#f2f2f2}
.gs-status.approved{background:#eef8dc;color:#5c7a1f}.gs-status.rejected{background:#ffe9e4;color:#b33119}.gs-status.pending{background:#fff6d6;color:#8a6a00}
.gs-payinfo{background:#f8f8f8;border:1px dashed #d6d6d6;border-radius:10px;padding:12px;margin:0 0 12px;line-height:1.7;overflow-wrap:anywhere;font-size:14px}
.embedded body.gs,html.embedded body.gs{background:#fff}
html.embedded body.gs:before{display:none}
html.embedded .gs-wrap{padding:14px}

@media(max-width:820px){.gs-main{grid-template-columns:1fr}.gs-side{order:-1}.gs-balances{grid-template-columns:1fr 1fr 1fr}.gs-bal b{font-size:18px}}
@media(max-width:520px){.gs-rooms{grid-template-columns:1fr 1fr}.gs-room .mini{width:76px;height:76px}.gs-room .mini img{height:52px}.gs-chip{font-size:14px;height:38px}.gs-me b{max-width:100px}}

/* Şəkilli adlar üçün ehtiyat şriftlər */
body.gs,body.gs *:not(svg):not(path){font-family:Arial,Helvetica,"BT Latin","BT Math","BT Symbols","BT Symbols2","BT Georgian","Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji","Segoe UI Symbol",sans-serif}

/* Mobil: əvvəl "Oyna", sonra masalar, sonra nəticələr və aktiv oyunçular; fon bütün səhifəni örtsün */
@media(max-width:820px){
  .gs-main{display:flex;flex-direction:column;gap:14px;align-items:stretch}
  .gs-main>section,.gs-side>.gs-popup{width:100%;max-width:none}
  .gs-side{display:contents}
  .gs-side>.gs-popup:first-child{order:-2}
  .gs-main>section{order:-1}
  .gs-side>.gs-popup{margin-bottom:0}
  body.gs{background:#c78747 url('/assets/images/ui_table.png') center top/100% auto repeat-y}
  .season-tree{width:70px!important;opacity:.85}
}
@media(max-width:520px){
  .gs-top{gap:8px}
  .gs-round{width:40px;height:40px}
}

/* Lobbi profil pəncərəsi */
dialog.gs-dialog--prof{width:min(480px,95vw);max-height:92vh;display:flex;flex-direction:column;overflow:hidden}
dialog.gs-dialog--prof[open]{display:flex}
.gs-dialog--prof .gs-popup__body{overflow:auto;overscroll-behavior:contain;padding:16px 18px 18px}
.gs-prof__top{display:flex;gap:16px;align-items:center}
.gs-prof__ava{position:relative;flex:0 0 auto;width:108px;height:108px;padding:0;border:0;border-radius:14px;background:#ddd;cursor:pointer;overflow:hidden;box-shadow:0 3px 10px rgba(0,0,0,.2)}
.gs-prof__ava img{width:100%;height:100%;object-fit:cover;display:block}
.gs-prof__cam{position:absolute;right:6px;bottom:6px;width:32px;height:32px;border-radius:50%;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 0 var(--green-d),0 0 0 3px #fff}
.gs-prof__cam svg{width:18px;height:18px}
.gs-prof__ava:hover img{filter:brightness(.9)}
.gs-prof__busy{position:absolute;inset:0;background:rgba(255,255,255,.65);display:flex;align-items:center;justify-content:center}
.gs-prof__busy::after{content:"";width:30px;height:30px;border:3px solid var(--green);border-top-color:transparent;border-radius:50%;animation:gsspin .8s linear infinite}
.gs-prof__busy[hidden]{display:none}
@keyframes gsspin{to{transform:rotate(360deg)}}
.gs-prof__who{min-width:0;flex:1}
.gs-prof__who h3{margin:0;font-size:19px;line-height:1.25;word-break:break-word}
.gs-prof__user{color:var(--muted);font-size:13px;margin-top:2px}
.gs-prof__tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.gs-prof__tags .t{font-size:11px;font-weight:bold;padding:3px 8px;border-radius:10px;background:var(--soft);color:var(--muted)}
.gs-prof__tags .t--vip{background:#f3e4fa;color:#a34dc3}
.gs-prof__tags .t--admin{background:#fff1d6;color:#c98500}
.gs-prof__tags .t--mod{background:#e3f3ff;color:#1f8fd6}
.gs-prof__meta{color:var(--muted);font-size:13px;margin-top:6px}
.gs-prof__phbtn{min-height:32px;padding:0 14px;font-size:13px;margin-top:9px}
.gs-prof__err{margin:8px 0 0;min-height:0}
.gs-prof__status{margin-top:12px;padding:9px 12px;background:var(--soft);border-radius:9px;color:var(--text);font-style:italic;font-size:14px;text-align:center;word-break:break-word}
.gs-prof__stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}
.gs-prof__stats div{background:var(--soft);border-radius:10px;padding:9px 4px;text-align:center}
.gs-prof__stats b{display:block;font-size:17px;color:var(--text)}
.gs-prof__stats small{display:block;font-size:11px;color:var(--muted);margin-top:2px;white-space:nowrap}
.gs-prof__tabs{margin:16px 0 14px}
.gs-prof__row{display:flex;gap:10px}
.gs-prof__row .gs-field{flex:1}
.gs-prof__grow{flex:2!important}
.gs-prof__pane[hidden]{display:none}
.gs-prof__pane input[disabled]{background:#eee;color:#666;cursor:not-allowed}
@media (max-width:420px){
  .gs-prof__top{flex-direction:column;text-align:center}
  .gs-prof__tags{justify-content:center}
  .gs-prof__stats{grid-template-columns:repeat(2,1fr)}
  dialog.gs-dialog--prof .gs-popup__body{padding:14px}
}
/* Profil pəncərəsindəki kiçik düymələrdə qar papağı göstərilmir (yazını örtməsin) */
html[data-season] .gs-prof__phbtn::before,html[data-season] .gs-dialog--prof .gs-btn::before{display:none!important}
