@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#173b29;background:#f8f4e9}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input,select{font:inherit}
.app{position:relative;z-index:1;width:min(100%,1080px);height:100dvh;margin:auto;padding:0 clamp(16px,3vw,34px);display:grid;grid-template-rows:58px minmax(0,1fr) 30px}
header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d9dfd0}.brand{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700}.brand b{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#e9bd55;border:3px solid #f9e9b5;font-family:'Playfair Display',serif;font-size:18px}#gear{border:0;background:#e8ecdf;color:#30553c;border-radius:50%;width:34px;height:34px;font-size:19px;cursor:pointer}
main{min-height:0;display:grid;grid-template-rows:minmax(95px,1.1fr) auto minmax(155px,1.5fr) auto auto;gap:clamp(7px,1.5vh,17px);padding:clamp(7px,1.5vh,20px) 0}.headline{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:0}.eyebrow{color:#ab7a1d;font-weight:700;font-size:10px;letter-spacing:.18em}.headline h1{font-family:'Playfair Display',serif;font-size:clamp(31px,4.9vw,62px);line-height:1.1;letter-spacing:-.035em;margin:10px 0 0;max-width:650px}.headline h1 em{color:#b98524}
.coin{flex:none;width:clamp(95px,18vw,205px);height:clamp(95px,18vw,205px);display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#fff0aa,#e9b946 34%,#aa7418 61%,#f5d47a 84%,#fff2ae);box-shadow:7px 10px 0 #9d752b,11px 15px 22px #745a2f58,inset 0 0 0 7px #f6d777,inset 0 0 0 10px #ad7b20;transform:rotate(-15deg);animation:bob 7s ease-in-out infinite}.coin>div{width:80%;height:80%;border:1px solid #9d7021;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(circle at 33% 24%,#fff2b2,#e5b74e 76%);color:#79500f}.coin strong{font-family:'Playfair Display',serif;font-size:clamp(26px,5vw,53px);line-height:1.15}.coin small{font-size:clamp(6px,.8vw,10px);letter-spacing:.12em;font-weight:700}
.rate{display:flex;align-items:center;gap:9px;min-height:34px;background:#e7eddf;border:1px solid #d8e1cd;border-radius:11px;padding:6px 13px;color:#365e44;font-size:12px}.rate>span:first-child{color:#bd8727}.rate #rate-date{margin-left:auto;color:#657d6b;font-size:10px;white-space:nowrap}.values{min-height:0;display:grid;grid-template-columns:1.14fr 1fr 1fr;gap:12px}.values article{min-width:0;border-radius:18px;padding:clamp(13px,2.5vw,26px);display:flex;flex-direction:column;justify-content:center;gap:9px;color:#fff;background:#28513a;box-shadow:0 9px 17px #193d2d1c}.values .rupees{background:#f0c75d;color:#173b29}.values .profit{background:#193f2e}.values label{font-weight:700;font-size:10px;letter-spacing:.15em;opacity:.8}.values strong{font-size:clamp(26px,3.6vw,45px);letter-spacing:-.05em;line-height:1.07;white-space:nowrap}.values small{font-size:11px;line-height:1.35;opacity:.76}
.facts{display:grid;grid-template-columns:repeat(3,1fr);background:#fffdf8;border:1px solid #e5e4d9;border-radius:14px;padding:13px 0;box-shadow:0 5px 16px #4f573013}.facts div{display:flex;align-items:center;justify-content:center;gap:12px;padding:0 10px;border-right:1px solid #e6e7dc}.facts div:last-child{border:0}.facts span{font-weight:700;color:#9c813d;font-size:9px;letter-spacing:.13em}.facts strong{font-size:13px;white-space:nowrap}.status{align-self:center;text-align:center;color:#6f8271;font-size:11px;margin:0;line-height:1.3}footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #d9dfd0;font-size:10px;color:#718674}
.coinfall{position:fixed;inset:0;overflow:hidden;pointer-events:none}.coinfall i{position:absolute;top:-25px;font-style:normal;color:#d0a2435c;animation:fall 17s linear infinite}.coinfall i:nth-child(1){left:8%;animation-delay:-1s}.coinfall i:nth-child(2){left:26%;animation-delay:-11s}.coinfall i:nth-child(3){left:43%;animation-delay:-5s}.coinfall i:nth-child(4){left:64%;animation-delay:-15s}.coinfall i:nth-child(5){left:82%;animation-delay:-8s}.coinfall i:nth-child(6){left:95%;animation-delay:-13s}@keyframes fall{to{transform:translateY(110vh) rotate(360deg)}}@keyframes bob{50%{transform:translateY(-7px) rotate(-12deg)}}
dialog{width:min(520px,calc(100vw - 26px));max-height:90dvh;overflow:auto;border:0;border-radius:19px;padding:0;box-shadow:0 24px 75px #173d2c70;background:#fffdf7;color:#173b29}dialog::backdrop{background:#112c20a6}#edit-form{padding:24px}.dialog-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:19px}.dialog-head h2{font-family:'Playfair Display',serif;font-size:30px;margin:4px 0 0}#close{border:0;background:#e9eee0;color:#315843;width:30px;height:30px;border-radius:50%;font-size:22px;cursor:pointer}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.fields label{font-size:11px;font-weight:700;color:#4d6955}.fields .wide{grid-column:1/-1}.fields small{display:block;font-size:10px;font-weight:400;margin-top:2px}.fields input,.fields select{width:100%;margin-top:6px;border:1px solid #ccd8c9;border-radius:8px;padding:9px 10px;background:#fff;color:#173b29;font-size:14px}.fields input:focus,.fields select:focus{outline:2px solid #d9ad49}.actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:19px}.actions button{border:0;cursor:pointer;font-size:12px;font-weight:700}#restore{background:transparent;color:#506b54;text-decoration:underline;padding:10px 0}.save{background:#1d4b33;color:#fff;border-radius:9px;padding:11px 18px}#edit-form p{font-size:10px;color:#708271;margin:17px 0 0}#edit-form a{color:#315b41}
@media(max-width:650px){.app{grid-template-rows:49px minmax(0,1fr) 26px}.brand{font-size:11px}main{grid-template-rows:minmax(95px,1fr) auto minmax(150px,1.45fr) auto auto;gap:7px;padding:7px 0}.headline h1{font-size:clamp(27px,7vw,43px);margin-top:7px}.coin{width:clamp(85px,25vw,135px);height:clamp(85px,25vw,135px);box-shadow:5px 7px 0 #9d752b,8px 10px 12px #745a2f58,inset 0 0 0 5px #f6d777,inset 0 0 0 8px #ad7b20}.coin strong{font-size:27px}.coin small{font-size:6px}.rate{font-size:10px;min-height:30px}.rate #rate-date{font-size:9px}.values{grid-template-columns:1fr 1fr;grid-template-rows:1fr .75fr;gap:7px}.values article{border-radius:13px;padding:11px;gap:5px}.values strong{font-size:clamp(21px,6vw,32px)}.values small{font-size:9px}.values .profit{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.values .profit strong{font-size:clamp(22px,6vw,31px)}.values .profit small{text-align:right}.facts{padding:8px 0}.facts div{display:block;text-align:center;padding:0 3px}.facts span{display:block;font-size:8px;margin-bottom:4px}.facts strong{font-size:10px}.status{font-size:9px}footer{font-size:8px}}
@media(max-width:370px){.headline h1{font-size:27px}.coin{width:85px;height:85px}.values strong{font-size:20px}.values .profit strong{font-size:21px}.rate{font-size:9px}.rate #rate-date{font-size:8px}}
@media(max-height:610px){.app{grid-template-rows:43px minmax(0,1fr) 23px}main{grid-template-rows:minmax(75px,1fr) auto minmax(125px,1.3fr) auto auto;gap:5px;padding:5px 0}.headline h1{font-size:clamp(25px,5vh,43px)}.coin{width:min(85px,15vh);height:min(85px,15vh)}.coin strong{font-size:23px}.values article{padding:9px}.values strong{font-size:clamp(19px,4.5vh,30px)}.facts{padding:5px 0}.status{font-size:8px}}
@media(prefers-reduced-motion:reduce){.coinfall{display:none}.coin{animation:none}}
.values{grid-template-columns:1fr 1fr}
.trend{display:flex;align-items:center;gap:9px;margin-top:clamp(9px,2vh,24px);padding-top:clamp(9px,2vh,24px);border-top:1px solid #ffffff35;font-size:clamp(12px,1.5vw,17px);font-weight:700;line-height:1.25;color:#d8e9dc}
.trend-arrow{font-size:1.4em;line-height:1;font-weight:700}.trend.loss{color:#ff9d91}.trend.gain{color:#a3e6ae}.trend.flat{color:#d8e9dc}
.inr-trend{border-top-color:#173b2935;color:#445444}.inr-trend.loss{color:#a42d2a}.inr-trend.gain{color:#17653e}.inr-trend.flat{color:#445444}
@media(max-width:650px){.values{grid-template-columns:1fr 1fr;grid-template-rows:1fr}.values article{justify-content:center}.values .dollars{gap:7px}.trend{font-size:11px;gap:5px;margin-top:7px;padding-top:9px}.trend-arrow{font-size:18px}}
@media(max-width:370px){.trend{font-size:10px}}
@media(max-height:610px){.trend{margin-top:5px;padding-top:5px}}
