/* EfesCraft brand theme
   Forest greens preserve the existing Minecraft world; ember, gold and
   obsidian are sampled visually from the EfesCraft logo. */

:root {
  --ink: #fff4df;
  --muted: #aaa7a2;
  --panel: rgba(24, 23, 23, .95);
  --panel-2: rgba(33, 31, 31, .96);
  --line: rgba(255, 174, 74, .22);
  --lime: #78b94b;
  --lime-bright: #a9dc69;
  --green: #385c2f;
  --dirt: #684632;
  --danger: #ff4a24;
  --ember: #ff6a17;
  --ember-bright: #ff8a26;
  --gold: #ffc15a;
  --magma: #e93212;
  --obsidian: #121115;
  --stone: #343137;
  --stone-light: #5a555c;
  --pixel-shadow: #09090a;
}

body {
  color: var(--ink);
  background: var(--obsidian);
  background-image:
    linear-gradient(rgba(255, 111, 24, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 111, 24, .025) 1px, transparent 1px);
  background-size: 16px 16px;
}

body::before {
  content: '';
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 4%, rgba(255, 112, 25, .08), transparent 36%);
}

::selection {
  color: #1b1008;
  background: var(--gold);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.world-bg {
  background:
    linear-gradient(rgba(7, 11, 8, .35), rgba(9, 10, 9, .93)),
    linear-gradient(180deg, #273f35 0%, #203128 42%, #17191a 73%, #111013 100%);
}

.world-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .26;
  background:
    linear-gradient(90deg, transparent 0 76%, rgba(255, 126, 30, .22) 76% 78%, transparent 78%) 0 0 / 128px 96px,
    linear-gradient(transparent 0 66%, rgba(80, 121, 56, .22) 66% 69%, transparent 69%) 0 0 / 96px 80px;
}

.world-bg::after {
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 16px 16px;
}

.sun {
  width: 88px;
  height: 88px;
  background: var(--gold);
  border: 8px solid #ff8a20;
  box-shadow:
    0 0 0 8px rgba(255, 89, 14, .18),
    0 0 72px rgba(255, 96, 17, .34);
  opacity: .78;
}

.cloud {
  background: rgba(232, 226, 213, .12);
  box-shadow: 40px -22px 0 rgba(232, 226, 213, .12), 90px 0 0 rgba(232, 226, 213, .12);
}

.mountain {
  background: #232326;
  filter: drop-shadow(10px 0 0 rgba(71, 66, 73, .34));
}

.mountain-one { opacity: .82; }
.mountain-two { opacity: .58; }

.ground {
  height: 192px;
  opacity: .9;
  border-top: 8px solid #527f39;
  background:
    linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.025) 31px 32px) 0 0 / 32px 32px,
    linear-gradient(transparent 0 31px, rgba(0,0,0,.14) 31px 32px) 0 0 / 32px 32px,
    linear-gradient(#35542e 0 11px, #4e6533 11px 18px, #573b2b 18px 100%);
}

.site-header {
  position: relative;
  height: var(--brand-header-height);
  border-bottom: 4px solid #2c292d;
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: min(260px, 42vw);
  height: 4px;
  background: linear-gradient(90deg, var(--magma), var(--ember), var(--gold));
  box-shadow: 0 0 20px rgba(255, 91, 13, .22);
}

.brand-logo {
  height: var(--brand-logo-height);
  filter:
    drop-shadow(0 8px 0 rgba(0, 0, 0, .34))
    drop-shadow(0 0 16px rgba(255, 88, 12, .1));
}

.header-status {
  color: #c2bcb4;
  padding: 9px 11px;
  background: rgba(18, 19, 18, .78);
  border: 1px solid #454045;
  box-shadow: 3px 3px 0 var(--pixel-shadow);
}

.header-status span {
  background: var(--lime-bright);
  box-shadow: 0 0 13px rgba(169, 220, 105, .68);
}

.hero {
  position: relative;
  padding-top: 82px;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 34px 10% 8px;
  background: radial-gradient(circle, rgba(255, 101, 17, .09), transparent 63%);
  filter: blur(2px);
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  text-shadow: 2px 2px 0 rgba(84, 30, 5, .72);
}

.eyebrow span,
.cube-icon {
  color: var(--ember-bright);
}

.hero h1 {
  color: #fff6e7;
  text-shadow:
    0 5px 0 #423b3d,
    0 9px 0 #171518,
    0 15px 28px rgba(0,0,0,.38);
}

.hero h1 em {
  color: var(--ember-bright);
  background: linear-gradient(180deg, var(--gold) 5%, var(--ember-bright) 47%, var(--magma) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 #70200a);
}

.hero > p {
  color: #c7c0b7;
}

.search-shell {
  padding: 12px;
  background: #171619;
  border: 2px solid #4d484e;
  box-shadow:
    6px 6px 0 #09090a,
    inset 0 0 0 2px #282529,
    0 24px 68px rgba(0,0,0,.34);
}

.search-shell::before {
  content: '';
  display: block;
  height: 3px;
  margin: -12px -12px 9px;
  background: linear-gradient(90deg, var(--magma), var(--ember), var(--gold), var(--lime));
}

.search-row {
  background: #201e21;
  border: 2px solid #4e494f;
  box-shadow: inset 3px 3px 0 #121113, inset -2px -2px 0 #302d31;
}

.search-row:focus-within {
  border-color: var(--ember-bright);
  box-shadow:
    inset 3px 3px 0 #121113,
    inset -2px -2px 0 #302d31,
    0 0 0 2px rgba(255, 106, 23, .18),
    0 0 24px rgba(255, 92, 15, .12);
}

.command-mark,
.text-button {
  color: var(--ember-bright);
}

.search-row input {
  color: #fff8eb;
}

.search-row input::placeholder {
  color: #777177;
}

.search-row button,
.secondary-button {
  color: #2a1206;
  background: linear-gradient(180deg, var(--gold), var(--ember-bright) 48%, var(--ember));
  border: 2px solid #ffb44e;
  box-shadow:
    inset -4px -4px 0 rgba(130, 39, 5, .45),
    inset 3px 3px 0 rgba(255, 240, 179, .52),
    4px 4px 0 #0b0909;
  text-shadow: 1px 1px 0 rgba(255, 213, 128, .45);
}

.search-row button:hover,
.secondary-button:hover {
  color: #1e0e05;
  background: linear-gradient(180deg, #ffd779, #ff9b30 52%, #ff761d);
  transform: translate(-1px, -1px);
  box-shadow:
    inset -4px -4px 0 rgba(130, 39, 5, .42),
    inset 3px 3px 0 rgba(255, 245, 195, .6),
    6px 6px 0 #0b0909;
}

.search-row button:active,
.secondary-button:active {
  transform: translate(3px, 3px);
  box-shadow: inset 3px 3px 0 rgba(116, 32, 5, .46);
}

.text-button:hover,
.uuid-button:hover {
  color: var(--gold);
}

.search-footer { color: #928c89; }

.recent-searches button {
  color: #c7bfb7;
  background: #1d1b1e;
  border-color: #4d474c;
  box-shadow: 2px 2px 0 #0a090a;
}

.recent-searches button:hover {
  color: var(--gold);
  border-color: var(--ember);
}

.welcome-state,
.error-state,
.card,
.profile-banner {
  border: 2px solid #49444a;
  box-shadow:
    5px 5px 0 rgba(7, 7, 8, .88),
    inset 0 0 0 1px rgba(255, 190, 104, .04),
    0 22px 60px rgba(0,0,0,.22);
}

.welcome-state,
.error-state,
.card {
  background:
    linear-gradient(rgba(255,255,255,.018), rgba(255,255,255,0)),
    var(--panel);
}

.welcome-state {
  position: relative;
  overflow: hidden;
}

.welcome-state::after {
  content: '';
  position: absolute;
  right: -26px;
  bottom: -28px;
  width: 126px;
  height: 90px;
  opacity: .16;
  background:
    linear-gradient(90deg, transparent 0 31px, var(--ember) 31px 63px, transparent 63px),
    linear-gradient(transparent 0 31px, var(--stone-light) 31px 63px, transparent 63px);
  background-size: 64px 64px;
  transform: rotate(-8deg);
}

.welcome-state h2,
.error-state h2 {
  color: #fff0da;
}

.welcome-state p,
.error-state p {
  color: #aaa49f;
}

.floating-head {
  background: radial-gradient(circle, rgba(255, 111, 26, .18), rgba(91, 139, 61, .08) 44%, transparent 70%);
}

.floating-head img {
  filter:
    drop-shadow(12px 14px 0 rgba(0,0,0,.36))
    drop-shadow(0 0 18px rgba(255, 113, 24, .13));
}

.error-icon {
  color: #fff0d4;
  background: linear-gradient(180deg, #ff6839, var(--magma));
  border: 2px solid #ff9e52;
  box-shadow: inset -7px -7px 0 rgba(88, 13, 4, .34), 5px 5px 0 #09090a;
}

.profile-banner {
  background: linear-gradient(90deg, rgba(44, 39, 40, .98), rgba(22, 22, 23, .98));
  border-bottom: 4px solid var(--ember);
}

.avatar-frame {
  background: #111012;
  border: 2px solid #665f65;
  box-shadow: 4px 4px 0 #0a090a;
}

.online-dot { border-color: #252226; }

.verified-line { color: #aaa39d; }

.verified-line span,
.history-card .active-tag {
  color: #17200f;
  background: var(--lime-bright);
}

.player-identity h2,
.card-heading h3,
.history-heading h4,
.head-command-panel h4 {
  color: #fff0d9;
}

.uuid-button { color: #938d89; }

.icon-button {
  color: var(--gold);
  background: #29262a;
  border: 2px solid #5a5359;
  box-shadow: 3px 3px 0 #0a090a;
}

.icon-button:hover {
  color: #211006;
  background: var(--ember-bright);
  border-color: var(--gold);
}

.card-heading {
  border-bottom-color: #3f3b3f;
  background: linear-gradient(180deg, rgba(65, 60, 65, .16), transparent);
}

.model-badge,
.history-count {
  color: var(--gold);
  background: #29262a;
  border: 1px solid #5c5459;
  box-shadow: 2px 2px 0 #0a090a;
}

.character-stage {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 110, 21, .14), transparent 38%),
    linear-gradient(180deg, rgba(68, 94, 56, .16), rgba(14, 13, 15, .08)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,.035) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.035) 31px 32px);
}

.stage-glow {
  background: radial-gradient(ellipse, rgba(255, 108, 20, .2), rgba(113, 169, 75, .08) 45%, transparent 70%);
}

.drag-hint { color: #8a8380; }

.pose-controls {
  border-top-color: #403b40;
  background: #403b40;
}

.pose-button {
  color: #8d8784;
  background: #1d1b1e;
}

.pose-button:hover,
.pose-button.active {
  color: var(--gold);
  background: #30282a;
  box-shadow: inset 0 -3px 0 var(--ember);
}

.data-list > div,
.capes-heading,
.cosmetic-history,
.technical-content > div {
  border-color: rgba(255, 177, 83, .1);
}

.data-list dt,
.technical-content span,
.asset-copy span {
  color: #8e8884;
}

.data-list dd { color: #eee4d8; }

.data-list code,
.technical-content code { color: #b9b1aa; }

.copy-mini,
.download-button,
.head-command-panel button {
  color: var(--gold);
  background: #29262a;
  border-color: #5c5358;
  box-shadow: 2px 2px 0 #0a090a;
}

.copy-mini:hover,
.download-button:hover,
.head-command-panel button:hover {
  color: #211006;
  background: var(--ember-bright);
  border-color: var(--gold);
}

.asset-tile,
.history-card,
.history-message,
.archive-history-card,
.crafty-history-item,
.verified-history-item,
.namemc-live-skin {
  background: #1b191c;
  border-color: #474146;
  box-shadow: inset 0 0 0 1px rgba(255, 179, 77, .025), 3px 3px 0 rgba(8, 8, 9, .72);
}

.asset-card-title,
.history-card strong { color: #eee3d4; }

.history-card.active {
  border-color: var(--lime);
  box-shadow: inset 0 -3px 0 var(--lime), 3px 3px 0 rgba(8, 8, 9, .72);
}

.history-card img,
.history-placeholder,
.render-box {
  background:
    radial-gradient(circle, rgba(255, 106, 19, .1), transparent 56%),
    #141316;
}

.history-placeholder { color: var(--ember-bright); }

.render-box {
  border: 1px solid #474146;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
}

.render-gallery figcaption { color: #9a938e; }

.head-command-panel {
  background: #19171a;
  border: 2px solid #474146;
  box-shadow: 4px 4px 0 #0a090a;
}

.head-command-panel code {
  color: #d4c8bb;
  background: #0f0e10;
  border-color: #3e393e;
}

.technical-content a { color: var(--gold); }

.archive-history-card:hover,
.crafty-history-item:hover,
.verified-history-item:hover {
  border-color: var(--ember-bright);
  box-shadow: inset 0 0 0 1px rgba(255, 174, 75, .2), 4px 4px 0 rgba(8, 8, 9, .8);
}

.archive-source-note,
.archive-state,
.crafty-message,
.history-message,
.history-disclaimer {
  color: #938c87;
}

.locator-pixel,
.locator-swatch {
  border-color: var(--gold);
  box-shadow: 2px 2px 0 #0a090a;
}

.toast {
  color: #251106;
  background: var(--gold);
  border: 2px solid #ffdd8c;
  box-shadow: inset -4px -4px 0 #d56312, 5px 5px 0 #09090a;
}

@media (max-width: 620px) {
  .sun {
    width: 64px;
    height: 64px;
    right: -8px;
    top: 112px;
    border-width: 6px;
    opacity: .42;
  }

  .site-header {
    height: var(--brand-header-height);
  }

  .brand-logo {
    height: var(--brand-logo-height);
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    text-shadow: 0 4px 0 #423b3d, 0 7px 0 #171518;
  }

  .search-shell {
    padding: 8px;
    box-shadow: 4px 4px 0 #09090a, inset 0 0 0 1px #282529;
  }

  .search-shell::before {
    margin: -8px -8px 7px;
  }

  .search-row button {
    box-shadow: inset -3px -3px 0 rgba(130, 39, 5, .45), inset 2px 2px 0 rgba(255, 240, 179, .52);
  }

  .welcome-state,
  .error-state,
  .card,
  .profile-banner {
    box-shadow: 3px 3px 0 rgba(7, 7, 8, .88), inset 0 0 0 1px rgba(255, 190, 104, .04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-head,
  .profile-result {
    animation: none !important;
  }
}
