/* HOLO-Age - the detailed players' guide with pictures (guide_old_plus.py): the badge pictures, the symbols before the
   headings, monster / item / town people pictures, the maps viewer in the guide's own look, the page editor. */

/* ---- the badge of each part: the part's picture, its number small in the corner */
.gn-h2 .no.gi { position: relative; width: 58px; height: 58px; border-radius: 16px; overflow: visible; }
.gn-h2 .no.gi img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55)); image-rendering: auto; }
.gn-h2 .no.gi.sym img { width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.gn-h2 .no.gi em { position: absolute; right: -7px; bottom: -7px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; font-style: normal;
  font-size: .72rem; line-height: 22px; text-align: center; background: #12081F; color: #FFD6F3; border: 1px solid rgba(255, 122, 219, .55); }

/* ---- the side menu / the phone's drawer: a picture on every line */
.gn-menu a img.mi { width: 22px; height: 22px; flex: none; object-fit: contain; opacity: .92; transition: transform .2s; }
.gn-menu a img.mi.sym { width: 16px; height: 16px; margin: 0 3px; opacity: .7; }
.gn-menu a:hover img.mi, .gn-menu a.on img.mi { transform: scale(1.18); opacity: 1; }

/* ---- the symbols before the headings */
.gn-h3.wi::before { display: none; }
h3 img.hi, h4 img.hi { width: 24px; height: 24px; flex: none; object-fit: contain; vertical-align: -5px; margin-right: 8px; }
h4 img.hi { width: 21px; height: 21px; }
h3 img.hi.it, h4 img.hi.it { width: 34px; height: 34px; margin-right: 4px; vertical-align: -10px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.gn-h4 img.hi { margin-right: 6px; }
.titlebar h3 img.hi { width: 22px; height: 22px; }

/* ---- the weapon of each class, the town people */
.gn-cards .panel .gn-wpn { float: right; width: 74px; height: 74px; margin: -6px -4px 6px 10px; object-fit: contain; cursor: zoom-in;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)) drop-shadow(0 0 12px rgba(255, 122, 219, .25)); }
.gn-cards .panel .gn-npc { float: right; width: 52px; height: 92px; margin: -8px -4px 4px 10px; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }

/* ---- monsters: a picture in the lists */
.gn-mobs li .gn-mi { width: 30px; height: 30px; flex: none; border-radius: 8px; background: rgba(255, 255, 255, .05); object-fit: contain; }
.gn-mobs li .gn-mi.none { display: inline-block; }
.gn-mobs li.boss .gn-mi { box-shadow: 0 0 0 1px rgba(255, 120, 120, .6), 0 0 10px rgba(255, 80, 80, .35); }
.gn-mobs li.mini .gn-mi { box-shadow: 0 0 0 1px rgba(255, 190, 110, .6); }

/* ---- an item / monster with its picture inside the words or a table */
.gn-it { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; margin: 1px 2px; vertical-align: middle; }
.gn-it img { width: 28px; height: 28px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.gn-it.big img { width: 38px; height: 38px; border-radius: 9px; background: rgba(255, 255, 255, .04); }
.gn-it.sm img { width: 22px; height: 22px; }
td .gn-it { margin: 2px 6px 2px 0; }

/* ---- the cards */
.gn-cardrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.gn-card { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; padding: 10px 6px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, rgba(90, 150, 255, .14), rgba(20, 10, 40, .8)); border: 1px solid rgba(160, 200, 255, .3); }
.gn-card.boss { background: linear-gradient(180deg, rgba(255, 196, 0, .18), rgba(20, 10, 40, .8)); border-color: rgba(255, 210, 90, .45); }
.gn-card img { width: 72px; height: 72px; object-fit: contain; cursor: zoom-in; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.gn-card b { font-size: .78rem; line-height: 1.25; color: var(--t2); }

/* ---- the maps viewer (guide2.js) in the guide's own frame */
.gn-mapsview { margin: 6px 0 22px; padding: 14px; border-radius: 16px; background: rgba(10, 6, 22, .55); border: 1px solid var(--line); }
.gn-mapsview .g2-mapbox { max-width: none; }

/* ---- pictures he put into the words (the page editor's "ใส่ไอคอน") */
img.gn-ic { width: 1.7em; height: 1.7em; object-fit: contain; vertical-align: -0.5em; margin: 0 3px 0 1px; }
img.gn-ic.sm { width: 1.35em; height: 1.35em; vertical-align: -0.35em; }
b.wi { white-space: nowrap; }
.gn-gem img { display: block; width: 34px; height: 34px; margin: 0 auto 2px; object-fit: contain; }
p img.hi, li img.hi, td img.hi, div img.hi, summary img.hi, figcaption img.hi { width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: -0.25em; margin: 0 4px 0 0; }

/* ---- pictures one can click for large */
.gn-fig img[data-zoom], img[data-zoom] { cursor: zoom-in; }

@media (max-width: 720px) {
  .gn-h2 .no.gi { width: 50px; height: 50px; }
  .gn-h2 .no.gi img { width: 38px; height: 38px; }
  .gn-cards .panel .gn-wpn { width: 60px; height: 60px; }
  .gn-card { width: 92px; }
}

/* ================================================================ editing the page itself (guide_page_edit.js) */
body.ge-on { padding-top: 64px; }
body.ge-on header.top { position: relative; }
body.ge-on .gn-rv { opacity: 1 !important; transform: none !important; }
.ge-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 14px;
  background: rgba(30, 8, 40, .97); border-bottom: 2px solid #FF7ADB; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); font-size: .92rem; }
.ge-bar b { color: #FF9AE4; margin-right: 4px; }
.ge-bar .ge-say { color: #C9BEE6; } .ge-bar .ge-say.good { color: #7BE3A0; } .ge-bar .ge-say.bad { color: #FF8A8A; }
.ge-bar .ge-grow { flex: 1; }
.ge-bar .btn { white-space: nowrap; }
.ge-on [contenteditable="true"] { outline: 1px dashed rgba(255, 122, 219, .35); outline-offset: 2px; border-radius: 4px; cursor: text; }
.ge-on [contenteditable="true"]:hover { outline-color: rgba(255, 122, 219, .8); }
.ge-on [contenteditable="true"]:focus { outline: 2px solid #FF7ADB; background: rgba(255, 63, 180, .07); }
.ge-on main img { cursor: pointer; }
.ge-on main img.ge-pick { outline: 3px solid #6FEAFF; outline-offset: 2px; }
.ge-on .ge-block { outline: 2px solid rgba(111, 234, 255, .7) !important; outline-offset: 4px; }
.ge-tools { position: absolute; z-index: 190; display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 12px; background: rgba(16, 6, 28, .97);
  border: 1px solid rgba(255, 122, 219, .7); box-shadow: 0 8px 24px rgba(0, 0, 0, .55); max-width: 440px; }
.ge-tools button { height: 30px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .09); color: #fff; cursor: pointer; font: inherit; font-size: .82rem; padding: 0 9px; }
.ge-tools button:hover { background: rgba(255, 63, 180, .5); }
.ge-tools button.bad:hover { background: #C81E1E; }
.ge-tools .ge-t { width: 100%; font-size: .75rem; color: #8F84B0; padding: 0 4px; }
.ge-pop { position: fixed; z-index: 210; inset: 0; display: grid; place-items: center; background: rgba(4, 2, 10, .7); }
.ge-pop .box { width: min(760px, 94vw); max-height: 86vh; overflow: auto; padding: 16px; border-radius: 16px; background: #150a26; border: 1px solid rgba(255, 122, 219, .6); }
.ge-pop .box h3 { margin: 0 0 10px; }
.ge-pop .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ge-pop .tabs button { padding: 6px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; font: inherit; }
.ge-pop .tabs button.on { background: rgba(255, 63, 180, .3); border-color: #FF7ADB; }
.ge-pop .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.ge-pop .grid button { height: 64px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .04); cursor: pointer; padding: 6px; }
.ge-pop .grid button:hover { border-color: #FF7ADB; background: rgba(255, 63, 180, .15); }
.ge-pop .grid img { width: 100%; height: 100%; object-fit: contain; }
.ge-pop .grid .emo { font-size: 30px; line-height: 1; }
.ge-pop .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; justify-content: flex-end; }
.ge-own { min-height: 40px; }
.ge-on .ge-own:empty::before { content: "พิมพ์ข้อความที่นี่"; color: #6E6490; }

/* ---- a phone: nothing of the page sticks out to the side (the old page's strike simulator switch did by 4 dots) */
body > main { overflow-x: clip; }
