/* Page-specific adaptation of the supplied GameMarket trading designs.
   Existing forms, listing links and real-time chat keep their original hooks. */
body.gm-subpage .gm-trade-market,
body.gm-subpage .gm-trade-form { width:100%; min-width:0; }
body.gm-subpage .gm-trade-market { color:#242d44; }
body.gm-subpage .gm-trade-market .trade_page_title { display:flex; align-items:center; gap:10px; margin:0 0 12px; padding:16px 18px; border:1px solid #e4e9f3; border-radius:13px; background:#fff; }
body.gm-subpage .gm-trade-market .trade-page-heading { color:#242d44; font-size:21px; font-weight:800; letter-spacing:-.6px; }
body.gm-subpage .gm-trade-market .trade_page_title > a { white-space:nowrap; border-radius:7px; }
body.gm-subpage .gm-trade-market .search_link_wrap { overflow:visible; margin-bottom:16px!important; border:1px solid #e4e9f3; border-radius:13px; background:#fff; }
body.gm-subpage .gm-trade-market .search_link_row { min-height:46px; padding:4px 10px; align-items:center; border-color:#eef1f7; }
body.gm-subpage .gm-trade-market .search_link_row:last-child { border-bottom:0; }
body.gm-subpage .gm-trade-market .search_link_row:first-child { border-radius:13px 13px 0 0; padding:10px; background:#fcfdff; }
body.gm-subpage .gm-trade-market .search_link_title { min-width:78px; padding-left:3px; margin-right:8px; justify-content:flex-start; color:#53617d; font-size:13px; font-weight:750; }
body.gm-subpage .gm-trade-market .search_link { flex:none; min-width:0!important; min-height:30px; margin:2px; padding:4px 10px; border:1px solid transparent; border-radius:6px; color:#596780; font-size:15px!important; font-weight:500; }
body.gm-subpage .gm-trade-market .search_link:hover { background:#f5f7ff; color:#315bf4; }
body.gm-subpage .gm-trade-market .search_link.active { color:#315bf4; background:#edf2ff; border-color:#dae3ff; font-weight:750; }
body.gm-subpage .gm-trade-market .trade-search-controls { gap:6px; padding:4px 0; }
body.gm-subpage .gm-trade-market .trade-search-controls :is(select,input,button) { min-height:36px; border-color:#e0e6f1; border-radius:7px; font-size:13px; padding:6px 10px; background:#fcfdff; }
body.gm-subpage .gm-trade-market .trade-search-controls select { width:125px; }
body.gm-subpage .gm-trade-market .trade-search-controls button { padding-inline:16px; color:#fff; background:#315bf4; border-color:#315bf4; font-weight:700; }
body.gm-subpage .gm-trade-market .trade-filter-items { gap:2px; align-items:center; }
body.gm-subpage .gm-trade-market .trade-filter-items label { font-size:13px; color:#65718a; }
body.gm-subpage :is(.gm-chat-list,.gm-chat-panel) .trade_title :is(.sell,.buy):not(.gm-trade-badge) { display:inline-flex; align-items:center; justify-content:center; min-width:0; padding:2px 6px; border:0; border-radius:5px; color:#4969d9; background:#eaf1ff; font-size:10px; font-weight:750; }
body.gm-subpage :is(.gm-chat-list,.gm-chat-panel) .trade_title .buy:not(.gm-trade-badge) { color:#b3455a; background:#fff0f3; }
body.gm-subpage .gm-order-page .page_wrap { display:flex; flex-wrap:wrap; justify-content:center; gap:5px; }
body.gm-subpage .gm-order-page .page_wrap a { display:inline-flex; justify-content:center; align-items:center; min-width:32px; height:32px; margin:0; padding:3px 7px; border:1px solid #e4e9f3; border-radius:6px; color:#65728e; background:#fff; font-size:12px; }
body.gm-subpage .gm-order-page .page_wrap a.active { color:#fff; background:#315bf4; border-color:#315bf4; }

/* Empty results use their own card without changing populated market rows. */
body.gm-subpage .gm-trade-market .trade_list.gm-trade-list-empty { overflow:hidden; border:1px solid #e2e8f3; border-radius:15px; background:#fff; box-shadow:0 3px 14px #243d6a04; }
body.gm-subpage .gm-trade-market .trade_list > .gm-trade-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:290px; padding:45px 24px; border:0; text-align:center; }
body.gm-subpage .gm-trade-empty-symbol { display:grid; place-items:center; width:68px; height:68px; margin-bottom:20px; border:1px solid #e2e9fc; border-radius:21px; background:linear-gradient(145deg,#edf2ff,#f6f8ff); color:#7893dc; }
body.gm-subpage .gm-trade-empty-symbol svg { width:31px; height:31px; }
body.gm-subpage .gm-trade-market .gm-trade-empty h2 { margin:0 0 10px; color:#35455f; font-size:19px; font-weight:750; line-height:1.5; letter-spacing:-.4px; }
body.gm-subpage .gm-trade-market .gm-trade-empty p { margin:0; color:#8492aa; font-size:14px; line-height:1.85; }
@media(max-width:640px) {
 body.gm-subpage .gm-trade-market .trade_list > .gm-trade-empty { min-height:260px; padding:35px 18px; }
 body.gm-subpage .gm-trade-empty-symbol { width:60px; height:60px; margin-bottom:17px; border-radius:18px; }
 body.gm-subpage .gm-trade-market .gm-trade-empty h2 { font-size:17px; }
 body.gm-subpage .gm-trade-market .gm-trade-empty p { font-size:13px; }
}

/* Registration and editing share the production form and quantity controls. */
body.gm-subpage .gm-trade-form { color:#202a43; }
body.gm-subpage .gm-trade-form-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 20px; }
body.gm-subpage .gm-trade-eyebrow { display:block; color:#5978cf; font-size:10px; font-weight:750; letter-spacing:1.3px; }
body.gm-subpage .gm-trade-form-heading h1 { margin:4px 0 5px; color:#202a43; font-size:28px; font-weight:800; letter-spacing:-.8px; }
body.gm-subpage .gm-trade-form-heading p { margin:0; color:#72809a; font-size:13px; }
body.gm-subpage .gm-trade-form-heading > a { display:flex; align-items:center; gap:14px; padding:9px 12px; border:1px solid #dce4f4; border-radius:8px; background:#fff; color:#536baf; font-size:12px; font-weight:650; white-space:nowrap; }
body.gm-subpage .gm-register-steps { display:flex; align-items:center; gap:24px; margin:0 0 16px; padding:14px 18px; list-style:none; border:1px solid #e2e8f3; border-radius:12px; background:#fff; }
body.gm-subpage .gm-register-steps li { display:flex; align-items:center; gap:7px; color:#65718a; font-size:12px; }
body.gm-subpage .gm-register-steps li + li::before { content:'›'; margin-right:14px; color:#b1bdd4; }
body.gm-subpage .gm-register-steps b { display:grid; place-items:center; width:23px; height:23px; border-radius:7px; background:#edf2ff; color:#315bf4; font-size:11px; }
body.gm-subpage .gm-trade-form .trade_write_wrap { border:1px solid #e2e8f3; border-radius:14px; background:#fff; }
body.gm-subpage .gm-trade-form .trade_write_section { border-color:#edf0f6; }
body.gm-subpage .gm-trade-form .trade_write_title { gap:3px; padding:19px 20px 12px; color:#34415d; font-size:14px; font-weight:750; }
body.gm-subpage .gm-trade-form .trade_write_title a svg { fill:#99a7bd; }
body.gm-subpage .gm-trade-form :is(.trade_write_radio_row,.trade_write_select_row,.trade_write_input_row_half,.trade_write_input_row_three,.trade_write_input_row_all) { padding-left:20px; padding-right:20px; padding-bottom:18px; }
body.gm-subpage .gm-trade-form .trade_write_radio_row { padding-top:0; }
body.gm-subpage .gm-trade-form .basic_radio_row { gap:8px; }
body.gm-subpage .gm-trade-form .basic_radio_row label { min-height:36px; color:#5a6882; font-size:13px; }
body.gm-subpage .gm-trade-form .basic_radio_row input { accent-color:#315bf4; }
body.gm-subpage .gm-trade-form :is(.trade_write_input,.trade_write_select select,.trade_write_select_row select) { min-height:46px; height:46px; border:1px solid #dce4f1; border-radius:8px; background:#fcfdff; color:#34415d; font-size:13px; }
body.gm-subpage .gm-trade-form .trade_write_input input { min-width:0; font-size:14px; }
body.gm-subpage .gm-trade-form .trade_write_input .trade_write_tag { font-size:13px; color:#7a879f; background:#fcfdff; }
body.gm-subpage .gm-trade-form .trade_write_select .trade_write_tag { font-size:11px; background:#fcfdff; color:#73809a; }
body.gm-subpage .gm-trade-form .trade_write_input:has(input:focus) { border:1px solid #8fa7ff; box-shadow:0 0 0 3px #315bf410; }
body.gm-subpage .gm-trade-form .trade_write_input input:focus + .trade_write_tag,
body.gm-subpage .gm-trade-form .trade_write_input.active .trade_write_tag { top:0; font-size:11px; }
/* Quantity labels stay above the controls; the wrapper owns their single focus ring. */
body.gm-subpage .gm-trade-form .trade_write_section .trade_write_input_row_three.trade-quantity-row { padding-top:24px; }
body.gm-subpage .gm-trade-form .trade_write_input_row_three.trade-quantity-row .trade_write_input { box-sizing:border-box; border-width:1px; }
body.gm-subpage .gm-trade-form .trade_write_input_row_three.trade-quantity-row .trade_write_input:focus-within { border:1px solid var(--registration-accent,#315bf4); outline:0; box-shadow:0 0 0 3px var(--registration-focus,#315bf424); }
body.gm-subpage .gm-trade-form .trade_write_input_row_three.trade-quantity-row .trade_write_input input { border:0; border-radius:inherit; background:transparent; }
body.gm-subpage .gm-trade-form .trade_write_input_row_three.trade-quantity-row .trade_write_input input:is(:focus,:focus-visible) { outline:0; outline-offset:0; box-shadow:none; }
body.gm-subpage .gm-trade-form .trade_write_input_row_three.trade-quantity-row :is(.trade_write_input,.trade_write_select)>.trade_write_tag { top:-8px; left:0; z-index:2; margin:0; padding:0; border:0; background:transparent; color:#73809a; font-size:13px; line-height:1.2; transform:translateY(-100%); pointer-events:none; transition:color .15s; }
body.gm-subpage .gm-trade-form .trade_write_input_row_three.trade-quantity-row :is(.trade_write_input,.trade_write_select):focus-within>.trade_write_tag { color:var(--registration-accent,#315bf4); }
body.gm-subpage .gm-trade-form .sch_form_sell { width:100%; min-height:44px; border:1px solid #dce4f1; border-radius:8px; background:#fcfdff; padding:9px 12px; }
body.gm-subpage .gm-trade-form .sell_server_list { border-color:#dce4f1; border-radius:10px; }
body.gm-subpage .gm-trade-form .sell_game_box li { font-size:12px; border-color:#eef1f7; }
body.gm-subpage .gm-trade-form .sell_game_box li:hover { background:#edf2ff; color:#315bf4; }
body.gm-subpage .gm-trade-form .trade_write_title_info { padding:0 20px 12px; color:#7a879f; font-size:12px; }
body.gm-subpage .gm-trade-form .trade_write_title_info.red { color:#b34457; }
body.gm-subpage .gm-trade-form .text_wright_bot_info { color:#7a879f; font-size:12px; }
body.gm-subpage .gm-trade-form .submit_btn { min-width:180px; min-height:46px; height:auto; padding:12px 24px; border:1px solid #315bf4; border-radius:9px; color:white; background:#315bf4; font-size:14px; font-weight:750; }
body.gm-subpage .gm-trade-form .submit_btn:hover { background:#254bd8; }
body.gm-subpage .gm-trade-form .trade-summary-sentence { line-height:1.65; }

/* Keep the original detail UI and align its outer edges with the shared header. */
body.gm-subpage[data-gm-page=trade_detail_test] { --gm-bg:#fff; }
body.gm-subpage[data-gm-page=trade_detail_test] .gm-page-content { padding:0; }
body.gm-subpage[data-gm-page=trade_detail_test] .gm-page-body { color:#000; font-family:"Pretendard Variable",sans-serif; font-size:15px; line-height:1.5; letter-spacing:normal; }
body.gm-subpage #trade_detail_mobile_bar { bottom:var(--gm-mobile-nav-height,0px); }
body.gm-subpage .gm-trade-detail { width:100%; min-width:0; }

/* Account game catalog. The links still point to the live account filters. */
body.gm-subpage .gm-account-catalog { display:flex; flex-direction:column; width:100%; gap:18px!important; margin:0!important; }
body.gm-subpage .gm-catalog-intro { display:flex; align-items:center; justify-content:space-between; gap:14px; }
body.gm-subpage .gm-catalog-intro p { margin:0; color:#73809a; font-size:12px; }
body.gm-subpage .gm-account-catalog > h1 { order:-1; margin:0!important; color:#242d44; font-size:27px!important; font-weight:800; text-align:left; letter-spacing:-.7px; }
body.gm-subpage .gm-account-catalog > h1 span { color:#315bf4; }
body.gm-subpage .gm-account-catalog .gm-account-initials { display:flex; align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:8px; width:100%; margin:4px 0 8px; padding:16px; border:1px solid #e0e7f3; border-radius:13px; background:#fff; }
body.gm-subpage .gm-account-initials > button { display:inline-flex; align-items:center; justify-content:center; flex:none; min-width:44px; min-height:44px; padding:9px 13px; border:1px solid #e3e9f4; border-radius:9px; color:#52617d; background:#f7f9fd; font-size:15px; font-weight:700; line-height:1.4; white-space:nowrap; cursor:pointer; transition:background .15s,border-color .15s,color .15s; }
body.gm-subpage .gm-account-initials > button:hover { border-color:#b3c3fb; background:#edf2ff; color:#315bf4; }
body.gm-subpage .gm-account-initials > button.active { border-color:#315bf4; background:#315bf4; color:#fff; box-shadow:0 3px 8px #315bf426; }
body.gm-subpage .gm-account-initials > button:focus-visible { outline:3px solid #a7bcff; outline-offset:3px; }
body.gm-subpage .gm-account-catalog .game-box { padding:0!important; gap:13px; }
body.gm-subpage .gm-account-catalog .game-box .game-wrap { min-height:150px; padding:13px 8px!important; border:1px solid #e2e8f3; border-radius:13px; background:#fff!important; box-shadow:0 2px 8px #273b6a04; transition:transform .15s,border-color .15s,box-shadow .15s; }
body.gm-subpage .gm-account-catalog .game-box .game-wrap > div { border:0; padding:0!important; background:transparent; box-shadow:none; }
body.gm-subpage .gm-account-catalog .game-box .game-wrap:hover { transform:translateY(-3px); border-color:#aebffc; box-shadow:0 7px 19px #315bf40e; }
body.gm-subpage .gm-account-catalog .game-box .game-wrap img { width:74px; height:74px; object-fit:contain; }
body.gm-subpage .gm-account-catalog .game-title { font-size:12px; font-weight:700; }
body.gm-subpage .gm-account-filter-head { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; margin-top:6px; }
body.gm-subpage .gm-account-filter-head h2 { margin:0; color:#34415d; font-size:21px; font-weight:800; }
body.gm-subpage .gm-account-filter-head p { margin:4px 0 0; color:#73809a; font-size:12px; }
body.gm-subpage .gm-account-result { margin:-5px 0; color:#73809a; font-size:12px; }
body.gm-subpage .gm-account-catalog table { border:1px solid #e2e8f3; border-radius:12px; background:#fff; }
body.gm-subpage .gm-account-catalog th { background:#f8faff; color:#73809a; font-size:11px; }
body.gm-subpage .gm-account-catalog td { padding-block:12px!important; border-top:1px solid #edf0f7; color:#53617d; font-size:12px; }

/* Conversation styling does not change viewport, scrolling or socket behavior. */
body.gm-subpage .gm-chat-list { background:#f6f8fc; color:#34415d; }
body.gm-subpage .gm-chat-list > div:first-child { background:#fff!important; border-bottom:1px solid #e4e9f3; }
body.gm-subpage .gm-chat-list .chat-list-toolbar { flex-wrap:wrap; align-items:center; }
body.gm-subpage .gm-chat-list .chat-list-date-filter { border-radius:7px; border-color:#e2e8f3; font-size:12px; }
body.gm-subpage .gm-chat-list .chat-list-date-filter.is-active { background:#edf2ff; color:#315bf4; border-color:#dae3ff; }
body.gm-subpage .gm-chat-list :is(.chat-room-item,[data-chat-room-id]) { border-color:#e7edf6!important; background:#fff; }
body.gm-subpage .gm-chat-list .chat-room-item:hover { background:#f5f8ff; }
body.gm-subpage .gm-chat-list .profile a,
body.gm-subpage .gm-chat-panel .profile a { color:#5472cc; background:#eaf0ff; border:0; border-radius:12px; }
body.gm-subpage .gm-chat-panel { color:#34415d; background:#f5f7fc!important; }
body.gm-subpage .gm-chat-panel .chat-header { border-color:#e2e8f3; border-radius:0; background:#fff; margin-bottom:0; }
body.gm-subpage .gm-chat-panel .chat-header-category { color:#7a879f; font-size:11px!important; }
body.gm-subpage .gm-chat-panel #chat-container { background:#f5f7fc; }
body.gm-subpage .gm-chat-panel .chat-message .chat_list { border:1px solid #e2e8f3; border-radius:12px; background:#fff; color:#000; box-shadow:none; }
body.gm-subpage .gm-chat-panel .chat-message.right .chat_list { border-color:#f2f5ff; border-radius:14px 14px 4px 14px; background:#ccd7fa; color:#000; }
body.gm-subpage .gm-chat-panel .chat-composer { border-color:#e2e8f3; background:#fff; }
body.gm-subpage .gm-chat-panel .chat-input-row { border-color:#dce4f1; border-radius:10px; background:#fcfdff; }
body.gm-subpage .gm-chat-panel .chat-send-button { border-radius:8px; background:#315bf4; color:#fff; }
body.gm-subpage .gm-chat-panel .chat-notice { color:#72809a; background:#edf1f8; border:1px solid #e2e8f3; border-radius:9px; }
body.gm-subpage .gm-chat-confirm { background:#f5f7fc!important; color:#53617d; }
body.gm-subpage .gm-chat-confirm .msginput { border:1px solid #dce4f1; border-radius:8px; font-size:13px; }
body.gm-subpage .gm-chat-confirm .send-button { background:#315bf4; border-radius:8px; }
body.gm-subpage .gm-order-page { width:100%; max-width:none; margin-inline:0; border:1px solid #e2e8f3; border-radius:14px; padding:22px; background:#fff; }
body.gm-subpage .gm-order-page .sell_list_title { margin-bottom:18px; color:#242d44; font-size:20px; font-weight:700; }
body.gm-subpage .gm-order-page .detail_in_title { color:#34415d; font-size:16px; }
body.gm-subpage .gm-order-page .detail_table { border-color:#e2e8f3; border-radius:10px; }
body.gm-subpage .gm-order-page .detail_table .row { border-color:#edf0f7; }

/* Real game directory, with the supplied catalog hero and initial filters. */
body.gm-subpage .gm-games-catalog { color:#1d2844; }
body.gm-subpage .gm-catalog-breadcrumb { display:flex; align-items:center; gap:8px; margin:0 0 15px; color:#73809a; font-size:12px; }
body.gm-subpage .gm-catalog-breadcrumb [aria-current] { color:#34415d; font-weight:700; }
body.gm-subpage .gm-catalog-hero { position:relative; isolation:isolate; display:flex; align-items:center; min-height:188px; padding:26px 34px; overflow:hidden; border-radius:16px; background:radial-gradient(ellipse 390px 240px at 82% 98%,#526dff,transparent),linear-gradient(113deg,#1f40c8,#315bf4 64%,#4b70fa); color:#fff; }
body.gm-subpage .gm-catalog-hero-copy { position:relative; z-index:1; max-width:68%; }
body.gm-subpage .gm-catalog-kicker { display:flex; align-items:center; gap:7px; color:#d7e0ff; font-size:10px; font-weight:720; letter-spacing:1.8px; }
body.gm-subpage .gm-catalog-kicker i { width:5px; height:5px; border-radius:50%; background:#98f6db; }
body.gm-subpage .gm-catalog-hero h1 { margin:6px 0 5px; color:#fff; font-size:39px; line-height:1.18; font-weight:830; letter-spacing:-1.5px; }
body.gm-subpage .gm-catalog-hero p { margin:0 0 14px; color:#e2e8ff; font-size:14px; line-height:1.6; }
body.gm-subpage .gm-catalog-hero-copy > a { display:inline-flex; gap:9px; align-items:center; padding:0 0 2px; border-bottom:1px solid #ffffff70; color:#fff; font-size:12px; font-weight:720; }
body.gm-subpage .gm-catalog-orbit { position:absolute; inset:-164px -40px auto auto; z-index:-1; width:490px; aspect-ratio:1; border:1px solid #ffffff23; border-radius:50%; box-shadow:0 0 0 33px #ffffff0c,0 0 0 68px #ffffff0a; }
body.gm-subpage .gm-catalog-controller { position:absolute; right:108px; top:0; width:228px; height:228px; object-fit:contain; filter:drop-shadow(0 15px 20px #132c9790); pointer-events:none; }
body.gm-subpage .gm-catalog-hero-accounts { width:100%; background:radial-gradient(ellipse 420px 240px at 83% 100%,#3d71f8,transparent),linear-gradient(113deg,#182d83,#2846c2 64%,#315bf4); }
body.gm-subpage .gm-catalog-account-art { position:absolute; width:180px; right:136px; top:20px; transform:rotate(3deg); filter:drop-shadow(0 15px 18px #132c9770); pointer-events:none; }
body.gm-subpage .gm-catalog-account-art svg { display:block; width:100%; }
body.gm-subpage .gm-catalog-art-spark { position:absolute; color:#b2fff0; font-size:28px; right:-12px; top:5px; }
body.gm-subpage .gm-account-catalog > .gm-catalog-breadcrumb { margin-bottom:-3px; }
body.gm-subpage .gm-trade-safety { padding:20px 15px; border:1px solid #d9e3fc; border-radius:14px; background:linear-gradient(160deg,#eaf1ff,#f4f7ff 71%); color:#34415d; }
body.gm-subpage .gm-trade-safety > span { color:#4966c2; font-size:10px; font-weight:750; letter-spacing:.7px; }
body.gm-subpage .gm-trade-safety h2 { margin:10px 0; font-size:20px; line-height:1.35; font-weight:800; letter-spacing:-.5px; }
body.gm-subpage .gm-trade-safety p { margin:0 0 14px; color:#65738e; font-size:11px; line-height:1.8; }
body.gm-subpage .gm-trade-safety a { color:#4261c8; font-size:12px; font-weight:750; }
body.gm-subpage .gm-catalog-panel { margin-top:20px; padding:22px 24px; border:1px solid #e2e8f4; border-radius:15px; background:#fff; box-shadow:0 4px 18px #27386c06; }
body.gm-subpage .gm-catalog-panel-head { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:16px; }
body.gm-subpage .gm-catalog-panel h2,
body.gm-subpage .gm-catalog-guide h2 { margin:0; color:#1d2844; font-size:21px; font-weight:800; letter-spacing:-.5px; }
body.gm-subpage .gm-catalog-panel-head p,
body.gm-subpage .gm-catalog-guide p { margin:4px 0 0; color:#66738f; font-size:13px; }
body.gm-subpage .gm-catalog-search { display:flex; align-items:center; gap:8px; padding:0 10px; min-height:41px; width:min(37%,272px); min-width:150px; border:1px solid #dae3f3; border-radius:8px; background:#fbfcff; color:#66738f; }
body.gm-subpage .gm-catalog-search:focus-within { border-color:#899ff8; box-shadow:0 0 0 2px #315bf41d; }
body.gm-subpage .gm-catalog-search svg { display:block; flex:none; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
body.gm-subpage .gm-catalog-search input { width:100%; min-width:0; padding:8px 0; outline:none; border:0; background:none; color:#1d2844; font:inherit; font-size:12px; }
body.gm-subpage .gm-catalog-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body.gm-subpage .gm-catalog-initials { display:flex; align-items:center; flex-wrap:wrap; gap:5px; padding:9px; border:1px solid #e2e8f4; border-radius:9px; background:#f7f9fd; }
body.gm-subpage .gm-catalog-initials button { min-width:32px; min-height:33px; padding:3px 9px; border:1px solid transparent; border-radius:6px; background:transparent; color:#556684; font-size:12px; font-weight:720; cursor:pointer; }
body.gm-subpage .gm-catalog-initials button:hover { background:white; color:#315bf4; border-color:#dce5ff; }
body.gm-subpage .gm-catalog-initials button[aria-pressed=true] { border-color:#315bf4; background:#315bf4; color:white; }
body.gm-subpage .gm-catalog-result { min-height:42px; display:flex; align-items:center; gap:4px; margin:4px 0; color:#66738f; font-size:12px; font-weight:650; }
body.gm-subpage .gm-catalog-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
body.gm-subpage .gm-catalog-game { display:flex; align-items:center; gap:9px; min-width:0; min-height:62px; padding:7px 8px; border:1px solid #e2e8f4; border-radius:9px; background:white; transition:border-color .15s,background .15s,box-shadow .15s; }
body.gm-subpage .gm-catalog-game:hover { border-color:#9fb3fc; background:#fbfcff; box-shadow:0 4px 10px #315bf40d; }
body.gm-subpage .gm-catalog-game-icon { display:grid; place-items:center; width:40px; height:40px; flex:none; overflow:hidden; border-radius:9px; background:#e9efff; color:#4c64ae; font-size:15px; font-weight:820; }
body.gm-subpage .gm-catalog-game:nth-child(5n+2) .gm-catalog-game-icon { background:#e6f6f3; color:#1c7967; }
body.gm-subpage .gm-catalog-game:nth-child(5n+3) .gm-catalog-game-icon { background:#f1eafa; color:#74499e; }
body.gm-subpage .gm-catalog-game:nth-child(5n+4) .gm-catalog-game-icon { background:#fff2e3; color:#a26630; }
body.gm-subpage .gm-catalog-game:nth-child(5n+5) .gm-catalog-game-icon { background:#e8f1f9; color:#426c91; }
body.gm-subpage .gm-catalog-game-icon img { width:100%; height:100%; object-fit:contain; }
body.gm-subpage .gm-catalog-game-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#34415d; font-size:13px; font-weight:730; }
body.gm-subpage .gm-catalog-game-arrow { color:#899abf; font-size:18px; }
body.gm-subpage .gm-catalog-empty { padding:29px 12px; border:1px dashed #d9e1f2; border-radius:9px; text-align:center; color:#66738f; }
body.gm-subpage .gm-catalog-empty strong { color:#34415d; }
body.gm-subpage .gm-catalog-empty p { margin:4px 0 10px; font-size:12px; }
body.gm-subpage .gm-catalog-empty button { border:0; border-bottom:1px solid #c1cdff; background:none; color:#315bf4; padding:2px 0; cursor:pointer; }
body.gm-subpage .gm-catalog-guide { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:20px; padding:20px 24px; border:1px solid #dce6ff; border-radius:14px; background:#eef3ff; }
body.gm-subpage .gm-catalog-guide-eyebrow { display:block; margin-bottom:4px; color:#506ac3; font-size:10px; font-weight:780; letter-spacing:1.5px; }
body.gm-subpage .gm-catalog-guide a { display:inline-flex; align-items:center; gap:8px; flex:none; padding:8px 10px; border:1px solid #d4e0ff; border-radius:6px; background:white; color:#2e50cc; font-size:12px; font-weight:740; }
body.gm-subpage[data-gm-page=chat_list] .gm-page-content,
body.gm-subpage[data-gm-page=new_chat_iframe_socket] .gm-page-content,
body.gm-subpage[data-gm-page=chat_iframe_socket] .gm-page-content { max-width:none; width:100%; margin:0; padding:0; }

@media (max-width:1023px) {
 body.gm-subpage .gm-account-catalog .gm-account-initials { gap:6px; padding:12px; }
 body.gm-subpage .gm-account-catalog .game-box { gap:10px; }
 body.gm-subpage .gm-catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
 body.gm-subpage .gm-catalog-controller { right:30px; }
 body.gm-subpage .gm-catalog-account-art { right:40px; }
}
@media (max-width:640px) {
 body.gm-subpage .gm-trade-market .trade_page_title { gap:6px; padding:12px; margin-bottom:9px; border-radius:10px; }
 body.gm-subpage .gm-trade-market .trade-page-heading { font-size:16px; }
 body.gm-subpage .gm-trade-market .search_link_row { min-height:39px; padding:4px 7px; }
 body.gm-subpage .gm-trade-market .search_link_title { min-width:58px!important; margin-right:4px; font-size:12px; }
 body.gm-subpage .gm-trade-market .search_link { min-height:29px; padding:4px 7px; margin:1px; }
 body.gm-subpage .gm-trade-market .trade-search-controls { gap:4px; padding:3px 0; }
 body.gm-subpage .gm-trade-market .trade-search-controls :is(input,select,button) { min-height:35px; font-size:12px; padding:6px; }
 body.gm-subpage .gm-trade-market .trade-search-controls select { flex-basis:90px; width:90px; }
 body.gm-subpage .gm-trade-market .trade-search-controls button { width:46px; padding:6px; }
 body.gm-subpage .gm-trade-market .trade-filter-items { overflow-x:auto; }
 body.gm-subpage .gm-trade-form-heading { gap:8px; margin-bottom:15px; }
 body.gm-subpage .gm-trade-form-heading h1 { font-size:23px; }
 body.gm-subpage .gm-trade-form-heading p { font-size:11px; }
 body.gm-subpage .gm-trade-form-heading > a { padding:7px 9px; font-size:11px; gap:5px; }
 body.gm-subpage .gm-register-steps { gap:8px; padding:12px; margin-bottom:12px; }
 body.gm-subpage .gm-register-steps li { gap:5px; font-size:10px; }
 body.gm-subpage .gm-register-steps li + li::before { margin-right:3px; }
 body.gm-subpage .gm-register-steps b { width:20px; height:20px; font-size:10px; }
 body.gm-subpage .gm-trade-form .trade_write_title { padding:16px 13px 10px; font-size:13px; }
 body.gm-subpage .gm-trade-form :is(.trade_write_radio_row,.trade_write_select_row,.trade_write_input_row_half,.trade_write_input_row_three,.trade_write_input_row_all) { padding-left:13px; padding-right:13px; padding-bottom:14px; }
 body.gm-subpage .gm-trade-form .trade_write_input_row_three { flex-wrap:wrap; row-gap:12px; }
 body.gm-subpage .gm-trade-form .trade_write_select select { min-width:70px; }
 body.gm-subpage .gm-trade-form .trade_write_input input { font-size:16px; }
 body.gm-subpage .gm-trade-form .trade_write_title_info { padding-left:13px; padding-right:13px; font-size:11px; }
 body.gm-subpage .gm-catalog-intro { display:block; }
 body.gm-subpage .gm-catalog-intro p { margin-top:6px; font-size:11px; }
 body.gm-subpage .gm-account-catalog > h1 { font-size:22px!important; }
 body.gm-subpage .gm-account-catalog .game-box { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
 body.gm-subpage .gm-account-catalog .game-box .game-wrap { min-height:122px; padding:11px 5px!important; }
 body.gm-subpage .gm-account-catalog .game-box .game-wrap img { width:58px; height:58px; }
 body.gm-subpage .gm-account-catalog .game-title { font-size:10px; text-align:center; }
 body.gm-subpage .gm-account-filter-head { flex-direction:column; align-items:stretch; gap:10px; }
 body.gm-subpage .gm-account-filter-head h2 { font-size:18px; }
 body.gm-subpage .gm-chat-list .chat-list-toolbar { gap:6px; }
 body.gm-subpage .gm-chat-panel .chat-header { padding:10px!important; }
 body.gm-subpage .gm-order-page { padding:14px; border-radius:11px; }
 body.gm-subpage .gm-order-page .sell_list_title { font-size:20px; }
 body.gm-subpage .gm-catalog-hero { min-height:170px; padding:21px 17px; border-radius:12px; }
 body.gm-subpage .gm-catalog-hero-copy { max-width:78%; }
 body.gm-subpage .gm-catalog-hero h1 { font-size:28px; letter-spacing:-1px; }
 body.gm-subpage .gm-catalog-hero p { font-size:12px; }
 body.gm-subpage .gm-catalog-controller { width:118px; height:118px; right:-2px; top:auto; bottom:0; opacity:.82; }
 body.gm-subpage .gm-catalog-account-art { width:106px; right:7px; top:auto; bottom:12px; opacity:.88; }
 body.gm-subpage .gm-catalog-art-spark { right:-6px; top:4px; font-size:17px; }
 body.gm-subpage .gm-catalog-panel { padding:15px; margin-top:14px; border-radius:12px; }
 body.gm-subpage .gm-catalog-panel-head { align-items:flex-start; flex-wrap:wrap; gap:9px; margin-bottom:11px; }
 body.gm-subpage .gm-catalog-panel h2,
 body.gm-subpage .gm-catalog-guide h2 { font-size:18px; }
 body.gm-subpage .gm-catalog-search { width:100%; }
 body.gm-subpage .gm-catalog-search input { font-size:16px; }
 body.gm-subpage .gm-catalog-initials { gap:3px; padding:6px; }
 body.gm-subpage .gm-catalog-initials button { padding:2px 6px; min-width:28px; min-height:30px; }
 body.gm-subpage .gm-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
 body.gm-subpage .gm-catalog-game { gap:6px; min-height:57px; padding:6px; }
 body.gm-subpage .gm-catalog-game-icon { width:30px; height:30px; border-radius:7px; font-size:12px; }
 body.gm-subpage .gm-catalog-game-name { font-size:11px; }
 body.gm-subpage .gm-catalog-game-arrow { display:none; }
 body.gm-subpage .gm-catalog-guide { align-items:flex-start; flex-direction:column; padding:15px; margin-top:14px; }
}
