/* Battle HUD in the lobby's gold-trim / raised look (presentation only). */
/* Team bars + clock: navy plate, thin gold trim, raised edge */
#hud .team,#hud .clock{border:2px solid #B88A3A!important;border-image:none!important;background:linear-gradient(180deg,rgba(30,44,58,.94),rgba(16,24,34,.94))!important;
 box-shadow:inset 0 1px 0 rgba(255,240,200,.18),0 3px 0 rgba(0,0,0,.45),0 0 10px rgba(227,176,75,.18)!important;border-radius:8px!important}
#hud .clock{border-color:#E3B04B!important}
#hud .clock>*:first-child{text-shadow:0 2px 0 #3a2a10,0 0 8px rgba(244,210,122,.35)!important;color:#FFF0C8!important}
#hud .team strong{text-shadow:0 1px 0 #000!important}
/* Spell buttons: gold frame, raised, press-in */
#controls .skill-controls .skill,#controls button.spell-change{border:2px solid #B88A3A!important;border-image:none!important;border-radius:8px!important;
 background:radial-gradient(ellipse at 50% 35%,rgba(70,96,122,.55),transparent 70%),linear-gradient(180deg,#22344a,#121c28)!important;
 box-shadow:inset 0 1px 0 rgba(255,240,200,.2),0 4px 0 #0a1018,0 0 8px rgba(227,176,75,.15)!important;transition:transform .08s ease-out,box-shadow .08s ease-out!important}
#controls .skill-controls .skill:not(:disabled):active,#controls button.spell-change:active{transform:translateY(3px)!important;box-shadow:inset 0 2px 4px rgba(0,0,0,.45),0 1px 0 #0a1018!important}
#controls .skill-controls .skill .button-name,#controls button.spell-change{color:#FFF0C8!important;text-shadow:0 1px 0 #000,0 0 3px #000!important}
#controls .skill-controls .skill .charges{border:1px solid #E3B04B!important;background:#1a1408!important;color:#F4D27A!important;border-radius:4px}
#controls .skill-controls .skill:disabled{filter:grayscale(.5) brightness(.75)}
/* Synergy rail */
#synergyRail048 .synergy-toggle20261015,#synergyRail048 .synergy-pill048{border:1px solid #8a6a2c!important;border-image:none!important;border-radius:6px!important;
 background:linear-gradient(180deg,rgba(34,48,62,.94),rgba(18,26,36,.94))!important;box-shadow:inset 0 1px 0 rgba(255,240,200,.12),0 2px 0 rgba(0,0,0,.45)!important;color:#FFF0C8!important}
#synergyRail048 .synergy-pill048.active{border-color:#E3B04B!important;box-shadow:inset 0 1px 0 rgba(255,240,200,.18),0 2px 0 rgba(0,0,0,.45),0 0 8px rgba(227,176,75,.3)!important}
#synergyRail048 .synergy-toggle20261015:active,#synergyRail048 .synergy-pill048:active{transform:translateY(2px)}
/* Right side small buttons: bigger, clearer */
#controls .small-icon.menu-button,#controls .small-icon.roster-button{border:2px solid #B88A3A!important;border-image:none!important;border-radius:10px!important;
 background:linear-gradient(180deg,#2a3e52,#152130)!important;box-shadow:inset 0 1px 0 rgba(255,240,200,.2),0 3px 0 #0a1018!important;color:#FFF0C8!important}
#controls .small-icon.menu-button .atlas-icon045{filter:drop-shadow(0 1px 0 #000) brightness(1.15)!important}
#controls .small-icon:active{transform:translateY(2px)!important;box-shadow:inset 0 2px 3px rgba(0,0,0,.4)!important}
/* 조합식 tab: gold tab that reads as a button */
#controls .recipe-book048{border:2px solid #E3B04B!important;border-bottom:0!important;border-image:none!important;border-radius:8px 8px 0 0!important;
 background:linear-gradient(180deg,#F0C060,#C88F2E)!important;color:#1A1408!important;text-shadow:none!important;font-weight:700;box-shadow:0 -2px 8px rgba(227,176,75,.35)!important;padding:0 14px!important}
#controls .recipe-book048:active{transform:translateY(2px)!important;filter:brightness(.92)}

/* keep the two right buttons stacked with a gap after enlarging */


/* ---------- Start / login screen in the same look ---------- */
.account-entry070 .account-entry-card070{border:2px solid #B88A3A!important;border-radius:12px!important;
 background:radial-gradient(ellipse at 50% 0%,rgba(244,210,122,.14),transparent 60%),linear-gradient(180deg,rgba(26,38,52,.96),rgba(12,18,26,.96))!important;
 box-shadow:inset 0 1px 0 rgba(255,240,200,.18),0 0 0 4px rgba(8,12,18,.6),0 0 30px rgba(227,176,75,.22),0 18px 48px rgba(0,0,0,.6)!important}
.account-entry070 .account-intro070 h1{color:#FFF0C8!important;text-shadow:0 2px 0 #3a2a10,0 0 10px rgba(244,210,122,.35)!important}
/* provider buttons keep brand colours, gain the raised/press feel */
.account-entry070 .provider070{border-radius:10px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 4px 0 rgba(0,0,0,.45)!important;transition:transform .08s ease-out,box-shadow .08s ease-out!important}
.account-entry070 .provider070:not(:disabled):active{transform:translateY(3px)!important;box-shadow:inset 0 2px 4px rgba(0,0,0,.35),0 1px 0 rgba(0,0,0,.45)!important}
/* guest + other actions: gold primary */
.account-entry070 .account-guest070,.account-entry070 .account-actions070 button.primary{min-height:48px;border:2px solid #FFF0B8!important;border-image:none!important;border-radius:8px!important;
 background:linear-gradient(180deg,#F0C060,#D9A23F)!important;color:#1A1408!important;font-weight:700;text-shadow:none!important;box-shadow:0 4px 0 #6b4c16,0 0 12px rgba(227,176,75,.35)!important;transition:transform .08s ease-out!important}
.account-entry070 .account-guest070:not(:disabled):active,.account-entry070 .account-actions070 button.primary:not(:disabled):active{transform:translateY(3px)!important;box-shadow:0 1px 0 #6b4c16!important}
.account-entry070 .account-actions070 button:not(.primary),.account-entry070 .account-legal070 button{border:1px solid #5B7385!important;border-image:none!important;border-radius:8px!important;background:linear-gradient(180deg,#3A4E5E,#26343F)!important;color:#ECE6D6!important;box-shadow:0 3px 0 #10171e!important}
.account-entry070 .account-actions070 button:not(.primary):active{transform:translateY(2px)}
/* loading screen: retry / start buttons + gold progress */
#loading059 button,#boot074 button{border:2px solid #E3B04B!important;border-image:none!important;border-radius:8px!important;background:linear-gradient(180deg,#22344a,#121c28)!important;color:#FFF0C8!important;
 box-shadow:inset 0 1px 0 rgba(255,240,200,.2),0 4px 0 #0a1018,0 0 10px rgba(227,176,75,.25)!important;min-height:44px;padding:0 22px!important;font-weight:700;transition:transform .08s ease-out!important}
#loading059 button:active,#boot074 button:active{transform:translateY(3px)!important;box-shadow:0 1px 0 #0a1018!important}
#loading059 progress{appearance:none;-webkit-appearance:none;height:10px;border:1px solid #6b5326;border-radius:5px;background:#0f161d;overflow:hidden}
#loading059 progress::-webkit-progress-bar{background:#0f161d}
#loading059 progress::-webkit-progress-value{background:linear-gradient(90deg,#D9A23F,#F4D27A);box-shadow:0 0 8px rgba(244,210,122,.5)}
#loading059 progress::-moz-progress-bar{background:linear-gradient(90deg,#D9A23F,#F4D27A)}
#boot074 .boot-track074::after{background:linear-gradient(90deg,#D9A23F,#F4D27A)!important}

@media(prefers-reduced-motion:reduce){#controls button,.account-entry070 button,#loading059 button,#boot074 button{transition:none!important}}
/* ---------- Recipe lab: centred content inside the window ---------- */
/* list rows: materials → results as one centred group; results wrap instead of being cut */
.v3-list .v3-recipe{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center!important;gap:10px!important;overflow:visible!important;
 border:1px solid #3E4F5C!important;border-radius:8px!important;background:linear-gradient(180deg,rgba(30,44,58,.9),rgba(18,28,38,.9))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 3px 0 rgba(0,0,0,.35)!important}
.v3-list .v3-recipe.ready{border-color:#E3B04B!important;box-shadow:inset 0 1px 0 rgba(255,240,200,.12),0 3px 0 rgba(0,0,0,.35),0 0 10px rgba(227,176,75,.25)!important}
.v3-list .v3-recipe .v3-materials,.v3-list .v3-recipe .v3-results{display:flex!important;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}
.v3-list .v3-recipe .v3-results{position:relative}
.v3-list .v3-recipe .v3-choose-label{flex-basis:100%;text-align:center}
.v3-list .v3-tier-filters,.v3-list .recipe-path045{justify-content:center;text-align:center}
.v3-list .v3-tier-filters{display:flex;gap:8px}
/* detail column + flow view: centre texts and stacks */
.v3-atlas-detail{text-align:center}
.v3-atlas-detail .v3-detail-hero{justify-items:center;text-align:center}
.v3-atlas-detail .v3-recipe{align-items:center}
.flow-side048{text-align:center}
.flow-side048 h3{text-align:center}
.flow-side048:has(>.flow-base048){display:flex;flex-direction:column;align-items:center}
.flow-side048 .flow-base048{margin-top:auto;font-size:13px!important;color:#ECE6D6}
.flow-side048 .flow-base048+small{margin-bottom:auto;color:#A9B3BA;font-size:12px!important}
.flow-side048 .flow-node048{margin-left:auto;margin-right:auto;width:min(100%,360px)}
.flow-nav048{align-items:center}
.flow-nav048>strong{flex:1;text-align:center}
.flow-hero048,.flow-hero048 .flow-abilities078 p,.flow-hero048 .flow-skill048{text-align:center!important}
.flow-side048 .flow-node048{display:flex!important;align-items:center;justify-content:center;gap:12px;text-align:center}
.flow-side048 .flow-node048>span{display:flex;flex-direction:column;align-items:center}
.flow-side048 .flow-base048{margin-top:24px!important}
.flow-side048 .flow-base048+small{margin-bottom:0!important}
/* phone: keep a recipe row on one line by shrinking cards instead of wrapping */
@media (max-height:450px){
 .v3-list .v3-recipe{flex-wrap:nowrap!important;gap:6px!important}
 .v3-list .v3-recipe .v3-materials,.v3-list .v3-recipe .v3-results{flex-wrap:nowrap;gap:4px}
 .v3-list .v3-recipe .v3-mini-unit{min-width:0!important;width:clamp(56px,9vw,96px)!important}
 .v3-list .v3-recipe .v3-mini-unit img{width:36px!important;height:36px!important}
 .v3-list .v3-recipe .v3-choose-label{position:absolute;top:-16px;left:0;right:0;font-size:10px}
 .v3-list .v3-recipe{padding-top:18px!important}
}
@media (max-height:450px){
 .v3-list .v3-recipe{justify-content:safe center!important}
 .v3-list .v3-recipe .v3-mini-unit{width:clamp(50px,7.4vw,84px)!important;padding:3px 2px!important}
 .v3-list .v3-recipe .v3-mini-unit strong{font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 .v3-list .v3-recipe .v3-mini-unit small{font-size:9px!important}
 .v3-list .v3-recipe .v3-plus,.v3-list .v3-recipe .v3-arrow{font-size:12px!important}
}
/* roster opens from the HP bars (ours / enemy); dedicated roster button hidden */
#controls #rosterButton{display:none!important}
#hud .team[data-roster1018]{pointer-events:auto!important;cursor:pointer;transition:transform .08s ease-out,filter .08s ease-out}
#hud .team[data-roster1018]:active{transform:translateY(2px);filter:brightness(.9)}
@media(hover:hover){#hud .team[data-roster1018]:hover{filter:brightness(1.1)}}
/* settings button: icon dead-centre, depth kept inside the frame (nothing sticks out) */
#controls .small-icon.menu-button{display:grid!important;place-items:center!important;padding:0!important;box-sizing:border-box!important;overflow:hidden!important;
 box-shadow:inset 0 1px 0 rgba(255,240,200,.22),inset 0 -3px 0 rgba(0,0,0,.35),0 2px 4px rgba(0,0,0,.45)!important}
#controls .small-icon.menu-button>.atlas-icon045{margin:0!important;position:static!important;inset:auto!important;transform:none!important;width:78%!important;height:78%!important;max-width:30px;max-height:30px}
#controls .small-icon.menu-button::before,#controls .small-icon.menu-button::after{display:none!important}
#controls .small-icon.menu-button:active{transform:translateY(1px)!important;box-shadow:inset 0 2px 3px rgba(0,0,0,.45)!important}
/* ---------- 조합식 | 조합 가능 : one segmented pill, centred labels, same type ---------- */
#controls .recipe-book048,#controls #comboBadge{margin:0!important;transform:none!important;height:28px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
 font-family:inherit!important;font-weight:700!important;font-size:12px!important;line-height:1!important;letter-spacing:.02em;white-space:nowrap!important;text-align:center!important;border-image:none!important;filter:none!important;animation:none!important;transition:transform .08s ease-out,filter .08s ease-out!important}
#controls .recipe-book048::before,#controls .recipe-book048::after,#controls #comboBadge::before,#controls #comboBadge::after{display:none!important}
#controls .recipe-book048{left:auto!important;width:auto!important;min-width:78px;padding:0 16px!important;border:1.5px solid #B88A3A!important;border-radius:14px!important;
 background:linear-gradient(180deg,#34495A,#1F2C37)!important;color:#FFF0C8!important;text-shadow:0 1px 0 #000!important;
 box-shadow:inset 0 1px 0 rgba(255,240,200,.18),inset 0 -2px 0 rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.45)!important}
#controls .recipe-book048:active{transform:translateY(1px)!important;filter:brightness(.9)}
#controls #comboBadge{width:auto!important;min-width:0!important;max-width:none!important;left:auto!important;gap:6px;padding:0 8px 0 12px!important;
 border:1.5px solid #B88A3A!important;border-left:0!important;border-radius:0 14px 14px 0!important;
 background:linear-gradient(180deg,#F4CD6E,#D9A23F)!important;color:#1A1408!important;text-shadow:0 1px 0 rgba(255,240,200,.5)!important;
 box-shadow:inset 0 1px 0 rgba(255,250,220,.6),inset 0 -2px 0 rgba(107,76,22,.45),0 2px 6px rgba(0,0,0,.45)!important}
#controls #comboBadge>span{line-height:1!important;height:auto!important;font:inherit!important;color:inherit!important}
#controls #comboBadge>b{position:static!important;flex:none!important;margin:0!important;display:inline-grid!important;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;box-sizing:border-box;
 background:#1A1408;color:#F4D27A!important;font-family:inherit;font-weight:700;font-size:11px;line-height:1;box-shadow:none;animation:combo-pip1018 1.6s ease-in-out infinite}
@keyframes combo-pip1018{0%,100%{box-shadow:0 0 0 0 rgba(26,20,8,0)}50%{box-shadow:0 0 0 3px rgba(26,20,8,.25)}}
#controls #comboBadge[aria-expanded="true"]{background:linear-gradient(180deg,#FFE08A,#E3B04B)!important}
#controls #comboBadge:active{transform:translateY(1px)!important;filter:brightness(.93)}
html.craft-ready053 #controls .recipe-book048{border-radius:14px 0 0 14px!important;border-right:1px solid rgba(184,138,58,.6)!important}
@media(prefers-reduced-motion:reduce){#controls #comboBadge>b{animation:none}}
/* ingredient chips above the result cards: neutral chips, gold plus */
#combo #recipeMaterials{gap:6px!important;align-items:center}
#combo #recipeMaterials .material048{border:1px solid #5B7385!important;border-image:none!important;border-radius:6px!important;background:linear-gradient(180deg,#3A4E5E,#26343F)!important;
 box-shadow:inset 0 1px 0 rgba(255,240,200,.12),0 2px 0 rgba(0,0,0,.4)!important;color:#ECE6D6!important;padding:0 8px 0 2px!important}
#combo #recipeMaterials :is(i,em,.plus048,.material-plus048){color:#E3B04B!important}
@media(prefers-reduced-motion:reduce){#controls #comboBadge>b{animation:none}}

/* ---------- no duplicate notices; side chips stay above the bottom window ---------- */
#toast.dup-hidden1018{display:none!important}
:is(#mergeFeedMine,#mergeFeedEnemy).merge-feed{bottom:var(--feed-bottom1018,117px)!important;top:auto!important;max-height:calc(100dvh - var(--feed-bottom1018,117px) - 90px);overflow:hidden}
.merge-feed>*{background:linear-gradient(180deg,rgba(38,52,63,.94),rgba(24,34,44,.94))!important;border:1px solid #3E4F5C!important;border-left:3px solid #A3ADB4!important;border-radius:8px!important;
 box-shadow:0 2px 0 rgba(0,0,0,.4)!important;color:#ECE6D6!important}
.merge-feed>.tier-2{border-left-color:#62AEDB!important}.merge-feed>.tier-3{border-left-color:#B78BE0!important}.merge-feed>.tier-4{border-left-color:#EE9A4E!important}
.merge-feed.enemy>*{border-left:1px solid #3E4F5C!important;border-right:3px solid #C86A5A!important}

/* 조합식 1 · 2 … picker chips: same slate chip, selected = gold */
#controls .recipe-strip053{gap:6px!important}
#controls .recipe-strip053>button{height:26px;padding:0 12px!important;border:1px solid #5B7385!important;border-image:none!important;border-radius:13px!important;
 background:linear-gradient(180deg,#3A4E5E,#26343F)!important;color:#ECE6D6!important;font-family:inherit!important;font-weight:700!important;font-size:11px!important;line-height:1!important;text-shadow:0 1px 0 #000!important;box-shadow:inset 0 1px 0 rgba(255,240,200,.12),0 2px 0 #0a1018!important}
#controls .recipe-strip053>button[aria-pressed="true"]{border-color:#FFE7A0!important;background:linear-gradient(180deg,#F4CD6E,#D9A23F)!important;color:#1A1408!important;text-shadow:none!important;box-shadow:inset 0 1px 0 rgba(255,250,220,.6),0 2px 0 #6b4c16!important}
#controls .recipe-strip053>button:active{transform:translateY(1px)}
#controls .recipe-strip053{background:none!important;border:0!important;box-shadow:none!important;border-image:none!important}
#controls #comboBadge.hidden,html body #controls #comboBadge.hidden{display:none!important}
#controls .recipe-strip053{display:flex;align-items:center;max-width:none!important;overflow:visible!important;padding:0!important;margin:0!important;width:auto!important}#controls .recipe-strip053[hidden]{display:none!important}
#controls .recipe-strip053.compact1018>button{font-size:0!important;padding:0!important;aspect-ratio:1;min-width:0!important;display:inline-grid!important;place-items:center}
#controls .recipe-strip053.compact1018>button::after{content:attr(data-n);font-family:inherit;font-weight:700;font-size:12px;line-height:1}

/* Keep long recipe lists inside the card column; only the list scrolls. */
#controls .recipe-strip053{overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;min-width:0!important;max-width:100vw!important}
#controls .recipe-strip053::-webkit-scrollbar{display:none}
#controls .recipe-strip053>button{flex:0 0 auto}
#controls .recipe-strip053.compact1018>button{width:28px!important;flex:0 0 28px!important}
#controls .recipe-strip053.compact1018>button>*{display:none!important}
/* wave banner repeats the top clock → hidden (only WAVE messages, see polish js) */
#banner.dup-hidden1018{display:none!important}
/* 조합식 1 · 2 picker: round number chips floating above the panel */
#controls .recipe-strip053{justify-content:flex-start;gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important}
#controls .recipe-strip053.compact1018>button{border-radius:50%!important;padding:0!important;box-shadow:0 2px 6px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,240,200,.18)!important}
/* number dead-centre in the round chip (hidden label must not shift it) */
#controls .recipe-strip053.compact1018>button{position:relative!important;display:block!important;line-height:0!important;text-indent:0!important}
#controls .recipe-strip053.compact1018>button::after{position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;font-size:12px!important;font-weight:700!important}
#combo #recipeMaterials{align-items:center!important}#combo #recipeMaterials .material048 img{max-height:calc(100% - 4px)!important;width:auto!important}
/* optical centring: pixel font sits ~1px low → nudge up; shadow straight down only */
#controls .recipe-strip053.compact1018>button::after{padding-bottom:2px!important;box-sizing:border-box!important;text-shadow:0 1px 0 rgba(0,0,0,.6)!important}
#controls .recipe-strip053.compact1018>button[aria-pressed="true"]::after{text-shadow:none!important}
#controls .recipe-strip053.compact1018>button{box-shadow:inset 0 1px 0 rgba(255,240,200,.18)!important}
/* 2026-10-19: no first-frame hop. Until the JS fit runs, the picker/badge are invisible rather than at a wrong place. */
#controls .recipe-strip053:not([data-fit1019]),#controls #comboBadge:not([data-fit1019]){visibility:hidden}
/* 2026-10-19: 조합 가능 attaches to the LEFT of a fixed 조합식, so the 조합식 tab never jumps sideways */
html.craft-ready053 #controls .recipe-book048{border-radius:0 14px 14px 0!important;border-right:1.5px solid #B88A3A!important;border-left:1px solid rgba(184,138,58,.6)!important}
#controls #comboBadge{border-radius:14px 0 0 14px!important;border-left:1.5px solid #B88A3A!important;border-right:0!important;padding:0 10px 0 12px!important}

/* 2026-10-26 Claude: 상대 조합·뽑기 알림 컨테이너에 HUD용 .enemy 배경(반투명 검정 그라데이션)이 그대로 적용돼
   짧은 이름 카드 뒤에 검은 칸이 남던 문제. 컨테이너는 투명, 배경은 각 카드에만. */
:is(#mergeFeedMine,#mergeFeedEnemy).merge-feed{background:none!important;width:auto!important;text-align:left}
