/* ── My Heroes: the awakening screen ─────────────────────────────────────────
   PopupBox_HeroAwakening_UGUI, read off the prefab (aoem-ui.sh screen ...).
   Two unit systems, each the prefab's own:
     --u  on the arc  = 1/1140 of m_ProgAwakening's width, origin at its CENTRE,
          y UP -- so a node is placed by the numbers the prefab gives it (--x/--y)
          with nothing converted by hand.
     --p  on the panel = 1/720 of m_PanContent's content column.
   Sprites are ui_g_skillawaken/pic_skillNN, kept as awk/sNN.webp. pic_skill01 and
   the hi-res pic_skill03 come from the PC atlas
   (aoem_pc_art/.../atlas/module/ui_g_skillawaken/); pic_skill02, the backdrop, is a
   plain blur and is left out -- the page's own video shows through there.
   Corners stay square, like every box on this page. */

.inv-awk[hidden]{display:none}
.inv-awk{position:relative}

.inv-awk__stage{position:relative;display:grid;
	/* The right panel is the width every other screen's panel is (Mount, Enhance,
	   Rings): one fixed column, so the four screens line up. */
	grid-template-columns:minmax(0,1fr) var(--inv-panel-w,460px);
	gap:2%;align-items:stretch;padding:8px 4px;min-height:0;
	/* The same fixed stage as Mount, Enhance and Rings (armoury.css, ONE STAGE). */
	height:calc(100vh - var(--inv-header-h,64px) - 28px);overflow:hidden}

/* ── the arc ─────────────────────────────────────────────────────────────── */
.inv-awk__arcwrap{position:relative;align-self:end;container-type:inline-size;min-width:0}
.inv-awk__arc{--u:calc(100cqw / 1140);position:relative;width:100%;aspect-ratio:1140/596}
.inv-awk__arc > *{position:absolute;left:calc(50% + var(--x,0) * var(--u));
	top:calc(50% - var(--y,0) * var(--u));transform:translate(-50%,-50%) rotate(var(--rot,0deg))}

/* m_ProBar: 1192x560 at (-16,-2), drawing pic_skill01 -- the ornate track, rings,
   ticks and glow (found in the PC atlas as ui_g_skillawaken_pic_skill01.webp.png;
   the phone sets never had it). m_Fill is its CHILD: 996x432 at (2,39.5) inside it,
   so (-14,37.5) here, drawing pic_skill03. The fill is clipped from the right to the
   x the progress has reached (--clip, set by JS from the node points, since the
   curve is not linear in x). */
.inv-awk__track{--x:-16;--y:-2;width:calc(1192 * var(--u));height:calc(560 * var(--u));
	background:url(../images/game-icons/awk/s01.webp) center/100% 100% no-repeat}
.inv-awk__fill{--x:-14;--y:37.5;width:calc(996 * var(--u));height:calc(432 * var(--u));
	background:url(../images/game-icons/awk/s03.webp) center/100% 100% no-repeat;
	/* Revealed along the crescent, not by x: a ray from the box's top centre sweeps
	   from the left tip (245deg) to --a. Clipping by x over-paid the steep ends. */
	-webkit-mask:conic-gradient(from 0deg at 50% 0%,transparent 0deg var(--a,250deg),#000 var(--a,250deg) 252deg,transparent 252deg);
	mask:conic-gradient(from 0deg at 50% 0%,transparent 0deg var(--a,250deg),#000 var(--a,250deg) 252deg,transparent 252deg);
	filter:drop-shadow(0 0 calc(10 * var(--u)) rgba(246,200,99,.55))}

/* m_PicStageN: 40x40, pic_skill16 empty / pic_skill17 reached. */
/* The 25% and 75% stars sit on the track's slope, turned to it (measured 2026-11-05). */
.inv-awk__point[data-pct="25"]{--rot:20deg}
.inv-awk__point[data-pct="75"]{--rot:56deg}
.inv-awk__point{width:calc(40 * var(--u));height:calc(40 * var(--u));
	background:url(../images/game-icons/awk/s16.webp) center/contain no-repeat}
.inv-awk__point.is-on{background-image:url(../images/game-icons/awk/s17.webp);
	filter:drop-shadow(0 0 calc(8 * var(--u)) rgba(255,214,110,.9))}

/* Pan_Num: the 92x32 lozenge (pic_skill06) under each point. */
.inv-awk__num{width:calc(92 * var(--u));height:calc(32 * var(--u));display:grid;place-items:center;
	border:solid transparent;border-width:0 calc(16 * var(--u));border-image:url(../images/game-icons/awk/s06.webp) 0 16 fill/0 calc(16 * var(--u)) stretch;box-sizing:border-box;
	font:500 calc(22 * var(--u))/1 Inter,system-ui,sans-serif;color:#e8edf6;opacity:1;pointer-events:none}

.inv-awk__start{width:calc(60 * var(--u));height:calc(60 * var(--u));border:0;padding:0;
	background:none;cursor:pointer}

/* ── a skill node ──────────────────────────────────────────────────────────
   Pan_HeroAwakeningSkill, 150 square: the dark disc (pic_skill04, 200), the gold
   ground (pic_skill13, 110), the icon at 128 x 0.8, the lock (pic_tarot_bg2_02 116
   + icon_n_lock01 64) and the green arrow (pic_skill26 32x44 at +48,-22). Sizes are
   set in --s units so the same element serves the arc and the panel. */
.inv-awk__node{width:calc(150 * var(--u));height:calc(150 * var(--u));border:0;padding:0;
	background:none;cursor:pointer}
.inv-awk__node.is-big{width:calc(352 * var(--u));height:calc(128 * var(--u));
	background:url(../images/game-icons/awk/s33.webp) center/100% 100% no-repeat}
.inv-awk__skill{--s:var(--u);position:absolute;left:50%;top:50%;
	width:calc(150 * var(--s));height:calc(150 * var(--s));transform:translate(-50%,-50%)}
.inv-awk__node.is-big .inv-awk__skill{left:calc(50% - 78 * var(--u));top:calc(50% - 1 * var(--u))}
.inv-awk__skill::before,.inv-awk__skill::after{content:'';position:absolute;left:50%;top:50%;
	transform:translate(-50%,-50%);background:center/contain no-repeat}
.inv-awk__skill::before{width:calc(200 * var(--s));height:calc(200 * var(--s));
	background-image:url(../images/game-icons/awk/s04.webp)}
.inv-awk__skill::after{width:calc(110 * var(--s));height:calc(110 * var(--s));
	background-image:url(../images/game-icons/awk/s13.webp)}
.inv-awk__skillimg{position:absolute;left:50%;top:50%;z-index:1;
	width:calc(102.4 * var(--s));height:calc(102.4 * var(--s));transform:translate(-50%,-50%);
	object-fit:cover;border-radius:50%}
.inv-awk__lock{position:absolute;left:50%;top:50%;z-index:2;display:none;
	width:calc(116 * var(--s));height:calc(116 * var(--s));transform:translate(-50%,-50%);
	/* m_PicMask is pic_tarot_bg2_02 TINTED translucent in the game -- drawn as the
	   raw sprite it was a solid black disc that hid the icon. The game lets the
	   skill show through, dimmed, under the lock. */
	border-radius:50%;background:rgba(10,12,16,.42)
		url(../images/game-icons/awk/lock.webp) center/calc(64 * var(--s)) no-repeat}
.is-locked > .inv-awk__skill .inv-awk__lock,.inv-awk__skill.is-locked .inv-awk__lock{display:block}
.is-locked > .inv-awk__skill .inv-awk__skillimg,.inv-awk__skill.is-locked .inv-awk__skillimg{filter:grayscale(.7) brightness(.7)}
.inv-awk__up{position:absolute;z-index:3;left:calc(50% + 48 * var(--s));top:calc(50% + 22 * var(--s));
	width:calc(32 * var(--s));height:calc(44 * var(--s));transform:translate(-50%,-50%);
	background:url(../images/game-icons/awk/s26.webp) center/contain no-repeat}
.inv-awk__plus{position:absolute;left:calc(50% + 7 * var(--u));top:50%;transform:translate(-50%,-50%);
	width:calc(28 * var(--u));height:calc(28 * var(--u));
	background:url(../images/game-icons/awk/s35.webp) center/contain no-repeat}
.inv-awk__card{position:absolute;left:calc(50% + 80 * var(--u));top:calc(50% - 2 * var(--u));
	transform:translate(-50%,-50%);width:calc(100 * var(--u));height:calc(96 * var(--u));
	background:url(../images/game-icons/awk/s36.webp) center/contain no-repeat}
.inv-awk__node:not(.is-locked) .inv-awk__card{background-image:url(../images/game-icons/awk/s34.webp)}
.inv-awk__node:hover .inv-awk__skill,.inv-awk__node:focus-visible .inv-awk__skill{filter:brightness(1.12)}
.inv-awk__node.is-next .inv-awk__skill::before{filter:drop-shadow(0 0 calc(12 * var(--u)) rgba(255,214,110,.75))}

/* ── the panel ─────────────────────────────────────────────────────────── */
.inv-awk__panel{--p:calc(100cqw / 720);container-type:inline-size;position:relative;z-index:1;
	display:flex;flex-direction:column;min-height:0;overflow:hidden;
	color:#e8edf6;font-family:Inter,system-ui,sans-serif}
/* ⚠ BUTTONS NEVER SCROLL. Only the content does; the buttons are its sibling and
   keep their own height on the panel's floor (standing rule, every screen). */
.inv-awk__scroll{flex:1 1 auto;min-height:0;overflow-y:auto;padding-right:6px;
	scrollbar-width:thin;scrollbar-color:rgba(245,158,11,.4) rgba(255,255,255,.05)}
.inv-awk__panel > *{--p:calc(100cqw / 720)}

/* Pan_Name: ui_g_titleline_01right under the title, Overview on the right. */
.inv-awk__namerow{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;
	padding:0 0 calc(10 * var(--p));
	background:url(../images/game-icons/awk/titleline.webp) left bottom/100% auto no-repeat}
.inv-awk__name{margin:0;font:700 max(22px,calc(56 * var(--p)))/1 Georgia,'Times New Roman',serif;
	font-variant:small-caps;letter-spacing:.02em;color:#f3c04a;
	text-shadow:0 2px 6px rgba(0,0,0,.6)}
.inv-awk__overview{display:inline-flex;align-items:center;gap:6px;border:0;cursor:pointer;
	padding:0 calc(26 * var(--p)) 0 calc(14 * var(--p));height:max(26px,calc(52 * var(--p)));
	background:url(../images/game-icons/awk/s10.webp) center/100% 100% no-repeat;
	color:#e8edf6;font:400 max(12px,calc(26 * var(--p)))/1 Inter,system-ui,sans-serif}
.inv-awk__overview-icon{width:1.5em;height:1.5em;
	background:url(../images/game-icons/awk/overview-icon.webp) center/contain no-repeat}
/* Bonus Overview: the game's tip box (ui_g_frame_bg_tpis) floats to the LEFT of the
   button, top level with the title row, over the content -- it pushes nothing down.
   Rows are frame_n_01a strips with icon_type_005 (all unit types), value in white. */
.inv-awk__namerow{position:relative;z-index:3}
.inv-awk__ovwrap{position:relative;display:inline-flex}
.inv-awk__ovpop[hidden]{display:none}
.inv-awk__ovpop{position:absolute;top:0;right:calc(100% + 8 * var(--p));z-index:5;
	display:block;box-sizing:border-box;width:calc(500 * var(--p));max-width:calc(100vw - 32px);
	padding:calc(12 * var(--p)) calc(10 * var(--p)) calc(10 * var(--p));
	border:2px solid transparent;border-image:url(../images/game-icons/awk/tipframe.webp) 4 fill/2px stretch;
	box-shadow:0 4px 18px rgba(0,0,0,.55);text-align:left;white-space:normal}
.inv-awk__ovpop .t1{display:block;margin:0 0 calc(10 * var(--p));color:#e9c98f;
	font:700 max(15px,calc(28 * var(--p)))/1.1 Georgia,'Times New Roman',serif;text-transform:uppercase;letter-spacing:.02em}
.inv-awk__ovpop .t2{display:block;margin:0 0 calc(12 * var(--p));color:#fff;
	font:700 max(13px,calc(24 * var(--p)))/1.12 Georgia,'Times New Roman',serif;text-transform:uppercase;letter-spacing:.02em}
.inv-awk__ovpop .r{display:flex;align-items:center;gap:calc(6 * var(--p));margin-top:calc(8 * var(--p));
	min-height:calc(56 * var(--p));padding:0 calc(10 * var(--p)) 0 calc(6 * var(--p));
	border:2px solid transparent;border-image:url(../images/game-icons/awk/tiprow.webp) 6 fill/2px stretch;
	color:#e8edf6;font:400 max(12px,calc(25 * var(--p)))/1.2 Inter,system-ui,sans-serif}
.inv-awk__ovpop .r i{flex:none;width:calc(44 * var(--p));height:calc(44 * var(--p));min-width:22px;min-height:22px;
	background:url(../images/game-icons/awk/alltypes.webp) center/contain no-repeat;opacity:.8}
.inv-awk__ovpop .r span{flex:1 1 auto}
.inv-awk__ovpop .r b{flex:none;color:#fff;font-weight:400}

/* Pan_Progress: label + "75% ▶ 80%", then the bar (pic_skill28 as a 9-slice frame,
   gold fill pic_skill30 for what is done, green pic_skill29 for the next step). */
.inv-awk__progress{margin-top:calc(26 * var(--p))}
.inv-awk__progrow{display:flex;justify-content:space-between;align-items:baseline;
	font-size:max(13px,calc(28 * var(--p)))}
.inv-awk__vals{display:inline-flex;align-items:center;gap:4px}
.inv-awk__vals b{font-weight:400}
.inv-awk__next{color:#7ed957}
.inv-awk__arrow{width:.8em;height:.8em;
	background:url(../images/game-icons/awk/arrow.webp) center/contain no-repeat}
.inv-awk.is-max .inv-awk__arrow,.inv-awk.is-max .inv-awk__next{display:none}
.inv-awk__bar{position:relative;margin:calc(30 * var(--p)) calc(22 * var(--p)) calc(6 * var(--p)) calc(44 * var(--p));
	height:max(11px,calc(20 * var(--p)));box-sizing:border-box;
	border-style:solid;border-width:0 calc(10 * var(--p));
	border-image:url(../images/game-icons/awk/s28.webp) 0 17 fill/0 calc(10 * var(--p)) stretch}
/* ⚠ THE FILLS ARE 9-SLICED, NOT STRETCHED. pic_skill29/30 are 16x12 capsules; drawn
   at 100% 100% they became a lens, a hair at each end, and the green step vanished
   under it. Sliced, the ends keep their round and the band keeps one thickness. */
.inv-awk__barnow,.inv-awk__barnext{position:absolute;left:0;top:50%;transform:translateY(-50%);
	box-sizing:border-box;height:max(5px,calc(9 * var(--p)));width:calc(var(--w,0) * 1%);
	border-style:solid;border-width:0 calc(4 * var(--p))}
.inv-awk__barnow{border-image:url(../images/game-icons/awk/s30.webp) 0 7 fill/0 calc(4 * var(--p)) stretch;
	filter:drop-shadow(0 0 calc(5 * var(--p)) rgba(255,210,110,.85))}
.inv-awk__barnext{border-image:url(../images/game-icons/awk/s29.webp) 0 7 fill/0 calc(4 * var(--p)) stretch}
/* Pic_Stage1 (pic_skill27) at the bar's head, the four stage stars on it at 25/50/75
   /100 -- about twice the bar's height on the game's screen, so they are sized to
   that and not to the 40 the prefab rect gives (the stage anim scales them up). */
.inv-awk__bstart,.inv-awk__bstage{position:absolute;top:50%;padding:0;border:0;cursor:pointer;
	transform:translate(-50%,-50%);background:center/contain no-repeat}
.inv-awk__bstart{left:calc(-12 * var(--p));width:max(34px,calc(76 * var(--p)));aspect-ratio:1;
	background-image:url(../images/game-icons/awk/s27.webp)}
.inv-awk__bstage{left:calc(var(--pp,0) * 1%);width:max(20px,calc(40 * var(--p)));aspect-ratio:1;
	background-image:url(../images/game-icons/awk/s16.webp)}
.inv-awk__bstage[data-pct="25"]{--pp:25}.inv-awk__bstage[data-pct="50"]{--pp:50}
.inv-awk__bstage[data-pct="75"]{--pp:75}.inv-awk__bstage[data-pct="100"]{--pp:100}
.inv-awk__bstage.is-on{background-image:url(../images/game-icons/awk/s17.webp);
	filter:drop-shadow(0 0 calc(4 * var(--p)) rgba(255,214,110,.8))}

/* The section heads -- gold serif capitals, like every heading on this screen. */
.inv-awk__block{margin-top:calc(30 * var(--p))}
.inv-awk__head{margin:0 0 calc(8 * var(--p));padding:0 calc(14 * var(--p));
	font:700 max(13px,calc(30 * var(--p)))/1.2 Georgia,'Times New Roman',serif;
	text-transform:uppercase;letter-spacing:.02em;color:#ead9a8;
	text-shadow:0 1px 3px rgba(0,0,0,.55)}
.inv-awk__row{display:flex;align-items:center;justify-content:space-between;gap:10px;
	min-height:max(32px,calc(70 * var(--p)));padding:0 calc(10 * var(--p));
	font-size:max(13px,calc(28 * var(--p)));
	background:url(../images/game-icons/awk/rowline.webp) left bottom/100% calc(4 * var(--p)) no-repeat}
.inv-awk__gainval{color:#7ed957;font-weight:400}

/* m_Pan_Skill: the next node's skill and what it does, on a darker ground. */
.inv-awk__unlockbox{display:flex;align-items:center;gap:calc(16 * var(--p));
	padding:calc(18 * var(--p)) calc(18 * var(--p));background:rgba(14,18,25,.55)}
.inv-awk__unlockskill{--s:var(--p);position:relative;left:auto;top:auto;transform:none;flex:0 0 auto;
	width:calc(130 * var(--p));height:calc(130 * var(--p));min-width:64px;min-height:64px}
.inv-awk__unlockskill::before{width:120%;height:120%}
.inv-awk__unlockskill::after{width:73%;height:73%}
.inv-awk__unlockskill .inv-awk__skillimg{width:68%;height:68%}
.inv-awk__unlockskill .inv-awk__lock{width:77%;height:77%;background-size:43%}
.inv-awk__unlockskill .inv-awk__up{width:21%;height:29%;left:82%;top:65%}
.inv-awk__unlockskill.no-up .inv-awk__up{display:none}
.inv-awk__unlocktext{margin:0;font-size:max(12px,calc(25 * var(--p)));line-height:1.4;color:#dfe5f2}
.inv-awk__unlocktext .t{color:#f3c04a}
.inv-awk__unlocktext .n{color:#7ed957}

/* m_PanRequire: pic_g_frame_01 row, the hero's own medal at the end. */
.inv-awk__reqrow{background:url(../images/game-icons/awk/reqframe.webp) center/100% 100% no-repeat}
.inv-awk__cost{display:inline-flex;align-items:center;gap:6px}
.inv-awk__cost img{width:max(24px,calc(54 * var(--p)));height:auto}
.inv-awk__costnum{font-weight:400}

.inv-awk__max[hidden]{display:none}
.inv-awk__max{margin:calc(30 * var(--p)) 0 0;text-align:center;color:#f3c04a;
	font:700 max(14px,calc(30 * var(--p)))/1.2 Georgia,'Times New Roman',serif;text-transform:uppercase}
.inv-awk.is-max .inv-awk__gain,.inv-awk.is-max .inv-awk__unlock,.inv-awk.is-max .inv-awk__req{display:none}
/* At 100% ATTAIN stays where it is and says MAX LEVEL, unpressable -- the row keeps
   its shape and the player sees why nothing more happens. */
.inv-awk__attain:disabled{cursor:default;filter:saturate(.55) brightness(.9)}

/* m_PanBottom: the white Customizable Skills and the gold ATTAIN, 300 and 360 wide. */
.inv-awk__btns{flex:0 0 auto;display:grid;grid-template-columns:300fr auto 405fr;gap:calc(12 * var(--p));
	align-items:center;padding-top:calc(20 * var(--p))}
/* The step back down: the gear screen's own down plate, with the amount on it. */
.inv-awk__lower{display:grid;place-items:center;border:0;padding:0;cursor:pointer;
	width:max(44px,calc(104 * var(--p)));aspect-ratio:1;
	background:url(../images/game-icons/btn-step-down.webp) center/contain no-repeat;
	color:#f3ead6;font:700 max(11px,calc(24 * var(--p)))/1 Inter,system-ui,sans-serif;
	text-shadow:0 1px 2px rgba(0,0,0,.8)}
.inv-awk__lower:hover{filter:brightness(1.12)}
.inv-awk__lower:disabled{opacity:.4;cursor:default;filter:grayscale(.6)}
.inv-awk__btns .inv-armoury__btn{width:100%;max-width:none;min-height:max(44px,calc(104 * var(--p)));
	font-size:max(14px,calc(34 * var(--p)));line-height:1.05}

/* ── narrow ─────────────────────────────────────────────────────────────── */
@media (max-width:900px){
	.inv-awk__stage{grid-template-columns:minmax(0,1fr);height:auto;overflow:visible}
	.inv-awk__panel{overflow:visible}
	.inv-awk__scroll{overflow:visible}
	/* No fixed stage on a narrow screen, so the buttons hold the viewport's floor. */
	.inv-awk__btns{position:sticky;bottom:0;z-index:5;padding:10px 0;
		background:linear-gradient(transparent,rgba(8,10,14,.92) 30%)}
}
