/* GM panel + shop (matches style.css: dark panels, brown borders, gold text) */
.gs-panel { background: rgba(34,34,34,.92); border: 2px solid #5a4b3d; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,.6); padding: 20px; }
.gs-sub { background: rgba(45,45,45,.95); border: 1px solid #5a4b3d; border-radius: 6px; padding: 14px; }
.gs-title { color: #ffd700; font-size: 1.6rem; font-weight: bold; margin-bottom: .75rem; }
.gs-h3 { color: #ffcc00; font-size: 1.15rem; font-weight: bold; margin: .25rem 0 .6rem; }
.gs-muted { color: #9d9283; font-size: .9rem; }
.gs-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.gs-tab { background: linear-gradient(to bottom,#4a3f33,#2f2820); color: #d4c1a7; border: 1px solid #7a634a; border-radius: 6px; padding: 7px 14px; cursor: pointer; font-weight: bold; }
.gs-tab:hover { color: #ffe066; border-color: #a0845e; }
.gs-tab.active { background: linear-gradient(to bottom,#7a634a,#5a4b3d); color: #ffe066; border-color: #e6b422; }
.gs-input, .gs-select, .gs-textarea { background: #1c1a17; border: 1px solid #5a4b3d; color: #f0e3c8; border-radius: 5px; padding: 7px 10px; text-shadow: none; }
.gs-input:focus, .gs-select:focus, .gs-textarea:focus { outline: none; border-color: #e6b422; box-shadow: 0 0 0 2px rgba(230,180,34,.25); }
.gs-btn { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(to bottom,#7a634a,#5a4b3d); color: #ffe066; border: 1px solid #a0845e; border-radius: 6px; padding: 6px 12px; font-weight: bold; cursor: pointer; font-size: .92rem; }
.gs-btn:hover { background: linear-gradient(to bottom,#8c7155,#6a5b4d); }
.gs-btn:disabled { opacity: .5; cursor: not-allowed; }
.gs-btn.red { background: linear-gradient(to bottom,#8b2b22,#5e1a14); border-color: #c0503f; color: #ffd9d2; }
.gs-btn.green { background: linear-gradient(to bottom,#3f6b2a,#28461a); border-color: #6fa94f; color: #e3ffd2; }
.gs-btn.small { padding: 3px 8px; font-size: .82rem; }
.gs-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gs-table th { text-align: left; color: #ffcc00; border-bottom: 1px solid #5a4b3d; padding: 6px 8px; position: sticky; top: 0; background: #262320; }
.gs-table td { border-bottom: 1px solid rgba(90,75,61,.45); padding: 5px 8px; vertical-align: middle; }
.gs-table tr.click:hover td { background: rgba(122,99,74,.25); cursor: pointer; }
.gs-table tr.sel td { background: rgba(230,180,34,.15); }
.gs-scroll { max-height: 560px; overflow: auto; overscroll-behavior: contain; }
.gs-out { background: #0f0e0c; border: 1px solid #5a4b3d; border-radius: 6px; color: #cfe8c0; font-family: Consolas, monospace; font-size: .85rem; white-space: pre-wrap; padding: 10px; min-height: 60px; max-height: 260px; overflow: auto; text-shadow: none; }
.gs-out .err { color: #ff8c7a; }
.gs-out .cmd { color: #ffd75e; }
.gs-target { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: rgba(230,180,34,.08); border: 1px solid #7a634a; border-radius: 6px; padding: 8px 12px; margin-bottom: 14px; }
.gs-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .gs-grid.c2 { grid-template-columns: 1fr 1fr; } .gs-grid.c3 { grid-template-columns: 1fr 1fr 1fr; } .gs-grid.side { grid-template-columns: 1.2fr 1fr; } }
.gs-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.gs-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .78rem; font-weight: bold; text-shadow: none; }
.b-on { background: #2c5e1f; color: #c9ffb0; } .b-off { background: #3a3631; color: #a89c8a; }
.b-ally { background: #1d3a6b; color: #bcd4ff; } .b-horde { background: #6b1d1d; color: #ffc2c2; }
.b-created { background: #3a3631; color: #d4c1a7; } .b-paid, .b-delivering { background: #5a4b10; color: #ffe98a; }
.b-delivered { background: #2c5e1f; color: #c9ffb0; } .b-failed, .b-review { background: #6b1d1d; color: #ffc2c2; }
.b-refunded, .b-cancelled { background: #2f2f3a; color: #c8c8e8; }
.q0 { color: #9d9d9d; } .q1 { color: #fff; } .q2 { color: #1eff00; } .q3 { color: #0070dd; } .q4 { color: #a335ee; } .q5 { color: #ff8000; } .q6, .q7 { color: #e6cc80; }
.gs-toast { position: fixed; right: 18px; bottom: 18px; z-index: 2000; max-width: 420px; background: #262320; border: 1px solid #e6b422; color: #f0e3c8; border-radius: 8px; padding: 12px 16px; box-shadow: 0 6px 20px rgba(0,0,0,.7); display: none; }
.gs-toast.err { border-color: #c0503f; }
.gs-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; font-size: .92rem; }
.gs-kv b { color: #c9b48f; font-weight: normal; }
.gs-gear { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .88rem; }
.gs-gear span.slot { color: #8a7f70; display: inline-block; width: 70px; }
/* shop */
.shop-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.shop-card { background: rgba(45,45,45,.95); border: 1px solid #5a4b3d; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.shop-card:hover { transform: translateY(-4px); box-shadow: 0 8px 18px rgba(0,0,0,.6); border-color: #a0845e; }
.shop-card .img { height: 130px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(230,180,34,.18), transparent 70%); border-radius: 6px; }
.shop-card .img img { max-height: 120px; max-width: 100%; object-fit: contain; }
.shop-card .name { color: #ffd700; font-size: 1.15rem; font-weight: bold; }
.shop-card .price { color: #ffe066; font-size: 1.35rem; font-weight: bold; }
.shop-card .desc { color: #c9b9a0; font-size: .9rem; flex: 1; }
.shop-cat { color: #ffcc00; font-size: 1.5rem; font-weight: bold; margin: 18px 0 10px; border-bottom: 1px solid #5a4b3d; padding-bottom: 4px; }
.gs-modal { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 1500; display: none; align-items: center; justify-content: center; padding: 16px; }
.gs-modal.active { display: flex; }
.gs-modal .box { background: #2a2622; border: 2px solid #7a634a; border-radius: 10px; padding: 22px; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; }

.gs-viewer { overscroll-behavior: contain; touch-action: none; height: 420px; border-radius: 6px; border: 1px solid #5a4b3d; background: radial-gradient(ellipse at center, #3a3128 0%, #16130f 75%); cursor: grab; }
.gs-viewer:active { cursor: grabbing; }
@media (min-width: 900px) { .gs-viewer-sticky { position: sticky; top: 10px; align-self: start; } }

/* sticky footer: short pages keep the footer at the bottom of the window */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
body > footer { flex-shrink: 0; margin-bottom: 0 !important; }
