/* GeoCity 0.9 Case Opening + Staff panel. CSS namespaced; gameplay render untouched. */
.gc-nav[hidden],#gcAdminNav[hidden],.gc-section[hidden],#gcRollBox[hidden]{display:none!important}
.gc-account-balance{padding:12px 14px;border-radius:9px;margin:12px 0;background:#172e2a;border:1px solid #4fdcaa44;font-size:12px;display:flex;justify-content:space-between;gap:6px}
.gc-account-balance b{font-size:15px;color:#77f1ba}
.gc-section{padding:14px 8px 30px;color:#edf5fa;font-family:inherit}
.gc-section-head{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:20px;margin-bottom:24px}
.gc-section-head h1{font-size:clamp(28px,4vw,52px);line-height:1.04;margin:5px 0 12px;color:#f8fcff;letter-spacing:-1.5px}
.gc-section-head h1 em{font-style:normal;color:#62cfff}
.gc-section-head p:not(.gc-kicker){line-height:1.6;color:#a8bac7;max-width:520px}
.gc-kicker{font-size:11px;letter-spacing:3px;color:#86daef;text-transform:uppercase;font-weight:800}
.gc-balance{padding:17px 20px;background:linear-gradient(115deg,#1a3540,#121c2a);border:1px solid #428baa88;border-radius:15px;font-size:12px;min-width:225px}
.gc-balance strong{display:block;font-size:27px;margin:5px 0;color:#71efbb;letter-spacing:-1px}
.gc-balance small{display:block;color:#9faeb8}
.gc-case-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}
.gc-case-card{border-radius:18px;border:1px solid #45637991;background:linear-gradient(145deg,#1c2b38,#0c171e);overflow:hidden;box-shadow:0 12px 40px #0006;position:relative;transition:transform .22s,border-color .22s}
.gc-case-card:hover{transform:translateY(-3px);border-color:var(--accent)}
.gc-case-label{font-weight:900;letter-spacing:1.5px;color:var(--accent);font-size:12px;padding:17px 17px 0}
.gc-case-art{padding:10px 12px;position:relative}
.gc-case-art img{width:100%;aspect-ratio:1.2;object-fit:cover;border-radius:13px;filter:drop-shadow(0 8px 15px #0008)}
.gc-case-art:after{content:'';position:absolute;inset:12% 12%;border-radius:50%;box-shadow:0 0 70px 9px var(--accent);opacity:.12;pointer-events:none}
.gc-case-foot{display:flex;align-items:center;justify-content:space-between;padding:10px 15px 14px;gap:8px}
.gc-price{font-size:18px;color:white;display:block}
.gc-gift{display:block;color:#a6bcc8;margin-top:3px}
.gc-open-btn,.gc-btn,.gc-mini-btn{font-weight:800;color:#051320;background:linear-gradient(130deg,#a4e9ff,#65b6f1);padding:11px 15px;border-radius:11px;border:0;box-shadow:0 3px 15px #63c5fb22;cursor:pointer}
.gc-open-btn[disabled]{opacity:.42;cursor:not-allowed;filter:grayscale(1)}
.gc-drops{border-top:1px solid #36515d6e;padding:11px 15px;font-size:12px;color:#abc2d1}
.gc-drops summary{cursor:pointer;font-weight:700;color:#b5d6f1}
.gc-drops>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #ffffff0c;padding:8px 0}
.gc-drops b{color:#ebd39c}
.gc-roll-box{margin:25px 0;border-radius:18px;border:1px solid #658ca9a1;overflow:hidden;background:#0b141f;padding:16px}
.gc-roll-box>header{height:auto;display:flex;align-items:center;justify-content:space-between;padding:0 2px 15px;font-weight:900;letter-spacing:1.5px}
.gc-roll-box>header button{background:transparent;border:0;font-size:20px;color:#c7d7df}
.gc-reel-window{height:158px;position:relative;overflow:hidden;border-radius:10px;background:linear-gradient(180deg,#111e2a,#060c14);border:1px solid #6b849545}
.gc-reel{display:flex;gap:12px;align-items:center;width:max-content;height:100%;padding:0}
.gc-reel-card{width:136px;min-width:136px;height:132px;background:linear-gradient(140deg,#1a3244,#0e1726);border-radius:10px;border:1px solid #7096a746;overflow:hidden;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:space-around}
.gc-reel-card.epic{border-color:#bd85ff}.gc-reel-card.legendary{border-color:#f6bd55;background:linear-gradient(160deg,#332315,#151a25)}
.gc-reel-card .gc-image{height:89px;width:100%;object-fit:cover}.gc-reel-card b{font-size:11px;padding:5px}
.gc-cash-icon{font-size:25px;color:#7ef0bd;font-weight:900}
.gc-reel-mark{pointer-events:none;position:absolute;left:50%;top:0;bottom:0;width:3px;background:linear-gradient(#e3b96e,transparent,#e3b96e);box-shadow:0 0 10px #ffd47d;z-index:3}
.gc-prize{padding:16px 4px 4px;color:#bbcfdd;text-align:center}
.gc-prize-result{display:flex;align-items:center;gap:15px;justify-content:center;border-radius:12px;border:1px solid #83ffcc55;padding:10px;background:#17352b}
.gc-prize-result.epic{border-color:#d199ff;background:#28193a}.gc-prize-result.legendary{border-color:#ffcb70;background:#3e2e1e}
.gc-prize-result img{width:135px;height:83px;object-fit:cover;border-radius:8px}
.gc-prize-result small,.gc-prize-result strong{display:block;text-align:left}.gc-prize-result strong{font-size:22px;margin-top:6px;color:white}
.gc-subheading{font-size:20px;margin:27px 0 14px}
.gc-history{border:1px solid #ffffff26;border-radius:12px;overflow:hidden;background:#111f29}
.gc-history-row{padding:13px 15px;display:flex;align-items:center;gap:10px;justify-content:space-between;border-bottom:1px solid #ffffff15;font-size:12px;color:#c1d0de;flex-wrap:wrap}
.gc-history-row b{color:#fbdfb3;font-size:14px}
.gc-history-row small{color:#93b2c3}.gc-history-row:last-child{border:0}
.gc-garage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.gc-garage-card{border-radius:15px;overflow:hidden;border:1px solid #63839888;background:linear-gradient(145deg,#1b2e40,#0a131a);padding-bottom:15px}
.gc-garage-card img{width:100%;aspect-ratio:1.5;object-fit:cover;display:block}
.gc-garage-card strong{font-size:19px;display:block;padding:14px 14px 5px}.gc-garage-card small{padding:0 14px;color:#9bb1c1}
.gc-garage-card.legendary{border-color:#e8b552}.gc-garage-card.epic{border-color:#a983e0}
.gc-note{font-size:12px;color:#9db6c1;line-height:1.7;margin-top:18px}
.gc-empty{padding:18px;color:#b1c1cd}
.gc-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:17px}
.gc-toolbar input,.gc-input{min-height:38px;background:#142532;color:#f3f8ff;border:1px solid #6c869b88;border-radius:8px;padding:9px 11px;max-width:100%;min-width:0}
.gc-toolbar input{flex:1;min-width:190px}.gc-btn.alt{background:#304653;color:#d5ecf6}
.gc-admin-users{display:grid;gap:12px}.gc-admin-user{background:#142430;border:1px solid #67859b55;border-radius:12px;padding:15px}
.gc-user-title{display:flex;gap:12px;align-items:center;justify-content:space-between}.gc-user-title strong{font-size:16px}
.gc-active,.gc-banned{padding:5px 10px;border-radius:20px;background:#143f31;color:#71e9b4;font-size:11px}.gc-banned{background:#492324;color:#ff9d9d}
.gc-user-meta{font-size:12px;color:#a9bfca;margin:7px 0 12px}
.gc-user-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.gc-mini-btn{padding:10px;font-size:12px}.gc-mini-btn.danger{background:#cb5a64;color:#fff}
.gc-user-actions .gc-num{width:100px}.gc-user-actions .gc-qty{width:60px}.gc-user-actions select{max-width:140px}
@media(max-width:620px){.gc-section{padding:10px 0}.gc-section-head h1{font-size:32px}.gc-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.gc-case-foot{align-items:stretch;flex-direction:column}.gc-case-label{font-size:10px}.gc-price{font-size:15px}.gc-roll-box{padding:8px}.gc-garage-grid{grid-template-columns:1fr}.gc-user-actions select{max-width:100px}.gc-balance{width:100%}}

/* v0.9.1: visible case-opening entry inside the authenticated website home. */
.gc-cases-nav:not([hidden]){color:#fce5a7;border-left-color:#d9ab5b;background:linear-gradient(110deg,#93752a2c,#6d51200b)}
.gc-cases-nav:not([hidden]):hover,.gc-cases-nav.active{background:linear-gradient(110deg,#a181354a,#1f2019aa);color:#ffedba;border-left-color:#ffd278}
.gc-home-promo{margin:21px 0 0;min-height:142px;display:flex;align-items:center;gap:22px;padding:14px 20px;border:1px solid #d5ad6b99;border-radius:13px;background:linear-gradient(105deg,#17231ff5 0%,#1c302aff 56%,#343020ee 100%);box-shadow:0 12px 38px #0008,0 0 24px #cfb56a0f;overflow:hidden;position:relative}
.gc-home-promo[hidden]{display:none!important}
.gc-home-promo:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 18% 80%,#73d4ff1d,transparent 46%),radial-gradient(ellipse at 88% 0%,#f2b74d22,transparent 46%);pointer-events:none}
.gc-home-art{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;width:180px;flex-shrink:0}
.gc-home-art img{width:112px;height:112px;object-fit:cover;border-radius:13px;box-shadow:0 10px 30px #000c,0 0 0 1px #f6c57044;transform:rotate(-9deg);position:relative}
.gc-home-art img+img{width:106px;height:106px;margin-left:-43px;transform:translateY(10px) rotate(10deg)}
.gc-home-copy{flex:1;min-width:0;position:relative}
.gc-home-copy small{font-size:10px;letter-spacing:2px;color:#efc98d;font-weight:800}
.gc-home-copy h2{font-size:clamp(19px,2.2vw,28px);color:#fff;margin:8px 0;line-height:1.12}
.gc-home-copy h2 em{font-style:normal;color:#ffdc94}
.gc-home-copy p{color:#c5cfc4;font-size:11px;line-height:1.6;margin:0;max-width:460px}
.gc-home-open{white-space:nowrap;position:relative;background:linear-gradient(110deg,#ffe5a2,#cfa052);border:1px solid #ffdb8c;color:#172017;border-radius:8px;font-weight:900;padding:16px 20px;min-height:49px;transition:filter .2s,transform .2s}
.gc-home-open:hover{filter:brightness(1.1);transform:translateY(-2px)}
.gc-home-open span{padding-left:8px}
.gc-home-promo:not([hidden]) + .heroSpace{height:clamp(16px,4vh,44px)}
@media(max-width:1040px){.gc-home-promo{gap:12px;padding:14px}.gc-home-art{width:110px}.gc-home-art img{width:74px;height:84px}.gc-home-art img+img{width:74px;height:80px;margin-left:-29px}}
@media(max-width:760px){.gc-home-promo{flex-wrap:wrap;gap:10px}.gc-home-art{width:80px}.gc-home-art img{width:58px;height:70px}.gc-home-art img+img{width:58px;height:70px;margin-left:-26px}.gc-home-copy{flex:1 1 calc(100% - 110px)}.gc-home-copy h2{font-size:19px}.gc-home-copy small{font-size:8px;letter-spacing:1px}.gc-home-open{width:100%;text-align:center;padding:12px}.gc-home-promo:not([hidden]) + .heroSpace{height:20px}}
@media(max-width:620px){.gc-cases-nav:not([hidden]){border-left:0;border-bottom:2px solid #ffd278}.gc-home-promo{margin-top:18px}}


/* v0.9.2 — compact cards and responsive, fixed-width reel viewport.
   Important: a max-content reel must never enlarge the page's grid column. */
#portal .layout{grid-template-columns:260px minmax(0,1fr)}
#portal .layout > main{min-width:0;max-width:100%;overflow-wrap:break-word}
#portal .gc-section{min-width:0;max-width:100%;overflow:hidden;padding:14px 0 26px}
#portal .gc-case-grid{min-width:0;max-width:1190px;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch}
#portal .gc-case-card{min-width:0;border-radius:12px;box-shadow:0 8px 24px #0007}
#portal .gc-case-label{padding:12px 12px 0;font-size:11px;letter-spacing:1.1px}
#portal .gc-case-art{height:152px;padding:7px 10px 4px;display:flex;align-items:center;justify-content:center;overflow:hidden}
#portal .gc-case-art img{width:100%;max-width:220px;height:100%;aspect-ratio:auto;object-fit:contain;border-radius:9px;display:block}
#portal .gc-case-foot{padding:9px 12px 13px;gap:6px}
#portal .gc-price{font-size:15px}
#portal .gc-open-btn{padding:9px 12px;font-size:12px}
#portal .gc-drops{padding:9px 12px;font-size:11px}
#portal .gc-roll-box{min-width:0;max-width:1190px;width:100%;margin:18px 0;padding:12px 12px 15px;border-radius:12px;overflow:hidden}
#portal .gc-reel-window{max-width:100%;width:100%;min-width:0;height:154px;isolation:isolate;overflow:hidden;box-shadow:inset 0 0 28px #0007}
#portal .gc-reel{width:max-content;min-width:0;will-change:transform}
#portal .gc-reel-mark{left:50%;width:3px;transform:translateX(-50%);top:0;bottom:0;background:linear-gradient(#ffdd72,#ffc44a80 50%,#ffdd72);box-shadow:0 0 0 1px #482f06,0 0 18px 2px #ffcb5c;z-index:5}
#portal .gc-reel-mark:before{content:'▼';position:absolute;top:-7px;left:50%;transform:translateX(-50%);font-size:32px;line-height:32px;color:#ffe382;text-shadow:0 2px 6px #000,0 0 12px #ffbf42;z-index:6}
#portal .gc-reel-mark:after{content:'▲';position:absolute;bottom:-7px;left:50%;transform:translateX(-50%);font-size:32px;line-height:32px;color:#ffe382;text-shadow:0 -2px 6px #000,0 0 12px #ffbf42;z-index:6}
#portal .gc-roll-pointer-label{text-align:center;padding:2px 0 11px;color:#ffdc88;font-size:11px;letter-spacing:1px;font-weight:900}
#portal .gc-reel-card{flex:0 0 136px}
@media(max-width:1440px){#portal .gc-case-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1080px){#portal .gc-case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){#portal .layout{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:620px){
 #portal .layout{display:flex;flex-direction:column}
 #portal .layout > main{width:100%}
 #portal .gc-case-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #portal .gc-case-art{height:118px;padding:4px}
 #portal .gc-case-label{font-size:10px;padding:9px 9px 0}
 #portal .gc-case-foot{padding:7px 8px 10px}
 #portal .gc-case-card{border-radius:10px}
 #portal .gc-roll-box{padding:8px;margin:14px 0}
 #portal .gc-reel-window{height:154px}
}

/* v0.9.3 — responsive garage sales and owner-only credit controls */
.gc-garage-card{display:flex;flex-direction:column;min-width:0}
.gc-garage-card .gc-car-id{display:block;margin-bottom:10px}
.gc-garage-sell{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 12px 0;padding:13px 0 0;border-top:1px solid #9ebfd12b}
.gc-sell-label{display:flex;flex-direction:column;gap:4px;min-width:0}
.gc-sell-label small{padding:0;color:#8daebf;font-size:11px}
.gc-sell-label b{color:#7bffc0;font-size:17px;white-space:nowrap}
.gc-sell-btn{border:1px solid #8cf5bf8c;border-radius:9px;background:linear-gradient(115deg,#1d7a63,#2aab7a);color:white;cursor:pointer;font-weight:800;padding:10px 14px;white-space:nowrap}
.gc-sell-btn:hover{filter:brightness(1.13)}.gc-sell-btn:disabled{opacity:.6;cursor:not-allowed}
.gc-sale-credit{color:#83f8bf!important}
.gc-quick-credit{border:1px solid #6cc9a374;background:linear-gradient(125deg,#112e2a,#152334);padding:16px;border-radius:14px;margin:6px 0 19px}
.gc-quick-credit strong{font-size:17px;color:#c4ffe3;display:block;margin-bottom:6px}
.gc-quick-credit small{display:block;color:#9fb4be;font-size:12px}
.gc-credit-fields{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}
.gc-credit-fields input{background:#101e29;border:1px solid #6e9a978c;border-radius:9px;color:white;min-height:42px;min-width:130px;padding:10px;flex:1}
.gc-credit-fields button{min-height:42px}
@media(max-width:620px){.gc-credit-fields{flex-direction:column;align-items:stretch}.gc-credit-fields input,.gc-credit-fields button{width:100%}.gc-garage-sell{flex-wrap:wrap}.gc-garage-grid{grid-template-columns:minmax(0,1fr)}}

/* v0.9.5 — restricted account administration (IP, username, password reset) */
.gc-owner-security{background:#122732;border:1px solid #547e8e88;padding:16px;border-radius:13px;margin:8px 0 17px;max-width:950px}
.gc-owner-security strong{color:#b8ebff;font-size:15px}
.gc-owner-security p,.gc-security-note{font-size:12px;color:#aec5cf;line-height:1.55;margin:7px 0}
.gc-owner-security label{display:block;font-size:12px;margin:10px 0 6px;color:#e0eef4}
.gc-owner-security input{width:100%;max-width:410px}
.gc-ip-line{font-size:12px;line-height:1.6;color:#b4c7d0;overflow-wrap:anywhere;margin:8px 0 12px}
.gc-ip-line strong{color:#d0e7f5}.gc-ip-line code{color:#83deb5}
.gc-account-controls{border:1px solid #38576b;border-radius:10px;padding:10px 12px;margin-top:13px;background:#111f2a}
.gc-account-controls summary{cursor:pointer;font-size:13px;font-weight:700;color:#c5dcff}
.gc-account-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:9px 0}
.gc-account-row input{flex:1;min-width:145px;max-width:365px}
.gc-account-row button{min-height:39px}
@media(max-width:620px){.gc-account-row{flex-direction:column;align-items:stretch}.gc-account-row input,.gc-account-row button{width:100%;max-width:none}}

/* Columns keep their width when the player sells a car. */
#portal .gc-garage-grid {
 display:grid;
 grid-template-columns:repeat(auto-fill,minmax(min(100%,235px),1fr));
 gap:14px;
}
#portal .gc-garage-card {width:100%;max-width:310px}
#portal .gc-garage-card > img {
 display:block;
 width:100%;
 height:clamp(124px,20vw,175px);
 aspect-ratio:auto;
 object-fit:contain;
 background:#0d1a24;
}
#portal .gc-garage-sell .gc-sell-btn {min-height:44px}
@media(max-width:700px) {
 #portal .gc-garage-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 #portal .gc-garage-card > img {height:clamp(93px,25vw,166px)}
 #portal .gc-garage-card strong {font-size:14px;padding:9px 9px 4px}
 #portal .gc-garage-card .gc-car-id {font-size:10px;padding:0 9px;margin-bottom:5px}
 #portal .gc-garage-sell {margin:3px 9px 0;padding-top:8px;gap:6px}
 #portal .gc-garage-sell .gc-sell-label {order:-1;display:flex;flex-wrap:wrap;gap:3px}
 #portal .gc-sell-label b {font-size:14px}
 #portal .gc-garage-sell .gc-sell-btn {padding:5px 7px;font-size:11px;flex-basis:100%}
 #portal .gc-open-btn {min-height:44px}
 #portal .gc-roll-box header {height:auto;min-height:44px}
 #portal .gc-roll-box header button {min-width:44px;min-height:44px}
 #portal .gc-history-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}
 #portal .gc-history-row small {grid-column:1/-1}
}
