/* All quest categories, including the permanent Violet Replay collection, are server-owned. */
.quest-sections{display:grid;gap:17px;max-width:1100px}
.quest-section{padding:15px;border:1px solid var(--line);background:#091c14}
.quest-section-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px 18px;padding:0 2px;margin-bottom:13px}
.quest-section-heading h2{margin:0;color:var(--green);font-size:1rem;letter-spacing:.075em}
.quest-section-heading span{font-size:.72rem;color:var(--muted);letter-spacing:.025em}
.quest-cards{display:grid;gap:12px}
.quest-card{display:flex;gap:18px;align-items:center;padding:8px 0;min-height:124px;border:0;background:transparent;position:relative}
.quest-card.quest-ready .quest-header h3{color:var(--green)}
.quest-card.quest-claimed{opacity:.8}
.quest-art{width:104px;height:104px;flex:none;display:grid;place-items:center;border:0;background:transparent;padding:4px;overflow:hidden}
.quest-art img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
/* Mastery weapon: actual original art, displayed at full aspect ratio and substantially larger. */
.quest-card-mastery{min-height:176px}
.quest-art-sword{width:166px;height:166px;padding:4px}
.quest-art-sword img{max-height:158px;max-width:100%}
.quest-info{flex:1;min-width:0}
.quest-header{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:7px}
.quest-header h3{color:var(--green);font-size:1.03rem;margin:0;font-weight:800;letter-spacing:.06em}
.quest-header span{color:var(--gold);font-weight:800;font-size:.73rem}
.quest-info p{color:var(--text);font-size:.86rem;margin:11px 0 14px;line-height:1.4}
.quest-progress{height:10px;background:#04130b;border:1px solid #24543b;overflow:hidden}
.quest-fill{height:100%;background:linear-gradient(90deg,#1eac66,var(--green));transition:width .35s ease}
.quest-numbers{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;min-height:34px}
.quest-numbers strong{font-size:.86rem;color:var(--green);font-variant-numeric:tabular-nums}
.quest-numbers button{padding:9px 15px;font-size:.76rem}
.quest-done{color:var(--green);font-weight:800;font-size:.76rem}
.quest-unfinished{font-size:.7rem;color:var(--muted)}
.quest-empty{color:var(--muted);font-size:.8rem;margin:2px 0 4px}
.wardrobe-mastery-locked{opacity:.75;cursor:default}
.wardrobe-mastery-locked small{color:var(--gold);font-size:.59rem;line-height:1.3;text-align:center}
@media(max-width:590px){
  .quest-sections{gap:12px}
  .quest-section{padding:10px}
  .quest-section-heading h2{font-size:.89rem}
  .quest-section-heading span{font-size:.64rem}
  .quest-card{gap:10px;padding:6px 0;min-height:104px}
  .quest-art{width:70px;height:82px;padding:2px}
  .quest-card-mastery{min-height:146px}
  .quest-art-sword{width:109px;height:136px;padding:4px}
  .quest-art-sword img{max-height:128px}
  .quest-header h3{font-size:.85rem}
  .quest-header span{font-size:.62rem}
  .quest-info p{font-size:.75rem}
  .quest-numbers button{padding:7px 10px}
}

/* V36.3: Daily cube shares the reward-cube renderer, without inner card borders. */
.quest-daily-cube{min-height:114px}
.quest-daily-cube-icon{display:grid;place-items:center;flex:0 0 104px;width:104px;height:110px;padding:4px;border:0;background:none;cursor:pointer}
/* Suppress the global button:hover green fill around the Daily Cube.
   Preserve the existing cube rotation and faster hover animation. */
.quest-daily-cube-icon:hover:not(:disabled),
.quest-daily-cube-icon:active:not(:disabled){background:transparent;border-color:transparent;box-shadow:none}
.quest-daily-cube-icon .cube-scene{--cube-size:92px;--cube-inset:15px;--cube-depth:30px}
.quest-daily-cube-icon:disabled{opacity:.42;cursor:default}
.quest-daily-cube .quest-header h3{color:#77d7ff}
.quest-daily-cube-status{color:#78d8ff!important}
.quest-daily-reset{color:var(--muted);font-size:.73rem;letter-spacing:.02em;font-variant-numeric:tabular-nums}
@media(max-width:590px){.quest-daily-cube-icon{width:72px;flex-basis:72px;height:82px}.quest-daily-cube-icon .cube-scene{--cube-size:66px;--cube-inset:11px;--cube-depth:22px}}

/* Violet Replay: enlarge the existing artwork without modifying the assets or
   their proportions. Keep the two-column collection and its original order. */
.quest-section-collection .quest-cards{grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:14px 20px}
.quest-section-collection .quest-card{min-height:160px;gap:15px}
.quest-section-collection .quest-art{width:138px;height:150px;padding:3px;overflow:visible}
.quest-section-collection .quest-art img{max-width:100%;max-height:100%;object-fit:contain}
.quest-section-collection .quest-header span{font-size:.70rem;line-height:1.35}
@media(max-width:740px){.quest-section-collection .quest-cards{grid-template-columns:1fr}}
@media(max-width:590px){.quest-section-collection .quest-card{min-height:120px;gap:10px}.quest-section-collection .quest-art{width:94px;height:112px}}

/* Bombardier's Red Comrade operator cosmetic: larger full-art preview. */
.quest-card[data-quest-id="bombardier_red_comrade"] .quest-art{width:148px;height:148px;padding:2px;overflow:visible}
.quest-card[data-quest-id="bombardier_red_comrade"] .quest-art img{max-width:100%;max-height:100%;object-fit:contain}
@media(max-width:590px){.quest-card[data-quest-id="bombardier_red_comrade"] .quest-art{width:102px;height:112px}}

/* Sunpiercer: match the existing Campus Bow preview in Violet Replay. */
.quest-card[data-quest-id="archer_sunpiercer"]{min-height:160px}
.quest-card[data-quest-id="archer_sunpiercer"] .quest-art{width:138px;height:150px;padding:3px;overflow:visible}
.quest-card[data-quest-id="archer_sunpiercer"] .quest-art img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
@media(max-width:590px){
  .quest-card[data-quest-id="archer_sunpiercer"]{min-height:120px}
  .quest-card[data-quest-id="archer_sunpiercer"] .quest-art{width:94px;height:112px}
}


/* Permanent cosmetic quests use ONE identical art column. The original Red
   Comrade-only rule left new operator cosmetics 44px smaller and stretched
   their progress bars. All three previews now align. */
.quest-section-cosmetic .quest-card {min-height:176px;gap:16px;padding:4px 0}
.quest-section-cosmetic .quest-card .quest-art {
  box-sizing:border-box;width:170px;height:170px;flex:0 0 170px;
  padding:2px;overflow:visible;
}
.quest-section-cosmetic .quest-card .quest-art img {
  display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;
}
@media(max-width:590px) {
  .quest-section-cosmetic .quest-card {min-height:118px;gap:10px;padding:4px 0}
  .quest-section-cosmetic .quest-card .quest-art {
    width:106px;height:112px;flex-basis:106px;padding:1px;
  }
}

/* CAPTAIN SKINS: full original pawn and weapon art, not tiny generic quest icons. */
.quest-section-captain_skins .quest-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px}
.quest-section-captain_skins .quest-card{min-height:202px;gap:13px}
.quest-section-captain_skins .quest-art{box-sizing:border-box;flex:0 0 186px;width:186px;height:192px;padding:2px;overflow:visible}
.quest-section-captain_skins .quest-art img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.quest-section-captain_skins .quest-header{align-items:flex-start;gap:5px}
.quest-section-captain_skins .quest-header span{font-size:.67rem;line-height:1.4}
@media(max-width:1120px){.quest-section-captain_skins .quest-cards{grid-template-columns:minmax(0,1fr)}}
@media(max-width:590px){
  .quest-section-captain_skins .quest-card{min-height:132px;gap:10px}
  .quest-section-captain_skins .quest-art{flex-basis:116px;width:116px;height:130px}
}
