.th-dog-calc {
--th-bg: #fffaf5;
--th-card: #ffffff;
--th-text: #1f2937;
--th-muted: #6b7280;
--th-line: #f0e3d6;
--th-accent: #f08a24;
--th-accent-dark: #d46d09;
--th-accent-soft: #fff1e3;
--th-shadow: 0 18px 50px rgba(31, 41, 55, 0.08);
color: var(--th-text);
font-size: 16px;
}
.th-dog-calc * { box-sizing: border-box; }
.th-dog-calc__card {
background: linear-gradient(180deg, var(--th-bg) 0%, #ffffff 100%);
border: 1px solid var(--th-line);
border-radius: 28px;
padding: 28px;
box-shadow: var(--th-shadow);
max-width: 920px;
margin: 0 auto;
}
.th-dog-calc__header h2 {
margin: 0 0 8px;
font-size: clamp(28px, 4vw, 40px);
line-height: 1.1;
}
.th-dog-calc__header p {
margin: 0;
color: var(--th-muted);
font-size: 16px;
}
.th-dog-calc__form { margin-top: 28px; }
.th-dog-calc__grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}
.th-dog-calc__field label {
display: block;
font-weight: 700;
margin-bottom: 8px;
}
.th-dog-calc__field input,
.th-dog-calc__field select {
width: 100%;
min-height: 56px;
border: 1.5px solid var(--th-line);
border-radius: 16px;
background: #fff;
padding: 0 16px;
font-size: 16px;
color: var(--th-text);
transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.th-dog-calc__field input:focus,
.th-dog-calc__field select:focus {
outline: none;
border-color: var(--th-accent);
box-shadow: 0 0 0 4px rgba(240, 138, 36, 0.12);
}
.th-dog-calc__actions {
display: flex;
gap: 12px;
margin-top: 20px;
flex-wrap: wrap;
}
.th-dog-calc__btn {
appearance: none;
border: 0;
border-radius: 999px;
min-height: 52px;
padding: 0 22px;
font-weight: 800;
cursor: pointer;
transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}
.th-dog-calc__btn:hover { transform: translateY(-1px); }
.th-dog-calc__btn:active { transform: translateY(0); }
.th-dog-calc__btn--primary {
background: var(--th-accent);
color: #fff;
box-shadow: 0 10px 24px rgba(240, 138, 36, 0.28);
}
.th-dog-calc__btn--primary:hover { background: var(--th-accent-dark); }
.th-dog-calc__btn--secondary {
background: #fff;
color: var(--th-text);
border: 1px solid var(--th-line);
}
.th-dog-calc__error {
margin: 14px 0 0;
color: #b91c1c;
font-weight: 600;
min-height: 24px;
}
.th-dog-calc__result {
margin-top: 28px;
padding: 22px;
border-radius: 24px;
background: #ffffff;
border: 1px solid var(--th-line);
}
.th-dog-calc__result.is-visible {
animation: thDogFadeUp .35s ease;
}
.th-dog-calc__result-top {
display: grid;
grid-template-columns: 240px 1fr;
gap: 22px;
align-items: center;
}
.th-dog-calc__visual {
min-height: 220px;
display: flex;
align-items: center;
justify-content: center;
background: var(--th-accent-soft);
border-radius: 22px;
padding: 18px;
overflow: hidden;
}
.th-dog-calc__silhouettes {
position: relative;
width: 100%;
max-width: 180px;
min-height: 180px;
}
.th-dog-calc__silhouette {
max-width: 100%;
max-height: 180px;
object-fit: contain;
position: absolute;
inset: 0;
margin: auto;
}
.th-dog-calc__silhouette--back {
transform: translate(-14px, 8px);
opacity: 0.18;
}
.th-dog-calc__silhouette--front {
transform: translate(10px, -4px);
}
.th-dog-calc__fallback-icon {
font-size: 64px;
}
.th-dog-calc__pill {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
border-radius: 999px;
background: var(--th-accent-soft);
color: var(--th-accent-dark);
font-weight: 800;
font-size: 14px;
}
.th-dog-calc__summary h3 {
font-size: clamp(32px, 5vw, 54px);
line-height: 1;
margin: 14px 0 10px;
}
.th-dog-calc__summary p {
margin: 0;
color: var(--th-muted);
font-size: 18px;
}
.th-dog-calc__details {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
margin-top: 18px;
}
.th-dog-calc__detail-box {
padding: 18px;
border: 1px solid var(--th-line);
border-radius: 18px;
background: #fffaf7;
}
.th-dog-calc__detail-box span {
display: block;
color: var(--th-muted);
font-size: 14px;
margin-bottom: 6px;
}
.th-dog-calc__detail-box strong {
font-size: 20px;
}
.th-dog-calc__notes {
margin-top: 16px;
padding-top: 16px;
border-top: 1px dashed var(--th-line);
}
.th-dog-calc__notes p {
margin: 0 0 10px;
color: var(--th-muted);
}
.th-dog-calc__notes p:last-child { margin-bottom: 0; }
@keyframes thDogFadeUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 767px) {
.th-dog-calc__card { padding: 20px; border-radius: 22px; }
.th-dog-calc__grid,
.th-dog-calc__details,
.th-dog-calc__result-top {
grid-template-columns: 1fr;
}
.th-dog-calc__visual { min-height: 180px; }
.th-dog-calc__summary p { font-size: 16px; }
}