/* Qblox Studio: the Create Game page, the front door of the Game Studio (the owner's mockup, 2026-11-27:
   docs/ref/mockup-create-game.jpg; brief docs/studio/CREATE-PAGE.md). Dark panels and purple light like the
   Marketplace. All pictures and icons are Venice/GPT Image art in assets/studio/create/; the text is live. */
body.studio { background: radial-gradient(1200px 520px at 70% -10%, #2a1150 0%, transparent 60%), #0b0814; }
#home.cg {
  --line: #2c2245; --line2: #3b2d63; --text: #f4f4ff; --muted: #a59dc4; --violet: #b026ff; --pink: #ff2bd6;
  max-width: none; margin: 0; padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 26px);
  font: 500 15px/1.45 Inter, system-ui, sans-serif; color: var(--text); -webkit-font-smoothing: antialiased;
}
#home.cg, #home.cg * { box-sizing: border-box; }
#home.cg a { color: inherit; }
#home.cg img { display: block; max-width: 100%; }
#home.cg h2 { font-family: Inter, system-ui, sans-serif; }

/* ---------- the header: the same as /marketplace/ (marketplace/market.css) ---------- */
.gem { display: inline-block; width: 1.05em; height: 1.05em; flex: none; vertical-align: -0.15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ff6bd5'/%3E%3Cstop offset='.5' stop-color='%23b026ff'/%3E%3Cstop offset='1' stop-color='%236a14d9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M6 3h12l4 6-10 13L2 9z' fill='url(%23g)'/%3E%3Cpath d='M2 9h20M8 3l4 6 4-6M12 9v13M6.5 9 12 22l5.5-13' fill='none' stroke='%23ffd6f5' stroke-opacity='.75' stroke-width='1.1'/%3E%3C/svg%3E") center/contain no-repeat; }
.mk-top { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 22px; height: 76px; padding: 0 28px; padding-top: env(safe-area-inset-top, 0px);
  background: rgba(11, 8, 20, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.mk-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
#home .mk-brand img { height: 46px; width: auto; filter: drop-shadow(0 0 8px #b026ff55); }
.mk-brand i { width: 1.5px; height: 40px; background: #ffffff55; }
.mk-brand span { font: 800 21px/0.86 Inter, sans-serif; letter-spacing: -.03em; color: #fff; }
.mk-nav { display: flex; align-items: center; gap: 6px; }
.mk-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 0; background: none;
  font-weight: 700; font-size: 16px; text-decoration: none; color: #e9e4ff; white-space: nowrap; }
.mk-nav svg { width: 12px; height: 12px; }
.mk-nav a:hover { background: #ffffff10; }
.mk-nav .on { background: linear-gradient(180deg, #a14cff, #7a22e6); box-shadow: 0 0 0 1px #c58cff66 inset, 0 6px 22px #8a2be255; color: #fff; }
.mk-search { flex: 1; max-width: 360px; margin-left: auto; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px;
  border: 1px solid var(--line2); border-radius: 12px; background: #0f0b1a; color: var(--muted); }
.mk-search svg { width: 20px; height: 20px; flex: none; }
.mk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 500 14.5px Inter, sans-serif; }
.mk-gems { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: #150f24; font-size: 18px; font-weight: 700; }
.mk-gems .gem { width: 24px; height: 24px; }
.mk-gems b { min-width: 40px; }
.mk-gems a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(180deg, #a14cff, #7a22e6); font-size: 24px; line-height: 1; font-weight: 700; text-decoration: none; }
.mk-avatar { width: 50px; height: 50px; flex: none; padding: 0; border-radius: 50%; border: 2px solid var(--violet); overflow: hidden; background: #241a3a; box-shadow: 0 0 16px #b026ff55; }
#home .mk-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- the layout: hero, tiles and featured games on the left; the Create New Game panel on the right ---------- */
.cg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 34%); grid-template-rows: auto auto 1fr;
  grid-template-areas: "hero panel" "tiles panel" "feat panel"; gap: 14px 20px; max-width: 1720px; margin: 0 auto; padding: 12px 24px 0; }
.cg-hero { grid-area: hero; } .cg-tiles { grid-area: tiles; } .cg-feat { grid-area: feat; align-self: start; } .cg-panel { grid-area: panel; }

/* ---------- hero ---------- */
.cg-hero { position: relative; isolation: isolate; min-height: clamp(270px, 23vw, 430px); display: flex; align-items: center; }
.cg-hero picture { position: absolute; top: 0; right: 0; bottom: 0; left: 31%; z-index: -1; }
.cg-art { width: 100%; height: 100%; object-fit: cover; object-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 93%, transparent), linear-gradient(180deg, transparent 0, #000 9%, #000 82%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 93%, transparent), linear-gradient(180deg, transparent 0, #000 9%, #000 82%, transparent); mask-composite: intersect; }
.cg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #0b081400 30%, #0b081499 36%, #0b081400 48%); }
.cg-hero-text { max-width: min(470px, 41%); padding: 10px 0 10px clamp(8px, 1.6vw, 26px); }
.cg-hero h1 { margin: 0; font: 400 clamp(30px, 3vw, 56px)/1 "Russo One", Inter, sans-serif; font-style: italic; text-transform: uppercase; letter-spacing: -.01em;
  color: #fff; text-shadow: 0 4px 0 #2a0d55, 0 0 24px #b026ff55; }
.cg-hero h1 span { display: block; }
.cg-hero h1 em { display: block; margin-top: .02em; font-size: 1.62em; line-height: .96; font-style: italic; color: var(--pink);
  text-shadow: 0 4px 0 #5c0a4e, 0 0 32px #ff2bd677; }
.cg-kick { margin: clamp(10px, 1.1vw, 18px) 0 0; font: 700 clamp(12px, 1vw, 16px)/1.2 Inter, sans-serif; letter-spacing: .42em; text-transform: uppercase; color: #f1ecff; white-space: nowrap; }
.cg-kick i { font-style: normal; color: #c98bff; letter-spacing: 0; margin: 0 .5em 0 .1em; }
.cg-lead { margin: clamp(10px, 1.1vw, 18px) 0 0; font: 500 clamp(13.5px, 1.08vw, 18px)/1.45 Inter, sans-serif; color: #e7e1ff; text-shadow: 0 1px 8px #0b0814; }

/* ---------- five tiles ---------- */
.cg-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cg-tiles a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 84px; padding: 10px 8px;
  border: 1px solid var(--line2); border-radius: 12px; background: linear-gradient(180deg, #1a1331, #120c20); text-align: center; text-decoration: none;
  font-weight: 700; font-size: clamp(13px, 1.05vw, 16.5px); line-height: 1.2; color: #efeaff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cg-tiles a:hover { border-color: #a45cff; box-shadow: 0 0 22px #8a2be233; transform: translateY(-2px); }
#home .cg-tiles img { width: clamp(34px, 2.8vw, 46px); height: auto; aspect-ratio: 1; }
.cg-tiles small { position: absolute; top: -8px; right: 8px; padding: 1px 7px; border-radius: 6px; background: linear-gradient(180deg, #ffd23d, #ffaa00); color: #2b1600;
  font: 800 10px/1.4 Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- featured creator games ---------- */
.cg-feat { padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #150f25, #100b1b); }
.cg-feat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
#home .cg-feat h2 { margin: 0; font-weight: 800; font-size: clamp(18px, 1.5vw, 24px); }
.cg-feat-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
#home .cg-feat-head a img { width: 18px; height: 18px; }
.cg-feat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cg-game { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: #150f24; text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s; }
.cg-game:hover { transform: translateY(-2px); border-color: #a45cff; box-shadow: 0 10px 28px #8a2be233; }
.cg-game .pic { position: relative; display: block; aspect-ratio: 16 / 9; background: #1b1430; }
#home .cg-game .pic img { width: 100%; height: 100%; object-fit: cover; }
.cg-game .pic em { position: absolute; top: 7px; left: 7px; padding: 2px 7px; border-radius: 6px; background: linear-gradient(180deg, #9c42ff, #6c1bdc); color: #fff;
  font: 800 10px/1.4 Inter, sans-serif; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.cg-game b { padding: 7px 10px 0; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-game small { display: flex; align-items: center; gap: 6px; padding: 1px 10px 8px; font-weight: 700; font-size: 14px; color: #e3ddff; }
#home .cg-game small img { width: 13px; height: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cg-empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 12px; }

/* ---------- the Create New Game panel ---------- */
.cg-panel { display: flex; flex-direction: column; padding: 12px 18px 12px; border: 1px solid var(--line2); border-radius: 16px;
  background: linear-gradient(180deg, #171029, #110b1d); box-shadow: 0 0 0 1px #ffffff06 inset, 0 20px 50px #0007; scroll-margin-top: 90px; }
#home .cg-panel h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-weight: 800; font-size: clamp(21px, 1.6vw, 29px); line-height: 1.2; }
#home .cg-panel h2 img { width: 1.5em; height: auto; aspect-ratio: 1; }
.cg-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 0 0 10px; padding: 3px; border: 1px solid var(--line2); border-radius: 12px; background: #0e0a19; }
.cg-steps button { width: 100%; height: 32px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px 0 8px; border: 0; background: #1a1430; font-weight: 700; font-size: 15px; color: #ddd6f5; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%, 13px 50%); }
.cg-steps li:first-child button { border-radius: 9px 0 0 9px; clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%); }
.cg-steps li:last-child button { border-radius: 0 9px 9px 0; padding-right: 8px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 13px 50%); }
.cg-steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #3a2d5c; font-size: 12px; }
.cg-steps .on { background: linear-gradient(180deg, #a14cff, #7a22e6); color: #fff; }
.cg-steps .on b { background: #fff; color: #6a1bd0; }
#cg-form { flex: 1; display: flex; flex-direction: column; }
.cg-last { margin-top: auto; }
.cg-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 7px; min-width: 0; }
.cg-field label, .cg-field .lbl { display: flex; align-items: baseline; gap: 4px; font-weight: 700; font-size: 14px; color: #f1edff; }
.cg-field label i, .cg-field .lbl i { color: #ff3d8b; font-style: normal; }
.cg-field .cnt { margin-left: auto; font-weight: 600; font-size: 13px; color: var(--muted); }
.cg-field .sub { margin-top: -5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cg-field input, .cg-field textarea, .cg-select select { width: 100%; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 9px; background: #0d0918;
  color: var(--text); font: 500 15px Inter, sans-serif; outline: 0; transition: border-color .15s, box-shadow .15s; }
.cg-field input::placeholder, .cg-field textarea::placeholder { color: #8f86ad; }
.cg-field textarea { resize: vertical; min-height: clamp(46px, calc(46px + (100vw - 1280px) * 0.07), 76px); display: block; }
.cg-field input:focus, .cg-field textarea:focus, .cg-select select:focus { border-color: #a45cff; box-shadow: 0 0 0 3px #8a2be233; }
.cg-field.bad input, .cg-field.bad textarea { border-color: #ff5d7a; }
.cg-field.ok input { border-color: #3fd68a88; }
.cg-msg { margin: 0; font-size: 12.5px; font-weight: 600; color: #ff8aa0; }
.cg-msg:empty { display: none; }
.cg-msg.ok { color: #7dffb0; }
.cg-two { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; }
.cg-select { position: relative; }
#home .cg-select img { position: absolute; left: 10px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); pointer-events: none; }
.cg-select select { -webkit-appearance: none; appearance: none; height: 40px; padding: 0 24px 0 36px; font-size: 14px; cursor: pointer; }
.cg-select select option { background: #150f24; color: #fff; }
.cg-select::after { content: ""; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; border-right: 2px solid #ddd6f5; border-bottom: 2px solid #ddd6f5; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.cg-mode, .cg-seg { display: flex; gap: 3px; height: 40px; box-sizing: border-box; padding: 3px; border: 1px solid var(--line2); border-radius: 9px; background: #0d0918; }
.cg-mode button, .cg-seg button { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 4px; border: 0; border-radius: 7px; background: none;
  font-weight: 700; font-size: 12.5px; color: #ddd6f5; white-space: nowrap; }
#home .cg-mode button img { width: 16px; height: 16px; }
.cg-mode .on, .cg-seg .on { background: linear-gradient(180deg, #8a2be2cc, #6a1bd0cc); box-shadow: 0 0 0 1px #c58cff inset, 0 0 14px #8a2be255; color: #fff; }
.cg-mode button:disabled { opacity: .6; cursor: not-allowed; }
.cg-mode small { position: absolute; top: -9px; right: 2px; }
.cg-mode small, .cg-pic .up em { padding: 1px 5px; border-radius: 5px; background: #ffba00; color: #2b1600; font: 800 9.5px/1.4 Inter, sans-serif; font-style: normal; text-transform: uppercase; }
.cg-pics { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.7fr); }
.cg-pics .cg-field .lbl { white-space: nowrap; }
.cg-pics .cg-pic { margin-top: auto; }
.cg-pic { position: relative; height: clamp(74px, calc(74px + (100vw - 1280px) * 0.11), 124px); border: 1.5px dashed #6b55a3; border-radius: 10px; overflow: hidden; background: #0d0918; }
#home .cg-pic img.lv { width: 100%; height: 100%; object-fit: cover; }
.cg-pic .from { position: absolute; top: 6px; left: 6px; padding: 1px 7px; border-radius: 6px; background: #0b0814cc; font-size: 10.5px; font-weight: 700; color: #e9e4ff; white-space: nowrap; }
.cg-inline { flex-direction: row; align-items: center; gap: 12px; }
.cg-inline .lbl { flex: none; }
.cg-inline .cg-seg { flex: 1; height: 36px; }
.cg-pic .up { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px;
  border: 1px solid #ffffff2a; background: #0b0814d9; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: #e9e4ff; cursor: not-allowed; }
#home .cg-pic .up img { width: 14px; height: 14px; }
.cg-vis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cg-vis button { display: flex; align-items: center; gap: 7px; min-width: 0; height: clamp(45px, calc(45px + (100vw - 1280px) * 0.04), 62px); padding: 0 8px; border: 1px solid var(--line2); border-radius: 10px; background: #0d0918; text-align: left; color: #ece7ff;
  transition: border-color .15s, box-shadow .15s; }
#home .cg-vis img { width: 24px; height: 24px; flex: none; }
.cg-vis span { min-width: 0; }
.cg-vis b { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; }
.cg-vis small { display: block; font-size: 10.5px; font-weight: 600; line-height: 1.15; color: var(--muted); }
.cg-vis .on { border-color: #c27dff; background: linear-gradient(180deg, #8a2be2d9, #6a1bd0d9); box-shadow: 0 0 18px #8a2be255; }
.cg-vis .on small { color: #efe2ff; }
.cg-go { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: clamp(58px, calc(58px + (100vw - 1280px) * 0.035), 72px); margin-top: 4px; padding: 0 20px; border-style: solid; border-color: transparent;
  border-image: url(/assets/studio/create/btn_cta.webp) 0 92 fill / 0 32px stretch; background: none; font: 800 clamp(21px, 1.75vw, 27px)/1 Inter, sans-serif; color: #fff;
  text-shadow: 0 2px 0 #3d0a7a, 0 0 18px #e7b6ff66; transition: transform .1s, filter .15s; }
.cg-go:hover { filter: brightness(1.08); }
.cg-go:active { transform: translateY(2px) scale(.99); }
.cg-go:disabled { filter: saturate(.5) brightness(.8); cursor: wait; }
#home .cg-go img { width: 1.05em; height: 1.05em; }
.cg-note { margin: 7px 4px 0; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.4; }

/* ---------- my games and the gallery (Made by players) in the same look ---------- */
.cg-sec { max-width: 1720px; margin: 26px auto 0; padding: 0 24px; box-sizing: border-box; scroll-margin-top: 90px; }
#home .cg-sec h2 { margin: 0 0 12px; font-weight: 800; font-size: 22px; }
#home.cg .tabs { flex-wrap: nowrap; gap: 8px; margin-bottom: 12px; }
#home.cg .tabs h2 { flex: 1 1 auto; margin: 0; }
#home.cg .tabs button { margin: 0; padding: 8px 14px; border: 1px solid var(--line2) !important; border-image: none !important; border-radius: 10px; background: #150f24 !important;
  font: 700 14px Inter, sans-serif; color: #e5dfff; white-space: nowrap; }
#home.cg .tabs button.on { border-color: #c27dff !important; background: #8a2be255 !important; color: #fff; box-shadow: 0 0 16px #8a2be244 !important; }
#home.cg .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
#home.cg .row .card { flex: 0 0 220px; }
#home.cg .card { gap: 4px; padding: 0 0 10px; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: #150f24; box-shadow: none; color: var(--text); font-family: Inter, sans-serif; }
#home.cg button.card { cursor: pointer; transition: transform .15s, border-color .15s; }
#home.cg button.card:hover { transform: translateY(-2px); border-color: #a45cff; }
#home.cg .card img { aspect-ratio: 16 / 10; border-radius: 0; margin-bottom: 4px; }
#home.cg .card b { padding: 0 10px; font: 800 15px Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#home.cg .card small { padding: 0 10px; font-weight: 600; font-size: 13px; color: var(--muted); opacity: 1; }
#home.cg .card .tags, #home.cg .card .btns { padding: 0 10px; }
#home.cg .tag { font: 800 10.5px/1.5 Inter, sans-serif; letter-spacing: .03em; padding: 1px 7px; border-radius: 6px; background: #2c2245; }
#home.cg .tag.pub { background: #2fd66a; color: #062a10; }
#home.cg .tag.unl { background: #8a2be2; color: #fff; }
#home.cg .tag.ex { background: linear-gradient(180deg, #9c42ff, #6c1bdc); color: #fff; }
.cg-none { margin: 10px 0 0; padding: 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 12px; }
#home.cg .foot { margin-top: 26px; padding: 0 24px; font: 500 13px Inter, sans-serif; color: var(--muted); opacity: 1; }

/* ---------- smaller screens ---------- */
@media (max-width: 1279px) {
  .mk-top { gap: 14px; padding: 0 20px; }
  .mk-nav a { padding: 9px 12px; font-size: 15px; }
  .cg-grid { grid-template-columns: minmax(0, 1fr) minmax(380px, 37%); padding: 14px 18px 0; gap: 12px 16px; }
  .cg-tiles { gap: 8px; }
  .cg-feat-row { gap: 9px; }
  .cg-sec { padding: 0 18px; }
}
@media (max-width: 1060px) { .mk-search { display: none; } }
@media (max-width: 960px) {
  .cg-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "hero" "panel" "tiles" "feat"; }
  .cg-hero-text { max-width: min(470px, 52%); }
}
@media (max-width: 860px) {
  .mk-top { gap: 10px; height: auto; min-height: 64px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px; flex-wrap: wrap; }
  #home .mk-brand img { height: 34px; }
  .mk-brand { gap: 10px; }
  .mk-brand i { height: 30px; }
  .mk-brand span { font-size: 16px; }
  .mk-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .mk-nav::-webkit-scrollbar { display: none; }
  .mk-nav a { padding: 7px 12px; font-size: 14.5px; }
  .mk-gems { margin-left: auto; height: 40px; font-size: 16px; }
  .mk-gems b { min-width: 0; }
  .mk-gems a { width: 32px; height: 32px; }
  .mk-avatar { width: 42px; height: 42px; }
}
@media (max-width: 430px) { .mk-nav { gap: 0; margin: 0 -8px; width: calc(100% + 16px); } .mk-nav a { padding: 7px 8px; font-size: 13.5px; } }
@media (max-width: 760px) {
  .cg-grid { padding: 10px 14px 0; gap: 14px; }
  .cg-hero { display: block; min-height: 0; }
  .cg-hero::before { display: none; }
  .cg-hero picture { position: relative; inset: auto; display: block; z-index: 0; margin: 0 -14px; }
  .cg-art { height: auto; aspect-ratio: 1100 / 679; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
  .cg-hero-text { position: relative; z-index: 1; max-width: none; margin-top: -86px; padding: 0 2px; }
  .cg-hero h1 { font-size: 34px; }
  .cg-kick { font-size: 12px; letter-spacing: .34em; }
  .cg-lead { font-size: 15px; }
  .cg-panel { padding: 16px 14px; }
  .cg-steps button { font-size: 13.5px; gap: 6px; padding: 0 12px 0 6px; }
  .cg-field input, .cg-field textarea, .cg-select select { font-size: 16px; }
  .cg-two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cg-pics { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 10px; }
  .cg-pics .cg-field .lbl { font-size: 13.5px; }
  .cg-pic { height: 92px; }
  .cg-pic .up { font-size: 10.5px; padding: 3px 6px; gap: 4px; }
  .cg-pic .up em { display: none; }
  .cg-mode, .cg-seg { height: 46px; }
  .cg-inline { flex-direction: column; align-items: stretch; gap: 4px; }
  .cg-inline .cg-seg { height: 44px; }
  .cg-vis { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cg-vis button { height: 52px; }
  .cg-vis small { display: inline; margin-left: 6px; }
  .cg-vis b { display: inline; }
  .cg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cg-tiles li:last-child { grid-column: 1 / -1; }
  .cg-tiles a { flex-direction: row; justify-content: flex-start; min-height: 62px; padding: 10px 12px; text-align: left; font-size: 14px; gap: 10px; }
  .cg-tiles a br { display: none; }
  #home .cg-tiles img { width: 32px; flex: none; }
  .cg-tiles small { top: -7px; right: 6px; }
  .cg-feat { padding: 12px; margin: 0 -2px; }
  .cg-feat-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; scroll-padding: 0 12px; }
  .cg-feat-row::-webkit-scrollbar { display: none; }
  .cg-game { flex: 0 0 44%; scroll-snap-align: start; }
  .cg-sec { padding: 0 14px; margin-top: 22px; }
  #home.cg .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #home.cg .row .card { flex: 0 0 200px; }
  #home.cg .tabs button { padding: 7px 10px; font-size: 13px; }
  #home .cg-sec h2 { font-size: 19px; }
  #home.cg .foot { padding: 0 14px; }
}
