/* Frontier art direction: custom portraits and a unified PC-98 app-icon language. */
.art-portrait {
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 1;
  background-image: url("assets/frontier-character-atlas.png");
  background-repeat: no-repeat;
  background-size: 400% 200%;
  image-rendering: pixelated;
  background-color: #10102b;
  border: 2px solid var(--cyan, #58e5ec);
  box-shadow: 3px 3px 0 #000;
}
.portrait-0 { background-position: 0 0; }
.portrait-1 { background-position: 33.333% 0; }
.portrait-2 { background-position: 66.667% 0; }
.portrait-3 { background-position: 100% 0; }
.portrait-4 { background-position: 0 100%; }
.portrait-5 { background-position: 33.333% 100%; }
.portrait-6 { background-position: 66.667% 100%; }
.portrait-7 { background-position: 100% 100%; }

.eco-app {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  min-height: 142px;
  padding: 18px;
  background-image: linear-gradient(135deg, #202047 0%, var(--win, #13132d) 58%);
  border: 2px solid var(--stroke-2, #454578);
  border-radius: 0;
  box-shadow: 4px 4px 0 #000;
  transition: transform 100ms steps(2), border-color 100ms linear;
}
.eco-app:hover { transform: translate(-2px, -2px); border-color: var(--cyan, #58e5ec); }
.eco-app:active { transform: translate(1px, 1px); }
.eco-app-icon {
  display: grid;
  float: none !important;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid var(--stroke-3, #6f72aa);
  background: repeating-linear-gradient(0deg, #10102a 0 5px, #171738 5px 10px);
  color: var(--app-accent, #58e5ec) !important;
  box-shadow: 3px 3px 0 #000;
}
.eco-app-glyph { width: 32px; height: 32px; stroke-width: 1.7; shape-rendering: crispEdges; }
.eco-icon-social { --app-accent: #ff86c8; }
.eco-icon-pulse { --app-accent: #ffe17a; }
.eco-icon-radar { --app-accent: #69f0c1; }
.eco-icon-dex { --app-accent: #82c7ff; }
.eco-icon-collection { --app-accent: #f8a9ff; }
.eco-icon-influence { --app-accent: #ffbd69; }
.eco-icon-quests { --app-accent: #94efaa; }
.eco-app>.eco-app-copy { display: flex; float: none; min-width: 0; flex-direction: column; align-items: flex-start; gap: 7px; }
.eco-app-copy b { font: 18px/1.3 var(--display); color: var(--ink, #e7e7ff); }
.eco-app-copy p { margin: 0; color: var(--ink-2, #aaaad0); }
.eco-app-copy small { margin-top: auto; padding-top: 3px; color: var(--app-accent, var(--cyan, #58e5ec)); }
.eco-app-copy i { font-style: normal; }

.eco-post > header { display: flex; justify-content: flex-start; align-items: center; flex-wrap: nowrap; min-height: 48px; }
.art-author { width: 44px; border-color: var(--magenta, #ff72be); }
.eco-post-author { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.eco-post-author b { color: var(--magenta, #ff72be) !important; }
.eco-post-author small { line-height: 1.4; }
.eco-avatar { position: relative; display: block; width: 72px; height: 72px; padding: 3px; overflow: hidden; border-radius: var(--profile-radius, 0) !important; }
.art-profile-face { width: 100%; height: 100%; border-color: var(--profile-color, var(--cyan, #58e5ec)); box-shadow: none; }
.eco-avatar-item { position: absolute; right: 1px; bottom: 1px; display: grid; width: 27px; height: 21px; place-items: center; background: #080818; border: 1px solid var(--profile-color, var(--cyan, #58e5ec)); }
.eco-avatar-item svg { width: 24px !important; height: 18px; }
.eco-account { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; column-gap: 10px; }
.eco-account .art-author { width: 34px; grid-row: span 2; border-color: var(--cyan, #58e5ec); }
.eco-account p, .eco-account .btn { grid-column: 2; }

@media (max-width: 700px) {
  .eco-app { min-height: 120px; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 13px; }
  .eco-app-icon { width: 46px; height: 46px; }
  .eco-app-glyph { width: 28px; height: 28px; }
  .eco-app-copy b { font-size: 16px; }
  .eco-avatar { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .eco-app { transition: none; }
  .eco-app:hover, .eco-app:active { transform: none; }
}
