/* =====================================================================================
   1.0m NEXT LEVEL - B10-clarity looks (plan 2 E56 offer card, E57 cloud save line + PICK A FILE).
   The battle marks (E49 lines, E50 pips, E56 outline) are canvas-drawn in public/js/nl-battle2.js.
   Every rule sits under html.nl-<ID> (NL.flag) and honours html[data-anim].
   ===================================================================================== */

/* ---- E56: the one-time CLEAR VIEW offer (in a fight, under the HUD strip; it takes taps, the board below still does) */
html.nl-E56 .nlClearOffer {
  position: fixed; left: 50%; z-index: 98; translate: -50% 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; box-sizing: border-box;
  width: max-content; max-width: min(380px, calc(100vw - 24px));
  padding: 9px 12px 10px 10px; border-radius: 14px;
  border: 3px solid #0a0618; border-left: 7px solid #3fd0c9;
  background: linear-gradient(180deg, #2e2358, #1d1540);
  color: #fff8e7; font-family: 'Bangers', Impact, sans-serif; font-size: 16px; letter-spacing: .8px; line-height: 1.15;
  box-shadow: 4px 6px 0 rgba(0, 0, 0, .45);
  animation: nlcoIn .34s cubic-bezier(.2, 1.5, .4, 1) both;
}
html.nl-E56 .nlClearOffer .nlcoIco { width: 24px; height: 24px; flex: 0 0 auto; }
html.nl-E56 .nlClearOffer .nlcoIco svg { width: 100%; height: 100%; display: block; }
html.nl-E56 .nlClearOffer .nlcoTxt { flex: 1 1 180px; text-align: left; }
html.nl-E56 .nlClearOffer .nlcoBtns { display: flex; gap: 8px; flex: 0 0 auto; }
html.nl-E56 .nlClearOffer button {
  min-height: 40px; padding: 4px 13px; cursor: pointer; font-family: 'Bangers', Impact, sans-serif; font-size: 15px; letter-spacing: 1px;
  border: 2.5px solid #0a0618; border-radius: 10px; -webkit-tap-highlight-color: transparent;
}
html.nl-E56 .nlClearOffer .nlcoYes { color: #1b1430; background: #3fd0c9; box-shadow: 0 3px 0 #1d7f7a; }
html.nl-E56 .nlClearOffer .nlcoNo { color: #fff8e7; background: transparent; border-color: #6b5fa6; }
html.nl-E56 .nlClearOffer button:active { transform: translateY(2px); box-shadow: none; }
html.nl-E56 .nlClearOffer.nlClosing { animation: nlcoOut .16s ease-in both; }
@keyframes nlcoIn { from { opacity: 0; transform: translateY(-12px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes nlcoOut { to { opacity: 0; transform: translateY(-8px) scale(.96); } }
html[data-anim="none"] .nlClearOffer, html[data-anim="none"] .nlClearOffer.nlClosing { animation: none !important; }
html[data-anim="some"] .nlClearOffer { animation-duration: .18s; }

/* ---- E57: the cloud save line (SETTINGS -> DATA and the ACCOUNT page) */
html.nl-E57 .nlCloud {
  display: flex; align-items: center; gap: 10px; box-sizing: border-box; margin: 4px 0 8px;
  padding: 9px 10px; border-radius: 12px; text-align: left;
  border: 2.5px solid #0a0618; border-left: 6px solid #7ee8fa;
  background: linear-gradient(180deg, #2e2358, #241b4a);
  color: #fff8e7; box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}
html.nl-E57 .nlCloud[data-k="guest"], html.nl-E57 .nlCloud[data-k="signin"], html.nl-E57 .nlCloud[data-k="choice"] { border-left-color: #ffd23f; }
html.nl-E57 .nlCloud[data-k="off"], html.nl-E57 .nlCloud[data-k="offline"] { border-left-color: #8f86b8; }
html.nl-E57 .nlCloudIco { width: 30px; height: 30px; flex: 0 0 auto; }
html.nl-E57 .nlCloudIco svg { width: 100%; height: 100%; display: block; }
html.nl-E57 .nlCloud[data-k="guest"] .nlCloudIco svg path:first-child,
html.nl-E57 .nlCloud[data-k="signin"] .nlCloudIco svg path:first-child { fill: #ffd23f; }
html.nl-E57 .nlCloud[data-k="off"] .nlCloudIco svg path:first-child,
html.nl-E57 .nlCloud[data-k="offline"] .nlCloudIco svg path:first-child { fill: #8f86b8; }
html.nl-E57 .nlCloudTxt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
html.nl-E57 .nlCloudLine { font-family: 'Bangers', Impact, sans-serif; font-weight: normal; font-size: 16px; letter-spacing: .8px; line-height: 1.1; }
html.nl-E57 .nlCloudSub { font-family: system-ui, -apple-system, sans-serif; font-size: 11px; font-weight: 600; line-height: 1.3; opacity: .82; }
html.nl-E57 .nlCloudCopy, html.nl-E57 .nlPickBtn, html.nl-E57 .nlPick button {
  flex: 0 0 auto; min-height: 44px; padding: 6px 12px; cursor: pointer;
  font-family: 'Bangers', Impact, sans-serif; font-size: 14px; letter-spacing: 1px;
  color: #1b1430; background: #7ee8fa; border: 2.5px solid #1b1430; border-radius: 10px; box-shadow: 0 3px 0 #2b7f8c;
  -webkit-tap-highlight-color: transparent;
}
html.nl-E57 .nlCloudCopy:active, html.nl-E57 .nlPick button:active { transform: translateY(2px); box-shadow: 0 1px 0 #2b7f8c; }
@media (max-width: 380px) {
  html.nl-E57 .nlCloud { flex-wrap: wrap; }
  html.nl-E57 .nlCloudTxt { flex-basis: calc(100% - 40px); }
  html.nl-E57 .nlCloudCopy { margin-left: 40px; }
}
/* the ACCOUNT page sits on a light card column: keep the same dark slab, centred to the page width */
html.nl-E57 #acctScr .nlCloud { width: 100%; max-width: 420px; margin: 0 auto 10px; }

/* ---- E57: PICK A FILE under IMPORT SAVE */
html.nl-E57 .nlPick { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
html.nl-E57 .nlPickAsk[hidden], html.nl-E57 .nlPickMsg[hidden] { display: none !important; }
html.nl-E57 .nlPickAsk {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; box-sizing: border-box;
  padding: 8px 10px; border-radius: 10px; border: 2px solid #ffd23f; background: rgba(255, 210, 63, .1);
}
html.nl-E57 .nlPickQ { flex: 1 1 200px; font-family: 'Bangers', Impact, sans-serif; font-size: 14px; letter-spacing: .7px; color: #fff8e7; line-height: 1.2; }
html.nl-E57 .nlPickBtns { display: flex; gap: 8px; }
html.nl-E57 .nlPick .nlPickUse { background: #ffd23f; box-shadow: 0 3px 0 #8a6a12; }
html.nl-E57 .nlPick .nlPickNo { color: #fff8e7; background: transparent; border-color: #6b5fa6; box-shadow: none; }
html.nl-E57 .nlPickMsg { font-family: system-ui, -apple-system, sans-serif; font-size: 11px; font-weight: 700; color: #fff8e7; opacity: .9; }
html.nl-E57 .nlPickMsg.nlPickBad { color: #ff8787; opacity: 1; }
