/* Guest entry (play.php + members/in/guest/*) - parchment cards in the tellfriends style */
.uk-g { max-width: 860px; margin: 0 auto; }
.uk-g-hero { text-align: center; margin: .2rem 0 1rem; }
.uk-g-hero h2 { margin: 0 0 .3rem; font-family: var(--bb-serif); font-size: 1.7rem; color: #f3e6c4; text-shadow: 0 1px 3px #000; }
.uk-g-hero p { margin: 0; color: #e8dcc0; text-shadow: 0 1px 2px #000; }
.uk-g-card { padding: 1.1rem 1.25rem 1.3rem; box-shadow: inset 0 0 0 1px rgba(201,162,39,.25); margin: 0 0 1rem; }
.uk-g-card h3 { margin: 0 0 .5rem; font-family: var(--bb-serif); font-size: 1.2rem; color: #3d2f22; }
.uk-g-card p { line-height: 1.5; margin: .35rem 0; }
.uk-g-steps { display: flex; gap: .6rem; flex-wrap: wrap; margin: .4rem 0 1rem; padding: 0; list-style: none; counter-reset: s; }
.uk-g-steps li { flex: 1 1 130px; padding: .5rem .6rem; border: 1px solid #d4c4a8; border-radius: 8px; background: #fffdf8; font-size: .92rem; counter-increment: s; }
.uk-g-steps li:before { content: counter(s); display: inline-block; width: 1.5rem; height: 1.5rem; line-height: 1.5rem; text-align: center; border-radius: 50%; background: #c9a227; color: #2a1c08; font-weight: 700; margin-right: .4rem; }
.uk-g-steps li.on { border-color: #8b2e1a; background: #fff3d6; font-weight: 700; }
.uk-g-btn, .uk-g button.uk-g-btn { display: inline-block; cursor: pointer; padding: .8rem 1.6rem; font: 700 1.15rem/1 Georgia, serif; letter-spacing: .06em; text-transform: uppercase; color: #2a1c08 !important; text-decoration: none !important;
  border-radius: 10px; border: 2px solid #5a4020; background: linear-gradient(180deg, #f0e0a0 0%, #d4b45a 48%, #a88830 100%); box-shadow: inset 0 1px 0 rgba(255,255,220,.65), 0 3px 5px rgba(0,0,0,.3); }
.uk-g-btn:hover { background: linear-gradient(180deg, #f8ecc0 0%, #e0c46a 48%, #b89840 100%); }
.uk-g-btn.sm { padding: .45rem .9rem; font-size: .9rem; }
.uk-g-btn.alt { background: #efe6d6; color: #3d2f22 !important; }
.uk-g-btn[disabled] { opacity: .55; cursor: not-allowed; }
.uk-g-center { text-align: center; }
.uk-g-small { font-size: .85rem; color: #5c5348; }
.uk-g-err { color: #8b2e1a; font-weight: 700; margin: .5rem 0; }
.uk-g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.uk-g-opt { position: relative; display: block; cursor: pointer; }
.uk-g-opt input { position: absolute; opacity: 0; pointer-events: none; }
.uk-g-opt .c { display: block; padding: .6rem; border: 2px solid #d4c4a8; border-radius: 10px; background: #fffdf8; text-align: center; height: 100%; }
.uk-g-opt input:checked + .c { border-color: #8b2e1a; background: #fff3d6; box-shadow: 0 0 0 2px rgba(201,162,39,.7); }
.uk-g-opt input:focus-visible + .c { outline: 2px solid #1a5ea8; }
.uk-g-opt img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 2px solid #5a4020; background: #2a1c08; }
.uk-g-opt b { display: block; font-family: Georgia, serif; font-size: 1.02rem; margin-top: .25rem; }
.uk-g-badge { display: inline-block; padding: 0 .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #fff; }
.uk-g-badge.Good { background: #2f6b3a; } .uk-g-badge.Neutral { background: #6b5a45; } .uk-g-badge.Evil { background: #8b2e1a; }
.uk-g-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px .5rem; font-size: .8rem; margin-top: .35rem; color: #3a2c18; text-align: left; }
.uk-g-stats span { white-space: nowrap; }
.uk-g-race { margin: 1rem 0 .3rem; font-family: Georgia, serif; font-size: 1.05rem; color: #3d2f22; border-bottom: 1px solid #d4c4a8; }
.uk-g-row { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 .9rem; }
.uk-g-row label { font-weight: 700; color: #3d2f22; }
.uk-g-row input[type=text], .uk-g-row input[type=password], .uk-g-row input[type=email] { padding: .5rem .6rem; font-size: 1rem; border: 1px solid #8a7a62; border-radius: 6px; background: #fffdf8; color: #1c1814; max-width: 26rem; }
.uk-g-row small { color: #5c5348; }
.uk-g-kit { display: flex; gap: .8rem; align-items: stretch; flex-wrap: wrap; }
.uk-g-kit .k { flex: 1 1 220px; border: 2px solid #d4c4a8; border-radius: 10px; background: #fffdf8; padding: .7rem; }
.uk-g-kit .k h4 { margin: 0 0 .2rem; font-family: Georgia, serif; }
.uk-g-kit ul { margin: .3rem 0 .5rem 1.1rem; padding: 0; font-size: .88rem; }
.uk-g-ready { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.uk-g-ready img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 2px solid #5a4020; background: #2a1c08; }
.uk-gbar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; margin: .6rem 0; padding: .55rem .9rem; border: 2px solid #c9a227; border-radius: 10px; background: linear-gradient(180deg, #3a2c16, #22180a); color: #f5f0e0; }
.uk-gbar b { color: #ffd76a; }
.uk-gbar small { color: #d9ccaa; }
.uk-gtoast { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; max-width: 25rem; padding: .9rem 1rem; border: 2px solid #5a4020; border-radius: 12px; background: #f7f1e6; color: #1c1814; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.uk-gtoast[hidden] { display: none; }
.uk-gtoast p { margin: 0 0 .6rem; line-height: 1.4; }
.uk-gtoast .row { display: flex; gap: .5rem; align-items: center; }
@media (max-width: 640px) { .uk-gtoast { left: .6rem; right: .6rem; max-width: none; } .uk-g-hero h2 { font-size: 1.35rem; } }

.uk-g-perks { list-style: none; margin: .5rem 0 .8rem; padding: 0; }
.uk-g-perks li { position: relative; margin: .3rem 0; padding: .45rem .6rem .45rem 2rem; border: 1px solid #d4c4a8; border-radius: 8px; background: #fffdf8; line-height: 1.4; font-size: .95rem; }
.uk-g-perks li:before { content: "\2713"; position: absolute; left: .6rem; top: .42rem; width: 1.1rem; height: 1.1rem; line-height: 1.1rem; text-align: center; border-radius: 50%; background: #c9a227; color: #2a1c08; font-weight: 700; font-size: .8rem; }
.uk-g-perks li b { color: #3d2f22; }
.uk-g-perks.sm { margin: .35rem 0 .6rem; }
.uk-g-perks.sm li { margin: .2rem 0; padding: .25rem .4rem .25rem 1.7rem; font-size: .85rem; line-height: 1.3; }
.uk-g-perks.sm li:before { left: .4rem; top: .28rem; width: .95rem; height: .95rem; line-height: .95rem; font-size: .7rem; }
.uk-g-note { font-size: .88rem; color: #5c5348; margin: .2rem 0 .6rem; }
.uk-gtoast .uk-g-note { font-size: .78rem; margin: 0 0 .6rem; }

/* choose.php: one card per race with a Good / Neutral / Evil toggle (20261011) */
.uk-g-races { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: .6rem; }
.uk-g-racecard .c { display: flex; flex-direction: column; padding: .6rem; }
.uk-g-racecard .uk-g-pick { display: block; cursor: pointer; flex: 1 1 auto; }
.uk-g-racecard .uk-g-pick img { width: 100%; max-width: 168px; height: auto; aspect-ratio: 1 / 1; display: block; margin: 0 auto; }
.uk-g-racecard .uk-g-stats[hidden] { display: none; }
.uk-g-racecard .uk-g-stats { grid-template-columns: repeat(2, 1fr); gap: 1px .4rem; padding: 0 .2rem; }
.uk-g-racecard .uk-g-pick b { text-align: center; }
.uk-g-tog { display: flex; margin-top: .55rem; border: 2px solid #5a4020; border-radius: 8px; overflow: hidden; }
.uk-g-tog button { flex: 1 1 0; min-width: 0; margin: 0; padding: .55rem 0; border: 0; border-left: 1px solid #5a4020; background: #efe6d6; color: #3d2f22; font: 700 .72rem/1.1 Georgia, serif; letter-spacing: 0; text-transform: none; cursor: pointer; }
.uk-g-tog button:first-child { border-left: 0; }
.uk-g-tog button.Good.on { background: #2f6b3a; color: #fff; }
.uk-g-tog button.Neutral.on { background: #6b5a45; color: #fff; }
.uk-g-tog button.Evil.on { background: #8b2e1a; color: #fff; }
.uk-g-tog button:focus-visible { outline: 2px solid #1a5ea8; outline-offset: -2px; }
@media (max-width: 760px) { .uk-g-races { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .uk-g-races { grid-template-columns: 1fr; } }

/* buychoose.php (Recruitment): race cards reuse the guest picker; extras below (20261011) */
.uk-rc .uk-g-races { margin: .6rem 0 1rem; }
.uk-rc .uk-g-opt { cursor: default; }
.uk-rc .uk-g-pick { cursor: pointer; }
.uk-rc .uk-rc-info { margin: .45rem 0 0; padding: .35rem .3rem 0; border-top: 1px solid #d4c4a8; font-size: .82rem; color: #3a2c18; text-align: left; line-height: 1.45; }
.uk-rc .uk-rc-info[hidden] { display: none; }
.uk-rc .uk-rc-info .row { display: flex; justify-content: space-between; gap: .4rem; }
.uk-rc .uk-rc-price { font-weight: 700; }
.uk-rc .uk-rc-price.short { color: #8b2e1a; }
.uk-rc .uk-rc-info small { display: block; color: #8b2e1a; font-weight: 700; }
.uk-rc .uk-rc-info a { font-weight: 700; }
.uk-rc .uk-rc-gold { text-align: center; margin: 0 0 .6rem; font-size: .9rem; color: #3a2c18; }
.uk-rc .uk-rc-name { text-align: center; margin: .4rem 0 1rem; }
.uk-rc .uk-rc-other { width: 100%; max-width: 560px; margin: .4rem auto; border-collapse: collapse; font-size: .9rem; }
.uk-rc .uk-rc-other td { padding: .25rem .4rem; border-bottom: 1px solid #d4c4a8; }
.uk-rc .uk-rc-info b { display: inline; margin-top: 0; font-size: inherit; font-family: inherit; }
.uk-g-tog button.Good.on, .uk-g-tog button.Neutral.on, .uk-g-tog button.Evil.on { color: #fff !important; }

/* sellchoose.php (Recruitment - Sell): knight cards reuse the race-card look (20261011) */
.uk-sell .uk-sell-grid { margin: .6rem 0 .8rem; }
.uk-sell .uk-g-opt { cursor: pointer; }
.uk-sell .uk-g-pick img { aspect-ratio: 4 / 5; max-width: 150px; object-fit: contain; border: 2px solid #5a4020; border-radius: 8px; background: #1a1510; }
.uk-sell .uk-g-pick img.uk-sell-none { opacity: .75; }
.uk-sell .uk-g-pick b { overflow-wrap: anywhere; }
.uk-sell .uk-g-pick > span { display: block; text-align: center; font-size: .82rem; line-height: 1.4; color: #3a2c18; }
.uk-sell .uk-sell-price { margin-top: .35rem; font-weight: 700; font-size: .95rem; color: #5a3a08; border-top: 1px solid #d4c4a8; padding-top: .3rem; }
.uk-sell .uk-sell-status { font-weight: 700; color: #8b2e1a; }
.uk-sell .uk-sell-status.Fallen { color: #fff; background: #8b2e1a; border-radius: 4px; display: inline-block !important; padding: 0 .4rem; margin: .15rem auto 0; }
.uk-sell .uk-g-opt:hover .c { border-color: #b08a3e; }
.uk-sell .uk-g-opt input:checked + .c { border-color: #8b2e1a; background: #fff3d6; box-shadow: 0 0 0 3px rgba(139,46,26,.55); position: relative; }
.uk-sell .uk-g-opt input:checked + .c:after { content: "SELL"; position: absolute; top: .35rem; right: .35rem; background: #8b2e1a; color: #fff; font: 700 .65rem/1 Georgia, serif; padding: .2rem .35rem; border-radius: 4px; }
.uk-sell .uk-sell-pick { text-align: center; font-weight: 700; color: #3a2c18; margin: .4rem 0; }
.uk-sell input[type=submit] { min-width: 8rem; padding: .55rem 1.4rem; }
