/* HOLO-Age - the players' guide, short (guide_site.py) */
.g2-main { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 60px; }
.g2-side nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px;
  background: rgba(20, 10, 40, .72); border: 1px solid rgba(255, 255, 255, .08); }
.g2-side a { color: #C9BEE6; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.g2-side a:hover, .g2-side a.on { background: rgba(255, 63, 180, .16); color: #fff; text-decoration: none; }
.g2-body { min-width: 0; }
.g2-hero { padding: 26px 26px 20px; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 63, 180, .22), rgba(109, 59, 214, .22));
  border: 1px solid rgba(255, 176, 232, .25); margin-bottom: 22px; }
.g2-hero h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.g2-hero h1 span { color: #FF7ADB; }
.g2-hero p { margin: 0 0 14px; color: #C9BEE6; }
.g2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.g2-chips .chip { text-decoration: none; }
.g2-sec { margin: 0 0 34px; scroll-margin-top: 84px; }
.g2-sec h2 { margin: 0 0 6px; font-size: 1.5rem; }
.g2-sec h2 small { font-size: .9rem; color: #8F84B0; font-weight: 600; }
.g2-lead { margin: 0 0 14px; color: #C9BEE6; }
.g2-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.g2-steps li { counter-increment: s; padding: 16px 16px 16px 58px; position: relative; border-radius: 16px; background: rgba(20, 10, 40, .72); border: 1px solid rgba(255, 255, 255, .08); }
.g2-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: linear-gradient(180deg, #FF7ADB, #E100A6); color: #fff; }
.g2-steps b { display: block; margin-bottom: 2px; }
.g2-steps span { color: #C9BEE6; font-size: .93rem; }
.g2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.g2-card { border-radius: 18px; background: rgba(20, 10, 40, .78); border: 1px solid rgba(255, 255, 255, .08); padding: 12px 14px 14px; }
.g2-card.wide { grid-column: span 3; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: min-content 1fr; gap: 4px 18px; align-items: start; }
.g2-card.wide .g2-shot { grid-row: span 2; }
.g2-card h3 { margin: 8px 0 4px; font-size: 1.08rem; }
.g2-card p { margin: 0; color: #C9BEE6; font-size: .93rem; line-height: 1.55; }
.g2-shot { margin: 0; }
.g2-shot img { width: 100%; height: auto; border-radius: 12px; cursor: zoom-in; display: block; border: 1px solid rgba(255, 255, 255, .1); }
.g2-shot figcaption { display: none; }
.g2-sec > .g2-shot { margin-top: 14px; max-width: 760px; }
.g2-swatches { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 6px; margin: 4px 0 18px; }
.g2-sw { position: relative; padding: 10px 0 8px; border-radius: 12px; text-align: center; background: rgba(10, 6, 22, .9); border: 1px solid rgba(255, 255, 255, .08); }
.g2-sw i { display: block; width: 26px; height: 46px; margin: 0 auto 6px; border-radius: 13px; background: linear-gradient(180deg, var(--a), var(--b));
  box-shadow: 0 0 14px var(--a), 0 0 28px var(--a); }
.g2-sw.fl i { box-shadow: 0 0 14px var(--a), 0 0 30px var(--a), 0 -8px 26px #FF7A2A; }
.g2-sw b { font-size: .95rem; }
.g2-sw span { position: absolute; left: -2px; right: -2px; bottom: -18px; font-size: .62rem; color: #FFB27A; white-space: nowrap; }
.g2-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.g2-two h3 { margin: 6px 0 10px; }
.g2-gems { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.g2-gem, .g2-sale { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 10px; border-radius: 14px;
  background: rgba(20, 10, 40, .78); border: 1px solid rgba(255, 255, 255, .08); }
.g2-gem img, .g2-sale img { grid-row: span 2; width: 56px; height: 56px; cursor: zoom-in; filter: drop-shadow(0 0 8px rgba(255, 122, 219, .45)); }
.g2-gem b, .g2-sale b { font-size: .92rem; }
.g2-gem span, .g2-sale span { font-size: .78rem; color: #8F84B0; line-height: 1.35; }
.g2-sales { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.g2-sale { grid-template-columns: 56px minmax(0, 1fr); }
.g2-sale em { grid-column: 2; font-style: normal; color: #FFD166; font-weight: 700; font-size: .86rem; }
.g2-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.g2-table th, .g2-table td { padding: 5px 8px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.g2-table th { color: #8F84B0; font-weight: 700; }
.g2-note { color: #8F84B0; font-size: .85rem; margin: 8px 0 0; }
.g2-list { margin: 8px 0 0 18px; }
details { margin: 0 0 8px; padding: 12px 16px; border-radius: 14px; background: rgba(20, 10, 40, .78); border: 1px solid rgba(255, 255, 255, .08); }
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; color: #C9BEE6; }
/* ---- the maps */
.g2-maps { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; user-select: none; -webkit-user-select: none; }
.g2-wait { padding: 30px; color: #8F84B0; }
.g2-maplist { display: flex; flex-direction: column; gap: 4px; max-height: 720px; overflow: auto; padding-right: 4px; }
.g2-maplist button { text-align: left; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .06); background: rgba(20, 10, 40, .78);
  color: #E8E0FF; cursor: pointer; font: inherit; font-size: .9rem; display: flex; justify-content: space-between; gap: 6px; }
.g2-maplist button em { font-style: normal; color: #8F84B0; font-size: .8rem; white-space: nowrap; }
.g2-maplist button.on { background: rgba(255, 63, 180, .22); border-color: rgba(255, 122, 219, .5); }
.g2-mapview { min-width: 0; }
.g2-mapbox { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: #0b0616; max-width: 640px; }
.g2-mapbox canvas { display: block; width: 100%; height: auto; }
.g2-tip { position: absolute; pointer-events: none; padding: 4px 8px; border-radius: 8px; background: rgba(8, 4, 18, .92); border: 1px solid rgba(255, 122, 219, .5);
  font-size: .8rem; white-space: nowrap; display: none; }
.g2-mons { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 12px; }
.g2-mon { padding: 8px; border-radius: 12px; background: rgba(20, 10, 40, .78); border: 1px solid rgba(255, 255, 255, .08); cursor: pointer; text-align: center; }
.g2-mon.on { border-color: #FF7ADB; box-shadow: 0 0 14px rgba(255, 63, 180, .4); }
.g2-mon .pic { width: 72px; height: 72px; margin: 0 auto 4px; background-repeat: no-repeat; }
.g2-mon b { display: block; font-size: .85rem; }
.g2-mon span { font-size: .75rem; color: #8F84B0; }
.g2-mon .tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; font-size: .68rem; font-weight: 800; }
.g2-mon .tag.boss { background: #FFB020; color: #2A1500; }
.g2-mon .tag.mini { background: #B48CFF; color: #1A0A33; }
.g2-drops { margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(10, 6, 22, .9); border: 1px solid rgba(255, 255, 255, .08); }
.g2-drops h4 { margin: 0 0 8px; }
.g2-drops .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.g2-it { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 10px; background: rgba(255, 255, 255, .03); font-size: .82rem; }
.g2-it .ico { flex: none; width: 40px; height: 40px; background-repeat: no-repeat; }
.g2-it.card { background: rgba(255, 176, 32, .08); }
/* ---- the large picture */
.g2-box { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(4, 2, 10, .86); padding: 20px; }
.g2-box.on { display: grid; }
.g2-box img { max-width: min(1200px, 96vw); max-height: 86vh; border-radius: 12px; box-shadow: 0 0 40px rgba(255, 63, 180, .3); }
.g2-box button { position: absolute; top: 16px; right: 16px; }
img { -webkit-user-drag: none; }
@media (max-width: 980px) {
  .g2-main { grid-template-columns: minmax(0, 1fr); }
  .g2-side { display: none; }
  .g2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2-card.wide { grid-column: span 2; grid-template-columns: minmax(0, 1fr); }
  .g2-sales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g2-two { grid-template-columns: minmax(0, 1fr); }
  .g2-swatches { grid-template-columns: repeat(8, minmax(0, 1fr)); row-gap: 22px; }
  .g2-maps { grid-template-columns: minmax(0, 1fr); }
  .g2-maplist { flex-direction: row; flex-wrap: wrap; max-height: none; }
}
@media (max-width: 620px) {
  .g2-steps { grid-template-columns: minmax(0, 1fr); }
  .g2-grid { grid-template-columns: minmax(0, 1fr); }
  .g2-card.wide { grid-column: span 1; }
  .g2-sales { grid-template-columns: minmax(0, 1fr); }
  .g2-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* ---- editing on the page (guide_edit.js) */
.g2e-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 120; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px;
  background: rgba(30, 8, 40, .97); border-bottom: 2px solid #FF7ADB; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.g2e-bar b { color: #FF9AE4; margin-right: 6px; }
.g2e-say { font-size: .9rem; color: #C9BEE6; } .g2e-say.good { color: #7BE3A0; } .g2e-say.bad { color: #FF8A8A; }
.g2e-help { flex-basis: 100%; font-size: .8rem; color: #8F84B0; }
body.g2-editing { padding-top: 92px; }
body.g2-editing header.top { position: relative; }
.g2-editing [contenteditable=true] { outline: 1px dashed rgba(255, 122, 219, .45); outline-offset: 3px; border-radius: 4px; cursor: text; min-height: 1.2em; }
.g2-editing [contenteditable=true]:hover { outline-color: #FF7ADB; }
.g2-editing [contenteditable=true]:focus { outline: 2px solid #FF7ADB; background: rgba(255, 63, 180, .06); }
.g2-editing .g2-l[contenteditable=true]:empty::before { content: attr(data-empty); color: #6E6490; }
.g2-editing .g2-c > [data-id] { position: relative; }
.g2-editing .g2-c > [data-id] .g2-shot img { cursor: pointer; }
.g2-editing .g2-c > [data-id] .g2-shot:hover::after { content: "คลิกเพื่อเปลี่ยนรูป"; position: absolute; left: 50%; top: 40px; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 8px; background: rgba(8, 4, 18, .9); font-size: .8rem; pointer-events: none; }
.g2-editing .g2-c > [data-id] .g2-shot { position: relative; }
.g2e-tools { position: absolute; top: -12px; right: 6px; z-index: 5; display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: rgba(20, 6, 30, .95);
  border: 1px solid rgba(255, 122, 219, .6); }
.g2e-tools button { min-width: 28px; height: 26px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; font-size: .82rem; padding: 0 5px; }
.g2e-tools button:hover { background: rgba(255, 63, 180, .45); }
.g2-editing .g2-hidden { opacity: .35; }
.g2-editing .g2-hidden::before { content: "ซ่อนอยู่ (ผู้เล่นไม่เห็น)"; position: absolute; left: 10px; top: -10px; z-index: 4; font-size: .72rem; padding: 1px 8px; border-radius: 6px; background: #444; }
.g2e-add { margin: 10px 0 0; border-style: dashed !important; }
.g2-editing .g2-auto { position: relative; outline: 1px dotted rgba(61, 224, 255, .4); outline-offset: 6px; border-radius: 8px; }
.g2-editing .g2-auto::before { content: attr(data-auto); position: absolute; right: 0; top: -22px; font-size: .72rem; color: #6FEAFF; }
.g2-hero .g2-c:empty, .g2-c:empty { display: none; }
.g2-editing .g2-c:empty { display: grid; min-height: 0; }
