/* hodo – iPad-layout (fra 744 px). Portræt: smal ikon-sidebjælke og stablede paneler.
   Landskab (fra 1024 px): bred sidebjælke og to kolonner med sidepanel til højre. */
@media (min-width:744px){
  /* ---- ramme ---- */
  .tb{flex:1;display:flex;min-height:0}
  .tb-main{flex:1;min-width:0;padding:28px 32px calc(40px + env(safe-area-inset-bottom))!important;display:flex;flex-direction:column;gap:22px}
  .tb-main > *{flex-shrink:0}
  .tb-solo{padding:max(32px,env(safe-area-inset-top)) 40px 48px!important}
  .tb-solo-in{max-width:900px;margin:0 auto;display:flex;flex-direction:column;gap:20px}
  .tb-solo[data-tb="pin"] .tb-solo-in{max-width:520px;min-height:100%;justify-content:center}
  .tb-solo[data-tb="profiles"] .fq-g2{grid-template-columns:repeat(auto-fit,minmax(180px,230px))!important;justify-content:center;gap:20px!important}
  .tb-brand-solo{display:flex;justify-content:center}
  .tb-narrow{max-width:760px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:16px}
  .tb-muted{font-weight:800;font-size:14px;color:#9A8F80}
  .tb-center{text-align:center;padding:16px}
  .tb-link{background:none;border:none;padding:0;font-size:15px;font-weight:800;color:#7A4DE0}
  .tb-title{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap}
  .tb-title h1{font-family:'Baloo 2';font-weight:800;font-size:34px;line-height:1;margin:0}
  .tb-title > div{font-weight:800;font-size:15px;color:#9A8F80}
  .tb-row-h{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
  .tb-row-h h2{font-family:'Baloo 2';font-weight:800;font-size:28px;margin:0;line-height:1.1}

  /* ---- sidebjælke ---- */
  .tb-rail{width:116px;flex-shrink:0;background:#FFF;border-radius:0 36px 36px 0;box-shadow:6px 0 30px rgba(80,50,20,.08);display:flex;flex-direction:column;align-items:center;gap:14px;padding:max(22px,env(safe-area-inset-top)) 10px max(18px,env(safe-area-inset-bottom));box-sizing:border-box;overflow-y:auto;z-index:5}
  .tb-brand{font-family:'Baloo 2';font-weight:800;font-size:26px;line-height:1;color:#5B4BD6;letter-spacing:-.02em}
  .tb-brand-solo{font-size:34px;text-align:center}
  .tb-me{background:none;border:none;padding:0;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;max-width:100%}
  .tb-av{width:64px;height:64px;border-radius:50%;border:4px solid;box-sizing:border-box;display:flex;align-items:center;justify-content:center;font-size:36px;overflow:hidden;flex-shrink:0}
  .tb-me-t{display:flex;flex-direction:column;align-items:center;line-height:1.1;min-width:0;max-width:100%}
  .tb-me-n{font-family:'Baloo 2';font-weight:800;font-size:16px;max-width:96px;white-space:normal!important;text-align:center;line-height:1.05}
  .tb-me-s{font-size:12px;font-weight:800;color:#9A8F80}
  .tb-coins{border:none;background:#FFF8EE;border-radius:20px;padding:8px 10px;display:flex;flex-direction:column;align-items:center;gap:2px;box-shadow:0 4px 0 #F0DFC4}
  .tb-coins b{font-family:'Baloo 2';font-weight:800;font-size:22px;line-height:1}
  .tb-coins span{font-size:11px;font-weight:800;color:#9A8F80}
  .tb-nav{display:flex;flex-direction:column;gap:6px;width:100%;margin-top:6px}
  .tb-rail-foot{margin-top:auto;display:flex;flex-direction:column;gap:6px;width:100%}
  .tb-navi{position:relative;border:none;background:transparent;border-radius:22px;padding:10px 4px 8px;display:flex;flex-direction:column;align-items:center;gap:3px;width:100%;transition:background .2s}
  .tb-navi.on{background:var(--bg)}
  .tb-navi-i{position:relative;font-size:30px;line-height:1;transition:transform .2s}
  .tb-navi.on .tb-navi-i{transform:scale(1.12)}
  .tb-navi-l{font-size:12px;font-weight:900;color:#9A8F80}
  .tb-navi.on .tb-navi-l{color:var(--ink)}
  .tb-lock{background:#2E2A4F}.tb-lock .tb-navi-l{color:#FFF}
  .tb-dot{position:absolute;top:-6px;right:-12px;min-width:20px;height:20px;border-radius:999px;background:#FF5A5A;border:2px solid #FFF;box-sizing:border-box;color:#FFF;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;padding:0 4px;font-family:'Nunito'}
  .tb-admin-h{display:none}

  /* ---- én bred kolonne ---- */
  .tb-podium-wrap{background:#FFF;border-radius:32px;padding:18px 22px 0;box-shadow:0 6px 0 #EFE2CD;overflow:hidden}
  .tb-podium-wrap > div:first-child{box-shadow:none!important;padding:0!important}
  .tb-podium-wrap .fq-grid-rest{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))!important;margin:0 -4px 18px;padding-top:14px;border-top:2px solid #F3EADC}
  .tb-podium-wrap .fq-grid-rest > button{box-shadow:none!important;background:#FFF8EE!important}
  .tb-list-2{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:8px 28px}
  .tb-two{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}

  /* ---- paneler ---- */
  .tb-panel{background:#FFF;border-radius:30px;padding:18px;box-shadow:0 6px 0 #EFE2CD;display:flex;flex-direction:column;gap:14px;min-width:0}
  .tb-panel-flat{padding:18px 14px}
  .tb-panel-flat > div:last-child{box-shadow:none!important;padding:0!important}
  .tb-panel-podium{padding:18px 18px 0;overflow:hidden}
  .tb-panel-podium > div:nth-child(2){box-shadow:none!important;padding:0!important}
  .tb-panel-podium .fq-grid-rest{grid-template-columns:1fr!important;margin-bottom:16px}
  .tb-panel-podium .fq-grid-rest > button{box-shadow:0 0 0 2px #F3EADC!important}
  .tb-panel-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
  .tb-panel-h h2{font-family:'Baloo 2';font-weight:800;font-size:22px;margin:0;line-height:1.1}
  .tb-panel-h h2 small{font-family:'Nunito';font-size:14px;color:#9A8F80;font-weight:800;margin-left:4px}
  .tb-panel-h button{background:none;border:none;padding:0;font-size:14px;font-weight:800;color:#7A4DE0}
  .tb-bar{display:block;width:100%;border-radius:999px;background:#F1E6D5;overflow:hidden}
  .tb-bar > span{display:block;height:100%;border-radius:999px;transition:width .6s}
  .tb-pill-btn{border:none;border-radius:18px;background:#D8F5E5;color:#1E7A48;font-weight:900;font-size:15px;padding:12px 14px;text-align:left}

  /* ---- hilsen ---- */
  .tb-greet{position:relative;border-radius:36px;padding:22px 28px;display:flex;align-items:center;gap:22px;overflow:hidden;color:#FFF;flex-shrink:0}
  .tb-greet-bubble{position:absolute;right:-40px;top:-60px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.15)}
  .tb-greet-av{width:104px;height:104px;border-radius:50%;background:#FFF;display:flex;align-items:center;justify-content:center;font-size:64px;flex-shrink:0;overflow:hidden;animation:bob 3s ease-in-out infinite}
  .tb-greet-t{position:relative;min-width:0}
  .tb-greet-h{font-family:'Baloo 2';font-weight:800;font-size:40px;line-height:1}
  .tb-greet-s{font-weight:800;font-size:17px;opacity:.95;margin-top:6px}

  /* ---- missioner ---- */
  .tb-tasks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
  .tb-task{position:relative;background:#FFF;border:none;border-radius:30px;padding:10px 10px 14px;display:flex;flex-direction:column;gap:10px;box-shadow:0 6px 0 #EFE2CD;text-align:left}
  .tb-task-img{border-radius:24px;height:124px;display:flex;align-items:center;justify-content:center;font-size:68px}
  .tb-task-t{font-weight:800;font-size:17px;line-height:1.15;padding:0 6px;min-height:39px}
  .tb-task-p{display:flex;align-items:center;gap:8px;padding:0 6px}
  .tb-task-p b{font-family:'Baloo 2';font-weight:800;font-size:22px;color:#D98500}
  .tb-done{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}
  .tb-done-i{background:#F6EEE1;border:none;border-radius:22px;padding:12px 8px 10px;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
  .tb-done-e{font-size:36px;filter:grayscale(.6);opacity:.6}
  .tb-done-t{font-weight:800;font-size:13px;color:#7C6F5E;max-width:100%}
  .tb-done-n{font-weight:800;font-size:12px;color:#A89D8C}

  /* ---- badges ---- */
  .tb-badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:12px 8px}
  .tb-badge{background:none;border:none;padding:0;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
  .tb-badge-c{width:70px;height:70px;border-radius:50%;background:#EFE8DC;border:4px dashed #D6CBB9;box-sizing:border-box;display:flex;align-items:center;justify-content:center;font-size:34px}
  .tb-badge-c > *{filter:grayscale(1);opacity:.4}
  .tb-badge.on .tb-badge-c{background:var(--bg);border:4px solid var(--ring);box-shadow:0 4px 0 var(--ring)}
  .tb-badge.on .tb-badge-c > *{filter:none;opacity:1}
  .tb-badge-l{font-weight:800;font-size:12px;max-width:100%;color:#A89D8C}
  .tb-badge.on .tb-badge-l{color:#2E2A4F}
  .tb-ring{--p:0;width:150px;height:150px;border-radius:50%;margin:0 auto;background:conic-gradient(#2FBF71 calc(var(--p)*1%),#F1E6D5 0);display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}
  .tb-ring::before{content:'';position:absolute;inset:16px;border-radius:50%;background:#FFF}
  .tb-ring b,.tb-ring span{position:relative}
  .tb-ring b{font-family:'Baloo 2';font-weight:800;font-size:44px;line-height:1}
  .tb-ring span{font-weight:800;font-size:14px;color:#9A8F80}

  /* ---- næste belønning / konkurrence ---- */
  .tb-goal{border:none;background:none;padding:0;display:flex;align-items:center;gap:14px;text-align:left;width:100%}
  .tb-goal-i{width:72px;height:72px;border-radius:22px;display:flex;align-items:center;justify-content:center;font-size:42px;flex-shrink:0}
  .tb-goal-b{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
  .tb-goal-n{font-weight:900;font-size:17px}
  .tb-goal-s{font-weight:800;font-size:13px;color:#9A8F80}
  .tb-comp{border:none;background:#5B4BD6;color:#FFF;border-radius:30px;padding:16px 22px;box-shadow:0 6px 0 #4335AE;display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;text-align:left;min-width:0;flex-shrink:0}
  .tb-comp-h{display:flex;align-items:center;gap:12px;min-width:200px;flex:1}
  .tb-comp-h > span{font-size:40px;line-height:1}
  .tb-comp-h > div{display:flex;flex-direction:column;min-width:0}
  .tb-comp-h b{font-weight:900;font-size:18px}
  .tb-comp-h small{font-weight:700;font-size:13px;opacity:.85}
  .tb-comp-me{font-weight:800;font-size:15px;background:rgba(255,255,255,.16);border-radius:14px;padding:8px 12px}
  .tb-comp-top{display:flex;gap:14px}
  .tb-comp-top > span{display:flex;align-items:center;gap:6px;font-family:'Baloo 2';font-weight:800;font-size:18px}
  .tb-comp-top i{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;overflow:hidden;font-style:normal}

  /* ---- fælles: opgavefliser ---- */
  .tb-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
  .tb-tile{position:relative;border:none;border-radius:26px;padding:16px 10px 14px;display:flex;flex-direction:column;align-items:center;gap:6px;box-shadow:0 5px 0 #EFE2CD;min-width:0}
  .tb-tile-e{font-size:50px;line-height:1.1}
  .tb-tile-t{font-weight:800;font-size:15px;line-height:1.15;text-align:center;color:#2E2A4F;min-height:35px;max-width:100%;overflow-wrap:anywhere}
  .tb-tile-p{font-family:'Baloo 2';font-weight:800;font-size:20px;color:#D98500;line-height:1}
  .tb-tile-b{position:absolute;top:-6px;right:-6px;background:#FF5A5A;color:#FFF;font-size:12px;font-weight:900;border-radius:999px;padding:2px 8px;box-shadow:0 2px 0 #C93E3E}

  /* ---- lister ---- */
  .tb-list{display:flex;flex-direction:column;gap:8px}
  .tb-li{display:flex;align-items:center;gap:10px;min-width:0;border:none;background:none;padding:4px 0;text-align:left;width:100%}
  .tb-li-btn{border-radius:16px}
  .tb-li-k{width:26px;text-align:center;font-family:'Baloo 2';font-weight:800;font-size:18px;color:#9A8F80;flex-shrink:0}
  .tb-li-av{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;overflow:hidden;flex-shrink:0}
  .tb-li-n{font-weight:800;font-size:16px;flex:1;min-width:0}
  .tb-li-c{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
  .tb-li b{font-family:'Baloo 2';font-weight:800;font-size:20px}
  .tb-li-r{color:#D98500}
  .tb-seg{display:grid;grid-template-columns:repeat(4,1fr);background:#F1E6D5;border-radius:16px;padding:4px;gap:4px}
  .tb-seg button{border:none;border-radius:12px;padding:9px 0;font-weight:800;font-size:14px;background:transparent}
  .tb-seg button.on{background:#FFF;box-shadow:0 2px 0 #E2D6C3}
  .tb-save{display:flex;align-items:center;gap:14px}
  .tb-save b{display:block;font-family:'Baloo 2';font-weight:800;font-size:46px;line-height:1}
  .tb-save span{font-weight:800;font-size:14px;color:#9A8F80}

  /* ---- pokaler ---- */
  .tb-hero{background:#5B4BD6;border-radius:36px;padding:24px 24px 0;color:#FFF;box-shadow:0 6px 0 #4335AE;overflow:hidden}
  .tb-hero-h{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .tb-hero-t{font-family:'Baloo 2';font-weight:800;font-size:32px;line-height:1}
  .tb-hero-s{font-weight:700;font-size:15px;opacity:.85;margin-top:4px}
  .tb-hero-pod{max-width:560px;margin:0 auto}
  .tb-live{display:flex;align-items:center;gap:6px;background:#FFF;color:#E54848;border-radius:999px;padding:5px 14px;font-weight:900;font-size:13px;flex-shrink:0}
  .tb-live i{width:9px;height:9px;border-radius:50%;background:#FF5A5A;animation:pulseDot 1.4s infinite}
  .tb-card-row{display:flex;align-items:center;gap:12px;background:#FFF;border-radius:24px;padding:12px 16px 12px 12px;box-shadow:0 4px 0 #EFE2CD;min-width:0}
  .tb-card-ic{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:30px;flex-shrink:0}

  /* ---- profil ---- */
  .tb-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  .tb-stat{background:#FFF;border-radius:26px;padding:16px;box-shadow:0 5px 0 #EFE2CD;display:flex;flex-direction:column;gap:2px}
  .tb-stat > span{font-size:28px}
  .tb-stat b{font-family:'Baloo 2';font-weight:800;font-size:36px;line-height:1}
  .tb-stat small{font-weight:800;font-size:14px;color:#9A8F80}

  /* ---- skærme der genbruger mobil-markup ---- */
  .tb-main .fq-g2{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))!important;gap:16px!important}
  .tb-main .fq-g3{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))!important}
  .tb-main .hscroll{margin:0;padding-left:0;padding-right:0}

  /* ---- administration ---- */
  .tb-admin-in{max-width:980px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:16px}
  .fq-arow-wrap{flex-wrap:nowrap!important}
  .fq-arow-wrap .fq-arow-t{min-width:0!important}

  /* ---- login / onboarding: kort i midten ---- */
  .fq-auth{max-width:560px;width:100%;margin:4vh auto;background:#FFFDF8;border:2px solid #F3EADC;border-radius:40px;padding:36px 40px!important;box-sizing:border-box;box-shadow:0 20px 60px rgba(80,50,20,.12)}

  /* ---- dialoger i stedet for bundark ---- */
  .fq-ov{justify-content:center!important;align-items:center;padding:40px;box-sizing:border-box}
  .fq-ov > div:first-child{position:absolute;inset:0;min-height:0!important}
  .fq-sheet{position:relative;width:100%;max-width:600px;border-radius:36px!important;padding:24px 30px 28px!important;box-shadow:0 30px 80px rgba(46,42,79,.35);max-height:100%!important}
  .fq-sheet > span:first-child{display:none!important}
  .fq-sheet-tall{max-width:700px;height:min(820px,100%)!important}
}

/* iPad landskab: bred sidebjælke med tekst ved siden af ikonerne, sidepanel til højre */
@media (min-width:1024px){
  .tb-rail{width:250px;align-items:stretch;padding-left:18px;padding-right:18px}
  .tb-brand{font-size:32px;padding:0 8px}
  .tb-me{flex-direction:row;gap:12px;padding:6px 8px;text-align:left}
  .tb-me-t{align-items:flex-start}
  .tb-me-n{font-size:20px;max-width:130px;text-align:left}
  .tb-av{width:58px;height:58px}
  .tb-coins{flex-direction:row;gap:10px;padding:10px 14px;justify-content:flex-start}
  .tb-coins b{font-size:26px}
  .tb-coins span{font-size:14px}
  .tb-navi{flex-direction:row;gap:14px;padding:12px 16px;justify-content:flex-start}
  .tb-navi-i{font-size:28px}
  .tb-navi-l{font-size:17px}
  .tb-admin-h{display:flex;flex-direction:column;padding:0 8px;min-width:0}
  .tb-admin-h small{font-size:11px;font-weight:900;letter-spacing:.08em;color:#9A8F80}
  .tb-admin-h b{font-family:'Baloo 2';font-weight:800;font-size:20px;line-height:1.1}
  .tb-main{padding:32px max(40px,calc((100% - 1120px)/2)) calc(40px + env(safe-area-inset-bottom))!important}
}
