
/* Version 0.5: design aligned with approved Kronängs IF mobile mockups */
:root{--surface:#fff;--line:#e8e8e8;--muted:#666;--shadow:0 5px 15px rgba(0,0,0,.10)}
body{background:#ededed;color:#111;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}
.app{max-width:720px;background:#fff}
.header{min-height:91px;padding:12px 17px 16px;border-bottom:none;background:rgba(255,255,255,.965)}
.header .watermark{width:230px;top:-82px;right:25px;opacity:.07}
.brand>img{width:54px;height:70px}.brand h1{font-size:clamp(19px,5vw,27px);letter-spacing:-.035em;font-weight:900}.underline{width:77px}
.content{padding:11px 17px 45px;background:#fff}
.updated{text-align:center;letter-spacing:.01em;font-size:12px;margin:5px 0 15px;color:#7a7a7a}
.hero{min-height:208px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:23px 24px;margin:5px 0 18px;border-radius:21px;box-shadow:0 5px 14px #0002;isolation:isolate;background:#151515}
.hero:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(0,0,0,.92) 0%,rgba(0,0,0,.82) 42%,rgba(0,0,0,.32) 100%),url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;filter:grayscale(1)}
.hero:after{content:'';position:absolute;z-index:-1;width:188px;height:188px;right:-15px;top:5px;opacity:.55;filter:grayscale(1) invert(1);background:url('assets/kif-logo.jpg') center/contain no-repeat;transform:rotate(-12deg)}
.hero strong{font-size:clamp(24px,5.2vw,32px);font-weight:900;letter-spacing:-.035em;line-height:1.14;max-width:72%}
.hero p{max-width:65%;font-size:14px;line-height:1.45;margin:9px 0 13px}
.hero button{padding:10px 17px;font-weight:800;border:0;border-radius:28px}
.heading{font-size:24px;margin:19px 0 10px;letter-spacing:-.035em}
.stats{gap:9px}.stat{min-height:104px;border-radius:18px;padding:13px 2px}.stat .emoji{height:28px;margin-bottom:5px}.stat b{font-size:24px}.stat span{font-size:11px;color:#222;font-weight:650}
.quick{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.tile{min-height:98px;border-radius:17px;padding:13px 3px;font-size:11px}.tile i{margin-bottom:10px}
.kif-news-slide{background-color:#101010;position:relative;color:#fff;border-radius:21px;overflow:hidden;min-height:230px;box-shadow:0 5px 16px #0002;padding:24px 23px;display:flex;flex-direction:column;justify-content:space-between;isolation:isolate;margin:9px 0 14px}
.kif-news-slide:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(0,0,0,.94),rgba(0,0,0,.70) 48%,rgba(0,0,0,.15) 100%),url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?auto=format&fit=crop&w=1200&q=80') center/cover;filter:grayscale(1)}
.kif-news-slide:after{content:'';position:absolute;z-index:-1;right:12px;bottom:-19px;width:140px;height:170px;background:url('assets/kif-logo.jpg') center/contain no-repeat;opacity:.53;filter:grayscale(1) invert(1);transform:rotate(-12deg)}
.kif-news-slide .eyebrow{font-weight:750;font-size:14px;margin:0 0 7px}.kif-news-slide h2{font-size:27px;letter-spacing:-.035em;line-height:1.1;max-width:68%;margin:0 0 10px}
.kif-news-slide p{font-size:13px;max-width:68%;line-height:1.5;margin:0 0 13px;color:#f0f0f0}.kif-news-slide button{border:0;border-radius:22px;background:#fff;color:#111;padding:10px 18px;font-weight:800;align-self:flex-start}
.kif-news-dots{display:flex;gap:7px;align-items:center;justify-content:center;position:absolute;bottom:12px;left:0;right:0}
.kif-news-dots button{width:9px;height:9px;border:0;padding:0;border-radius:50%;background:#777}.kif-news-dots button.active{background:#fff}
.kif-banner{position:relative;isolation:isolate;border-radius:18px;background:#111;color:white;padding:20px;min-height:126px;display:flex;align-items:center;gap:18px;overflow:hidden;box-shadow:0 5px 14px #0002;margin:17px 0}
.kif-banner:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(100deg,#121212 0%,rgba(0,0,0,.85) 45%,rgba(0,0,0,.22)),url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?auto=format&fit=crop&w=1000&q=75') center/cover;filter:grayscale(1)}
.kif-banner:after{content:'';position:absolute;right:5px;bottom:-33px;width:110px;height:155px;background:url('assets/kif-logo.jpg') center/contain no-repeat;filter:grayscale(1) invert(1);opacity:.43;z-index:-1}
.kif-banner-icon{flex:none}.kif-banner svg{width:40px;height:40px}.kif-banner-copy{flex:1;max-width:65%}.kif-banner strong{font-size:18px;font-weight:800}.kif-banner p{font-size:12px;line-height:1.4;margin:5px 0 0}.kif-banner button{border:0;border-radius:50%;width:41px;height:41px;background:#fff;font-size:20px}
.kif-day-head{display:flex;align-items:center;justify-content:space-between;gap:9px}.kif-day-head .heading{font-size:22px}.kif-day-head button{border:0;background:none;color:#777;font-size:12px;font-weight:650}
.kif-agenda{border:1px solid #eee;border-radius:18px;background:#fff;overflow:hidden;box-shadow:var(--shadow);margin:8px 0 17px}
.kif-agenda .activity{box-shadow:none;border:0;border-radius:0;margin:0;border-bottom:1px solid #e6e6e6;padding:13px 12px}.kif-agenda .activity:last-child{border-bottom:0}
.kif-agenda .activity .time{min-width:58px;font-size:14px}.kif-agenda .actbody b{font-size:13px}.kif-agenda .actbody small{font-size:11px}
.kif-activity-icon{flex:none;width:24px;height:24px;display:grid;place-items:center}.kif-activity-icon svg{width:23px;height:23px}
.kif-tags{display:flex;overflow-x:auto;gap:8px;padding:3px 0 12px;scrollbar-width:none}
.kif-tags button{border:1px solid #ececec;background:linear-gradient(#fff,#f8f8f8);border-radius:25px;padding:9px 14px;white-space:nowrap;display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:780;box-shadow:0 3px 8px #0001}
.kif-tags svg{width:20px;height:20px}
.kif-team-card{border:1px solid #e8e8e8;border-radius:19px;padding:14px;background:#fff;box-shadow:var(--shadow);min-width:0}
.kif-team-heading{display:flex;align-items:center;gap:10px;padding-bottom:10px;border-bottom:1px solid #eee}
.kif-team-jersey{display:grid;place-items:center;background:#f5f5f5;width:40px;height:40px;border-radius:50%;flex:none}.kif-team-jersey svg{width:27px;height:27px}
.kif-team-heading h3{font-size:22px;line-height:1;margin:0;font-weight:900}.kif-team-heading p{font-size:11px;margin:5px 0 0;color:#6a6a6a;line-height:1.3}
.kif-team-next{margin:12px 0;min-height:55px;font-size:12px}.kif-team-next p{display:flex;align-items:center;gap:5px;margin:6px 0;line-height:1.35}.kif-team-next svg{width:17px;height:17px;flex:none}
.kif-team-actions{display:flex;gap:4px;justify-content:space-between}
.kif-team-actions button{border:1px solid #e9e9e9;background:#f8f8f8;border-radius:22px;font-weight:650;padding:8px 7px;font-size:11px}
.kif-filters{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin:10px 0 15px;padding-bottom:6px}.kif-filters button{border:1px solid #e2e2e2;background:#fff;border-radius:25px;padding:9px 15px;white-space:nowrap;box-shadow:0 2px 5px #0001;font-weight:650;font-size:12px}.kif-filters button.active{color:white;background:#111}
.kif-search{display:flex;align-items:center;gap:9px;border:1px solid #dfdfdf;border-radius:16px;padding:0 14px;background:linear-gradient(130deg,#f5f5f5,#fff);height:49px}
.kif-search svg{width:21px;height:21px;flex:none}.kif-search input{border:0;background:none;outline:none;width:100%;font-size:14px;min-width:0}
.kif-section-heading{display:flex;align-items:center;justify-content:space-between}.kif-section-heading .heading{margin:17px 0 10px}.kif-section-heading small{color:#666}
.kif-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:12px 0 17px}
.kif-week button{border:1px solid #eee;border-radius:16px;background:#fff;box-shadow:0 3px 8px #0001;padding:13px 2px;min-width:0}
.kif-week button.active{background:#111;color:#fff}.kif-week .label{font-size:11px;font-weight:750}.kif-week b{display:block;font-size:19px;margin:4px 0}.kif-week .month{font-size:10px}
.kif-calendar-filter{display:grid;grid-template-columns:1fr auto;gap:8px;margin:12px 0 4px}
.kif-calendar-filter select{width:100%;padding:11px;border-radius:13px;border:1px solid #ddd;background:#fff;font-size:13px}
.kif-calendar-filter button{padding:10px 13px;border:1px solid #ddd;background:#fff;border-radius:13px;font-size:12px;font-weight:700}
.kif-menu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0 22px}
.kif-menu-grid button{border:1px solid #e7e7e7;border-radius:18px;background:#fff;box-shadow:var(--shadow);min-height:105px;padding:12px 3px;font-weight:750;font-size:11px}
.kif-menu-grid svg{display:block;width:29px;height:29px;margin:0 auto 11px}
.kif-profile{background:#161616;color:#fff;border-radius:18px;padding:19px;display:flex;align-items:center;gap:15px}
.kif-profile svg{width:34px;height:34px}.kif-profile strong{display:block;font-size:19px}.kif-profile p{font-size:12px;margin:0 0 4px;color:#ddd}
.kif-member-placeholder{text-align:center;padding:28px 18px;border-radius:20px;border:1px solid #ececec;background:#fff;box-shadow:var(--shadow)}.kif-member-placeholder svg{width:42px;height:42px;margin-bottom:10px}.kif-member-placeholder h2{font-size:21px;margin:5px}.kif-member-placeholder p{font-size:13px;line-height:1.5;color:#666}
.tabbar{max-width:720px}.tabbar button.active{background:#ededed}.tabbar button{font-size:12px}.tabbar svg{width:24px;height:24px}
@media(max-width:420px){.content{padding:9px 12px 40px}.header{padding:10px 11px}.quick{gap:5px}.tile{font-size:10px}.kif-menu-grid{gap:6px}.kif-news-slide{min-height:212px}.kif-news-slide h2{font-size:24px}.kif-team-card{padding:11px}.kif-team-jersey{width:34px;height:34px}.kif-team-heading h3{font-size:20px}.kif-team-actions button{font-size:10px;padding:7px 4px}.kif-week{gap:3px}.kif-week button{border-radius:12px;padding:10px 1px}}
@media(max-width:355px){.stats{grid-template-columns:repeat(2,1fr)}.quick{grid-template-columns:repeat(3,1fr)}.kif-menu-grid{grid-template-columns:repeat(3,1fr)}.teams{grid-template-columns:1fr}}


/* v0.6 – Mitt lag och livfullare bottenikoner */
.kif-favorite-tip{font-size:12px;color:#666;line-height:1.45;margin:2px 1px 13px}
.kif-favorite-spotlight{display:block;margin-bottom:14px}
.kif-favorite-spotlight .kif-team-card{position:relative;border:2px solid #161616;box-shadow:0 9px 23px rgba(0,0,0,.13);overflow:hidden;background:linear-gradient(105deg,#fff 0%,#fff 53%,#f1f1f1 100%)}
.kif-favorite-spotlight .kif-team-card:after{content:'';position:absolute;right:-16px;top:0;bottom:0;width:33%;background:url('assets/kif-logo.jpg') center/contain no-repeat;filter:grayscale(1);opacity:.06;pointer-events:none}
.kif-favorite-spotlight .kif-team-next,.kif-favorite-spotlight .kif-team-actions{position:relative;z-index:1}
.kif-favorite-spotlight .kif-team-next{min-height:0}
.kif-favorite-spotlight .kif-team-actions{justify-content:flex-start;gap:9px}
.kif-favorite-spotlight .kif-team-actions button{padding:8px 16px}
.kif-my-team-badge{display:inline-flex;align-items:center;font-size:11px;line-height:1;font-weight:800;border-radius:20px;background:#111;color:#fff;padding:6px 10px;margin-top:6px;white-space:nowrap}
.kif-team-heading h3{display:block}
.kif-star-btn{border:1px solid #ddd;background:#fafafa;color:#7b7b7b;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;font-size:25px;line-height:1;flex:none;transition:background .15s,color .15s,transform .15s}
.kif-star-btn.selected{background:#111;color:#fff;border-color:#111}
.kif-star-btn:active{transform:scale(.91)}
.kif-team-heading .smallbutton{font-size:18px;background:transparent;box-shadow:none;border:0;padding:4px 6px}
.tabbar{background:rgba(255,255,255,.985);border-top:1px solid #ececec;box-shadow:0 -10px 24px rgba(0,0,0,.055)}
.tabbar button{position:relative;padding:9px 2px 10px;font-weight:700;letter-spacing:-.02em;transition:background .2s ease,transform .2s ease}
.tabbar button i{height:32px;margin:0 0 7px;display:grid;place-items:center}
.tabbar button svg{width:26px;height:26px;stroke-width:2.25;filter:drop-shadow(0 2px 1px rgba(0,0,0,.09));transition:transform .2s ease,filter .2s ease}
.tabbar button.active{background:linear-gradient(145deg,#ececec,#f6f6f6);color:#000;font-weight:900;box-shadow:inset 0 1px 2px #fff,0 2px 9px #00000009}
.tabbar button.active svg{transform:scale(1.14);stroke-width:2.7;filter:drop-shadow(0 2px 2px rgba(0,0,0,.17))}
.tabbar button:active svg{transform:scale(.95)}
@media(max-width:380px){.kif-team-heading{gap:6px}.kif-star-btn{width:32px;height:32px;font-size:22px}.kif-favorite-spotlight .kif-team-actions{gap:5px}.kif-favorite-spotlight .kif-team-actions button{padding:8px 10px}}


/* v0.7 – Mitt lag follows the visitor from start page to calendar */
.kif-my-team-home{position:relative;overflow:hidden;border-radius:20px;background:linear-gradient(110deg,#141414,#303030);color:white;padding:17px 18px 18px;margin:17px 0 18px;box-shadow:0 7px 20px #0002;isolation:isolate}
.kif-my-team-home:after{content:'';z-index:-1;position:absolute;right:-10px;top:-54px;width:190px;height:190px;background:url('assets/kif-logo.jpg') center/contain no-repeat;filter:grayscale(1) invert(1);opacity:.12;transform:rotate(-12deg)}
.kif-my-team-home-top{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-bottom:13px}
.kif-my-team-overline{background:#fff;color:#111;padding:6px 10px;border-radius:25px;font-weight:800;font-size:11px;white-space:nowrap}
.kif-my-team-name{font-weight:900;font-size:23px;letter-spacing:-.03em}
.kif-my-team-upcoming{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.kif-my-team-upcoming>span{display:flex;align-items:center;gap:9px;background:#ffffff14;border:1px solid #ffffff2a;border-radius:12px;padding:11px 10px;min-width:0}
.kif-my-team-upcoming svg{width:22px;height:22px;flex:none}
.kif-my-team-upcoming small{display:block;color:#dedede;font-size:10px;margin-bottom:3px}
.kif-my-team-upcoming strong{display:block;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.kif-my-team-home-actions{display:flex;align-items:center;gap:9px;margin-top:14px}
.kif-my-team-home-actions button{background:#fff;color:#111;border:0;border-radius:23px;padding:10px 14px;font-size:12px;font-weight:800}
.kif-my-team-home-actions button+button{background:#ffffff24;color:#fff;border:1px solid #ffffff55}
.kif-calendar-shortcuts{display:flex;gap:8px;margin:15px 0 10px}
.kif-calendar-shortcuts button{border-radius:22px;background:#fff;color:#111;border:1px solid #e5e5e5;padding:9px 13px;font-weight:750;font-size:12px}
.kif-calendar-shortcuts button.active{background:#161616;color:#fff;border-color:#161616}
@media(max-width:390px){.kif-my-team-upcoming{grid-template-columns:1fr}.kif-my-team-home-actions{flex-wrap:wrap}.kif-my-team-upcoming>span{padding:8px 11px}}

/* v0.8 • iPhone: stjärnan ensam till höger, inga överlappande lagknappar */
.kif-team-card{min-width:0;overflow:hidden}
.kif-team-heading{display:grid!important;grid-template-columns:38px minmax(0,1fr) 36px!important;align-items:start!important;gap:9px!important}
.kif-team-jersey{width:38px;height:38px}
.kif-team-heading>div{min-width:0!important}
.kif-team-heading h3{font-size:clamp(17px,4.7vw,22px);line-height:1.1;overflow-wrap:anywhere;word-break:normal;hyphens:auto;margin:0 0 4px}
.kif-team-heading p{overflow-wrap:anywhere;margin:5px 0 0;line-height:1.3}
.kif-star-btn{grid-column:3;grid-row:1;justify-self:end;align-self:start;margin:0;width:36px;height:36px;min-width:36px;min-height:36px;z-index:2;position:relative;padding:0;font-size:24px}
.kif-team-heading .smallbutton{display:none!important}
.kif-team-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px!important;min-width:0}
.kif-team-actions button{min-width:0;width:100%;max-width:100%;font-size:clamp(9px,2.35vw,11px)!important;padding:9px 2px!important;white-space:nowrap;overflow:hidden;text-overflow:clip;text-align:center}
.kif-team-next p{align-items:flex-start!important;overflow-wrap:anywhere;word-break:normal}
.kif-team-next span{min-width:0}
.kif-favorite-spotlight .kif-team-actions{display:flex!important;justify-content:flex-start;flex-wrap:wrap}
.kif-favorite-spotlight .kif-team-actions button{width:auto;max-width:100%;min-width:75px;padding:9px 14px!important}
@media(max-width:440px){.kif-team-card{padding:12px 10px}.kif-team-heading{grid-template-columns:33px minmax(0,1fr) 34px!important;gap:6px!important}.kif-team-jersey{width:33px;height:33px}.kif-team-jersey svg{width:25px;height:25px}.kif-star-btn{width:34px;height:34px;min-width:34px;min-height:34px;font-size:23px}.kif-team-actions{gap:3px!important}.kif-team-actions button{font-size:10px!important;padding:8px 0!important;letter-spacing:-.03em}.kif-favorite-spotlight .kif-team-actions button{font-size:11px!important;padding:9px 13px!important}}
