/* ABOUT – menu tạm dừng kiểu JRPG. FILE SINH TỰ ĐỘNG từ about.src.css. U(n) = n px thiết kế (khung 1600x900) × --u.
   Sinh css/about.css bằng: python3 tools/about_css.py  (đừng sửa about.css trực tiếp) */

.about { position: fixed; inset: 0; z-index: 58; font-family: var(--pixel); color: var(--ink); --u: 1;
  display: grid; place-items: center; -webkit-font-smoothing: none; }
.about[hidden] { display: none; }
.about__dim { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(42, 26, 16, .05), rgba(26, 14, 6, .45));
  opacity: 0; transition: opacity .45s steps(6); }
.about.on .about__dim { opacity: 1; }

/* trang chủ phía sau: zoom vào giấy khen rồi mờ đi */
.viewport { transition: transform .75s cubic-bezier(.6, 0, .25, 1), filter .75s steps(8); transform-origin: var(--zx, 50%) var(--zy, 50%); }
body.about-zoom .viewport { transform: scale(1.35); filter: blur(2px) brightness(.82); }
body.about-open .hint { opacity: 0; }

.about__frame { position: relative; width: calc(1500px * var(--u)); height: calc(830px * var(--u)); display: grid; grid-template-columns: calc(300px * var(--u)) 1fr; gap: calc(22px * var(--u));
  transform-origin: var(--fx, 50%) var(--fy, 50%); transform: scale(.1); opacity: 0; }
.about.unfold .about__frame { transform: none; opacity: 1; transition: transform .55s steps(9), opacity .2s steps(2); }
.about.fold .about__frame { transform: scale(.1); opacity: 0; transition: transform .4s steps(6), opacity .35s steps(3) .05s; }
.about.thud .about__frame { animation: abShake .35s steps(5); }
@keyframes abShake { 20% { translate: calc(-6px * var(--u)) calc(4px * var(--u)); } 40% { translate: calc(5px * var(--u)) calc(-3px * var(--u)); } 60% { translate: calc(-3px * var(--u)) calc(2px * var(--u)); } 80% { translate: calc(2px * var(--u)) 0; } }

/* ---------- Cột lệnh ---------- */
.about__cmds { position: relative; border-style: solid; border-width: calc(66px * var(--u)) calc(20px * var(--u)) calc(74px * var(--u));
  border-image: url(../assets/about/frame_cmd.png?v=1) 90 28 100 28 fill / calc(66px * var(--u)) calc(20px * var(--u)) calc(74px * var(--u)) stretch;
  filter: drop-shadow(calc(8px * var(--u)) calc(8px * var(--u)) 0 rgba(0, 0, 0, .35)); padding: calc(10px * var(--u)) calc(8px * var(--u)); display: flex; flex-direction: column; gap: calc(12px * var(--u)); }
.about__cmd { position: relative; display: block; width: 100%; text-align: left; padding: calc(8px * var(--u)) calc(12px * var(--u)) calc(8px * var(--u)) calc(44px * var(--u));
  font: inherit; font-size: calc(22px * var(--u)); font-weight: 700; letter-spacing: calc(1px * var(--u)); color: #f6efe2; background: none;
  border: calc(7px * var(--u)) solid transparent; cursor: pointer; text-shadow: calc(2px * var(--u)) calc(2px * var(--u)) 0 #1a0f08; }
.about__cmd:hover { color: #ffd23f; }
.about__cmd.sel { color: #ffd23f; border-image: url(../assets/about/deco_bar.png?v=1) 34 fill / calc(15px * var(--u)) stretch; }
.about__cmd.sel::before { content: ""; position: absolute; left: calc(8px * var(--u)); top: 50%; width: calc(20px * var(--u)); height: calc(24px * var(--u)); transform: translateY(-50%);
  background: url(../assets/about/deco_cursor.png?v=1) center / contain no-repeat; animation: abBlink 1s steps(1) infinite; }
.about__cmd.seen::after { content: ""; position: absolute; right: calc(12px * var(--u)); top: 50%; width: calc(7px * var(--u)); height: calc(7px * var(--u)); margin-top: calc(-3px * var(--u)); background: #d9a45a; opacity: .5; }
.about__cmd.sel.seen::after { display: none; }
@keyframes abBlink { 50% { opacity: 0; } }
.about__cmds.dim .about__cmd.sel { filter: saturate(.55) brightness(.85); color: #f6d9a0; }
.about__cmds.dim .about__cmd.sel::before { animation: none; opacity: .5; }

/* ---------- Tờ giấy ---------- */
.about__paper { position: relative; border-style: solid; border-width: calc(48px * var(--u));
  border-image: url(../assets/about/frame_paper.png?v=1) 64 fill / calc(48px * var(--u)) stretch;
  filter: drop-shadow(calc(8px * var(--u)) calc(8px * var(--u)) 0 rgba(0, 0, 0, .35)); padding: calc(0px * var(--u)) calc(10px * var(--u)) calc(20px * var(--u)); display: flex; flex-direction: column; min-width: 0; }
.about__seal { position: absolute; right: calc(-70px * var(--u)); bottom: calc(-78px * var(--u)); width: calc(150px * var(--u)); height: calc(150px * var(--u)); z-index: 3; pointer-events: none; image-rendering: auto;
  opacity: 0; transform: scale(3) rotate(-18deg); }
.about.sealed .about__seal { opacity: 1; transform: rotate(-8deg); transition: transform .22s steps(4), opacity .1s steps(1); }
.about__close { position: absolute; right: calc(-18px * var(--u)); top: calc(-18px * var(--u)); z-index: 4; width: calc(48px * var(--u)); height: calc(48px * var(--u)); font: inherit; font-size: calc(22px * var(--u)); font-weight: 700;
  color: #2a1a10; background: #ffd23f; border: calc(4px * var(--u)) solid #2a1a10; border-radius: calc(8px * var(--u)); cursor: pointer; box-shadow: calc(3px * var(--u)) calc(3px * var(--u)) 0 rgba(0, 0, 0, .35); }
.about__close:hover { background: #f26a2e; color: #fff6e6; }
.about__hint { position: absolute; left: 0; right: 0; bottom: calc(-22px * var(--u)); text-align: center; font-size: calc(15px * var(--u)); letter-spacing: calc(2px * var(--u)); opacity: .65; }

.about__title { display: flex; align-items: center; justify-content: center; gap: calc(16px * var(--u)); font-size: calc(40px * var(--u)); letter-spacing: calc(3px * var(--u)); line-height: 1; margin-bottom: calc(18px * var(--u)); }
.about__title::before, .about__title::after { content: ""; width: calc(46px * var(--u)); height: calc(30px * var(--u)); background: url(../assets/about/deco_laurel_l.png?v=1) center / contain no-repeat; }
.about__title::after { background-image: url(../assets/about/deco_laurel_r.png?v=1); }
.about__sub { align-self: center; margin: calc(-6px * var(--u)) 0 calc(16px * var(--u)); padding: calc(5px * var(--u)) calc(18px * var(--u)); font-size: calc(16px * var(--u)); letter-spacing: calc(2px * var(--u)); font-weight: 700;
  background: #f2dfb8; border: calc(3px * var(--u)) solid #b88a3a; border-radius: calc(6px * var(--u)); }

.about__page { flex: 1; display: flex; flex-direction: column; min-height: 0; animation: abPage .3s steps(4); }
@keyframes abPage { from { opacity: 0; transform: translateX(calc(24px * var(--u))); } }

.ic { display: inline-block; width: calc(48px * var(--u)); height: calc(48px * var(--u)); flex: none; background: url(../assets/about/icons.png?v=1) 0 0 / calc(3200% ) 100% no-repeat;
  background-position-x: calc(var(--i) * 100% / 31); }
.bd { display: block; background: url(../assets/about/badges.png?v=1) 0 0 / 1200% 100% no-repeat; background-position-x: calc(var(--i) * 100% / 11); }

/* khung mô tả kiểu hộp thoại RPG */
.about__desc { margin-top: auto; display: flex; align-items: center; gap: calc(18px * var(--u)); min-height: calc(80px * var(--u)); padding: calc(4px * var(--u)) calc(12px * var(--u));
  border-style: solid; border-width: calc(12px * var(--u)); border-image: url(../assets/about/deco_dialog.png?v=1) 26 fill / calc(12px * var(--u)) stretch; font-size: calc(20px * var(--u)); line-height: 1.3; }
.about__desc .ic { width: calc(52px * var(--u)); height: calc(52px * var(--u)); }
.about__desc b { color: #b8461a; letter-spacing: calc(1px * var(--u)); }
.about__desc small { display: block; font-size: calc(16px * var(--u)); opacity: .7; margin-top: calc(2px * var(--u)); }

/* ---------- STATUS ---------- */
.st { display: grid; grid-template-columns: calc(300px * var(--u)) 1fr calc(380px * var(--u)); gap: calc(22px * var(--u)) calc(30px * var(--u)); align-items: start; }
.st__face { position: relative; width: calc(300px * var(--u)); height: calc(300px * var(--u)); border: calc(5px * var(--u)) solid #2a1a10; border-radius: calc(8px * var(--u)); overflow: hidden;
  box-shadow: inset 0 0 0 calc(3px * var(--u)) #ffd23f, calc(5px * var(--u)) calc(5px * var(--u)) 0 rgba(42, 26, 16, .3); background: #e9dcc4; }
.st__face img { width: 100%; height: 100%; display: block; }
.st__who h3 { font-size: calc(58px * var(--u)); letter-spacing: calc(4px * var(--u)); line-height: 1; }
.st__lv { display: inline-flex; align-items: center; gap: calc(10px * var(--u)); margin: calc(8px * var(--u)) 0 calc(14px * var(--u)); padding: calc(4px * var(--u)) calc(14px * var(--u)); font-size: calc(24px * var(--u)); font-weight: 700;
  background: #ffd23f; border: calc(3px * var(--u)) solid #2a1a10; border-radius: calc(6px * var(--u)); }
.st__lv small { font-size: calc(13px * var(--u)); opacity: .7; letter-spacing: calc(1px * var(--u)); }
.st__rows { list-style: none; display: grid; gap: calc(11px * var(--u)); font-size: calc(20px * var(--u)); }
.st__rows li { display: flex; gap: calc(10px * var(--u)); align-items: baseline; }
.st__rows span { min-width: calc(112px * var(--u)); font-weight: 700; color: #b8461a; letter-spacing: calc(1px * var(--u)); font-size: calc(18px * var(--u)); }
.st__open { display: inline-flex; align-items: center; gap: calc(10px * var(--u)); margin-top: calc(14px * var(--u)); padding: calc(6px * var(--u)) calc(14px * var(--u)); font-size: calc(17px * var(--u)); font-weight: 700; letter-spacing: calc(1px * var(--u));
  background: #e3f4d8; border: calc(3px * var(--u)) solid #3e7a2a; border-radius: calc(6px * var(--u)); color: #2c5a1c; }
.st__open i { width: calc(12px * var(--u)); height: calc(12px * var(--u)); background: #3fbf3f; box-shadow: 0 0 0 calc(2px * var(--u)) #2c5a1c; animation: abBlink 1.1s steps(1) infinite; }
.st__bars { display: grid; gap: calc(10px * var(--u)); margin-top: calc(18px * var(--u)); grid-column: 1 / 3; }
.st__bar { display: grid; grid-template-columns: calc(56px * var(--u)) 1fr calc(120px * var(--u)); align-items: center; gap: calc(10px * var(--u)); font-size: calc(22px * var(--u)); font-weight: 700; }
.st__bar b { position: relative; height: calc(26px * var(--u)); background: #e9dcc4; border: calc(3px * var(--u)) solid #2a1a10; border-radius: calc(4px * var(--u)); overflow: hidden; }
.st__bar i { position: absolute; inset: 0; right: auto; width: 0; transition: width 1s steps(12) .2s; }
.st__bar--hp i { background: repeating-linear-gradient(90deg, #e2452b 0 calc(12px * var(--u)), #b8301c calc(12px * var(--u)) calc(14px * var(--u))); }
.st__bar--mp i { background: repeating-linear-gradient(90deg, #3f7fd9 0 calc(12px * var(--u)), #2a5aa8 calc(12px * var(--u)) calc(14px * var(--u))); }
.about.play .st__bar i { width: var(--v); }
.st__bar em { font-style: normal; font-size: calc(16px * var(--u)); text-align: right; }
.st__attrs { list-style: none; display: grid; gap: calc(11px * var(--u)); grid-row: 1 / 3; grid-column: 3; }
.st__attrs li { display: grid; grid-template-columns: calc(44px * var(--u)) 1fr auto; align-items: center; gap: calc(10px * var(--u)); padding: calc(1px * var(--u)) calc(6px * var(--u)); font-size: calc(18px * var(--u)); font-weight: 700; letter-spacing: calc(1px * var(--u));
  border-style: solid; border-width: calc(9px * var(--u)); border-image: url(../assets/about/deco_card.png?v=1) 22 fill / calc(9px * var(--u)) stretch; background: none; opacity: 0; transform: translateX(calc(16px * var(--u))); }
.about.play .st__attrs li { opacity: 1; transform: none; transition: opacity .2s steps(2), transform .25s steps(3); transition-delay: calc(var(--k) * 80ms + .2s); }
.st__attrs .ic { width: calc(36px * var(--u)); height: calc(36px * var(--u)); }
.st__attrs em { font-style: normal; font-size: calc(15px * var(--u)); padding: calc(3px * var(--u)) calc(8px * var(--u)); border: calc(2px * var(--u)) solid #2a1a10; border-radius: calc(4px * var(--u)); }
.k-exp { background: #f26a2e; color: #fff6e6; } .k-prac { background: #ffd23f; } .k-expl { background: #8b7bd8; color: #fff; } .k-up { background: #6fa8dc; color: #10233a; }
.st__bio { margin-top: auto; }
.st__bio p { font-size: calc(23px * var(--u)); min-height: 1.3em; }
.st__bio .ic { align-self: flex-start; }

/* ---------- SKILLS ---------- */
.sk { position: relative; flex: 1; display: grid; grid-template-columns: 1fr calc(190px * var(--u)) 1fr; grid-template-rows: auto auto auto; gap: calc(30px * var(--u)) calc(20px * var(--u)); align-items: center; align-content: center; padding-top: calc(10px * var(--u)); }
.sk__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.sk__lines path { fill: none; stroke: #b8461a; stroke-width: calc(4 * var(--u)); stroke-dasharray: calc(10 * var(--u)) calc(6 * var(--u)); }
.sk__core { grid-column: 2; grid-row: 2; justify-self: center; position: relative; z-index: 1; width: calc(160px * var(--u)); height: calc(160px * var(--u)); border-radius: 50%; overflow: hidden;
  border: calc(6px * var(--u)) solid #2a1a10; box-shadow: 0 0 0 calc(5px * var(--u)) #ffd23f, 0 0 calc(30px * var(--u)) calc(8px * var(--u)) rgba(255, 210, 63, .55); }
.sk__core img { width: 100%; height: 100%; display: block; }
.sk__core b { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: calc(18px * var(--u)); padding: calc(3px * var(--u)) 0 calc(6px * var(--u)); background: rgba(42, 26, 16, .85); color: #ffd23f; letter-spacing: calc(2px * var(--u)); }
.sk__br { position: relative; z-index: 1; padding: calc(4px * var(--u)) calc(8px * var(--u)) calc(4px * var(--u)); border-style: solid; border-width: calc(9px * var(--u)); border-image: url(../assets/about/deco_card.png?v=1) 22 fill / calc(9px * var(--u)) stretch; background: none; }
.sk__br h4 { display: flex; align-items: center; gap: calc(8px * var(--u)); justify-content: center; margin: calc(-28px * var(--u)) auto calc(8px * var(--u)); width: fit-content; padding: calc(3px * var(--u)) calc(14px * var(--u));
  font-size: calc(19px * var(--u)); letter-spacing: calc(2px * var(--u)); background: #f2dfb8; border: calc(3px * var(--u)) solid #2a1a10; border-radius: calc(6px * var(--u)); }
.sk__br h4 .ic { width: calc(28px * var(--u)); height: calc(28px * var(--u)); }
.sk__nodes { display: flex; gap: calc(6px * var(--u)); justify-content: center; }
.sk__n { width: calc(80px * var(--u)); display: flex; flex-direction: column; align-items: center; gap: calc(4px * var(--u)); padding: calc(6px * var(--u)) calc(2px * var(--u)); font: inherit; font-size: calc(13px * var(--u)); font-weight: 700; line-height: 1.1;
  color: #2a1a10; background: none; border: calc(3px * var(--u)) solid transparent; border-radius: calc(8px * var(--u)); cursor: pointer; }
.sk__n .ic { width: calc(46px * var(--u)); height: calc(46px * var(--u)); padding: calc(4px * var(--u)); box-sizing: content-box; background-color: #ffe7a8; border: calc(3px * var(--u)) solid #b8461a; border-radius: calc(8px * var(--u));
  box-shadow: 0 0 calc(10px * var(--u)) calc(2px * var(--u)) rgba(255, 190, 40, .6); background-origin: content-box; background-clip: content-box; }
.sk__n.l .ic { background-color: #efe6d6; border: calc(3px * var(--u)) dashed #a8957a; box-shadow: none; filter: grayscale(.85) opacity(.55); }
.sk__n.l { color: rgba(42, 26, 16, .55); }
.sk__n:hover, .sk__n.sel { border-color: #f26a2e; background: #fff1d6; }
.sk__n.sel .ic { animation: abPulse 1s steps(2) infinite; }
@keyframes abPulse { 50% { transform: translateY(calc(-3px * var(--u))); } }
.sk__br--backend { grid-column: 1; grid-row: 1; } .sk__br--frontend { grid-column: 3; grid-row: 1; }
.sk__br--cloud { grid-column: 1; grid-row: 2; } .sk__br--web3 { grid-column: 3; grid-row: 2; }
.sk__br--ai { grid-column: 1 / 4; grid-row: 3; justify-self: center; min-width: calc(560px * var(--u)); }
.sk__legend { position: absolute; left: 0; bottom: 0; display: grid; gap: calc(4px * var(--u)); font-size: calc(13px * var(--u)); font-weight: 700; }
.sk__legend span { display: flex; align-items: center; gap: calc(8px * var(--u)); }
.sk__legend i { width: calc(18px * var(--u)); height: calc(18px * var(--u)); background: #ffe7a8; border: calc(3px * var(--u)) solid #b8461a; }
.sk__legend span + span i { background: #efe6d6; border: calc(3px * var(--u)) dashed #a8957a; }
.about__page--skills .about__desc { margin-top: calc(16px * var(--u)); }

/* ---------- INVENTORY ---------- */
.inv { display: grid; grid-template-columns: repeat(6, calc(112px * var(--u))); justify-content: center; gap: calc(16px * var(--u)) calc(18px * var(--u)); margin: calc(4px * var(--u)) 0 0; }
.inv__s { position: relative; aspect-ratio: 1; display: grid; place-items: center; font: inherit; cursor: pointer; background: none;
  border-style: solid; border-width: calc(10px * var(--u)); border-image: url(../assets/about/deco_slot.png?v=1) 30 fill / calc(10px * var(--u)) stretch; }
.inv__s .ic { width: 78%; height: 78%; }
.inv__s:hover, .inv__s.sel { filter: drop-shadow(0 0 calc(2px * var(--u)) #f26a2e) drop-shadow(0 0 calc(2px * var(--u)) #f26a2e) drop-shadow(0 0 calc(3px * var(--u)) #ffd23f); }
.inv__s.sel .ic { animation: abPulse 1s steps(2) infinite; }
.inv__s em { position: absolute; left: 50%; bottom: calc(-20px * var(--u)); transform: translateX(-50%); font-style: normal; font-size: calc(12px * var(--u)); font-weight: 700; letter-spacing: calc(1px * var(--u));
  padding: calc(1px * var(--u)) calc(6px * var(--u)); background: #f26a2e; color: #fff6e6; border: calc(2px * var(--u)) solid #2a1a10; border-radius: calc(4px * var(--u)); }
.about__page--inventory .about__desc { margin-top: calc(18px * var(--u)); }

/* ---------- QUEST LOG ---------- */
.qs { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: calc(18px * var(--u)); min-height: 0; }
.qs__top { display: grid; grid-template-columns: 1fr 1fr; gap: calc(20px * var(--u)); }
.qs__ch { position: relative; padding: calc(22px * var(--u)) calc(14px * var(--u)) calc(12px * var(--u)); border: calc(3px * var(--u)) dashed rgba(184, 70, 26, .45); border-radius: calc(10px * var(--u)); }
.qs__ch > h4 { position: absolute; left: calc(16px * var(--u)); top: calc(-18px * var(--u)); display: flex; align-items: center; gap: calc(8px * var(--u)); padding: calc(3px * var(--u)) calc(14px * var(--u)); font-size: calc(18px * var(--u)); letter-spacing: calc(1px * var(--u));
  background: #f2dfb8; border: calc(3px * var(--u)) solid #2a1a10; border-radius: calc(6px * var(--u)); white-space: nowrap; }
.qs__ch > h4 .ic { width: calc(28px * var(--u)); height: calc(28px * var(--u)); }
.qs__ch > h4 small { font-size: calc(15px * var(--u)); opacity: .75; }
.qs__list { display: grid; gap: calc(10px * var(--u)); }
.qs__ch--big .qs__list { grid-template-columns: 1fr 1fr 1fr; }
.qs__ch--big { margin-top: calc(14px * var(--u)); display: grid; grid-template-columns: calc(210px * var(--u)) 1fr; gap: calc(14px * var(--u)); align-items: end; }
.qs__duo { position: relative; height: calc(210px * var(--u)); align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.qs__duo i { display: block; width: calc(200px * var(--u)); height: calc(160px * var(--u)); background: url(../assets/about/duo.png?v=1) 0 0 / 400% 100% no-repeat; animation: abWalk .8s steps(4) infinite; }
@keyframes abWalk { to { background-position-x: 133.333%; } }
.qs__duo span { margin-top: calc(4px * var(--u)); padding: calc(3px * var(--u)) calc(10px * var(--u)); font-size: calc(14px * var(--u)); font-weight: 700; background: #ffd23f; border: calc(3px * var(--u)) solid #2a1a10; border-radius: calc(6px * var(--u)); white-space: nowrap; }
.qs__c { position: relative; display: grid; grid-template-columns: calc(54px * var(--u)) 1fr; gap: calc(4px * var(--u)) calc(12px * var(--u)); align-items: center; text-align: left; padding: calc(2px * var(--u)) calc(6px * var(--u));
  font: inherit; color: inherit; cursor: pointer; border-style: solid; border-width: calc(9px * var(--u)); border-image: url(../assets/about/deco_card.png?v=1) 22 fill / calc(9px * var(--u)) stretch; background: none; }
.qs__c .ic { grid-row: 1 / 3; width: calc(50px * var(--u)); height: calc(50px * var(--u)); }
.qs__c b { font-size: calc(18px * var(--u)); line-height: 1.1; }
.qs__c b small { display: block; font-size: calc(14px * var(--u)); color: #b8461a; }
.qs__c span { font-size: calc(14px * var(--u)); opacity: .75; }
.qs__c::after { content: ""; position: absolute; right: calc(-20px * var(--u)); top: calc(-22px * var(--u)); width: calc(28px * var(--u)); height: calc(28px * var(--u)); background: url(../assets/about/deco_check.png?v=1) center / contain no-repeat; }
.qs__c.cur::after { content: "★"; display: grid; place-items: center; font-size: calc(15px * var(--u)); font-weight: 700; color: #fff; background: #f26a2e; border: calc(3px * var(--u)) solid #2a1a10; border-radius: 50%; animation: abBlink 1s steps(1) infinite; }
.qs__c.cur { filter: drop-shadow(0 0 calc(4px * var(--u)) #ffd23f) drop-shadow(0 0 calc(2px * var(--u)) #f26a2e); }
.qs__c:hover, .qs__c.sel { filter: drop-shadow(0 0 calc(3px * var(--u)) #f26a2e) drop-shadow(0 0 calc(1px * var(--u)) #f26a2e); }
.qs__c.sel { transform: translateY(calc(-3px * var(--u))); }
.about__desc .chip { margin-left: auto; font-size: calc(16px * var(--u)); padding: calc(6px * var(--u)) calc(12px * var(--u)); border-width: calc(3px * var(--u)); }

/* ---------- ACHIEVEMENTS ---------- */
.ac__count { position: absolute; right: calc(46px * var(--u)); top: calc(34px * var(--u)); padding: calc(4px * var(--u)) calc(12px * var(--u)); font-size: calc(17px * var(--u)); font-weight: 700; background: #f2dfb8; border: calc(3px * var(--u)) solid #b88a3a; border-radius: calc(6px * var(--u)); }
.ac { display: grid; grid-template-columns: repeat(6, 1fr); gap: calc(22px * var(--u)) calc(12px * var(--u)); margin: calc(10px * var(--u)) calc(10px * var(--u)) 0; }
.ac__b { display: flex; flex-direction: column; align-items: center; gap: calc(6px * var(--u)); padding: calc(8px * var(--u)) calc(4px * var(--u)); font: inherit; color: inherit; background: none;
  border: calc(3px * var(--u)) solid transparent; border-radius: calc(10px * var(--u)); cursor: pointer; }
.ac__b .bd { width: calc(150px * var(--u)); height: calc(150px * var(--u)); }
.ac__b b { font-size: calc(16px * var(--u)); line-height: 1.1; text-align: center; min-height: 2.2em; letter-spacing: calc(1px * var(--u)); }
.ac__b.lock b { opacity: .5; }
.ac__b:hover, .ac__b.sel { border-color: #f26a2e; background: #fff1d6; }
.ac__b.sel .bd { animation: abPulse 1s steps(2) infinite; }
.ac__b.new .bd { animation: abPop .6s steps(5); }
@keyframes abPop { 0% { transform: scale(.3) rotate(-30deg); } 60% { transform: scale(1.25); } }
.ac__b.secret:not(.lock) .bd { filter: sepia(1) saturate(3.2) hue-rotate(-12deg) brightness(1.08); }
.about__page--achievements .about__desc .bd { width: calc(60px * var(--u)); height: calc(60px * var(--u)); flex: none; }

/* ---------- SAVE ---------- */
.sv { display: grid; grid-template-columns: 1fr 1fr; gap: calc(26px * var(--u)); margin: calc(30px * var(--u)) calc(40px * var(--u)) 0; }
.sv__s { display: grid; grid-template-columns: calc(100px * var(--u)) 1fr; gap: calc(6px * var(--u)) calc(20px * var(--u)); align-items: center; padding: calc(24px * var(--u)) calc(18px * var(--u)); text-align: left; text-decoration: none;
  font: inherit; color: inherit; cursor: pointer; border-style: solid; border-width: calc(12px * var(--u)); border-image: url(../assets/about/deco_card.png?v=1) 22 fill / calc(12px * var(--u)) stretch; background: none; }
.sv__s .ic { grid-row: 1 / 3; width: calc(92px * var(--u)); height: calc(92px * var(--u)); }
.sv__s b { font-size: calc(34px * var(--u)); letter-spacing: calc(2px * var(--u)); color: #b8461a; }
.sv__s span { font-size: calc(21px * var(--u)); }
.sv__s small { font-size: calc(13px * var(--u)); opacity: .6; letter-spacing: calc(1px * var(--u)); }
.sv__s:hover, .sv__s.sel { filter: drop-shadow(0 0 calc(3px * var(--u)) #f26a2e) drop-shadow(0 0 calc(1px * var(--u)) #f26a2e); }
.sv__s.sel { transform: translateY(calc(-3px * var(--u))); }
.sv__s.off { opacity: .55; cursor: default; }
.sv__s.off b { color: #6b5a48; }
.sv__note { margin-top: auto; text-align: center; font-size: calc(19px * var(--u)); opacity: .8; }

/* ---------- Màn dọc (mobile) ---------- */
.about--narrow .about__frame { width: 96vw; height: calc(100% - calc(40px * var(--u))); grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: calc(12px * var(--u)); }
.about--narrow .about__cmds { flex-direction: row; overflow-x: auto; padding: 0 calc(4px * var(--u)); gap: calc(6px * var(--u)); scrollbar-width: none;
  border-width: calc(36px * var(--u)) calc(16px * var(--u)) calc(40px * var(--u)); border-image-width: calc(36px * var(--u)) calc(16px * var(--u)) calc(40px * var(--u)); }
.about--narrow .about__cmd { width: auto; flex: none; padding: calc(10px * var(--u)) calc(14px * var(--u)) calc(10px * var(--u)) calc(34px * var(--u)); font-size: calc(22px * var(--u)); }
.about--narrow .about__cmd.sel::before { left: calc(10px * var(--u)); }
.about--narrow .about__paper { overflow-y: auto; padding: calc(24px * var(--u)) calc(20px * var(--u)) calc(30px * var(--u)); }
.about--narrow .about__hint { display: none; }
.about--narrow .about__seal { width: calc(110px * var(--u)); height: calc(110px * var(--u)); right: calc(-14px * var(--u)); bottom: calc(-20px * var(--u)); position: fixed; }
.about--narrow .about__close { right: calc(4px * var(--u)); top: calc(-8px * var(--u)); }
.about--narrow .st { grid-template-columns: calc(240px * var(--u)) 1fr; }
.about--narrow .st__face { width: calc(240px * var(--u)); height: calc(240px * var(--u)); }
.about--narrow .st__bars { grid-column: 1 / 3; }
.about--narrow .st__attrs { grid-row: auto; grid-column: 1 / 3; }
.about--narrow .sk { display: flex; flex-direction: column; gap: calc(30px * var(--u)); align-items: stretch; }
.about--narrow .sk__lines, .about--narrow .sk__legend { display: none; }
.about--narrow .sk__core { order: -1; align-self: center; }
.about--narrow .sk__br--ai { min-width: 0; }
.about--narrow .inv { grid-template-columns: repeat(4, 1fr); margin: 0; }
.about--narrow .qs__top, .about--narrow .qs__ch--big, .about--narrow .qs__ch--big .qs__list { grid-template-columns: 1fr; }
.about--narrow .qs { justify-content: flex-start; }
.about--narrow .qs__ch { margin-top: calc(16px * var(--u)); }
.about--narrow .ac { grid-template-columns: repeat(3, 1fr); }
.about--narrow .ac__count { position: static; align-self: center; margin-bottom: calc(12px * var(--u)); }
.about--narrow .sv { grid-template-columns: 1fr; margin: 0; }
.about--narrow .about__desc { position: sticky; bottom: calc(-30px * var(--u)); margin-top: calc(18px * var(--u)); z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .viewport { transition: none; }
  .about__page, .qs__duo i, .sk__n.sel .ic, .inv__s.sel .ic, .ac__b.sel .bd { animation: none; }
}
.about__cmd:focus { outline: none; }
