.ach-section {
  padding: 20px 0 8px;
}

.ach-section-header {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.ach-heading-copy { min-width:0; max-width:620px; }
.ach-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--text-3);
  margin-bottom: 14px;
}
.ach-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--fire), transparent);
}
.ach-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}
.ach-title span { color: var(--gold); }
.ach-subtitle {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.8;
  max-width: 520px;
}

.ach-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: none;
}

.ach-card {
  position: relative;
  overflow: hidden;
  background: rgba(8, 8, 14, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: transform 0.25s var(--snap), border-color 0.25s var(--snap), box-shadow 0.25s var(--snap);
  min-height: 148px;
}
.ach-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.38);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.12);
}
.ach-card::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  left: -60%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.08), transparent);
}
.ach-card:hover::after { animation: ach-beam 0.75s var(--snap) both; }
@keyframes ach-beam {
  from { left: -60%; opacity: 0; }
  30% { opacity: 1; }
  to { left: 120%; opacity: 0; }
}

.ach-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 210px;
  grid-template-rows: auto;
  align-items: stretch;
  height: 100%;
}

.ach-rank-col {
  grid-row: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
}
.ach-rank-col::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 3px;
  border-radius: 0 2px 2px 0;
}
.ag .ach-rank-col::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.as .ach-rank-col::before { background: linear-gradient(180deg, #94a3b8, #64748b); }
.ab .ach-rank-col::before { background: linear-gradient(180deg, #b45309, #92400e); }
.au .ach-rank-col::before { background: linear-gradient(180deg, #7c3aed, #6d28d9); }

.ach-rank-num {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
}
.ach-medal {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ach-medal-gold {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.14);
}

.ach-medal-silver {
  color: #cbd5e1;
  border-color: rgba(203, 213, 225, 0.45);
  background: rgba(148, 163, 184, 0.13);
}

.ach-medal-bronze {
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.45);
  background: rgba(180, 83, 9, 0.14);
}

.ach-medal-upcoming {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(124, 58, 237, 0.14);
}

.ach-info {
  padding: 12px 18px 12px 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ach-name {
  font-family: var(--font-display);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-1);
  margin-bottom: 7px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.ach-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ach-pipe { color: var(--text-3); font-size: 0.6rem; }
.ach-date,
.ach-region {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  color: var(--text-2);
}
.ach-pos {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.ach-pos.gold { color: #f59e0b; background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.3); }
.ach-pos.silver { color: #94a3b8; background: rgba(148, 163, 184, 0.13); border-color: rgba(148, 163, 184, 0.3); }
.ach-pos.bronze { color: #d97706; background: rgba(180, 83, 9, 0.15); border-color: rgba(180, 83, 9, 0.3); }
.ach-pos.upcoming { color: #a78bfa; background: rgba(124, 58, 237, 0.14); border-color: rgba(124, 58, 237, 0.3); }

.ach-bar-track {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  width: 100%;
  margin-top: 10px;
  max-width: none;
}
.ach-bar-fill {
  height: 100%;
  width: 100%;
  transform-origin: left;
  animation: ach-bar-in 1.1s var(--snap) both;
}
.ag .ach-bar-fill { background: linear-gradient(90deg, #d97706, #f59e0b, #fcd34d); }
.as .ach-bar-fill { background: linear-gradient(90deg, #475569, #94a3b8); }
.ab .ach-bar-fill { background: linear-gradient(90deg, #78350f, #b45309); }
.au .ach-bar-fill { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
@keyframes ach-bar-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.ach-right {
  grid-column: 3;
  padding: 12px 14px 12px 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.ach-prize-wrap { text-align: right; }
.ach-prize {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  color: var(--flame);
  line-height: 1;
}
.ach-prize-lbl {
  font-family: var(--font-display);
  font-size: 0.38rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.ach-share {
  border: 1px solid rgba(249, 115, 22, 0.24);
  background: rgba(249, 115, 22, 0.07);
  color: var(--text-2);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.ach-share:hover {
  border-color: var(--fire);
  color: var(--flame);
  background: rgba(249, 115, 22, 0.14);
}

.ach-summary {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
}
.ach-summary-stat {
  background: rgba(8, 8, 14, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 10px;
  text-align: center;
}
.ach-summary-stat:last-child { border-right: none; }
.ach-summary-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--flame);
  margin-bottom: 3px;
}
.ach-summary-lbl {
  display: block;
  font-family: var(--font-display);
  font-size: 0.36rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-2);
}

.ach-empty {
  font-size: 0.82rem;
  color: var(--text-3);
  padding: 12px 0 8px;
}

@media (max-width: 1180px) {
  .ach-wall { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .ach-inner {
    grid-template-columns: 58px 1fr;
    grid-template-rows: auto auto;
  }
  .ach-name { font-size: 0.62rem; }
  .ach-right {
    grid-column: 2;
    border-left: none;
    padding: 0 12px 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  .ach-summary { grid-template-columns: 1fr; }
  .ach-summary-stat { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .ach-summary-stat:last-child { border-bottom: none; }
}

html[data-theme="light"] .ach-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(91, 58, 29, 0.12);
  box-shadow: 0 12px 28px rgba(91, 58, 29, 0.08);
}

html[data-theme="light"] .ach-card:hover {
  box-shadow: 0 20px 42px rgba(91, 58, 29, 0.12);
}

html[data-theme="light"] .ach-card::after {
  background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.08), transparent);
}

html[data-theme="light"] .ach-rank-col,
html[data-theme="light"] .ach-right {
  border-color: rgba(91, 58, 29, 0.1);
}

html[data-theme="light"] .ach-rank-num {
  color: rgba(91, 58, 29, 0.18);
}

html[data-theme="light"] .ach-medal {
  border-color: rgba(91, 58, 29, 0.16);
}

html[data-theme="light"] .ach-bar-track {
  background: rgba(91, 58, 29, 0.08);
}

html[data-theme="light"] .ach-share {
  background: rgba(255, 244, 229, 0.9);
  color: var(--text-2);
}

html[data-theme="light"] .ach-summary {
  border-color: rgba(91, 58, 29, 0.1);
}

html[data-theme="light"] .ach-summary-stat {
  background: rgba(255, 252, 246, 0.98);
  border-color: rgba(91, 58, 29, 0.08);
}

/* Readability uplift for micro copy and compact labels */
.ach-label{
  font-size:0.66rem;
  font-weight:600;
  letter-spacing:0.16em;
  color:var(--text-2);
}

.ach-subtitle{
  font-size:0.94rem;
  line-height:1.9;
  color:var(--text-1);
}

.ach-name{
  font-size:0.84rem;
  letter-spacing:0.06em;
}

.ach-date,
.ach-region{
  font-size:0.66rem;
  font-weight:600;
  color:var(--text-1);
}

.ach-loc{
  font-family:var(--font-body);
  font-size:0.74rem;
  font-weight:500;
  color:var(--text-2);
}

.ach-pos{
  font-size:0.62rem;
  font-weight:600;
}

.ach-prize-lbl{
  font-size:0.5rem;
  letter-spacing:0.12em;
  color:var(--text-2);
}

.ach-share{
  font-size:0.62rem;
  font-weight:600;
  letter-spacing:0.06em;
  padding:5px 10px;
  color:var(--text-1);
}

.ach-summary-lbl{
  font-size:0.58rem;
  letter-spacing:0.1em;
  color:var(--text-2);
}

@media (max-width: 767px){
  .ach-label{
    font-size:0.62rem;
    letter-spacing:0.13em;
  }

  .ach-subtitle{
    font-size:0.88rem;
    line-height:1.82;
  }

  .ach-name{
    font-size:0.78rem;
  }

  .ach-date,
  .ach-region,
  .ach-pos{
    font-size:0.62rem;
  }

  .ach-loc{
    font-size:0.7rem;
  }

  .ach-share{
    font-size:0.58rem;
  }

  .ach-summary-lbl{
    font-size:0.54rem;
  }
}


/* Achievement wall layout polish + sample-data tooltip */
.ach-section{
  padding:32px 0 16px;
}

.ach-section-header{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:26px;
}

.ach-heading-copy{
  min-width:0;
  max-width:620px;
}

.ach-title-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.ach-tip{
  position:relative;
  flex-shrink:0;
  margin-top:2px;
  margin-left:auto;
}

.ach-tip summary{
  list-style:none;
}

.ach-tip summary::-webkit-details-marker{
  display:none;
}

.ach-tip-toggle{
  list-style:none;
  width:32px;
  height:32px;
  border-radius:50%;
  border:1px solid rgba(249,115,22,.45);
  background:rgba(11,11,18,.82);
  color:var(--flame);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-family:var(--font-display);
  font-size:.95rem;
  font-weight:900;
  line-height:1;
  transition:all .2s ease;
}

.ach-tip[open] .ach-tip-toggle,
.ach-tip-toggle:hover{
  color:var(--flame);
  border-color:rgba(249,115,22,.55);
  transform:translateY(-1px);
  box-shadow:0 0 0 4px rgba(249,115,22,.08);
}

.ach-tip-panel{
  position:absolute;
  top:42px;
  right:0;
  left:auto;
  z-index:5;
  width:min(320px,80vw);
  padding:12px 14px;
  border-radius:10px;
  background:rgba(8,8,14,.96);
  border:1px solid rgba(255,255,255,.12);
  color:var(--t2);
  font-family:var(--font-body);
  font-size:.74rem;
  line-height:1.75;
  box-shadow:0 18px 34px rgba(0,0,0,.36);
}

@media (max-width: 767px) {
  .ach-section-header {
    flex-direction:column;
    gap:14px;
  }
  .ach-tip{
    margin-left:0;
  }
  .ach-tip-panel { right:0; left:auto; }
}

.ach-wall{
  gap:18px;
}

.ach-card{
  min-height:164px;
  border-radius:16px;
}

.ach-inner{
  grid-template-columns:76px minmax(0, 1.1fr) 220px;
}

.ach-info{
  padding:16px 20px 16px 16px;
  gap:6px;
}

.ach-right{
  padding:16px 16px 16px 14px;
  gap:14px;
}

.ach-subtitle{
  max-width:700px;
  margin-top:4px;
  line-height:1.9;
}

html[data-theme="light"] .ach-tip-toggle{
  background:rgba(255,252,246,.96);
  color:var(--t2);
}

html[data-theme="light"] .ach-tip-panel{
  background:rgba(255,252,246,.98);
  border-color:rgba(91,58,29,.12);
  box-shadow:0 18px 34px rgba(91,58,29,.12);
}

@media (max-width: 860px){
  .ach-section{
    padding:26px 0 12px;
  }

  .ach-inner{
    grid-template-columns:58px 1fr;
  }

  .ach-info{
    padding:14px 16px 10px 14px;
  }

  .ach-right{
    padding:0 14px 14px;
    gap:12px;
  }
}

@media (max-width: 640px){
  .ach-title-row{
    align-items:flex-start;
    gap:10px;
  }

  .ach-tip-panel{
    position:static;
    width:100%;
    margin-top:10px;
  }

  .ach-card{
    min-height:auto;
  }

  .ach-info{
    gap:8px;
  }
}


/* Achievement wall redesign pass */
.ach-section{
  position:relative;
}

.ach-section::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 12% 20%, rgba(249,115,22,.08), transparent 24%),
    radial-gradient(circle at 88% 78%, rgba(217,119,6,.07), transparent 26%);
  opacity:.9;
}

.ach-section .container{
  position:relative;
  z-index:1;
}

.ach-section-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  max-width:none;
  width:100%;
}

.ach-label{
  margin-bottom:0;
}

.ach-title-row{
  align-items:flex-end;
  gap:14px;
  margin-bottom:8px;
}

.ach-title{
  font-size:clamp(1.8rem,3vw,2.5rem);
  line-height:.94;
  margin:0;
}

.ach-tip{
  margin-left:auto;
  margin-top:2px;
}

.ach-tip-toggle{
  min-height:32px;
  width:32px;
  padding:0;
  font-size:.95rem;
  letter-spacing:0;
  text-transform:none;
  border-radius:50%;
  background:rgba(11,11,18,.82);
}

.ach-tip-toggle::after{
  content:'';
}

.ach-tip-panel{
  width:min(360px, calc(100vw - 44px));
  padding:14px 16px;
  border-radius:14px;
  font-size:.88rem;
  line-height:1.72;
  right:0;
  left:auto;
  top:42px;
  box-shadow:0 18px 36px rgba(0,0,0,.42);
}

.ach-subtitle{
  max-width:700px;
  font-size:1rem;
  line-height:1.92;
  color:var(--t2);
}

.ach-wall{
  gap:22px;
}

.ach-card{
  min-height:188px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(14,14,22,.94), rgba(9,9,15,.98));
  box-shadow:0 16px 34px rgba(0,0,0,.22);
}

.ach-card::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(135deg, rgba(255,255,255,.018), transparent 26%, transparent 74%, rgba(249,115,22,.05));
}

.ach-inner{
  grid-template-columns:82px minmax(0,1fr) 190px;
}

.ach-rank-col{
  background:linear-gradient(180deg, rgba(255,255,255,.015), transparent);
}

.ach-rank-num{
  font-size:1.32rem;
}

.ach-info{
  padding:18px 22px 18px 18px;
  justify-content:flex-start;
  gap:10px;
}

.ach-name{
  font-size:.92rem;
  line-height:1.28;
  max-width:18ch;
}

.ach-meta{
  gap:10px;
  row-gap:8px;
  margin-bottom:2px;
}

.ach-pipe{
  opacity:.55;
}

.ach-loc{
  color:var(--t1);
}

.ach-bar-track{
  margin-top:12px;
  height:4px;
  border-radius:999px;
}

.ach-right{
  padding:18px 18px 18px 12px;
  gap:16px;
  justify-content:space-between;
}

.ach-prize-wrap{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

.ach-prize{
  font-size:1.12rem;
}

.ach-share,
.ach-upcoming-badge{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  border-radius:999px;
  font-size:.62rem;
  letter-spacing:.08em;
}

.ach-summary{
  margin-top:22px;
  border-radius:16px;
}

.ach-summary-stat{
  padding:16px 12px;
}

.ach-summary-val{
  font-size:1.1rem;
  margin-bottom:6px;
}

html[data-theme="light"] .ach-card{
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,250,244,.98));
  box-shadow:0 18px 34px rgba(91,58,29,.1);
}

html[data-theme="light"] .ach-card::before{
  background:linear-gradient(135deg, rgba(91,58,29,.03), transparent 28%, transparent 72%, rgba(217,119,6,.06));
}

html[data-theme="light"] .ach-subtitle{
  color:var(--t2);
}

@media (max-width: 980px){
  .ach-inner{
    grid-template-columns:72px minmax(0,1fr) 170px;
  }

  .ach-name{
    max-width:none;
  }
}

@media (max-width: 860px){
  .ach-card{
    min-height:auto;
  }

  .ach-inner{
    grid-template-columns:64px 1fr;
    grid-template-rows:auto auto;
  }

  .ach-rank-col{
    padding-top:18px;
    justify-content:flex-start;
  }

  .ach-info{
    padding:18px 18px 12px 16px;
  }

  .ach-right{
    grid-column:2;
    padding:0 18px 18px 16px;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
  }

  .ach-prize-wrap{
    align-items:flex-start;
    text-align:left;
  }
}

@media (max-width: 640px){
  .ach-title{
    font-size:clamp(1.56rem, 9vw, 2rem);
  }

  .ach-tip-toggle{
    min-height:28px;
    padding:0 10px;
    font-size:.58rem;
  }

  .ach-subtitle{
    font-size:.92rem;
    line-height:1.82;
  }

  .ach-info{
    gap:8px;
  }

  .ach-name{
    font-size:.84rem;
  }

  .ach-meta{
    gap:8px;
  }

  .ach-date,
  .ach-region,
  .ach-pos,
  .ach-loc{
    font-size:.68rem;
  }

  .ach-right{
    gap:10px;
  }

  .ach-share,
  .ach-upcoming-badge{
    min-height:32px;
    font-size:.58rem;
  }
}


/* Minimal tooltip trigger */
.ach-tip-toggle{
  width:28px;
  min-width:28px;
  padding:0;
  text-indent:0;
}

.ach-tip-toggle::after{
  content:'';
}
