@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #10131b;
  --ink-soft: #252a35;
  --muted: #777c86;
  --line: #dedfdc;
  --paper: #f8f8f5;
  --white: #fff;
  --lime: #d9fa72;
  --lime-deep: #b9da4d;
  --violet: #7666f5;
  --coral: #f47c69;
  --blue: #6d9cf5;
  --shadow: 0 18px 50px rgba(22, 26, 36, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Manrope', 'Noto Sans SC', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.section-wrap { width: min(1160px, calc(100% - 64px)); margin-left: auto; margin-right: auto; }

.site-header { height: 80px; padding: 0 max(32px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(16, 19, 27, .09); background: rgba(248, 248, 245, .88); backdrop-filter: blur(14px); position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 11px; letter-spacing: .13em; font-size: 13px; font-weight: 800; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: var(--lime); }
.brand-mark svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark svg path:first-child { fill: currentColor; stroke: none; opacity: .96; }
.brand-mark svg path:last-child { stroke: var(--ink); stroke-width: 1.2; }
.site-nav, .admin-header-right { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 13px; color: var(--muted); font-weight: 600; position: relative; }
.nav-link.active { color: var(--ink); }
.nav-link.active::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; bottom: -9px; background: var(--ink); border-radius: 99px; }
.nav-admin { display: inline-flex; gap: 9px; align-items: center; background: var(--ink); color: var(--lime); padding: 11px 16px 11px 17px; border-radius: 99px; font-size: 12px; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.nav-admin span { font-size: 15px; line-height: 1; }
.nav-admin:hover { background: #2b303c; transform: translateY(-2px); }

.hero { min-height: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 66px; padding-bottom: 80px; }
.hero-copy { padding-bottom: 10px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 19px; font: 500 11px/1 'DM Mono', monospace; letter-spacing: .16em; color: var(--muted); }
.eyebrow-dot { width: 7px; height: 7px; margin-right: 8px; display: inline-block; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(244, 124, 105, .15); vertical-align: 1px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 27px; font-size: clamp(45px, 5.2vw, 75px); letter-spacing: -.07em; line-height: 1.08; font-weight: 800; }
.hero h1 em { color: var(--violet); font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after { content: ''; position: absolute; left: 3px; right: -3px; bottom: -6px; height: 8px; background: var(--lime); z-index: -1; transform: rotate(-1.5deg); border-radius: 60% 35% 55% 30%; }
.hero-intro { max-width: 440px; margin-bottom: 31px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; gap: 11px; align-items: center; }
.button { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 0 20px; border-radius: 8px; font-size: 13px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button span { font-size: 16px; line-height: 1; }
.button-primary { color: var(--ink); background: var(--lime); box-shadow: 0 8px 20px rgba(185, 218, 77, .2); }
.button-primary:hover { background: #e3ff8d; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(185, 218, 77, .35); }
.button-quiet { color: var(--ink-soft); border: 1px solid var(--line); background: transparent; }
.button-quiet:hover { background: var(--white); transform: translateY(-2px); }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 37px; color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .07em; }
.note-line { width: 27px; height: 1px; background: var(--muted); opacity: .55; }

.hero-visual { height: 450px; position: relative; }
.visual-glow { position: absolute; width: 350px; height: 350px; right: 11%; top: 34px; background: var(--lime); opacity: .55; filter: blur(82px); border-radius: 50%; }
.orbit { border: 1px solid rgba(16, 19, 27, .15); position: absolute; border-radius: 50%; transform: rotate(-24deg); }
.orbit-one { width: 490px; height: 185px; left: 4%; top: 131px; }
.orbit-two { width: 410px; height: 170px; left: 12%; top: 142px; transform: rotate(56deg); border-color: rgba(118, 102, 245, .26); }
.visual-card { position: absolute; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 42px rgba(26, 30, 40, .2); }
.visual-card-back { width: 160px; height: 205px; top: 52px; right: 3%; background: var(--coral); transform: rotate(12deg); }
.visual-card-back::before { content: ''; display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, transparent 0 17px, rgba(255,255,255,.13) 18px 20px); }
.visual-spark { position: absolute; right: 23px; top: 20px; color: #ffdfac; font-size: 37px; }
.visual-card-main { width: 270px; height: 356px; top: 25px; left: 18%; background: var(--ink); transform: rotate(-5deg); }
.visual-main-art { height: 277px; position: relative; display: flex; align-items: end; padding: 20px; overflow: hidden; background: linear-gradient(142deg, #534bd2 8%, #8f68ed 49%, #e36a81 100%); }
.visual-main-art::before { content: ''; position: absolute; width: 235px; height: 235px; top: -75px; right: -50px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.08), 0 0 0 57px rgba(255,255,255,.06); }
.visual-main-art::after { content: ''; position: absolute; width: 180px; height: 180px; left: -72px; bottom: -85px; border: 15px solid rgba(217,250,114,.75); border-radius: 50%; }
.visual-main-art span { position: relative; z-index: 1; color: #f7edcf; font-size: 28px; line-height: .85; letter-spacing: -.08em; font-weight: 800; }
.visual-main-art i { position: absolute; width: 63px; height: 63px; top: 92px; right: 42px; border-radius: 50%; background: #f9dcaf; box-shadow: 0 0 0 14px rgba(249,220,175,.15); }
.visual-card-label { display: flex; align-items: center; justify-content: space-between; padding: 16px 19px; color: var(--lime); font: 10px/1.35 'DM Mono', monospace; letter-spacing: .12em; }
.visual-card-label b { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 15px; }
.visual-card-front { width: 142px; height: 165px; right: 2%; bottom: 33px; padding: 17px; background: var(--blue); color: #f6f4e9; transform: rotate(7deg); font: 700 18px/1 'DM Mono', monospace; letter-spacing: -.08em; }
.front-dot { width: 42px; height: 42px; margin-bottom: 54px; border-radius: 50%; background: var(--lime); box-shadow: 13px 13px 0 -7px var(--ink); }
.visual-caption { position: absolute; bottom: 0; right: 11%; color: var(--muted); font: 9px 'DM Mono', monospace; letter-spacing: .12em; transform: rotate(-4deg); }
.caption-line { display: inline-block; width: 24px; margin-right: 8px; vertical-align: middle; border-top: 1px solid var(--muted); }

.games-section { padding-top: 43px; padding-bottom: 108px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading h2 { margin: 0; font-size: 37px; letter-spacing: -.06em; }
.games-meta { display: flex; gap: 9px; align-items: center; color: var(--muted); font: 11px 'DM Mono', monospace; }
.games-meta > span:first-child { color: var(--ink); font-size: 18px; font-weight: 500; }
.meta-divider { width: 1px; height: 14px; display: inline-block; margin: 0 7px; background: var(--line); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.game-card { min-width: 0; overflow: hidden; border: 1px solid rgba(16,19,27,.1); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 28px rgba(20, 24, 31, .025); transition: transform .25s ease, box-shadow .25s ease; }
.game-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.game-card { cursor: pointer; }
.game-card:focus-visible { outline: 3px solid rgba(118, 102, 245, .35); outline-offset: 3px; }
.cover-frame { position: relative; aspect-ratio: 1.5 / 1; overflow: hidden; background: #d9dbd7; }
.cover-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(16,19,27,.25)); pointer-events: none; }
.cover-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #f5d39b, transparent 28%), linear-gradient(135deg, #4d4ec5, #ec7181); color: rgba(255,255,255,.85); }
.cover-fallback span { font-size: 42px; }
.game-card:hover .cover-frame img { transform: scale(1.045); }
.card-index { position: absolute; z-index: 1; left: 15px; top: 13px; color: rgba(255,255,255,.88); font: 10px 'DM Mono', monospace; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
.card-body { padding: 22px 22px 21px; }
.card-body h3 { margin-bottom: 9px; font-size: 21px; letter-spacing: -.04em; }
.card-description { min-height: 50px; margin-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { display: flex; gap: 8px; }
.card-link { min-width: 0; flex: 1; height: 36px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 6px; background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s ease, transform .2s ease; }
.card-link:nth-child(2) { background: #f0f0ec; color: var(--ink-soft); }
.card-link:hover { background: var(--violet); color: #fff; transform: translateY(-2px); }
.card-link:nth-child(2):hover { background: var(--lime); color: var(--ink); }
.card-link span { font-size: 14px; }
.empty-state { padding: 75px 25px; border: 1px dashed #c9cbc5; border-radius: var(--radius); text-align: center; }
.empty-icon { width: 50px; height: 50px; margin: 0 auto 17px; display: grid; place-items: center; border-radius: 15px; background: var(--lime); color: var(--ink); font-size: 25px; }
.empty-state h3 { margin-bottom: 8px; font-size: 20px; letter-spacing: -.04em; }
.empty-state p { margin-bottom: 21px; color: var(--muted); font-size: 13px; }

/* Game detail modal */
body.modal-open { overflow: hidden; }
.game-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 32px; }
.game-modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(9, 11, 17, .78); backdrop-filter: blur(10px); animation: modal-fade .2s ease both; }
.game-dialog { position: relative; z-index: 1; width: min(820px, 100%); max-height: calc(100vh - 64px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: var(--white); box-shadow: 0 35px 100px rgba(0,0,0,.42); animation: modal-rise .28s ease both; }
.modal-close { position: absolute; z-index: 3; right: 15px; top: 15px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(16,19,27,.72); color: #fff; font-size: 25px; line-height: 1; backdrop-filter: blur(8px); transition: transform .2s ease, background .2s ease; }
.modal-close:hover { background: var(--ink); transform: rotate(8deg); }
.modal-cover { flex: 0 1 auto; width: 100%; min-height: 220px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.modal-cover img { width: 100%; height: 100%; display: block; object-fit: contain; background: var(--ink); }
.modal-cover .cover-fallback { width: 100%; height: 100%; background: var(--ink); }
.modal-copy { min-height: 0; padding: 30px 38px 32px; display: flex; flex-direction: column; overflow: hidden; }
.modal-copy .eyebrow { margin-bottom: 13px; }
.modal-copy h2 { margin-bottom: 16px; font-size: 32px; line-height: 1.15; letter-spacing: -.06em; }
.modal-description { min-height: 0; max-height: 150px; margin-bottom: 24px; padding-right: 12px; overflow-y: auto; color: #626873; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: #c7cac4 transparent; }
.modal-description::-webkit-scrollbar { width: 5px; }
.modal-description::-webkit-scrollbar-thumb { border-radius: 99px; background: #c7cac4; }
.modal-actions { flex: none; display: flex; flex-wrap: wrap; gap: 9px; }
.modal-link { flex: 1; min-width: 120px; background: var(--ink); color: var(--lime); }
.modal-link:nth-child(2) { background: var(--lime); color: var(--ink); }
.modal-link:hover { background: var(--violet); color: #fff; transform: translateY(-2px); }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.site-footer { display: flex; justify-content: space-between; padding-top: 23px; padding-bottom: 28px; border-top: 1px solid var(--line); color: #999c9f; font: 9px 'DM Mono', monospace; letter-spacing: .1em; }
.site-footer i { color: var(--coral); font-style: normal; font-size: 13px; }

/* Admin */
.admin-header { background: var(--ink); color: var(--white); border-bottom-color: rgba(255,255,255,.12); }
.admin-header .brand-mark { background: var(--lime); color: var(--ink); }
.admin-header .brand-mark svg path:last-child { stroke: var(--lime); }
.admin-status { display: inline-flex; align-items: center; gap: 8px; color: #9fa5b3; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217,250,114,.12); }
.admin-main { padding-top: 58px; padding-bottom: 80px; }
.admin-title-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 37px; }
.admin-title-row .eyebrow { color: #969ba5; margin-bottom: 13px; }
.admin-title-row h1 { margin: 0 0 8px; font-size: 42px; letter-spacing: -.07em; }
.admin-subtitle { margin: 0; color: var(--muted); font-size: 13px; }
.new-game-button { padding: 0 18px; }
.admin-layout { display: grid; grid-template-columns: 265px minmax(0,1fr); gap: 22px; align-items: start; }
.admin-sidebar, .editor-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.admin-sidebar { min-height: 550px; padding: 21px 14px 15px; display: flex; flex-direction: column; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 16px; color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .11em; text-transform: uppercase; }
.sidebar-count { min-width: 23px; height: 20px; display: grid; place-items: center; border-radius: 99px; background: #eef0eb; color: var(--ink); font: 11px 'DM Mono', monospace; }
.admin-list { display: flex; flex-direction: column; gap: 4px; }
.admin-list-item { width: 100%; padding: 9px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; color: var(--ink); transition: background .2s ease; }
.admin-list-item:hover { background: #f4f5f1; }
.admin-list-item.active { background: #f1f4df; }
.list-thumb { width: 47px; height: 37px; flex: none; overflow: hidden; border-radius: 6px; background: #e0e0dc; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item-copy { min-width: 0; }
.list-item-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.list-item-copy small { display: block; margin-top: 4px; color: var(--muted); font: 9px 'DM Mono', monospace; }
.list-empty { padding: 28px 10px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.sidebar-tip { display: flex; gap: 9px; margin-top: auto; padding: 13px 10px 4px; border-top: 1px solid var(--line); color: var(--muted); }
.tip-icon { color: var(--coral); font-size: 15px; line-height: 1.2; }
.sidebar-tip p { margin: 0; font-size: 10px; line-height: 1.65; }
.sidebar-tip b { color: var(--ink-soft); font-weight: 600; }
.editor-panel { padding: 27px 31px 29px; }
.editor-panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.editor-kicker { color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .14em; }
.editor-panel-head h2 { margin: 8px 0 0; font-size: 23px; letter-spacing: -.05em; }
.delete-button { border: 0; background: transparent; color: #bf6b62; font-size: 11px; font-weight: 600; }
.delete-button:hover { color: #d5483b; }
.form-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 29px; padding-top: 25px; }
.field-label { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.field-label > span:not(.button-index) { color: #a2a5a4; font-size: 9px; font-weight: 500; }
.cover-drop { display: block; cursor: pointer; }
.cover-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cover-preview { position: relative; aspect-ratio: 1.5 / 1; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed #bfc2bd; border-radius: 11px; background: #f5f6f1; text-align: center; transition: border-color .2s ease, background .2s ease; }
.cover-drop:hover .cover-preview, .cover-drop.dragover .cover-preview { border-color: var(--violet); background: #f5f3ff; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview.empty-cover { color: var(--muted); }
.upload-plus { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--lime); color: var(--ink); font-size: 20px; line-height: 1; }
.cover-preview strong { color: var(--ink-soft); font-size: 11px; }
.cover-preview small { color: #a1a5a2; font: 9px/1.5 'DM Mono', monospace; }
.field-help { margin: 9px 1px 0; color: #9b9f9e; font-size: 10px; line-height: 1.55; }
.text-input { width: 100%; display: block; border: 1px solid #d8dad5; border-radius: 7px; outline: none; background: #fbfbf9; color: var(--ink); padding: 11px 12px; font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.text-input::placeholder { color: #b4b7b4; }
.text-input:focus { border-color: var(--violet); background: #fff; box-shadow: 0 0 0 3px rgba(118,102,245,.1); }
.title-input { margin-bottom: 23px; font-size: 15px; font-weight: 600; }
.description-input { resize: vertical; min-height: 104px; line-height: 1.65; }
.character-count { margin-top: 5px; color: #a6aaa5; text-align: right; font: 9px 'DM Mono', monospace; }
.form-divider { display: flex; align-items: center; gap: 12px; margin: 31px 0 22px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.form-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.form-divider small { color: #9da19d; font-size: 10px; font-weight: 400; }
.buttons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.button-field { padding: 17px 17px 19px; border: 1px solid #e4e5e1; border-radius: 10px; background: #fcfcfa; }
.button-index { width: 24px; height: 20px; display: inline-grid; place-items: center; border-radius: 4px; background: var(--ink); color: var(--lime); font: 9px 'DM Mono', monospace; }
.button-field .text-input { background: #fff; }
.compact-label { margin-top: 15px; }
.url-input-wrap { position: relative; }
.url-input-wrap > span { position: absolute; top: 50%; left: 11px; z-index: 1; color: var(--violet); font-size: 14px; transform: translateY(-50%); }
.url-input-wrap .text-input { padding-left: 32px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 29px; padding-top: 21px; border-top: 1px solid var(--line); }
.save-hint { color: #a0a49f; font-size: 10px; }
.save-button { min-width: 132px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 26px; padding: 12px 18px; border-radius: 8px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .25s ease, transform .25s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.success { border-left: 3px solid var(--lime); }
.toast.error { border-left: 3px solid var(--coral); }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 62px; }
  .hero-visual { width: min(560px, 100%); margin: 0 auto; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .editor-panel { padding-left: 23px; padding-right: 23px; }
  .form-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 21px; }
}
@media (max-width: 680px) {
  .section-wrap { width: min(100% - 36px, 520px); }
  .site-header { height: 68px; padding: 0 18px; }
  .site-nav { gap: 14px; }
  .nav-link { display: none; }
  .admin-status { display: none; }
  .brand-name { font-size: 12px; }
  .hero { padding-top: 49px; }
  .hero h1 { font-size: 49px; }
  .hero-intro { font-size: 14px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-visual { height: 330px; transform: scale(.82); transform-origin: top center; margin-bottom: -55px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2 { font-size: 32px; }
  .games-meta { margin-top: 13px; }
  .game-grid { grid-template-columns: 1fr; gap: 17px; }
  .game-modal { padding: 14px; align-items: end; }
  .game-dialog { max-height: calc(100vh - 28px); border-radius: 18px; }
  .modal-cover { min-height: 0; aspect-ratio: 1.5 / 1; }
  .modal-cover img { object-fit: cover; }
  .modal-copy { padding: 23px 22px 22px; }
  .modal-copy h2 { font-size: 28px; }
  .modal-description { max-height: 128px; margin-bottom: 19px; }
  .modal-close { right: 11px; top: 11px; }
  .card-body { padding: 19px; }
  .site-footer { display: block; line-height: 2.1; }
  .site-footer span:last-child { display: block; }
  .admin-main { padding-top: 37px; }
  .admin-title-row { align-items: start; display: block; margin-bottom: 25px; }
  .admin-title-row h1 { font-size: 34px; }
  .new-game-button { margin-top: 20px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { min-height: 0; padding-bottom: 14px; }
  .admin-list { max-height: 190px; overflow-y: auto; }
  .sidebar-tip { display: none; }
  .editor-panel { padding: 21px 17px 22px; }
  .editor-panel-head { padding-bottom: 18px; }
  .form-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  .cover-column { width: min(100%, 250px); }
  .buttons-grid { grid-template-columns: 1fr; gap: 12px; }
  .form-divider { flex-wrap: wrap; gap: 7px; }
  .form-divider::after { flex-basis: 100%; order: 3; }
  .form-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .save-button { width: 100%; }
}
