
:root{
  --navy:#183044; --navy2:#102634; --paper:#efe6cf; --paper2:#e6dbc1;
  --ink:#2b2b28; --muted:#746e62; --rust:#a84e34; --sage:#637966;
  --gold:#b58d48; --line:rgba(42,43,40,.15); --white:#fffaf0;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;font-family:"DM Sans",system-ui,sans-serif;color:var(--ink);
  background:
    radial-gradient(circle at 12% 8%,rgba(255,255,255,.4),transparent 28%),
    linear-gradient(180deg,#e9dfc8,#e4d8be 60%,#dfd1b4);
  min-height:100vh;
}
a{color:inherit}
.paper-grain{
  position:fixed;inset:0;pointer-events:none;opacity:.11;z-index:99;
  background-image:
    repeating-linear-gradient(0deg,rgba(0,0,0,.08) 0 1px,transparent 1px 4px),
    repeating-linear-gradient(90deg,rgba(255,255,255,.14) 0 1px,transparent 1px 5px);
  mix-blend-mode:multiply
}
.site-header{
  position:sticky;top:0;z-index:40;backdrop-filter:blur(14px);
  background:rgba(233,223,200,.86);border-bottom:1px solid var(--line)
}
.header-inner{
  max-width:1200px;margin:auto;height:76px;padding:0 24px;display:flex;align-items:center;justify-content:space-between
}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-weight:700}
.brand-mark{width:34px;height:34px;border:1.5px solid var(--ink);border-radius:50%;display:grid;place-items:center;font-family:"Libre Baskerville";font-size:10px}
.main-nav{display:flex;gap:9px;align-items:center}
.main-nav a{padding:10px 13px;border-radius:999px;text-decoration:none;font-size:13px;color:#655f55}
.main-nav a:hover,.main-nav a.active{background:rgba(24,48,68,.1);color:var(--navy)}
.nav-cta{background:var(--navy)!important;color:#f4ead2!important}
.mobile-toggle{display:none;border:0;background:none;font-size:22px}
.page{max-width:1200px;margin:auto;padding:54px 24px 90px}
.eyebrow{font-size:10px;letter-spacing:.18em;color:var(--rust);font-weight:700;text-transform:uppercase}
h1,h2,h3{font-family:"Libre Baskerville",serif;letter-spacing:-.03em}
h1{font-size:clamp(46px,6vw,78px);line-height:1.02;margin:14px 0 20px}
h2{font-size:clamp(32px,4vw,48px);margin:10px 0 16px}
h3{font-size:20px}
em{color:var(--rust);font-weight:400}
.lede{font-size:17px;line-height:1.75;color:#676257;max-width:650px}
.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:13px 18px;font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
.btn.primary{background:var(--navy);color:#f6ecd5}
.btn.secondary{background:rgba(255,255,255,.22);border:1px solid var(--line)}
.hero-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:58px;align-items:center;min-height:620px}
.hero-actions{display:flex;gap:11px;margin-top:28px;flex-wrap:wrap}
.mini-stats{display:flex;gap:30px;margin-top:34px;padding-top:22px;border-top:1px solid var(--line)}
.mini-stats div{display:flex;flex-direction:column}.mini-stats strong{font-family:"Libre Baskerville";font-size:22px}.mini-stats span{font-size:10px;color:#7c7466;margin-top:4px}
.passport-preview{display:grid;grid-template-columns:.34fr .66fr;min-height:510px;filter:drop-shadow(0 22px 28px rgba(46,35,20,.23));transform:rotate(-1deg)}
.cover{background:linear-gradient(145deg,var(--navy),var(--navy2));color:#d8c79e;border-radius:20px 4px 4px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px solid #0d2431}
.cover .crest{font-size:52px;margin-bottom:26px}.cover span{font-size:10px;letter-spacing:.24em}.cover h2{font-size:31px;letter-spacing:.05em;margin:10px 0 70px}.cover small{font-size:8px;letter-spacing:.14em}
.paper-page{background:var(--paper);border:1px solid #c9bb98;border-left:0;border-radius:4px 20px 20px 4px;padding:26px;position:relative}
.paper-page:before{content:"";position:absolute;left:-7px;top:0;bottom:0;width:14px;background:linear-gradient(90deg,rgba(0,0,0,.14),rgba(255,255,255,.18),transparent);opacity:.4}
.page-title-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:12px}
.page-title-row small{font-size:7px;letter-spacing:.14em}.page-title-row h3{font-size:18px;margin:4px 0}.page-number{font-family:"Libre Baskerville";font-size:25px;color:#a49b89}
.stamp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-top:18px}
.stamp{min-height:112px;border:2px solid currentColor;position:relative;padding:9px;display:flex;flex-direction:column;justify-content:space-between;text-align:center;transform:rotate(var(--r));transition:.18s;background:rgba(255,255,255,.08);cursor:pointer}
.stamp:after{content:"";position:absolute;inset:4px;border:1px dashed currentColor;opacity:.7}
.stamp:hover{transform:rotate(0) scale(1.04);z-index:2}
.stamp.rust{color:var(--rust)}.stamp.blue{color:#496c7a}.stamp.green{color:var(--sage)}.stamp.gold{color:#967139}
.stamp .place,.stamp .symbol,.stamp .book{position:relative;z-index:1}.stamp .place{font-family:"Libre Baskerville";font-size:11px}.stamp .symbol{font-size:24px}.stamp .book{font-size:7px}
.section{padding:86px 0;border-top:1px solid var(--line)}
.section-center{text-align:center;max-width:760px;margin:0 auto 48px}
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{border:1px solid var(--line);border-radius:22px;padding:26px;background:rgba(255,255,255,.19)}
.card p{font-size:13px;color:#6f685d;line-height:1.7}
.card .big{font-family:"Libre Baskerville";font-size:44px;color:var(--rust);margin:20px 0 4px}
.dark-card{background:var(--navy);color:#f0e6cf}.dark-card p{color:#beb29a}
.route{padding:34px;border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.2)}
.route-line{display:flex;align-items:center}.stop{width:14px;height:14px;border-radius:50%;border:2px solid var(--navy);background:var(--paper2)}.stop.active{background:var(--rust);border-color:var(--rust)}.route-seg{height:1px;background:#948b78;flex:1}
.route-labels{display:grid;grid-template-columns:repeat(4,1fr);margin-top:13px}.route-labels div:not(:first-child){text-align:center}.route-labels div:last-child{text-align:right}.route-labels strong{font-family:"Libre Baskerville";font-size:13px}.route-labels span{display:block;font-size:9px;color:#7b7466;margin-top:3px}
.page-heading{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:34px}
.page-heading h1{font-size:52px;margin-bottom:6px}.page-heading p{margin:0;color:#6c665b}
.toolbar{display:flex;gap:10px;flex-wrap:wrap}.filter{border:1px solid var(--line);background:rgba(255,255,255,.2);padding:10px 13px;border-radius:999px;font:inherit;font-size:12px;cursor:pointer}.filter.active{background:var(--navy);color:#f4ead2}
.passport-layout{display:grid;grid-template-columns:250px 1fr;gap:28px}
.profile-card{background:var(--navy);color:#eee1c5;border-radius:24px;padding:28px;position:sticky;top:104px;height:max-content}
.avatar{width:78px;height:78px;border-radius:50%;background:#d5c18f;color:var(--navy);display:grid;place-items:center;font-family:"Libre Baskerville";font-size:22px;margin-bottom:20px}
.profile-card h3{margin-bottom:4px}.profile-card p{font-size:12px;color:#bdaf93}.profile-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:26px}.profile-meta div{border-top:1px solid rgba(255,255,255,.15);padding-top:12px}.profile-meta strong{display:block;font-family:"Libre Baskerville";font-size:20px}.profile-meta span{font-size:9px;color:#b8aa8f}
.passport-sheet{background:var(--paper);border:1px solid #c8ba97;border-radius:24px;padding:28px}
.passport-sheet .stamp-grid{grid-template-columns:repeat(4,1fr);gap:16px}
.collection-title{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:5px}
.collection-title h2{font-size:28px;margin:0}
.discover-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.destination-card{min-height:280px;border-radius:25px;padding:28px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden;border:1px solid rgba(0,0,0,.08)}
.destination-card:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 20%,rgba(255,255,255,.5),transparent 24%),linear-gradient(145deg,rgba(255,255,255,.15),transparent 60%)}
.destination-card > *{position:relative}.destination-card h3{font-size:27px;margin:0 0 7px}.destination-card p{max-width:420px;margin:0;color:#4f4b44}.dest-blue{background:#9ab0b6}.dest-gold{background:#d2b879}.dest-green{background:#9faa8d}.dest-rose{background:#c9967d}
.challenge-list{display:grid;gap:16px}
.challenge{display:grid;grid-template-columns:90px 1fr 180px;gap:20px;align-items:center;border:1px solid var(--line);border-radius:22px;padding:20px;background:rgba(255,255,255,.18)}
.challenge-icon{width:72px;height:72px;border-radius:50%;background:var(--navy);color:#e8d7ae;display:grid;place-items:center;font-size:28px}
.challenge h3{margin:0 0 6px}.challenge p{margin:0;color:#6d675c;font-size:12px}
.progress-wrap{font-size:10px;color:#6e685c}.progress-bar{height:8px;background:rgba(24,48,68,.1);border-radius:99px;overflow:hidden;margin-top:7px}.progress-bar span{display:block;height:100%;background:var(--rust);width:var(--w)}
.profile-layout{display:grid;grid-template-columns:.7fr 1.3fr;gap:25px}.bio-panel,.stats-panel{border:1px solid var(--line);border-radius:24px;padding:28px;background:rgba(255,255,255,.18)}
.bio-panel .avatar{width:100px;height:100px}.bio-panel .btn{margin-top:14px}
.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.stat-box{padding:20px;border-radius:18px;background:rgba(255,255,255,.24);border:1px solid var(--line)}.stat-box strong{font-family:"Libre Baskerville";font-size:30px;display:block}.stat-box span{font-size:10px;color:#746d60}
.reading-list{margin-top:25px}.book-row{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-top:1px solid var(--line)}.book-row h4{margin:0 0 4px;font-family:"Libre Baskerville"}.book-row p{margin:0;color:#746d60;font-size:11px}.tag{font-size:9px;padding:7px 9px;border:1px solid var(--line);border-radius:999px;height:max-content}
dialog{background:var(--paper);border:1px solid #bcae8c;border-radius:22px;width:min(92vw,440px);padding:0;color:var(--ink)}
dialog::backdrop{background:rgba(16,38,52,.72);backdrop-filter:blur(4px)}dialog form{padding:28px;position:relative}dialog h2{font-size:30px}.close{position:absolute;right:16px;top:13px;border:0;background:none;font-size:23px}
label{display:block;font-size:11px;color:#756e61;margin:13px 0}
input,select{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #c5b792;border-radius:10px;background:#f6ecd7;font:inherit;color:var(--ink)}
select{
  -webkit-appearance:none;
  appearance:none;
  cursor:pointer;
  padding-right:44px;
  min-height:44px;
  background-color:#f6ecd7;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%23183044' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 15px center;
  background-size:14px 9px;
}
select:hover{border-color:#a99a75;background-color:#f8efdc}
select:focus{outline:2px solid rgba(24,48,68,.16);outline-offset:2px;border-color:var(--navy)}
select::-ms-expand{display:none}
footer{border-top:1px solid var(--line);padding:32px 24px 45px;max-width:1200px;margin:auto;display:flex;justify-content:space-between;font-size:11px;color:#716a5e}
@media(max-width:900px){
  .main-nav{display:none}.main-nav.open{display:flex;position:absolute;left:0;right:0;top:76px;background:#e8dec7;padding:14px 22px;flex-direction:column;align-items:stretch;border-bottom:1px solid var(--line)}.mobile-toggle{display:block}
  .hero-grid,.profile-layout{grid-template-columns:1fr}.passport-preview{max-width:760px}.passport-layout{grid-template-columns:1fr}.profile-card{position:static}.passport-sheet .stamp-grid{grid-template-columns:repeat(3,1fr)}
  .card-grid{grid-template-columns:1fr}.challenge{grid-template-columns:74px 1fr}.challenge>.progress-wrap{grid-column:2}.discover-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .page{padding:38px 17px 65px}.hero-grid{min-height:auto}.passport-preview{grid-template-columns:1fr;transform:none}.cover{min-height:220px;border-radius:18px 18px 4px 4px}.cover h2{margin-bottom:24px}.paper-page{border-left:1px solid #c9bb98;border-radius:4px 4px 18px 18px}
  .stamp-grid,.passport-sheet .stamp-grid{grid-template-columns:repeat(2,1fr)}.mini-stats{gap:16px}.page-heading{display:block}.toolbar{margin-top:20px}.route-labels span{display:none}.challenge{grid-template-columns:1fr}.challenge>.progress-wrap{grid-column:1}.profile-meta,.stats-grid{grid-template-columns:1fr 1fr}footer{margin:0 17px;flex-wrap:wrap;gap:14px}
}

.interest-list{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0 4px}
.bio-panel .interest-list .tag{background:rgba(255,255,255,.2)}
textarea{
  display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #c5b792;
  border-radius:10px;background:#f6ecd7;color:var(--ink);font:inherit;resize:vertical
}
.field-help{display:block;margin-top:6px;color:#8a8172;font-size:9px}
.profile-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
#profileDialog h2{margin-bottom:20px}

.profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.btn.danger{
  background:transparent;color:var(--rust);border:1px solid rgba(168,78,52,.35)
}
.btn.danger:hover{background:rgba(168,78,52,.08)}
.dialog-copy{color:#6d665b;line-height:1.65;font-size:13px;margin-bottom:4px}

.auth-page{min-height:100vh}
.auth-shell{
  width:min(1080px,calc(100% - 34px));
  min-height:680px;
  margin:48px auto;
  display:grid;
  grid-template-columns:1fr .8fr;
  border:1px solid var(--line);
  border-radius:30px;
  overflow:hidden;
  background:rgba(255,255,255,.18);
  box-shadow:0 28px 70px rgba(46,35,20,.15)
}
.auth-card{padding:64px}
.auth-brand{margin-bottom:65px;width:max-content}
.auth-card h1{font-size:clamp(44px,5vw,64px);margin-bottom:18px}
.auth-copy{color:#6f685d;line-height:1.7;max-width:480px;margin-bottom:28px}
.auth-card form{max-width:430px}
.auth-submit{margin-top:8px;width:100%}
.auth-note{font-size:10px;color:#827a6c;margin-top:14px}
.auth-visual{
  background:linear-gradient(145deg,var(--navy),var(--navy2));
  display:grid;
  place-items:center;
  padding:40px
}
.mini-passport{
  width:280px;
  aspect-ratio:.72;
  border:1px solid rgba(235,218,177,.45);
  border-radius:18px;
  color:#dbc99e;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-shadow:inset 0 0 0 7px rgba(255,255,255,.025),0 30px 55px rgba(0,0,0,.25)
}
.mini-passport .crest{font-size:55px;margin-bottom:25px}
.mini-passport small{font-size:10px;letter-spacing:.25em}
.mini-passport h2{letter-spacing:.08em;margin:10px 0 75px}
.mini-passport p{font-size:8px;letter-spacing:.17em;color:#a99976}
@media(max-width:780px){
  .auth-shell{grid-template-columns:1fr;margin:18px auto}
  .auth-visual{display:none}
  .auth-card{padding:42px 26px}
  .auth-brand{margin-bottom:46px}
}

.passport-sheet .stamp{position:relative}
.passport-sheet .stamp::before{
  content:"Edit";
  position:absolute;
  top:-9px;
  right:-7px;
  z-index:3;
  font-family:"DM Sans",sans-serif;
  font-size:7px;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:4px 6px;
  border-radius:999px;
  background:var(--navy);
  color:#f4ead2;
  opacity:0;
  transform:translateY(3px);
  transition:.15s;
}
.passport-sheet .stamp:hover::before{opacity:1;transform:translateY(0)}
.stamp-preview-wrap{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:16px 0;
  margin:18px 0;
}
.stamp-preview{
  width:150px;
  min-height:125px;
  margin:12px auto 2px;
  pointer-events:none;
}
.rotation-readout{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:5px;
  color:#8a8172;
  font-size:9px;
}
.rotation-readout strong{color:var(--ink);font-size:10px}
.stamp-edit-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:18px
}
.stamp-edit-actions>div{display:flex;gap:9px}
@media(max-width:520px){
  .stamp-edit-actions{align-items:stretch;flex-direction:column-reverse}
  .stamp-edit-actions>div{display:grid;grid-template-columns:1fr 1fr}
  .stamp-edit-actions .btn{width:100%}
}

.passport-page-status{display:block;margin-top:5px;font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#8a8171}
.passport-page-stage{min-height:650px;position:relative}
.passport-pagination{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  border-top:1px solid var(--line);margin-top:24px;padding-top:18px
}
.page-turn{
  border:1px solid var(--line);background:rgba(255,255,255,.2);color:var(--ink);
  border-radius:999px;padding:9px 13px;font:inherit;font-size:11px;cursor:pointer
}
.page-turn:disabled{opacity:.35;cursor:not-allowed}
.page-dots{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
.page-dot{
  width:9px;height:9px;border:1px solid #8d826d;border-radius:50%;background:transparent;
  padding:0;cursor:pointer
}
.page-dot.active{background:var(--rust);border-color:var(--rust)}
.passport-sheet.page-turning .passport-page-stage{animation:passportTurn .24s ease}
@keyframes passportTurn{
  0%{opacity:.35;transform:translateX(12px) rotateY(-3deg)}
  100%{opacity:1;transform:none}
}
@media(max-width:600px){
  .passport-page-stage{min-height:1100px}
  .passport-pagination{gap:8px}
  .page-turn{font-size:10px;padding:8px 10px}
}

.profile-photo{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  overflow:hidden;
}
.profile-photo.has-image{
  color:transparent !important;
  border:2px solid rgba(255,255,255,.35);
}
.photo-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:-6px 0 14px;
}
.photo-upload-btn{
  cursor:pointer;
}

/* Polished custom profile-photo picker */
.photo-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  margin:2px 0 18px;
  width:100%;
}
.visually-hidden-file{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.photo-upload-control{
  width:100%;
  max-width:310px;
  min-height:64px;
  display:grid;
  grid-template-columns:38px 1fr auto;
  align-items:center;
  gap:11px;
  padding:10px 11px;
  border:1px solid rgba(239,225,197,.24);
  border-radius:17px;
  background:rgba(255,255,255,.055);
  color:#eee1c5;
  cursor:pointer;
  transition:background .18s,border-color .18s,transform .18s;
}
.photo-upload-control:hover{
  background:rgba(255,255,255,.095);
  border-color:rgba(239,225,197,.4);
  transform:translateY(-1px);
}
.photo-upload-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#d5c18f;
  color:var(--navy);
  font-size:17px;
  font-weight:700;
}
.photo-upload-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.photo-upload-copy strong{
  font-size:11px;
  color:#f0e5cc;
  font-weight:600;
}
.photo-upload-copy small{
  font-size:8px;
  color:#a99d84;
  letter-spacing:.02em;
}
.photo-upload-action{
  padding:7px 10px;
  border:1px solid rgba(239,225,197,.22);
  border-radius:999px;
  font-size:9px;
  color:#d8caab;
}
.photo-remove{
  border:0;
  background:transparent;
  color:#aa9d82;
  padding:3px 4px;
  font:inherit;
  font-size:9px;
  cursor:pointer;
  text-decoration:underline;
  text-decoration-color:rgba(170,157,130,.35);
  text-underline-offset:3px;
}
.photo-remove:hover{color:#efe1c4}
.photo-remove.is-hidden{display:none}

.password-field{
  position:relative;
}
.password-field input{
  padding-right:66px;
}
.password-toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#756e61;
  font:inherit;
  font-size:10px;
  cursor:pointer;
  padding:7px 8px;
}
.auth-error{
  min-height:17px;
  margin:4px 0 6px;
  color:var(--rust);
  font-size:10px;
  line-height:1.5;
}
.auth-submit:disabled{
  opacity:.6;
  cursor:wait;
}

.challenge-tags{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px 8px;
  margin:14px 0;
}
.challenge-tags legend{
  padding:0 6px;
  font-size:9px;
  color:#756e61;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.challenge-tags label{
  display:flex;
  align-items:center;
  gap:8px;
  margin:7px 0;
}
.challenge-tags input[type="checkbox"]{
  width:auto;
  margin:0;
}
.challenge-complete{
  border-color:rgba(181,141,72,.55)!important;
  box-shadow:inset 0 0 0 1px rgba(181,141,72,.18);
}
.challenge-badge{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:999px;
  background:#d7bf82;
  color:#183044;
  font-size:9px;
  font-weight:700;
  white-space:nowrap;
}
.badge-section{
  margin-top:30px;
  padding-top:24px;
  border-top:1px solid var(--line);
}
.badge-section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
}
.badge-section-head h3{margin:4px 0 0}
.badge-section-head>span{font-size:10px;color:#756e61}
.badge-shelf{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.badge-card{
  min-height:126px;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  display:flex;
  gap:13px;
  align-items:center;
  background:rgba(255,255,255,.2);
}
.badge-card.locked{opacity:.42}
.badge-medal{
  width:54px;height:54px;flex:0 0 54px;
  border-radius:50%;
  display:grid;place-items:center;
  background:var(--navy);
  color:#dbc58e;
  font-size:22px;
}
.badge-card.locked .badge-medal{background:#b9b09d;color:#eee4d0}
.badge-card strong{display:block;font-family:"Libre Baskerville";font-size:13px}
.badge-card small{display:block;margin-top:4px;color:#766f63;font-size:9px;line-height:1.4}
@media(max-width:600px){.badge-shelf{grid-template-columns:1fr}}

.continent-status{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:12px;
}
.continent-chip{
  display:inline-flex;
  align-items:center;
  padding:5px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  font-size:8px;
  color:#81786a;
  background:rgba(255,255,255,.12);
}
.continent-chip.done{
  background:rgba(99,121,102,.13);
  color:#536856;
  border-color:rgba(99,121,102,.32);
}

.badge-card{
  position:relative;
  overflow:hidden;
}
.badge-card.earned{
  background:
    radial-gradient(circle at 85% 15%,rgba(255,255,255,.55),transparent 20%),
    linear-gradient(145deg,rgba(215,191,130,.25),rgba(255,255,255,.22));
  border-color:rgba(181,141,72,.45);
  box-shadow:0 12px 28px rgba(93,71,34,.12);
}
.badge-card.earned::after{
  content:"";
  position:absolute;
  width:100px;height:100px;
  right:-30px;top:-35px;
  border:1px solid rgba(181,141,72,.25);
  border-radius:50%;
}
.badge-card.earned .badge-medal{
  background:linear-gradient(145deg,#f0d99c,#b58d48);
  color:#183044;
  box-shadow:0 7px 18px rgba(181,141,72,.3), inset 0 0 0 2px rgba(255,255,255,.35);
}
.badge-card.earned .badge-medal::after{
  content:"";
  position:absolute;
  inset:-6px;
  border:1px dashed rgba(181,141,72,.45);
  border-radius:50%;
}
.badge-medal{position:relative}
.badge-earned-label{
  display:inline-flex;
  margin-top:7px;
  padding:4px 7px;
  border-radius:999px;
  background:#183044;
  color:#f0dfb1;
  font-size:7px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.achievement-toast{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:120;
  min-width:290px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:18px;
  background:#183044;
  color:#f3e7c9;
  box-shadow:0 20px 50px rgba(0,0,0,.28);
  opacity:0;
  transform:translateY(20px) scale(.96);
  pointer-events:none;
  transition:.28s ease;
}
.achievement-toast.show{
  opacity:1;
  transform:translateY(0) scale(1);
}
.achievement-toast span{
  display:block;
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.13em;
  color:#bfae8a;
}
.achievement-toast strong{
  display:block;
  margin-top:3px;
  font-family:"Libre Baskerville";
  font-size:15px;
}
.achievement-burst{
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius:50%;
  background:linear-gradient(145deg,#f0d99c,#b58d48);
  color:#183044;
  font-size:19px;
  box-shadow:0 0 0 5px rgba(240,217,156,.1);
}
.celebration-layer{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:119;
  overflow:hidden;
}
.confetti-piece{
  position:absolute;
  width:8px;height:14px;
  border-radius:2px;
  background:#d5b96f;
  opacity:0;
  animation:confettiFall 1.15s ease-out forwards;
}
.confetti-piece:nth-child(3n){background:#6f8d7a}
.confetti-piece:nth-child(3n+1){background:#b35f45}
.confetti-piece:nth-child(3n+2){background:#8aa1ae}
@keyframes confettiFall{
  0%{opacity:0;transform:translateY(-20px) rotate(0deg) scale(.7)}
  10%{opacity:1}
  100%{opacity:0;transform:translateY(180px) rotate(300deg) scale(1)}
}
@media(max-width:600px){
  .achievement-toast{left:16px;right:16px;bottom:16px;min-width:0}
}

.profile-badges-panel{
  margin-top:24px;
  border:1px solid var(--line);
  border-radius:24px;
  padding:28px;
  background:rgba(255,255,255,.18);
}
.profile-badges-panel .badge-section-head{
  margin-bottom:20px;
}
.profile-badges-panel .badge-section-head h2{
  font-size:28px;
  margin:4px 0 7px;
}
.profile-badges-panel .badge-section-head p:not(.eyebrow){
  margin:0;
  color:#746d60;
  font-size:11px;
}

.challenge-generation-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin:10px 0 14px;
}
.challenge-generation-head span{
  font-size:9px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#786f60;
}
.challenge-generation-head small{
  font-size:9px;
  color:#958b79;
}
.challenge-board.refreshing{
  animation:challengeSetIn .48s ease;
}
@keyframes challengeSetIn{
  0%{opacity:0;transform:translateY(12px)}
  100%{opacity:1;transform:none}
}
.challenge-set-unlocked{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) scale(.92);
  z-index:130;
  padding:22px 26px;
  border-radius:22px;
  background:#183044;
  color:#f1e4c5;
  text-align:center;
  box-shadow:0 24px 70px rgba(0,0,0,.32);
  opacity:0;
  pointer-events:none;
  transition:.3s ease;
}
.challenge-set-unlocked.show{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
}
.challenge-set-unlocked span{
  display:block;
  font-size:26px;
  margin-bottom:7px;
}
.challenge-set-unlocked strong{
  display:block;
  font-family:"Libre Baskerville";
  font-size:18px;
}
.challenge-set-unlocked small{
  display:block;
  margin-top:5px;
  color:#b9ab8d;
  font-size:9px;
}

.discover-main{width:min(1120px,calc(100% - 36px));margin:0 auto;padding:54px 0 80px}
.discover-hero{text-align:center;max-width:780px;margin:0 auto 58px}
.discover-hero h1{font-size:clamp(44px,6vw,72px);line-height:1.05;margin:9px 0 18px}
.discover-hero>p:not(.eyebrow){max-width:610px;margin:0 auto;color:#70685c;line-height:1.7}
.world-switch{
  display:inline-flex;gap:5px;margin-top:28px;padding:5px;border:1px solid var(--line);
  border-radius:999px;background:rgba(255,255,255,.2)
}
.world-switch-btn,.mood-chip{
  border:0;background:transparent;color:#70685c;font:inherit;font-size:10px;cursor:pointer
}
.world-switch-btn{padding:9px 14px;border-radius:999px}
.world-switch-btn.active{background:var(--navy);color:#f1e5c8}
.discover-section{margin-top:52px}
.section-heading-row{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:19px}
.section-heading-row h2{font-size:30px;margin:4px 0 0}
.discover-helper{max-width:360px;color:#82796a;font-size:10px;line-height:1.55;text-align:right}
.next-journey-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.next-journey{
  border:1px solid var(--line);border-radius:20px;padding:18px;min-height:145px;
  background:rgba(255,255,255,.18);position:relative;overflow:hidden
}
.next-journey .journey-icon{font-size:25px;margin-bottom:18px}
.next-journey strong{display:block;font-family:"Libre Baskerville";font-size:13px}
.next-journey p{font-size:9px;color:#766e61;line-height:1.5;margin:5px 0 0}
.mood-filters{display:flex;gap:8px;flex-wrap:wrap}
.mood-chip{border:1px solid var(--line);border-radius:999px;padding:8px 12px}
.mood-chip.active{background:#d7c59b;color:var(--navy);border-color:#d7c59b}
.discover-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.destination-card{
  border:1px solid var(--line);border-radius:22px;overflow:hidden;background:rgba(255,255,255,.2);
  transition:.18s ease
}
.destination-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(57,45,27,.1)}
.destination-art{
  height:160px;padding:18px;display:flex;flex-direction:column;justify-content:space-between;
  background:linear-gradient(145deg,rgba(25,48,68,.95),rgba(57,77,82,.76));color:#eee0bd
}
.destination-card.fictional .destination-art{
  background:linear-gradient(145deg,#332d4a,#6e596e)
}
.destination-type{font-size:8px;letter-spacing:.12em;text-transform:uppercase;opacity:.75}
.destination-symbol{font-size:38px;align-self:flex-end}
.destination-copy{padding:17px}
.destination-copy h3{font-size:17px;margin:0 0 4px}
.destination-copy .book-author{font-size:9px;color:#7b7367;margin:0 0 12px}
.destination-tags{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:14px}
.destination-tags span{font-size:7px;padding:4px 7px;border-radius:999px;background:#ebe1ca;color:#675f54}
.destination-meta{font-size:9px;color:#6e6659;line-height:1.5;min-height:28px;margin-bottom:13px}
.save-journey{
  width:100%;border:1px solid var(--line);border-radius:999px;background:transparent;
  padding:9px;font:inherit;font-size:9px;cursor:pointer;color:var(--ink)
}
.save-journey.saved{background:var(--navy);color:#f1e4c5;border-color:var(--navy)}
.result-count,.reading-list-section .section-heading-row>span{font-size:9px;color:#807767}
.reading-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.reading-list-empty{grid-column:1/-1;border:1px dashed var(--line);border-radius:18px;padding:24px;text-align:center;color:#8a8173;font-size:10px}
.saved-book{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:15px;padding:13px 14px;background:rgba(255,255,255,.15)}
.saved-book strong{font-size:11px}.saved-book small{display:block;color:#81796b;font-size:8px;margin-top:3px}
.saved-book button{border:0;background:transparent;cursor:pointer;color:#8a6b5d;font-size:9px}
@media(max-width:820px){.discover-grid,.next-journey-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:580px){
  .discover-grid,.next-journey-grid,.reading-list{grid-template-columns:1fr}
  .section-heading-row{align-items:flex-start;flex-direction:column;gap:8px}
  .discover-helper{text-align:left}.world-switch{display:flex;overflow:auto}
}

.reading-page{
  width:min(1080px,calc(100% - 36px));
  margin:0 auto;
  padding:58px 0 90px;
}
.reading-hero{
  max-width:700px;
  margin-bottom:34px;
}
.reading-hero h1{
  font-size:clamp(44px,6vw,66px);
  margin:8px 0 14px;
}
.reading-hero>p:not(.eyebrow){
  color:#72695d;
  line-height:1.7;
  max-width:620px;
}
.reading-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:18px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  margin-bottom:22px;
}
.reading-toolbar>div{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.reading-toolbar strong{
  font-family:"Libre Baskerville";
  font-size:17px;
}
.reading-toolbar span{
  font-size:9px;
  color:#81796b;
}
.reading-page-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.reading-page-card{
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  background:rgba(255,255,255,.18);
  display:grid;
  grid-template-columns:54px 1fr auto;
  gap:14px;
  align-items:center;
}
.reading-page-icon{
  width:54px;height:54px;border-radius:50%;
  background:var(--navy);color:#eadbb8;
  display:grid;place-items:center;
  font-size:21px;
}
.reading-page-card h3{
  margin:0 0 4px;
  font-size:15px;
}
.reading-page-card p{
  margin:0;
  color:#7d7466;
  font-size:9px;
  line-height:1.5;
}
.reading-page-card small{
  display:block;
  margin-top:6px;
  font-size:8px;
  color:#8a8173;
}
.reading-page-card button{
  border:0;
  background:transparent;
  color:#8b6658;
  font:inherit;
  font-size:9px;
  cursor:pointer;
}
.reading-page-empty{
  grid-column:1/-1;
  border:1px dashed var(--line);
  border-radius:22px;
  padding:48px 24px;
  text-align:center;
  color:#847b6d;
}
.reading-page-empty strong{
  display:block;
  font-family:"Libre Baskerville";
  color:var(--ink);
  margin-bottom:7px;
}
@media(max-width:700px){
  .reading-page-list{grid-template-columns:1fr}
  .reading-toolbar{align-items:flex-start;flex-direction:column}
}

.reading-list-link{
  font-size:10px;
  color:var(--navy);
  text-decoration:none;
  white-space:nowrap;
}
.reading-list-link:hover{text-decoration:underline;text-underline-offset:3px}
.reading-list-preview{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.reading-preview-card{
  border:1px solid var(--line);
  border-radius:16px;
  padding:13px;
  background:rgba(255,255,255,.16);
  display:flex;
  align-items:center;
  gap:10px;
}
.reading-preview-icon{
  width:38px;height:38px;
  flex:0 0 38px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--navy);
  color:#eadab5;
  font-size:15px;
}
.reading-preview-card strong{
  display:block;
  font-size:10px;
  line-height:1.35;
}
.reading-preview-card small{
  display:block;
  margin-top:3px;
  color:#81796b;
  font-size:8px;
  line-height:1.35;
}
.reading-preview-empty{
  grid-column:1/-1;
  border:1px dashed var(--line);
  border-radius:16px;
  padding:18px;
  color:#847b6d;
  font-size:9px;
  text-align:center;
}
@media(max-width:760px){
  .reading-list-preview{grid-template-columns:1fr}
}

.live-search-section{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:34px 0 40px;
}
.live-search-source{
  font-size:8px;
  color:#918878;
  letter-spacing:.05em;
}
.book-search-bar{
  display:grid;
  grid-template-columns:1fr auto;
  gap:9px;
  max-width:760px;
}
.book-search-input-wrap{
  position:relative;
}
.book-search-input-wrap input{
  width:100%;
  margin:0;
  padding:14px 16px 14px 42px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.28);
  font-size:13px;
}
.book-search-icon{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  color:#807767;
  font-size:18px;
  pointer-events:none;
}
.search-status{
  min-height:18px;
  margin:11px 0 16px;
  font-size:9px;
  color:#807768;
}
.search-status.error{color:var(--rust)}
.live-results{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:13px;
}
.live-book-card{
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.18);
  min-width:0;
}
.live-cover{
  height:205px;
  background:#cdbf9f;
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  color:#6f675a;
  font-family:"Libre Baskerville";
  font-size:10px;
  text-align:center;
  padding:18px;
}
.live-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  position:absolute;
  inset:0;
}
.live-book-copy{padding:13px}
.live-book-copy h3{
  font-size:13px;
  line-height:1.35;
  margin:0 0 4px;
}
.live-book-copy p{
  font-size:8px;
  color:#7c7467;
  line-height:1.45;
  margin:0 0 10px;
}
.live-book-meta{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.live-book-meta span{
  font-size:7px;
  padding:4px 6px;
  border-radius:999px;
  background:#e9dec4;
  color:#6e6659;
}
.live-save{
  width:100%;
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px;
  background:transparent;
  font:inherit;
  font-size:8px;
  color:var(--ink);
  cursor:pointer;
}
.live-save.saved{
  background:var(--navy);
  border-color:var(--navy);
  color:#f0e3c5;
}
.load-more-books{
  display:block;
  margin:18px auto 0;
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 15px;
  background:rgba(255,255,255,.2);
  color:var(--ink);
  font:inherit;
  font-size:9px;
  cursor:pointer;
}
.live-search-loading{
  grid-column:1/-1;
  padding:28px;
  border:1px dashed var(--line);
  border-radius:18px;
  text-align:center;
  color:#81786a;
  font-size:9px;
}
@media(max-width:900px){.live-results{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){
  .live-results{grid-template-columns:repeat(2,1fr)}
  .book-search-bar{grid-template-columns:1fr}
}

.is-hidden-field{display:none !important;}

/* STAMBD brand treatment */
.brand,.logo,.site-name{letter-spacing:.14em;}


/* Logo 2 branding variant — circular crescent passport seal */
.brand-logo{
  width:48px;
  height:48px;
  object-fit:contain;
  display:block;
  flex:0 0 auto;
  filter:drop-shadow(0 2px 4px rgba(24,48,68,.10));
}
.brand-logo-2{border-radius:50%}
.brand-wordmark{
  font-family:"Libre Baskerville",serif;
  letter-spacing:.08em;
  font-size:14px;
  color:var(--navy);
}
.site-header .brand{gap:9px}
.site-header .header-inner{height:84px}
footer .brand-logo{width:42px;height:42px}
footer .brand-wordmark{font-size:12px}
.auth-brand{
  justify-content:center;
  flex-direction:column;
  gap:9px;
  margin-bottom:22px;
}
.auth-brand .brand-logo{width:108px;height:108px}
.auth-brand .brand-wordmark{font-size:18px}
@media (max-width:760px){
  .brand-logo{width:42px;height:42px}
  .brand-wordmark{font-size:12px}
  .site-header .header-inner{height:78px}
}
