/*
    Gluggi dagsins (/jol/{dagur}), TG v7. Nákvæmlega eftir lokaútgáfu Gunnars (fyrirmyndin 27.11.2026):
    einn dálkur alls staðar (max 540 px), byggt ofan á site.css. Engin ný litapalletta.
    Allt er undir .jgl (síðan) eða body.jgl-sida, svo nöfnin rekast ekki á site.css (.dyr, .big, .hint, .svor, .svar, .hak).
*/
body.jgl-sida .hfull { padding-bottom: clamp(330px, 34vw, 520px); }

.jgl .jh { text-align: center; padding-top: 32px; }
/* toppurinn: sama appelsínugula hurð og „í dag“ í dagatalinu */
.jgl .kick { display: inline-flex; align-items: center; gap: 12px; }
.jgl .kd { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: 16px; color: #fff; background: var(--ljos);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, .28), 0 0 22px rgba(234, 88, 12, .6); }
.jgl .kd.gull { background: #ffd56e; color: #7a3a0a; box-shadow: 0 0 0 3px rgba(255, 213, 110, .3), 0 0 22px rgba(255, 213, 110, .6); }
.jgl .kick span { font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #ffb37a; }
.jgl .jh h1 { margin: 14px auto 0; font-size: 64px; max-width: 16ch; text-wrap: balance; }
.jgl .gx { margin: 10px 0 0; color: #c9d5f0; font-size: 16px; }
.jgl .jprufa { display: inline-block; margin: 12px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--night); background: var(--win); border-radius: 999px; padding: 5px 10px; }

/* glerspjaldið: einn dálkur, miðjað, passar utan um innihaldið (engin föst lágmarkshæð) */
.jgl .gbox { max-width: 540px; margin: 22px auto 0; border-radius: 24px; padding: 20px; text-align: center; position: relative; overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .14)); border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 22px rgba(255, 255, 255, .12), 0 18px 40px rgba(3, 10, 30, .35);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: height .35s ease; }
.jgl .gbox * { box-sizing: border-box; }
.jgl .pane { animation: jgl-inn .3s ease; }
@keyframes jgl-inn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.jgl .jforskodun { background: var(--win); color: var(--night); border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 700; margin: 0 0 12px; line-height: 1.4; }
.jgl .qq { font-size: 23px; font-weight: 900; letter-spacing: -.025em; text-wrap: balance; line-height: 1.2; margin: 0 0 16px; color: #fff; }
.jgl .jsvor { display: grid; gap: 8px; }
.jgl .svar { width: 100%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff; border-radius: 14px; padding: 13px 10px;
    font: 800 16px/1.2 Inter, sans-serif; cursor: pointer; min-height: 50px; text-wrap: balance; }
.jgl .svar:hover { background: rgba(255, 255, 255, .2); }
.jgl .svar.val { background: #fff; color: var(--night); border-color: #fff; }
.jgl .svar.rangt { border-color: #ff8a8a; background: rgba(255, 90, 90, .2); }
.jgl .svar:focus-visible, .jgl .hak input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.jgl .jhint { font-size: 14px; color: #ffd0c0; font-weight: 700; margin: 10px 0 0; }
.jgl .jhint:empty { display: none; }
.jgl .wbtn { width: 100%; margin-top: 12px; }
.jgl .btn:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.jgl .jlokad { color: #d9e5ff; margin: 0; font-size: 15px; line-height: 1.5; text-wrap: balance; }
.jgl .jlokad b { display: block; color: #fff; font-size: 23px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 6px; }

/* formið */
.jgl .pott { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px 9px 14px; border-radius: 16px;
    background: rgba(11, 20, 48, .32); border: 1px solid rgba(255, 255, 255, .25); margin-bottom: 16px; min-width: 0; }
.jgl .pott .lb { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffb37a; white-space: nowrap; min-width: 0; }
.jgl .pott .lb b { font-size: 26px; letter-spacing: -.02em; color: #fff; line-height: 1; }
.jgl .stk { display: flex; align-items: center; gap: 8px; flex: none; padding-right: 5px; }
.jgl .tk { width: 52px; height: 30px; border-radius: 7px; background: #fff; position: relative; display: grid; place-items: center; color: var(--night);
    font-weight: 900; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(3, 10, 30, .35); flex: none; }
.jgl .tk::before, .jgl .tk::after { content: ""; position: absolute; top: 10.5px; width: 9px; height: 9px; border-radius: 50%; background: #3b4f93; }
.jgl .tk::before { left: -4.5px; }
.jgl .tk::after { right: -4.5px; }
.jgl .tk.plus { background: var(--ljos); color: #fff; }
.jgl .tk.nyr { animation: jgl-pop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes jgl-pop { from { translate: 0 -20px; scale: .6; opacity: 0; } to { translate: 0 0; scale: 1; opacity: 1; } }
.jgl .ok { font-size: 23px; font-weight: 900; letter-spacing: -.02em; margin: 0 0 14px; line-height: 1.2; text-wrap: balance; }
.jgl .inn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jgl .inn input { width: 100%; min-width: 0; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff; border-radius: 13px;
    padding: 12px 13px; font: 15px Inter, sans-serif; outline: 0; color-scheme: dark; }
.jgl .inn input::placeholder { color: #dbe6ff; }
.jgl .inn input:focus { border-color: #fff; }
.jgl .hak { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: #eef3ff; cursor: pointer; line-height: 1.3; text-align: left; position: relative; }
.jgl .hak input { position: absolute; opacity: 0; pointer-events: none; }
.jgl .hak i { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .75); flex: none; position: relative; transition: .15s; }
.jgl .hak input:checked + i { background: var(--ljos); border-color: var(--ljos); }
.jgl .hak input:checked + i::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.jgl .hak span { flex: 1; min-width: 0; text-wrap: balance; }
.jgl .hak em { font-style: normal; font-weight: 900; font-size: 12px; color: #fff; background: rgba(234, 88, 12, .85); border-radius: 999px; padding: 3px 8px; white-space: nowrap; flex: none; }
/* TG v10: aukamiði sem netfangið hefur þegar fengið: ekkert hak, engin „+1“, lítil lína undir textanum */
.jgl .hak .thl { display: none; }
.jgl .hak.thegar { cursor: default; }
.jgl .hak.thegar i, .jgl .hak.thegar em { display: none; }
.jgl .hak.thegar span { color: #b9c6e6; }
.jgl .hak.thegar .thl { display: block; font-size: 12px; color: #b9c6e6; margin-top: 2px; }
.jgl .smt { font-size: 12px; color: #b9c6e6; margin: 12px 0 0; text-wrap: balance; }
/* TG v9: aldurslínan við skráningarhnappinn og niðurtalning í lokuðum glugga */
.jgl .jaldur a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.jgl .jlokad .jnidur { display: inline-block; margin: 10px 0 0; font-size: 20px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.jgl .gildra { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* staðfesting */
.jgl .jbig { font-size: 27px; font-weight: 900; margin: 2px 0 0; letter-spacing: -.02em; text-wrap: balance; }
.jgl .jbig em { font-style: normal; color: #ffb37a; }
.jgl .sub { color: #d9e5ff; margin: 10px auto 0; font-size: 15px; max-width: 40ch; text-wrap: balance; line-height: 1.5; }
.jgl .cc { display: flex; justify-content: center; margin-top: 16px; }
.jgl .cc .btn { white-space: normal; max-width: 100%; text-wrap: balance; }
.jgl .okmsg { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 14px; font-weight: 700; color: #fff; background: rgba(11, 20, 48, .32);
    border: 1px solid rgba(255, 255, 255, .3); border-radius: 16px; padding: 10px 16px; text-wrap: balance; text-align: left; }
.jgl .okmsg i { width: 20px; height: 20px; border-radius: 50%; background: var(--ljos); flex: none; position: relative; }
.jgl .okmsg i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* dagatalið neðst */
.jgl .jdag { max-width: 540px; margin: 16px auto 0; border-radius: 20px; padding: 12px 14px 14px; background: rgba(11, 20, 48, .38); border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 34px rgba(3, 10, 30, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.jgl .jdag .dh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; white-space: nowrap; margin-bottom: 10px; font-size: 11px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase; color: #c9d5f0; }
.jgl .jdag .dh b { color: #ffb37a; letter-spacing: .06em; font-size: 12px; }
.jgl .jdyr { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.jgl .jdyr a, .jgl .jdyr span { height: 38px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; font-weight: 800; text-decoration: none; color: #c9d5f0;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18); transition: background .3s, transform .3s; }
.jgl .jdyr .lok { background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .35); border-color: rgba(255, 255, 255, .08); }
.jgl .jdyr .med { background: #ffd56e; color: #7a3a0a; border-color: #ffd56e; box-shadow: 0 0 14px rgba(255, 213, 110, .45); }
.jgl .jdyr .nu { background: var(--ljos); color: #fff; border-color: var(--ljos); box-shadow: 0 0 0 3px rgba(234, 88, 12, .3), 0 0 18px rgba(234, 88, 12, .55); }
.jgl .jdyr .nu.med { background: #ffd56e; color: #7a3a0a; border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 0 20px rgba(255, 213, 110, .7); }
.jgl .jdyr .nu.med.kvikn { animation: jgl-kvikn .6s ease; }
.jgl .jdyr .st { position: relative; }
.jgl .jdyr .st::after { content: "★"; position: absolute; top: -7px; right: -4px; font-size: 12px; color: #ffd56e; }
.jgl .jdyr a:hover { background: rgba(255, 255, 255, .2); }
.jgl .jdyr a.med:hover, .jgl .jdyr a.nu:hover { filter: brightness(1.06); }
@keyframes jgl-kvikn { 0% { transform: scale(.8); } 60% { transform: scale(1.15); } 100% { transform: none; } }
.jgl .hug { margin: 11px 0 0; font-size: 12.5px; color: #c9d5f0; text-align: center; text-wrap: balance; line-height: 1.45; }
.jgl .under { display: flex; justify-content: center; gap: 18px; font-size: 14px; margin-top: 12px; }
.jgl .under a { color: #d9e5ff; text-decoration: none; }
.jgl .under a:hover { color: #fff; }

/* afskráningarsíðan notar sama glerspjald */
.jgl .jafskra { margin-top: 26px; }
.jgl .jafskra p { margin: 0 0 14px; color: #eef3ff; font-size: 16px; line-height: 1.5; text-wrap: balance; }
.jgl .jafskra form { margin: 0; }

/* Lág tölvuskjár (t.d. 1440×900): sama útlit, aðeins þéttari lóðrétt bil, svo gluggi með tveggja lína gjöf og
   tveggja lína spurningu sést allur án þess að skruna. Hærri skjáir fá bil fyrirmyndarinnar óbreytt. */
@media (min-width: 601px) and (max-height: 940px) {
    .jgl .jh { padding-top: 14px; }
    .jgl .jh h1 { margin-top: 10px; }
    .jgl .gx { margin-top: 6px; }
    .jgl .gbox { margin-top: 16px; padding: 18px 20px; }
    .jgl .qq { margin-bottom: 12px; }
    .jgl .svar { min-height: 46px; padding: 11px 10px; }
    .jgl .jdag { margin-top: 12px; }
    .jgl .jdyr a, .jgl .jdyr span { height: 36px; }
    .jgl .under { margin-top: 8px; }
}

/* Sími (sama og „Sími“ í fyrirmyndinni) */
@media (max-width: 600px) {
    body.jgl-sida .wrap { padding-left: 16px; padding-right: 16px; }
    body.jgl-sida .hfull { padding-bottom: 220px; }
    body.jgl-sida .night.hfull > .scene { height: 290px; }
    .jgl .jh { padding-top: 22px; }
    .jgl .kd { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; }
    .jgl .kick { gap: 10px; }
    .jgl .kick span { font-size: 12px; letter-spacing: .16em; }
    .jgl .jh h1 { font-size: 38px; margin-top: 12px; }
    .jgl .gx { font-size: 14px; margin-top: 8px; }
    .jgl .gbox { padding: 16px; margin-top: 20px; border-radius: 22px; }
    .jgl .qq { font-size: 19px; margin-bottom: 14px; }
    .jgl .svar { min-height: 48px; padding: 11px; }
    .jgl .ok { font-size: 20px; }
    .jgl .inn { grid-template-columns: 1fr; }
    .jgl .pott { padding: 8px 10px 8px 12px; }
    .jgl .pott .lb { font-size: 11px; letter-spacing: .06em; gap: 8px; }
    .jgl .pott .lb b { font-size: 22px; }
    .jgl .stk { gap: 6px; }
    .jgl .tk { width: 40px; height: 24px; font-size: 8.5px; letter-spacing: .03em; border-radius: 5px; }
    .jgl .tk::before, .jgl .tk::after { top: 8px; width: 7px; height: 7px; }
    .jgl .tk::before { left: -3.5px; }
    .jgl .tk::after { right: -3.5px; }
    .jgl .hak { font-size: 13.5px; }
    .jgl .jbig { font-size: 23px; }
    .jgl .sub { font-size: 14px; }
    .jgl .jdag { padding: 10px 10px 12px; margin-top: 12px; }
    .jgl .jdag .dh { font-size: 10px; letter-spacing: .08em; }
    .jgl .jdag .dh b { font-size: 11px; letter-spacing: .04em; }
    .jgl .hug { font-size: 12px; }
    .jgl .jdyr { gap: 5px; }
    .jgl .jdyr a, .jgl .jdyr span { font-size: 12px; border-radius: 7px; height: 34px; }
}
@media (max-width: 380px) {
    .jgl .pott { padding: 8px 8px 8px 10px; }
    .jgl .pott .lb { letter-spacing: 0; font-size: 10.5px; }
    .jgl .pott .lb b { font-size: 20px; }
    .jgl .stk { gap: 5px; }
    .jgl .tk { width: 36px; }
    .jgl .jdag .dh { flex-wrap: wrap; white-space: normal; justify-content: center; row-gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
    .jgl .pane, .jgl .tk.nyr, .jgl .jdyr .nu.med.kvikn { animation: none; }
    .jgl .gbox { transition: none; }
}
