/* The site's skin, drawn to the home page mockup (assets/concept/luckydeck-game/website-home/mockup-v1.jpg) and loaded by every
   page after style.css: the key visual with a slate-navy bar of links over it, silver-framed white panels with slate tabs for
   titles, grey and white with green for what is clicked or picked. The home page's own parts are in home.css. */
#page {
  --slate: #23314f;
  --slate-2: #33476f;
  --silver: #aeb8c2;
  --silver-2: #e3e8ee;
  --ink: #26303f;
  --green: #2f8f4e;
  --clover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 10q3 5 2 9' stroke='%231f6b3a' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3Cg fill='%2352b462' stroke='%231f6b3a' stroke-width='1.1'%3E%3Cpath d='M10 9.5C6 9.5 3 7.5 4.5 4.5S9.5 3.5 10 6.5C10.5 3.5 14 2 15.5 4.5S14 9.5 10 9.5z'/%3E%3Cpath d='M10 10.5C6 10.5 3 12.5 4.5 15.5S9.5 16.5 10 13.5C10.5 16.5 14 18 15.5 15.5S14 10.5 10 10.5z' transform='rotate(90 10 10)'/%3E%3C/g%3E%3C/svg%3E");
  position: relative;
  color: var(--ink);
}

/* ---------- key visual: the art is the page's own background; the header keeps only the logo, the bar of links under it ---------- */
body { background: linear-gradient(to bottom, rgba(207, 226, 246, 0) 560px, #cfe2f6 960px), url(img/home/key-visual.webp) center top / max(100%, 1440px) auto no-repeat, #cfe2f6; }
#page #header.kv { position: relative; height: 178px; margin-top: 6px; background: none; border: 0; box-shadow: none; }
#page .kv #logo { position: absolute; left: 50%; top: 4px; z-index: 1; transform: translateX(-50%); }
#page .kv #logo img { display: block; width: 300px; height: auto; filter: drop-shadow(0 3px 4px rgba(15, 30, 60, 0.45)); }

/* ---------- the bar of links over the key visual ---------- */
#page #nav { position: relative; z-index: 2; margin: 0 0 12px; height: 46px; gap: 0; padding: 3px;
  background: linear-gradient(#4a5f89 0, #2c3d63 50%, #22304f 51%, #1a2540 100%); border: 2px solid #dfe5eb; border-radius: 12px;
  box-shadow: 0 0 0 1px #6f7c8b, 0 4px 10px rgba(10, 20, 40, 0.45), inset 0 1px 0 #7d90b8; }
#page #nav li { position: relative; }
#page #nav li + li::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 1px; background: linear-gradient(transparent, #7d90b8, transparent); }
#page #nav a { padding-top: 4px; color: #fff; font-size: 14px; line-height: 18px; text-shadow: 0 1px 0 #0b1633; background: none; border: 0; border-radius: 9px; box-shadow: none; }
#page #nav small { color: #aebbd4; font-size: 8px; line-height: 11px; }
#page #nav a:hover { color: #fff; background: linear-gradient(#5f79ad, #3a5285); }
#page #nav li.on a { color: #fff; background: linear-gradient(#78b4ff 0, #3c86e8 50%, #2a6ccf 51%, #2a5fbd 100%); box-shadow: inset 0 1px 0 #b9dbff, 0 0 0 1px #13306a; }
#page #nav a:hover small, #page #nav li.on small { color: #e3efff; }

/* ---------- columns ---------- */
#page #main { gap: 16px; margin-top: 16px; }
#page #left > *, #page #center > *, #page #right > *, #page .auth-slot > * { margin-bottom: 16px; }

/* ---------- panels: a silver frame round white, the title a slate tab on a silver strip ---------- */
#page .win { background: #fff; border: 1px solid #98a4b1; border-radius: 9px; box-shadow: 0 0 0 3px var(--silver-2), 0 0 0 4px var(--silver), 0 4px 10px rgba(20, 35, 60, 0.22); }
#page .win-title { height: 36px; padding: 0 10px 0 0; overflow: hidden; border-radius: 8px 8px 0 0; color: #fff; background: linear-gradient(#f6f8fa, #d9e0e7); border-bottom: 1px solid #b9c3cd; }
#page .win-title > span { display: flex; align-items: center; gap: 7px; height: 100%; padding: 0 30px 0 12px; font: bold 15px/1 "Thonburi", "Leelawadee UI", Tahoma, sans-serif; letter-spacing: 0;
  text-shadow: 0 1px 0 #0b1633; background: linear-gradient(var(--slate-2), var(--slate)); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%); }
#page .win-title > span::before { content: ''; flex: none; width: 18px; height: 18px; background: var(--icon, var(--clover)) center / contain no-repeat; }
#page .win-title em { display: none; }
#page .win-more { padding: 2px 10px; font-size: 11px; font-weight: bold; color: var(--slate); background: linear-gradient(#fff, #e3e8ee); border: 1px solid #a3adb8; border-radius: 10px; }
#page .win-more:hover { color: var(--green); text-decoration: none; }
#page .win-body { padding: 10px; }
.t-news { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='%23fff'%3E%3Cpath d='M2 7h3l8-4.5v13L5 11H2z'/%3E%3Cpath d='M5.5 11.5l1.3 4h2.2l-1.3-4z'/%3E%3Crect x='14.2' y='7.6' width='2.6' height='2.8' rx='1'/%3E%3C/svg%3E"); }
.t-rank { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M2.5 14 1.5 5l4.2 3.2L9 3l3.3 5.2L16.5 5l-1 9z' fill='%23ffd84a' stroke='%23fff3b8' stroke-width='.8'/%3E%3C/svg%3E"); }
.t-event { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='%23fff'%3E%3Crect x='2' y='6.5' width='14' height='3.5' rx='.8'/%3E%3Crect x='3' y='10.5' width='12' height='6' rx='.8'/%3E%3Cpath d='M9 6.3C6 2 3.5 4 5.5 6.3zM9 6.3c3-4.3 5.5-2.3 3.5 0z'/%3E%3Crect x='8' y='6.5' width='2' height='10' fill='%2333476f'/%3E%3C/svg%3E"); }
.t-story { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='%23fff'%3E%3Cpath d='M1.5 3.5c3-1 5.5-.6 7 .8v11.2c-1.5-1.2-4-1.6-7-.6zM16.5 3.5c-3-1-5.5-.6-7 .8v11.2c1.5-1.2 4-1.6 7-.6z'/%3E%3C/svg%3E"); }
.t-chars { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='%23fff'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='12.5' cy='6.5' r='2.6'/%3E%3Cpath d='M1 16c0-4 2.2-6 5-6s5 2 5 6zM10.5 16c0-2-.4-3.6-1.2-4.8.9-.8 2-1.2 3.2-1.2 2.5 0 4.5 1.8 4.5 6z'/%3E%3C/svg%3E"); }
.t-card { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='3.5' y='1.5' width='11' height='15' rx='1.5' fill='%23fff'/%3E%3Cpath d='M9 5.5l2.5 3.5L9 12.5 6.5 9z' fill='%232f8f4e'/%3E%3C/svg%3E"); }

/* tabs inside a panel: silver, the picked one slate */
#page .tabs { gap: 3px; padding: 7px 10px 0; background: #eef2f6; border-bottom: 1px solid #b9c3cd; }
#page .tabs a { height: 24px; line-height: 22px; padding: 0 14px; color: #3c4756; border: 1px solid #b3bdc8; border-bottom: 0; border-radius: 6px 6px 0 0; background: linear-gradient(#ffffff, #dfe5eb); }
#page .tabs a:hover { color: var(--slate); background: linear-gradient(#ffffff, #e8f4eb); }
#page .tabs a.on { height: 25px; margin-bottom: -1px; color: #fff; text-shadow: 0 1px 0 #0b1633; border: 1px solid var(--slate); border-top: 1px solid var(--slate); background: linear-gradient(var(--slate-2), var(--slate)); }
#page .rank-win .tabs a { flex: 1; text-align: center; padding: 0 4px; }

/* the news list */
#page .list { min-height: 0; padding: 4px 10px 6px; }
#page .list li { height: 31px; gap: 9px; border-bottom: 1px dashed #d3dae2; }
#page .list li::before { display: none; }
#page .list a { color: var(--ink); font-size: 13px; }
#page .list a:hover { color: var(--green); }
#page .list time { color: #6b7686; font: 11px Tahoma, sans-serif; }
#page .tag { width: 54px; height: 19px; line-height: 17px; font-size: 11px; border-radius: 4px; }
#page .tag.t-notice { background: #d9402a; border-color: #8e2112; }
#page .tag.t-event { background: #2f9a4a; border-color: #1b6a2e; }
#page .tag.t-update { background: #2f6fc4; border-color: #1b4685; }
#page .card-week em { color: #fff; background: var(--slate); border-color: #0b1633; border-radius: 4px; }

/* the ranking */
#page .rank li { height: 31px; gap: 8px; font-size: 12px; border-bottom: 1px dashed #d3dae2; }
#page .rank i { width: 22px; height: 22px; font: bold 11px/20px Verdana, sans-serif; border-radius: 50%; color: #4a5566; background: #eef2f6; border-color: #b9c3cd; }
#page .rank span { color: var(--ink); }
#page .rank em { color: var(--green); font-size: 11px; }
#page .more-link { margin: 10px auto 0; width: 150px; height: 26px; line-height: 23px; border-radius: 13px; color: var(--slate); border-color: #98a4b1; background: linear-gradient(#ffffff, #dfe5eb); }

/* ---------- the left column: login, GAME START and the quick links ---------- */
.game-start-box { position: relative; padding: 18px 10px 10px; background: linear-gradient(#f7f9fb, #dfe5eb); border: 1px solid #98a4b1; border-radius: 12px;
  box-shadow: 0 0 0 3px var(--silver-2), 0 0 0 4px var(--silver), 0 4px 10px rgba(20, 35, 60, 0.22); }
.game-start-box::before { content: ''; position: absolute; top: -14px; left: 50%; width: 30px; height: 30px; transform: translateX(-50%); background: var(--clover) center / contain no-repeat; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3)); }
.game-start { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 108px; color: #fff;
  background: radial-gradient(120% 80% at 50% 10%, #a6f08a 0, #5ccb4f 35%, #2e9b3c 70%, #1f7d2d 100%); border: 3px solid #145c1f; border-radius: 16px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -4px 0 rgba(0, 0, 0, 0.18), 0 4px 0 #0f4718, 0 6px 10px rgba(0, 0, 0, 0.3); transition: transform 0.1s ease, filter 0.1s ease; }
.game-start b { font: bold 38px/1 Verdana, Tahoma, sans-serif; letter-spacing: 1px; color: #fff; -webkit-text-stroke: 1px #0f4718;
  text-shadow: 0 3px 0 #0f4718, -2px 0 #0f4718, 2px 0 #0f4718, 0 -2px #0f4718; }
.game-start:hover { text-decoration: none; filter: brightness(1.08); }
.game-start:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 1px 0 #0f4718; }
.game-start:focus-visible { outline: 3px solid #16264d; outline-offset: 3px; }

.quick-links { display: flex; flex-direction: column; gap: 8px; padding: 8px; background: linear-gradient(#f7f9fb, #e6ebf0); border: 1px solid #98a4b1; border-radius: 10px;
  box-shadow: 0 0 0 3px var(--silver-2), 0 0 0 4px var(--silver), 0 4px 10px rgba(20, 35, 60, 0.22); }
.quick-link { display: flex; align-items: center; gap: 10px; padding: 6px 8px; color: var(--ink); background: linear-gradient(#ffffff, #eef2f5); border: 1px solid #b9c3cd; border-radius: 8px; box-shadow: inset 0 1px 0 #fff; }
.quick-link img { flex: none; width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.quick-link span { display: flex; flex-direction: column; min-width: 0; }
.quick-link b { font-size: 15px; color: var(--slate); }
.quick-link small { font-size: 11px; color: #6b7686; }
.quick-link:hover { text-decoration: none; border-color: #5fb36f; background: linear-gradient(#ffffff, #e6f5e9); }

/* ---------- footer ---------- */
#page #footer { height: auto; margin-top: 0; padding: 10px 16px; align-items: center; gap: 16px; line-height: 1.6; color: #c9d3e3;
  background: linear-gradient(var(--slate-2), var(--slate)); border: 2px solid #dfe5eb; border-radius: 10px; box-shadow: 0 0 0 1px #6f7c8b; }
#page #footer .f-logo { width: 120px; height: auto; }
#page #footer > span:first-of-type { margin-right: auto; }

/* ---------- text, links and the thin bar along the top ---------- */
body { color: #26303f; }
a { color: #2a5fbd; }
a:hover { color: #2f8f4e; }
#topbar { background: linear-gradient(#2a3756, #1a2440); border-bottom: 1px solid #0b1633; color: #c9d3e3; }
#topbar a:hover { color: #9ee6a8; }
#topbar i { color: #5d6e93; }
.language-switch button.on { box-shadow: 0 0 0 2px #5fb36f; }

/* ---------- the title bar of a page ---------- */
#page .page-title { height: auto; min-height: 48px; padding: 8px 16px; align-items: center; background: linear-gradient(var(--slate-2), var(--slate));
  border: 2px solid #dfe5eb; border-radius: 10px; box-shadow: 0 0 0 1px #6f7c8b, 0 4px 10px rgba(20, 35, 60, 0.25); }
#page .page-title h1 { display: flex; align-items: center; gap: 8px; font: bold 21px/1.3 "Thonburi", "Leelawadee UI", Tahoma, sans-serif; color: #fff; text-shadow: 0 1px 0 #0b1633; }
#page .page-title h1::before { content: ''; flex: none; width: 24px; height: 24px; background: var(--clover) center / contain no-repeat; }
#page .page-title > span { color: #9fb0cf; }
#page .crumb, #page .crumb a { color: #c9d3e3; }
#page .crumb a:hover { color: #9ee6a8; }
#page #content.sub > * { margin-bottom: 16px; }

/* ---------- buttons: silver; the main one green ---------- */
#page .btn-mini { height: 24px; line-height: 21px; color: var(--slate); background: linear-gradient(#ffffff, #dfe5eb); border: 1px solid #98a4b1; border-radius: 6px; box-shadow: inset 0 1px 0 #fff; }
#page .btn-mini:hover { color: var(--green); filter: none; border-color: #5fb36f; background: linear-gradient(#ffffff, #e6f5e9); }
#page .btn-mini.pink { color: #fff; text-shadow: 0 1px 0 #145c1f; background: linear-gradient(#6fd06a, #2e9b3c); border-color: #1f6b2c; box-shadow: inset 0 1px 0 #b6f0a8; }
#page .btn-mini.pink:hover { color: #fff; filter: brightness(1.06); }
#page .btn-main { color: #fff; text-shadow: 0 1px 0 #0f4718, 0 -1px 0 #0f4718, 1px 0 #0f4718, -1px 0 #0f4718;
  background: linear-gradient(#7be36a 0, #43b54a 50%, #2e9b3c 51%, #22842f 100%); border: 2px solid #145c1f; border-radius: 8px; box-shadow: inset 0 1px 0 #c3f5b5, 0 3px 0 #0f4718; }
#page .btn-main:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #c3f5b5, 0 1px 0 #0f4718; }
#page .btn-main:focus-visible, #page .btn-img:focus-visible { outline-color: var(--slate); }
#page .btn-login { display: block; width: 100%; min-width: 0; height: 36px; margin: 10px 0 2px; }
#page .btn-logout { display: block; flex: none; width: 130px; margin: 10px auto 0; cursor: pointer; font-family: inherit; }

/* ---------- fields ---------- */
#page .login-fields input, #page .form input[type=text], #page .form input[type=email], #page .form input[type=password], #page .form select, #page .form textarea,
#page .community-form input[type=text], #page .community-form textarea, #page .community-form select, #page .profile-form input, #page .topup-pack.custom input {
  height: 28px; padding: 0 7px; color: var(--ink); background: #fff; border: 1px solid #a3adb8; border-radius: 5px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08); }
#page .form textarea, #page .community-form textarea { height: auto; padding: 6px 7px; }
#page .login-fields input:focus, #page .form input:focus, #page .form select:focus, #page .form textarea:focus,
#page .community-form input:focus, #page .community-form textarea:focus, #page .profile-form input:focus { background: #f3fbf4; border-color: #5fb36f; outline: none; }
#page .login-fields label, #page .form-row > label, #page .community-form label { color: var(--slate); }
#page .chk { color: #4b5563; }
#page .form-row .chk.terms { color: #3a4453; }
#page .login-links { border-top: 1px dashed #d3dae2; }

/* ---------- the member panel, servers and VIP banner ---------- */
#page .member-id { color: var(--green); }
#page .member-job, #page .odds, #page .lucky em { color: var(--green) !important; }
#page .member-info { background: #f7f9fb; border: 1px solid #c2c9cd; border-radius: 6px; }
#page .member-info dt { color: #6b7686; }
#page .member-info dd { color: var(--slate); }
#page .servers div { border: 1px dashed #c9d1da; border-bottom: 0; border-radius: 0; }
#page .servers div:first-child { border-radius: 6px 6px 0 0; }
#page .servers div:last-child { border-bottom: 1px dashed #c9d1da; border-radius: 0 0 6px 6px; }
#page .servers div:only-child { border-radius: 6px; }
#page .servers span, #page .lucky b { color: var(--slate); }
#page .vip-banner { border: 1px solid #98a4b1; border-radius: 9px; box-shadow: 0 0 0 3px var(--silver-2), 0 0 0 4px var(--silver), 0 4px 10px rgba(20, 35, 60, 0.22); }
#page .vip-banner .vip-head { background: linear-gradient(rgba(20, 30, 50, 0.8), rgba(20, 30, 50, 0)); }
#page .vip-banner .vip-perks { background: rgba(20, 30, 50, 0.78); }
#page .vip-banner .vip-perks li::before { background: #5cc46f; border-color: #1f6b2c; border-radius: 50%; }

/* ---------- page parts ---------- */
#page .muted { color: #8a94a3; }
#page .notice-box { color: #3c4756; background: #f1f5f8; border: 1px solid #c2c9cd; border-radius: 6px; }
#page .section-title { color: var(--slate); border-left: 4px solid var(--green); }
#page .frame, #page .wide-art, #page .post-picture { border: 2px solid #fff; border-radius: 8px; box-shadow: 0 0 0 1px #98a4b1, 0 3px 6px rgba(20, 35, 60, 0.18); }
#page .systems { border-top: 1px solid #c2c9cd; }
#page .systems dt, #page .systems dd { border-bottom: 1px dashed #d3dae2; }
#page .systems dt { color: var(--slate); background: #eef2f6; }
#page .article h2, #page .post-title, #page .post-comments-title, #page .post-sent h2, #page .policy h4 { color: var(--slate); }
#page .article-meta { color: #6b7686; border-bottom: 1px dashed #d3dae2; }
#page .form-row { border-bottom: 1px dashed #dde3ea; }
#page .faq details { border-bottom: 1px dashed #d3dae2; }
#page .faq summary { color: var(--slate); }
#page .faq summary:hover { color: var(--green); }
#page .shot-card { color: #6b7686; }
#page .shot-card b { color: var(--slate); }
#page .policy-table td:first-child { color: var(--slate); }

/* tables: a slate head, light rows, a pale green row under the pointer */
#page .tbl { background: #fff; border: 1px solid #b9c3cd; }
#page .tbl th, #page .tbl td { border-bottom: 1px dashed #dde3ea; }
#page .tbl thead th { color: #fff; text-shadow: 0 1px 0 #0b1633; background: linear-gradient(var(--slate-2), var(--slate)); border-bottom: 0; }
#page .tbl tbody th { color: var(--slate); background: #eef2f6; }
#page .tbl tbody tr:nth-child(even) td { background: #f6f8fa; }
#page .tbl tbody tr:hover td { background: #eef8f0; }
#page .tbl .strong, #page .tbl a { color: var(--slate); }
#page .tbl a:hover { color: var(--green); }

#page .pager-bar a { min-width: 24px; height: 24px; font: bold 11px/22px Verdana, sans-serif; color: var(--slate); background: linear-gradient(#ffffff, #e3e8ee); border: 1px solid #a3adb8; border-radius: 5px; }
#page .pager-bar a.on { color: #fff; background: linear-gradient(var(--slate-2), var(--slate)); border-color: var(--slate); }
#page .pager-bar a:hover:not(.on) { color: var(--green); border-color: #5fb36f; }

/* shop goods, characters, the card book */
#page .item, #page .char-slot { background: #fff; border: 1px solid #b9c3cd; border-radius: 9px; box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(20, 35, 60, 0.15); }
#page .item b, #page .char-slot b { color: var(--slate); }
#page .item small { color: #6b7686; }
#page .price, #page .shop-coins { color: var(--green); }
#page .badge { border-radius: 3px; }
#page .badge.hot { background: #2f8f4e; border-color: #1b6a2e; }
#page .char-slot { color: var(--green); }
#page .char-slot small { color: #6b7686; }
#page .char-slot.empty { background: #f1f4f7; border-style: dashed; }
#page .char-slot.empty b { color: #b3bdc8; }
#page .book-card { border-radius: 7px; box-shadow: 0 2px 4px rgba(20, 35, 60, 0.15); }
#page .book-card b { color: var(--slate); }
#page .book-card span { color: var(--green); }
#page .book-card i { color: #6b7686; }
#page .book-card.missing { background: #e3e8ee; }
#page .book-card.picked { outline-color: var(--green); }
#page .card-big { filter: drop-shadow(0 4px 6px rgba(20, 35, 60, 0.3)); }
#page .card-fx-canvas, #page .card-fx-empty { border: 2px solid #2a3756; border-radius: 8px; }
#page .card-fx-empty { color: #e6f0ff; background: radial-gradient(circle at 50% 70%, #3a4f78, #1a2440 70%); }
#page .profile-form, #page .community-form { background: #f3f6f8; border: 1px solid #c2c9cd; border-radius: 8px; }
#page .profile-form b { color: var(--slate); }
#page .post-body { border: 1px solid #c2c9cd; border-radius: 6px; }
#page .post-meta { color: #6b7686; }
#page .post-comment { border-bottom: 1px dashed #d3dae2; }

/* top-up */
#page .topup-pack { border: 1px solid #b9c3cd; border-radius: 9px; box-shadow: 0 2px 5px rgba(20, 35, 60, 0.15); }
#page .topup-pack:hover { background: #f3fbf4; }
#page .topup-pack.on { background: #e6f5e9; border: 2px solid var(--green); box-shadow: 0 0 0 3px #c8ead3; }
#page .topup-pack b, #page .topup-transfer b, #page .topup-row b, #page .topup-drop b { color: var(--slate); }
#page .topup-pay { border: 1px solid #b9c3cd; border-radius: 9px; }
#page .topup-qr { background: #f3f6f8; border: 1px dashed #b9c3cd; border-radius: 8px; }
#page .topup-qr small { color: #4b5563; }
#page .topup-amount { background: #eef8f0; border: 2px solid #5fb36f; border-radius: 8px; }
#page .topup-amount span, #page .topup-amount em { color: #1f6b3a; }
#page .topup-row { border-bottom: 1px dashed #d3dae2; }
#page .topup-drop { background: #f3f6f8; border: 2px dashed #8d9bab; border-radius: 9px; }
#page .topup-drop:hover, #page .topup-drop.over { background: #f3fbf4; border-color: var(--green); }
#page .topup-drop:focus-within { outline-color: var(--green); }
#page .topup-result { border-radius: 9px; }
#page .topup-result strong { color: var(--green); }

/* ---------- smaller screens ---------- */
@media (max-width: 1019px) {
  #page #header.kv { height: auto; aspect-ratio: 1000 / 178; padding: 0; }
  #page .kv #logo { width: 30%; }
  #page .kv #logo img { width: 100%; }
  #page #nav { position: static; margin: 10px 0 0; height: auto; flex-wrap: wrap; }
  #page #nav li { flex: 1 0 18%; height: 44px; }
  #page #nav li + li::before { display: none; }
}
@media (max-width: 679px) {
  body { background-size: auto, 260% auto, auto; }
  #page #header.kv { aspect-ratio: 375 / 120; }
  #page .kv #logo { width: 46%; }
  #page #nav li { flex: 1 0 30%; }
  #page .game-start-box { order: 1; margin: 6px 0 16px; }
  #page .game-start { height: 70px; flex-direction: row; gap: 10px; }
  #page .game-start b { font-size: 28px; }
  #page .quick-links { order: 3; margin-bottom: 16px; }
  #page #footer { flex-direction: column; }
  #page #footer > span:first-of-type { margin-right: 0; }
  #page .page-title { flex-wrap: wrap; }
}

/* ---------- download: how to put the game on the home screen ---------- */
#page .download-devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
#page .download-device { padding: 10px 12px; background: #f6f8fa; border: 1px solid #d3dae2; border-radius: 8px; }
#page .download-device h3 { margin-top: 0; }
#page .download-device small { font-weight: normal; color: #6b7686; }
#page .download-device ol { margin: 6px 0 0; padding-left: 22px; line-height: 1.8; list-style: decimal; }
#page .download-device li { display: list-item; margin-bottom: 2px; }
#page .download-go { text-align: center; margin: 14px 0; }
@media (max-width: 679px) { #page .download-devices { grid-template-columns: 1fr; } }
