:root{
  --bg:#080605;
  --bg-2:#120b08;
  --panel:rgba(255,255,255,.035);
  --line:rgba(255,255,255,.08);

  --text:#e6f2ff;
  --muted:rgba(191,216,242,.65);

  --gold:#d4ab68;
  --gold-soft:#e2c793;

  --baby-blue:#bfd8f2;
  --baby-blue-soft:#e6f2ff;
  --baby-blue-deep:#9fc5eb;
  --baby-blue-glow:rgba(191,216,242,.16);

  --shadow:0 28px 80px rgba(0,0,0,.42);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family:Inter,system-ui,sans-serif;
  color:var(--baby-blue-soft);
    background:
  radial-gradient(circle at 50% 80%, rgba(212,171,104,.10), transparent 30%),
  radial-gradient(circle at 20% 70%, rgba(191,216,242,.08), transparent 30%),
  radial-gradient(circle at 80% 60%, rgba(191,216,242,.06), transparent 25%),
  linear-gradient(180deg, #050404 0%, #0a0706 100%); 
  overflow-x:hidden;
}

a{
  color:inherit;
  text-decoration:none;
}

.cake-noise{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.05;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 6px);
  mix-blend-mode:soft-light;
  z-index:0;
}

.cake-topbar{
  position:sticky;
  top:0;
  z-index:30;

  display:flex;
  justify-content:center; /* 🔥 centrer alt */
  align-items:center;

  padding:18px 16px;

  background:rgba(8,6,5,.72);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.05);
}

.topbar-mark{
  font-family:"Cormorant Garamond", serif;
  letter-spacing:.18em;
  font-size:20px;
}


.topbar-actions{
  display:flex;
  gap:12px;

  justify-content:center;
  align-items:center;

  width:100%; /* 🔥 vigtigt */
  max-width:420px; /* 🔥 gør det pænt */
}

.cake-hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px 20px 50px;
  text-align:center;
}

.hero-glow{
  position:absolute;
  border-radius:999px;
  filter:blur(46px);
  pointer-events:none;
  opacity:.24;
}

.hero-glow-1{
  width:min(680px,90vw);
  height:220px;
  bottom:14%;
  left:50%;
  transform:translateX(-50%);
  background:radial-gradient(circle at center, rgba(212,171,104,.25), transparent 64%);
}

.hero-glow-2{
  width:380px;
  height:380px;
  top:8%;
  left:50%;
  transform:translateX(-50%);
  background:radial-gradient(circle at center, rgba(191,216,242,.12), transparent 70%);
}

.cake-stage{
  width:min(1020px,100%);
  position:relative;
  z-index:2;
}

.logo-wrap{
  display:flex;
  justify-content:center;
  margin-bottom:24px;
}

.cake-logo{
  display:block;
  width:min(560px,82vw);
  height:auto;
  margin:0 auto;
  filter:drop-shadow(0 24px 38px rgba(0,0,0,.36));
}

.eyebrow{
  margin:0 0 18px;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.36em;
  text-transform:uppercase;
}

.hero-title,
h2,
h3{
  font-family:"Cormorant Garamond", serif;
  font-weight:600;
  color:var(--baby-blue);
}

.hero-title{
  margin:0 auto 18px;
  max-width:940px;
  font-size:clamp(42px, 7vw, 88px);
  line-height:.95;
  letter-spacing:.01em;
}

.hero-sub{
  max-width:820px;
  margin:0 auto 28px;
  color:var(--muted);
  font-size:clamp(18px,2vw,22px);
  line-height:1.85;
}

.hero-actions{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:24px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:14px 26px;
  border-radius:999px;
  font-size:12px;
  letter-spacing:.24em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.1);
  transition:transform .2s ease, opacity .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn:hover{
  transform:translateY(-1px);
  opacity:.96;
}

.btn-gold{
  background:linear-gradient(
    135deg,
    var(--baby-blue) 0%,
    var(--gold-soft) 100%
  );
  color:#1e140e;
  border:none;
  box-shadow:0 12px 40px rgba(191,216,242,.25);
}

.btn-gold:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 50px rgba(191,216,242,.35);
}

.btn-dark{
  background:rgba(255,255,255,.03);
  color:var(--baby-blue-soft);
}

.btn-outline{
  background:rgba(255,255,255,.02);
  border-color:rgba(191,216,242,.35);
  color:var(--baby-blue-soft);
}

.btn-top{
  min-height:42px;
  padding:8px 16px;
  font-size:10px;
  letter-spacing:.25em;
}

.invite-note{
  margin-top:18px;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.2em;
  text-transform:uppercase;
  opacity:.8;
}

.signature-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin:22px auto 0;
  max-width:540px;
}

.signature{
  margin:0;
  font-family:"Parisienne", cursive;
  font-size:30px;
  color:var(--baby-blue-soft);
  white-space:nowrap;
  opacity:.96;
  text-shadow:0 0 22px rgba(191,216,242,.08);
}

.signature-line{
  flex:1;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(191,216,242,.55), transparent);
}

.chip-row{
  margin:30px auto 0;
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  max-width:960px;
}

.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
  color:rgba(191,216,242,.8);
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  transition:all .2s ease;
}

.chip:hover{
  transform:translateY(-1px);
  border-color:rgba(191,216,242,.35);
  color:var(--baby-blue-soft);
  background:rgba(191,216,242,.06);
}

.section,
.invite-panel,
.cake-footer{
  width:min(1180px, calc(100% - 32px));
  margin-left:auto;
  margin-right:auto;
}

.section{
  margin-top:42px;
  margin-bottom:36px;
}

.section-soft{
  margin-top:10px;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  margin-bottom:18px;
}

.section-head.center{
  justify-content:center;
  align-items:center;
  flex-direction:column;
  text-align:center;
}

.section-head h2{
  margin:0;
  font-size:clamp(34px,4vw,52px);
  line-height:.95;
}

.section-link{
  color:var(--baby-blue-soft);
  font-size:13px;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.category-card,
.recipe-card,
.invite-panel{
  border:1px solid var(--line);
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  box-shadow:var(--shadow);
  transition:border-color .2s ease, transform .2s ease;
}

.category-card:hover,
.recipe-card:hover,
.invite-panel:hover{
  border-color:rgba(191,216,242,.14);
}

.category-card{
  min-height:120px;
  padding:24px;
  display:flex;
  align-items:end;
  position:relative;
  overflow:hidden;
}

.category-card::before{
  content:"";
  position:absolute;
  inset:auto -10% -25% auto;
  width:220px;
  height:220px;
  background:radial-gradient(circle at center, rgba(212,171,104,.12), transparent 66%);
  filter:blur(10px);
}

.category-card span{
  position:relative;
  z-index:1;
  font-family:"Cormorant Garamond", serif;
  font-size:34px;
  color:var(--baby-blue);
}

.recipe-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.recipe-card{
  overflow:hidden;
}

.recipe-image{
  height:280px;
  border-bottom:1px solid rgba(255,255,255,.05);
  background-size:cover;
  background-position:center;
  transition:transform .4s ease;
}

.recipe-card:hover .recipe-image{
  transform:scale(1.04);
}

.recipe-image-1{
  background:
    linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.36)),
    radial-gradient(circle at 50% 44%, rgba(212,171,104,.16), transparent 40%),
    linear-gradient(135deg, #4a281d, #160f0d);
}

.recipe-image-2{
  background:
    linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.36)),
    radial-gradient(circle at 50% 44%, rgba(212,171,104,.14), transparent 40%),
    linear-gradient(135deg, #2f1b15, #0b0908);
}

.recipe-image-3{
  background:
    linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.36)),
    radial-gradient(circle at 50% 44%, rgba(212,171,104,.14), transparent 40%),
    linear-gradient(135deg, #5a2e1f, #140a08);
}

.recipe-copy{
  padding:22px;
}

.recipe-meta{
  display:block;
  margin-bottom:10px;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.24em;
  text-transform:uppercase;
}

.recipe-copy h3{
  margin:0 0 10px;
  font-size:34px;
  line-height:.95;
}

.recipe-copy p{
  margin:0;
  color:rgba(191,216,242,.7);
  line-height:1.75;
}

.invite-panel{
  margin-top:40px;
  margin-bottom:44px;
  padding:30px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:20px;
  align-items:center;
}

.invite-copy h2{
  margin:0 0 12px;
  font-size:clamp(34px,4vw,52px);
  line-height:.95;
}

.invite-copy p:last-child{
  margin:0;
  color:rgba(191,216,242,.7);
  line-height:1.8;
}

.invite-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:14px;
}

.invite-actions.center{
  justify-content:center;
  align-items:center;
}

.invite-note-right{
  margin-top:0;
}

.cake-footer{
  margin-bottom:24px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.06);
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  font-size:13px;
}

.freja-section{
  position:relative;
  margin-top:80px;
  padding-top:120px;
  text-align:center;
  overflow:hidden;
}

.freja-section::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:140px;
  background:linear-gradient(to bottom, #0b0b0b 0%, rgba(11,11,11,0) 100%);
  z-index:2;
}

.freja-section img{
  width:100%;
  max-width:500px;
  opacity:0.9;
  filter:brightness(0.9) contrast(1.05);
}

.hero-chef{
  opacity:0.35;
  filter:blur(2px);
  mask-image:linear-gradient(to top, black 40%, transparent 100%);
}

.chef-background{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  height:60vh;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
}

.chef-background img{
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  height:100%;
  opacity:0.48;
  filter:blur(3px) contrast(1.1) brightness(0.9);
}

.login-input:focus{
  border-color:rgba(191,216,242,.45);
  box-shadow:0 0 0 1px rgba(191,216,242,.16);
}

@media (max-width: 980px){
  .category-grid,
  .recipe-grid,
  .invite-panel{
    grid-template-columns:1fr;
  }

  .section-head,
  .invite-actions{
    align-items:flex-start;
  }

  .invite-actions{
    align-items:flex-start;
  }

  .topbar-actions{
  justify-content:center;
}
}

@media (max-width: 720px){
  .cake-topbar{
    padding:16px;
    flex-direction:column;
  }

  .hero-title{
    font-size:44px;
    line-height:1.05;
    letter-spacing:-0.3px;
  }

  .cake-hero{
    padding-top:40px;
  }

  .cake-logo{
    width:min(520px,90vw);
  }

  .category-card,
  .recipe-copy,
  .invite-panel{
    padding:22px;
  }

  .recipe-image{
    height:220px;
  }

  .signature{
    font-size:28px;
  }
}

.topbar-actions .btn{
  flex:1;
}

.login-hero{
  min-height:100vh;
}

.login-title{
  max-width:700px;
}

.login-sub{
  max-width:640px;
}

.login-panel{
  width:min(560px, 100%);
  margin:32px auto 0;
  padding:28px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  box-shadow:var(--shadow);
}

.login-form{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.login-input{
  width:100%;
  min-height:58px;
  padding:0 20px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:var(--baby-blue-soft);
  font-size:16px;
  outline:none;
  -webkit-appearance:none;
  appearance:none;
}

.login-input::placeholder{
  color:rgba(191,216,242,.45);
}

.login-input:focus{
  border-color:rgba(191,216,242,.45);
  box-shadow:0 0 0 1px rgba(191,216,242,.16);
}

.login-btn{
  width:100%;
}

.login-error{
  margin:0;
  color:#f0b3b3;
  font-size:14px;
  letter-spacing:.04em;
}

.login-signature{
  margin-top:28px;
}

@media (max-width: 720px){
  .login-panel{
    padding:22px;
  }
}
.login-form{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.login-input{
  width:100%;
  height:58px;
  padding:0 18px;

  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);

  background:rgba(255,255,255,.03);
  color:var(--baby-blue-soft);

  font-size:15px;
  letter-spacing:.04em;

  backdrop-filter:blur(10px);
}

.login-input::placeholder{
  color:rgba(191,216,242,.45);
}

.login-input:focus{
  border-color:rgba(191,216,242,.5);
  box-shadow:0 0 0 1px rgba(191,216,242,.2);
}

.login-btn{
  margin-top:6px;
  height:58px;
  font-size:12px;
  letter-spacing:.28em;
}

.login-success{
  margin:0;
  color:#bfe3c0;
  font-size:14px;
  letter-spacing:.04em;
  line-height:1.7;
}

/* ===== RANKING PAGE ONLY ===== */

/* ===== RANK PAGE ONLY ===== */

.rank-page .cake-hero{
  min-height:auto;
  padding:56px 20px 18px;
}

.rank-page .rank-podium-section{
  padding-top:10px;
}

.rank-page .rank-podium{
  width:min(1080px, calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 1.15fr 1fr;
  gap:20px;
  align-items:end;
}

.rank-page .podium-card{
  text-align:center;
  padding:24px 20px 22px;
  border-radius:28px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  box-shadow:var(--shadow);
}

.rank-page .podium-first{
  min-height:420px;
  transform:translateY(-10px);
}

.rank-page .podium-second,
.rank-page .podium-third{
  min-height:360px;
}

.rank-page .podium-medal{
  font-size:34px;
  margin-bottom:12px;
}

.rank-page .member-avatar{
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.05);
  font-family:"Cormorant Garamond", serif;
  color:var(--baby-blue-soft);
}

.rank-page .podium-avatar{
  width:96px;
  height:96px;
  margin:0 auto 12px;
  font-size:34px;
}

.rank-page .podium-avatar-large{
  width:124px;
  height:124px;
}

.rank-page .member-avatar.small{
  width:44px;
  height:44px;
  margin:0;
  font-size:18px;
}

.rank-page .member-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.rank-page .podium-name{
  margin:0 0 8px;
  font-family:"Cormorant Garamond", serif;
  font-size:42px;
  line-height:.95;
  color:var(--baby-blue);
}

.rank-page .podium-count{
  margin:0 0 18px;
  color:var(--muted);
  font-size:15px;
}

.rank-page .list{
  max-width:980px;
  margin:0 auto 50px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.rank-page .list-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:14px 18px;
  border-radius:20px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
}

.rank-page .list-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.rank-page .rank-number{
  width:28px;
  text-align:center;
  color:var(--muted);
  font-weight:600;
  flex:0 0 28px;
}

.rank-page .list-title{
  color:var(--baby-blue-soft);
}

.rank-page .list-sub{
  font-size:12px;
  color:var(--muted);
}

@media (max-width: 820px){
  .rank-page .rank-podium{
    grid-template-columns:1fr;
    gap:16px;
  }

  .rank-page .podium-first{
    order:1;
    min-height:auto;
    transform:none;
  }

  .rank-page .podium-second{
    order:2;
    min-height:auto;
  }

  .rank-page .podium-third{
    order:3;
    min-height:auto;
  }

  .rank-page .podium-name{
    font-size:36px;
  }
}

@media (max-width: 820px){
  .rank-page .rank-podium{
    grid-template-columns:1fr;
    gap:16px;
  }

  .rank-page .podium-first{
    order:1;
    min-height:auto;
    transform:none;
  }

  .rank-page .podium-second{
    order:2;
    min-height:auto;
  }

  .rank-page .podium-third{
    order:3;
    min-height:auto;
  }

  .rank-page .podium-name{
    font-size:36px;
  }
}

.recipe-rating-block{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.recipe-rating-summary{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.stars-display{
  position:relative;
  display:inline-block;
  line-height:1;
  font-size:26px;
  letter-spacing:2px;
}

.stars-base{
  color:rgba(255,255,255,.16);
}

.stars-fill{
  position:absolute;
  top:0;
  left:0;
  width:var(--rating-fill);
  overflow:hidden;
  white-space:nowrap;
  color:#e5c97b;
}

.rating-summary-meta{
  display:flex;
  align-items:baseline;
  gap:8px;
  color:var(--muted);
  font-size:14px;
}

.rating-summary-meta strong{
  color:var(--baby-blue);
  font-size:18px;
}

.recipe-rating-form{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}

.recipe-rating-label{
  color:var(--muted);
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.star-rate-input{
  display:inline-flex;
  flex-direction:row-reverse;
  gap:4px;
}

.star-rate-input input{
  display:none;
}

.star-rate-input label{
  font-size:34px;
  line-height:1;
  cursor:pointer;
  color:rgba(255,255,255,.18);
  transition:transform .15s ease, color .15s ease;
}

.star-rate-input label:hover,
.star-rate-input label:hover ~ label{
  color:#e5c97b;
  transform:translateY(-1px);
}

.star-rate-input input:checked ~ label{
  color:#e5c97b;
}

.rating-inline-success{
  color:#c6f0d5;
  font-size:14px;
}

.rating-login-note{
  color:var(--muted);
  margin:0;
}