.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gcard { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); transition: transform .15s, border-color .15s; }
.gcard:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }
.gcard h2 { margin: 0; font-size: 1.2rem; }
.gcard p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.gc-e { font-size: 2.6rem; line-height: 1; }
.gc-top { font-size: .85rem; color: var(--gold); font-weight: 600; }
.crumbs { margin: 0 0 8px; }
.glayout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
@media (max-width: 820px) { .glayout { grid-template-columns: 1fr; } }
.gstage { position: relative; min-height: 460px; border-radius: 16px; background: radial-gradient(circle at 50% 0, #3a0d1c, var(--card) 70%); border: 1px solid var(--line); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.gstart, .gover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; background: color-mix(in srgb, var(--bg) 70%, transparent); z-index: 5; }
.gstart .gc-e { font-size: 5rem; }
.gover h2 { margin: 0; font-size: 1.6rem; }
.gover .big { font-size: 2.6rem; font-weight: 700; color: var(--accent2); }
.gover input { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-align: center; font-size: 1rem; }
.ghud { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-weight: 700; background: color-mix(in srgb, var(--bg) 50%, transparent); }
.gside { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.gside h2 { margin: 0 0 10px; font-size: 1.1rem; }
.gboard { list-style: none; margin: 0; padding: 0; }
.gboard li { display: flex; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.gb-r { width: 28px; text-align: center; color: var(--muted); }
.gb-n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gboard b { color: var(--gold); }
.mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; max-width: 460px; margin: 0 auto; }
.mem button { aspect-ratio: 1; border: 0; border-radius: 12px; font-size: 2.2rem; cursor: pointer; background: linear-gradient(135deg, var(--accent), #6d0f2a); color: transparent; transition: transform .2s, background .2s; }
.mem button.up, .mem button.ok { background: var(--card2); color: inherit; transform: rotateY(180deg) scaleX(-1); }
.mem button.ok { opacity: .55; }
.gcanvas { display: block; width: 100%; height: auto; touch-action: none; cursor: none; }
.moles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; max-width: 460px; margin: 0 auto; }
.moles button { aspect-ratio: 1; border-radius: 50%; border: 0; background: radial-gradient(circle at 50% 70%, #050304 40%, #2a1218); font-size: 3rem; cursor: pointer; color: inherit; }
.moles button span { display: inline-block; transform: translateY(80%); opacity: 0; transition: transform .12s, opacity .12s; }
.moles button.on span { transform: none; opacity: 1; }
.moles button.hit { background: radial-gradient(circle, var(--accent) 10%, #050304 60%); }
.qz { padding: 20px; max-width: 620px; margin: 0 auto; }
.qz h3 { font-size: 1.25rem; min-height: 3em; }
.qz .opts { display: grid; gap: 10px; }
.qz .opts button { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.qz .opts button.good { background: var(--ok); color: #fff; }
.qz .opts button.bad { background: var(--err); color: #fff; }
.qbar { height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 14px; overflow: hidden; }
.qbar i { display: block; height: 100%; background: var(--accent); }
.lx { padding: 24px; text-align: center; }
.lx .tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0; min-height: 56px; }
.lx .tiles button { width: 48px; height: 52px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; font: 700 1.5rem var(--sans); cursor: pointer; }
.lx .tiles button:disabled { opacity: .2; }
.lx .ans { font: 700 2rem var(--sans); letter-spacing: .15em; min-height: 1.4em; color: var(--gold); }
.lx .row { display: flex; gap: 10px; justify-content: center; }
.lx .hint { color: var(--muted); }
.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.edge { padding: 26px; text-align: center; }
.edge-msg { font: 700 1.3rem var(--sans); min-height: 1.6em; text-align: center; margin: 12px 0; color: var(--accent2); }
.edge-bar { position: relative; height: 34px; border-radius: 17px; background: var(--line); overflow: hidden; margin: 20px auto; max-width: 520px; }
.edge-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff8fb1, var(--accent)); }
.edge-zone { position: absolute; top: 0; bottom: 0; width: 20%; background: rgba(79, 191, 139, .35); border: 2px solid var(--ok); border-radius: 6px; z-index: 1; }
.edge.hot .edge-bar { box-shadow: 0 0 24px var(--accent); }
.edge-btn { font-size: 1.4rem; padding: 22px 50px; touch-action: none; }
.dom-say { text-align: center; color: var(--gold); }
.dom-pad { grid-template-columns: 1fr 1fr; }
.dom-pad button { text-align: center; font-size: 1.1rem; padding: 22px 10px; }
.dom-pad button span { font-size: 2rem; display: block; }
.gcanvas.gs { cursor: crosshair; max-width: 420px; margin: 0 auto; }
